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 | |
/* | |
Template Name: Blog Archive | |
*/ | |
get_header(); ?> | |
<!-- default page layout --> | |
<div id="main" class="blog-archive"> | |
<div class="row"> | |
<div class="col-md-9 col-sm-12 col-xs-12 pull-right"> |
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 (has_post_thumbnail( $post->ID ) ): ?> | |
<?php $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'single-post-thumbnail' ); | |
$image = $image[0]; | |
?> | |
<div class="interior-featured-image" style="background-image: url('<?php echo $image; ?>'); background-repeat:no-repeat; background-position:center center; background-size:cover;" ></div> | |
<?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
<?php | |
/** | |
* Template Name: Page Layout | |
*/ | |
get_header(); ?> | |
<div id="main" class="row"><div class="container"> | |
<?php | |
$children = get_pages('child_of='.$post->ID); |
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).ready(function () { | |
$('#menu-main ul.sub-menu').each(function() { | |
if ($(this).children('li').length > 7) { | |
$(this).addClass('large'); | |
} | |
}); | |
}); | |