mirror of
https://github.com/proelements/proelements.git
synced 2026-04-05 20:13:47 +00:00
v3.35.0
This commit is contained in:
@@ -41,8 +41,24 @@ class Module extends Module_Base {
|
||||
}
|
||||
|
||||
private function inject_props_schema( $schema ) {
|
||||
$schema[ Display_Conditions_Prop_Type::get_key() ] = Display_Conditions_Prop_Type::make();
|
||||
$display_conditions_prop_type = Display_Conditions_Prop_Type::make();
|
||||
|
||||
$components_module = 'Elementor\\Modules\\Components\\Module';
|
||||
$overridable_prop_type = 'Elementor\\Modules\\Components\\PropTypes\\Overridable_Prop_Type';
|
||||
|
||||
$is_components_experiment_active = false;
|
||||
if ( class_exists( $components_module ) ) {
|
||||
$is_components_experiment_active = Plugin::elementor()->experiments->is_feature_active( $components_module::EXPERIMENT_NAME );
|
||||
}
|
||||
|
||||
if (
|
||||
$is_components_experiment_active &&
|
||||
class_exists( $overridable_prop_type )
|
||||
) {
|
||||
$display_conditions_prop_type->meta( $overridable_prop_type::ignore() );
|
||||
}
|
||||
|
||||
$schema[ Display_Conditions_Prop_Type::get_key() ] = $display_conditions_prop_type;
|
||||
return $schema;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user