whyisjake

Jake Spurlock

Feb 8th, 2010
105
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.27 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.png" width="510px" alt="Today's Perspectives For and From Mothers" />
  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_content(); ?>
  24.                    
  25.                     <div class="clear"></div>
  26.                    
  27.                     <h4>Recent Posts</h4>
  28.                    
  29.                     @@<?php
  30.                     include_once(ABSPATH . WPINC . '/feed.php');
  31.                     $rss = fetch_feed(get_post_meta(get_the_ID(), "Blog RSS Feed", true));
  32.                     $rss_items = $rss->get_items( 0, $rss->get_item_quantity(5) );
  33.                     if ( !$rss_items ) {
  34.                         echo 'no items';
  35.                     } else {
  36.                         foreach ( $rss_items as $item ) {
  37.                             echo '<p><a href="' . $item->get_permalink() . '">' . $item->get_title() . '</a></p>';
  38.                         }
  39.                     }
  40. @@                  ?>
  41.                    
  42.                     <?php if(function_exists('the_ratings')) { the_ratings(); } ?>
  43.                    
  44.                 </div><!--body-->
  45.  
  46.                        
  47.             <div class="meta">
  48.            
  49.                 <div class="left">
  50.    
  51.                     <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>
  52.  
  53.                 </div>
  54.                
  55.                 <div class="right">
  56.                
  57.                     <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>
  58.                    
  59.                 </div>
  60.                 <div class="clear"></div><!--clear-->
  61.                
  62.             </div><!--meta-->
  63.            
  64.            
  65.             <?php comments_template(); ?>
  66.                
  67.                 <?php endwhile; ?>
  68.                
  69.                 <div class="navigation">
  70.                     <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  71.                     <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  72.                 </div>
  73.                
  74.                 <?php else : ?>
  75.                 <p><?php _e('Sorry, no posts matched your criteria.'); ?></p>
  76.                 <?php endif; ?>
  77.                
  78.            
  79.                
  80.                
  81.            
  82.            
  83.                
  84.         </div><!--post-->
  85.    
  86.     </div><!--content-->
  87.    
  88. <?php get_sidebar(); ?>
  89. <?php get_footer(); ?>
Add Comment
Please, Sign In to add comment