Advertisement
Guest User

Untitled

a guest
Jul 29th, 2017
62
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.00 KB | None | 0 0
  1. <?php
  2.  
  3. get_header(); ?>
  4.  
  5. <?php
  6. global $query_string;
  7.  
  8. $query_args = explode("&", $query_string);
  9. $search_query = array();
  10.  
  11. foreach($query_args as $key => $string) {
  12.     $query_split = explode("=", $string);
  13.     $search_query[$query_split[0]] = $query_split[1];
  14. } // foreach
  15.  
  16. $search = new WP_Query($search_query);
  17. ?>
  18.  
  19.  
  20. <div id="search_wrap">
  21.     <div id="searchbox_container">
  22.    
  23.     <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>">
  24.         <fieldset>
  25.             <input type="submit" id="searchsubmit" value="Submit" />
  26.             <input type="text" name="s" id="s" class="search_box" />
  27.         </fieldset>
  28.     </form>
  29.     </div>
  30.    
  31.     <div class="searchoptions_container">
  32.         <div class="search_content">
  33.             <p>Dont want to type? Then search using <!--<a href="#">alphabet</a> or use--> the <a href="#">tag cloud</a>.</p>
  34.         </div>
  35.        
  36.         <div class="search_options">
  37.             <!-- things that are clicked from search_content go here... alphabet (by category), tag cloud, genre (by tag) -->
  38.            
  39.             <div id="tag_cloud">
  40.                 <?php          
  41.                    
  42.                  wp_tag_cloud( array(
  43.                     'taxonomy' => 'Genre',
  44.                     'number' => 50 ,
  45.                     'smallest' => '8',
  46.                     'largest' => '15',
  47.                     'unit' => 'pt',
  48.                     'separator' => ', ',
  49.                     'orderby' => 'count',
  50.                 //  'order' => 'DESC'
  51.                     ));
  52.                     ?>
  53.                
  54.                
  55.             </div>
  56.         </div>
  57.        
  58.     </div>
  59.  
  60. </div> <!-- end search_wrap -->
  61.  
  62.         <div id="lower_wrapper">
  63.  
  64.             <div id="maincontentwrapper">
  65.  
  66.                 <div id="maincontentcontainer">
  67.  
  68.                     <div id="main_right">
  69.                     <div id="main_left">
  70.  
  71.                     <div class="indexcontentcontainer">
  72.  
  73.                         <div class="search_wrap_results" style="min-height:750px; padding-top:25px;">
  74.  
  75.                             <?php
  76.                            
  77.                             global $wp_query;
  78.                             $total_results = $wp_query->found_posts;
  79.                            
  80.                              query_posts( 'post_type=any&showposts=6' ); ?>
  81.                             <?php if(have_posts()) : ?>
  82.  
  83.                                 <?php while(have_posts()) : the_post(); ?>
  84.  
  85.  
  86.                                             <div class="eps" id="post-<?php the_ID(); ?>">
  87.  
  88.  
  89.                                                 <div class="dvdcovercontainer">
  90.  
  91.                                                         <a href="<?php the_permalink(); ?>">
  92.                                                             <img src="#" width="85px" height="120px" alt="" /> <!-- make sure width x height is 85x120 -->
  93.                                                         </a>
  94.  
  95.                                                     <div class="dvdcoverpost">
  96.                                                         </div>
  97.                                                 </div>
  98.  
  99.                                                 <div class="contentpost">
  100.  
  101.                                                     <div class="listlinks">
  102.                                                         <ul>
  103.                                                         <li><a href="<?php the_permalink(); ?>"><?php the_tags('','\\'); ?></a></li>
  104.  
  105.                                                         </ul>
  106.                                                     </div> 
  107.  
  108.  
  109.                                                     <h2 class="listlinks"><?php                                                 echo the_category(); ?></h2>               
  110.  
  111.                                                     <?php echo category_description(); ?>
  112.  
  113.                                                 </div> <!-- end search results -->
  114.                                                 </div>
  115.  
  116.                                 <?php endwhile; ?>
  117.  
  118.                                 <?php else : ?>
  119.                                                 <h2>Yo, we found NOTHING...</h2>
  120.                                                 <p>So... Theres no posts...</p>
  121.                                 <?php endif; ?>
  122.                                
  123.                                 </div> <!-- end_search_wrap -->
  124.                     <div class="footer">
  125.                        
  126. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement