Advertisement
Guest User

Search Results Template

a guest
Aug 27th, 2014
246
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.03 KB | None | 0 0
  1. <?php /* The Search */ ?>
  2.  
  3. <?php get_header(); ?>
  4.  
  5. <?php
  6.  
  7. global $query_string;
  8.  
  9. if ( have_posts() ) : ?>
  10.  
  11. <?php $options = get_option('bean_theme'); if ( isset( $options['index_sidebar'] ) ) { $layout = $options['index_sidebar']; ?>
  12.  
  13. <div id="main-container" class="twelve animated BeanFadeIn">
  14.  
  15. <div class="row">
  16.  
  17. <div class="<?php if ( $layout == 'sidebar_right') { ?>seven columns<?php } else { ?>seven columns push-five<?php } ?> clearfix" role="main">
  18.  
  19. <?php
  20.  
  21. $i = 0;
  22.  
  23. while (have_posts()) : the_post();
  24.  
  25. $format = get_post_format();
  26.  
  27. if( false === $format ) { $format = 'standard'; }
  28. if( $format == 'gallery' || $format == 'image') { }
  29.  
  30. get_template_part( 'lib/content/content', $format );
  31.  
  32. endwhile;
  33.  
  34. ?>
  35.  
  36. </div><!-- END $bean_content_class -->
  37.  
  38. <aside class="sidebar <?php if ( $layout == 'sidebar_right') { ?>five columns sidebar-right<?php } else { ?>sidebar-left five columns pull-seven<?php } ?> hide-for-small" role="complementary">
  39.  
  40. <?php get_sidebar(); ?>
  41.  
  42. </aside><!-- END #sidebar -->
  43.  
  44. </div><!-- END .row -->
  45.  
  46. </div><!-- END #main-container -->
  47.  
  48. <?php } get_footer(); ?>
  49.  
  50. <?php else : ?>
  51.  
  52. <footer>
  53.  
  54. <div class="footer-btm hide-for-small">
  55.  
  56. <div class="row">
  57.  
  58. <div class="twelve columns">
  59.  
  60. <?php if (function_exists("wp_nav_menu")) : wp_nav_menu(
  61. array(
  62. 'menu' => 'Footer Nav',
  63. 'sort_column' => 'menu_order',
  64. 'theme_location' => 'footer-menu',
  65. 'container' => 'ul',
  66. 'menu_class' => 'footer-navigation',
  67. 'depth' => '1',
  68. 'after' => '<span class="nav-sep">&middot;</span>',
  69. ));
  70. endif;
  71. ?>
  72.  
  73.  
  74. <?php do_action('bean_colophon'); ?>
  75.  
  76. </div><!-- END .twelve columns -->
  77.  
  78. </div><!-- END .row -->
  79.  
  80. </div><!-- END .footer-btm -->
  81.  
  82. </footer>
  83.  
  84. <?php wp_footer(); ?>
  85.  
  86. <?php endif; ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement