????
| Current Path : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/blog/ |
| Current File : /home2/morganrand/www/wp-content/themes/wanderfuls/partials/blog/blog-single-meta.php |
<?php
/**
* Single blog meta
*
* @package Wanderfuls WordPress theme
* @subpackage Partials
* @version 3.0.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Return if disabled
if ( ! tb_get_mod( 'blog_post_meta', true ) ) {
return;
}
// Get meta sections
$sections = tb_blog_single_meta_sections();
// Return if sections are empty
if ( empty( $sections ) ) {
return;
}
// Add class for meta with title
$classes = 'meta clr';
if ( 'custom_text' == tb_get_mod( 'blog_single_header', 'custom_text' ) ) {
$classes .= ' meta-with-title';
} ?>
<ul class="<?php echo $classes; ?>">
<?php
// Loop through meta sections
foreach ( $sections as $section ) : ?>
<?php if ( 'date' == $section ) : ?>
<li class="meta-date"><span class="fa fa-clock-o"></span><time class="updated" datetime="<?php the_date('Y-m-d');?>"<?php tb_schema_markup( 'publish_date' ); ?>><?php echo get_the_date(); ?></time></li>
<?php endif; ?>
<?php if ( 'author' == $section ) : ?>
<li class="meta-author"><span class="fa fa-user"></span><span class="vcard author"<?php tb_schema_markup( 'author_name' ); ?>><?php the_author_posts_link(); ?></span></li>
<?php endif; ?>
<?php if ( 'categories' == $section ) : ?>
<li class="meta-category"><span class="fa fa-folder-o"></span><?php the_category( ', ', get_the_ID() ); ?></li>
<?php endif; ?>
<?php if ( 'comments' == $section && comments_open() && ! post_password_required() ): ?>
<li class="meta-comments comment-scroll"><span class="fa fa-comment-o"></span><?php comments_popup_link( __( '0 Comments', 'tb' ), __( '1 Comment', 'tb' ), __( '% Comments', 'tb' ), 'comments-link' ); ?></li>
<?php endif; ?>
<?php endforeach; ?>
</ul><!-- .meta -->