This file contains hidden or 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 (is_category('a')) { ?> | |
<!-- code here --> | |
<?php } elseif (is_category(array('b','c'))) { ?> | |
<!-- code here --> | |
<?php } elseif (is_category('d')) { ?> | |
<!-- code here --> | |
<?php } else { ?> |
This file contains hidden or 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
<title> | |
<?php | |
if (function_exists('is_tag') && is_tag()) { echo 'Tag Archive for "'.$tag.'" - '; } | |
elseif (is_archive()) { wp_title(''); echo ' Archive - '; } | |
elseif (is_front_page()) { wp_title(''); } | |
elseif (is_search()) { echo 'Search for "'.wp_specialchars($s).'" - '; } | |
elseif (!(is_404()) && (is_single()) || (is_page())) { wp_title(''); echo ' - '; } | |
elseif (is_404()) { echo 'Not Found - '; } bloginfo('name'); | |
?> | |
</title> |
This file contains hidden or 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(get_field('service_areas', 'option')): ?> | |
<?php while(has_sub_field('service_areas', 'option')): ?> | |
<li><?php the_sub_field('service_area'); ?></li> | |
<?php endwhile; ?> | |
<?php endif; ?> |
This file contains hidden or 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
.blog-body { | |
border-right: 2px dotted #DCDCDC; | |
padding-right: 24px; | |
} | |
#bread { | |
display: none; | |
} | |
.blog-main { |
This file contains hidden or 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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
This file contains hidden or 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
ul { | |
list-style: none; | |
padding:0; | |
margin:0; | |
} | |
li { | |
padding-left: 1em; | |
text-indent: -.7em; | |
} |
This file contains hidden or 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
<ol class="carousel-indicators slideNav"> | |
<?php if( have_rows('slide') ): ?> | |
<? $i = 0; ?> | |
<?php while ( have_rows('slide') ) : the_row(); ?> | |
<li data-target="#carousel-example-generic" data-slide-to="<?php echo $i; ?>" class="<? if($i === 0): ?>active<? endif; ?>"></li> | |
<? $i++; ?> | |
<?php endwhile; ?> | |
<?php endif; ?> | |
</ol> |
This file contains hidden or 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
if (! function_exists('slug_scripts_masonry') ) : | |
if ( ! is_admin() ) : | |
function slug_scripts_masonry() { | |
wp_enqueue_script('masonry'); | |
wp_enqueue_style('masonry', get_template_directory_uri().'/css/'); | |
} | |
add_action( 'wp_enqueue_scripts', 'slug_scripts_masonry' ); | |
endif; //! is_admin() | |
endif; //! slug_scripts_masonry exists |
This file contains hidden or 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
<div id="carousel-example-generic" class="carousel slide" data-ride="carousel"> | |
<ol class="carousel-indicators"> | |
<?php | |
$args = array( | |
'post_type' => 'slides1', | |
'orderby' => 'menu_order title', | |
'order' => 'ASC', | |
); | |
$query = new WP_Query( $args ); |
This file contains hidden or 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
$(document).mouseup(function (e) | |
{ | |
var container = $('#js-searchPane'); | |
if (!container.is(e.target) // if the target of the click isn't the container... | |
&& container.has(e.target).length === 0) // ... nor a descendant of the container | |
{ | |
container.removeClass('searchPane-open'); | |
} | |
}); |