Example #1
0
<?php

$mh_purity_lite_options = mh_purity_lite_theme_options();
$excerpt_length = empty($mh_purity_lite_options['excerpt_length']) ? '110' : $mh_purity_lite_options['excerpt_length'];
?>
<article <?php 
post_class();
?>
>
	<div class="loop-wrap clearfix">
		<div class="loop-thumb">
			<a href="<?php 
the_permalink();
?>
">
				<?php 
if (has_post_thumbnail()) {
    the_post_thumbnail('featured');
} else {
    echo '<img src="' . get_template_directory_uri() . '/images/noimage_featured.png' . '" alt="No Picture" />';
}
?>
			</a>
		</div>
		<header class="loop-data">
			<div class="loop-meta">
				<span class="loop-date"><a href="<?php 
the_permalink();
?>
" rel="bookmark"><?php 
$post_date = get_the_date();
Example #2
0
 function mh_sb_css($sb_pos = '')
 {
     $mh_purity_lite_options = mh_purity_lite_theme_options();
     if (isset($mh_purity_lite_options['sb_position']) && $mh_purity_lite_options['sb_position'] == 'left') {
         $sb_pos = 'sb-left';
     } else {
         $sb_pos = 'sb-right';
     }
     echo $sb_pos;
 }