: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
// Adjusts for when percentages are being used.
if ( 0 < strpos( $height, '%' ) ) {
$declaration['background-size'] = sprintf( '%1$s%% 100%%', floatval( 100 / $repeat ) );
$declaration['background-size'] = sprintf( '%1$s%% %2$s', floatval( 100 / $repeat ), $height );
foreach ( $declaration as $rule => $value ) {
$css .= esc_html( "{$rule}:{$value};" );
ET_Builder_Element::set_style( 'et_pb_section', array(
'selector' => "$selector",
* Returns a placeholder for the section only if it is set to be inside of the section.
* @param string $placement Whether it is the top or bottom
* @return string HTML container
public function get_svg( $placement ) {
// we return a div to use for the divider
return sprintf( '<div class="et_pb_%s_inside_divider et-no-transition"></div>', esc_attr( $placement ) );
return new ET_Builder_Module_Field_Divider();