Changeset 2376
- Timestamp:
- 01/26/2016 11:41:27 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
r1705 r2376 23 23 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 24 24 <div class="excerpt"><?php the_content_limit(200); ?></div> 25 <div class="meta"><?php tags_with_count( 'flat', '<strong> Tags:</strong> ', ', ', '<br />'); ?><?php edit_post_link( 'Edit this entry'); ?></div>25 <div class="meta"><?php tags_with_count( 'flat', '<strong>' . __( 'Tags:', 'wporg-showcase' ) . '</strong> ', ', ', '<br />'); ?><?php edit_post_link( __( 'Edit this entry', 'wporg-showcase' ) ); ?></div> 26 26 <div style="clear:both;"></div> 27 27 </div> … … 33 33 <?php else : // have_posts ?> 34 34 35 <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.'); ?></p>35 <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p> 36 36 37 37 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php
r1474 r2376 1 1 <?php if ( !empty($post->post_password) && $_COOKIE['wp-postpass_' . COOKIEHASH] != $post->post_password) : ?> 2 <p><?php _e( 'Enter your password to view comments.'); ?></p>2 <p><?php _e( 'Enter your password to view comments.', 'wporg-showcase' ); ?></p> 3 3 <?php return; endif; ?> 4 4 5 5 <?php if ( is_single() ) : ?> 6 <div class="nextprev"><span class="prev"><?php previous_post( '« %', '');?></span><span class="next"><?php next_post('% »', ''); ?></span><div class="clear"></div></div>6 <div class="nextprev"><span class="prev"><?php previous_post( __( '« %', 'wporg-showcase' ), '');?></span><span class="next"><?php next_post( __( '% »', 'wporg-showcase' ), ''); ?></span><div class="clear"></div></div> 7 7 <?php endif; ?> 8 8 9 9 <?php if ( $comments ) : ?> 10 <h2 class="fancy"><?php comments_number( __('No Pings'), __('1 Ping'), __('% Pings')); ?></h2>10 <h2 class="fancy"><?php comments_number( __( 'No Pings', 'wporg-showcase' ), __( '1 Ping', 'wporg-showcase' ), __( '% Pings', 'wporg-showcase' ) ); ?></h2> 11 11 <ol id="comments"> 12 12 … … 14 14 <li id="comment-<?php comment_ID() ?>" <?php if ($i % 2) echo "class='altc'"; ?>> 15 15 <?php comment_text() ?> 16 <p><cite><?php comment_type(__('Comment'), __('Trackback'), __('Pingback')); ?> from <?php comment_author_link() ?> on <?php comment_date() ?></cite> <?php edit_comment_link(__("Edit This"), ' |'); ?></p> 16 <p><cite><?php printf( 17 _x( '%1$s from %2$s on %3$s', '{comment type} from {comment author link} on {comment date}', 'wporg-showcase' ), 18 comment_type( __( 'Comment', 'wporg-showcase' ), __( 'Trackback', 'wporg-showcase' ), __( 'Pingback', 'wporg-showcase' ) ), 19 comment_author_link(), 20 comment_date() 21 ); ?></cite> <?php edit_comment_link( __( 'Edit This', 'wporg-showcase' ), ' |' ); ?></p> 17 22 </li> 18 23 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
r2077 r2376 70 70 global $post; 71 71 72 echo '<h4> Flavor</h4>73 72 echo '<h4>' . __( 'Flavor', 'wporg-showcase' ). '</h4>'; 73 echo '<ul id="flavors">'; 74 74 75 75 $flavors = array( 'WordPress.org', 'WordPress.com', 'WordPress.com VIP', 'WordPress MS' ); … … 84 84 85 85 if ( in_category( 'BuddyPress' ) ) { 86 echo '<li class="flavor-used"><img src="' . get_template_directory_uri() . '/images/flavor-bp.png" /> BuddyPress</li>';87 } else { 88 echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> BuddyPress</li>';86 echo '<li class="flavor-used"><img src="' . get_template_directory_uri() . '/images/flavor-bp.png" /> ' . __( 'BuddyPress', 'wporg-showcase' ). '</li>'; 87 } else { 88 echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> ' . __( 'BuddyPress', 'wporg-showcase' ). '</li>'; 89 89 } 90 90 … … 94 94 function blockquote_style( $content ) { 95 95 if ( is_single() ) 96 $content = str_replace( '</blockquote>', '<cite> Source:<a href="http://' . get_site_domain( false, false ) . '">' . get_site_domain( false, false, true ) . '</a></cite><div class="clear"></div></blockquote>', $content );96 $content = str_replace( '</blockquote>', '<cite>' . __( 'Source:', 'wporg-showcase' ). ' <a href="http://' . get_site_domain( false, false ) . '">' . get_site_domain( false, false, true ) . '</a></cite><div class="clear"></div></blockquote>', $content ); 97 97 98 98 return $content; … … 120 120 $tags = get_terms( 'post_tag', $args ); 121 121 122 $out = '<h4> Browse Popular Tags</h4>';122 $out = '<h4>' . __( 'Browse Popular Tags', 'wporg-showcase' ). '</h4>'; 123 123 $out .= '<ul class="submenu wpsc-popular-tags">'; 124 124 … … 139 139 function breadcrumb() { ?> 140 140 141 <h3><a href="<?php echo home_url( '/' ); ?>" title=" Showcase">Showcase</a>141 <h3><a href="<?php echo home_url( '/' ); ?>" title="<?php esc_attr_e( 'Showcase', 'wporg-showcase' ); ?>"><?php _e( 'Showcase', 'wporg-showcase' ); ?></a> 142 142 143 143 <?php if ( is_search() ) : ?> 144 » Search for: <?php the_search_query(); ?>144 <?php printf( __( '» Search for: %s', 'wporg-showcase' ), get_search_query() ); ?> 145 145 <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?> 146 » Archives146 <?php _e( '» Archives', 'wporg-showcase' ); ?> 147 147 <?php else : ?> 148 148 <?php if ( is_category() ) : ?> 149 » Flavor149 <?php _e( '» Flavor', 'wporg-showcase' ); ?> 150 150 <?php elseif ( is_tag() ) : ?> 151 » Tag151 <?php _e( '» Tag', 'wporg-showcase' ); ?> 152 152 <?php endif; // is_category ?> 153 153 154 » <?php echo wp_get_document_title(); ?>154 <?php printf( __( '» %s', 'wporg-showcase' ), wp_get_document_title() ); ?> 155 155 <?php endif; // is_search ?> 156 156 … … 161 161 function sc_feed_author( $author ) { 162 162 if ( is_feed() ) 163 $author = 'WordPress Showcase';163 $author = _x( 'WordPress Showcase', 'Feed Author', 'wporg-showcase' ); 164 164 165 165 return $author; … … 175 175 foreach ( $posttags as $tag ) { 176 176 if ( $tag->count > 1 && !is_tag($tag->slug) ) { 177 $tag_link = '<a href="' . get_term_link($tag, 'post_tag') . '" rel="tag">' . $tag->name . ' (' . $tag->count . ')</a>';177 $tag_link = '<a href="' . get_term_link($tag, 'post_tag') . '" rel="tag">' . sprintf( _x( '%1$s (%2$s)', 'Tag name (tag count)', 'wporg-showcase' ), $tag->name, $tag->count ) . '</a>'; 178 178 } else { 179 179 $tag_link = $tag->name; … … 249 249 } elseif ( is_category() ) { 250 250 // Prepend 'Flavor: ' to category document titles. 251 $parts['title'] = 'Flavor: ' . $parts['title'];251 $parts['title'] = sprintf( __( 'Flavor: %s', 'wporg-showcase' ) . $parts['title'] ); 252 252 } elseif ( is_tag() ) { 253 253 // Prepend 'Tag: ' to tag document titles. 254 $parts['title'] = 'Tag: ' . $parts['title'];254 $parts['title'] = sprintf( __( 'Tag: %s', 'wporg-showcase' ) . $parts['title'] ); 255 255 } 256 256 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
r2077 r2376 9 9 <div id="headline"> 10 10 <div class="wrapper"> 11 <h2> Showcase</h2>11 <h2><?php _e( 'Showcase', 'wporg-showcase' ); ?></h2> 12 12 </div> 13 13 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php
r1474 r2376 22 22 <?php else : // have_posts ?> 23 23 24 <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.'); ?></p>24 <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p> 25 25 26 26 <?php endif; ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
r1705 r2376 26 26 <a href="<?php echo $wpsc_url; ?>" class="wpsc-linkout"> 27 27 <?php echo str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ); ?> 28 <span class="linkout-symbol"> ➲</span>28 <span class="linkout-symbol"><?php _ex( '➲', 'linkout symbol', 'wporg-showcase' ); ?></span> 29 29 </a> 30 30 <?php endif; // $wpsc_url ?> … … 35 35 ?> 36 36 <a class="wpsc-hero-learnmore" href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"> 37 Learn More →37 <?php _e( 'Learn More →', 'wporg-showcase' ); ?> 38 38 </a> 39 39 </div><!-- .wpsc-hero-slide-content --> … … 56 56 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 3, 'tag' => 'business', 'orderby' => 'rand' ) ); ?> 57 57 <?php if ( have_posts() ) : ?> 58 <h3> Featured Business Sites</h3>58 <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3> 59 59 <ul class="wpsc-recent"> 60 60 … … 79 79 <?php if ( have_posts() ) : ?> 80 80 81 <h3> Recently Added Sites</h3>81 <h3><?php _e( 'Recently Added Sites', 'wporg-showcase' ); ?></h3> 82 82 <ul class="wpsc-recent"> 83 83 … … 97 97 <?php endwhile; // have_posts ?> 98 98 </ul> 99 <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"> View All Showcase Sites →</a>99 <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"><?php _e( 'View All Showcase Sites →', 'wporg-showcase' ); ?></a> 100 100 101 101 <?php endif; // have_posts ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php
r1474 r2376 26 26 <?php if ( $_POST && ! $error ) : ?> 27 27 <div id="return"> 28 <h3> Submitted!</h3>29 <p> Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you'd like to submit another site, head back to the <a href="http://wordpress.org/showcase/submit-a-wordpress-site/">submission form</a>.</p>28 <h3><?php _e( 'Submitted!', 'wporg-showcase' ); ?></h3> 29 <p><?php printf( __( 'Thanks! You have successfully submitted a site for consideration to be added to the WordPress Showcase. If the site you submitted is added, you will be contacted via email within one week. We appreciate your interest in the WordPress Showcase! If you\'d like to submit another site, head back to the <a href="%s">submission form</a>.', 'wporg-showcase' ), 'https://wordpress.org/showcase/submit-a-wordpress-site/' ); ?></p> 30 30 </div> 31 31 <?php endif; // $_POST && ! $error ?> … … 48 48 ?> 49 49 50 <?php if ( $error ) : ?> 51 <h3 id="return"> Whoops!</h3>50 <?php if ( $error ) : ?> 51 <h3 id="return"><?php _e( 'Whoops!', 'wporg-showcase' ); ?></h3> 52 52 53 53 <?php if ( strstr( $url, 'blogspot.com' ) || strstr( $url, 'blogger.com' ) ) : ?> 54 <p> Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.</p>54 <p><?php _e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.', 'wporg-showcase' ); ?></p> 55 55 56 56 <?php elseif ( $site_detected == "NO" ) : ?> 57 <p> We didn't detect WordPress at the given URL. Please submit the URL of a site running WordPress.</p>57 <p><?php _e( 'We didn\'t detect WordPress at the given URL. Please submit the URL of a site running WordPress.', 'wporg-showcase' ); ?></p> 58 58 59 59 <?php elseif ( $site_detected == "YES" && version_compare($site_version, $latest_release, '<' ) ) : ?> 60 <p>We were unable to detect the latest version of WordPress at the given URL. 61 We'd prefer submissions to the showcase to be running up-to-date versions of WordPress.</p> 62 <p>If you're sure the site is running the latest version of WordPress, then please 63 check the URL to make sure it's accurate, and that the URL you submit points directly 64 to the location where WordPress is running.</p> 60 <p><?php _e( 'We were unable to detect the latest version of WordPress at the given URL. We\'d prefer submissions to the showcase to be running up-to-date versions of WordPress.', 'wporg-showcase' ); ?></p> 61 <p><?php _e( 'If you\'re sure the site is running the latest version of WordPress, then please check the URL to make sure it\'s accurate, and that the URL you submit points directly to the location where WordPress is running.', 'wporg-showcase' ); ?></p> 65 62 66 63 <?php else : ?> 67 <p>There seems to have been a problem with the information you entered. Please make sure 68 all fields have data and resubmit.</p> 64 <p><?php _e( 'There seems to have been a problem with the information you entered. Please make sure all fields have data and resubmit.', 'wporg-showcase' ); ?></p> 69 65 70 66 <?php endif; ?> … … 75 71 <input type="hidden" name="comment_post_ID" value="<?php echo $post->ID; ?>" /> 76 72 77 <p><label for="submitname"><?php _e( 'Your Name'); ?></label><br />73 <p><label for="submitname"><?php _e( 'Your Name', 'wporg-showcase' ); ?></label><br /> 78 74 <input type="text" name="submitname" id="submitname" class="text" value="<?php echo esc_attr( $submitname ); ?>" size="28" tabindex="1" /></p> 79 75 80 <p><label for="email"><?php _e( 'Your E-mail'); ?></label><br />76 <p><label for="email"><?php _e( 'Your E-mail', 'wporg-showcase'); ?></label><br /> 81 77 <input type="text" name="email" id="email" value="<?php echo esc_attr( $email ); ?>" size="28" tabindex="2" class="text" /></p> 82 78 83 <p><label for="url"><?php _e( 'Site URL'); ?></label><br />79 <p><label for="url"><?php _e( 'Site URL', 'wporg-showcase' ); ?></label><br /> 84 80 <input type="text" name="url" id="url" value="<?php echo esc_url( $url ); ?>" size="28" tabindex="3" class="text" /></p> 85 81 86 <p><label for="owner"><?php _e( "Do you own this site? (It's okay if you don't - we just want to know for contact purposes.)"); ?></label><br />82 <p><label for="owner"><?php _e( "Do you own this site? (It's okay if you don't - we just want to know for contact purposes.)", 'wporg-showcase' ); ?></label><br /> 87 83 <select name="owner" id="owner"> 88 <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php _e( 'Yes' ); ?></option>89 <option value="no" <?php selected( $owner, 'no' ); ?> ><?php _e( 'No' ); ?></option>84 <option value="yes" <?php selected( $owner, 'yes' ); ?> ><?php _e( 'Yes', 'wporg-showcase' ); ?></option> 85 <option value="no" <?php selected( $owner, 'no' ); ?> ><?php _e( 'No', 'wporg-showcase' ); ?></option> 90 86 </select> 91 87 92 <p><label for="description"><?php _e( 'Please describe the site and, if applicable, the person or organization it represents.' ); ?></label><br />88 <p><label for="description"><?php _e( 'Please describe the site and, if applicable, the person or organization it represents.', 'wporg-showcase' ); ?></label><br /> 93 89 <textarea name="description" id="description" cols="60" rows="4" tabindex="4" class="text"><?php echo esc_textarea( $description ); ?></textarea></p> 94 90 95 <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?' ); ?></label><br />91 <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?', 'wporg-showcase' ); ?></label><br /> 96 92 <textarea name="why" id="why" cols="60" rows="4" tabindex="5" class="text"><?php echo esc_textarea( $why ); ?></textarea></p> 97 93 98 <p class="required"> * All fields are required.</p>94 <p class="required"><?php _e( '* All fields are required.', 'wporg-showcase' ); ?></p> 99 95 100 96 <?php … … 114 110 ?> 115 111 116 <p><input id="submit" type="submit" tabindex="6" value="<?php _e('Submit Site'); ?>" class="button" /></p>112 <p><input id="submit" type="submit" tabindex="6" value="<?php esc_attr_e( 'Submit Site', 'wporg-showcase' ); ?>" class="button" /></p> 117 113 <?php do_action( 'comment_form', $post->ID ); ?> 118 114 </form> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php
r1474 r2376 1 1 <div class="col-2 secondary"> 2 <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"> Submit a Site →</a>2 <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site →', 'wporg-showcase' ); ?></a> 3 3 4 <h4 class="search"> Search</h4>4 <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4> 5 5 <?php // @todo: use get_search_form(); ?> 6 6 <form method="get" id="searchform" action="<?php echo home_url( '/' ); ?>"> 7 7 <input type="text" value="<?php the_search_query(); ?>" name="s" id="s" class="text" /> 8 <input type="submit" id="searchsubmit" value=" Go" class="button" />8 <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Go', 'wporg-showcase' ); ?>" class="button" /> 9 9 </form> 10 10 11 11 12 12 <?php popular_tags(); ?> 13 <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"> View All Tags →</a>13 <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags →', 'wporg-showcase' ); ?></a> 14 14 15 <h4> Browse by Flavor</h4>15 <h4><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4> 16 16 <ul class="submenu"> 17 17 <?php wp_list_categories( 'exclude=4&title_li=' ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php
r1474 r2376 1 1 <div class="col-3"> 2 <h4> Top Rated</h4>2 <h4><?php _e( 'Top Rated', 'wporg-showcase' ); ?></h4> 3 3 <table class="top-rated"> 4 4 <?php get_highest_rated( 'post', 10, 10 ); ?> 5 5 </table> 6 6 7 <h4> Most Votes</h4>7 <h4><?php _e( 'Most Votes', 'wporg-showcase' ); ?></h4> 8 8 <table class="most-votes"> 9 9 <?php get_most_rated(); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php
r1705 r2376 50 50 ?> 51 51 52 <?php edit_post_link( 'Edit This', '<div class="meta">', '</div>'); ?>52 <?php edit_post_link( __( 'Edit This', 'wporg-showcase' ), '<div class="meta">', '</div>'); ?> 53 53 54 54 </div><!-- .storycontent --> … … 56 56 </div><!-- .col-5 --> 57 57 <div class="col-13"> 58 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"> Visit Site</a></p>58 <p class="button"><a href="http://<?php get_site_domain( false ); ?>"><?php _e( 'Visit Site', 'wporg-showcase' ); ?></a></p> 59 59 60 <h4> Rating</h4>60 <h4><?php _e( 'Rating', 'wporg-showcase' ); ?></h4> 61 61 <?php the_ratings(); ?> 62 <p class='rating-descrip'> Rate this site based on their implementation and use of WordPress.</p>62 <p class='rating-descrip'><?php _e( 'Rate this site based on their implementation and use of WordPress.', 'wporg-showcase' ); ?></p> 63 63 64 64 <?php wp_flavors(); ?> 65 65 <br /> 66 <?php tags_with_count( 'list', '<h4> Tags</h4><ul>', '', '</ul>' ); ?>66 <?php tags_with_count( 'list', '<h4>' . __( 'Tags', 'wporg-showcase' ) . '</h4><ul>', '', '</ul>' ); ?> 67 67 </div> 68 68
Note: See TracChangeset
for help on using the changeset viewer.