Astra_Customizer::site_icon_update()
Render site icon.
Description
Source
File: inc/customizer/class-astra-customizer.php
public function site_icon_update() { $uploaded_icon_url = get_site_icon_url( 32 ); $site_icon_url = empty( $uploaded_icon_url ) ? admin_url() . 'images/wordpress-logo.svg' : $uploaded_icon_url; ?> <p class="ast-sg-site-icon-wrap"> <span class="ast-sg-site-icon-aside-divider"></span> <span class="ast-sg-site-icon-inner-wrap"> <img class="ast-sg-site-icon" alt="<?php _e( 'Site Icon', 'astra' ); ?>" src="<?php echo esc_url( $site_icon_url ); ?>" /> <span class="ast-sg-site-title"> <?php echo get_bloginfo( 'name' ); ?> </span> <span class="ast-sg-site-blogdescription"> <?php echo esc_attr( ! empty( get_bloginfo( 'description' ) ) ? ' - ' . get_bloginfo( 'description' ) : '' ); ?> </span> </span> <span class="ast-sg-site-icon-aside-divider"></span> </p> <?php }
Expand full source code Collapse full source code View on Trac
Changelog
Version | Description |
---|---|
4.8.0 | Introduced. |