Changeset 56121
- Timestamp:
- 07/01/2023 05:02:18 PM (19 months ago)
- Location:
- trunk/src/wp-content/themes/twentyseventeen/inc
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentyseventeen/inc/template-functions.php
r48782 r56121 1 1 <?php 2 2 /** 3 * Additional features to allow styling of the templates 3 * Additional features to allow styling of the templates. 4 4 * 5 5 * @package WordPress … … 68 68 69 69 /** 70 * Count our number ofactive panels.70 * Counts the number of our active panels. 71 71 * 72 * Primarily used to see if we have any panels active, duh. 72 * Primarily used to see if we have any panels active. 73 * 74 * @return int The number of active panels. 73 75 */ 74 76 function twentyseventeen_panel_count() { … … 96 98 97 99 /** 98 * Checks to see if we're on the front page or not. 100 * Checks to see if we are on the front page or not. 101 * 102 * @return bool Whether we are on the front page or not. 99 103 */ 100 104 function twentyseventeen_is_frontpage() { -
trunk/src/wp-content/themes/twentyseventeen/inc/template-tags.php
r55276 r56121 1 1 <?php 2 2 /** 3 * Custom template tags for this theme 3 * Custom template tags for this theme. 4 4 * 5 5 * Eventually, some of the functionality here could be replaced by core features. … … 71 71 $tags_list = get_the_tag_list( '', $separate_meta ); 72 72 73 // We don't want to output .entry-footer if it will be empty, so make sure it s not.73 // We don't want to output .entry-footer if it will be empty, so make sure it is not. 74 74 if ( ( ( twentyseventeen_categorized_blog() && $categories_list ) || $tags_list ) || get_edit_post_link() ) { 75 75 … … 113 113 * Returns an accessibility-friendly link to edit a post or page. 114 114 * 115 * This also gives usa little context about what exactly we're editing115 * This also gives a little context about what exactly we're editing 116 116 * (post or page?) so that users understand a bit more where they are in terms 117 117 * of the template hierarchy and their content. Helpful when/if the single-page … … 132 132 133 133 /** 134 * Display a front page section.134 * Displays a front page section. 135 135 * 136 136 * @global int|string $twentyseventeencounter Front page section counter. … … 138 138 * 139 139 * @param WP_Customize_Partial $partial Partial associated with a selective refresh request. 140 * @param int $id Front page section to display.140 * @param int $id Front page section to display. 141 141 */ 142 142 function twentyseventeen_front_page_section( $partial = null, $id = 0 ) { … … 206 206 207 207 /** 208 * Flush out the transients used in twentyseventeen_categorized_blog.208 * Flushes out the transients used in twentyseventeen_categorized_blog. 209 209 */ 210 210 function twentyseventeen_category_transient_flusher() { … … 220 220 if ( ! function_exists( 'wp_body_open' ) ) : 221 221 /** 222 * Fire the wp_body_open action.222 * Fires the wp_body_open action. 223 223 * 224 224 * Added for backward compatibility to support pre-5.2.0 WordPress versions. … … 228 228 function wp_body_open() { 229 229 /** 230 * Triggeredafter the opening <body> tag.230 * Fires after the opening <body> tag. 231 231 * 232 232 * @since Twenty Seventeen 2.2
Note: See TracChangeset
for help on using the changeset viewer.