Exemple #1
0
    }
    rewind_posts();
    while (have_posts()) {
        the_post();
        $PHT_post_format = get_post_format();
        if (!$PHT_post_format) {
            echo '<div class="row ' . esc_html($PHT_layout) . '-blog post-standard">';
            get_template_part('format', 'standard');
        } else {
            echo '<div class="row ' . esc_html($PHT_layout) . '-blog post-' . $PHT_post_format . '">';
            get_template_part('format', get_post_format());
        }
        echo '</div>';
    }
    echo '<div class="row"><div class="col-lg-12">';
    PhoenixTeam_Utils::pagination('pride_pg');
    echo '</div></div>';
} else {
    ?>
                        <div class="container general-font-area marg50">
                            <h1 style="display: block; text-align: center;">
                              <?php 
    _e('Sorry, nothing to display.', 'grandway');
    ?>
                            </h1>
                        </div>
<?php 
}
?>
                </div>
if ($PHT_query->have_posts()) {
    while ($PHT_query->have_posts()) {
        $PHT_query->the_post();
        $PHT_is_sticky = is_sticky() ? 'sticky-lou' : null;
        $PHT_post_format = get_post_format();
        if (!$PHT_post_format) {
            echo '<div class="' . implode(' ', get_post_class(array('row', esc_attr($PHT_layout) . '-blog', 'post-standard', $PHT_is_sticky))) . '">';
            get_template_part('format', 'standard');
        } else {
            echo '<div class="' . implode(' ', get_post_class(array('row', esc_attr($PHT_layout) . '-blog', 'post-' . $PHT_post_format, $PHT_is_sticky))) . '">';
            get_template_part('format', get_post_format());
        }
        echo '</div>';
    }
    echo '<div class="row"><div class="col-lg-12">';
    PhoenixTeam_Utils::pagination('pride_pg', $PHT_query);
    echo '</div></div>';
}
?>
            </div>

        <?php 
if ($PHT_sidebar_pos == 'right') {
    ?>
            <!-- sidebar -->
            <div class="col-lg-3">
                <?php 
    dynamic_sidebar($PHT_sidebar_area);
    ?>
            </div><!-- sidebar end-->
        <?php