- Timestamp:
- 04/20/2022 02:22:21 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-content/themes/twentytwenty/inc/template-tags.php
r51322 r53236 28 28 * @since Twenty Twenty 1.0 29 29 * 30 * @param array $args Arguments for displaying the site logo either as an image or text.31 * @param bool $ echo Echoor return the HTML.30 * @param array $args Arguments for displaying the site logo either as an image or text. 31 * @param bool $display Display or return the HTML. 32 32 * @return string Compiled HTML based on our arguments. 33 33 */ 34 function twentytwenty_site_logo( $args = array(), $ echo= true ) {34 function twentytwenty_site_logo( $args = array(), $display = true ) { 35 35 $logo = get_custom_logo(); 36 36 $site_title = get_bloginfo( 'name' ); … … 84 84 $html = apply_filters( 'twentytwenty_site_logo', $html, $args, $classname, $contents ); 85 85 86 if ( ! $ echo) {86 if ( ! $display ) { 87 87 return $html; 88 88 } … … 97 97 * @since Twenty Twenty 1.0 98 98 * 99 * @param bool $ echo Echo or return the html.99 * @param bool $display Display or return the HTML. 100 100 * @return string The HTML to display. 101 101 */ 102 function twentytwenty_site_description( $ echo= true ) {102 function twentytwenty_site_description( $display = true ) { 103 103 $description = get_bloginfo( 'description' ); 104 104 … … 122 122 $html = apply_filters( 'twentytwenty_site_description', $html, $description, $wrapper ); 123 123 124 if ( ! $ echo) {124 if ( ! $display ) { 125 125 return $html; 126 126 }
Note: See TracChangeset
for help on using the changeset viewer.