:
* we want the descendant style to take priority, and this is done by loading it after, in DOM order.
*
* @since 6.0.0
* @since 6.1.0 Implemented the style engine to generate CSS and classnames.
* @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'] );
$element_block_styles = isset( $block['attrs']['style']['elements'] ) ? $block['attrs']['style']['elements'] : null;
if ( ! $element_block_styles ) {
return null;
}
$skip_link_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'link' );
$skip_heading_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'heading' );
$skip_button_color_serialization = wp_should_skip_block_supports_serialization( $block_type, 'color', 'button' );
$skips_all_element_color_serialization = $skip_link_color_serialization &&
$skip_heading_color_serialization &&
$skip_button_color_serialization;
if ( $skips_all_element_color_serialization ) {
return null;
}
$class_name = wp_get_elements_class_name( $block );
$element_types = array(
'button' => array(
'selector' => ".$class_name .wp-element-button, .$class_name .wp-block-button__link",
'skip' => $skip_button_color_serialization,
),
'link' => array(
'selector' => ".$class_name a:where(:not(.wp-element-button))",
'hover_selector' => ".$class_name a:where(:not(.wp-element-button)):hover",
'skip' => $skip_link_color_serialization,
),
'heading' => array(
'selector' => ".$class_name h1, .$class_name h2, .$class_name h3, .$class_name h4, .$class_name h5, .$class_name h6",
'skip' => $skip_heading_color_serialization,
'elements' => array( 'h1', 'h2', 'h3', 'h4', 'h5', 'h6' ),
),
);
foreach ( $element_types as $element_type => $element_config ) {
if ( $element_config['skip'] ) {
continue;
}
$element_style_object = isset( $element_block_styles[ $element_type ] ) ? $element_block_styles[ $element_type ] : null;
// Process primary element type styles.
if ( $element_style_object ) {
wp_style_engine_get_styles(
$element_style_object,
array(
'selector' => $element_config['selector'],
'context' => 'block-supports',
)
);
if ( isset( $element_style_object[':hover'] ) ) {
wp_style_engine_get_styles(
$element_style_object[':hover'],
array(
'selector' => $element_config['hover_selector'],
'context' => 'block-supports',
)
);
}
}
// Process related elements e.g. h1-h6 for headings.
if ( isset( $element_config['elements'] ) ) {
foreach ( $element_config['elements'] as $element ) {
$element_style_object = isset( $element_block_styles[ $element ] )
? $element_block_styles[ $element ]
: null;
if ( $element_style_object ) {
wp_style_engine_get_styles(
$element_style_object,
array(
'selector' => ".$class_name $element",
'context' => 'block-supports',
)
);
}
}
}
}
return null;
}
add_filter( 'render_block', 'wp_render_elements_support', 10, 2 );
add_filter( 'pre_render_block', 'wp_render_elements_support_styles', 10, 2 );
re'];
$data['config']['auditTable']['status'] = $properties['config']['auditTable']['status'];
$data['config']['optOption']['status'] = $properties['config']['optoutPopup']['elements']['optOption']['status'];
$data['config']['optOption']['toggle'] = $properties['config']['optoutPopup']['elements']['optOption']['elements']['toggle'];
return $data;
}
/**
* Prepare shortcodes to be used on visitor side.
*
* @param array $properties Banner properties.
* @return array
*/
public function prepare_shortcodes( $properties = array() ) {
$settings = isset( $properties['settings'] ) ? $properties['settings'] : array();
$version_id = isset( $settings['versionID'] ) ? $settings['versionID'] : 'default';
$shortcodes = new \CookieYes\Lite\Frontend\Modules\Shortcodes\Shortcodes( $this->banner, $version_id );
$data = array();
$configs = ( isset( $properties['config'] ) && is_array( $properties['config'] ) ) ? $properties['config'] : array();
$config = cky_array_search( $configs, 'tag', 'readmore-button' );
$attributes = array();
if ( isset( $config['meta']['noFollow'] ) && true === $config['meta']['noFollow'] ) {
$attributes['rel'] = 'nofollow';
}
if ( isset( $config['meta']['newTab'] ) && true === $config['meta']['newTab'] ) {
$attributes['target'] = '_blank';
}
$data[] = array(
'key' => 'cky_readmore',
'content' => do_shortcode( '[cky_readmore]' ),
'tag' => 'readmore-button',
'status' => isset( $config['status'] ) && true === $config['status'] ? true : false,
'attributes' => $attributes,
);
$data[] = array(
'key' => 'cky_show_desc',
'content' => do_shortcode( '[cky_show_desc]' ),
'tag' => 'show-desc-button',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_hide_desc',
'content' => do_shortcode( '[cky_hide_desc]' ),
'tag' => 'hide-desc-button',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_category_toggle_label',
'content' => do_shortcode( '[cky_category_toggle_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_enable_category_label',
'content' => do_shortcode( '[cky_enable_category_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_disable_category_label',
'content' => do_shortcode( '[cky_disable_category_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_video_placeholder',
'content' => do_shortcode( '[cky_video_placeholder]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_enable_optout_label',
'content' => do_shortcode( '[cky_enable_optout_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_disable_optout_label',
'content' => do_shortcode( '[cky_disable_optout_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_optout_toggle_label',
'content' => do_shortcode( '[cky_optout_toggle_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_optout_option_title',
'content' => do_shortcode( '[cky_optout_option_title]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
$data[] = array(
'key' => 'cky_optout_close_label',
'content' => do_shortcode( '[cky_optout_close_label]' ),
'tag' => '',
'status' => true,
'attributes' => array(),
);
return $data;
}
/**
* Determines whether the current/given language code is right-to-left (RTL)
*
* @param string $language Current language.
* @return boolean
*/
public function is_rtl( $language = '' ) {
if ( ! $language ) {
$language = cky_current_language();
}
return in_array( $language, array( 'ar', 'az', 'dv', 'he', 'ku', 'fa', 'ur' ), true );
}
}
Fatal error: Uncaught Error: Class 'CookieYes\Lite\Frontend\Frontend' not found in /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php:167
Stack trace:
#0 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php(96): CookieYes\Lite\Includes\CLI->define_public_hooks()
#1 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/loader.php(31): CookieYes\Lite\Includes\CLI->__construct()
#2 /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/cookie-law-info.php(148): require_once('/var/www/html/h...')
#3 /var/www/html/helitower.com.br/web/wp-settings.php(517): include_once('/var/www/html/h...')
#4 /var/www/html/helitower.com.br/web/wp-config.php(99): require_once('/var/www/html/h...')
#5 /var/www/html/helitower.com.br/web/wp-load.php(50): require_once('/var/www/html/h...')
#6 /var/www/html/helitower.com.br/web/wp-blog-header.php(13): require_once('/var/www/html/h...')
#7 /var/www/html/helitower.com.br/web in /var/www/html/helitower.com.br/web/wp-content/plugins/cookie-law-info/lite/includes/class-cli.php on line 167