Making WordPress.org


Ignore:
Timestamp:
06/14/2018 10:02:26 AM (7 years ago)
Author:
obenland
Message:

BB Base: i18n improvements.

Updates remaining strings to be translatable.

See #2102.

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 &rarr;' ) ); ?></div>
    12 <?php endwhile; if ( get_next_posts_link() ) : ?>
    13             <div class="nav-previous alignleft"><?php next_posts_link( __( '<span class="meta-nav">&larr;</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">&rarr;</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
     2get_header();
     3if ( 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 &rarr;', '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">&larr;</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">&rarr;</span>', 'bborg' ) ); ?></div>
     30        <?php
     31    endif;
     32else :
     33    ?>
     34    <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
     35    <?php
     36endif;
     37?>
     38<hr class="hidden" />
     39<?php
     40get_sidebar();
     41get_footer();
Note: See TracChangeset for help on using the changeset viewer.