Changeset 25746
- Timestamp:
- 10/09/2013 08:38:26 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyeleven/author.php
r25625 r25746 16 16 17 17 <?php 18 /* *18 /* 19 19 * Queue the first post, that way we know what author 20 20 * we're dealing with (if that is the case). … … 31 31 32 32 <?php 33 /* *33 /* 34 34 * Since we called the_post() above, we need to 35 35 * rewind the loop back to the beginning that way … … 68 68 69 69 <?php 70 /* *70 /* 71 71 * Include the Post-Format-specific template for the content. 72 72 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyeleven/category.php
r25625 r25746 41 41 42 42 <?php 43 /* *43 /* 44 44 * Include the Post-Format-specific template for the content. 45 45 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyeleven/comments.php
r25625 r25746 18 18 </div><!-- #comments --> 19 19 <?php 20 /* *20 /* 21 21 * Stop the rest of comments.php from being processed, 22 22 * but don't kill the script entirely -- we still have … … 47 47 <ol class="commentlist"> 48 48 <?php 49 /* *49 /* 50 50 * Loop through and list the comments. Tell wp_list_comments() 51 51 * to use twentyeleven_comment() to format the comments. … … 67 67 68 68 <?php 69 /* *69 /* 70 70 * If there are no comments and comments are closed, let's leave a little note, shall we? 71 71 * But we only want the note on posts and pages that had comments in the first place. -
trunk/src/wp-content/themes/twentyeleven/footer.php
r25625 r25746 16 16 17 17 <?php 18 /* *18 /* 19 19 * A sidebar in the footer? Yep. You can can customize 20 20 * your footer with three columns of widgets. -
trunk/src/wp-content/themes/twentyeleven/functions.php
r25625 r25746 39 39 */ 40 40 41 /** 42 * Set the content width based on the theme's design and stylesheet. 43 */ 41 // Set the content width based on the theme's design and stylesheet. 44 42 if ( ! isset( $content_width ) ) 45 43 $content_width = 584; 46 44 47 /* *45 /* 48 46 * Tell WordPress to run twentyeleven_setup() when the 'after_setup_theme' hook is run. 49 47 */ … … 73 71 function twentyeleven_setup() { 74 72 75 /* *73 /* 76 74 * Make Twenty Eleven available for translation. 77 75 * Translations can be added to the /languages/ directory. … … 108 106 // Add support for custom backgrounds. 109 107 add_theme_support( 'custom-background', array( 110 /* *108 /* 111 109 * Let WordPress know what our default background color is. 112 110 * This is dependent on our current color scheme. … … 163 161 } 164 162 165 /* *163 /* 166 164 * We'll be using post thumbnails for custom header images on posts and pages. 167 165 * We want them to be the size of the header image that we just defined. … … 170 168 set_post_thumbnail_size( $custom_header_support['width'], $custom_header_support['height'], true ); 171 169 172 /* *170 /* 173 171 * Add Twenty Eleven's custom image sizes. 174 172 * Used for large feature (header) images. -
trunk/src/wp-content/themes/twentyeleven/header.php
r25625 r25746 26 26 <meta name="viewport" content="width=device-width" /> 27 27 <title><?php 28 /** 29 * Print the <title> tag based on what is being viewed. 30 */ 28 // Print the <title> tag based on what is being viewed. 31 29 global $page, $paged; 32 30 … … 53 51 <![endif]--> 54 52 <?php 55 /* *53 /* 56 54 * We add some JavaScript to pages with the comment form 57 55 * to support sites with threaded comments (when in use). … … 60 58 wp_enqueue_script( 'comment-reply' ); 61 59 62 /* *60 /* 63 61 * Always have wp_head() just before the closing </head> 64 62 * tag of your theme, or you will break many plugins, which … … 84 82 // Compatibility with versions of WordPress prior to 3.4. 85 83 if ( function_exists( 'get_custom_header' ) ) { 86 /* *84 /* 87 85 * We need to figure out what the minimum width should be for our featured image. 88 86 * This result would be the suggested width if the theme were to implement flexible widths. … … 95 93 <a href="<?php echo esc_url( home_url( '/' ) ); ?>"> 96 94 <?php 97 /* *95 /* 98 96 * The header image. 99 97 * Check if this is a post or page, if it has a thumbnail, and if it's a big one -
trunk/src/wp-content/themes/twentyeleven/image.php
r25625 r25746 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 -
trunk/src/wp-content/themes/twentyeleven/search.php
r25625 r25746 25 25 26 26 <?php 27 /* *27 /* 28 28 * Include the Post-Format-specific template for the content. 29 29 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyeleven/showcase.php
r25625 r25746 27 27 28 28 <?php 29 /* *29 /* 30 30 * We are using a heading by rendering the_content 31 31 * If we have content for this page, let's display it. … … 38 38 39 39 <?php 40 /* *40 /* 41 41 * Begin the featured posts section. 42 42 * … … 62 62 if ( $featured->have_posts() ) : 63 63 64 /* *64 /* 65 65 * We will need to count featured posts starting from zero 66 66 * to create the slider navigation. … … 85 85 $counter_slider++; 86 86 87 /* *87 /* 88 88 * We're going to add a class to our featured post for featured images 89 89 * by default it'll have the feature-text class. … … 109 109 110 110 <?php 111 /* *111 /* 112 112 * If the thumbnail is as big as the header image 113 113 * make it a large featured post, otherwise render it small -
trunk/src/wp-content/themes/twentyeleven/sidebar-footer.php
r25625 r25746 10 10 11 11 <?php 12 /* *12 /* 13 13 * The footer widget area is triggered if any of the areas 14 14 * have widgets. So let's check that first. -
trunk/src/wp-content/themes/twentyeleven/tag.php
r25625 r25746 41 41 42 42 <?php 43 /* *43 /* 44 44 * Include the Post-Format-specific template for the content. 45 45 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/archive.php
r25627 r25746 19 19 20 20 <?php 21 /* *21 /* 22 22 * Queue the first post, that way we know 23 23 * what date we're dealing with (if that is the case). … … 43 43 44 44 <?php 45 /* *45 /* 46 46 * Since we called the_post() above, we need to 47 47 * rewind the loop back to the beginning that way … … 50 50 rewind_posts(); 51 51 52 /* *52 /* 53 53 * Run the loop for the archives page to output the posts. 54 54 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/attachment.php
r25627 r25746 14 14 15 15 <?php 16 /* *16 /* 17 17 * Run the loop to output the attachment. 18 18 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/author.php
r25627 r25746 14 14 15 15 <?php 16 /* *16 /* 17 17 * Queue the first post, that way we know who 18 18 * the author is when we try to get their name, … … 52 52 53 53 <?php 54 /* *54 /* 55 55 * Since we called the_post() above, we need to 56 56 * rewind the loop back to the beginning that way … … 59 59 rewind_posts(); 60 60 61 /* *61 /* 62 62 * Run the loop for the author archive page to output the authors posts 63 63 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/category.php
r25627 r25746 21 21 echo '<div class="archive-meta">' . $category_description . '</div>'; 22 22 23 /* *23 /* 24 24 * Run the loop for the category page to output the posts. 25 25 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/comments.php
r25627 r25746 19 19 </div><!-- #comments --> 20 20 <?php 21 /* *21 /* 22 22 * Stop the rest of comments.php from being processed, 23 23 * but don't kill the script entirely -- we still have … … 47 47 <ol class="commentlist"> 48 48 <?php 49 /* *49 /* 50 50 * Loop through and list the comments. Tell wp_list_comments() 51 51 * to use twentyten_comment() to format the comments. … … 66 66 67 67 <?php 68 /* *68 /* 69 69 * If there are no comments and comments are closed, let's leave a little note, shall we? 70 70 * But we only want the note on posts and pages that had comments in the first place. -
trunk/src/wp-content/themes/twentyten/footer.php
r25627 r25746 17 17 18 18 <?php 19 /* *19 /* 20 20 * A sidebar in the footer? Yep. You can can customize 21 21 * your footer with four columns of widgets. … … 47 47 48 48 <?php 49 /* *49 /* 50 50 * Always have wp_footer() just before the closing </body> 51 51 * tag of your theme, or you will break many plugins, which -
trunk/src/wp-content/themes/twentyten/functions.php
r25627 r25746 39 39 */ 40 40 41 /* *41 /* 42 42 * Set the content width based on the theme's design and stylesheet. 43 43 * … … 48 48 $content_width = 640; 49 49 50 /* *Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */50 /* Tell WordPress to run twentyten_setup() when the 'after_setup_theme' hook is run. */ 51 51 add_action( 'after_setup_theme', 'twentyten_setup' ); 52 52 … … 85 85 add_theme_support( 'automatic-feed-links' ); 86 86 87 /* *87 /* 88 88 * Make theme available for translation. 89 89 * Translations can be filed in the /languages/ directory … … 105 105 106 106 $custom_header_support = array( 107 /* *107 /* 108 108 * The default image to use. 109 109 * The %s is a placeholder for the theme template directory URI. … … 148 148 } 149 149 150 /* *150 /* 151 151 * We'll be using post thumbnails for custom header images on posts and pages. 152 152 * We want them to be 940 pixels wide by 198 pixels tall. -
trunk/src/wp-content/themes/twentyten/header.php
r25627 r25746 38 38 <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" /> 39 39 <?php 40 /* *40 /* 41 41 * We add some JavaScript to pages with the comment form 42 42 * to support sites with threaded comments (when in use). … … 45 45 wp_enqueue_script( 'comment-reply' ); 46 46 47 /* *47 /* 48 48 * Always have wp_head() just before the closing </head> 49 49 * tag of your theme, or you will break many plugins, which … … 71 71 // Compatibility with versions of WordPress prior to 3.4. 72 72 if ( function_exists( 'get_custom_header' ) ) { 73 /* *73 /* 74 74 * We need to figure out what the minimum width should be for our featured image. 75 75 * This result would be the suggested width if the theme were to implement flexible widths. -
trunk/src/wp-content/themes/twentyten/index.php
r25627 r25746 20 20 21 21 <?php 22 /* *22 /* 23 23 * Run the loop to output the posts. 24 24 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/loop.php
r25627 r25746 40 40 41 41 <?php 42 /* *42 /* 43 43 * Start the Loop. 44 44 * -
trunk/src/wp-content/themes/twentyten/onecolumn-page.php
r25627 r25746 19 19 20 20 <?php 21 /* *21 /* 22 22 * Run the loop to output the page. 23 23 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/page.php
r25627 r25746 19 19 20 20 <?php 21 /* *21 /* 22 22 * Run the loop to output the page. 23 23 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/search.php
r25627 r25746 16 16 <h1 class="page-title"><?php printf( __( 'Search Results for: %s', 'twentyten' ), '<span>' . get_search_query() . '</span>' ); ?></h1> 17 17 <?php 18 /* *18 /* 19 19 * Run the loop for the search to output the results. 20 20 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/sidebar-footer.php
r25627 r25746 10 10 11 11 <?php 12 /* *12 /* 13 13 * The footer widget area is triggered if any of the areas 14 14 * have widgets. So let's check that first. -
trunk/src/wp-content/themes/twentyten/sidebar.php
r25627 r25746 13 13 14 14 <?php 15 /* *15 /* 16 16 * When we call the dynamic_sidebar() function, it'll spit out 17 17 * the widgets for that widget area. If it instead returns false, -
trunk/src/wp-content/themes/twentyten/single.php
r25627 r25746 14 14 15 15 <?php 16 /* *16 /* 17 17 * Run the loop to output the post. 18 18 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentyten/tag.php
r25627 r25746 18 18 19 19 <?php 20 /* *20 /* 21 21 * Run the loop for the tag archive to output the posts 22 22 * If you want to overload this in a child theme then include a file -
trunk/src/wp-content/themes/twentythirteen/author.php
r25522 r25746 18 18 19 19 <?php 20 /* *20 /* 21 21 * Queue the first post, that way we know what author 22 22 * we're dealing with (if that is the case). … … 33 33 34 34 <?php 35 /* *35 /* 36 36 * Since we called the_post() above, we need to 37 37 * rewind the loop back to the beginning that way -
trunk/src/wp-content/themes/twentythirteen/comments.php
r25522 r25746 10 10 */ 11 11 12 /* *12 /* 13 13 * If the current post is protected by a password and the visitor has not yet 14 14 * entered the password we will return early without loading the comments. -
trunk/src/wp-content/themes/twentythirteen/functions.php
r25522 r25746 24 24 */ 25 25 26 /* *26 /* 27 27 * Set up the content width value based on the theme's design. 28 28 * … … 61 61 */ 62 62 function twentythirteen_setup() { 63 /* *63 /* 64 64 * Makes Twenty Thirteen available for translation. 65 65 * … … 71 71 load_theme_textdomain( 'twentythirteen', get_template_directory() . '/languages' ); 72 72 73 /* *73 /* 74 74 * This theme styles the visual editor to resemble the theme style, 75 75 * specifically font, colors, icons, and column width. … … 80 80 add_theme_support( 'automatic-feed-links' ); 81 81 82 /* *82 /* 83 83 * Switches default core markup for search form, comment form, 84 84 * and comments to output valid HTML5. … … 86 86 add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); 87 87 88 /* *88 /* 89 89 * This theme supports all available post formats by default. 90 90 * See http://codex.wordpress.org/Post_Formats … … 97 97 register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); 98 98 99 /* *99 /* 100 100 * This theme uses a custom image size for featured images, displayed on 101 101 * "standard" posts and pages. … … 122 122 $fonts_url = ''; 123 123 124 /* *124 /* 125 125 * Translators: If there are characters in your language that are not 126 126 * supported by Source Sans Pro, translate this to 'off'. Do not translate … … 129 129 $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); 130 130 131 /* *131 /* 132 132 * Translators: If there are characters in your language that are not 133 133 * supported by Bitter, translate this to 'off'. Do not translate into your … … 163 163 */ 164 164 function twentythirteen_scripts_styles() { 165 /* *165 /* 166 166 * Adds JavaScript to pages with the comment form to support 167 167 * sites with threaded comments (when in use). … … 414 414 $post = get_post(); 415 415 416 /* *416 /* 417 417 * Grab the IDs of all the image attachments in a gallery so we can get the URL 418 418 * of the next adjacent image in a gallery, or the first image (if we're -
trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php
r25522 r25746 41 41 add_theme_support( 'custom-header', $args ); 42 42 43 /* *43 /* 44 44 * Default custom headers packaged with the theme. 45 45 * %s is a placeholder for the theme template directory URI. -
trunk/src/wp-content/themes/twentytwelve/comments.php
r25521 r25746 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 -
trunk/src/wp-content/themes/twentytwelve/functions.php
r25521 r25746 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; … … 45 43 */ 46 44 function twentytwelve_setup() { 47 /* *45 /* 48 46 * Makes Twenty Twelve available for translation. 49 47 * … … 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. … … 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. … … 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. … … 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). … … 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 … … 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' ); -
trunk/src/wp-content/themes/twentytwelve/image.php
r25521 r25746 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 -
trunk/src/wp-content/themes/twentytwelve/sidebar-front.php
r25521 r25746 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. -
trunk/src/wp-content/themes/twentytwelve/tag.php
r25521 r25746 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
Note: See TracChangeset
for help on using the changeset viewer.