: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
function render( $attrs, $content = null, $render_slug ) {
$multi_view = et_pb_multi_view_options( $this );
$ul_type_values = et_pb_responsive_options()->get_property_values( $this->props, 'ul_type' );
$ul_position_values = et_pb_responsive_options()->get_property_values( $this->props, 'ul_position' );
$ul_item_indent_values = et_pb_responsive_options()->get_property_values( $this->props, 'ul_item_indent' );
$ol_type_values = et_pb_responsive_options()->get_property_values( $this->props, 'ol_type' );
$ol_position_values = et_pb_responsive_options()->get_property_values( $this->props, 'ol_position' );
$ol_item_indent_values = et_pb_responsive_options()->get_property_values( $this->props, 'ol_item_indent' );
$quote_border_weight_values = et_pb_responsive_options()->get_property_values( $this->props, 'quote_border_weight' );
$quote_border_weight_hover = et_pb_hover_options()->get_value( 'quote_border_weight', $this->props );
$quote_border_color_values = et_pb_responsive_options()->get_property_values( $this->props, 'quote_border_color' );
$quote_border_color_hover = et_pb_hover_options()->get_value( 'quote_border_color', $this->props );
$background_layout = $this->props['background_layout'];
$background_layout_hover = et_pb_hover_options()->get_value( 'background_layout', $this->props, 'light' );
$background_layout_hover_enabled = et_pb_hover_options()->is_enabled( 'background_layout', $this->props );
$background_layout_values = et_pb_responsive_options()->get_property_values( $this->props, 'background_layout' );
$background_layout_tablet = isset( $background_layout_values['tablet'] ) ? $background_layout_values['tablet'] : '';
$background_layout_phone = isset( $background_layout_values['phone'] ) ? $background_layout_values['phone'] : '';
$this->content = et_builder_replace_code_content_entities( $this->content );
// Un-autop converted GB block comments
$this->content = preg_replace( '/(<p>)?<!-- (\/)?divi:(.+?) (\/?)-->(<\/p>)?/', '<!-- $2divi:$3 $4-->', $this->content );
// Convert GB embeds to iframes
$this->content = preg_replace_callback(
'/<!-- divi:core-embed\/youtube {"url":"([^"]+)"[\s\S]+?<!-- \/divi:core-embed\/youtube -->/',
array( $this, 'convert_embeds' ),
$video_background = $this->video_background();
$parallax_image_background = $this->get_parallax_image_background();
et_pb_responsive_options()->generate_responsive_css( $ul_type_values, '%%order_class%% ul', 'list-style-type', $render_slug, ' !important;', 'type' );
et_pb_responsive_options()->generate_responsive_css( $ul_position_values, '%%order_class%% ul', 'list-style-position', $render_slug, '', 'type' );
et_pb_responsive_options()->generate_responsive_css( $ul_item_indent_values, '%%order_class%% ul', 'padding-left', $render_slug, ' !important;' );
et_pb_responsive_options()->generate_responsive_css( $ol_type_values, '%%order_class%% ol', 'list-style-type', $render_slug, ' !important;', 'type' );
et_pb_responsive_options()->generate_responsive_css( $ol_position_values, '%%order_class%% ol', 'list-style-position', $render_slug, ' !important;', 'type' );
et_pb_responsive_options()->generate_responsive_css( $ol_item_indent_values, '%%order_class%% ol', 'padding-left', $render_slug, ' !important;' );
et_pb_responsive_options()->generate_responsive_css( $quote_border_weight_values, '%%order_class%% blockquote', 'border-width', $render_slug );
et_pb_responsive_options()->generate_responsive_css( $quote_border_color_values, '%%order_class%% blockquote', 'border-color', $render_slug, '', 'color' );
if ( '' !== $quote_border_color_hover && et_builder_is_hover_enabled( 'quote_border_color', $this->props ) ) {
self::set_style( $render_slug, array(
'selector' => '%%order_class%% blockquote:hover',
'declaration' => sprintf(
'border-color: %1$s !important;',
esc_html( $quote_border_color_hover )
if ( '' !== $quote_border_weight_hover && et_builder_is_hover_enabled( 'quote_border_weight', $this->props ) ) {
self::set_style( $render_slug, array(
'selector' => '%%order_class%% blockquote:hover',
'declaration' => sprintf(
'border-width: %1$s !important;',
esc_html( $quote_border_weight_hover )
$this->add_classname( array(
$this->get_text_orientation_classname(),
// Background layout class names.
$background_layout_class_names = et_pb_background_layout_options()->get_background_layout_class( $this->props );
$this->add_classname( $background_layout_class_names );
// Background layout data attributes.
$data_background_layout = et_pb_background_layout_options()->get_background_layout_attrs( $this->props );
$content = $multi_view->render_element( array(
'content' => '{{content}}',
'class' => 'et_pb_text_inner',
'<div%3$s class="%2$s"%6$s>
</div> <!-- .et_pb_text -->',
$this->module_classname( $render_slug ),
$parallax_image_background, // #5
et_core_esc_previously( $data_background_layout )
new ET_Builder_Module_Text;