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