: str_replace(): Passing null to parameter #2 ($replace) of type array|string is deprecated in
* Add Builder layouts bundled with the Popup plugin to Builder
class Themify_Builder_Layouts_Provider_Themify_Popup extends Themify_Builder_Layouts_Provider {
public function get_id() {
public function get_label() {
return __( 'Themify Popup', 'themify' );
* Get a list of layouts from /builder-layouts/layouts.php file inside the theme
public function get_layouts() {
return $this->get_layouts_from_file( THEMIFY_POPUP_DIR . 'sample/layouts.php' );
* Get the Builder data from a file in /builder-layouts directory in the theme
public function get_builder_data( $slug ) {
return $this->get_builder_data_from_file( THEMIFY_POPUP_DIR . 'sample/' . $slug );