Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- get_header(); ?>
- <?php
- global $query_string;
- $query_args = explode("&", $query_string);
- $search_query = array();
- foreach($query_args as $key => $string) {
- $query_split = explode("=", $string);
- $search_query[$query_split[0]] = $query_split[1];
- } // foreach
- $search = new WP_Query($search_query);
- ?>
- <div id="search_wrap">
- <div id="searchbox_container">
- <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>">
- <fieldset>
- <input type="submit" id="searchsubmit" value="Submit" />
- <input type="text" name="s" id="s" class="search_box" />
- </fieldset>
- </form>
- </div>
- <div class="searchoptions_container">
- <div class="search_content">
- <p>Dont want to type? Then search using <!--<a href="#">alphabet</a> or use--> the <a href="#">tag cloud</a>.</p>
- </div>
- <div class="search_options">
- <!-- things that are clicked from search_content go here... alphabet (by category), tag cloud, genre (by tag) -->
- <div id="tag_cloud">
- <?php
- wp_tag_cloud( array(
- 'taxonomy' => 'Genre',
- 'number' => 50 ,
- 'smallest' => '8',
- 'largest' => '15',
- 'unit' => 'pt',
- 'separator' => ', ',
- 'orderby' => 'count',
- // 'order' => 'DESC'
- ));
- ?>
- </div>
- </div>
- </div>
- </div> <!-- end search_wrap -->
- <div id="lower_wrapper">
- <div id="maincontentwrapper">
- <div id="maincontentcontainer">
- <div id="main_right">
- <div id="main_left">
- <div class="indexcontentcontainer">
- <div class="search_wrap_results" style="min-height:750px; padding-top:25px;">
- <?php
- global $wp_query;
- $total_results = $wp_query->found_posts;
- query_posts( 'post_type=any&showposts=6' ); ?>
- <?php if(have_posts()) : ?>
- <?php while(have_posts()) : the_post(); ?>
- <div class="eps" id="post-<?php the_ID(); ?>">
- <div class="dvdcovercontainer">
- <a href="<?php the_permalink(); ?>">
- <img src="#" width="85px" height="120px" alt="" /> <!-- make sure width x height is 85x120 -->
- </a>
- <div class="dvdcoverpost">
- </div>
- </div>
- <div class="contentpost">
- <div class="listlinks">
- <ul>
- <li><a href="<?php the_permalink(); ?>"><?php the_tags('','\\'); ?></a></li>
- </ul>
- </div>
- <h2 class="listlinks"><?php echo the_category(); ?></h2>
- <?php echo category_description(); ?>
- </div> <!-- end search results -->
- </div>
- <?php endwhile; ?>
- <?php else : ?>
- <h2>Yo, we found NOTHING...</h2>
- <p>So... Theres no posts...</p>
- <?php endif; ?>
- </div> <!-- end_search_wrap -->
- <div class="footer">
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement