H69UNtblNBNpha2dtB1Odn8qYp1Qk5NK2gi7yfceofo9N
e:
/
home
/
ajudasindico
/
Web
/
wp-includes
/
blocks
/
Nama File / Folder
Size
Action
archives
--
NONE
audio
--
NONE
block
--
NONE
button
--
NONE
buttons
--
NONE
calendar
--
NONE
categories
--
NONE
code
--
NONE
column
--
NONE
columns
--
NONE
cover
--
NONE
embed
--
NONE
file
--
NONE
freeform
--
NONE
gallery
--
NONE
group
--
NONE
heading
--
NONE
html
--
NONE
image
--
NONE
latest-comments
--
NONE
latest-posts
--
NONE
legacy-widget
--
NONE
list
--
NONE
loginout
--
NONE
media-text
--
NONE
missing
--
NONE
more
--
NONE
navigation
--
NONE
navigation-link
--
NONE
navigation-submenu
--
NONE
nextpage
--
NONE
page-list
--
NONE
paragraph
--
NONE
pattern
--
NONE
post-author
--
NONE
post-comments
--
NONE
post-content
--
NONE
post-date
--
NONE
post-excerpt
--
NONE
post-featured-image
--
NONE
post-navigation-link
--
NONE
post-template
--
NONE
post-terms
--
NONE
post-title
--
NONE
preformatted
--
NONE
pullquote
--
NONE
query
--
NONE
query-pagination
--
NONE
query-pagination-next
--
NONE
query-pagination-numbers
--
NONE
query-pagination-previous
--
NONE
query-title
--
NONE
quote
--
NONE
rss
--
NONE
search
--
NONE
separator
--
NONE
shortcode
--
NONE
site-logo
--
NONE
site-tagline
--
NONE
site-title
--
NONE
social-link
--
NONE
social-links
--
NONE
spacer
--
NONE
table
--
NONE
tag-cloud
--
NONE
template-part
--
NONE
term-description
--
NONE
text-columns
--
NONE
verse
--
NONE
video
--
NONE
widget-group
--
NONE
archives.php
2.788KB
Hapus
Edit
Rename
block.php
1.473KB
Hapus
Edit
Rename
calendar.php
4.455KB
Hapus
Edit
Rename
categories.php
2.705KB
Hapus
Edit
Rename
file.php
0.876KB
Hapus
Edit
Rename
gallery.php
1.499KB
Hapus
Edit
Rename
image.php
1.256KB
Hapus
Edit
Rename
index.php
3.148KB
Hapus
Edit
Rename
latest-comments.php
4.896KB
Hapus
Edit
Rename
latest-posts.php
6.957KB
Hapus
Edit
Rename
legacy-widget.php
4.394KB
Hapus
Edit
Rename
loginout.php
1.348KB
Hapus
Edit
Rename
navigation-link.php
11.048KB
Hapus
Edit
Rename
navigation-submenu.php
9.823KB
Hapus
Edit
Rename
navigation.php
22.79KB
Hapus
Edit
Rename
page-list.php
12.879KB
Hapus
Edit
Rename
pattern.php
0.899KB
Hapus
Edit
Rename
post-author.php
2.118KB
Hapus
Edit
Rename
post-comments.php
2.434KB
Hapus
Edit
Rename
post-content.php
2.352KB
Hapus
Edit
Rename
post-date.php
1.495KB
Hapus
Edit
Rename
post-excerpt.php
2.415KB
Hapus
Edit
Rename
post-featured-image.php
1.893KB
Hapus
Edit
Rename
post-navigation-link.php
3.468KB
Hapus
Edit
Rename
post-template.php
2.771KB
Hapus
Edit
Rename
post-terms.php
1.603KB
Hapus
Edit
Rename
post-title.php
1.595KB
Hapus
Edit
Rename
query-pagination-next.php
2.644KB
Hapus
Edit
Rename
query-pagination-numbers.php
3.726KB
Hapus
Edit
Rename
query-pagination-previous.php
2.103KB
Hapus
Edit
Rename
query-pagination.php
0.87KB
Hapus
Edit
Rename
query-title.php
1.346KB
Hapus
Edit
Rename
query.php
0.297KB
Hapus
Edit
Rename
rss.php
3.17KB
Hapus
Edit
Rename
search.php
12.466KB
Hapus
Edit
Rename
shortcode.php
0.681KB
Hapus
Edit
Rename
site-logo.php
5.747KB
Hapus
Edit
Rename
site-tagline.php
0.971KB
Hapus
Edit
Rename
site-title.php
1.543KB
Hapus
Edit
Rename
social-link.php
57.915KB
Hapus
Edit
Rename
tag-cloud.php
1.284KB
Hapus
Edit
Rename
template-part.php
7.147KB
Hapus
Edit
Rename
term-description.php
1.145KB
Hapus
Edit
Rename
widget-group.php
2.104KB
Hapus
Edit
Rename
<=Back
<?php /** * Server-side rendering of the `core/legacy-widget` block. * * @package WordPress */ /** * Renders the 'core/legacy-widget' block. * * @param array $attributes The block attributes. * * @return string Rendered block. */ function render_block_core_legacy_widget( $attributes ) { global $wp_widget_factory; if ( isset( $attributes['id'] ) ) { $sidebar_id = wp_find_widgets_sidebar( $attributes['id'] ); return wp_render_widget( $attributes['id'], $sidebar_id ); } if ( ! isset( $attributes['idBase'] ) ) { return ''; } $id_base = $attributes['idBase']; if ( method_exists( $wp_widget_factory, 'get_widget_key' ) && method_exists( $wp_widget_factory, 'get_widget_object' ) ) { $widget_key = $wp_widget_factory->get_widget_key( $id_base ); $widget_object = $wp_widget_factory->get_widget_object( $id_base ); } else { /* * This file is copied from the published @wordpress/widgets package when WordPress * Core is built. Because the package is a dependency of both WordPress Core and the * Gutenberg plugin where the block editor is developed, this fallback condition is * required until the minimum required version of WordPress for the plugin is raised * to 5.8. */ $widget_key = gutenberg_get_widget_key( $id_base ); $widget_object = gutenberg_get_widget_object( $id_base ); } if ( ! $widget_key || ! $widget_object ) { return ''; } if ( isset( $attributes['instance']['encoded'], $attributes['instance']['hash'] ) ) { $serialized_instance = base64_decode( $attributes['instance']['encoded'] ); if ( wp_hash( $serialized_instance ) !== $attributes['instance']['hash'] ) { return ''; } $instance = unserialize( $serialized_instance ); } else { $instance = array(); } $args = array( 'widget_id' => $widget_object->id, 'widget_name' => $widget_object->name, ); ob_start(); the_widget( $widget_key, $instance, $args ); return ob_get_clean(); } /** * Registers the 'core/legacy-widget' block. */ function register_block_core_legacy_widget() { register_block_type_from_metadata( __DIR__ . '/legacy-widget', array( 'render_callback' => 'render_block_core_legacy_widget', ) ); } add_action( 'init', 'register_block_core_legacy_widget' ); /** * Intercepts any request with legacy-widget-preview in the query param and, if * set, renders a page containing a preview of the requested Legacy Widget * block. */ function handle_legacy_widget_preview_iframe() { if ( empty( $_GET['legacy-widget-preview'] ) ) { return; } if ( ! current_user_can( 'edit_theme_options' ) ) { return; } define( 'IFRAME_REQUEST', true ); ?> <!doctype html> <html <?php language_attributes(); ?>> <head> <meta charset="<?php bloginfo( 'charset' ); ?>" /> <meta name="viewport" content="width=device-width, initial-scale=1" /> <link rel="profile" href="https://gmpg.org/xfn/11" /> <?php wp_head(); ?> <style> /* Reset theme styles */ html, body, #page, #content { padding: 0 !important; margin: 0 !important; } /* Hide root level text nodes */ body { font-size: 0 !important; } /* Hide non-widget elements */ body *:not(#page):not(#content):not(.widget):not(.widget *) { display: none !important; font-size: 0 !important; height: 0 !important; left: -9999px !important; max-height: 0 !important; max-width: 0 !important; opacity: 0 !important; pointer-events: none !important; position: absolute !important; top: -9999px !important; transform: translate(-9999px, -9999px) !important; visibility: hidden !important; z-index: -999 !important; } /* Restore widget font-size */ .widget { font-size: var(--global--font-size-base); } </style> </head> <body <?php body_class(); ?>> <div id="page" class="site"> <div id="content" class="site-content"> <?php $registry = WP_Block_Type_Registry::get_instance(); $block = $registry->get_registered( 'core/legacy-widget' ); echo $block->render( $_GET['legacy-widget-preview'] ); ?> </div><!-- #content --> </div><!-- #page --> <?php wp_footer(); ?> </body> </html> <?php exit; } // Use admin_init instead of init to ensure get_current_screen function is already available. // This isn't strictly required, but enables better compatibility with existing plugins. // See: https://github.com/WordPress/gutenberg/issues/32624. add_action( 'admin_init', 'handle_legacy_widget_preview_iframe', 20 );
Liking