Exemplo n.º 1
0
 function loop($args = array())
 {
     $defaults = array('archive' => false);
     extract($defaults);
     extract($args, EXTR_OVERWRITE);
     if (!dynamic_loop()) {
         $this->setup_query();
         $this->show_query_title();
         echo '<div class="loop">';
         if (!$this->query->have_posts() && is_search() && $this->get_setting('mode', 'default') == 'default') {
             echo '<div class="entry-content">';
             echo apply_filters('headway_search_no_results', __('<p>Sorry, there was no content that matched your search.</p>', 'headway'));
             echo '</div>';
         }
         while ($this->query->have_posts()) {
             $this->query->the_post();
             $this->count++;
             $this->display_entry(array('count' => $this->count));
         }
         echo '</div>';
         $this->display_pagination();
     }
 }
Exemplo n.º 2
0
 function _render($fields)
 {
     if (!function_exists('dynamic_loop') || !dynamic_loop()) {
         do_action('builder_layout_engine_render_content');
     }
 }