Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on Jun 30th, 2012  |  syntax: None  |  size: 3.07 KB  |  hits: 12  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. get_header();
  4.  
  5. //this is the search.php page
  6. ?>
  7.  
  8. <div id="search_wrap">
  9.         <div id="searchbox_container">
  10.  
  11.         <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>">
  12.             <fieldset>
  13.                         <input type="submit" id="searchsubmit" value="Submit" />
  14.                 <input type="text" value="<?php echo esc_html($s, 1); ?>" name="s" id="s" class="search_box" />
  15.             </fieldset>
  16.         </form>
  17.         </div>         
  18.  
  19. </div> <!-- end search_wrap -->
  20.  
  21.                 <div id="search_results_wrapper">
  22.  
  23.                         <div id="maincontentwrapper">
  24.  
  25.                                 <div id="maincontentcontainer">
  26.  
  27.                                         <div id="main_right">
  28.                                         <div id="main_left">
  29.  
  30.                                         <div class="indexcontentcontainer">
  31.  
  32.                                                 <div class="search_wrap_results" style="padding-top:10px; padding-bottom:10px;">
  33.  
  34.                                                         <!--begin books-->
  35.                                                                
  36.                                                         <?php
  37.                                                                         //first we store the variables
  38.                                                                         $comments_number = comments_number('', '1', '%');
  39.                                                                         $cat_id = the_ID();
  40.                                                                         $taxonomies = array('book_titles', 'genre');
  41.                                                                         $term_tags = get_terms($taxonomies);
  42.                                                                         $term_titles = get_the_term_list($post->ID, 'book_titles', '', ', ');
  43.                                                                         $terms = get_the_terms($post->ID , 'book_titles' );
  44.                                                                         $count = count($term_tags);
  45.                                                                        
  46.                                                                         //begin the block
  47.                                                                         ?>
  48.                                                                                                                
  49.                                                                         <div class="books" id="cat-<?php echo $cat_id; ?>">
  50.                                                                                        
  51.                                                                                 <div class="bookcovercontainer">
  52.                                                                                         <?php while(have_posts()) : the_post(); ?>
  53.                                                                                                 <img src="<?php echo get_post_meta($post->ID, 'poster_cat', true); ?>" width="85" height="120" alt="BOOKIMG" />
  54.                                                                                         <?php endwhile; ?>
  55.                                                                                                                
  56.                                                                                         <div class="bookcoverpost">
  57.                                                                                                 </div>
  58.                                                                                                                
  59.                                                                                 </div>
  60.                                                                                                        
  61.                                                                                 <div class="contentpost">
  62.                                                                                         <div class="tags_cat">
  63.                                                                                                
  64.                                                                                                 <?php
  65.                                                                                                        
  66.                                                                                                         $term_tags = get_the_terms($post->ID , 'genre');               
  67.                                                                                                         $count = count($terms);
  68.                                                                                                                        
  69.                                                                                                         if($count > 0) {
  70.                                                                                                                 echo "<ul>";
  71.                                                                                                                 foreach($term_tags as $tags) {
  72.                                                                                                                         echo "<li>&nbsp;" . $tags->name . "&nbsp;<div class='right'>\\</div>&nbsp;</li>&nbsp;";
  73.                                                                                                                 }
  74.                                                                                                                 echo "</ul>";
  75.                                                                                                         }      
  76.                                                                                                         ?>
  77.                                                                                                
  78.                                                                                         </div>
  79.                                                                                                                
  80.                                                                                         <h2 class="listlinks"><?php echo $term_titles; ?></h2>
  81.                                                                                                 <div class="cat_description">
  82.                                                                                                         <?php if($terms) {
  83.                                                                                                                         foreach($terms as $term) {
  84.                                                                                                                                 echo $term->description;
  85.                                                                                                                         }
  86.                                                                                                                 } ?>
  87.                                                                                                 </div>
  88.                                                                                 </div>
  89.                                                                
  90.                                                         <!--end eps--> 
  91.                                                        
  92.                                                         <div class="left" style="width: 670px; background-color: #ccc; height: 225px; margin-top: 100px; margin-left: 6px;">
  93.                                                                 <p>related items go in this div? [IF I CAN GET IT TO WORK]</p>
  94.                                                        
  95.                                                         </div>
  96.                                                        
  97.                                                         <div style="width:350; height: 150px; margin-top: 10px">
  98.                                                                 <p>ads</p>
  99.                                                                 </div>
  100.                                                 </div> <!-- end book title search results -->
  101.  
  102.                                                
  103.                                         <div class="footer">
  104.                                                
  105. <?php get_footer(); ?>