Ticket #1507: wporg-showcase.patch
File wporg-showcase.patch, 16.2 KB (added by , 9 years ago) |
---|
-
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
22 22 </a> 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:</strong> ', ', ', '<br />'); ?><?php edit_post_link( __( 'Edit this entry' ) ); ?></div> 26 26 <div style="clear:both;"></div> 27 27 </div> 28 28 … … 32 32 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.' ); ?></p> 36 36 37 37 <?php endif; ?> 38 38 -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/comments.php
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.' ); ?></p> 3 3 <?php return; endif; ?> 4 4 5 5 <?php if ( is_single() ) : ?> … … 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' ), __( '1 Ping' ), __( '% Pings' ) ); ?></h2> 11 11 <ol id="comments"> 12 12 13 13 <?php foreach ($comments as $comment) : $i++; ?> 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 __( '%1$s from %2$s on %2$s' ), 18 comment_type( __( 'Comment' ), __( 'Trackback' ), __( 'Pingback' ) ), 19 comment_author_link(), 20 comment_date() 21 ); ?></cite> <?php edit_comment_link( __( 'Edit This' ), ' |' ); ?></p> 17 22 </li> 18 23 19 24 <?php endforeach; ?> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/functions.php
69 69 function wp_flavors() { 70 70 global $post; 71 71 72 echo '<h4> Flavor</h4>73 72 echo '<h4>' . __( 'Flavor' ). '</h4>'; 73 echo '<ul id="flavors">'; 74 74 75 75 $flavors = array( 'WordPress.org', 'WordPress.com', 'WordPress.com VIP', 'WordPress MS' ); 76 76 … … 83 83 } 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>';86 echo '<li class="flavor-used"><img src="' . get_template_directory_uri() . '/images/flavor-bp.png" /> ' . __( 'BuddyPress' ). '</li>'; 87 87 } else { 88 echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> BuddyPress</li>';88 echo '<li><img src="' . get_template_directory_uri() . '/images/flavor-bp2.png" /> ' . __( 'BuddyPress' ). '</li>'; 89 89 } 90 90 91 91 echo '</ul>'; … … 93 93 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:' ). ' <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; 99 99 } … … 119 119 $args = array('number' => $number, 'orderby' => 'count', 'order' => 'DESC'); 120 120 $tags = get_terms( 'post_tag', $args ); 121 121 122 $out = '<h4> Browse Popular Tags</h4>';122 $out = '<h4>' . __( 'Browse Popular Tags' ). '</h4>'; 123 123 $out .= '<ul class="submenu wpsc-popular-tags">'; 124 124 125 125 foreach ($tags as $tag) { … … 138 138 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 _e( 'Showcase' ); ?>"><?php _e( 'Showcase' ); ?></a> 142 142 143 143 <?php if ( is_search() ) : ?> 144 » Search for: <?php the_search_query(); ?>144 <?php printf( __( '» Search for: %s' ), the_search_query() ); ?> 145 145 <?php elseif ( strstr( $_SERVER['REQUEST_URI'], '/showcase/archives' ) ) : ?> 146 » Archives146 <?php _e( '» Archives' ); ?> 147 147 <?php else : ?> 148 148 <?php if ( is_category() ) : ?> 149 » Flavor149 <?php _e( '» Flavor' ); ?> 150 150 <?php elseif ( is_tag() ) : ?> 151 » Tag151 <?php _e( '» Tag' ); ?> 152 152 <?php endif; // is_category ?> 153 153 154 » <?php echo wp_get_document_title(); ?>154 <?php printf( __( '» %s' ), wp_get_document_title() ); ?> 155 155 <?php endif; // is_search ?> 156 156 157 157 </h3> … … 248 248 $parts['title'] = ''; 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' ) . $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' ) . $parts['title'] ); 255 255 } 256 256 257 257 return $parts; -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/header.php
8 8 ?> 9 9 <div id="headline"> 10 10 <div class="wrapper"> 11 <h2> Showcase</h2>11 <h2><?php _e( 'Showcase' ); ?></h2> 12 12 </div> 13 13 </div> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
25 25 <?php if ( $wpsc_url ) : // make sure the URL is valid (esc_url will return an empty string if not) ?> 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 _e( '➲' ); ?></span> 29 29 </a> 30 30 <?php endif; // $wpsc_url ?> 31 31 … … 34 34 the_excerpt(); 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 →' ); ?> 38 38 </a> 39 39 </div><!-- .wpsc-hero-slide-content --> 40 40 </div><!-- .wpsc-hero-slide --> … … 55 55 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' ); ?></h3> 59 59 <ul class="wpsc-recent"> 60 60 61 61 <?php while ( have_posts() ) : the_post(); ?> … … 78 78 <?php query_posts( array( 'posts_per_page' => 9 ) ); ?> 79 79 <?php if ( have_posts() ) : ?> 80 80 81 <h3> Recently Added Sites</h3>81 <h3><?php _e( 'Recently Added Sites' ); ?></h3> 82 82 <ul class="wpsc-recent"> 83 83 84 84 <?php while ( have_posts() ) : the_post(); ?> … … 96 96 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 →' ); ?></a> 100 100 101 101 <?php endif; // have_posts ?> 102 102 -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php
25 25 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!' ); ?></h3> 29 <p><?php _e( '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> 30 30 </div> 31 31 <?php endif; // $_POST && ! $error ?> 32 32 … … 48 48 ?> 49 49 50 50 <?php if ( $error ) : ?> 51 <h3 id="return"> Whoops!</h3>51 <h3 id="return"><?php _e( 'Whoops!' ); ?></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.' ); ?></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.' ); ?></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.' ); ?></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.' ); ?></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.' ); ?></p> 69 65 70 66 <?php endif; ?> 71 67 … … 95 91 <p><label for="why"><?php _e( 'What justifies this site being added to the WordPress Showcase? What makes it unique or interesting?' ); ?></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.' ); ?></p> 99 95 100 96 <?php 101 97 if ($use_recaptcha) { … … 113 109 } // $use_recaptcha 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 _e( 'Submit Site' ); ?>" class="button" /></p> 117 113 <?php do_action( 'comment_form', $post->ID ); ?> 118 114 </form> 119 115 <?php } // empty( $_POST ) || $error ?> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php
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 →' ); ?></a> 3 3 4 <h4 class="search"> Search</h4>4 <h4 class="search"><?php _e( 'Search' ); ?></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 _e( 'Go' ); ?>" 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 →' ); ?></a> 14 14 15 <h4> Browse by Flavor</h4>15 <h4><?php _e( 'Browse by Flavor' ); ?></h4> 16 16 <ul class="submenu"> 17 17 <?php wp_list_categories( 'exclude=4&title_li=' ); ?> 18 18 </ul> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-right.php
1 1 <div class="col-3"> 2 <h4> Top Rated</h4>2 <h4><?php _e( 'Top Rated' ); ?></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' ); ?></h4> 8 8 <table class="most-votes"> 9 9 <?php get_most_rated(); ?> 10 10 </table> -
trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php
55 55 <?php comments_template(); ?> 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' ); ?></a></p> 59 59 60 <h4> Rating</h4>60 <h4><?php _e( 'Rating' ); ?></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.' ); ?></p> 63 63 64 64 <?php wp_flavors(); ?> 65 65 <br />