- <?php
- get_header();
- //this is the search.php page
- ?>
- <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" value="<?php echo esc_html($s, 1); ?>" name="s" id="s" class="search_box" />
- </fieldset>
- </form>
- </div>
- </div> <!-- end search_wrap -->
- <div id="search_results_wrapper">
- <div id="maincontentwrapper">
- <div id="maincontentcontainer">
- <div id="main_right">
- <div id="main_left">
- <div class="indexcontentcontainer">
- <div class="search_wrap_results" style="padding-top:10px; padding-bottom:10px;">
- <!--begin books-->
- <?php
- //first we store the variables
- $comments_number = comments_number('', '1', '%');
- $cat_id = the_ID();
- $taxonomies = array('book_titles', 'genre');
- $term_tags = get_terms($taxonomies);
- $term_titles = get_the_term_list($post->ID, 'book_titles', '', ', ');
- $terms = get_the_terms($post->ID , 'book_titles' );
- $count = count($term_tags);
- //begin the block
- ?>
- <div class="books" id="cat-<?php echo $cat_id; ?>">
- <div class="bookcovercontainer">
- <?php while(have_posts()) : the_post(); ?>
- <img src="<?php echo get_post_meta($post->ID, 'poster_cat', true); ?>" width="85" height="120" alt="BOOKIMG" />
- <?php endwhile; ?>
- <div class="bookcoverpost">
- </div>
- </div>
- <div class="contentpost">
- <div class="tags_cat">
- <?php
- $term_tags = get_the_terms($post->ID , 'genre');
- $count = count($terms);
- if($count > 0) {
- echo "<ul>";
- foreach($term_tags as $tags) {
- echo "<li> " . $tags->name . " <div class='right'>\\</div> </li> ";
- }
- echo "</ul>";
- }
- ?>
- </div>
- <h2 class="listlinks"><?php echo $term_titles; ?></h2>
- <div class="cat_description">
- <?php if($terms) {
- foreach($terms as $term) {
- echo $term->description;
- }
- } ?>
- </div>
- </div>
- <!--end eps-->
- <div class="left" style="width: 670px; background-color: #ccc; height: 225px; margin-top: 100px; margin-left: 6px;">
- <p>related items go in this div? [IF I CAN GET IT TO WORK]</p>
- </div>
- <div style="width:350; height: 150px; margin-top: 10px">
- <p>ads</p>
- </div>
- </div> <!-- end book title search results -->
- <div class="footer">
- <?php get_footer(); ?>