Changeset 1559
- Timestamp:
- 05/09/2015 10:47:54 AM (10 years ago)
- Location:
- sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/functions.php
r1476 r1559 6 6 add_theme_support( 'custom-header', array( 7 7 'default-image' => false, 8 'header-text' => false, 9 'width' => 466, 10 'height' => 303, 8 'header-text' => false, 9 'width' => 466, 10 'height' => 303, 11 'flex-height' => true, 12 'flex-width' => true, 11 13 ) ); 12 14 -
sites/trunk/global.wordpress.org/public_html/wp-content/themes/rosetta/index.php
r1060 r1559 24 24 <h3><?php the_title(); ?></h3> 25 25 26 <?php 27 $hw = image_hwstring( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); 28 if ( ! $header_image = get_header_image() ) { 29 $header_image = content_url( '/languages/shots/shot-' . $rosetta->locale . '.png' ); 30 $hw = ''; 31 } 32 ?> 33 <img class="shot" <?php echo $hw; ?>src="<?php echo esc_url( $header_image ); ?>" alt="Localized version screenshot" /> 34 <?php the_content(); ?> 26 <?php 27 if ( $header_image = get_header_image() ) { 28 $hw = image_hwstring( HEADER_IMAGE_WIDTH, HEADER_IMAGE_HEIGHT ); 29 printf( 30 '<img class="shot" %ssrc="%s" alt="" />', 31 $hw, 32 esc_url( $header_image ) 33 ); 34 } 35 36 the_content(); 37 ?> 35 38 <?php endwhile; ?> 36 39 </div>
Note: See TracChangeset
for help on using the changeset viewer.