G2A Many GEOs
SHARE
TWEET

Untitled

a guest Apr 12th, 2016 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php get_header(); ?>
  2.     <div id="content" <?php Avada()->layout->add_class( 'content_class' ); ?> <?php Avada()->layout->add_style( 'content_style' ); ?>>
  3. <?php if (function_exists('relevanssi_didyoumean')) { relevanssi_didyoumean(get_search_query(), "<p>Did you mean: ", "</p>", 5); }?>
  4.         <?php if ( have_posts() && strlen( trim(get_search_query()) ) != 0 ) : ?>
  5.        
  6.         <?php
  7.         if ( Avada()->settings->get( 'search_new_search_position' ) == 'bottom' ) {
  8.             get_template_part( 'templates/blog', 'layout' );
  9.         ?>
  10.             <div class="fusion-clearfix"></div>
  11.         <?php
  12.         }
  13.         ?>
  14.        
  15.         <?php if ( Avada()->settings->get( 'search_new_search_position' ) != 'hidden' ) : ?>
  16.         <div class="search-page-search-form search-page-search-form-<?php echo Avada()->settings->get( 'search_new_search_position' ); ?>">
  17.             <?php
  18.             // Render the post title
  19.             echo avada_render_post_title( 0, FALSE, __( 'Need a new search?', 'Avada' ) ); ?>
  20.             <p><?php echo __('If you didn\'t find what you were looking for, try a new search!', 'Avada'); ?></p>
  21.             <form class="searchform seach-form" role="search" method="get" action="<?php echo home_url( '/' ); ?>">
  22.                 <div class="search-table">
  23.                     <div class="search-field">
  24.                         <input type="text" value="" name="s" class="s" placeholder="<?php _e( 'Search ...', 'Avada' ); ?>"/>
  25.                     </div>
  26.                     <div class="search-button">
  27.                         <input type="submit" class="searchsubmit" value="&#xf002;" />
  28.                     </div>
  29.                 </div>
  30.             </form>
  31.         </div>
  32.         <?php endif; ?>
  33.         <?php
  34.         if ( Avada()->settings->get( 'search_new_search_position' ) == 'top' || Avada()->settings->get( 'search_new_search_position' ) == 'hidden' ) {
  35.             get_template_part( 'templates/blog', 'layout' );
  36.         }
  37.         ?>
  38.     <?php else: ?>
  39.     <div class="post-content">
  40.         <?php
  41.             $title = __( 'Couldn\'t find what you\'re looking for!', 'Avada' );
  42.             echo Avada()->template->title_template( $title );
  43.         ?>
  44.         <div class="error-page">
  45.             <div class="fusion-columns fusion-columns-3">
  46.                 <div class="fusion-column col-lg-4 col-md-4 col-sm-4">
  47.                     <h1 class="oops"><?php _e( 'Oops!', 'Avada' ); ?></h1>
  48.                 </div>
  49.                 <div class="fusion-column col-lg-4 col-md-4 col-sm-4 useful-links">
  50.                     <h3><?php _e( 'Here are some useful links:', 'Avada' ); ?></h3>
  51.                     <?php                  
  52.                         if ( Avada()->settings->get( 'checklist_circle' ) ) {
  53.                             $circle_class = 'circle-yes';
  54.                         } else {
  55.                             $circle_class = 'circle-no';
  56.                         }
  57.                         wp_nav_menu( array( 'theme_location' => '404_pages', 'depth' => 1, 'container' => false, 'menu_class' => 'error-menu list-icon list-icon-arrow ' . $circle_class, 'echo' => 1 ) );
  58.                     ?>
  59.                 </div>
  60.                 <div class="fusion-column col-lg-4 col-md-4 col-sm-4">
  61.                     <h3><?php _e( 'Try again', 'Avada' ); ?></h3>
  62.                     <p><?php _e('If you want to rephrase your query, here is your chance:', 'Avada' ); ?></p>
  63.                     <?php echo get_search_form( false ); ?>
  64.                 </div>
  65.             </div>
  66.         </div>
  67.     </div>
  68.     <?php endif; ?>
  69.     </div>
  70.     <?php do_action( 'fusion_after_content' ); ?>
  71. <?php get_footer();
  72.  
  73. // Omit closing PHP tag to avoid "Headers already sent" issues.
RAW Paste Data
Ledger Nano X - The secure hardware wallet
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Top