| @@ -116,9 +116,9 @@ | ||
| 116 | 116 | Controls\SettingsFields::section_title( $this ), |
| 117 | 117 | Controls\SettingsFields::product_title( $this ), |
| 118 | 118 | Controls\SettingsFields::product_excerpt( $this ), |
| 119 | 119 | Controls\SettingsFields::badges( $this ), |
| 120 | - $this->variation_swatch_conditionaly(), | |
| 120 | + Controls\SettingsFields::variation_swatch( $this ), | |
| 121 | 121 | Controls\SettingsFields::links( $this ) |
| 122 | 122 | ); |
| 123 | 123 | return apply_filters( 'rtsb/elements/elementor/product_custom_settings_tab', $sections, $this ); |
| 124 | 124 | } |
| @@ -128,18 +128,8 @@ | ||
| 128 | 128 | * @return array |
| 129 | 129 | */ |
| 130 | 130 | protected function widget_layout() { |
| 131 | 131 | return Controls\LayoutFields::grid_layout( $this ); |
| 132 | - } | |
| 133 | - public function variation_swatch_conditionaly() { | |
| 134 | - if ( ! function_exists( 'rtwpvsp' ) ) { | |
| 135 | - return []; | |
| 136 | - } | |
| 137 | - $swatches_controls = Controls\SettingsFields::variation_swatch( $this ); | |
| 138 | - $swatches_controls['swatch_position']['condition'] = [ | |
| 139 | - 'layout' => [ 'grid-layout1' ], | |
| 140 | - ]; | |
| 141 | - return $swatches_controls; | |
| 142 | 132 | } |
| 143 | 133 | /** |
| 144 | 134 | * Controls for layout tab |
| 145 | 135 | * |