Ticket #25256: twentytwelve.4.diff
File twentytwelve.4.diff, 4.9 KB (added by , 12 years ago) |
---|
-
src/wp-content/themes/twentytwelve/comments.php
12 12 * @since Twenty Twelve 1.0 13 13 */ 14 14 15 /* *15 /* 16 16 * If the current post is protected by a password and 17 17 * the visitor has not yet entered the password we will 18 18 * return early without loading the comments. -
src/wp-content/themes/twentytwelve/functions.php
22 22 * @since Twenty Twelve 1.0 23 23 */ 24 24 25 /** 26 * Set up the content width value based on the theme's design and stylesheet. 27 */ 25 // Set up the content width value based on the theme's design and stylesheet. 28 26 if ( ! isset( $content_width ) ) 29 27 $content_width = 625; 30 28 … … 44 42 * @since Twenty Twelve 1.0 45 43 */ 46 44 function twentytwelve_setup() { 47 /* *45 /* 48 46 * Makes Twenty Twelve available for translation. 49 47 * 50 48 * Translations can be added to the /languages/ directory. … … 65 63 // This theme uses wp_nav_menu() in one location. 66 64 register_nav_menu( 'primary', __( 'Primary Menu', 'twentytwelve' ) ); 67 65 68 /* *66 /* 69 67 * This theme supports custom background color and image, 70 68 * and here we also set up the default background color. 71 69 */ … … 97 95 function twentytwelve_get_font_url() { 98 96 $font_url = ''; 99 97 100 /* *98 /* 101 99 * translators: If there are characters in your language that are not supported 102 100 * by Open Sans, translate this to 'off'. Do not translate into your own language. 103 101 */ 104 102 if ( 'off' !== _x( 'on', 'Open Sans font: on or off', 'twentytwelve' ) ) { 105 103 $subsets = 'latin,latin-ext'; 106 104 107 /* *105 /* 108 106 * translators: To add an additional Open Sans character subset specific to your language, 109 107 * translate this to 'greek', 'cyrillic' or 'vietnamese'. Do not translate into your own language. 110 108 */ … … 138 136 function twentytwelve_scripts_styles() { 139 137 global $wp_styles; 140 138 141 /* *139 /* 142 140 * Adds JavaScript to pages with the comment form to support 143 141 * sites with threaded comments (when in use). 144 142 */ 145 143 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 146 144 wp_enqueue_script( 'comment-reply' ); 147 145 148 /** 149 * Adds JavaScript for handling the navigation menu hide-and-show behavior. 150 */ 146 // Adds JavaScript for handling the navigation menu hide-and-show behavior. 151 147 wp_enqueue_script( 'twentytwelve-navigation', get_template_directory_uri() . '/js/navigation.js', array(), '1.0', true ); 152 148 153 149 $font_url = twentytwelve_get_font_url(); 154 150 if ( ! empty( $font_url ) ) 155 151 wp_enqueue_style( 'twentytwelve-fonts', esc_url_raw( $font_url ), array(), null ); 156 152 157 /** 158 * Loads our main stylesheet. 159 */ 153 // Loads our main stylesheet. 160 154 wp_enqueue_style( 'twentytwelve-style', get_stylesheet_uri() ); 161 155 162 /** 163 * Loads the Internet Explorer specific stylesheet. 164 */ 156 // Loads the Internet Explorer specific stylesheet. 165 157 wp_enqueue_style( 'twentytwelve-ie', get_template_directory_uri() . '/css/ie.css', array( 'twentytwelve-style' ), '20121010' ); 166 158 $wp_styles->add_data( 'twentytwelve-ie', 'conditional', 'lt IE 9' ); 167 159 } -
src/wp-content/themes/twentytwelve/image.php
48 48 <div class="entry-attachment"> 49 49 <div class="attachment"> 50 50 <?php 51 /* *51 /* 52 52 * Grab the IDs of all the image attachments in a gallery so we can get the URL of the next adjacent image in a gallery, 53 53 * or the first image (if we're looking at the last image in a gallery), or, in a gallery of one, just the link to that image file 54 54 */ -
src/wp-content/themes/twentytwelve/sidebar-front.php
9 9 * @since Twenty Twelve 1.0 10 10 */ 11 11 12 /* *12 /* 13 13 * The front page widget area is triggered if any of the areas 14 14 * have widgets. So let's check that first. 15 15 * -
src/wp-content/themes/twentytwelve/tag.php
29 29 /* Start the Loop */ 30 30 while ( have_posts() ) : the_post(); 31 31 32 /* *32 /* 33 33 * Include the post format-specific template for the content. If you want to 34 34 * this in a child theme then include a file called called content-___.php 35 35 * (where ___ is the post format) and that will be used instead.