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/archive.php

    r1474 r1705  
    1818
    1919                <div class="story-excerpt">
    20                     <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><img src="<?php site_screenshot_src(145); ?>" class="alignleft" width="145" height="110" alt="<?php the_title_attribute(); ?>" /></a>
    21 
     20                    <a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>">
     21                        <?php site_screenshot_tag( 145, 'screenshot alignleft' ); ?>
     22                    </a>
    2223                    <h5><a href="<?php the_permalink() ?>" title="<?php the_title_attribute(); ?>"><?php the_title(); ?></a></h5>
    2324                    <div class="excerpt"><?php the_content_limit(200); ?></div>
Note: See TracChangeset for help on using the changeset viewer.