<div class="post-info"> <?php if (!empty($mts_options["mts_home_headline_meta_info"]['date'])) { ?> <span class="thetime updated"><i class="fa fa-calendar"></i> <span itemprop="datePublished"><?php echo human_time_diff(get_the_time('U'), current_time('timestamp')) . __(' ago', 'mythemeshop'); ?> </span></span> <?php } ?> <?php if (!empty($mts_options["mts_home_headline_meta_info"]['category'])) { ?> <span class="thecategory"><i class="fa fa-tags"></i> <?php mts_the_category(', '); ?> </span> <?php } ?> </div> <?php } ?> </header> </article><!--.post excerpt--> <?php } } ?>
function mts_the_postinfo($section = 'home') { $mts_options = get_option(MTS_THEME_NAME); if (!empty($mts_options["mts_{$section}_headline_meta"])) { ?> <div class="post-info"> <?php if (!empty($mts_options["mts_{$section}_headline_meta_info"]['author'])) { ?> <span class="theauthor"><i class="fa fa-user"></i> <span itemprop="author"><?php the_author_posts_link(); ?> </span></span> <?php } ?> <?php if (!empty($mts_options["mts_{$section}_headline_meta_info"]['date'])) { ?> <span class="thetime updated"><i class="fa fa-calendar"></i> <span itemprop="datePublished"><?php the_time(get_option('date_format')); ?> </span></span> <?php } ?> <?php if (!empty($mts_options["mts_{$section}_headline_meta_info"]['category'])) { ?> <span class="thecategory"><i class="fa fa-tags"></i> <?php mts_the_category(', '); ?> </span> <?php } ?> <?php if (!empty($mts_options["mts_{$section}_headline_meta_info"]['comment'])) { ?> <span class="thecomment"><i class="fa fa-comments"></i> <a rel="nofollow" href="<?php comments_link(); ?> " itemprop="interactionCount"><?php echo comments_number(); ?> </a></span> <?php } ?> </div> <?php } }
" rel="nofollow" class="post-image post-image-left"> <div class="featured-thumbnail"> <?php the_post_thumbnail('featured4', array('class' => 'attachment-featured wp-post-image')); ?> <?php if (function_exists('wp_review_show_total')) { wp_review_show_total(true, 'latestPost-review-wrapper'); } ?> </div> </a> <header> <div class="thecategory" itemprop="articleSection"><?php mts_the_category(' '); ?> </div> <h2 class="title front-view-title" itemprop="headline"><a href="<?php the_permalink(); ?> " title="<?php the_title(); ?> "><?php the_title(); ?> </a></h2> </header> <div class="post-info"> <div class="thetime updated"><span itemprop="datePublished"><?php
case 'content': ?> <div class="single_post"> <div class="single-featured-thumbnail"> <?php if (empty($header_animation) && has_post_thumbnail()) { the_post_thumbnail('featuredfull', array('class' => 'attachment-featured wp-post-image')); } ?> </div> <header> <?php if ($mts_options['mts_category_show'] == '1') { ?> <div class="thecategory postcategory" title="View all posts in Content" itemprop="articleSection"><?php mts_the_category(' / '); ?> </div> <?php } ?> <h1 class="title single-title entry-title" itemprop="headline"><?php the_title(); ?> </h1> <?php mts_the_postinfo('single'); ?> </header><!--.headline_area--> <div class="post-single-content box mark-links entry-content">