<?php get_header(); ?> <div class="content"> <div class="container"> <div class="row"> <?php global $post; /* GET LAYOUT DETAILS */ $mythemes_layout = new mythemes_layout('post'); /* LEFT SIDEBAR */ $mythemes_layout->sidebar('left'); ?> <!-- CONTENT --> <section class="<?php echo $mythemes_layout->classes(); ?> "> <?php /* LEFT WRAPPER */ echo $mythemes_layout->wrapper('left'); if (have_posts()) { while (have_posts()) { the_post(); ?> <article <?php post_class();
<?php global $posts_total, $posts_index; $myThemes_layout = new mythemes_layout(); /* LEFT SIDEBAR */ $myThemes_layout->echoSidebar('left'); ?> <!-- CONTENT --> <section class="<?php echo $myThemes_layout->contentClass(); ?> list-preview"> <?php /* LEFT WRAPPER */ echo $myThemes_layout->contentWrapper('left'); /* CONTENT WRAPPER */ if (have_posts()) { $posts_total = count($wp_query->posts); $posts_index = 0; while (have_posts()) { $posts_index++; the_post(); get_template_part('cfg/templates/view/list-view'); } } else { echo '<h3>' . __('Not found results', 'myThemes') . '</h3>'; echo '<p>' . __('We apologize but this page, post or resource does not exist or can not be found. Perhaps it is necessary to change the call method to this page, post or resource.', 'myThemes') . '</p>'; } /* PAGINATION */ echo get_template_part('cfg/templates/pagination');