Advertisement
Guest User

Page

a guest
Apr 15th, 2012
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.32 KB | None | 0 0
  1. <?php
  2. /**
  3. * @package WordPress
  4. * @subpackage Default_Theme
  5. */
  6.  
  7. get_header(); ?>
  8.  
  9. <div id='main' style='margin-top:8px;'>
  10. <div id='right_content_single'>
  11. <div class='title'>Content</div>
  12. <div class='body'>
  13. <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  14.  
  15. <div class='post'>
  16. <div class='postbody'>
  17.  
  18. <?php
  19. // get the star ratings in an array of arrays
  20. $ratings = myrp_api_editor_ratings();
  21. if(count($ratings)>0)
  22. {
  23. ?>
  24. <div class="stars">
  25. <strong>Editor's Ratings</strong><br />
  26. <?php
  27.  
  28. foreach($ratings as $rating)
  29. {
  30. // output the category name, and then the star images, disabled for the rating.
  31. echo "<span>" . $rating[0] . "</span> <div style='float:right;'>" . myrp_api_star_image($rating[1]) . "</div><br />";
  32. }
  33.  
  34.  
  35. ?>
  36. </div>
  37. <?php
  38. }
  39. ?>
  40. <?php
  41. // get the star ratings in an array of arrays
  42. $ratings = myrp_api_ratings();
  43. if(count($ratings)>0)
  44. {
  45. ?>
  46. <div class="stars">
  47. <strong>Your Ratings</strong><br />
  48. <?php
  49.  
  50. foreach($ratings as $rating)
  51. {
  52. // output the category name, and then the star images, disabled for the rating.
  53. echo "<span>" . $rating[0] . "</span> <div style='float:right;'>" . myrp_api_star_image($rating[1]) . "</div><br />";
  54. }
  55.  
  56. // output the number of positive and negative ratings.
  57. $positive_negative = myrp_api_positive_negative();
  58. echo "<div class='posneg'>+" . $positive_negative['positive'] . " positive &mdash; " . $positive_negative['negative'] . " negative</div>";
  59.  
  60. ?>
  61. </div>
  62. <?php
  63. }
  64. ?>
  65.  
  66.  
  67. <h2><?php the_title(); ?></h2>
  68. <?php the_content(); ?>
  69. <br clear='both' />
  70. </div>
  71.  
  72. </div>
  73. <?php endwhile; ?>
  74. </div>
  75. <br />
  76. <div id='right_content_single'>
  77. <div class='title'>Comments</div>
  78. <div class='body'>
  79. <?php comments_template(); ?>
  80. </div>
  81. </div>
  82. </div>
  83.  
  84. <?php else : ?>
  85.  
  86. <h2 class="center">Not Found</h2>
  87. <p class="center">Sorry, but you are looking for something that isn't here.</p>
  88. <?php get_search_form(); ?>
  89.  
  90. <?php endif; ?>
  91.  
  92. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement