Changeset 30569
- Timestamp:
- 11/25/2014 08:56:33 PM (10 years ago)
- Location:
- trunk/src/wp-content/themes/twentyfifteen
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyfifteen/functions.php
r30568 r30569 148 148 * @since Twenty Fifteen 1.0 149 149 * 150 * @return string 150 * @return string Google fonts URL for the theme. 151 151 */ 152 152 function twentyfifteen_fonts_url() { … … 246 246 * 247 247 * @since Twenty Fifteen 1.0 248 * 249 * @see wp_add_inline_style() 248 250 */ 249 251 function twentyfifteen_post_nav_background() { … … 291 293 * @param int $depth Depth of the menu. 292 294 * @param array $args wp_nav_menu() arguments. 293 *294 295 * @return string Menu item with possible description. 295 296 */ … … 308 309 * @since Twenty Fifteen 1.0 309 310 * 310 * @param string $html Search form HTML 311 * 312 * @return string Modified search form HTML 311 * @param string $html Search form HTML. 312 * @return string Modified search form HTML. 313 313 */ 314 314 function twentyfifteen_search_form_modify( $html ) { -
trunk/src/wp-content/themes/twentyfifteen/inc/back-compat.php
r30373 r30569 1 1 <?php 2 2 /** 3 * Twenty Fifteen back compat functionality .3 * Twenty Fifteen back compat functionality 4 4 * 5 5 * Prevents Twenty Fifteen from running on WordPress versions prior to 4.1, 6 * since this theme is not meant to be backward compatible beyond that 7 * andrelies on many newer functions and markup changes introduced in 4.1.6 * since this theme is not meant to be backward compatible beyond that and 7 * relies on many newer functions and markup changes introduced in 4.1. 8 8 * 9 9 * @package WordPress -
trunk/src/wp-content/themes/twentyfifteen/inc/custom-header.php
r30567 r30569 1 1 <?php 2 2 /** 3 * Implement Custom Header functionality for Twenty Fifteen.3 * Custom Header functionality for Twenty Fifteen 4 4 * 5 5 * @package WordPress … … 47 47 * 48 48 * @param string $color The original color, in 3- or 6-digit hexadecimal form. 49 * @return array 49 * @return array Array containing RGB (red, green, and blue) values for the given 50 * HEX code, empty array otherwise. 50 51 */ 51 52 function twentyfifteen_hex2rgb( $color ) { … … 72 73 * 73 74 * @since Twenty Fifteen 1.0 74 * @see twentyfifteen_custom_header_setup(). 75 * 76 * @see twentyfifteen_custom_header_setup() 75 77 */ 76 78 function twentyfifteen_header_style() { … … 174 176 * 175 177 * @since Twenty Fifteen 1.0 178 * 179 * @see wp_add_inline_style() 176 180 */ 177 181 function twentyfifteen_header_background_color_css() { -
trunk/src/wp-content/themes/twentyfifteen/inc/customizer.php
r30398 r30569 1 1 <?php 2 2 /** 3 * Twenty Fifteen Customizer .3 * Twenty Fifteen Customizer functionality 4 4 * 5 5 * @package WordPress … … 77 77 /** 78 78 * Register color schemes for Twenty Fifteen. 79 * Can be filtered with twentyfifteen_color_schemes. 79 * 80 * Can be filtered with {@see 'twentyfifteen_color_schemes'}. 80 81 * 81 82 * The order of colors in a colors array: … … 164 165 if ( ! function_exists( 'twentyfifteen_get_color_scheme' ) ) : 165 166 /** 166 * Returns an array of either the current or default color scheme hex values.167 * 168 * @since Twenty Fifteen 1.0 169 * 170 * @return array 167 * Get the current Twenty Fifteen color scheme. 168 * 169 * @since Twenty Fifteen 1.0 170 * 171 * @return array An associative array of either the current or default color scheme hex values. 171 172 */ 172 173 function twentyfifteen_get_color_scheme() { … … 188 189 * @since Twenty Fifteen 1.0 189 190 * 190 * @return array 191 * @return array Array of color schemes. 191 192 */ 192 193 function twentyfifteen_get_color_scheme_choices() { … … 209 210 * 210 211 * @param string $value Color scheme name value. 211 *212 212 * @return string Color scheme name. 213 213 */ … … 227 227 * 228 228 * @since Twenty Fifteen 1.0 229 * 230 * @see wp_add_inline_style() 229 231 */ 230 232 function twentyfifteen_color_scheme_css() { … … 243 245 /** 244 246 * Binds JS listener to make Customizer color_scheme control. 247 * 245 248 * Passes color scheme data as colorScheme global. 246 249 * … … 266 269 * Output an Underscore template for generating CSS for the color scheme. 267 270 * 268 * The template generates the css dynamically for instant display in the Customizer preview,269 * and to be saved in a `theme_mod` for display on the front-end.271 * The template generates the css dynamically for instant display in the Customizer 272 * preview, and to be saved in a `theme_mod` for display on the front-end. 270 273 * 271 274 * @since Twenty Fifteen 1.0 -
trunk/src/wp-content/themes/twentyfifteen/inc/template-tags.php
r30372 r30569 1 1 <?php 2 2 /** 3 * Custom template tags for this theme.3 * Custom template tags for Twenty Fifteen 4 4 * 5 5 * Eventually, some of the functionality here could be replaced by core features. … … 127 127 128 128 /** 129 * Returns true if a blog has more than 1category.130 * 131 * @since Twenty Fifteen 1.0 132 * 133 * @return bool 129 * Determine whether blog/site has more than one category. 130 * 131 * @since Twenty Fifteen 1.0 132 * 133 * @return bool True of there is more than one category, false otherwise. 134 134 */ 135 135 function twentyfifteen_categorized_blog() { … … 160 160 161 161 /** 162 * Flush out the transients used in twentyfifteen_categorized_blog.162 * Flush out the transients used in {@see twentyfifteen_categorized_blog()}. 163 163 * 164 164 * @since Twenty Fifteen 1.0 … … 211 211 * 212 212 * @since Twenty Fifteen 1.0 213 * @uses get_url_in_content() 213 * 214 * @see get_url_in_content() 214 215 * 215 216 * @return string The Link format URL. … … 224 225 if ( ! function_exists( 'twentyfifteen_excerpt_more' ) && ! is_admin() ) : 225 226 /** 226 * Replaces "[...]" (appended to automatically generated excerpts) with ... and a Continue reading link. 227 * 228 * @since Twenty Fifteen 1.0 229 * 227 * Replaces "[...]" (appended to automatically generated excerpts) with ... and a 'Continue reading' link. 228 * 229 * @since Twenty Fifteen 1.0 230 * 231 * @return string 'Continue reading' link prepended with an ellipsis. 230 232 */ 231 233 function twentyfifteen_excerpt_more( $more ) {
Note: See TracChangeset
for help on using the changeset viewer.