????

Your IP : 3.135.209.20


Current Path : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/partials/meta/
Upload File :
Current File : /home2/morganrand/backup.morganrand.com/wp-content/themes/wanderfuls/partials/meta/meta.php

<?php
/**
 * Post meta (date, author, comments, etc) for custom post types.
 *
 * @package Wanderfuls WordPress theme
 * @subpackage Partials
 * @version 3.0.0
 */

// Exit if accessed directly
if ( ! defined( 'ABSPATH' ) ) {
	exit;
}

// Default enabled meta sections
$meta_sections	= array( 'date', 'author', 'categories', 'comments' );

// Apply filters for easy modification
$meta_sections = apply_filters( 'tb_meta_sections', $meta_sections );

// Convert meta sections into array if not array
if ( $meta_sections && ! is_array( $meta_sections ) ) {
	$meta_sections = explode( ',', $meta_sections );
}

// Return if sections are empty
if ( empty( $sections ) ) {
	return;
} ?>

<ul class="meta clr">

	<?php
	// Loop through meta sections
	foreach ( $meta_sections as $meta_section ) : ?>

		<?php
		// Date
		if ( 'date' == $meta_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 } ?>

		<?php
		// Author
		if ( 'author' == $meta_section ) { ?>
			<li class="meta-author"><span class="fa fa-user"></span><?php the_author_posts_link(); ?></li>
		<?php } ?>

		<?php
		// Comments
		if ( 'comments' == $meta_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 } ?>

	<?php endforeach; ?>

</ul><!-- .meta -->