Example #1
0
    esc_attr(the_time(get_option('date_format ')));
    ?>
 <?php 
    esc_attr(the_time(get_option('time_format')));
    ?>
</a></li>
				<!-- <li>|</li> -->
				<?php 
}
?>

				<?php 
if (isset($ft_option['single_views']) && $ft_option['single_views'] != 0) {
    ?>
				<li class="post-total-shares"><i class="fa fa-file-o"></i> <?php 
    echo number_format_i18n(fave_getViews(get_the_id()), 0);
    ?>
</li>
				<!-- <li>|</li> -->
				<?php 
}
?>

				<?php 
if (isset($ft_option['single_post_comment_count']) && $ft_option['single_post_comment_count'] != 0) {
    ?>
				<?php 
    if (comments_open()) {
        ?>
				<li class="post-total-comments">
					<?php 
Example #2
0
    function fave_vc_video_modules_meta($module_meta, $author, $time_diff, $date, $time, $views, $comments)
    {
        global $ft_option, $term_id;
        $term_list = wp_get_post_terms(get_the_ID(), 'video-categories', array("fields" => "all"));
        if ($term_list) {
            foreach ($term_list as $term) {
                $term_id = $term->term_id;
            }
        }
        if ($module_meta != "true") {
            $author_name = $ft_option['site_author_name'];
            $time_diff = $ft_option['site_time_diff'];
            $post_date = $ft_option['site_date'];
            $post_time = $ft_option['site_time'];
            $post_views = $ft_option['site_view_count'];
            $post_comments = $ft_option['site_comment_count'];
        } else {
            $author_name = $author;
            $time_diff = $time_diff;
            $post_date = $date;
            $post_time = $time;
            $post_views = $views;
            $post_comments = $comments;
        }
        ?>

        <?php 
        if ($author_name != 0) {
            ?>
            <li class="post-author cat-author-color-<?php 
            echo intval($term_id);
            ?>
 "><i class="fa fa-circle"></i>
                <a href="<?php 
            echo esc_url(get_author_posts_url(get_the_author_meta('ID')));
            ?>
">
                    <span itemprop="author" itemscope="" itemtype="http://schema.org/Person">
                        <span itemprop="name"><?php 
            the_author();
            ?>
</span>
                    </span>
                </a>
            </li>
        <?php 
        }
        if ($time_diff != 0) {
            ?>
            <li class="post-date" datetime="<?php 
            the_date();
            ?>
" itemprop="datePublished">
                <a>
                    <span><i class="fa fa-clock-o"></i>
                        <?php 
            printf(_x('%s ago', '%s = human-readable time difference', 'magzilla'), human_time_diff(get_the_time('U'), current_time('timestamp')));
            ?>
                    </span>
                </a>
            </li>
            <?php 
        } else {
            if ($post_date != 0 || $post_time != 0) {
                ?>
                <li class="post-date" datetime="<?php 
                the_date();
                ?>
" itemprop="datePublished">

                    <a>
                        <?php 
                if ($post_date != 0) {
                    ?>
                            <span><i
                                    class="fa fa-calendar-o"></i> <?php 
                    esc_attr(the_time(get_option('date_format ')));
                    ?>
</span>
                        <?php 
                }
                ?>
                        <?php 
                if ($post_time != 0) {
                    ?>
                            <span><i
                                    class="fa fa-clock-o"></i> <?php 
                    esc_attr(the_time(get_option('time_format')));
                    ?>
</span>
                        <?php 
                }
                ?>
                    </a>
                </li>
            <?php 
            }
        }
        ?>

        <?php 
        if ($post_views != 0) {
            ?>
            <li class="post-total-shares"><i class="fa fa-eye"></i> <?php 
            echo number_format_i18n(fave_getViews(get_the_id()), 0);
            ?>
                <meta itemprop="interactionCount" content="UserPageVisits:<?php 
            echo number_format_i18n(fave_getViews(get_the_id()), 0);
            ?>
">
            </li>
        <?php 
        }
        ?>

        <?php 
        if ($post_comments != 0) {
            ?>
            <?php 
            if (comments_open()) {
                ?>
                <?php 
                if (get_comments_number() != 0) {
                    ?>
                    <li class="post-total-comments">
                        <?php 
                    comments_popup_link(__('<i class="fa fa-comment-o"></i> 0', 'magzilla'), __('<i class="fa fa-comment-o"></i> 1', 'magzilla'), __('<i class="fa fa-comment-o"></i> %', 'magzilla'), 'comments', '');
                    ?>
                        <meta itemprop="interactionCount" content="UserComments:<?php 
                    comments_number('0', '1', '%');
                    ?>
">
                    </li>
                <?php 
                }
            }
        }
    }