- Timestamp:
- 12/03/2013 05:05:53 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfourteen/functions.php
r26325 r26556 7 7 * hooks in WordPress to change core functionality. 8 8 * 9 * When using a child theme (see http://codex.wordpress.org/Theme_Development 10 * and http://codex.wordpress.org/Child_Themes), you can override certain 11 * functions (those wrapped in a function_exists() call) by defining them first 12 * in your child theme's functions.php file. The child theme's functions.php 13 * file is included before the parent theme's file, so the child theme 14 * functions would be used. 9 * When using a child theme you can override certain functions (those wrapped 10 * in a function_exists() call) by defining them first in your child theme's 11 * functions.php file. The child theme's functions.php file is included before 12 * the parent theme's file, so the child theme functions would be used. 13 * 14 * @link http://codex.wordpress.org/Theme_Development 15 * @link http://codex.wordpress.org/Child_Themes 15 16 * 16 17 * Functions that are not pluggable (not wrapped in function_exists()) are … … 28 29 * Set up the content width value based on the theme's design. 29 30 * 30 * @ linktwentyfourteen_content_width()31 * @see twentyfourteen_content_width() 31 32 * 32 33 * @since Twenty Fourteen 1.0 … … 139 140 */ 140 141 function twentyfourteen_get_featured_posts() { 142 /** 143 * Filter the featured posts to return in Twenty Fourteen. 144 * 145 * @since Twenty Fourteen 1.0 146 * 147 * @param array|bool $posts Array of featured posts, otherwise false. 148 */ 141 149 return apply_filters( 'twentyfourteen_get_featured_posts', array() ); 142 150 } … … 150 158 */ 151 159 function twentyfourteen_has_featured_posts() { 160 /** This filter is documented in functions.php */ 152 161 return ! is_paged() && (bool) apply_filters( 'twentyfourteen_get_featured_posts', false ); 153 162 } 154 163 155 164 /** 156 * Register t wowidget areas.165 * Register three Twenty Fourteen widget areas. 157 166 * 158 167 * @since Twenty Fourteen 1.0 … … 215 224 216 225 /** 217 * Enqueue scripts and styles for front end.226 * Enqueue scripts and styles for the front end. 218 227 * 219 228 * @since Twenty Fourteen 1.0 … … 281 290 function twentyfourteen_the_attached_image() { 282 291 $post = get_post(); 292 /** 293 * Filter the default Twenty Fourteen attachment size. 294 * 295 * @since Twenty Fourteen 1.0 296 * 297 * @param array $dimensions { 298 * An array of height and width dimensions. 299 * 300 * @type int $height Height of the image in pixels. Default 1200. 301 * @type int $width Width of the image in pixels. Default 1200. 302 * } 303 */ 283 304 $attachment_size = apply_filters( 'twentyfourteen_attachment_size', array( 1200, 1200 ) ); 284 305 $next_attachment_url = wp_get_attachment_url();
Note: See TracChangeset
for help on using the changeset viewer.