Esempio n. 1
0
    /**
     * Display Blog meta as Author, Date, Category
     */
    function mars_blog_metas()
    {
        ob_start();
        global $post;
        $author = get_the_author_meta('display_name', mars_get_post_authorID($post->ID));
        $category = get_the_category($post->ID);
        the_category(', ');
        return '
			<span class="post-meta"><i class="fa fa-user"></i> <a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . $author . '</a> <span class="sep">/</span>
			<i class="fa fa-clock-o"></i> ' . the_date('', '', '', false) . ' <span class="sep">/</span>
			<i class="fa fa-folder-open"></i> ' . ob_get_clean() . '</span>';
    }
Esempio n. 2
0
/img/vkontakte.png" alt="" /></a>
						<a href="mailto:?Subject=<?php 
print $current_title;
?>
&Body=<?php 
printf(__('I saw this and thought of you! %s', 'mars'), $current_url);
?>
"><img src="<?php 
echo get_template_directory_uri();
?>
/img/email.png" alt="" /></a>
					</div>
				</div>
				<div class="video-details">
					<?php 
$author = get_the_author_meta('display_name', mars_get_post_authorID($post->ID));
?>
					<span class="date"><?php 
printf(__('Published on %s by %s', 'mars'), get_the_date('M d, Y'), '<a href="' . get_author_posts_url(get_the_author_meta('ID')) . '">' . $author . '</a>');
?>
</span>
                    <div class="post-entry"><?php 
the_content();
?>
</div>
                    <span class="meta"><?php 
print the_terms($post->ID, 'categories', '<span class="meta-info">' . __('Category', 'mars') . '</span> ', ' ');
?>
</span>
                    <span class="meta"><?php 
print the_terms($post->ID, 'video_tag', '<span class="meta-info">' . __('Tag', 'mars') . '</span> ', ' ');