????
| Current Path : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/partials/portfolio/ |
| Current File : /home2/morganrand/www/wp-content-bkp/themes/wanderfuls/partials/portfolio/portfolio-single-meta.php |
<?php
/**
* Single portfolio meta
*
* @package Wanderfuls WordPress theme
* @subpackage Partials
* @version 3.0.0
*/
// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
exit;
}
// Get meta sections
$sections = tb_portfolio_single_meta_sections();
// Make sure the meta should display
if (
empty( $sections )
|| post_password_required()
) {
return;
} ?>
<ul class="meta clr">
<?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 && $terms = tb_get_list_post_terms( 'portfolio_category' ) ) : ?>
<li class="meta-category"><span class="fa fa-folder-o"></span><?php echo $terms; ?></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 -->