Ticket #25946: 25946.4.diff
File 25946.4.diff, 7.2 KB (added by , 12 years ago) |
---|
-
wp-content/themes/twentyfourteen/sidebar.php
27 27 do_action( 'before_sidebar' ); 28 28 dynamic_sidebar( 'sidebar-1' ); 29 29 ?> 30 </div><!-- #primary-sidebar .primary-sidebar-->30 </div><!-- #primary-sidebar --> 31 31 <?php endif; ?> 32 32 </div><!-- #secondary --> -
wp-content/themes/twentyfourteen/sidebar-footer.php
13 13 14 14 <div id="supplementary"> 15 15 <div id="footer-sidebar" class="footer-sidebar widget-area" role="complementary"> 16 <?php dynamic_sidebar( 'sidebar-3' ); ?> 16 <?php 17 do_action( 'before_sidebar' ); 18 dynamic_sidebar( 'sidebar-3' ); 19 ?> 17 20 </div><!-- #footer-sidebar --> 18 21 </div><!-- #supplementary --> -
wp-content/themes/twentyfourteen/functions.php
91 91 'aside', 'image', 'video', 'audio', 'quote', 'link', 'gallery', 92 92 ) ); 93 93 94 /* 95 * This theme allows users to set a custom background. 96 */ 94 // This theme allows users to set a custom background. 97 95 add_theme_support( 'custom-background', apply_filters( 'twentyfourteen_custom_background_args', array( 98 96 'default-color' => 'f5f5f5', 99 97 ) ) ); 100 98 101 /* 102 * Add support for featured content. 103 */ 99 // Add support for featured content. 104 100 add_theme_support( 'featured-content', array( 105 101 'featured_content_filter' => 'twentyfourteen_get_featured_posts', 106 102 'max_posts' => 6, 107 103 ) ); 108 104 109 /* 110 * This theme uses its own gallery styles. 111 */ 105 // This theme uses its own gallery styles. 112 106 add_filter( 'use_default_gallery_style', '__return_false' ); 113 107 } 114 108 endif; // twentyfourteen_setup -
wp-content/themes/twentyfourteen/inc/customizer.php
34 34 'section' => 'colors', 35 35 ) ) ); 36 36 37 add_filter( 'theme_mod_accent_mid', 'twentyfourteen_accent_mid');37 add_filter( 'theme_mod_accent_mid', 'twentyfourteen_accent_mid' ); 38 38 add_filter( 'theme_mod_accent_light', 'twentyfourteen_accent_light' ); 39 39 40 40 // Add the featured content section in case it's not already there. … … 138 138 * @return void 139 139 */ 140 140 function twentyfourteen_rebuild_accent_colors() { 141 set_theme_mod( 'accent_mid', twentyfourteen_accent_mid());141 set_theme_mod( 'accent_mid', twentyfourteen_accent_mid() ); 142 142 set_theme_mod( 'accent_light', twentyfourteen_accent_light() ); 143 143 } 144 144 add_action( 'update_option_theme_mods_twentyfourteen', 'twentyfourteen_rebuild_accent_colors' ); … … 157 157 if ( '#24890d' === $accent_color ) 158 158 return; 159 159 160 $accent_mid = get_theme_mod( 'accent_mid');160 $accent_mid = get_theme_mod( 'accent_mid' ); 161 161 $accent_light = get_theme_mod( 'accent_light' ); 162 162 163 163 $css = '/* Custom accent color. */ … … 317 317 color: ' . $accent_light . '; 318 318 }'; 319 319 320 321 320 wp_add_inline_style( 'twentyfourteen-style', $css ); 322 321 } 323 322 add_action( 'wp_enqueue_scripts', 'twentyfourteen_customizer_styles' ); -
wp-content/themes/twentyfourteen/inc/template-tags.php
162 162 * Displays an optional post thumbnail, with an anchor element 163 163 * when on index views, and a div element when on a single view. 164 164 * 165 * @since Twenty Fourteen 1.0 166 * 165 167 * @return void 166 168 */ 167 169 function twentyfourteen_post_thumbnail() { -
wp-content/themes/twentyfourteen/search.php
41 41 <?php 42 42 get_sidebar(); 43 43 get_footer(); 44 -
wp-content/themes/twentyfourteen/image.php
74 74 75 75 <nav id="image-navigation" class="navigation image-navigation"> 76 76 <div class="nav-links"> 77 < ?php previous_image_link( false, __( '<div class="previous-image">Previous Image</div>', 'twentyfourteen' ) ); ?>78 < ?php next_image_link( false, __( '<div class="next-image">Next Image</div>', 'twentyfourteen' ) ); ?>77 <div class="previous-image"><?php previous_image_link( false, __( 'Previous Image', 'twentyfourteen' ) ); ?></div> 78 <div class="next-image"><?php next_image_link( false, __( 'Next Image', 'twentyfourteen' ) ); ?></div> 79 79 </div><!-- .nav-links --> 80 80 </nav><!-- #image-navigation --> 81 81 -
wp-content/themes/twentyfourteen/js/functions.js
110 110 _window.load( function() { 111 111 if ( body.is( '.slider' ) ) { 112 112 $( '.featured-content' ).featuredslider( { 113 selector: 113 selector: '.featured-content-inner > article', 114 114 controlsContainer: '.featured-content' 115 115 } ); 116 116 } -
wp-content/themes/twentyfourteen/js/keyboard-image-navigation.js
1 jQuery( document ).ready(function( $ ) {2 $( document ). keydown(function( e ) {1 jQuery( function( $ ) { 2 $( document ).on( 'keydown.twentyfourteen', function( e ) { 3 3 var url = false; 4 if ( e.which === 37 ) { // Left arrow key code 4 5 // Left arrow key code. 6 if ( e.which === 37 ) { 5 7 url = $( '.previous-image a' ).attr( 'href' ); 6 } 7 else if ( e.which === 39 ) { // Right arrow key code 8 9 // Right arrow key code. 10 } else if ( e.which === 39 ) { 8 11 url = $( '.entry-attachment a' ).attr( 'href' ); 9 12 } 13 10 14 if ( url && ( !$( 'textarea, input' ).is( ':focus' ) ) ) { 11 15 window.location = url; 12 16 } -
wp-content/themes/twentyfourteen/sidebar-content.php
11 11 return; 12 12 ?> 13 13 <div id="content-sidebar" class="content-sidebar widget-area" role="complementary"> 14 <?php do_action( 'before_sidebar' ); ?> 15 16 <?php dynamic_sidebar( 'sidebar-2' ); ?> 14 <?php 15 do_action( 'before_sidebar' ); 16 dynamic_sidebar( 'sidebar-2' ); 17 ?> 17 18 </div><!-- #content-sidebar -->