?>
>
	<article>
		
		<header class="entry-header">
			<?php 
the_title('<h2 class="entry-title">', '</h2>');
?>
		</header><!-- .entry-header -->

		<div class="entry-meta-bar clearfix">
			<div class="entry-meta">
	         		<?php 
$category = has_category() ? get_the_category() : "";
//the_category(', ') will show html
dongy_posted_on($category);
?>
	         		<?php 
dongy_sharing(get_permalink(), "social-right");
?>
					
			</div><!-- .entry-meta -->			
		</div>

		<?php 
if (has_post_thumbnail()) {
    $image = '';
    $title_attribute = apply_filters('the_title', get_the_title($post->ID));
    $image .= '<figure class="post-featured-image">';
    $image .= get_the_post_thumbnail($post->ID, 'featured-medium', array('title' => esc_attr($title_attribute), 'alt' => esc_attr($title_attribute)));
    $image .= '</figure>';
예제 #2
0
the_excerpt();
?>
		</div><!-- .entry-content -->
		<!-- Post Footer -->
        <footer class="post-footer-info">
        	<?php 
edit_post_link(__('Edit', 'dongydinhtuan'), '<span class="edit-link">', '</span>');
?>
        </footer>
        <!-- END .post-footer-info -->
		

		<div class="entry-meta-bar clearfix">
			<div class="entry-meta">
					<?php 
dongy_posted_on();
?>
					<?php 
if (has_category()) {
    ?>
	         		<span class="category"><?php 
    the_category(', ');
    ?>
</span>
	         	<?php 
}
?>
					<?php 
if (comments_open()) {
    ?>
	         		<span class="comments"><?php