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
(function($){ | |
/******************************** | |
* Banner Home * | |
********************************/ | |
$('#banner-home').slick({ | |
slidesToShow: 1, | |
slidesToScroll: 1, | |
arrows: false, | |
fade: true, | |
autoplay: true, |
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
/*-------------------------------------------------------------- | |
# Modernizr | |
--------------------------------------------------------------*/ | |
/* Flexbox */ | |
.no-flexbox .nc_socialPanel { | |
display: block; | |
text-align: center; | |
} | |
.no-flexbox div.nc_socialPanel .nc_tweetContainer { | |
float: none; |
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($count %2 == 0): echo "<div class='clearfix visible-xs'></div>"; endif; | |
if($count %4 == 0): echo "<div class='clearfix hidden-xs'></div>"; endif; | |
$count++; | |
endwhile; ?> |
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 | |
/** | |
* Accordion Shortcode | |
*/ | |
// Extended subscription function with subscription type variable | |
function accordion_shortcode($atts) { | |
$atts = shortcode_atts( | |
array( | |
'id' => '' |
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
$('#banner-home .slick-home-banner').on('init', function(e, slick) { | |
var $firstAnimatingElements = $('div.banner-item:first-child').find('[data-animation]'); | |
doAnimations($firstAnimatingElements); | |
}); | |
$('#banner-home .slick-home-banner').on('beforeChange', function(e, slick, currentSlide, nextSlide) { | |
var $animatingElements = $('div.banner-item[data-slick-index="' + nextSlide + '"]').find('[data-animation]'); | |
doAnimations($animatingElements); | |
}); | |
$('#banner-home .slick-home-banner').slick({ | |
autoplay: true, |
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
function postsCarousel() { | |
var checkWidth = $(window).width(); | |
var owlPost = $("#latest-posts .posts-wrapper"); | |
if (checkWidth > 767) { | |
if (typeof owlPost.data('owl.carousel') != 'undefined') { | |
owlPost.data('owl.carousel').destroy(); | |
} | |
owlPost.removeClass('owl-carousel'); | |
} else if (checkWidth < 768) { | |
owlPost.addClass('owl-carousel'); |
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
<button class="hamburger-menu hamburger-menu--htx visible-sm"> | |
<span><?php esc_html_e( 'Toggle menu', 'tzmotorsport' ); ?></span> | |
</button> |
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 | |
$meta_query = array( | |
array( | |
'key' => 'event_date', | |
'value' => date('Ymd'), | |
'type' => 'DATE', | |
'compare' => '>=' | |
) | |
); | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; |
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 | |
$paged = (get_query_var('paged')) ? get_query_var('paged') : 1; | |
$resultsArgs = array( | |
'post_type' => 'results', | |
'posts_per_page' => 6, | |
'paged' => $paged | |
); | |
$resultsQuery = new WP_Query($resultsArgs); | |
if ( $resultsQuery->have_posts() ) : | |
?> |
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 | |
add_filter( 'get_the_archive_title', function ($title) { | |
if ( is_category() ) { | |
$title = single_cat_title( '', false ); | |
} elseif ( is_tag() ) { | |
$title = single_tag_title( '', false ); | |
} elseif ( is_author() ) { | |
$title = '<span class="vcard">' . get_the_author() . '</span>' ; | |
} | |
return $title; |