Making WordPress.org

Changeset 2377


Ignore:
Timestamp:
01/26/2016 11:48:33 PM (9 years ago)
Author:
coffee2code
Message:

W.org Showcase: Trim trailing whitespace.

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
     2get_header();
    33
    44// order the displayed posts by the ratings average
     
    88<div id="pagebody">
    99    <div class="wrapper">
    10        
     10
    1111        <?php get_sidebar( 'left' ); ?>
    1212        <div class="col-7">
    1313        <?php breadcrumb(); ?>
    14        
     14
    1515        <?php if ( have_posts() ) : ?>
    16            
     16
    1717            <?php while ( have_posts() ) : the_post(); ?>
    1818
     
    2828
    2929            <?php endwhile; // have_posts ?>
    30            
     30
    3131            <?php if ( 1 != $wp_query->max_num_pages || function_exists( 'wp_page_numbers' ) ) { wp_page_numbers(); } ?>
    32        
     32
    3333        <?php else : // have_posts ?>
    3434
     
    3838
    3939        </div>
    40        
     40
    4141        <?php get_sidebar( 'right' ); ?>
    42        
     42
    4343    </div>
    4444</div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/feed-extras.php

    r1474 r2377  
    22/**
    33 * Special Showcase RSS2 Feed Template
    4  * 
     4 *
    55 * Adds fields for the site screenshot and URL
    66 * <sc:screenshotURL>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/index.php

    r2376 r2377  
    1010            query_posts("showposts=" . $num_posts . "&post_type=post&post_status=publish" . $offset);
    1111        ?>
    12        
     12
    1313        <?php if ( have_posts() ) : ?>
    1414            <?php while ( have_posts() ) : the_post(); ?>
     
    1616                <?php the_date('', '<h4>', '</h4>'); ?>
    1717                <div class="storycontent"><a href='<?php the_permalink(); ?>' title='<?php the_title_attribute(); ?>'><?php the_title(); ?></a></div>
    18        
     18
    1919            <?php endwhile; // have_posts ?>
    2020            <?php if ( 1 != $wp_query->max_num_pages || function_exists( 'wp_page_numbers' ) ) { wp_page_numbers(); } ?>
    21            
     21
    2222        <?php else : // have_posts ?>
    23            
     23
    2424            <p><?php _e( 'Sorry, no sites in the Showcase matched your criteria.', 'wporg-showcase' ); ?></p>
    25            
     25
    2626        <?php endif; ?>
    2727
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

    r2376 r2377  
    77?>
    88<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 ) ); ?>
    1010    <?php if ( have_posts() ) : ?>
    1111
     
    1616
    1717                    <div class="wpsc-hero-slide">
    18                         <div class="wpsc-hero-slide-content">   
     18                        <div class="wpsc-hero-slide-content">
    1919                            <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img">
    2020                                <?php site_screenshot_tag( 457 ); ?>
    2121                            </a>
    2222                            <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
    23                            
     23
    2424                            <?php $wpsc_url = esc_url( get_post_meta( $post->ID, 'domain', true ) ); ?>
    2525                            <?php if ( $wpsc_url ) : // make sure the URL is valid (esc_url will return an empty string if not) ?>
    2626                            <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 ) ); ?>
    2828                                <span class="linkout-symbol"><?php _ex( '&#10162;', 'linkout symbol', 'wporg-showcase' ); ?></span>
    2929                            </a>
    3030                            <?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>' );
    3434                                the_excerpt();
    3535                            ?>
     
    3939                        </div><!-- .wpsc-hero-slide-content -->
    4040                    </div><!-- .wpsc-hero-slide -->
    41                    
     41
    4242                <?php endwhile; ?>
    4343
    44             </div> 
     44            </div>
    4545            <div class="wpsc-slide-nav"></div>
    4646        </div> <!-- .wpsc-hero -->
    47        
     47
    4848    <?php endif; ?>
    4949
    5050    <div class="wrapper">
    51    
     51
    5252        <?php get_sidebar( 'left' ); ?>
    53        
     53
    5454        <div class="col-7 main-content">
    5555
     
    5858            <h3><?php _e( 'Featured Business Sites', 'wporg-showcase' ); ?></h3>
    5959            <ul class="wpsc-recent">
    60                
     60
    6161                <?php while ( have_posts() ) : the_post(); ?>
    62                            
    63                     <li>                   
     62
     63                    <li>
    6464                        <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
    6565                            <?php site_screenshot_tag( 215 ); ?>
     
    6767                        <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
    6868                        <?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>' );
    7171                        ?>
    7272                    </li>
    73                            
     73
    7474                <?php endwhile; // have_posts ?>
    7575            </ul>
     
    8484                <?php while ( have_posts() ) : the_post(); ?>
    8585
    86                 <li>                   
     86                <li>
    8787                    <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
    8888                        <?php site_screenshot_tag( 215 ); ?>
    8989                    </a>
    9090                    <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
    91                     <?php 
     91                    <?php
    9292                        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();
    9494                    ?>
    9595                </li>
    96                
     96
    9797                <?php endwhile; // have_posts ?>
    9898            </ul>
    9999            <a href="<?php echo home_url( '/archives/' ); ?>" class="wpsc-view-all"><?php _e( 'View All Showcase Sites &rarr;', 'wporg-showcase' ); ?></a>
    100            
     100
    101101            <?php endif; // have_posts ?>
    102        
     102
    103103        </div>
    104104    </div>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-submit.php

    r2376 r2377  
    5050    <?php if ( $error ) : ?>
    5151        <h3 id="return"><?php _e( 'Whoops!', 'wporg-showcase' ); ?></h3>
    52        
     52
    5353        <?php if ( strstr( $url, 'blogspot.com' ) || strstr( $url, 'blogger.com' ) ) : ?>
    5454            <p><?php _e( 'Please submit a WordPress blog URL. Blogspot/Blogger blogs are not accepted.', 'wporg-showcase' ); ?></p>
    55    
     55
    5656        <?php elseif ( $site_detected == "NO" ) : ?>
    5757            <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
    5959        <?php elseif ( $site_detected == "YES" && version_compare($site_version, $latest_release, '<' ) ) : ?>
    6060            <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>
    6161            <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
    6363        <?php else : ?>
    6464            <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
    6666        <?php endif; ?>
    67    
     67
    6868    <?php endif; // $error ?>
    6969
     
    9797    if ($use_recaptcha) {
    9898        $recaptcha_url = 'http://www.google.com/recaptcha/api/challenge?k=' . $recaptcha_pubkey;
    99         if ( !empty( $recaptcha_error ) ) 
     99        if ( !empty( $recaptcha_error ) )
    100100            $recaptcha_url .= '&error=' . $recaptcha_error;
    101101    ?>
     
    106106    <input type="hidden" name="recaptcha_response_field" value="manual_challenge">
    107107    </noscript>
    108     <?php 
     108    <?php
    109109    } // $use_recaptcha
    110110    ?>
    111    
     111
    112112    <p><input id="submit" type="submit" tabindex="6" value="<?php esc_attr_e( 'Submit Site', 'wporg-showcase' ); ?>" class="button" /></p>
    113113    <?php do_action( 'comment_form', $post->ID ); ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page.php

    r1474 r2377  
    55        <?php get_sidebar( 'left' ); ?>
    66        <div class="col-7">
    7            
     7
    88            <?php if ( have_posts() ) : ?>
    99                <?php while ( have_posts() ) : the_post(); ?>
    10                    
     10
    1111                    <?php breadcrumb(); ?>
    1212                    <div class="storycontent">
    1313                        <?php the_content(); ?>
    1414                    </div>
    15                
     15
    1616                <?php endwhile; // have_posts ?>
    1717            <?php endif; // have_posts ?>
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/sidebar-left.php

    r2376 r2377  
    11        <div class="col-2 secondary">
    22            <a href="<?php echo home_url( '/submit-a-wordpress-site/' ); ?>" class="wpsc-submit-site"><?php _e( 'Submit a Site &rarr;', 'wporg-showcase' ); ?></a>
    3            
     3
    44            <h4 class="search"><?php _e( 'Search', 'wporg-showcase' ); ?></h4>
    55            <?php // @todo: use get_search_form(); ?>
     
    88                <input type="submit" id="searchsubmit" value="<?php esc_attr_e( 'Go', 'wporg-showcase' ); ?>" class="button" />
    99            </form>
    10            
    1110
    1211            <?php popular_tags(); ?>
    1312            <a href='<?php echo home_url( '/tag-cloud/' ); ?>' class="wpsc-all-tags"><?php _e( 'View All Tags &rarr;', 'wporg-showcase' ); ?></a>
    14            
     13
    1514            <h4><?php _e( 'Browse by Flavor', 'wporg-showcase' ); ?></h4>
    1615            <ul class="submenu">
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/single.php

    r2376 r2377  
    44    <div class="wrapper">
    55        <?php get_sidebar( 'left' ); ?>
    6            
     6
    77            <?php if ( have_posts() ) : ?>
    88                <?php while ( have_posts() ) : the_post(); ?>
    9                    
     9
    1010                    <div class="col-5">
    1111                        <div class="storycontent">
     
    3939                                            $output .= "</dl>";
    4040                                            if ( $key > 0 && $key+1 % 2 == 0 )
    41                                                 $output .= "<br style='clear: both' />"; 
     41                                                $output .= "<br style='clear: both' />";
    4242                                        }
    4343
Note: See TracChangeset for help on using the changeset viewer.