Changeset 2377 for sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php
- Timestamp:
- 01/26/2016 11:48:33 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
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>
Note: See TracChangeset
for help on using the changeset viewer.