Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php get_header(); ?>
- <?php get_sidebar('page'); ?>
- <div id="content">
- <div id="blogheader">
- <img src="<?php bloginfo('template_url'); ?>/images/blogs.jpg" width="510px" alt="Browse your favorites, and find new writers" />
- </div>
- <div class="post">
- <?php if (have_posts()) : ?>
- <?php while (have_posts()) : the_post(); ?>
- <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
- <div class="body">
- <?php the_excerpt(); ?>
- <div class="clear"></div>
- <?php $post_url = get_post_meta(get_the_ID(), "Blog URL", true);
- if(!empty($post_url)){
- $width = 475;
- echo '<img src="'.bm_mshot ($post_url, $width).'" />';
- }
- ?>
- <?php
- $post_url = get_post_meta(get_the_ID(), "Blog URL", true);
- $rad_name = the_title();
- if(!empty($post_url)){
- echo '<h4><a href=" ' . $post_url . ' ">' . $rad_name . ' </a></h4>';
- }
- ?>
- <?php
- $post_feed = get_post_meta(get_the_ID(), "Blog RSS Feed", true);
- if(!empty($post_feed)){
- include_once(ABSPATH . WPINC . '/feed.php');
- $rss = fetch_feed($post_feed);
- $rss_items = $rss->get_items( 0, $rss->get_item_quantity(5) );
- if ( !$rss_items ) {
- echo 'no items';
- } else {
- echo '<h4>Recent Posts</h4>';
- echo '<ul class="recent_posts">';
- foreach ( $rss_items as $item ) {
- echo '<li><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></li>';
- }
- echo '</ul>';
- }
- }
- ?>
- <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
- </div><!--body-->
- <div class="meta">
- <div class="left">
- <p>Posted: <?php the_time(); ?> in <?php the_category(', '); ?> <?php comments_popup_link('No comments yet', '1 comment so far', '% comments so far (is that a lot?)', 'comments-link', 'Comments are off for this post'); ?></p>
- </div>
- <div class="right">
- <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=5567b964-7b53-4d79-8a3f-38fda473fd8a&type=wordpress&style=rotate"></script>
- </div>
- <div class="clear"></div><!--clear-->
- </div><!--meta-->
- <?php comments_template(); ?>
- <?php endwhile; ?>
- <div class="navigation">
- <div class="alignleft"><?php next_posts_link('« Older Entries') ?></div>
- <div class="alignright"><?php previous_posts_link('Newer Entries »') ?></div>
- </div>
- <?php else : ?>
- <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
- <?php endif; ?>
- </div><!--post-->
- </div><!--content-->
- <?php get_sidebar(); ?>
- <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment