Guest User

results.php

a guest
Mar 20th, 2016
160
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.17 KB | None | 0 0
  1. <?php
  2. /**
  3.  * Archive pages.
  4.  *
  5.  * @package vogue
  6.  * @since 1.0.0
  7.  */
  8.  
  9. // File Security Check
  10. if ( ! defined( 'ABSPATH' ) ) { exit; }
  11.  
  12. $config = presscore_get_config();
  13. $config->set( 'template', 'archive' );
  14. $config->set( 'layout', 'masonry' );
  15. $config->set( 'template.layout.type', 'masonry' );
  16.  
  17. get_header(); ?>
  18.  
  19.             <!-- Content -->
  20.             <div id="content" class="content" role="main">
  21.  
  22.                 <?php
  23.                
  24.                 if ( have_posts() ) :
  25.  
  26.                     do_action( 'presscore_before_loop' );
  27.  
  28.                     // backup config
  29.                     $config_backup = $config->get();
  30.  
  31.                     // masonry container open
  32.                     echo '<div ' . presscore_masonry_container_class( array( 'wf-container' ) ) . presscore_masonry_container_data_atts() . '>';
  33.  
  34.                         while ( have_posts() ) : the_post();
  35.  
  36.                             presscore_archive_post_content();
  37.                             $config->reset( $config_backup );
  38.  
  39.                         endwhile;
  40.  
  41.                     // masonry container close
  42.                     echo '</div>';
  43.  
  44.                     dt_paginator();
  45.  
  46.                     //do_action( 'presscore_after_loop' );
  47.  
  48.                 else :
  49.  
  50.                     get_template_part( 'no-results', 'search' );
  51.  
  52.                 endif;
  53.                 ?>
  54.  
  55.             </div><!-- #content -->
  56.  
  57.             <?php do_action('presscore_after_content'); ?>
  58.  
  59. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment