Making WordPress.org

Changeset 7305


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

BB Base: i18n improvements.

Updates remaining strings to be translatable.

See #2102.

Location:
sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base
Files:
15 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/404.php

    r442 r7305  
    11<?php get_header(); ?>
    2             <div id="content">
    3                 <h1>Error 404 - Destination Not Found</h1>
    4             </div>
    5 <?php get_sidebar(); get_footer(); ?>
     2<div id="content">
     3    <h1><?php esc_html_e( 'Error 404 - Destination Not Found', 'bborg' ); ?></h1>
     4</div>
     5<?php
     6get_sidebar();
     7get_footer();
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/archive-forum.php

    r523 r7305  
    11<?php get_header(); ?>
    22
    3 <h3 id="post-home"><?php _e( 'Support', 'bb-base' ); ?></h3>
     3<h3 id="post-home"><?php _e( 'Support', 'bborg' ); ?></h3>
    44
    55<?php if ( 1 === bbp_get_paged() ) : // cached first page ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/archive.php

    r6368 r7305  
    1 <?php get_header(); ?>
    2 <?php if ( have_posts() ) : ?>
    3         <?php while ( have_posts() ) : the_post(); ?>
     1<?php
     2get_header();
     3if ( have_posts() ) :
     4    while ( have_posts() ) :
     5        the_post();
     6        ?>
    47            <h3 id="post-<?php the_ID(); ?>"><a href="<?php the_permalink() ?>" rel="bookmark"><?php the_title(); ?></a></h3>
    5             <cite><?php
     8            <cite>
     9                <?php
    610                /* translators: 1: post date, 2: post author */
    711                printf( __( 'Published on %1$s by %2$s', 'bborg' ),
     
    913                    get_the_author_link()
    1014                );
    11             ?></cite>
     15                ?>
     16            </cite>
    1217            <div class="single-post archive" id="post-<?php the_ID(); ?>"><?php the_excerpt(); ?></div>
    13         <?php endwhile; ?>
    1418        <?php
    15         the_posts_pagination(
    16             array(
    17                 'mid_size'           => 2,
    18                 'prev_text'          => '<span class="screen-reader-text">' . __( 'Previous page', 'bborg' ) . '</span> &larr;',
    19                 'next_text'          => '<span class="screen-reader-text">' . __( 'Next page', 'bborg' ) . '</span> &rarr;',
    20                 'before_page_number' => '<span class="screen-reader-text">' . __( 'Page', 'bborg' ) . ' </span>',
    21             )
    22         );
    23         ?>
    24 <?php else : ?>
    25             <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
     19    endwhile;
     20
     21    the_posts_pagination( array(
     22        'mid_size'           => 2,
     23        'prev_text'          => '<span class="screen-reader-text">' . __( 'Previous page', 'bborg' ) . '</span> &larr;',
     24        'next_text'          => '<span class="screen-reader-text">' . __( 'Next page', 'bborg' ) . '</span> &rarr;',
     25        'before_page_number' => '<span class="screen-reader-text">' . __( 'Page', 'bborg' ) . ' </span>',
     26    ) );
     27else : ?>
     28    <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
    2629<?php endif; ?>
    27             <hr class="hidden" />
    28 <?php get_sidebar(); get_footer(); ?>
     30    <hr class="hidden" />
     31<?php
     32get_sidebar();
     33get_footer();
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/attachment.php

    r442 r7305  
    1 <?php get_header(); ?>
    2 <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    3 <?php $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800)); // This also populates the iconsize for the next line ?>
    4 <?php $_post = &get_post($post->ID); $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially ?>
    5             <div class="post" id="post-<?php the_ID(); ?>">
    6                 <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h1>
    7                 <label class="date"><?php the_time('F jS, Y') ?></label>
    8                 <p class="<?php echo esc_attr( $classname ); ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
    9 <?php the_content(__('Check it out!')); ?>
    10 <?php wp_link_pages(array('before' => 'Pages: ', 'after' => '', 'next_or_number' => 'number')); ?>
    11                 <p class="postmeta">
    12                     This entry was posted on <?php the_time('l, F jS, Y') ?> at <?php the_time() ?> and is filed under <?php the_category(', ') ?>.
    13                     You can follow any responses to this entry through the <?php comments_rss_link('RSS 2.0'); ?> feed.
    14 <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    15                     // Both Comments and Pings are open ?>
    16                     You can <a href="#respond">leave a response</a>, or <a href="<?php trackback_url(); ?>" rel="trackback">trackback</a> from your own site.
    17 <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
    18                     // Only Pings are Open ?>
    19                     Responses are currently closed, but you can <a href="<?php trackback_url(); ?> " rel="trackback">trackback</a> from your own site.
    20 <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    21                     // Comments are open, Pings are not ?>
    22                     You can skip to the end and leave a response. Pinging is currently not allowed.
    23 <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
    24                     // Neither Comments, nor Pings are open ?>
    25                     Both comments and pings are currently closed.
    26 <?php } edit_post_link('Edit this entry.','',''); ?>
    27                 </p>
    28             </div>
    29 <?php comments_template(); ?>
     1<?php
     2get_header();
     3if ( have_posts() ) :
     4    while ( have_posts() ) :
     5        the_post();
    306
    31 <?php endwhile; else: ?>
    32             <h1>Whoops!</h1>
    33             <p class="error"><?php _e("Sorry friend, there's no attachments for you to see here."); ?></p>
    34 <?php endif; ?>
    35 <?php get_footer(); ?>
     7        // This also populates the iconsize for the next line
     8        $attachment_link = get_the_attachment_link($post->ID, true, array(450, 800));
     9        $_post = &get_post($post->ID);
     10        $classname = ($_post->iconsize[0] <= 128 ? 'small' : '') . 'attachment'; // This lets us style narrow icons specially
     11        ?>
     12
     13        <div class="post" id="post-<?php the_ID(); ?>">
     14            <h1><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf( esc_attr__( 'Permanent Link to %s', 'bborg' ), the_title_attribute( [ 'echo' => false ] ) ); ?>"><?php the_title(); ?></a></h1>
     15            <label class="date"><?php the_time( 'F jS, Y' ); ?></label>
     16            <p class="<?php echo esc_attr( $classname ); ?>"><?php echo $attachment_link; ?><br /><?php echo basename($post->guid); ?></p>
     17            <?php
     18                the_content( __( 'Check it out!', 'bborg' ) );
     19                wp_link_pages( array(
     20                    'before' => __( 'Pages: ', 'bborg' ),
     21                    'after' => '',
     22                    'next_or_number' => 'number',
     23                ) );
     24            ?>
     25            <p class="postmeta">
     26                <?php
     27                printf(
     28                    /* translators: 1: Date; 2: Time; 3: Category list; 4: Comment feed URL. */
     29                    wp_kses_post( __( 'This entry was posted on %1$s at %2$s and is filed under %3$s. You can follow any responses to this entry through the <a href="%4$s">RSS 2.0</a> feed.', 'bborg' ) ),
     30                    get_the_time( 'l, F jS, Y' ),
     31                    get_the_time(),
     32                    get_the_category_list(', '),
     33                    get_post_comments_feed_link()
     34                );
     35
     36                if ( 'open' == $post->comment_status && 'open' == $post->ping_status ) :
     37                    // Both Comments and Pings are open.
     38                    printf( wp_kses_post( __( 'You can <a href="#respond">leave a response</a>, or <a href="%s" rel="trackback">trackback</a> from your own site.', 'bborg' ) ), esc_url( get_trackback_url() ) );
     39                elseif ( 'open' != $post->comment_status && 'open' == $post->ping_status ) :
     40                    // Only Pings are Open
     41                    printf( wp_kses_post( __( 'Responses are currently closed, but you can <a href="%s" rel="trackback">trackback</a> from your own site.', 'bborg' ) ), esc_url( get_trackback_url() ) );
     42                elseif ( 'open' == $post-> comment_status && 'open' != $post->ping_status ) :
     43                    // Comments are open, Pings are not
     44                    esc_html_e( 'You can skip to the end and leave a response. Pinging is currently not allowed.', 'bborg' );
     45                elseif ( 'open' != $post-> comment_status && 'open' != $post->ping_status ) :
     46                    // Neither Comments, nor Pings are open
     47                    esc_html_e( 'Both comments and pings are currently closed.', 'bborg' );
     48                endif;
     49                edit_post_link('Edit this entry.','','');
     50                ?>
     51            </p>
     52        </div>
     53
     54    <?php
     55    comments_template();
     56    endwhile;
     57else:
     58?>
     59    <h1><?php esc_html_e('Whoops!', 'bborg' ); ?></h1>
     60    <p class="error"><?php esc_html_e('Sorry friend, there&#8217;s no attachments for you to see here.', 'bborg' ); ?></p>
     61<?php
     62endif;
     63get_footer();
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/comments.php

    r1645 r7305  
    11<?php if ( post_password_required() ) : ?>
    2     <p class="nocomments">This post is password protected. Enter the password to view comments.</p>
     2    <p class="nocomments"><?php esc_html_e( 'This post is password protected. Enter the password to view comments.', 'bborg' ); ?></p>
    33<?php return; endif; ?>
    44
     
    1818    <?php if ( comments_open() ) : ?>
    1919
    20         <h2 id="comments">There are no comments to display</h2>
     20        <h2 id="comments"><?php esc_html_e( 'There are no comments to display', 'bborg' ); ?></h2>
    2121
    2222    <?php elseif ( !is_page() ) : ?>
    2323
    24         <p class="nocomments">Comments are closed.</p>
     24        <p class="nocomments"><?php esc_html_e( 'Comments are closed.', 'bborg' ); ?></p>
    2525
    2626    <?php endif; ?>
     
    3131    <?php if ( get_option( 'comment_registration' ) && ! is_user_logged_in() ) : ?>
    3232
    33         <p>You must be <a href="<?php echo site_url( '/wp-login.php' ); ?>?redirect_to=<?php echo urlencode( get_permalink() ); ?>">logged in</a> to post a comment.</p>
     33        <p><?php printf( wp_kses_post( __( 'You must be <a href="%s">logged in</a> to post a comment.', 'bborg' ) ), esc_url( site_url( '/wp-login.php?redirect_to=' . urlencode( get_permalink() ) ) ) ); ?></p>
    3434
    3535    <?php else : ?>
     
    3838            <form action="<?php echo site_url( '/wp-comments-post.php' ); ?>" method="post" id="commentform">
    3939                <fieldset>
    40                     <legend><?php comment_form_title( 'Leave a Reply', 'Leave a Reply to %s' ); ?></legend>
    41                     <p class="cancel-reply"><?php cancel_comment_reply_link("Cancel Comment Reply"); ?></p>
     40                    <legend><?php comment_form_title( esc_html__( 'Leave a Reply', 'bborg' ), esc_html__( 'Leave a Reply to %s', 'bborg' ) ); ?></legend>
     41                    <p class="cancel-reply"><?php cancel_comment_reply_link( esc_html__( 'Cancel Comment Reply', 'bborg' ) ); ?></p>
    4242
    4343                    <?php if ( ! is_user_logged_in() ) : ?>
    4444
    45                         <p><label for="author"><small>Name <?php if ($req) echo "(required)"; ?></small></label>
     45                        <p><label for="author"><small><?php esc_html_e( 'Name', 'bborg' ); ?> <?php if ($req) esc_html_e( '(required)', 'bborg' ); ?></small></label>
    4646                        <input type="text" name="author" id="author" value="<?php echo esc_attr( $comment_author ); ?>" size="22" tabindex="1" <?php if ($req) echo "aria-required='true'"; ?> /></p>
    47                         <p><label for="email"><small>Mail (will not be published) <?php if ($req) echo "(required)"; ?></small></label>
     47                        <p><label for="email"><small><?php esc_html_e( 'Mail (will not be published)', 'bborg' ); ?> <?php if ($req) esc_html_e( '(required)', 'bborg' ); ?></small></label>
    4848                        <input type="text" name="email" id="email" value="<?php echo esc_attr( $comment_author_email ); ?>" size="22" tabindex="2" <?php if ($req) echo "aria-required='true'"; ?> /></p>
    49                         <p><label for="url"><small>Website</small></label>
     49                        <p><label for="url"><small><?php esc_html_e( 'Website', 'bborg' ); ?></small></label>
    5050                        <input type="text" name="url" id="url" value="<?php echo esc_attr( $comment_author_url ); ?>" size="22" tabindex="3" /></p>
    5151
     
    5454                    <p><textarea name="comment" id="comment" cols="70%" rows="10" tabindex="4"></textarea></p>
    5555                    <p>
    56                         <input name="submit" type="submit" class="button" id="submit" tabindex="5" value="Submit Comment" />
     56                        <input name="submit" type="submit" class="button" id="submit" tabindex="5" value="<?php esc_attr_e( 'Submit Comment', 'bborg' ); ?>" />
    5757                        <?php comment_id_fields(); ?>
    5858                        <?php do_action( 'comment_form', get_the_ID() ); ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/functions-codex.php

    r1461 r7305  
    3030        }
    3131
    32         $crumb[] = '<a href="/">Codex Home</a>';
     32        $crumb[] = '<a href="/">' . __( 'Codex Home', 'bborg' ) . '</a>';
    3333
    3434        krsort( $crumb );
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-front.php

    r4448 r7305  
    22    <div id="headline"><div id="headline-inner">
    33        <h2 class="graphic home"><?php bloginfo( 'description' ); ?></h2>
    4         <p>This software is really great. Go check it out for yourself and tell us how much you like it in the forums!</p>
     4        <p><?php esc_html_e( 'This software is really great. Go check it out for yourself and tell us how much you like it in the forums!', 'bborg' ); ?></p>
    55        <div>
    6             <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button">Download &rarr;</a>
    7             <img src="<?php bloginfo( 'template_url' ); ?>/images/screenshots.png?v=6" srcset="<?php bloginfo( 'template_url' ); ?>/images/screenshots.png?v=6 1x, <?php bloginfo( 'template_url' ); ?>/images/screenshots-2x.png?v=6 2x" alt="Screenshots">
     6            <a href="<?php bloginfo( 'url' ); ?>/download/" id="big-demo-button" class="button"><?php esc_html_e( 'Download &rarr;', 'bborg' ); ?></a>
     7            <img src="<?php bloginfo( 'template_url' ); ?>/images/screenshots.png?v=6" srcset="<?php bloginfo( 'template_url' ); ?>/images/screenshots.png?v=6 1x, <?php bloginfo( 'template_url' ); ?>/images/screenshots-2x.png?v=6 2x" alt="<?php esc_attr_e( 'Screenshots', 'bborg' ); ?>">
    88        </div>
    99    </div></div>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-nav.php

    r7150 r7305  
    33    <?php if ( ! has_nav_menu( 'header-nav-menu' ) ) : ?>
    44        <ul id="bb-nav" class="menu">
    5             <li <?php if ( is_page( 'about'    ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'about'   ); ?>">About</a></li>
    6             <li <?php if ( is_page( 'plugins'  ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'plugins' ); ?>">Plugins</a></li>
    7             <li <?php if ( is_page( 'themes'   ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'themes'  ); ?>">Themes</a></li>
    8             <li><a href="<?php echo esc_url( '//codex.' . parse_url( home_url(), PHP_URL_HOST ) . '/' ); ?>">Documentation</a></li>
    9             <li <?php if ( is_post_type_archive( 'post' ) || is_singular( 'post' ) || is_date() || is_tag() || is_category() || is_home() ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'blog' ); ?>">Blog</a></li>
    10             <?php if ( function_exists( 'is_bbpress' ) ) : ?><li <?php if ( is_bbpress() ) : ?>class="current"<?php endif; ?>><a href="<?php bbp_forums_url(); ?>">Support</a></li><?php endif; ?>
    11             <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php echo home_url( 'download' ); ?>">Download</a></li>
     5            <li <?php if ( is_page( 'about'    ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'about'   ); ?>"><?php esc_html_e( 'About', 'bborg' ); ?></a></li>
     6            <li <?php if ( is_page( 'plugins'  ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'plugins' ); ?>"><?php esc_html_e( 'Plugins', 'bborg' ); ?></a></li>
     7            <li <?php if ( is_page( 'themes'   ) ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'themes'  ); ?>"><?php esc_html_e( 'Themes', 'bborg' ); ?></a></li>
     8            <li><a href="<?php echo esc_url( '//codex.' . parse_url( home_url(), PHP_URL_HOST ) . '/' ); ?>"><?php esc_html_e( 'Documentation', 'bborg' ); ?></a></li>
     9            <li <?php if ( is_post_type_archive( 'post' ) || is_singular( 'post' ) || is_date() || is_tag() || is_category() || is_home() ) : ?>class="current"<?php endif; ?>><a href="<?php echo home_url( 'blog' ); ?>"><?php esc_html_e( 'Blog', 'bborg' ); ?></a></li>
     10            <?php if ( function_exists( 'is_bbpress' ) ) : ?><li <?php if ( is_bbpress() ) : ?>class="current"<?php endif; ?>><a href="<?php bbp_forums_url(); ?>"><?php esc_html_e( 'Support', 'bborg' ); ?></a></li><?php endif; ?>
     11            <li class="download<?php if ( is_page( 'download' ) ) : ?> current<?php endif; ?>"><a href="<?php echo home_url( 'download' ); ?>"><?php esc_html_e( 'Download', 'bborg' ); ?></a></li>
    1212        </ul>
    1313    <?php else: ?>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/header-subnav.php

    r454 r7305  
    33        <ul id="nav-secondary" class="menu">
    44            <?php if ( is_user_logged_in() && function_exists( 'bbp_forums_url' ) ) : ?>
    5                 <li><a href="<?php bbp_forums_url( '/new-topic' ); ?>">Create New Topic</a></li>
     5                <li><a href="<?php bbp_forums_url( '/new-topic' ); ?>"><?php esc_html_e( 'Create New Topic', 'bborg' ); ?></a></li>
    66            <?php endif; ?>
    77        </ul>
     
    99        <ul id="nav-user" class="menu">
    1010            <?php if ( ! is_user_logged_in() ) : ?>
    11                 <li><a href="//wordpress.org/support/register.php">Register</a></li>
    12                 <li><a href="//wordpress.org/support/bb-login.php">Lost Password</a></li>
    13                 <li><a href="<?php echo home_url( 'login' ); ?>">Log In</a></li>
     11                <li><a href="//wordpress.org/support/register.php"><?php esc_html_e( 'Register', 'bborg' ); ?></a></li>
     12                <li><a href="//wordpress.org/support/bb-login.php"><?php esc_html_e( 'Lost Password', 'bborg' ); ?></a></li>
     13                <li><a href="<?php echo home_url( 'login' ); ?>"><?php esc_html_e( 'Log In', 'bborg' ); ?></a></li>
    1414            <?php elseif ( function_exists( 'bbp_favorites_permalink' ) ) : ?>
    15                 <li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>">Favorites</a></li>
    16                 <li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>">Subscriptions</a></li>
     15                <li><a href="<?php bbp_favorites_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Favorites', 'bborg' ); ?></a></li>
     16                <li><a href="<?php bbp_subscriptions_permalink( bbp_get_current_user_id() ); ?>"><?php esc_html_e( 'Subscriptions', 'bborg' ); ?></a></li>
    1717            <?php endif; ?>
    1818        </ul>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/image.php

    r442 r7305  
    1 <?php get_header(); ?>
     1<?php
     2get_header();
    23
    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> &raquo; <?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 &laquo;'); ?>
    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" />
     4if ( 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> &raquo; <?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 &laquo;', '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&#8217;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" />
    2943
    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;
     53else:
     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
     58endif;
     59get_footer();
  • 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();
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/page.php

    r442 r7305  
    22<?php if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>
    33                <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3>
    4 <?php the_content( __( 'Read more &raquo;' ) ); wp_link_pages( "before=<p>Pages:&after=</p>\n&next_or_number=number" ); edit_post_link( 'Edit', '<p>', '</p>' ); ?>
     4<?php
     5    the_content( __( 'Read more &raquo;', 'bborg' ) );
     6    wp_link_pages( array(
     7        'before' => '<p>' . __( 'Pages:', 'bborg' ),
     8        'after'  => "</p>\n",
     9        'next_or_number' => 'number',
     10    ) );
     11    edit_post_link( __( 'Edit', 'bborg' ), '<p>', '</p>' );
     12?>
    513<?php endwhile;  endif;?>
    614                <hr class="hidden" />
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/searchform.php

    r442 r7305  
    11            <form id="searchform" method="get" action="<?php echo get_settings('home'); ?>">
    22                <fieldset>
    3                     <legend><span>Search this website</span></legend>
    4                     <label for="search">for:</label>
     3                    <legend><span><?php esc_html_e( 'Search this website', 'bborg' ); ?></span></legend>
     4                    <label for="search"><?php esc_html_e( 'for:', 'bborg' ); ?></label>
    55                    <input type="text" value="" id="search" name="s" class="searchtext" />
    6                     <input type="submit" value="SEARCH" class="search button" />
     6                    <input type="submit" value="<?php esc_attr_e( 'Search', 'bborg' ); ?>" class="search button" />
    77                </fieldset>
    88            </form>
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/sidebar.php

    r5921 r7305  
    1818                <h3><?php _e( 'Forum Feeds', 'bbporg'); ?></h3>
    1919                <ul>
    20                     <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="Forum Posts">Recent Posts</a></li>
    21                     <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="Forum Topics">Recent Topics</a></li>
     20                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/" title="<?php esc_attr_e( 'Forum Posts', 'bborg' ); ?>"><?php esc_html_e( 'Recent Posts', 'bborg' ); ?></a></li>
     21                    <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic" title="<?php esc_attr_e( 'Forum Topics', 'bborg' ); ?>"><?php esc_html_e( 'Recent Topics', 'bborg' ); ?></a></li>
    2222                </ul>
    2323            </div>
     
    3434            <div>
    3535                <?php bbp_topic_tag_list( 0, array(
    36                     'before' => '<h3>Topic Tags</h3><ul class="topic-tags"><li>',
     36                    'before' => '<h3>' . esc_html__( 'Topic Tags', 'bborg' ) . '</h3><ul class="topic-tags"><li>',
    3737                    'after'  => '</li></ul>',
    3838                    'sep'    => '</li><li>',
     
    4747                    <?php bbp_topic_admin_links( array (
    4848                        'id'     => bbp_get_topic_id(),
    49                         'before' => '<h3>Topic Admin</h3><ul class="topic-admin-links"><li>',
     49                        'before' => '<h3>' . esc_html__( 'Topic Admin', 'bborg' ) . '</h3><ul class="topic-admin-links"><li>',
    5050                        'after'  => '</li></ul>',
    5151                        'sep'    => '</li><li>',
     
    8080                <h3><?php _e( 'Feeds', 'bbporg'); ?></h3>
    8181                <ul>
    82                     <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="All Recent Posts">All Recent Posts</a></li>
    83                     <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="All Recent Topics">All Recent Topics</a></li>
     82                    <li><a class="feed" href="<?php bbp_forums_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Posts', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Posts', 'bborg' ); ?></a></li>
     83                    <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/" title="<?php esc_attr_e( 'All Recent Topics', 'bborg' ); ?>"><?php esc_html_e( 'All Recent Topics', 'bborg' ); ?></a></li>
    8484                </ul>
    8585            </div>
     
    9696        <div class="feature">
    9797            <h3><?php _e('WordPress', 'bbporg'); ?></h3>
    98             <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a>The world&#8217;s most powerful web publishing software.</p>
     98            <p><a href="https://wordpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/wordpress.gif"/></a><?php esc_html_e( 'The world&#8217;s most powerful web publishing software.', 'bborg' ); ?></p>
    9999        </div>
    100100        <div class="feature">
    101101            <h3><?php _e('bbPress', 'bbporg'); ?></h3>
    102             <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a>Simple and elegant forum software from the creators of WordPress.</p>
     102            <p><a href="https://bbpress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/bbpress.gif"/></a><?php esc_html_e( 'Simple and elegant forum software from the creators of WordPress.', 'bborg' ); ?></p>
    103103        </div>
    104104        <div style="margin-right: 0pt;" class="feature">
    105105            <h3><?php _e('BuddyPress', 'bbporg'); ?></h3>
    106             <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a>Create a fully featured niche social-network with a few easy clicks.</p>
     106            <p><a href="https://buddypress.org"><img width="78" height="58" alt="" src="<?php echo get_template_directory_uri(); ?>/images/buddypress.gif"/></a><?php esc_html_e( 'Create a fully featured niche social-network with a few easy clicks.', 'bborg' ); ?></p>
    107107        </div>
    108108
  • sites/trunk/buddypress.org/public_html/wp-content/themes/bb-base/single.php

    r6366 r7305  
    99        );
    1010    ?></cite>
    11     <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more &rarr;' ) ); ?></div>
     11    <div class="single-post" id="post-<?php the_ID(); ?>"><?php the_content( __( 'Read more &rarr;', 'bborg' ) ); ?></div>
    1212
    1313    <hr class="hidden" />
     
    1717<?php endwhile; else : ?>
    1818
    19     <p><em><?php _e( 'Sorry, no posts matched your criteria.' ); ?></em></p>
     19    <p><em><?php _e( 'Sorry, no posts matched your criteria.', 'bborg' ); ?></em></p>
    2020
    2121<?php endif; ?>
Note: See TracChangeset for help on using the changeset viewer.