Make WordPress Core

Ticket #26212: 26212.diff

File 26212.diff, 1.3 KB (added by celloexpressions, 12 years ago)

Implement mockup, re-using the (very slightly tweaked) featured content slider nav arrows css

  • wp-content/themes/twentyfourteen/image.php

     
    3939                                        <div class="entry-attachment">
    4040                                                <div class="attachment">
    4141                                                        <?php twentyfourteen_the_attached_image(); ?>
     42                                                        <ul class="slider-direction-nav">
     43                                                                <li><?php previous_image_link( false, __( 'Previous', 'twentyfourteen' ) ); ?></li>
     44                                                                <li><?php next_image_link( false, __( 'Next', 'twentyfourteen' ) ); ?></li>
     45                                                                <!--<li><a class="slider-prev" href="#">Previous</a></li>
     46                                                                <li><a class="slider-next" href="#">Next</a></li>-->
     47                                                        </ul>
    4248                                                </div><!-- .attachment -->
    4349
    4450                                                <?php if ( has_excerpt() ) : ?>
  • wp-content/themes/twentyfourteen/style.css

     
    28622862        display: block;
    28632863        font-size: 0;
    28642864        height: 46px;
     2865        text-decoration: none;
    28652866}
    28662867
    28672868.slider-direction-nav a:hover {
     
    28752876        line-height: 46px;
    28762877}
    28772878
    2878 .slider-direction-nav .slider-next:before {
     2879.slider-direction-nav li:last-child a:before {
    28792880        content: "\f429";
    28802881}
    28812882