Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage Default_Theme
- */
- get_header(); ?>
- <div id='main' style='margin-top:8px;'>
- <div id='right_content_single'>
- <div class='title'>Content</div>
- <div class='body'>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class='post'>
- <div class='postbody'>
- <?php
- // get the star ratings in an array of arrays
- $ratings = myrp_api_editor_ratings();
- if(count($ratings)>0)
- {
- ?>
- <div class="stars">
- <strong>Editor's Ratings</strong><br />
- <?php
- foreach($ratings as $rating)
- {
- // output the category name, and then the star images, disabled for the rating.
- echo "<span>" . $rating[0] . "</span> <div style='float:right;'>" . myrp_api_star_image($rating[1]) . "</div><br />";
- }
- ?>
- </div>
- <?php
- }
- ?>
- <?php
- // get the star ratings in an array of arrays
- $ratings = myrp_api_ratings();
- if(count($ratings)>0)
- {
- ?>
- <div class="stars">
- <strong>Your Ratings</strong><br />
- <?php
- foreach($ratings as $rating)
- {
- // output the category name, and then the star images, disabled for the rating.
- echo "<span>" . $rating[0] . "</span> <div style='float:right;'>" . myrp_api_star_image($rating[1]) . "</div><br />";
- }
- // output the number of positive and negative ratings.
- $positive_negative = myrp_api_positive_negative();
- echo "<div class='posneg'>+" . $positive_negative['positive'] . " positive — " . $positive_negative['negative'] . " negative</div>";
- ?>
- </div>
- <?php
- }
- ?>
- <h2><?php the_title(); ?></h2>
- <?php the_content(); ?>
- <br clear='both' />
- </div>
- </div>
- <?php endwhile; ?>
- </div>
- <br />
- <div id='right_content_single'>
- <div class='title'>Comments</div>
- <div class='body'>
- <?php comments_template(); ?>
- </div>
- </div>
- </div>
- <?php else : ?>
- <h2 class="center">Not Found</h2>
- <p class="center">Sorry, but you are looking for something that isn't here.</p>
- <?php get_search_form(); ?>
- <?php endif; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment