$class = "col-md-8 col-sm-8";
        } else {
            $class = "col-md-12 col-sm-12";
        }
        echo '<article class="post">
                            <div class="row">';
        if (has_post_thumbnail()) {
            echo '<div class="col-md-4 col-sm-4">
                    	<a href="' . get_permalink() . '">';
            the_post_thumbnail('600x400', array('class' => "img-thumbnail"));
            echo '</a></div>';
        }
        echo '<div class="' . $class . '">';
        echo '<h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>';
        echo '<span class="post-meta meta-data">
                    		<span><i class="fa fa-calendar"></i>' . get_the_time(get_option('date_format')) . '</span><span><i class="fa fa-user"></i>' . __(' Posted By: ', 'framework') . get_the_author_meta('display_name') . '</span><span><i class="fa fa-archive"></i>' . imic_custom_taxonomies_terms_links() . '</span> <span>';
        if (comments_open()) {
            echo comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework'));
        }
        echo '</span></span>';
        echo imic_excerpt(50);
        echo '<p><a href="' . get_permalink() . '" class="btn btn-primary">' . __('Continue reading', 'framework') . '<i class="fa fa-long-arrow-right"></i></a></p>';
        echo '</div></div>';
        echo '</article>';
    }
    wp_reset_postdata();
} else {
    echo '<article class="post">';
    if (current_user_can('edit_posts')) {
        ?>
                    <h3><?php 
    } else {
        $class = "col-md-12 col-sm-12";
    }
    echo '<article class="post taxonomy-event">
                            <div class="row">';
    echo $event_Temp;
    if (has_post_thumbnail()) {
        echo '<div class="col-md-4 col-sm-4">
                    	<a href="' . get_permalink($value) . '">';
        echo get_the_post_thumbnail($value, 'full', array('class' => "img-thumbnail"));
        echo '</a></div>';
    }
    echo '<div class="' . $class . '">';
    echo '<h3><a href="' . get_permalink($value) . '">' . get_the_title($value) . $icon . '</a></h3>';
    echo '<span class="post-meta meta-data">
                    		<span><i class="fa fa-calendar"></i>' . __(date('F', $key), 'framework') . __(date(' j', $key), 'framework') . __(date(', Y', $key), 'framework') . '</span><span><i class="fa fa-archive"></i>' . imic_custom_taxonomies_terms_links() . '</span> <span>';
    comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework'));
    echo '</span></span>';
    echo imic_excerpt(50);
    echo '<p><a href="' . get_permalink($value) . '" class="btn btn-primary">' . __('Continue reading', 'framework') . '<i class="fa fa-long-arrow-right"></i></a></p>';
    echo '</div></div>';
    echo '</article>';
}
pagination();
?>
        </div>
        <!-- Start Sidebar -->
        <div class="col-md-3 sidebar">
<?php 
imic_default_sidebar();
?>
Example #3
0
            <?php 
if (have_posts()) {
    while (have_posts()) {
        the_post();
        echo '<article class="post">
                            <div class="row">';
        if (has_post_thumbnail()) {
            echo '<div class="col-md-4 col-sm-4">
                    	<a href="' . get_permalink() . '">';
            the_post_thumbnail('full', array('class' => "img-thumbnail"));
            echo '</a></div>';
        }
        echo '<div class="col-md-8 col-sm-8">';
        echo '<h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>';
        echo '<span class="post-meta meta-data">
                    		<span><i class="fa fa-calendar"></i>' . get_the_time(get_option('date_format')) . '</span><span><i class="fa fa-archive"></i>' . imic_custom_taxonomies_terms_links() . '</span> <span>';
        comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework'));
        echo '</span></span>';
        echo imic_excerpt(50);
        echo '<p><a href="' . get_permalink() . '" class="btn btn-primary">' . __('Continue reading', 'framework') . '<i class="fa fa-long-arrow-right"></i></a></p>';
        echo '</div></div>';
        echo '</article>';
    }
} else {
    echo '<article class="post">';
    if (current_user_can('edit_posts')) {
        ?>
                    <h3><?php 
        _e('No posts to display', 'framework');
        ?>
</h3>
<?php

echo '<article class="post">
                            <div class="row">';
if (has_post_thumbnail()) {
    $class = 8;
    echo '<div class="col-md-4 col-sm-4">
                    	<a href="' . get_permalink() . '">';
    the_post_thumbnail('full', array('class' => "img-thumbnail"));
    echo '</a></div>';
} else {
    $class = 12;
}
echo '<div class="col-md-' . $class . ' col-sm-' . $class . '">';
echo '<h3><a href="' . get_permalink() . '">' . get_the_title() . '</a></h3>';
echo '<span class="post-meta meta-data"> <span><i class="fa fa-calendar"></i>';
echo get_the_date();
echo '</span><span><i class="fa fa-archive"></i>';
echo imic_custom_taxonomies_terms_links();
echo '</span> <span>';
comments_popup_link('<i class="fa fa-comment"></i>' . __('No comments yet', 'framework'), '<i class="fa fa-comment"></i>1', '<i class="fa fa-comment"></i>%', 'comments-link', __('Comments are off for this post', 'framework'));
echo '</span></span>';
echo imic_excerpt(50);
echo '<p><a href="' . get_permalink() . '" class="btn btn-primary">' . __('Continue reading', 'framework') . '<i class="fa fa-long-arrow-right"></i></a></p>';
echo '</div></div>';
echo '</article>';