| 1 |
<?php |
| 2 |
/** |
| 3 |
* WishlistSettings class. |
| 4 |
* |
| 5 |
* @package RadiusTheme\SB |
| 6 |
*/ |
| 7 |
|
| 8 |
namespace RadiusTheme\SB\Elementor\Widgets\Controls; |
| 9 |
|
| 10 |
use Elementor\Controls_Manager; |
| 11 |
use RadiusTheme\SB\Elementor\Helper\ControlHelper; |
| 12 |
use RadiusTheme\SB\Helpers\Fns; |
| 13 |
|
| 14 |
// Do not allow directly accessing this file. |
| 15 |
if ( ! defined( 'ABSPATH' ) ) { |
| 16 |
exit( 'This script cannot be accessed directly.' ); |
| 17 |
} |
| 18 |
|
| 19 |
/** |
| 20 |
* Product Description class |
| 21 |
*/ |
| 22 |
class WishlistSettings { |
| 23 |
/** |
| 24 |
* Widget Field |
| 25 |
* |
| 26 |
* @return array |
| 27 |
*/ |
| 28 |
public static function settings_field( $widget ) { |
| 29 |
$fields = TableSettings::table_settings( $widget ); |
| 30 |
$insert_array = [ |
| 31 |
'header_cell_width' => [ |
| 32 |
'label' => esc_html__( 'Cell Width', 'shopbuilder' ), |
| 33 |
'type' => 'slider', |
| 34 |
'separator' => 'default', |
| 35 |
'range' => [ |
| 36 |
'px' => [ |
| 37 |
'min' => 200, |
| 38 |
'max' => 500, |
| 39 |
], |
| 40 |
], |
| 41 |
'selectors' => [ |
| 42 |
$widget->selectors['header_cell_width'] => 'min-width: {{SIZE}}{{UNIT}};', |
| 43 |
], |
| 44 |
], |
| 45 |
]; |
| 46 |
$fields = Fns::insert_controls( 'table_header_bg_color', $fields, $insert_array, true ); |
| 47 |
$insert_array = [ |
| 48 |
'item_cell_width' => [ |
| 49 |
'label' => esc_html__( 'Cell Width', 'shopbuilder' ), |
| 50 |
'type' => 'slider', |
| 51 |
'separator' => 'default', |
| 52 |
'range' => [ |
| 53 |
'px' => [ |
| 54 |
'min' => 200, |
| 55 |
'max' => 500, |
| 56 |
], |
| 57 |
], |
| 58 |
'selectors' => [ |
| 59 |
$widget->selectors['item_cell_width'] => 'min-width: {{SIZE}}{{UNIT}};', |
| 60 |
], |
| 61 |
], |
| 62 |
]; |
| 63 |
$fields = Fns::insert_controls( 'table_item_bg_color', $fields, $insert_array, true ); |
| 64 |
return $fields; |
| 65 |
} |
| 66 |
} |
| 67 |
|