Example #1
0
 function shamrock_get_featured_image($img_size = false)
 {
     $img = '';
     if (!$img_size) {
         $img_size = shamrock_has_sidebar() ? 'smr-thumb' : 'smr-thumb-full';
     }
     $img = get_the_post_thumbnail(get_the_ID(), $img_size);
     if (empty($img) && ($defimg = shamrock_get_option('default_fimg'))) {
         $img = '<img src="' . esc_url($defimg) . '" alt="' . esc_attr(get_the_title()) . '" class="attachment-smr-thumb wp-post-image"/>';
     }
     return $img;
 }
Example #2
0
    get_template_part('sections/archive-title');
    ?>
		<?php 
}
?>

		<main id="main" class="site-main" role="main">

		<?php 
get_template_part('sections/loop');
?>

		</main>

		<?php 
get_template_part('sections/pagination', shamrock_get_option('pagination'));
?>


	</div>

<?php 
if (shamrock_has_sidebar()) {
    ?>
	<?php 
    get_sidebar();
}
?>

<?php 
get_footer();