Changeset 25769
- Timestamp:
- 10/11/2013 10:01:14 PM (11 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfourteen
- Files:
-
- 37 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/404.php
r25021 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/archive.php
r25213 r25769 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 16 16 * @subpackage Twenty_Fourteen 17 * @since Twenty Fourteen 1.0 17 18 */ 18 19 -
trunk/src/wp-content/themes/twentyfourteen/author.php
r25743 r25769 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 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 … … 19 20 <h1 class="archive-title"> 20 21 <?php 21 /* Queue the first post, that way we know what author 22 /* 23 * Queue the first post, that way we know what author 22 24 * we're dealing with (if that is the case). 23 25 * … … 37 39 38 40 <?php 39 /* Since we called the_post() above, we need to rewind 41 /* 42 * Since we called the_post() above, we need to rewind 40 43 * the loop back to the beginning that way we can run 41 44 * the loop properly, in full. -
trunk/src/wp-content/themes/twentyfourteen/category.php
r25213 r25769 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 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 -
trunk/src/wp-content/themes/twentyfourteen/comments.php
r25519 r25769 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. … … 7 7 * @package WordPress 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 -
trunk/src/wp-content/themes/twentyfourteen/content-aside.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-featured-post.php
r25743 r25769 1 1 <?php 2 2 /** 3 * The template for displaying featured posts on the front page 4 * 3 5 * @package WordPress 4 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 5 8 */ 6 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-gallery.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/content-image.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-link.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-none.php
r25213 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-page.php
r25735 r25769 1 1 <?php 2 2 /** 3 * The template used for displaying page content .3 * The template used for displaying page content 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-quote.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content-recent-formatted-post.php
r25021 r25769 1 1 <?php 2 2 /** 3 * The template to display recent Featured Posts 4 * 3 5 * @package WordPress 4 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 5 8 */ 6 9 if ( isset( $GLOBALS['content_width'] ) ) -
trunk/src/wp-content/themes/twentyfourteen/content-video.php
r25743 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/content.php
r25735 r25769 1 1 <?php 2 2 /** 3 * The default template for displaying content 4 * 5 * Used for both single and index/archive/search. 6 * 3 7 * @package WordPress 4 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 5 10 */ 6 11 ?> -
trunk/src/wp-content/themes/twentyfourteen/contributor-page.php
r25519 r25769 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/featured-content.php
r25519 r25769 1 1 <?php 2 2 /** 3 * The template for displaying featured content .3 * The template for displaying featured content 4 4 * 5 5 * @todo: Add support for featured content. … … 7 7 * @package WordPress 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 ?> -
trunk/src/wp-content/themes/twentyfourteen/footer.php
r25743 r25769 1 1 <?php 2 2 /** 3 * The template for displaying the footer .3 * The template for displaying the footer 4 4 * 5 5 * Contains footer content and the closing of the #main and #page div elements. … … 7 7 * @package WordPress 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 ?> -
trunk/src/wp-content/themes/twentyfourteen/front-page.php
r25762 r25769 1 1 <?php 2 2 /** 3 * The template for displaying the home page .3 * The template for displaying the home page 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/full-width-page.php
r25519 r25769 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/functions.php
r25762 r25769 1 1 <?php 2 2 /** 3 * Twenty Fourteen functions and definitions .4 * 5 * Set sup the theme and provides some helper functions, which are used in the3 * Twenty Fourteen functions and definitions 4 * 5 * Set up the theme and provides some helper functions, which are used in the 6 6 * theme as custom template tags. Others are attached to action and filter 7 7 * hooks in WordPress to change core functionality. … … 18 18 * 19 19 * For more information on hooks, actions, and filters, 20 * seehttp://codex.wordpress.org/Plugin_API20 * @link http://codex.wordpress.org/Plugin_API 21 21 * 22 22 * @package WordPress 23 23 * @subpackage Twenty_Fourteen 24 */ 25 26 /** 27 * Sets up the content width value based on the theme's design. 28 * @see twentyfourteen_content_width() for template-specific adjustments. 24 * @since Twenty Fourteen 1.0 25 */ 26 27 /** 28 * Set up the content width value based on the theme's design. 29 * 30 * @link twentyfourteen_content_width() 31 * 32 * @since Twenty Fourteen 1.0 29 33 */ 30 34 if ( ! isset( $content_width ) ) … … 33 37 if ( ! function_exists( 'twentyfourteen_setup' ) ) : 34 38 /** 35 * Sets up theme defaults and registers support for various WordPress features. 39 * Twenty Fourteen setup. 40 * 41 * Set up theme defaults and registers support for various WordPress features. 36 42 * 37 43 * Note that this function is hooked into the after_setup_theme hook, which 38 44 * runs before the init hook. The init hook is too late for some features, such 39 45 * as indicating support post thumbnails. 46 * 47 * @since Twenty Fourteen 1.0 40 48 */ 41 49 function twentyfourteen_setup() { 42 50 43 51 /* 44 * Make sTwenty Fourteen available for translation.52 * Make Twenty Fourteen available for translation. 45 53 * 46 54 * Translations can be added to the /languages/ directory. … … 51 59 load_theme_textdomain( 'twentyfourteen', get_template_directory() . '/languages' ); 52 60 53 /* 54 * This theme styles the visual editor to resemble the theme style. 55 */ 61 // This theme styles the visual editor to resemble the theme style. 56 62 add_editor_style( array( 'editor-style.css', twentyfourteen_font_url() ) ); 57 63 58 // Add sRSS feed links to <head> for posts and comments.64 // Add RSS feed links to <head> for posts and comments. 59 65 add_theme_support( 'automatic-feed-links' ); 60 66 … … 62 68 add_theme_support( 'post-thumbnails' ); 63 69 64 // Add ingseveral sizes for Post Thumbnails.70 // Add several sizes for Post Thumbnails. 65 71 add_image_size( 'featured-thumbnail-large', 672, 0 ); 66 72 add_image_size( 'featured-thumbnail-featured', 672, 336, true ); … … 74 80 75 81 /* 76 * Switch esdefault core markup for search form, comment form, and comments82 * Switch default core markup for search form, comment form, and comments 77 83 * to output valid HTML5. 78 84 */ … … 100 106 101 107 /** 102 * Adjusts content_width value for full-width and attachment templates. 108 * Adjust content_width value for full-width and attachment templates. 109 * 110 * @since Twenty Fourteen 1.0 103 111 * 104 112 * @return void … … 112 120 /** 113 121 * Getter function for Featured Content Plugin. 122 * 123 * @since Twenty Fourteen 1.0 114 124 */ 115 125 function twentyfourteen_get_featured_posts() { … … 121 131 * So that we can use a condition like 122 132 * if ( twentyfourteen_has_featured_posts( 1 ) ) 133 * 134 * @since Twenty Fourteen 1.0 123 135 */ 124 136 function twentyfourteen_has_featured_posts( $minimum = 1 ) { … … 132 144 133 145 /** 134 * Registers two widget areas. 146 * Register two widget areas. 147 * 148 * @since Twenty Fourteen 1.0 135 149 * 136 150 * @return void … … 173 187 * Register Lato Google font for Twenty Fourteen. 174 188 * 189 * @since Twenty Fourteen 1.0 190 * 175 191 * @return void 176 192 */ … … 188 204 189 205 /** 190 * Enqueues scripts and styles for front end. 206 * Enqueue scripts and styles for front end. 207 * 208 * @since Twenty Fourteen 1.0 191 209 * 192 210 * @return void … … 222 240 * Enqueue Google fonts style to admin screen for custom header display. 223 241 * 242 * @since Twenty Fourteen 1.0 243 * 224 244 * @return void 225 245 */ … … 230 250 231 251 /** 232 * Sets the post excerpt length to 20 words. 252 * Set the post excerpt length to 20 words. 253 * 254 * @since Twenty Fourteen 1.0 233 255 * 234 256 * @param int $length … … 241 263 242 264 /** 243 * Returns a "Continue Reading" link for excerpts 265 * Return a "Continue Reading" link for excerpts. 266 * 267 * @since Twenty Fourteen 1.0 244 268 * 245 269 * @return string … … 250 274 251 275 /** 252 * Replace s"[...]" (appended to automatically generated excerpts) with an276 * Replace "[...]" (appended to automatically generated excerpts) with an 253 277 * ellipsis and twentyeleven_continue_reading_link(). 278 * 279 * @since Twenty Fourteen 1.0 254 280 * 255 281 * @param string $more … … 262 288 263 289 /** 264 * Add sa pretty "Continue Reading" link to custom post excerpts.290 * Add a pretty "Continue Reading" link to custom post excerpts. 265 291 * 266 292 * To override this link in a child theme, remove the filter and add your own 267 293 * function tied to the get_the_excerpt filter hook. 294 * 295 * @since Twenty Fourteen 1.0 268 296 * 269 297 * @param string $output … … 280 308 if ( ! function_exists( 'twentyfourteen_the_attached_image' ) ) : 281 309 /** 282 * Prints the attached image with a link to the next attached image. 310 * Print the attached image with a link to the next attached image. 311 * 312 * @since Twenty Fourteen 1.0 283 313 * 284 314 * @return void … … 289 319 $next_attachment_url = wp_get_attachment_url(); 290 320 291 /* *321 /* 292 322 * Grab the IDs of all the image attachments in a gallery so we can get the URL 293 323 * of the next adjacent image in a gallery, or the first image (if we're … … 333 363 if ( ! function_exists( 'twentyfourteen_list_authors' ) ) : 334 364 /** 335 * Prints a list of all site contributors who published at least one post. 365 * Print a list of all site contributors who published at least one post. 366 * 367 * @since Twenty Fourteen 1.0 336 368 * 337 369 * @return void … … 373 405 374 406 /** 375 * Gets recent formatted posts that are not featured in FC plugin. 376 * 407 * Get recent formatted posts that are not featured in FC plugin. 408 * 409 * @since Twenty Fourteen 1.0 410 * 411 * @return object WP_Query 377 412 */ 378 413 function twentyfourteen_get_recent( $post_format ) { … … 403 438 * Filter the home page posts, and remove formatted posts visible in the sidebar from it 404 439 * 440 * @since Twenty Fourteen 1.0 441 * 442 * @return void 405 443 */ 406 444 function twentyfourteen_pre_get_posts( $query ) { … … 444 482 445 483 /** 446 * Extendsthe default WordPress body classes.484 * Extend the default WordPress body classes. 447 485 * 448 486 * Adds body classes to denote: … … 452 490 * 4. Presence of footer widgets. 453 491 * 492 * @since Twenty Fourteen 1.0 493 * 454 494 * @param array $classes A list of existing body class values. 455 495 * @return array The filtered body class list. … … 476 516 477 517 /** 478 * Extend sthe default WordPress post classes.518 * Extend the default WordPress post classes. 479 519 * 480 520 * Adds a post class to denote: 481 521 * Non-password protected page with a featured image. 522 * 523 * @since Twenty Fourteen 1.0 482 524 * 483 525 * @param array $classes A list of existing post class values. … … 493 535 494 536 /** 495 * Create sa nicely formatted and more specific title element text for output537 * Create a nicely formatted and more specific title element text for output 496 538 * in head of document, based on current view. 539 * 540 * @since Twenty Fourteen 1.0 497 541 * 498 542 * @param string $title Default title text for current view. … … 522 566 add_filter( 'wp_title', 'twentyfourteen_wp_title', 10, 2 ); 523 567 524 /** 525 * Implement the Custom Header feature 526 * 527 */ 568 // Implement Custom Header features. 528 569 require get_template_directory() . '/inc/custom-header.php'; 529 570 530 /** 531 * Custom template tags for this theme. 532 */ 571 // Custom template tags for this theme. 533 572 require get_template_directory() . '/inc/template-tags.php'; 534 573 535 /** 536 * Customizer additions 537 */ 574 // Add Theme Customizer functionality. 538 575 require get_template_directory() . '/inc/customizer.php'; -
trunk/src/wp-content/themes/twentyfourteen/header.php
r25743 r25769 1 1 <?php 2 2 /** 3 * The Header for our theme .3 * The Header for our theme 4 4 * 5 5 * Displays all of the <head> section and everything up till <div id="main"> … … 7 7 * @package WordPress 8 8 * @subpackage Twenty_Fourteen 9 * @since Twenty Fourteen 1.0 9 10 */ 10 11 ?><!DOCTYPE html> -
trunk/src/wp-content/themes/twentyfourteen/image.php
r25743 r25769 1 1 <?php 2 2 /** 3 * The template for displaying image attachments .3 * The template for displaying image attachments 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/inc/custom-header.php
r25765 r25769 1 1 <?php 2 2 /** 3 * Implement Custom Header functionality for Twenty Fourteen 4 * 3 5 * @package WordPress 4 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 5 8 */ 6 9 7 10 /** 8 * Setup the WordPress core custom header feature. 11 * Set up the WordPress core custom header settings. 12 * 13 * @since Twenty Fourteen 1.0 9 14 * 10 15 * @uses twentyfourteen_header_style() … … 26 31 if ( ! function_exists( 'twentyfourteen_admin_header_style' ) ) : 27 32 /** 28 * Style sthe header image displayed on the Appearance > Header admin panel.33 * Style the header image displayed on the Appearance > Header admin panel. 29 34 * 30 * @see twentyfourteen_custom_header_setup(). 35 * @link twentyfourteen_custom_header_setup(). 36 * 37 * @since Twenty Fourteen 1.0 31 38 */ 32 39 function twentyfourteen_admin_header_style() { … … 59 66 if ( ! function_exists( 'twentyfourteen_admin_header_image' ) ) : 60 67 /** 61 * C ustom header image markup displayed on the Appearance > Header admin panel.68 * Create the custom header image markup displayed on the Appearance > Header admin panel. 62 69 * 63 * @see twentyfourteen_custom_header_setup(). 70 * @link twentyfourteen_custom_header_setup(). 71 * 72 * @since Twenty Fourteen 1.0 64 73 */ 65 74 function twentyfourteen_admin_header_image() { -
trunk/src/wp-content/themes/twentyfourteen/inc/customizer.php
r25762 r25769 1 1 <?php 2 2 /** 3 * Twenty Fourteen Theme Customizer 3 * Twenty Fourteen Theme Customizer support 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 9 10 /** 10 11 * Add postMessage support for site title and description for the Theme Customizer. 12 * 13 * @since Twenty Fourteen 1.0 11 14 * 12 15 * @param WP_Customize_Manager $wp_customize Theme Customizer object. … … 30 33 31 34 /** 32 * Binds JS handlers to make Theme Customizer preview reload changes asynchronously. 35 * Bind JS handlers to make Theme Customizer preview reload changes asynchronously. 36 * 37 * @since Twenty Fourteen 1.0 33 38 */ 34 39 function twentyfourteen_customize_preview_js() { … … 38 43 39 44 /** 40 * Generates two variants of the accent color, returns the original, and saves the others as theme mods. 45 * Generate two variants of the accent color, return the original, and 46 * save the others as theme mods. 47 * 48 * @since Twenty Fourteen 1.0 41 49 * 42 50 * @param string $color The original color. … … 53 61 54 62 /** 55 * Tweak sthe brightness of a color by adjusting the RGB values by the given interval.63 * Tweak the brightness of a color by adjusting the RGB values by the given interval. 56 64 * 57 65 * Use positive values of $steps to brighten the color and negative values to darken the color. … … 59 67 * is generally maintained unless the number of steps causes one value to be capped at 0 or 255. 60 68 * 69 * @since Twenty Fourteen 1.0 70 * 61 71 * @param string $color The original color, in 3- or 6-digit hexadecimal form. 62 * @param int $steps The number of steps to adjust the color by, in rgbunits.72 * @param int $steps The number of steps to adjust the color by, in RGB units. 63 73 * @return string $color The new color, in 6-digit hexadecimal form. 64 74 */ … … 87 97 88 98 /** 89 * Outputs the css for the Theme Customizer options. 99 * Output the CSS for the Theme Customizer options. 100 * 101 * @since Twenty Fourteen 1.0 102 * 103 * @return void 90 104 */ 91 105 function twentyfourteen_customizer_styles() { -
trunk/src/wp-content/themes/twentyfourteen/inc/template-tags.php
r25743 r25769 1 1 <?php 2 2 /** 3 * Custom template tags for this theme.3 * Custom template tags for Twenty Fourteen 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 9 10 if ( ! function_exists( 'twentyfourteen_paging_nav' ) ) : 10 11 /** 11 * Displays navigation to next/previous set of posts when applicable. 12 * Display navigation to next/previous set of posts when applicable. 13 * 14 * @since Twenty Fourteen 1.0 12 15 * 13 16 * @return void … … 59 62 if ( ! function_exists( 'twentyfourteen_post_nav' ) ) : 60 63 /** 61 * Displays navigation to next/previous post when applicable. 62 * 63 * @return void 64 */ 64 * Display navigation to next/previous post when applicable. 65 * 66 * @since Twenty Fourteen 1.0 67 * 68 * @return void 69 */ 65 70 function twentyfourteen_post_nav() { 66 71 // Don't print empty markup if there's nowhere to navigate. … … 87 92 if ( ! function_exists( 'twentyfourteen_posted_on' ) ) : 88 93 /** 89 * Prints HTML with meta information for the current post-date/time and author. 94 * Print HTML with meta information for the current post-date/time and author. 95 * 96 * @since Twenty Fourteen 1.0 90 97 * 91 98 * @return void … … 106 113 107 114 /** 108 * Returns true if a blog has more than 1 category115 * Find out if blog has more than one category. 109 116 * 110 * @return boolean 117 * @since Twenty Fourteen 1.0 118 * 119 * @return boolean true if blog has more than 1 category 111 120 */ 112 121 function twentyfourteen_categorized_blog() { … … 135 144 * Flush out the transients used in twentyfourteen_categorized_blog 136 145 * 146 * @since Twenty Fourteen 1.0 147 * 148 * @return void 137 149 */ 138 150 function twentyfourteen_category_transient_flusher() { … … 144 156 145 157 /** 146 * Displays featured image with appropriate html tag. 158 * Display featured image with appropriate HTML tag. 159 * 160 * @since Twenty Fourteen 1.0 147 161 * 148 162 * @return void -
trunk/src/wp-content/themes/twentyfourteen/inc/widgets.php
r25743 r25769 1 1 <?php 2 2 /** 3 * Makes a custom Widget for displaying Aside, Quote, Video, Image, Gallery, 4 * and Link posts, available with Twenty Fourteen. 3 * Custom Widget for displaying specific post formats 5 4 * 6 * Learn more: http://codex.wordpress.org/Widgets_API#Developing_Widgets 5 * Displays posts from Aside, Quote, Video, Image, Gallery, and Link formats. 6 * 7 * @link http://codex.wordpress.org/Widgets_API#Developing_Widgets 7 8 * 8 9 * @package WordPress 9 10 * @subpackage Twenty_Fourteen 11 * @since Twenty Fourteen 1.0 10 12 */ 11 13 … … 15 17 * The supported post formats. 16 18 * 19 * @since Twenty Fourteen 1.0 20 * 17 21 * @var array 18 22 */ … … 22 26 * Pluralized post format strings. 23 27 * 28 * @since Twenty Fourteen 1.0 29 * 24 30 * @var array 25 31 */ … … 28 34 /** 29 35 * Constructor. 36 * 37 * @since Twenty Fourteen 1.0 30 38 * 31 39 * @return Twenty_Fourteen_Ephemera_Widget … … 37 45 ) ); 38 46 39 /* *47 /* 40 48 * @todo http://core.trac.wordpress.org/ticket/23257 41 49 */ … … 55 63 56 64 /** 57 * Outputs the HTML for this widget. 65 * Output the HTML for this widget. 66 * 67 * @since Twenty Fourteen 1.0 58 68 * 59 69 * @param array $args An array of standard parameters for widgets in this theme. … … 192 202 193 203 /** 194 * Deals with the settings when they are saved by the admin. Here is where 195 * any validation should be dealt with. 204 * Deal with the settings when they are saved by the admin. Here is where 205 * any validation should happen. 206 * 207 * @since Twenty Fourteen 1.0 196 208 * 197 209 * @param array $new_instance … … 211 223 212 224 /** 213 * Deletes the transient. 225 * Delete the transient. 226 * 227 * @since Twenty Fourteen 1.0 214 228 * 215 229 * @return void … … 220 234 221 235 /** 222 * Displays the form for this widget on the Widgets page of the Admin area. 236 * Display the form for this widget on the Widgets page of the Admin area. 237 * 238 * @since Twenty Fourteen 1.0 223 239 * 224 240 * @param array $instance -
trunk/src/wp-content/themes/twentyfourteen/index.php
r25213 r25769 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 … … 7 7 * It is used to display a page when nothing more specific matches a query. 8 8 * E.g., it puts together the home page when no home.php file exists. 9 * Learn more:http://codex.wordpress.org/Template_Hierarchy9 * @link http://codex.wordpress.org/Template_Hierarchy 10 10 * 11 11 * @package WordPress 12 12 * @subpackage Twenty_Fourteen 13 * @since Twenty Fourteen 1.0 13 14 */ 14 15 -
trunk/src/wp-content/themes/twentyfourteen/page.php
r25023 r25769 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. 6 * Please note that this is the WordPress construct of pages 7 * and that other 'pages' on your WordPress site will use a 8 * different template. 6 * Please note that this is the WordPress construct of pages and that other 'pages' 7 * on your WordPress site will use a different template. 9 8 * 10 9 * @package WordPress 11 10 * @subpackage Twenty_Fourteen 11 * @since Twenty Fourteen 1.0 12 12 */ 13 13 -
trunk/src/wp-content/themes/twentyfourteen/search.php
r25213 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/sidebar-content.php
r25762 r25769 1 1 <?php 2 2 /** 3 * The Content Sidebar .3 * The Content Sidebar 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 if ( ! is_active_sidebar( 'sidebar-2' ) ) -
trunk/src/wp-content/themes/twentyfourteen/sidebar-footer.php
r25762 r25769 1 1 <?php 2 2 /** 3 * The Sidebar containing the main widget area.3 * The Footer Sidebar 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/sidebar.php
r25023 r25769 1 1 <?php 2 2 /** 3 * The Sidebar containing the main widget area .3 * The Sidebar containing the main widget area 4 4 * 5 5 * @package WordPress 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 ?> -
trunk/src/wp-content/themes/twentyfourteen/single.php
r25088 r25769 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 6 6 * @subpackage Twenty_Fourteen 7 * @since Twenty Fourteen 1.0 7 8 */ 8 9 -
trunk/src/wp-content/themes/twentyfourteen/tag.php
r25213 r25769 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 10 10 * @subpackage Twenty_Fourteen 11 * @since Twenty Fourteen 1.0 11 12 */ 12 13 -
trunk/src/wp-content/themes/twentyfourteen/taxonomy-post_format.php
r25213 r25769 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 12 12 * @subpackage Twenty_Fourteen 13 * @since Twenty Fourteen 1.0 13 14 */ 14 15
Note: See TracChangeset
for help on using the changeset viewer.