CMS: Unknown
Server IP: 162.214.74.50
Root:
/home/iideug/public_html/harshils.iideug.com
Directory:
home
/
iideug
/
public_html
/
test
/
wp-includes
/
customize
File: /home/iideug/public_html/test/wp-includes/customize/class-wp-customize-site-icon-control.php
<?php /** * Customize API: WP_Customize_Site_Icon_Control class * * @package WordPress * @subpackage Customize * @since 4.4.0 */ /** * Customize Site Icon control class. * * Used only for custom functionality in JavaScript. * * @since 4.3.0 * * @see WP_Customize_Cropped_Image_Control */ class WP_Customize_Site_Icon_Control extends WP_Customize_Cropped_Image_Control { /** * Control type. * * @since 4.3.0 * @var string */ public $type = 'site_icon'; /** * Constructor. * * @since 4.3.0 * * @see WP_Customize_Control::__construct() * * @param WP_Customize_Manager $manager Customizer bootstrap instance. * @param string $id Control ID. * @param array $args Optional. Arguments to override class property defaults. * See WP_Customize_Control::__construct() for information * on accepted arguments. Default empty array. */ public function __construct( $manager, $id, $args = array() ) { parent::__construct( $manager, $id, $args ); add_action( 'customize_controls_print_styles', 'wp_site_icon', 99 ); } /** * Renders a JS template for the content of the site icon control. * * @since 4.5.0 */ public function content_template() { ?> <# if ( data.label ) { #> <span class="customize-control-title">{{ data.label }}</span> <# } #> <# if ( data.attachment && data.attachment.id ) { #> <div class="attachment-media-view"> <# if ( data.attachment.sizes ) { #> <style> :root{ --site-icon-url: url( '{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}' ); } </style> <div class="site-icon-preview customizer"> <div class="direction-wrap"> <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="app-icon-preview" alt="{{ data.attachment.alt ? wp.i18n.sprintf( <?php /* translators: %s: The selected image alt text. */ echo wp_json_encode( __( 'App icon preview: Current image: %s' ) ) ?> , data.attachment.alt ) : wp.i18n.sprintf( <?php /* translators: %s: The selected image filename. */ echo wp_json_encode( __( 'App icon preview: The current image has no alternative text. The file name is: %s' ) ); ?> , data.attachment.filename ) }}" /> <div class="site-icon-preview-browser"> <svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="browser-buttons"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 20a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm18 0a6 6 0 1 1 12 0 6 6 0 0 1-12 0Zm24-6a6 6 0 1 0 0 12 6 6 0 0 0 0-12Z" /></svg> <div class="site-icon-preview-tab"> <img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" class="browser-icon-preview" alt="{{ data.attachment.alt ? wp.i18n.sprintf( <?php /* translators: %s: The selected image alt text. */ echo wp_json_encode( __( 'Browser icon preview: Current image: %s' ) ); ?> , data.attachment.alt ) : wp.i18n.sprintf( <?php /* translators: %s: The selected image filename. */ echo wp_json_encode( __( 'Browser icon preview: The current image has no alternative text. The file name is: %s' ) ); ?> , data.attachment.filename ) }}" /> <div class="site-icon-preview-site-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></div> <svg role="img" aria-hidden="true" fill="none" xmlns="http://www.w3.org/2000/svg" class="close-button"> <path d="M12 13.0607L15.7123 16.773L16.773 15.7123L13.0607 12L16.773 8.28772L15.7123 7.22706L12 10.9394L8.28771 7.22705L7.22705 8.28771L10.9394 12L7.22706 15.7123L8.28772 16.773L12 13.0607Z" /> </svg> </div> </div> </div> </div> </div> <# } #> <div class="actions"> <# if ( data.canUpload ) { #> <button type="button" class="button remove-button"><?php echo $this->button_labels['remove']; ?></button> <button type="button" class="button upload-button"><?php echo $this->button_labels['change']; ?></button> <# } #> </div> </div> <# } else { #> <div class="attachment-media-view"> <# if ( data.canUpload ) { #> <button type="button" class="upload-button button"><?php echo $this->button_labels['site_icon']; ?></button> <# } #> <div class="actions"> <# if ( data.defaultAttachment ) { #> <button type="button" class="button default-button"><?php echo $this->button_labels['default']; ?></button> <# } #> </div> </div> <# } #> <# if ( data.description ) { #> <span class="description customize-control-description">{{{ data.description }}}</span> <# } #> <?php } }
Name
Size
Modify
Permissions
Actions
class-wp-customize-background-image-control.php
1.3 kb
2022-05-18 15:24:14
644
U
E
O
D
class-wp-customize-background-image-setting.php
639 b
2022-05-18 15:24:14
644
U
E
O
D
class-wp-customize-background-position-control.php
3 kb
2023-02-07 17:10:22
644
U
E
O
D
class-wp-customize-color-control.php
3.1 kb
2025-07-16 22:52:40
644
U
E
O
D
class-wp-customize-cropped-image-control.php
1.4 kb
2023-09-08 09:32:24
644
U
E
O
D
class-wp-customize-date-time-control.php
9.2 kb
2025-03-05 23:27:22
644
U
E
O
D
class-wp-customize-filter-setting.php
588 b
2017-07-27 00:41:44
644
U
E
O
D
class-wp-customize-header-image-control.php
7.8 kb
2025-08-18 20:27:38
644
U
E
O
D
class-wp-customize-image-control.php
1.2 kb
2020-11-22 15:53:04
644
U
E
O
D
class-wp-customize-media-control.php
9.2 kb
2025-08-18 20:27:38
644
U
E
O
D
class-wp-customize-nav-menu-auto-add-control.php
1.1 kb
2017-10-05 02:22:50
644
U
E
O
D
class-wp-customize-nav-menu-control.php
2.1 kb
2023-02-07 17:10:22
644
U
E
O
D
class-wp-customize-nav-menu-item-control.php
8 kb
2024-06-03 20:35:14
644
U
E
O
D
class-wp-customize-nav-menu-item-setting.php
27.2 kb
2025-09-30 16:28:32
644
U
E
O
D
class-wp-customize-nav-menu-location-control.php
2.2 kb
2024-01-28 07:50:18
644
U
E
O
D
class-wp-customize-nav-menu-locations-control.php
2.8 kb
2023-02-23 11:06:20
644
U
E
O
D
class-wp-customize-nav-menu-name-control.php
1.1 kb
2017-10-05 02:22:50
644
U
E
O
D
class-wp-customize-nav-menu-section-ajax-response.php
1.1 kb
2023-02-07 17:10:22
644
U
E
O
D
class-wp-customize-nav-menu-setting.php
18.5 kb
2022-01-18 20:29:06
644
U
E
O
D
class-wp-customize-nav-menus-panel.php
3.2 kb
2023-02-07 17:10:22
644
U
E
O
D
class-wp-customize-new-menu-control.php
1.7 kb
2020-02-26 13:30:08
644
U
E
O
D
class-wp-customize-new-menu-section-reference.php
4.2 kb
2023-02-07 17:10:22
644
U
E
O
D
class-wp-customize-sidebar-section.php
1 kb
2017-11-30 23:11:00
644
U
E
O
D
class-wp-customize-site-icon-control.php
5 kb
2025-08-18 20:27:38
644
U
E
O
D
class-wp-customize-theme-control.php
11.6 kb
2023-09-14 01:25:16
644
U
E
O
D
class-wp-customize-themes-panel.php
3.3 kb
2024-10-13 19:09:12
644
U
E
O
D
class-wp-customize-upload-control.php
1.2 kb
2020-11-22 15:51:04
644
U
E
O
D
class-wp-sidebar-block-editor-control.php
686 b
2021-05-25 08:52:58
644
U
E
O
D