Exemple #1
0
echo esc_attr(get_the_date('c'));
?>
" itemprop="datePublished" pubdate><?php 
if (lo_opt('time_style') == '1') {
    the_time('Y-m-d');
} elseif (lo_opt('time_style') == '2') {
    the_time('Y/m/d');
} elseif (lo_opt('time_style') == '3') {
    the_time('d-m-Y');
} else {
    the_time('d/m/Y');
}
?>
</time></li>
			<li><?php 
lo_post_views(' ' . __('Views', 'Lophita'));
?>
</li>
		</ul>
	</div>
    <div class="post-content clearfix" itemprop="description">
		<?php 
$pc = $post->post_content;
$st = strip_tags(apply_filters('the_content', $pc));
if (has_excerpt()) {
    the_excerpt();
} elseif (preg_match('/<!--more.*?-->/', $pc) || mb_strwidth($st) < 200) {
    the_content('');
} elseif (function_exists('mb_strimwidth')) {
    echo '<p>' . mb_strimwidth($st, 0, 260, ' ...') . '</p>';
} else {
Exemple #2
0
if (lo_opt('time_style') == '1') {
    the_time('Y-m-d H:i');
} elseif (lo_opt('time_style') == '2') {
    the_time('Y/m/d H:i');
} elseif (lo_opt('time_style') == '3') {
    the_time('d-m-Y H:i');
} else {
    the_time('d/m/Y H:i');
}
?>
</time></div>
		<div><span class="meta-hide"><?php 
_e('Views', 'Lophita');
?>
</span><?php 
lo_post_views();
?>
</div>
		<div><span class="meta-hide"><?php 
_e('Score', 'Lophita');
?>
</span><?php 
lo_rating($post->ID);
?>
</div>
	</div>

	<div class="post-category side-top-border" data-content="<?php 
_e('Category', 'Lophita');
?>
">