whyisjake

Jake Spurlock

Mar 6th, 2010
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.88 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3. <?php get_sidebar('page'); ?>
  4.    
  5.    
  6.     <div id="content">
  7.        
  8.         <div id="blogheader">
  9.        
  10.             <img src="<?php bloginfo('template_url'); ?>/images/blogs.jpg" width="510px" alt="Browse your favorites, and find new writers" />
  11.        
  12.         </div>
  13.    
  14.         <div class="post">
  15.        
  16.             <?php if (have_posts()) : ?>
  17.             <?php while (have_posts()) : the_post(); ?>
  18.            
  19.                 <h2><a href="<?php the_permalink() ?>"><?php the_title(); ?></a></h2>
  20.                
  21.                 <div class="body">
  22.                
  23.                     <?php the_excerpt(); ?>
  24.                    
  25.                     <div class="clear"></div>
  26.                    
  27.                     <?php $post_url = get_post_meta(get_the_ID(), "Blog URL", true);
  28.                     if(!empty($post_url)){
  29.                         $width = 475;
  30.                         echo '<img src="'.bm_mshot ($post_url, $width).'" />';
  31.                     }
  32.                     ?>
  33.                    
  34.                    
  35.                    
  36.                     <?php
  37.                    
  38.                     $post_url = get_post_meta(get_the_ID(), "Blog URL", true);
  39.                     $rad_name = the_title();
  40.                    
  41.                     if(!empty($post_url)){
  42.                         echo '<h4><a href=" ' . $post_url . ' ">' . $rad_name . ' </a></h4>';
  43.                     }
  44.                    
  45.                     ?>
  46.                    
  47.                     <?php
  48.                    
  49.                     $post_feed = get_post_meta(get_the_ID(), "Blog RSS Feed", true);
  50.                     if(!empty($post_feed)){
  51.                         include_once(ABSPATH . WPINC . '/feed.php');
  52.                         $rss = fetch_feed($post_feed);
  53.                         $rss_items = $rss->get_items( 0, $rss->get_item_quantity(5) );
  54.                         if ( !$rss_items ) {
  55.                             echo 'no items';
  56.                         } else {
  57.                             echo '<h4>Recent Posts</h4>';
  58.                             echo '<ul class="recent_posts">';
  59.                             foreach ( $rss_items as $item ) {
  60.                                 echo '<li><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></li>';
  61.                             }
  62.                             echo '</ul>';
  63.                         }
  64.                     }
  65.                     ?>
  66.                    
  67.                     <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
  68.                    
  69.                 </div><!--body-->
  70.  
  71.                        
  72.             <div class="meta">
  73.            
  74.                 <div class="left">
  75.    
  76.                     <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>
  77.  
  78.                 </div>
  79.                
  80.                 <div class="right">
  81.                
  82.                     <script type="text/javascript" src="http://w.sharethis.com/button/sharethis.js#publisher=5567b964-7b53-4d79-8a3f-38fda473fd8a&amp;type=wordpress&amp;style=rotate"></script>
  83.                    
  84.                 </div>
  85.                 <div class="clear"></div><!--clear-->
  86.                
  87.             </div><!--meta-->
  88.            
  89.            
  90.             <?php comments_template(); ?>
  91.                
  92.                 <?php endwhile; ?>
  93.                
  94.                 <div class="navigation">
  95.                     <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  96.                     <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  97.                 </div>
  98.                
  99.                 <?php else : ?>
  100.                 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  101.                 <?php endif; ?>
  102.                
  103.            
  104.                
  105.                
  106.            
  107.            
  108.                
  109.         </div><!--post-->
  110.    
  111.     </div><!--content-->
  112.    
  113. <?php get_sidebar(); ?>
  114. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment