WordPress.org

Make WordPress Core


Ignore:
Timestamp:
09/20/2013 06:21:30 PM (7 years ago)
Author:
lancewillett
Message:

Twenty Fourteen: first pass at improving responsive patterns and allowing for a full-width layout when no secondary sidebar is present. Props iamtakashi, see #25332.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/wp-content/themes/twentyfourteen/image.php

    r25023 r25519  
    77 */
    88
     9$metadata = wp_get_attachment_metadata();
     10
    911get_header();
    1012?>
    1113
    1214<section id="primary" class="content-area image-attachment">
    13     <div id="content" class="site-content full-width" role="main">
     15    <div id="content" class="site-content" role="main">
    1416
    1517    <?php while ( have_posts() ) : the_post(); ?>
     
    2022
    2123                <div class="entry-meta">
    22                     <?php $metadata = wp_get_attachment_metadata(); ?>
    2324
    2425                    <span class="entry-date"><time class="entry-date" datetime="<?php echo esc_attr( get_the_date( 'c' ) ); ?>"><?php echo esc_html( get_the_date() ); ?></time></span>
     
    7172
    7273        <nav id="image-navigation" class="navigation image-navigation">
     74            <div class="nav-links">
    7375            <?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>
    7476            <?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>
     77            </div><!-- .nav-links -->
    7578        </nav><!-- #image-navigation -->
    7679
Note: See TracChangeset for help on using the changeset viewer.