Example #1
0
function HuI_post_section()
{
    global $post;
    $post_section = '<article class="hentry hentry-archive"><div class="archive-title text-center clearfix"><h2 itemprop="headline"><a href="' . get_permalink() . '">' . get_the_title() . '</a></h2><div class="archive-meta small">' . get_bluefly_posted_on() . '</div></div><div class="archive-content" itemprop="about">';
    if (has_post_thumbnail()) {
        $post_section .= '<p class="with-img">' . get_the_post_thumbnail() . '</p>';
    }
    $post_section .= apply_filters('the_content', get_the_content(''));
    $post_section .= '</div><div class="archive-footer text-center small clearfix">';
    $categories_list = get_the_category_list(_x(', ', ' ', 'lmsim'));
    $post_section .= '<div class="post-cats"><span class="cats"><span class="glyphicon glyphicon-folder-close" aria-hidden="true"></span>' . $categories_list . '</span></div>';
    $post_section .= get_the_tag_list('<div class="post-tags" itemprop="keywords"><span class="glyphicon glyphicon-tags" aria-hidden="true"></span> ', ', ', '</div>');
    $post_section .= '</div></article>';
    return $post_section;
}
Example #2
0
?>
    <main class="main-content">
        
		<?php 
while (have_posts()) {
    the_post();
    ?>
			<div class="hentry hentry-archive">
                <header class="archive-title text-center clearfix">
					<h2 itemprop="headline"><?php 
    the_title();
    ?>
</h2>
					<div class="archive-meta small">
						<?php 
    echo get_bluefly_posted_on();
    ?>
						<?php 
    edit_post_link('Edit', '<span class="edit-link"><span class="glyphicon glyphicon-pencil"></span>', '</span>');
    ?>
					</div>
				</header>
                <div class="archive-content">
                    <?php 
    if (has_post_thumbnail()) {
        ?>
                        <p class="with-img"><?php 
        the_post_thumbnail('full');
        ?>
</p>
                    <?php