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
// Default badge | |
$pt-color-primary: #5cb85c; | |
$pt-color-white: #fff; | |
.pt-badge { | |
background: $pt-color-primary; | |
border-radius: 100%; | |
color: $pt-color-white; | |
font-size: 12px; |
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
// Gravity Forms checkbox toggle | |
// @use .pt-toggle | |
$pt-toggle-height: 32px; | |
$pt-toggle-border: 4px; | |
$pt-toggle-radius: 60px; | |
$pt-color-grey: #ddd; | |
$pt-color-white: #fff; | |
$pt-color-primary: #5cb85c; |
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
$( '.person' ).hover( function() { | |
$( this ).find( 'video' ).get(0).play(); | |
}, function() { | |
//$( this ).find( 'video' ).get(0).load(); | |
//$( this ).find( 'video' ).get(0).pause(); | |
} ); | |
$( '.video' ).on( 'play', function() { | |
$( '.video-overlay-wrapper' ).fadeOut( 400 ); | |
} ); |
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
$( '.pt-page-slider' ).flexslider( { | |
animation: 'fade', | |
controlNav: true, | |
directionNav: true, | |
touch: false, | |
slideshow: false, | |
manualControls: '.page-slider-flex-control a', | |
start: function( slider ) { | |
var activeVideo = $( '.flex-active-slide video' ); |
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
wp_localize_script( | |
'theme-posts', | |
'themePostData', | |
array( | |
'postsEndpointURL' => get_site_url() . '/wp-json/wp/v2/post', | |
) | |
); |
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
<h1 class"page-title"> | |
<?php esc_html_e( 'Events', 'textdomain' ); ?> | |
</h1> | |
<?php if ( have_posts() ) : ?> | |
<ul class="events"> | |
<?php while ( have_posts() ) : the_post(); ?> | |
<li class="event"> |
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
$( '.event-countdown' ).each( function() { | |
var $element = $( this ); | |
var date = $element.data( 'date' ); | |
$element.countdown( date, function( event ) { | |
$( this ).text( event.strftime( '%D days %H:%M:%S' ) ); | |
} ); | |
} ); |
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
$( '.load-random-post' ).on( 'click', function( e ) { | |
$.ajax( { | |
url: themePostData.postsEndpointURL, | |
data: { | |
filter: { | |
'posts_per_page': 1, | |
'orderby': 'rand' | |
}, | |
}, | |
dataType: 'json', |
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
<?php if ( have_posts() ) : ?> | |
<?php | |
if ( ! empty( $title ) ) { | |
echo $before_title . $title . $after_title; | |
} | |
?> | |