- Timestamp:
- 06/14/2018 10:02:26 AM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/index.php
r6366 r7305 1 <?php get_header(); ?> 2 <?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?> 3 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> 4 <cite><?php 5 /* translators: 1: post date, 2: post author */ 6 printf( __( 'Published on %1$s by %2$s', 'bborg' ), 7 get_the_time( 'F jS, Y' ), 8 get_the_author_link() 9 ); 10 ?></cite> 11 <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more →' ) ); ?></div> 12 <?php endwhile; if ( get_next_posts_link() ) : ?> 13 <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts' ) ); ?></div> 14 <?php endif; if ( get_previous_posts_link() ) : ?> 15 <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>' ) ); ?></div> 16 <?php endif; else : ?> 17 <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p> 18 <?php endif; ?> 19 <hr class="hidden" /> 20 <?php get_sidebar(); get_footer(); ?> 1 <?php 2 get_header(); 3 if ( have_posts() ) : 4 while ( have_posts() ) : 5 the_post(); 6 ?> 7 <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3> 8 <cite> 9 <?php 10 /* translators: 1: post date, 2: post author */ 11 printf( __( 'Published on %1$s by %2$s', 'bborg' ), 12 get_the_time( 'F jS, Y' ), 13 get_the_author_link() 14 ); 15 ?> 16 </cite> 17 <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more →', 'bborg' ) ); ?></div> 18 <?php 19 endwhile; 20 21 if ( get_next_posts_link() ) : 22 ?> 23 <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">←</span> Older posts', 'bborg' ) ); ?></div> 24 <?php 25 endif; 26 27 if ( get_previous_posts_link() ) : 28 ?> 29 <div class="nav-next alignright"><?php previous_posts_link( __( 'Newer posts <span class="meta-nav">→</span>', 'bborg' ) ); ?></div> 30 <?php 31 endif; 32 else : 33 ?> 34 <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p> 35 <?php 36 endif; 37 ?> 38 <hr class="hidden" /> 39 <?php 40 get_sidebar(); 41 get_footer();
Note: See TracChangeset
for help on using the changeset viewer.