Making WordPress.org


Ignore:
Timestamp:
07/05/2015 07:26:25 PM (10 years ago)
Author:
Otto42
Message:

Add srcset to screenshot images, move img tag building into functions.php

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sites/trunk/wordpress.org/public_html/wp-content/themes/pub/wporg-showcase/page-home.php

    r1474 r1705  
    1818                        <div class="wpsc-hero-slide-content">   
    1919                            <a href="<?php the_permalink(); ?>" class="wpsc-hero-slide-img">
    20                                 <img src="<?php site_screenshot_src( 487 ); ?>" alt="<?php the_title_attribute(); ?>" width="487" height="365" />
     20                                <?php site_screenshot_tag( 457 ); ?>
    2121                            </a>
    2222                            <h3><a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h3>
     
    6363                    <li>                   
    6464                        <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
    65                             <img src="<?php site_screenshot_src( 215 ); ?>" width="215" height="161" alt="<?php the_title_attribute(); ?>" class="screenshot" />
     65                            <?php site_screenshot_tag( 215 ); ?>
    6666                        </a>
    6767                        <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
     
    8686                <li>                   
    8787                    <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
    88                         <img src="<?php site_screenshot_src( 215 ); ?>" width="215" height="155" alt="<?php the_title_attribute(); ?>" class="screenshot" />
     88                        <?php site_screenshot_tag( 215 ); ?>
    8989                    </a>
    9090                    <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
Note: See TracChangeset for help on using the changeset viewer.