- 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/image.php
r442 r7305 1 <?php get_header(); ?> 1 <?php 2 get_header(); 2 3 3 <?php if (have_posts()) : while (have_posts()) : the_post(); ?> 4 <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2> 5 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p> 6 <p class="wp-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p> 7 <?php the_content('Read more «'); ?> 8 <dl id="meta"> 9 <dt>Published on</dt> 10 <dd><?php the_time('l, F jS, Y') ?> at <?php the_time() ?></dd> 11 <dd>by <cite><?php the_author_posts_link(''); ?></cite></dd> 12 <?php the_tags("\t\t\t\t\t<dt>Tagged as</dt>\n\t\t\t\t\t<dd>", "</dd>\t\t\t\t\t<dd>", "</dd>\n"); ?> 13 <dt>Categorized under</dt> 14 <dd><?php the_category(', '); ?></dd> 15 <dt>Feedback has</dt> 16 <dd><?php comments_popup_link("not been left", "been left once", "been left % times", "", "been turned off"); ?></dd> 17 <dt>Syndication through</dt> 18 <dd><?php comments_rss_link('RSS 2.0'); ?></dd> 19 <?php if ('open' == $post->ping_status) { ?> 20 <dt>Trackback from</dt> 21 <dd><a href="<?php trackback_url(); ?>" rel="trackback">your own site</a></dd> 22 <?php } 23 if ('open' == $post-> comment_status) { ?> 24 <dt>Respond if</dt> 25 <dd><a href="#respond">you'd like to leave feedback</a></dd> 26 <?php } edit_post_link("edit this publication", "\t\t\t\t\t<dt>You can</dt>\n\t\t\t\t\t<dd>", "</dd>\n"); ?> 27 </dl> 28 <hr class="hidden" /> 4 if ( have_posts() ) : 5 while ( have_posts() ) : 6 the_post(); 7 ?> 8 <h2 id="post-<?php the_ID(); ?>"><a href="<?php echo get_permalink($post->post_parent); ?>" rev="attachment"><?php echo get_the_title($post->post_parent); ?></a> » <?php the_title(); ?></h2> 9 <p class="attachment"><a href="<?php echo wp_get_attachment_url($post->ID); ?>"><?php echo wp_get_attachment_image( $post->ID, 'medium' ); ?></a></p> 10 <p class="wp-caption"><?php if ( !empty($post->post_excerpt) ) the_excerpt(); // this is the "caption" ?></p> 11 <?php the_content( esc_html__( 'Read more «', 'bborg' ) ); ?> 12 <dl id="meta"> 13 <dt><?php esc_html_e( 'Published on', 'bbporg' ); ?></dt> 14 <dd> 15 <?php 16 /* translators: 1: Date; 2: time. */ 17 printf( __( '%1$s at %2$s' ), get_the_time( 'l, F jS, Y' ), get_the_time() ); 18 ?> 19 </dd> 20 <dd> 21 <?php 22 /* translators: author posts link */ 23 printf( __( 'by <cite>%s</cite>', 'bborg' ), get_the_author_posts_link() ); 24 ?> 25 </dd> 26 <?php the_tags( "\t\t\t\t\t<dt>" . esc_html__( 'Tagged as', 'bborg' ) . "</dt>\n\t\t\t\t\t<dd>", "</dd>\t\t\t\t\t<dd>", "</dd>\n" ); ?> 27 <dt><?php esc_html_e( 'Categorized under', 'bbporg' ); ?></dt> 28 <dd><?php the_category(', '); ?></dd> 29 <?php comments_popup_link( __( '<dt>Feedback has</dt><dd>not been left</dd>', 'bborg' ), __( '<dt>Feedback has</dt><dd>been left once</dd>', 'bborg' ), __( '<dt>Feedback has</dt><dd>been left % times</dd>', 'bborg' ), "", __( '<dt>Feedback has</dt><dd>been turned off</dd>', 'bborg' ) ); ?> 30 <dt><?php esc_html_e( 'Syndication through', 'bbporg' ); ?></dt> 31 <dd><?php comments_rss_link('RSS 2.0'); ?></dd> 32 <?php if ('open' == $post->ping_status) : ?> 33 <dt><?php esc_html_e( 'Trackback from', 'bbporg' ); ?></dt> 34 <dd><a href="<?php trackback_url(); ?>" rel="trackback"><?php esc_html_e( 'your own site', 'bbporg' ); ?></a></dd> 35 <?php endif; 36 if ( 'open' == $post->comment_status ) : 37 _e( '<dt>Respond if</dt><dd><a href="#respond">you’d like to leave feedback</a></dd>', 'bbporg' ); 38 endif; 39 edit_post_link( esc_html__( 'Edit', 'bbporg' ), "\t\t\t\t\t<dt>" . esc_html__( 'You can', 'bborg' ) . "</dt>\n\t\t\t\t\t<dd>", "</dd>\n"); 40 ?> 41 </dl> 42 <hr class="hidden" /> 29 43 30 <h3>View Older or Newer Images</h3> 31 <div class="navigation"> 32 <div class="alignleft"><?php previous_image_link() ?></div> 33 <div class="alignright"><?php next_image_link() ?></div> 34 </div> 35 <hr class="hidden" /> 36 <?php comments_template(); endwhile; else: ?> 37 <h1>Whoops!</h1> 38 <p><?php _e('Sorry, no images matched your criteria.'); ?></p> 39 <?php endif; get_footer(); ?> 44 <h3><?php esc_html_e( 'View Older or Newer Images', 'bbporg' ); ?></h3> 45 <div class="navigation"> 46 <div class="alignleft"><?php previous_image_link() ?></div> 47 <div class="alignright"><?php next_image_link() ?></div> 48 </div> 49 <hr class="hidden" /> 50 <?php 51 comments_template(); 52 endwhile; 53 else: 54 ?> 55 <h1><?php esc_html_e( 'Whoops!', 'bborg' ); ?></h1> 56 <p><?php esc_html_e( 'Sorry, no images matched your criteria.', 'bborg' ); ?></p> 57 <?php 58 endif; 59 get_footer();
Note: See TracChangeset
for help on using the changeset viewer.