Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * @package WordPress
- * @subpackage Default_Theme
- */
- get_header(); ?>
- <div id='search_level'>
- <div id='searchbox'><h2><?php echo get_option("myrp_smileth_show_search_text_big"); ?></h2>
- <form role="search" method="get" id="searchform" action="<?php bloginfo('url'); ?>/" >
- <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>
- </form>
- </div>
- <div id='smiles'> </div>
-
- </div>
- <div id='main'>
- <div id='right_content'>
- <div class='title'>Most Popular Reviews</div>
- <div class='body'>
- <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
- <div class='post'>
- <div class='postbody'>
- <h2><a href="<?php the_permalink() ?>" rel="bookmark" class='main' title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
- <?php the_excerpt(); ?>
- </div>
- <div class='metastuff'>
- <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);
- if(empty($pi))
- {
- ?>
- <img src='<?php bloginfo('stylesheet_directory'); ?>/images/missingposticon.png' />
- <?php
- } else {
- echo str_replace("<img", "<img width='135'", $pi);
- }
- ?></a>
- <br />
- <div class='starblock'>
- <table cellspacing='0' width='100%'>
- <tr><td class='nobor'>
- <?php $r = myrp_api_get_overall_average(get_the_ID(),5);
- if($r != null) echo myrp_api_star_image($r); ?>
- </td></tr>
- </table>
- </div>
- <div class='button'><a href="<?php the_permalink() ?>">Read Reviews</a></div>
- </div>
- </div>
- <hr />
- <?php endwhile; ?>
- <?php
- if(is_archive() || is_search())
- {
- ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('« More Reviews') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Reviews »') ?></div>
- </div>
- <?php
- }
- ?>
- </div>
- </div>
- <?php get_sidebar(); ?>
- <?php else : ?>
- <div id='main'>
- <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(); ?>
- </div></div></div>
- <?php endif; ?>
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement