Advertisement
Guest User

Index

a guest
Apr 15th, 2012
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.22 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6.  
  7. get_header(); ?>
  8.  
  9. <div id='search_level'>
  10. <div id='searchbox'><h2><?php echo get_option("myrp_smileth_show_search_text_big"); ?></h2>
  11.  
  12.  
  13. <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>/" >
  14.  
  15. <p>Find reviews about... <input type='text' name='s' value="<?php echo esc_attr(apply_filters('the_search_query', get_search_query())); ?>" /><input type='image' src='<?php bloginfo('stylesheet_directory'); ?>/images/search.png' style='vertical-align:middle;' onclick='document.['searchform'].submit(); return false' /></p>
  16. </form>
  17. </div>
  18.  
  19. <div id='smiles'>&nbsp;</div>
  20. &nbsp;
  21. </div>
  22. <div id='main'>
  23. <div id='right_content'>
  24. <div class='title'>Most Popular Reviews</div>
  25. <div class='body'>
  26. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  27.  
  28. <div class='post'>
  29. <div class='postbody'>
  30. <h2><a href="<?php the_permalink() ?>" rel="bookmark" class='main' title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  31. <?php the_excerpt(); ?>
  32. </div>
  33. <div class='metastuff'>
  34. <a href="<?php the_permalink() ?>" rel="bookmark" class='main' title="Permanent Link to <?php the_title_attribute(); ?>"><?php $pi = myrp_api_post_icon(null, true);
  35. if(empty($pi))
  36. {
  37. ?>
  38. <img src='<?php bloginfo('stylesheet_directory'); ?>/images/missingposticon.png' />
  39. <?php
  40. } else {
  41. echo str_replace("<img", "<img width='135'", $pi);
  42. }
  43. ?></a>
  44. <br />
  45. <div class='starblock'>
  46. <table cellspacing='0' width='100%'>
  47. <tr><td class='nobor'>
  48. <?php $r = myrp_api_get_overall_average(get_the_ID(),5);
  49. if($r != null) echo myrp_api_star_image($r); ?>
  50. </td></tr>
  51. </table>
  52. </div>
  53. <div class='button'><a href="<?php the_permalink() ?>">Read Reviews</a></div>
  54. </div>
  55. </div>
  56. <hr />
  57. <?php endwhile; ?>
  58. <?php
  59. if(is_archive() || is_search())
  60. {
  61. ?>
  62. <div class="navigation">
  63. <div class="alignleft"><?php next_posts_link('&laquo; More Reviews') ?></div>
  64. <div class="alignright"><?php previous_posts_link('Newer Reviews &raquo;') ?></div>
  65. </div>
  66. <?php
  67. }
  68. ?>
  69. </div>
  70. </div>
  71. <?php get_sidebar(); ?>
  72.  
  73. <?php else : ?>
  74. <div id='main'>
  75. <h2 class="center">Not Found</h2>
  76. <p class="center">Sorry, but you are looking for something that isn't here.</p>
  77. <?php get_search_form(); ?>
  78. </div></div></div>
  79. <?php endif; ?>
  80.  
  81. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement