Ticket #1285: 1285.2.patch
File 1285.2.patch, 12.6 KB (added by , 7 years ago) |
---|
-
buddypress.org/public_html/wp-content/themes/bbpress-org/header-front.php
1 1 <?php if ( is_front_page() ) : ?> 2 2 <div id="headline"><div id="headline-inner"> 3 3 <h2 class="graphic home"><?php bloginfo( 'description' ); ?></h2> 4 <p> bbPress is forum software with a twist from the creators of WordPress. Easily setup discussion forums inside your WordPress.org powered site.</p>4 <p><?php _e( 'bbPress is forum software with a twist from the creators of WordPress. Easily setup discussion forums inside your WordPress.org powered site.', 'bbporg' ); ?></p> 5 5 <div> 6 <a href="//bbpress.org/download/" id="big-demo-button" class="button"> Download bbPress →</a>6 <a href="//bbpress.org/download/" id="big-demo-button" class="button"><?php _e( 'Download bbPress →', 'bbporg' ); ?></a> 7 7 <img src="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6" srcset="<?php echo get_stylesheet_directory_uri(); ?>/images/screenshots.png?v=6 1x, <?php echo get_stylesheet_directory_uri(); ?>/images/screenshots-2x.png?v=6 2x" alt="Screenshots"> 8 8 </div> 9 9 </div></div> … … 12 12 <div id="showcase"><div id="showcase-inner"> 13 13 <div class="feature"> 14 14 <h3><?php _e( 'Simple Setup', 'bbporg' ); ?></h3> 15 <p><a href="//bbpress.org/about/simple/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_forums.gif" alt="" width="78" height="58"></a>Easy to setup.<br /> Easy to moderate.<br /> Fast, and clean.</p> 15 <p> 16 <a href="//bbpress.org/about/simple/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_forums.gif" alt="" width="78" height="58"></a> 17 <?php _e( 'Easy to setup.<br /> Easy to moderate.<br /> Fast, and clean.', 'bbporg' ); ?> 18 </p> 16 19 </div> 17 20 <div class="feature"> 18 21 <h3><?php _e( 'Fully Integrated', 'bbporg' ); ?></h3> 19 <p><a href="//bbpress.org/about/integration/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_integration.gif" alt="" width="78" height="58"></a>One central account.<br /> One unified admin area.<br /> One click install.</p> 22 <p> 23 <a href="//bbpress.org/about/integration/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_integration.gif" alt="" width="78" height="58"></a> 24 <?php _e( 'One central account.<br /> One unified admin area.<br /> One click install.', 'bbporg' ); ?> 25 </p> 20 26 </div> 21 27 <div class="feature" style="margin:0;"> 22 28 <h3><?php _e( 'Single Installation', 'bbporg' ); ?></h3> 23 <p><a href="//bbpress.org/about/installation/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_installation.gif" alt="" width="78" height="58"></a>Simple step-by-step installation walks you through your options.</p> 29 <p> 30 <a href="//bbpress.org/about/installation/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_installation.gif" alt="" width="78" height="58"></a> 31 <?php _e( 'Simple step-by-step installation walks you through your options.', 'bbporg' ); ?> 32 </p> 24 33 </div> 25 34 <div class="feature"> 26 35 <h3><?php _e( 'Multisite Forums', 'bbporg' ); ?></h3> 27 <p><a href="//bbpress.org/about/multisite/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_blogs.gif" alt="" width="78" height="58"></a>Divide your site into sections. Allow your users to create content.</p> 36 <p> 37 <a href="//bbpress.org/about/multisite/"><img src="<?php echo get_stylesheet_directory_uri(); ?>/images/feature_blogs.gif" alt="" width="78" height="58"></a> 38 <?php _e( 'Divide your site into sections. Allow your users to create content.', 'bbporg' ); ?> 39 </p> 28 40 </div> 29 41 </div></div> 30 42 <hr class="hidden" /> -
buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php
12 12 <div class="bbp-pagination"> 13 13 <div class="bbp-pagination-count"> 14 14 15 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?> 15 <?php 16 /* translators: 1: starting number of plugins, 2: ending number, 3: total number */ 17 printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), 18 number_format_i18n( $from_num ), 19 number_format_i18n( $to_num ), 20 number_format_i18n( $plugins->info['results'] ) 21 ); 22 ?> 16 23 17 24 </div> 18 25 … … 40 47 41 48 $plugin_author_id = 0; 42 49 43 if ( ! empty( $plugin->contributors ) ) {50 if ( ! empty( $plugin->contributors ) ) { 44 51 $plugin_author = get_user_by( 'login', key( $plugin->contributors ) ); 45 52 $plugin_author_id = $plugin_author->ID; 46 53 } … … 47 54 ?> 48 55 49 56 <div class="single-plugin"> 50 <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/ extend/plugins/' . $plugin->slug ); ?>/" title="Plugin Information"><?php echo esc_html( $plugin->name ); ?></a></h3>57 <h3 class="plugin-title"><a href="<?php echo esc_url( 'https://wordpress.org/plugins/' . $plugin->slug ); ?>/"><?php echo esc_html( $plugin->name ); ?></a></h3> 51 58 52 59 <div class="plugin-meta"> 53 <?php if ( !empty( $plugin->version ) ) : ?><div>Version: <?php echo esc_html( $plugin->version ); ?></div><?php if ( !empty( $plugin->requires ) ) : ?><?php endif; ?><?php endif; ?> 54 <?php if ( !empty( $plugin->requires ) ) : ?><div>Requires: <?php echo esc_html( $plugin->requires ); ?></div><?php if ( !empty( $plugin->tested ) ) : ?><?php endif; ?><?php endif; ?> 55 <?php if ( !empty( $plugin->tested ) ) : ?><div>Compatible up to: <?php echo esc_html( $plugin->tested ); ?></div><?php endif; ?> 56 <div>Rating: <?php echo $plugin->rating_html; // raw html - do not escape ?></div> 60 <?php if ( ! empty( $plugin->version ) ) : ?> 61 <div><?php _e( 'Version:', 'bbporg' ); ?> <?php echo esc_html( $plugin->version ); ?></div> 62 <?php endif; ?> 63 <?php if ( ! empty( $plugin->requires ) ) : ?> 64 <div><?php _e( 'Requires:', 'bbporg' ); ?> <?php echo esc_html( $plugin->requires ); ?></div> 65 <?php endif; ?> 66 <?php if ( ! empty( $plugin->tested ) ) : ?> 67 <div><?php _e( 'Compatible up to:', 'bbporg' ); ?> <?php echo esc_html( $plugin->tested ); ?></div> 68 <?php endif; ?> 69 <div><?php _e( 'Rating:', 'bbporg' ); ?> <?php echo $plugin->rating_html; // raw html - do not escape ?></div> 57 70 </div> 58 71 59 72 <p class="plugin-description" style="font-size: 12px"> … … 67 80 <div class="bbp-pagination"> 68 81 <div class="bbp-pagination-count"> 69 82 70 <?php printf( 'Viewing %1$s to %2$s (%3$s)', number_format_i18n( $from_num ), number_format_i18n( $to_num ), number_format_i18n( $plugins->info['results'] ) ); ?> 83 <?php 84 /* translators: 1: starting number of plugins, 2: ending number, 3: total number */ 85 printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), 86 number_format_i18n( $from_num ), 87 number_format_i18n( $to_num ), 88 number_format_i18n( $plugins->info['results'] ) 89 ); 90 ?> 71 91 72 92 </div> 73 93 -
buddypress.org/public_html/wp-content/themes/bbpress-org/sidebar.php
6 6 <?php if ( bbp_is_single_forum() || bb_base_topic_search_query( false ) ) : ?> 7 7 8 8 <div> 9 <h3><?php _e( 'Forum Info', 'bbporg' ); ?></h3>9 <h3><?php _e( 'Forum Info', 'bbporg' ); ?></h3> 10 10 <ul class="forum-info"> 11 11 <?php bb_base_single_forum_description(); ?> 12 12 </ul> … … 15 15 <?php bb_base_topic_search_form(); ?> 16 16 17 17 <div> 18 <h3><?php _e( 'Forum Feeds', 'bbporg' ); ?></h3>18 <h3><?php _e( 'Forum Feeds', 'bbporg' ); ?></h3> 19 19 <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/"><?php _e( 'Recent Posts', 'bbporg' ); ?></a></li> 21 <li><a class="feed" href="<?php bbp_forum_permalink(); ?>feed/?type=topic"><?php _e( 'Recent Topics', 'bbporg' ); ?></a></li> 22 22 </ul> 23 23 </div> 24 24 … … 25 25 <?php elseif ( bbp_is_single_topic() || bbp_is_topic_edit() || bbp_is_reply_edit() ) : ?> 26 26 27 27 <div> 28 <h3><?php _e( 'Topic Info', 'bbporg' ); ?></h3>28 <h3><?php _e( 'Topic Info', 'bbporg' ); ?></h3> 29 29 <ul class="topic-info"> 30 30 <?php bb_base_single_topic_description(); ?> 31 31 </ul> … … 58 58 <?php else : ?> 59 59 60 60 <div> 61 <h3><?php _e( 'Forums', 'bbporg' ); ?></h3>61 <h3><?php _e( 'Forums', 'bbporg' ); ?></h3> 62 62 <?php echo do_shortcode( '[bbp-forum-index]' ); ?> 63 63 </div> 64 64 <hr class="hidden" /> 65 65 66 66 <div> 67 <h3><?php _e( 'Views', 'bbporg' ); ?></h3>67 <h3><?php _e( 'Views', 'bbporg' ); ?></h3> 68 68 <ul> 69 69 70 70 <?php foreach ( bbp_get_views() as $view => $args ) : ?> 71 71 72 <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>" title="<?php bbp_view_title( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li>72 <li><a class="bbp-view-title" href="<?php bbp_view_url( $view ); ?>"><?php bbp_view_title( $view ); ?></a></li> 73 73 74 74 <?php endforeach; ?> 75 75 … … 77 77 </div> 78 78 79 79 <div> 80 <h3><?php _e( 'Feeds', 'bbporg' ); ?></h3>80 <h3><?php _e( 'Feeds', 'bbporg' ); ?></h3> 81 81 <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/"><?php _e( 'All Recent Posts', 'bbporg' ); ?></a></li> 83 <li><a class="feed" href="<?php bbp_topics_url(); ?>feed/"><?php _e( 'All Recent Topics', 'bbporg' ); ?></a></li> 84 84 </ul> 85 85 </div> 86 86 87 87 <div> 88 <h3><?php _e( 'Tags', 'bbporg' ); ?></h3>88 <h3><?php _e( 'Tags', 'bbporg' ); ?></h3> 89 89 <?php echo do_shortcode( '[bbp-topic-tags]' ); ?> 90 90 </div> 91 91 … … 94 94 <?php elseif ( is_front_page() || is_404() ) : ?> 95 95 96 96 <div class="feature"> 97 <h3><?php _e( 'bbPress Complete', 'bbporg'); ?></h3>98 <p><a href="https://www.packtpub.com/web-development/bbpress-complete" title="bbPress Complete"><img width="225" alt="" src="<?php echo get_stylesheet_directory_uri(); ?>/images/bbpress-packt.jpg"/></a></p>99 <p class="book-description"> A step-by-step guide to creating, managing, and growing a community around your WordPress website.</p>97 <h3><?php _e( 'bbPress Complete', 'bbporg' ); ?></h3> 98 <p><a href="https://www.packtpub.com/web-development/bbpress-complete"><img width="225" alt="<?php esc_attr_e( 'bbPress Complete', 'bbporg' ); ?>" src="<?php echo get_stylesheet_directory_uri(); ?>/images/bbpress-packt.jpg"/></a></p> 99 <p class="book-description"><?php _e( 'A step-by-step guide to creating, managing, and growing a community around your WordPress website.', 'bbporg' ); ?></p> 100 100 </div> 101 101 102 102 <?php elseif ( is_page( array( 'plugins', 116247 ) ) ) : ?> … … 104 104 <?php bb_base_plugin_search_form(); ?> 105 105 106 106 <div> 107 <h3><?php _e( 'Legacy', 'bbporg' ); ?></h3>107 <h3><?php _e( 'Legacy', 'bbporg' ); ?></h3> 108 108 <ul> 109 <li><a href="<?php echo get_permalink( 116247 ); ?>" title="Legacy Plugins">Plugins for bbPress 1.1</a></li>109 <li><a href="<?php echo get_permalink( 116247 ); ?>"><?php _e( 'Plugins for bbPress 1.1', 'bbporg' ); ?></a></li> 110 110 </ul> 111 111 </div> 112 112 … … 113 113 <?php elseif ( ( ! is_page( 'login' ) && ! is_page( 'register' ) && ! is_page( 'lost-password' ) ) || is_home() || is_singular( 'post' ) || is_archive() ) : ?> 114 114 115 115 <div> 116 <h3><?php _e( 'Categories', 'bbporg' ); ?></h3>116 <h3><?php _e( 'Categories', 'bbporg' ); ?></h3> 117 117 <ul> 118 118 <?php wp_list_categories( array( 'title_li' => false ) ); ?> 119 119 </ul> … … 120 120 </div> 121 121 122 122 <div> 123 <h3><?php _e( 'Tags', 'bbporg' ); ?></h3>123 <h3><?php _e( 'Tags', 'bbporg' ); ?></h3> 124 124 <?php wp_tag_cloud(); ?> 125 125 </div> 126 126