Created
June 27, 2020 11:53
-
-
Save git-bhanu/e75d9c191be4e11702e47ac60b19ba8c to your computer and use it in GitHub Desktop.
Lessons Template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[wpv-conditional if="('[wpv-current-user info='id']' eq '')" evaluate="false"] | |
<div class="page-division"> | |
<div class="page-left"> | |
[left_menu name="Fitness Programs" image_src='http://crush.test/wp-content/uploads/2020/04/Group.svg' device='Mobile'] | |
[left_menu name='Fitness Programs' device='Desktop'] | |
</div> | |
<div class="right-wrapper"> | |
<div class="breadcrumb"> | |
<a href="/fitness" class='go-to-fitness'>Go to Fitness Programs</a> | |
</div> | |
<div class="page-right lessons"> | |
[wpv-conditional if="( '[customer_stage]' eq '1' ) OR ( '[customer_stage]' eq '3' ) OR ( '[customer_stage]' eq '4' )"] | |
[wpv-conditional if="( '[wpv-post-id]' eq '4080' )"] | |
<img src='[wpv-post-featured-image size="full" output="url"]' class="featured-image"> | |
[/wpv-conditional] | |
<h1>[wpv-post-title]</h1> | |
[wpv-post-body view_template="None"] | |
<div class='rating' style='display: flex;'> | |
[ratings] | |
<h5>Help us Improve. Rate this workout.</h5> | |
</div> | |
[/wpv-conditional] | |
[wpv-conditional if="( '[customer_stage]' eq '0' ) OR ( '[customer_stage]' eq '2' )"] | |
<h3 style="font-size: 20px;">You are not authorized to view this page.</h3> | |
[/wpv-conditional] | |
</div> | |
</div> | |
</div> | |
[/wpv-conditional] | |
[wpv-conditional if="('[wpv-current-user info='id']' ne '')" evaluate="false"] | |
<div class="popup" id="popup"> | |
<div class="popup-inner"> | |
<h1>Login to subscribe</h1> | |
<p>To subscribe please login to your account</p> | |
<div class="buttons"> | |
<a href="/customers-login"><button>Login</button></a> | |
<a href="/customers-registration"><button>Signup</button></a> | |
</div> | |
</div> | |
</div> | |
<style> | |
.comments-area | |
{ | |
display: none; | |
} | |
</style> | |
[/wpv-conditional] | |
.wp-block-embed__wrapper | |
{ | |
overflow:hidden; | |
padding-bottom:56.25%; | |
position:relative; | |
height:0; | |
} | |
.wp-block-embed__wrapper iframe | |
{ | |
left: 0; | |
top: 0; | |
height: 100%; | |
width: 100%; | |
position: absolute; | |
} | |
.page-division | |
{ | |
display: flex; | |
} | |
.page-left | |
{ | |
width: 15%; | |
} | |
.right-wrapper | |
{ | |
width: 85%; | |
} | |
.breadcrumb | |
{ | |
margin: 30px 30px; | |
} | |
.go-to-fitness | |
{ | |
color: #A4C409 !important; | |
font-size: 16px; | |
text-decoration: none !important; | |
border: none; | |
border-radius: 5px; | |
} | |
.go-to-fitness:hover, .go-to-fitness:active, .go-to-fitness:focus | |
{ | |
color: #A4C409; | |
outline: none; | |
} | |
.page-right | |
{ | |
width: 40%; | |
margin: 50px auto 80px; | |
} | |
.page-header h1 | |
{ | |
display:none; | |
} | |
.container | |
{ | |
width:100% !important; | |
padding:0 !important; | |
} | |
.site-header, body:not([class*=elementor-page-]) .site-main | |
{ | |
max-width:100% !important; | |
min-height: 80vh; | |
} | |
.col-md-12, .col-xl-12,.col-sm-12 | |
{ | |
padding:0; | |
} | |
.lessons | |
{ | |
/* margin: 50px 80px 80px;*/ | |
} | |
.lessons strong | |
{ | |
font-weight: bold !important; | |
} | |
.lessons em | |
{ | |
font-style: italic !important; | |
} | |
.lessons hr | |
{ | |
margin-top: 0 !important; | |
border-top: 1px solid #666 !important; | |
} | |
.lessons a | |
{ | |
color: #007fac; | |
text-decoration: underline; | |
} | |
.lessons h1 | |
{ | |
font-size: 40px; | |
font-weight: 400; | |
margin: 25px auto; | |
color: #253F39; | |
text-align: center; | |
} | |
.lessons h2 | |
{ | |
font-size: 25px; | |
font-weight: bold; | |
margin-bottom: 25px; | |
} | |
.featured-image | |
{ | |
height: 305px; | |
width: 100%; | |
} | |
.lessons p | |
{ | |
padding: 0 0 20px; | |
color: #253F39; | |
} | |
.lessons ol | |
{ | |
margin-bottom: 25px; | |
} | |
.lessons ol li | |
{ | |
margin-bottom: 15px; | |
list-style-image: url(''); | |
} | |
.lessons ol li::marker | |
{ | |
font-weight:bold; | |
} | |
.lessons ol li ol | |
{ | |
padding: 10px 0 0 30px; | |
} | |
.lessons ol li ol li | |
{ | |
list-style: square; | |
margin-bottom: 0px; | |
} | |
.lessons .wp-block-embed figcaption, .wp-block-image figcaption | |
{ | |
font-size: 13px; | |
text-align: center; | |
} | |
/**********************COMMENTS**************************************/ | |
.comment-body | |
{ | |
border-bottom: none !important; | |
} | |
.comments-area | |
{ | |
width: 40%; | |
float: right; | |
margin: 0 22%; | |
} | |
.comment-content | |
{ | |
margin: 10px 0px !important; | |
font-size: 16px; | |
} | |
.title-comments | |
{ | |
text-align: left; | |
font-size: 22px; | |
font-weight: 500; | |
margin-bottom: 15px; | |
} | |
.comments-area .reply a, .comment-edit-link | |
{ | |
color: #ADADAD !important; | |
font-size: 15px; | |
font-weight: bold; | |
} | |
.logged-in-as a, .comment-respond a, .logged-in-as a, .comment-metadata time | |
{ | |
color: #ADADAD !important; | |
font-size: 16px; | |
} | |
.comment-respond | |
{ | |
margin-bottom: 80px; | |
} | |
.comment-form input[type=submit] | |
{ | |
background: #A4C409; | |
color: #000; | |
font-weight: bold; | |
font-size: 15px; | |
border: none; | |
border-radius: 5px; | |
margin-top: 10px; | |
} | |
.comment-form input[type=submit]:active, .comment-form input[type=submit]:focus | |
{ | |
outline: none; | |
} | |
.comment-form label | |
{ | |
font-weight: bold; | |
font-size: 18px; | |
margin: 10px 0; | |
} | |
#reply-title | |
{ | |
display: none; | |
} | |
#comments ol.comment-list .children:before | |
{ | |
display: none!important; | |
} | |
#comments .children | |
{ | |
padding-left: 60px !important; | |
} | |
#comments .comment-meta | |
{ | |
justify-content: initial !important; | |
margin-bottom: 0 !important; | |
} | |
.says{display:none;} | |
.fn | |
{ | |
font-weight: bold; | |
margin-right: 20px; | |
font-size: 16px; | |
} | |
.comment-form textarea | |
{ | |
border: 1px solid #DDD8D8 !important; | |
border-radius: 5px !important; | |
} | |
/* ******************************************************** */ | |
.popup{ | |
background:white; | |
width:40%; | |
height:auto; | |
margin:80px auto; | |
box-shadow: 0 3px 9px rgba(0,0,0,0.6); | |
padding: 30px; | |
} | |
/* Popup Inner */ | |
.popup-inner{ | |
display: flex; | |
flex-direction: column; | |
justify-content: center; | |
align-items: center; | |
height: 100%; | |
} | |
.popup-inner h2 | |
{ | |
font-size: 32px; | |
font-weight: bold; | |
text-align:center; | |
} | |
.popup-inner p | |
{ | |
font-size: 20px; | |
font-weight: 400; | |
text-align: center; | |
margin: 15px auto 20px; | |
max-width: 70%; | |
} | |
.buttons | |
{ | |
display: flex; | |
justify-content: center; | |
} | |
.buttons button | |
{ | |
background: #A4C409; | |
color: #000; | |
font-size: 16px; | |
font-weight: bold; | |
border: none; | |
border-radius: 10px; | |
padding: 15px 30px; | |
} | |
.buttons button:nth-child(1) | |
{ | |
margin-right: 15px; | |
} | |
.buttons button:focus, .buttons button:hover | |
{ | |
background: #A4C409; | |
color: #000; | |
outline: none; | |
} | |
/********** Rating ***********/ | |
.rating | |
{ | |
display: flex; | |
align-items: center; | |
margin-top: 15px; | |
} | |
.rating h5 | |
{ | |
font-weight: bold; | |
font-size: 18px; | |
margin-left: 15px; | |
} | |
.post-ratings | |
{ | |
border: 1px solid #707070; | |
border-radius: 5px; | |
padding: 10px 5px 8px 10px; | |
width: auto; | |
} | |
.post-ratings img | |
{ | |
width: 15px; | |
height: 15px; | |
margin-right: 5px; | |
} | |
@media only screen and (max-width: 728px) | |
{ | |
.site-header, body:not([class*=elementor-page-]) .site-main | |
{ | |
padding: 0; | |
} | |
.page-division | |
{ | |
display: flex; | |
flex-direction: column; | |
} | |
.page-left | |
{ | |
width: 100%; | |
} | |
.right-wrapper | |
{ | |
width: 100%; | |
} | |
.go-to-fitness | |
{ | |
position: relative; | |
margin: 0; | |
} | |
.page-right | |
{ | |
width: 80%; | |
} | |
.lessons | |
{ | |
margin: 30px 40px 50px; | |
} | |
.lessons h1 | |
{ | |
font-size: 32px; | |
} | |
.lessons h2 | |
{ | |
font-size: 25px; | |
} | |
.lessons h1, h2 | |
{ | |
text-align: center; | |
} | |
.featured-image | |
{ | |
height:175px; | |
} | |
.lessons .menu .menu-list | |
{ | |
width: 100%; | |
} | |
.lessons .menu .menu-list a .list-item | |
{ | |
padding: 20px 0; | |
} | |
.popup | |
{ | |
width: 85%; | |
height:auto; | |
} | |
.popup-inner h2 | |
{ | |
font-size: 25px; | |
} | |
.popup-inner p | |
{ | |
font-size: 16px; | |
max-width: 80%; | |
} | |
.buttons | |
{ | |
flex-direction: column; | |
width: 80%; | |
margin: 0 auto; | |
} | |
.buttons button | |
{ | |
padding: 15px auto; | |
width: 100%; | |
} | |
.buttons button:nth-child(1) | |
{ | |
margin-right: 0; | |
margin-bottom: 15px; | |
} | |
/**********************COMMENTS**************************************/ | |
.comments-area | |
{ | |
width: 85%; | |
float: none; | |
margin: 0 30px; | |
} | |
#comments .children | |
{ | |
padding-left: 30px !important; | |
} | |
.comment-author | |
{ | |
margin-bottom: 10px; | |
} | |
#comments .comment-meta | |
{ | |
flex-direction: column; | |
} | |
.rating | |
{ | |
flex-direction: column; | |
} | |
.rating h5 | |
{ | |
font-size: 16px; | |
order:-1; | |
margin: 0 0 15px 0; | |
} | |
.post-ratings img | |
{ | |
height: auto !important; | |
} | |
} | |
$(document).ready(function(){ | |
$("label[for=comment]").html("Post a new comment"); | |
var child1 = $('#post-ratings-3741').children('img'); | |
//$("<h5>Help us Improve. Rate this workout.</h5>").insertBefore("#post-ratings-3741"); | |
$('#post-ratings-3741').html(child1); | |
var child2 = $('#post-ratings-2047').children('img'); | |
console.log(child2); | |
$('#post-ratings-2047').html(child2); | |
document.getElementsByClassName('title-comments')[0].innerHTML = 'Leave a comment'; | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment