Changeset 25522
- Timestamp:
- 09/20/2013 07:33:23 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentythirteen
- Files:
-
- 31 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentythirteen/404.php
r25515 r25522 1 1 <?php 2 2 /** 3 * The template for displaying 404 pages (Not Found) .3 * The template for displaying 404 pages (Not Found) 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/archive.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Archive pages .3 * The template for displaying Archive pages 4 4 * 5 5 * Used to display archive-type pages if nothing more specific matches a query. … … 11 11 * and author.php for Author archives. 12 12 * 13 * Learn more:http://codex.wordpress.org/Template_Hierarchy13 * @link http://codex.wordpress.org/Template_Hierarchy 14 14 * 15 15 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/author-bio.php
r24073 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Author bios .3 * The template for displaying Author bios 4 4 * 5 5 * @package WordPress … … 11 11 <div class="author-info"> 12 12 <div class="author-avatar"> 13 <?php echo get_avatar( get_the_author_meta( 'user_email' ), apply_filters( 'twentythirteen_author_bio_avatar_size', 74 ) ); ?> 13 <?php 14 /** 15 * Filter the author bio avatar size. 16 * 17 * @since Twenty Thirteen 1.0 18 * 19 * @param int $size The avatar height and width size in pixels. 20 */ 21 $author_bio_avatar_size = apply_filters( 'twentythirteen_author_bio_avatar_size', 74 ); 22 echo get_avatar( get_the_author_meta( 'user_email' ), $author_bio_avatar_size ); 23 ?> 14 24 </div><!-- .author-avatar --> 15 25 <div class="author-description"> -
trunk/src/wp-content/themes/twentythirteen/author.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Author archive pages .3 * The template for displaying Author archive pages 4 4 * 5 * Learn more:http://codex.wordpress.org/Template_Hierarchy5 * @link http://codex.wordpress.org/Template_Hierarchy 6 6 * 7 7 * @package WordPress … … 18 18 19 19 <?php 20 /* Queue the first post, that way we know 21 * what author we're dealing with (if that is the case). 20 /** 21 * Queue the first post, that way we know what author 22 * we're dealing with (if that is the case). 22 23 * 23 24 * We reset this later so we can run the loop … … 32 33 33 34 <?php 34 /* Since we called the_post() above, we need to 35 /** 36 * Since we called the_post() above, we need to 35 37 * rewind the loop back to the beginning that way 36 38 * we can run the loop properly, in full. -
trunk/src/wp-content/themes/twentythirteen/category.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Category pages .3 * The template for displaying Category pages 4 4 * 5 * Learn more:http://codex.wordpress.org/Template_Hierarchy5 * @link http://codex.wordpress.org/Template_Hierarchy 6 6 * 7 7 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/comments.php
r24423 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Comments .3 * The template for displaying Comments 4 4 * 5 5 * The area of the page that contains comments and the comment form. … … 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/content-aside.php
r24071 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Aside post format .3 * The template for displaying posts in the Aside post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-audio.php
r24391 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Audio post format .3 * The template for displaying posts in the Audio post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-chat.php
r24391 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Chat post format .3 * The template for displaying posts in the Chat post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-gallery.php
r24391 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Gallery post format .3 * The template for displaying posts in the Gallery post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-image.php
r24391 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Image post format .3 * The template for displaying posts in the Image post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-link.php
r24131 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Link post format .3 * The template for displaying posts in the Link post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-none.php
r23799 r25522 1 1 <?php 2 2 /** 3 * The template for displaying a "No posts found" message .3 * The template for displaying a "No posts found" message 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-quote.php
r24167 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Quote post format .3 * The template for displaying posts in the Quote post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-status.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Status post format .3 * The template for displaying posts in the Status post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content-video.php
r24391 r25522 1 1 <?php 2 2 /** 3 * The template for displaying posts in the Video post format .3 * The template for displaying posts in the Video post format 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/content.php
r24131 r25522 1 1 <?php 2 2 /** 3 * The default template for displaying content. Used for both single and index/archive/search. 3 * The default template for displaying content 4 * 5 * Used for both single and index/archive/search. 4 6 * 5 7 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/footer.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying the footer .3 * The template for displaying the footer 4 4 * 5 * Contains footer content and the closing of the 6 * #main and #page div elements. 5 * Contains footer content and the closing of the #main and #page div elements. 7 6 * 8 7 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/functions.php
r24934 r25522 1 1 <?php 2 2 /** 3 * Twenty Thirteen functions and definitions .3 * Twenty Thirteen functions and definitions 4 4 * 5 5 * Sets up the theme and provides some helper functions, which are used in the … … 17 17 * instead attached to a filter or action hook. 18 18 * 19 * For more information on hooks, actions, and filters, 20 * see http://codex.wordpress.org/Plugin_API 19 * For more information on hooks, actions, and filters, @link http://codex.wordpress.org/Plugin_API 21 20 * 22 21 * @package WordPress … … 26 25 27 26 /** 28 * Sets up the content width value based on the theme's design. 27 * Set up the content width value based on the theme's design. 28 * 29 29 * @see twentythirteen_content_width() for template-specific adjustments. 30 30 */ … … 33 33 34 34 /** 35 * Add ssupport for a custom header image.35 * Add support for a custom header image. 36 36 */ 37 37 require get_template_directory() . '/inc/custom-header.php'; … … 44 44 45 45 /** 46 * Twenty Thirteen setup. 47 * 46 48 * Sets up theme defaults and registers the various WordPress features that 47 49 * Twenty Thirteen supports. … … 59 61 */ 60 62 function twentythirteen_setup() { 61 /* 63 /** 62 64 * Makes Twenty Thirteen available for translation. 63 65 * … … 69 71 load_theme_textdomain( 'twentythirteen', get_template_directory() . '/languages' ); 70 72 71 /* 73 /** 72 74 * This theme styles the visual editor to resemble the theme style, 73 75 * specifically font, colors, icons, and column width. … … 78 80 add_theme_support( 'automatic-feed-links' ); 79 81 80 // Switches default core markup for search form, comment form, and comments 81 // to output valid HTML5. 82 /** 83 * Switches default core markup for search form, comment form, 84 * and comments to output valid HTML5. 85 */ 82 86 add_theme_support( 'html5', array( 'search-form', 'comment-form', 'comment-list' ) ); 83 87 84 /* 88 /** 85 89 * This theme supports all available post formats by default. 86 90 * See http://codex.wordpress.org/Post_Formats … … 93 97 register_nav_menu( 'primary', __( 'Navigation Menu', 'twentythirteen' ) ); 94 98 95 /* 99 /** 96 100 * This theme uses a custom image size for featured images, displayed on 97 101 * "standard" posts and pages. … … 106 110 107 111 /** 108 * Return sthe Google font stylesheet URL, if available.112 * Return the Google font stylesheet URL, if available. 109 113 * 110 114 * The use of Source Sans Pro and Bitter by default is localized. For languages … … 118 122 $fonts_url = ''; 119 123 120 /* Translators: If there are characters in your language that are not 124 /** 125 * Translators: If there are characters in your language that are not 121 126 * supported by Source Sans Pro, translate this to 'off'. Do not translate 122 127 * into your own language. … … 124 129 $source_sans_pro = _x( 'on', 'Source Sans Pro font: on or off', 'twentythirteen' ); 125 130 126 /* Translators: If there are characters in your language that are not 131 /** 132 * Translators: If there are characters in your language that are not 127 133 * supported by Bitter, translate this to 'off'. Do not translate into your 128 134 * own language. … … 150 156 151 157 /** 152 * Enqueue s scripts and styles forfront end.158 * Enqueue scripts and styles for the front end. 153 159 * 154 160 * @since Twenty Thirteen 1.0 … … 157 163 */ 158 164 function twentythirteen_scripts_styles() { 159 // Adds JavaScript to pages with the comment form to support sites with 160 // threaded comments (when in use). 165 /** 166 * Adds JavaScript to pages with the comment form to support 167 * sites with threaded comments (when in use). 168 */ 161 169 if ( is_singular() && comments_open() && get_option( 'thread_comments' ) ) 162 170 wp_enqueue_script( 'comment-reply' ); … … 185 193 186 194 /** 195 * Filter the page title. 196 * 187 197 * Creates a nicely formatted and more specific title element text for output 188 198 * in head of document, based on current view. … … 191 201 * 192 202 * @param string $title Default title text for current view. 193 * @param string $sep Optional separator.203 * @param string $sep Optional separator. 194 204 * @return string The filtered title. 195 205 */ … … 217 227 218 228 /** 219 * Register stwo widget areas.229 * Register two widget areas. 220 230 * 221 231 * @since Twenty Thirteen 1.0 … … 248 258 if ( ! function_exists( 'twentythirteen_paging_nav' ) ) : 249 259 /** 250 * Display snavigation to next/previous set of posts when applicable.260 * Display navigation to next/previous set of posts when applicable. 251 261 * 252 262 * @since Twenty Thirteen 1.0 … … 281 291 if ( ! function_exists( 'twentythirteen_post_nav' ) ) : 282 292 /** 283 * Display snavigation to next/previous post when applicable.293 * Display navigation to next/previous post when applicable. 284 294 * 285 295 * @since Twenty Thirteen 1.0 … … 312 322 if ( ! function_exists( 'twentythirteen_entry_meta' ) ) : 313 323 /** 314 * Print sHTML with meta information for current post: categories, tags, permalink, author, and date.324 * Print HTML with meta information for current post: categories, tags, permalink, author, and date. 315 325 * 316 326 * Create your own twentythirteen_entry_meta() to override in a child theme. … … 352 362 if ( ! function_exists( 'twentythirteen_entry_date' ) ) : 353 363 /** 354 * Print sHTML with date information for current post.364 * Print HTML with date information for current post. 355 365 * 356 366 * Create your own twentythirteen_entry_date() to override in a child theme. … … 358 368 * @since Twenty Thirteen 1.0 359 369 * 360 * @param boolean $echo Whether to echo the date. Default true.370 * @param boolean $echo (optional) Whether to echo the date. Default true. 361 371 * @return string The HTML-formatted post date. 362 372 */ … … 383 393 if ( ! function_exists( 'twentythirteen_the_attached_image' ) ) : 384 394 /** 385 * Print sthe attached image with a link to the next attached image.395 * Print the attached image with a link to the next attached image. 386 396 * 387 397 * @since Twenty Thirteen 1.0 … … 390 400 */ 391 401 function twentythirteen_the_attached_image() { 392 $post = get_post(); 402 /** 403 * Filter the image attachment size to use. 404 * 405 * @since Twenty thirteen 1.0 406 * 407 * @param array $size { 408 * @type int The attachment height in pixels. 409 * @type int The attachment width in pixels. 410 * } 411 */ 393 412 $attachment_size = apply_filters( 'twentythirteen_attachment_size', array( 724, 724 ) ); 394 413 $next_attachment_url = wp_get_attachment_url(); 414 $post = get_post(); 395 415 396 416 /** … … 438 458 439 459 /** 440 * Return s the URL from the post.460 * Return the post URL. 441 461 * 442 462 * @uses get_url_in_content() to get the URL in the post meta (if it exists) or … … 457 477 458 478 /** 459 * Extend sthe default WordPress body classes.479 * Extend the default WordPress body classes. 460 480 * 461 481 * Adds body classes to denote: … … 484 504 485 505 /** 486 * Adjust scontent_width value for video post formats and attachment templates.506 * Adjust content_width value for video post formats and attachment templates. 487 507 * 488 508 * @since Twenty Thirteen 1.0 … … 516 536 517 537 /** 518 * Binds JavaScript handlers to make Customizer preview reload changes 519 * asynchronously. 520 * 521 * @since Twenty Thirteen 1.0 538 * Enqueue Javascript postMessage handlers for the Customizer. 539 * 540 * Binds JavaScript handlers to make the Customizer preview 541 * reload changes asynchronously. 542 * 543 * @since Twenty Thirteen 1.0 544 * 545 * @return void 522 546 */ 523 547 function twentythirteen_customize_preview_js() { -
trunk/src/wp-content/themes/twentythirteen/header.php
r24412 r25522 1 1 <?php 2 2 /** 3 * The Header for our theme.3 * The Header template for our theme 4 4 * 5 5 * Displays all of the <head> section and everything up till <div id="main"> -
trunk/src/wp-content/themes/twentythirteen/image.php
r24402 r25522 1 1 <?php 2 2 /** 3 * The template for displaying image attachments .3 * The template for displaying image attachments 4 4 * 5 * Learn more:http://codex.wordpress.org/Template_Hierarchy5 * @link http://codex.wordpress.org/Template_Hierarchy 6 6 * 7 7 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/inc/back-compat.php
r24411 r25522 1 1 <?php 2 2 /** 3 * Twenty Thirteen back compat functionality .3 * Twenty Thirteen back compat functionality 4 4 * 5 5 * Prevents Twenty Thirteen from running on WordPress versions prior to 3.6, 6 * since this theme is not meant to be backward scompatible and relies on6 * since this theme is not meant to be backward compatible and relies on 7 7 * many new functions and markup changes introduced in 3.6. 8 8 * … … 13 13 14 14 /** 15 * Prevent switching to Twenty Thirteen on old versions of WordPress. Switches 16 * to the default theme. 15 * Prevent switching to Twenty Thirteen on old versions of WordPress. 16 * 17 * Switches to the default theme. 17 18 * 18 19 * @since Twenty Thirteen 1.0 … … 28 29 29 30 /** 31 * Add message for unsuccessful theme switch. 32 * 30 33 * Prints an update nag after an unsuccessful attempt to switch to 31 34 * Twenty Thirteen on WordPress versions prior to 3.6. … … 41 44 42 45 /** 43 * Prevent s the Customizer from being loaded on WordPress versions prior to 3.6.46 * Prevent the Theme Customizer from being loaded on WordPress versions prior to 3.6. 44 47 * 45 48 * @since Twenty Thirteen 1.0 … … 55 58 56 59 /** 57 * Prevent sthe Theme Preview from being loaded on WordPress versions prior to 3.4.60 * Prevent the Theme Preview from being loaded on WordPress versions prior to 3.4. 58 61 * 59 62 * @since Twenty Thirteen 1.0 -
trunk/src/wp-content/themes/twentythirteen/inc/custom-header.php
r25129 r25522 1 1 <?php 2 2 /** 3 * Implements a custom header for Twenty Thirteen. 4 * See http://codex.wordpress.org/Custom_Headers 3 * Implement a custom header for Twenty Thirteen 4 * 5 * @link http://codex.wordpress.org/Custom_Headers 5 6 * 6 7 * @package WordPress … … 10 11 11 12 /** 12 * Set sup the WordPress core custom header arguments and settings.13 * Set up the WordPress core custom header arguments and settings. 13 14 * 14 15 * @uses add_theme_support() to register support for 3.4 and up. … … 19 20 * 20 21 * @since Twenty Thirteen 1.0 22 * 23 * @return void 21 24 */ 22 25 function twentythirteen_custom_header_setup() { … … 38 41 add_theme_support( 'custom-header', $args ); 39 42 40 /* 43 /** 41 44 * Default custom headers packaged with the theme. 42 45 * %s is a placeholder for the theme template directory URI. … … 63 66 64 67 /** 65 * Loads our special font CSS files. 66 * 67 * @since Twenty Thirteen 1.0 68 * Load our special font CSS files. 69 * 70 * @since Twenty Thirteen 1.0 71 * 72 * @return void 68 73 */ 69 74 function twentythirteen_custom_header_fonts() { … … 77 82 78 83 /** 79 * Style sthe header text displayed on the blog.84 * Style the header text displayed on the blog. 80 85 * 81 86 * get_header_textcolor() options: Hide text (returns 'blank'), or any hex value. 82 87 * 83 88 * @since Twenty Thirteen 1.0 89 * 90 * @return void 84 91 */ 85 92 function twentythirteen_header_style() { … … 135 142 136 143 /** 137 * Styles the header image displayed on the Appearance > Header admin panel. 138 * 139 * @since Twenty Thirteen 1.0 144 * Style the header image displayed on the Appearance > Header admin panel. 145 * 146 * @since Twenty Thirteen 1.0 147 * 148 * @return void 140 149 */ 141 150 function twentythirteen_admin_header_style() { … … 199 208 200 209 /** 201 * Outputs markup to be displayed on the Appearance > Header admin panel. 210 * Output markup to be displayed on the Appearance > Header admin panel. 211 * 202 212 * This callback overrides the default markup displayed there. 203 213 * 204 214 * @since Twenty Thirteen 1.0 215 * 216 * @return void 205 217 */ 206 218 function twentythirteen_admin_header_image() { -
trunk/src/wp-content/themes/twentythirteen/index.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The main template file .3 * The main template file 4 4 * 5 5 * This is the most generic template file in a WordPress theme and one of the … … 8 8 * For example, it puts together the home page when no home.php file exists. 9 9 * 10 * Learn more:http://codex.wordpress.org/Template_Hierarchy10 * @link http://codex.wordpress.org/Template_Hierarchy 11 11 * 12 12 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/page.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying all pages .3 * The template for displaying all pages 4 4 * 5 5 * This is the template that displays all pages by default. -
trunk/src/wp-content/themes/twentythirteen/search.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Search Results pages .3 * The template for displaying Search Results pages 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/sidebar-main.php
r23755 r25522 1 1 <?php 2 2 /** 3 * The sidebar containing the footer widget area .3 * The sidebar containing the footer widget area 4 4 * 5 * If no active widgets in this sidebar, it will be hiddencompletely.5 * If no active widgets in this sidebar, hide it completely. 6 6 * 7 7 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/sidebar.php
r23755 r25522 1 1 <?php 2 2 /** 3 * The sidebar containing the secondary widget area , displays on posts and pages.3 * The sidebar containing the secondary widget area 4 4 * 5 * If no active widgets in this sidebar, it will be hidden completely. 5 * Displays on posts and pages. 6 * 7 * If no active widgets are in this sidebar, hide it completely. 6 8 * 7 9 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/single.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The Template for displaying all single posts.3 * The template for displaying all single posts 4 4 * 5 5 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/tag.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Tag pages .3 * The template for displaying Tag pages 4 4 * 5 5 * Used to display archive-type pages for posts in a tag. 6 6 * 7 * Learn more:http://codex.wordpress.org/Template_Hierarchy7 * @link http://codex.wordpress.org/Template_Hierarchy 8 8 * 9 9 * @package WordPress -
trunk/src/wp-content/themes/twentythirteen/taxonomy-post_format.php
r23680 r25522 1 1 <?php 2 2 /** 3 * The template for displaying Post Format pages .3 * The template for displaying Post Format pages 4 4 * 5 5 * Used to display archive-type pages for posts with a post format. … … 7 7 * new template file for each specific one. 8 8 * 9 * Learn more:http://codex.wordpress.org/Template_Hierarchy9 * @link http://codex.wordpress.org/Template_Hierarchy 10 10 * 11 11 * @package WordPress
Note: See TracChangeset
for help on using the changeset viewer.