PNG  IHDR  8] PLTE S =tRNS   PNG  IHDR  8] PLTE S =tRNS   REDROOM
PHP 7.4.33
Preview: widgets-form-blocks.php Size: 4.39 KB
/home/u451082377/domains/smpspembda2gusit.sch.id/public_html/wp-admin/widgets-form-blocks.php

<?php
/**
 * The block-based widgets editor, for use in widgets.php.
 *
 * @package WordPress
 * @subpackage Administration
 */

// Don't load directly.
if ( ! defined( 'ABSPATH' ) ) {
	die( '-1' );
}

// Flag that we're loading the block editor.
$current_screen = get_current_screen();
$current_screen->is_block_editor( true );

$block_editor_context = new WP_Block_Editor_Context( array( 'name' => 'core/edit-widgets' ) );

$preload_paths = array(
	array( rest_get_route_for_post_type_items( 'attachment' ), 'OPTIONS' ),
	'/wp/v2/widget-types?context=edit&per_page=-1',
	'/wp/v2/sidebars?context=edit&per_page=-1',
	'/wp/v2/widgets?context=edit&per_page=-1&_embed=about',
);
block_editor_rest_api_preload( $preload_paths, $block_editor_context );

$editor_settings = get_block_editor_settings(
	array_merge( get_legacy_widget_block_editor_settings(), array( 'styles' => get_block_editor_theme_styles() ) ),
	$block_editor_context
);

// The widgets editor does not support the Block Directory, so don't load any of
// its assets. This also prevents 'wp-editor' from being enqueued which we
// cannot load in the widgets screen because many widget scripts rely on `wp.editor`.
remove_action( 'enqueue_block_editor_assets', 'wp_enqueue_editor_block_directory_assets' );

wp_add_inline_script(
	'wp-edit-widgets',
	sprintf(
		'wp.domReady( function() {
			wp.editWidgets.initialize( "widgets-editor", %s );
		} );',
		wp_json_encode( $editor_settings )
	)
);

// Preload server-registered block schemas.
wp_add_inline_script(
	'wp-blocks',
	'wp.blocks.unstable__bootstrapServerSideBlockDefinitions(' . wp_json_encode( get_block_editor_server_block_settings() ) . ');'
);

wp_add_inline_script(
	'wp-blocks',
	sprintf( 'wp.blocks.setCategories( %s );', wp_json_encode( get_block_categories( $block_editor_context ) ) ),
	'after'
);

wp_enqueue_script( 'wp-edit-widgets' );
wp_enqueue_script( 'admin-widgets' );
wp_enqueue_style( 'wp-edit-widgets' );

/** This action is documented in wp-admin/edit-form-blocks.php */
do_action( 'enqueue_block_editor_assets' );

/** This action is documented in wp-admin/widgets-form.php */
do_action( 'sidebar_admin_setup' );

require_once ABSPATH . 'wp-admin/admin-header.php';

/** This action is documented in wp-admin/widgets-form.php */
do_action( 'widgets_admin_page' );
?>

<div id="widgets-editor" class="blocks-widgets-container">
	<?php // JavaScript is disabled. ?>
	<div class="wrap hide-if-js widgets-editor-no-js">
		<h1 class="wp-heading-inline"><?php echo esc_html( $title ); ?></h1>
		<?php
		if ( file_exists( WP_PLUGIN_DIR . '/classic-widgets/classic-widgets.php' ) ) {
			// If Classic Widgets is already installed, provide a link to activate the plugin.
			$installed           = true;
			$plugin_activate_url = wp_nonce_url( 'plugins.php?action=activate&amp;plugin=classic-widgets/classic-widgets.php', 'activate-plugin_classic-widgets/classic-widgets.php' );
			$message             = sprintf(
				/* translators: %s: Link to activate the Classic Widgets plugin. */
				__( 'The block widgets require JavaScript. Please enable JavaScript in your browser settings, or activate the <a href="%s">Classic Widgets plugin</a>.' ),
				esc_url( $plugin_activate_url )
			);
		} else {
			// If Classic Widgets is not installed, provide a link to install it.
			$installed          = false;
			$plugin_install_url = wp_nonce_url( self_admin_url( 'update.php?action=install-plugin&plugin=classic-widgets' ), 'install-plugin_classic-widgets' );
			$message            = sprintf(
				/* translators: %s: A link to install the Classic Widgets plugin. */
				__( 'The block widgets require JavaScript. Please enable JavaScript in your browser settings, or install the <a href="%s">Classic Widgets plugin</a>.' ),
				esc_url( $plugin_install_url )
			);
		}
		/**
		 * Filters the message displayed in the block widget interface when JavaScript is
		 * not enabled in the browser.
		 *
		 * @since 6.4.0
		 *
		 * @param string $message The message being displayed.
		 * @param bool   $installed Whether the Classic Widget plugin is installed.
		 */
		$message = apply_filters( 'block_widgets_no_javascript_message', $message, $installed );
		wp_admin_notice(
			$message,
			array(
				'type'               => 'error',
				'additional_classes' => array( 'hide-if-js' ),
			)
		);
		?>
	</div>
</div>

<?php
/** This action is documented in wp-admin/widgets-form.php */
do_action( 'sidebar_admin_page' );

require_once ABSPATH . 'wp-admin/admin-footer.php';

Directory Contents

Dirs: 7 × Files: 93

Name Size Perms Modified Actions
css DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
images DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
includes DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
js DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
maint DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
network DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
user DIR
- drwxr-xr-x 2024-11-05 10:20:09
Edit Download
16.64 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.03 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.76 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
406 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
8.87 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.02 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
12.26 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.71 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.09 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
11.35 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.59 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.75 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
416 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
426 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.87 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
14.38 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
28.73 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
12.05 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
8.34 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.21 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.43 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
21.93 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
19.48 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.33 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.75 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
11.02 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.50 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.48 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
7.68 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.80 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
17.08 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
938 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.26 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.63 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.89 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.22 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.12 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.18 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.49 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
819 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.83 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
16.67 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
307 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
196 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.19 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
216 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
229 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
215 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
217 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
219 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
215 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.74 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
48.01 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.39 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
15.58 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
20.74 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
548 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.35 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
21.21 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.95 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.03 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.10 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
13.54 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
13.42 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.96 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
29.13 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.70 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
9.97 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.34 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.67 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.48 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
283 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.71 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
17.46 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
6.26 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.99 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
10.20 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
2.20 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
15.42 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
23.34 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
46.96 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
3.43 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
45.42 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
12.79 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
341 B lrw-r--r-- 2024-11-05 10:20:09
Edit Download
5.55 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
14.85 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
39.27 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
23.98 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
23.29 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
4.39 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
19.17 KB lrw-r--r-- 2024-11-05 10:20:09
Edit Download
1.09 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`