Changeset 6363
- Timestamp:
- 01/12/2018 03:23:31 AM (7 years ago)
- Location:
- sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/header-front.php
r4449 r6363 1 1 <?php if ( is_front_page() ) : ?> 2 2 <div id="headline"><div id="headline-inner"> 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>3 <h2 class="graphic home"><?php _e( 'Forums, made the WordPress way', 'bbporg' ); ?></h2> 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>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">6 <a href="//bbpress.org/download/" id="big-demo-button" class="button"><?php _e( 'Download bbPress →', 'bbporg' ); ?></a> 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=""> 8 8 </div> 9 9 </div></div> … … 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="<?php esc_attr_e( 'Simple Setup', 'bbporg' ); ?>" 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="<?php esc_attr_e( 'Fully Integrated', 'bbporg' ); ?>" 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="<?php esc_attr_e( 'Single Installation', 'bbporg' ); ?>" 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="<?php esc_attr_e( 'Multisite Forums', 'bbporg' ); ?>" 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> -
sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/page-plugins.php
r1644 r6363 1 1 <?php get_header(); ?> 2 <?php if ( have_posts() ) :while ( have_posts() ) : the_post(); ?>2 <?php while ( have_posts() ) : the_post(); ?> 3 3 <h3 id="post-<?php the_ID(); ?>"><?php the_title(); ?></h3> 4 4 … … 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> … … 36 43 </div> 37 44 38 <?php 39 foreach ( (array) $plugins->plugins as $plugin ) : 40 41 $plugin_author_id = 0; 42 43 if ( !empty( $plugin->contributors ) ) { 44 $plugin_author = get_user_by( 'login', key( $plugin->contributors ) ); 45 $plugin_author_id = $plugin_author->ID; 46 } 47 ?> 45 <?php foreach ( (array) $plugins->plugins as $plugin ) : ?> 48 46 49 47 <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>48 <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 49 52 50 <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> 51 <?php if ( ! empty( $plugin->version ) ) : ?> 52 <div><?php printf( __( 'Version: %s', 'bbporg' ), esc_html( $plugin->version ) ); ?></div> 53 <?php endif; ?> 54 <?php if ( ! empty( $plugin->requires ) ) : ?> 55 <div><?php printf( __( 'Requires: %s', 'bbporg' ), esc_html( $plugin->requires ) ); ?></div> 56 <?php endif; ?> 57 <?php if ( ! empty( $plugin->tested ) ) : ?> 58 <div><?php printf( __( 'Compatible up to: %s', 'bbporg' ), esc_html( $plugin->tested ) ); ?></div> 59 <?php endif; ?> 60 <div><?php printf( __( 'Rating: %s', 'bbporg' ), $plugin->rating_html ); // raw html - do not escape ?></div> 57 61 </div> 58 62 … … 68 72 <div class="bbp-pagination-count"> 69 73 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'] ) ); ?> 74 <?php 75 /* translators: 1: starting number of plugins, 2: ending number, 3: total number */ 76 printf( __( 'Viewing %1$s to %2$s (%3$s)', 'bbporg' ), 77 number_format_i18n( $from_num ), 78 number_format_i18n( $to_num ), 79 number_format_i18n( $plugins->info['results'] ) 80 ); 81 ?> 71 82 72 83 </div> … … 79 90 </div> 80 91 81 <?php endwhile; endif;?>92 <?php endwhile; ?> 82 93 <hr class="hidden" /> 83 94 <?php get_sidebar(); get_footer(); ?> -
sites/trunk/buddypress.org/public_html/wp-content/themes/bbpress-org/sidebar.php
r5922 r6363 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(); ?> … … 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> … … 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(); ?> … … 34 34 <div> 35 35 <?php bbp_topic_tag_list( 0, array( 36 'before' => '<h3> Topic Tags</h3><ul class="topic-tags"><li>',36 'before' => '<h3>' . __( 'Topic Tags', 'bbporg' ) . '</h3><ul class="topic-tags"><li>', 37 37 'after' => '</li></ul>', 38 38 'sep' => '</li><li>', … … 47 47 <?php bbp_topic_admin_links( array ( 48 48 'id' => bbp_get_topic_id(), 49 'before' => '<h3> Topic Admin</h3><ul class="topic-admin-links"><li>',49 'before' => '<h3>' . __( 'Topic Admin', 'bbporg' ) . '</h3><ul class="topic-admin-links"><li>', 50 50 'after' => '</li></ul>', 51 51 'sep' => '</li><li>', … … 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> … … 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; ?> … … 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> … … 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 … … 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> … … 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 ) ); ?> … … 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>
Note: See TracChangeset
for help on using the changeset viewer.