Changeset 2377
- Timestamp:
- 01/26/2016 11:48:33 PM (9 years ago)
- Location:
- sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase
- Files:
-
- 8 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/archive.php
r2376 r2377 1 <?php 2 get_header(); 1 <?php 2 get_header(); 3 3 4 4 // order the displayed posts by the ratings average … … 8 8 <div id="pagebody"> 9 9 <div class="wrapper"> 10 10 11 11 <?php get_sidebar( 'left' ); ?> 12 12 <div class="col-7"> 13 13 <?php breadcrumb(); ?> 14 14 15 15 <?php if ( have_posts() ) : ?> 16 16 17 17 <?php while ( have_posts() ) : the_post(); ?> 18 18 … … 28 28 29 29 <?php endwhile; // have_posts ?> 30 30 31 31 <?php if ( 1 != $wp_query->max_num_pages || function_exists( 'wp_page_numbers' ) ) { wp_page_numbers(); } ?> 32 32 33 33 <?php else : // have_posts ?> 34 34 … … 38 38 39 39 </div> 40 40 41 41 <?php get_sidebar( 'right' ); ?> 42 42 43 43 </div> 44 44 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php
r1474 r2377 2 2 /** 3 3 * Special Showcase RSS2 Feed Template 4 * 4 * 5 5 * Adds fields for the site screenshot and URL 6 6 * <sc:screenshotURL> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php
r2376 r2377 10 10 query_posts("showposts=" . $num_posts . "&post_type=post&post_status=publish" . $offset); 11 11 ?> 12 12 13 13 <?php if ( have_posts() ) : ?> 14 14 <?php while ( have_posts() ) : the_post(); ?> … … 16 16 <?php the_date('', '<h4>', '</h4>'); ?> 17 17 <div class="storycontent"><a href='<?php the_permalink(); ?>' title='<?php the_title_attribute(); ?>'><?php the_title(); ?></a></div> 18 18 19 19 <?php endwhile; // have_posts ?> 20 20 <?php if ( 1 != $wp_query->max_num_pages || function_exists( 'wp_page_numbers' ) ) { wp_page_numbers(); } ?> 21 21 22 22 <?php else : // have_posts ?> 23 23 24 24 <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p> 25 25 26 26 <?php endif; ?> 27 27 -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
r2376 r2377 7 7 ?> 8 8 <div id="pagebody" class="home"> 9 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 9 ) ); ?> 9 <?php query_posts( array( 'cat' => 4, 'posts_per_page' => 9 ) ); ?> 10 10 <?php if ( have_posts() ) : ?> 11 11 … … 16 16 17 17 <div class="wpsc-hero-slide"> 18 <div class="wpsc-hero-slide-content"> 18 <div class="wpsc-hero-slide-content"> 19 19 <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img"> 20 20 <?php site_screenshot_tag( 457 ); ?> 21 21 </a> 22 22 <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3> 23 23 24 24 <?php $wpsc_url = esc_url( get_post_meta( $post->ID, 'domain', true ) ); ?> 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 <?php echo str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ); ?> 27 <?php echo str_replace( parse_url( $wpsc_url, PHP_URL_SCHEME ) . '://', '', untrailingslashit( $wpsc_url ) ); ?> 28 28 <span class="linkout-symbol"><?php _ex( '➲', 'linkout symbol', 'wporg-showcase' ); ?></span> 29 29 </a> 30 30 <?php endif; // $wpsc_url ?> 31 32 <?php 33 the_tags( '<ul class="wpsc-tags"><li>','</li><li>','</li></ul>' ); 31 32 <?php 33 the_tags( '<ul class="wpsc-tags"><li>','</li><li>','</li></ul>' ); 34 34 the_excerpt(); 35 35 ?> … … 39 39 </div><!-- .wpsc-hero-slide-content --> 40 40 </div><!-- .wpsc-hero-slide --> 41 41 42 42 <?php endwhile; ?> 43 43 44 </div> 44 </div> 45 45 <div class="wpsc-slide-nav"></div> 46 46 </div> <!-- .wpsc-hero --> 47 47 48 48 <?php endif; ?> 49 49 50 50 <div class="wrapper"> 51 51 52 52 <?php get_sidebar( 'left' ); ?> 53 53 54 54 <div class="col-7 main-content"> 55 55 … … 58 58 <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3> 59 59 <ul class="wpsc-recent"> 60 60 61 61 <?php while ( have_posts() ) : the_post(); ?> 62 63 <li> 62 63 <li> 64 64 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 65 65 <?php site_screenshot_tag( 215 ); ?> … … 67 67 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 68 68 <?php 69 the_content_limit( 90 ); 70 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 69 the_content_limit( 90 ); 70 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 71 71 ?> 72 72 </li> 73 73 74 74 <?php endwhile; // have_posts ?> 75 75 </ul> … … 84 84 <?php while ( have_posts() ) : the_post(); ?> 85 85 86 <li> 86 <li> 87 87 <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"> 88 88 <?php site_screenshot_tag( 215 ); ?> 89 89 </a> 90 90 <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5> 91 <?php 91 <?php 92 92 the_tags( '<ul class="wpsc-tags"><li>', '</li><li>', '</li></ul>' ); 93 if ( function_exists( 'the_ratings' ) ) the_ratings(); 93 if ( function_exists( 'the_ratings' ) ) the_ratings(); 94 94 ?> 95 95 </li> 96 96 97 97 <?php endwhile; // have_posts ?> 98 98 </ul> 99 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 ?> 102 102 103 103 </div> 104 104 </div> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php
r2376 r2377 50 50 <?php if ( $error ) : ?> 51 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 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 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 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 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> 62 62 63 63 <?php else : ?> 64 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> 65 65 66 66 <?php endif; ?> 67 67 68 68 <?php endif; // $error ?> 69 69 … … 97 97 if ($use_recaptcha) { 98 98 $recaptcha_url = 'http://www.google.com/recaptcha/api/challenge?k=' . $recaptcha_pubkey; 99 if ( !empty( $recaptcha_error ) ) 99 if ( !empty( $recaptcha_error ) ) 100 100 $recaptcha_url .= '&error=' . $recaptcha_error; 101 101 ?> … … 106 106 <input type="hidden" name="recaptcha_response_field" value="manual_challenge"> 107 107 </noscript> 108 <?php 108 <?php 109 109 } // $use_recaptcha 110 110 ?> 111 111 112 112 <p><input id="submit" type="submit" tabindex="6" value="<?php esc_attr_e( 'Submit Site', 'wporg-showcase' ); ?>" class="button" /></p> 113 113 <?php do_action( 'comment_form', $post->ID ); ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page.php
r1474 r2377 5 5 <?php get_sidebar( 'left' ); ?> 6 6 <div class="col-7"> 7 7 8 8 <?php if ( have_posts() ) : ?> 9 9 <?php while ( have_posts() ) : the_post(); ?> 10 10 11 11 <?php breadcrumb(); ?> 12 12 <div class="storycontent"> 13 13 <?php the_content(); ?> 14 14 </div> 15 15 16 16 <?php endwhile; // have_posts ?> 17 17 <?php endif; // have_posts ?> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php
r2376 r2377 1 1 <div class="col-2 secondary"> 2 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 4 <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4> 5 5 <?php // @todo: use get_search_form(); ?> … … 8 8 <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Go', 'wporg-showcase' ); ?>" class="button" /> 9 9 </form> 10 11 10 12 11 <?php popular_tags(); ?> 13 12 <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags →', 'wporg-showcase' ); ?></a> 14 13 15 14 <h4><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4> 16 15 <ul class="submenu"> -
sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php
r2376 r2377 4 4 <div class="wrapper"> 5 5 <?php get_sidebar( 'left' ); ?> 6 6 7 7 <?php if ( have_posts() ) : ?> 8 8 <?php while ( have_posts() ) : the_post(); ?> 9 9 10 10 <div class="col-5"> 11 11 <div class="storycontent"> … … 39 39 $output .= "</dl>"; 40 40 if ( $key > 0 && $key+1 % 2 == 0 ) 41 $output .= "<br style='clear: both' />"; 41 $output .= "<br style='clear: both' />"; 42 42 } 43 43
Note: See TracChangeset
for help on using the changeset viewer.