Changeset 31265 for trunk/src/wp-content/themes/twentyeleven/showcase.php
- Timestamp:
- 01/22/2015 12:41:36 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/showcase.php
r25746 r31265 106 106 ?> 107 107 108 <section class="featured-post <?php echo $feature_class; ?>" id="featured-post-<?php echo $counter_slider; ?>">108 <section class="featured-post <?php echo esc_attr( $feature_class ); ?>" id="featured-post-<?php echo esc_attr( $counter_slider ); ?>"> 109 109 110 110 <?php … … 136 136 137 137 // Reset the counter so that we end up with matching elements 138 138 $counter_slider = 0; 139 139 140 140 // Begin from zero 141 141 rewind_posts(); 142 142 143 143 // Let's roll again. 144 145 144 while ( $featured->have_posts() ) : $featured->the_post(); 145 $counter_slider++; 146 146 if ( 1 == $counter_slider ) 147 $class = ' class="active"';147 $class = ' class="active"'; 148 148 else 149 149 $class = ''; 150 151 <li><a href="#featured-post-<?php echo $counter_slider; ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li>150 ?> 151 <li><a href="#featured-post-<?php echo esc_attr( $counter_slider ); ?>" title="<?php echo esc_attr( sprintf( __( 'Featuring: %s', 'twentyeleven' ), the_title_attribute( 'echo=0' ) ) ); ?>"<?php echo $class; ?>></a></li> 152 152 <?php endwhile; ?> 153 153 </ul>
Note: See TracChangeset
for help on using the changeset viewer.