Making WordPress.org


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

W.org Showcase: Trim trailing whitespace.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • 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>
Note: See TracChangeset for help on using the changeset viewer.