| 1 |
<?php |
| 2 |
|
| 3 |
namespace UltimateStoreKit\Includes\Settings; |
| 4 |
|
| 5 |
use Elementor\Plugin; |
| 6 |
use Elementor\Controls_Manager; |
| 7 |
use Elementor\Group_Control_Background; |
| 8 |
use Elementor\Group_Control_Typography; |
| 9 |
use Elementor\Core\Kits\Documents\Tabs\Tab_Base; |
| 10 |
use UltimateStoreKit\Base\Ultimate_Store_Kit_Module_Base; |
| 11 |
use Elementor\Core\Kits\Documents\Kit; |
| 12 |
// use Elementor\Core\Experiments\Manager as Experiments_Manager; |
| 13 |
|
| 14 |
if (!defined('ABSPATH')) { |
| 15 |
exit; // Exit if accessed directly |
| 16 |
} |
| 17 |
|
| 18 |
class Settings_Modal extends Tab_Base { |
| 19 |
|
| 20 |
// public function __construct() { |
| 21 |
// // parent::__construct(); |
| 22 |
// add_action( 'wp_footer', [$this, 'modal_wrapper']); |
| 23 |
|
| 24 |
// } |
| 25 |
|
| 26 |
public function get_id() { |
| 27 |
return 'ultimate-store-kit-modal'; |
| 28 |
} |
| 29 |
public function get_title() { |
| 30 |
return __('Modal Settings', 'ultimate-store-kit'); |
| 31 |
} |
| 32 |
|
| 33 |
public function get_icon() { |
| 34 |
return 'usk-icon-ultimate-store-kit'; |
| 35 |
} |
| 36 |
|
| 37 |
public function get_help_url() { |
| 38 |
return ''; |
| 39 |
} |
| 40 |
|
| 41 |
// public function get_group() { |
| 42 |
// return 'theme-style'; |
| 43 |
// } |
| 44 |
protected function register_tab_controls() { |
| 45 |
$this->start_controls_section( |
| 46 |
'ultimate_store_kit_modal_settings', |
| 47 |
[ |
| 48 |
'label' => esc_html__('Modal', 'ultimate-store-kit'), |
| 49 |
'tab' => 'ultimate-store-kit-modal', |
| 50 |
] |
| 51 |
); |
| 52 |
$this->add_control( |
| 53 |
'ultimate_store_kit_modal_layout', |
| 54 |
[ |
| 55 |
'label' => esc_html__('Layout', 'ultimate-store-kit'), |
| 56 |
'type' => Controls_Manager::HEADING, |
| 57 |
'separator' => 'before', |
| 58 |
] |
| 59 |
); |
| 60 |
// $this->add_responsive_control( |
| 61 |
// 'ultimate_store_kit_modal_width', |
| 62 |
// [ |
| 63 |
// 'label' => esc_html__( 'Width', 'ultimate-store-kit' ), |
| 64 |
// 'type' => Controls_Manager::SLIDER, |
| 65 |
// ] |
| 66 |
// ); |
| 67 |
$this->add_responsive_control( |
| 68 |
'ultimate_store_kit_modal_width', |
| 69 |
[ |
| 70 |
'label' => esc_html__('Width', 'ultimate-store-kit'), |
| 71 |
'type' => Controls_Manager::SLIDER, |
| 72 |
'description' => esc_html__('You must need to update and preview changes for seeing updated result', 'ultimate-store-kit'), |
| 73 |
'size_units' => ['px', '%', 'vh'], |
| 74 |
'range' => [ |
| 75 |
'px' => [ |
| 76 |
'min' => 300, |
| 77 |
'max' => 1200, |
| 78 |
'step' => 5, |
| 79 |
] |
| 80 |
] |
| 81 |
] |
| 82 |
); |
| 83 |
$this->add_responsive_control( |
| 84 |
'ultimate_store_kit_modal_height', |
| 85 |
[ |
| 86 |
'label' => esc_html__('Height', 'ultimate-store-kit'), |
| 87 |
'type' => Controls_Manager::SLIDER, |
| 88 |
'description' => esc_html__('You must need to update and preview changes for seeing updated result', 'ultimate-store-kit'), |
| 89 |
'size_units' => ['px', '%', 'vh'], |
| 90 |
'range' => [ |
| 91 |
'px' => [ |
| 92 |
'min' => 300, |
| 93 |
'max' => 900, |
| 94 |
'step' => 5, |
| 95 |
] |
| 96 |
] |
| 97 |
] |
| 98 |
); |
| 99 |
$this->add_control( |
| 100 |
'ultimate_store_kit_modal_animation', |
| 101 |
[ |
| 102 |
'label' => esc_html__('Animation Type', 'ultimate-store-kit'), |
| 103 |
'type' => Controls_Manager::SELECT, |
| 104 |
'description' => esc_html__('You must need to update and preview changes for seeing updated result', 'ultimate-store-kit'), |
| 105 |
'default' => 'zoomIn', |
| 106 |
'options' => [ |
| 107 |
'zoomIn' => esc_html__('ZoomIn', 'ultimate-store-kit'), |
| 108 |
'zoomOut' => esc_html__('ZoomOut', 'ultimate-store-kit'), |
| 109 |
'slideInTop' => esc_html__('SlideInTop', 'ultimate-store-kit'), |
| 110 |
'slideInBottom' => esc_html__('SlideInBottom', 'ultimate-store-kit'), |
| 111 |
'slideInLeft' => esc_html__('SlideInLeft', 'ultimate-store-kit'), |
| 112 |
'slideInRight' => esc_html__('SlideInRight', 'ultimate-store-kit'), |
| 113 |
'slideInLeft' => esc_html__('slideInLeft', 'ultimate-store-kit'), |
| 114 |
'slideTop' => esc_html__('slideTop', 'ultimate-store-kit'), |
| 115 |
'slideBottom' => esc_html__('slideBottom', 'ultimate-store-kit'), |
| 116 |
'slideRight' => esc_html__('slideRight', 'ultimate-store-kit'), |
| 117 |
'slideLeft' => esc_html__('slideLeft', 'ultimate-store-kit'), |
| 118 |
'rotateIn' => esc_html__('rotateIn', 'ultimate-store-kit'), |
| 119 |
'rotateOut' => esc_html__('rotateOut', 'ultimate-store-kit'), |
| 120 |
'flipInX' => esc_html__('flipInX', 'ultimate-store-kit'), |
| 121 |
'flipInY' => esc_html__('flipInY', 'ultimate-store-kit'), |
| 122 |
'swingTop' => esc_html__('swingTop', 'ultimate-store-kit'), |
| 123 |
'swingBottom' => esc_html__('swingBottom', 'ultimate-store-kit'), |
| 124 |
'swingRight' => esc_html__('swingRight', 'ultimate-store-kit'), |
| 125 |
'swingLeft' => esc_html__('swingLeft', 'ultimate-store-kit'), |
| 126 |
'flash' => esc_html__('flash', 'ultimate-store-kit'), |
| 127 |
'pulse' => esc_html__('pulse', 'ultimate-store-kit'), |
| 128 |
'rubberBand' => esc_html__('rubberBand', 'ultimate-store-kit'), |
| 129 |
'shake' => esc_html__('shake', 'ultimate-store-kit'), |
| 130 |
'swing' => esc_html__('swing', 'ultimate-store-kit'), |
| 131 |
'tada' => esc_html__('tada', 'ultimate-store-kit'), |
| 132 |
'wobble' => esc_html__('wobble', 'ultimate-store-kit'), |
| 133 |
'bounce' => esc_html__('bounce', 'ultimate-store-kit'), |
| 134 |
'boune' => esc_html__('boune', 'ultimate-store-kit'), |
| 135 |
'bounceIn' => esc_html__('bounceIn', 'ultimate-store-kit'), |
| 136 |
'bounceInUp' => esc_html__('bounceInUp', 'ultimate-store-kit'), |
| 137 |
'bounceInDown' => esc_html__('bounceInDown', 'ultimate-store-kit'), |
| 138 |
'bounceInRight' => esc_html__('bounceInRight', 'ultimate-store-kit'), |
| 139 |
'bounceInLeft' => esc_html__('bounceInLeft', 'ultimate-store-kit'), |
| 140 |
'unFold' => esc_html__('unFold', 'ultimate-store-kit'), |
| 141 |
'flowIn' => esc_html__('flowIn', 'ultimate-store-kit'), |
| 142 |
], |
| 143 |
] |
| 144 |
); |
| 145 |
$this->add_control( |
| 146 |
'ultimate_store_kit_modal_close_btn_heading', |
| 147 |
[ |
| 148 |
'label' => esc_html__('Close Button', 'ultimate-store-kit'), |
| 149 |
'type' => Controls_Manager::HEADING, |
| 150 |
'separator' => 'before', |
| 151 |
] |
| 152 |
); |
| 153 |
$this->add_control( |
| 154 |
'ultimate_store_kit_modal_show_close_btn', |
| 155 |
[ |
| 156 |
'label' => esc_html__('Enable Close Button', 'ultimate-store-kit'), |
| 157 |
'type' => Controls_Manager::SWITCHER, |
| 158 |
'label_on' => esc_html__('Yes', 'ultimate-store-kit'), |
| 159 |
'label_off' => esc_html__('No', 'ultimate-store-kit'), |
| 160 |
'return_value' => 'yes', |
| 161 |
'default' => 'yes', |
| 162 |
] |
| 163 |
); |
| 164 |
// $this->add_control( |
| 165 |
// 'btn_place', |
| 166 |
// [ |
| 167 |
// 'label' => esc_html__( 'Place', 'ultimate-store-kit' ), |
| 168 |
// 'type' => Controls_Manager::SELECT, |
| 169 |
// 'default' => 'inside', |
| 170 |
// 'options' => [ |
| 171 |
// 'inside' => esc_html__( 'Inside', 'ultimate-store-kit' ), |
| 172 |
// '' => esc_html__( 'OutSide', 'ultimate-store-kit' ), |
| 173 |
// ], |
| 174 |
// 'condition' => [ |
| 175 |
// 'ultimate_store_kit_modal_show_close_btn' => 'yes' |
| 176 |
// ] |
| 177 |
// ] |
| 178 |
// ); |
| 179 |
$this->add_control( |
| 180 |
'ultimate_store_kit_modal_button_style', |
| 181 |
[ |
| 182 |
'label' => esc_html__('Button Style', 'ultimate-store-kit'), |
| 183 |
'type' => Controls_Manager::SELECT, |
| 184 |
'default' => 'cancel simple', |
| 185 |
'options' => [ |
| 186 |
'cancel simple' => esc_html__('Cancel Simple', 'ultimate-store-kit'), |
| 187 |
'cancel circle' => esc_html__('Cancel Circle', 'ultimate-store-kit'), |
| 188 |
'cancel square' => esc_html__('Cancel Square', 'ultimate-store-kit'), |
| 189 |
'text simple' => esc_html__('Text Simple', 'ultimate-store-kit'), |
| 190 |
'text label' => esc_html__('Text Label', 'ultimate-store-kit'), |
| 191 |
], |
| 192 |
'condition' => [ |
| 193 |
'ultimate_store_kit_modal_show_close_btn' => 'yes' |
| 194 |
] |
| 195 |
] |
| 196 |
); |
| 197 |
$this->add_control( |
| 198 |
'ultimate_store_kit_modal_button_text', |
| 199 |
[ |
| 200 |
'label' => esc_html__('Button Text', 'ultimate-store-kit'), |
| 201 |
'type' => Controls_Manager::TEXT, |
| 202 |
'dynamic' => [ 'active' => true ], |
| 203 |
'placeholder' => esc_html__('close', 'ultimate-store-kit'), |
| 204 |
'condition' => [ |
| 205 |
'ultimate_store_kit_modal_show_close_btn' => 'yes', |
| 206 |
'ultimate_store_kit_modal_button_style' => [ |
| 207 |
'text simple', |
| 208 |
'text label' |
| 209 |
] |
| 210 |
] |
| 211 |
] |
| 212 |
); |
| 213 |
$this->end_controls_section(); |
| 214 |
$this->start_controls_section( |
| 215 |
'ultimate_store_kit_modal_style', |
| 216 |
[ |
| 217 |
'label' => esc_html__('Modal Style', 'ultimate-store-kit'), |
| 218 |
'tab' => 'ultimate-store-kit-modal', |
| 219 |
] |
| 220 |
); |
| 221 |
$this->add_control( |
| 222 |
'ultimate_store_kit_modal_background', |
| 223 |
[ |
| 224 |
'label' => esc_html__('Background', 'ultimate-store-kit'), |
| 225 |
'type' => Controls_Manager::COLOR, |
| 226 |
'render_type' => 'template' |
| 227 |
] |
| 228 |
); |
| 229 |
$this->add_control( |
| 230 |
'ultimate_store_kit_modal_overlay', |
| 231 |
[ |
| 232 |
'label' => esc_html__('Overlay', 'ultimate-store-kit'), |
| 233 |
'type' => Controls_Manager::COLOR, |
| 234 |
'render_type' => 'template' |
| 235 |
] |
| 236 |
); |
| 237 |
$this->add_control( |
| 238 |
'ultimate_store_kit_modal_close_btn', |
| 239 |
[ |
| 240 |
'label' => esc_html__('Close Button', 'ultimate-store-kit'), |
| 241 |
'type' => Controls_Manager::HEADING, |
| 242 |
// 'separator' => 'before', |
| 243 |
] |
| 244 |
); |
| 245 |
$this->start_controls_tabs( |
| 246 |
'ultimate_store_kit_modal_close_btn_tabs' |
| 247 |
); |
| 248 |
$this->start_controls_tab( |
| 249 |
'ultimate_store_kit_modal_close_btn_normal', |
| 250 |
[ |
| 251 |
'label' => esc_html__('Normal', 'ultimate-store-kit'), |
| 252 |
] |
| 253 |
); |
| 254 |
$this->add_control( |
| 255 |
'ultimate_store_kit_modal_close_btn_color', |
| 256 |
[ |
| 257 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 258 |
'type' => Controls_Manager::COLOR, |
| 259 |
'selectors' => [ |
| 260 |
'.sm-button' => 'color: {{VALUE}}', |
| 261 |
], |
| 262 |
] |
| 263 |
); |
| 264 |
$this->add_control( |
| 265 |
'ultimate_store_kit_modal_close_btn_bg_color', |
| 266 |
[ |
| 267 |
'label' => esc_html__('Background', 'ultimate-store-kit'), |
| 268 |
'type' => Controls_Manager::COLOR, |
| 269 |
'selectors' => [ |
| 270 |
'.sm-button' => 'background: {{VALUE}} !important', |
| 271 |
], |
| 272 |
] |
| 273 |
); |
| 274 |
$this->end_controls_tab(); |
| 275 |
$this->start_controls_tab( |
| 276 |
'ultimate_store_kit_modal_close_btn_hover', |
| 277 |
[ |
| 278 |
'label' => esc_html__('Hover', 'ultimate-store-kit'), |
| 279 |
] |
| 280 |
); |
| 281 |
$this->add_control( |
| 282 |
'ultimate_store_kit_modal_close_btn_hover_color', |
| 283 |
[ |
| 284 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 285 |
'type' => Controls_Manager::COLOR, |
| 286 |
'selectors' => [ |
| 287 |
'.sm-button:hover' => 'color: {{VALUE}}', |
| 288 |
], |
| 289 |
] |
| 290 |
); |
| 291 |
$this->add_control( |
| 292 |
'ultimate_store_kit_modal_close_btn_hover_bg_color', |
| 293 |
[ |
| 294 |
'label' => esc_html__('Background', 'ultimate-store-kit'), |
| 295 |
'type' => Controls_Manager::COLOR, |
| 296 |
'selectors' => [ |
| 297 |
'.sm-button:hover' => 'background: {{VALUE}} !important', |
| 298 |
], |
| 299 |
] |
| 300 |
); |
| 301 |
$this->end_controls_tab(); |
| 302 |
$this->end_controls_tabs(); |
| 303 |
$this->add_control( |
| 304 |
'ultimate_store_kit_modal_heading_title', |
| 305 |
[ |
| 306 |
'label' => esc_html__('Title', 'ultimate-store-kit'), |
| 307 |
'type' => Controls_Manager::HEADING, |
| 308 |
'separator' => 'before', |
| 309 |
] |
| 310 |
); |
| 311 |
$this->start_controls_tabs( |
| 312 |
'ultimate_store_kit_modal_title_tabs' |
| 313 |
); |
| 314 |
$this->start_controls_tab( |
| 315 |
'ultimate_store_kit_modal_title_tab_normal', |
| 316 |
[ |
| 317 |
'label' => esc_html__('Normal', 'ultimate-store-kit'), |
| 318 |
] |
| 319 |
); |
| 320 |
$this->add_control( |
| 321 |
'ultimate_store_kit_modal_title_color', |
| 322 |
[ |
| 323 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 324 |
'type' => Controls_Manager::COLOR, |
| 325 |
'selectors' => [ |
| 326 |
'.usk-modal-page .usk-product-title .product_title' => 'color: {{VALUE}} !important', |
| 327 |
], |
| 328 |
] |
| 329 |
); |
| 330 |
$this->end_controls_tab(); |
| 331 |
$this->start_controls_tab( |
| 332 |
'ultimate_store_kit_modal_title_tab_hover', |
| 333 |
[ |
| 334 |
'label' => esc_html__('Hover', 'ultimate-store-kit'), |
| 335 |
] |
| 336 |
); |
| 337 |
$this->add_control( |
| 338 |
'ultimate_store_kit_modal_title_hover_color', |
| 339 |
[ |
| 340 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 341 |
'type' => Controls_Manager::COLOR, |
| 342 |
'selectors' => [ |
| 343 |
'.usk-modal-page .usk-product-title .product_title:hover' => 'color: {{VALUE}} !important', |
| 344 |
], |
| 345 |
] |
| 346 |
); |
| 347 |
$this->end_controls_tab(); |
| 348 |
$this->end_controls_tabs(); |
| 349 |
// $this->add_control( |
| 350 |
// 'modal_title_margin', |
| 351 |
// [ |
| 352 |
// 'label' => esc_html__('Margin', 'ultimate-store-kit'), |
| 353 |
// 'type' => Controls_Manager::DIMENSIONS, |
| 354 |
// 'size_units' => ['px', '%', 'em'], |
| 355 |
// 'selectors' => [ |
| 356 |
// '.usk-modal-page .usk-product-title .product_title' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};', |
| 357 |
// ], |
| 358 |
// ] |
| 359 |
// ); |
| 360 |
$this->add_group_control( |
| 361 |
Group_Control_Typography::get_type(), |
| 362 |
[ |
| 363 |
'name' => 'ultimate_store_kit_modal_title_typography', |
| 364 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 365 |
'selector' => '.usk-modal-page .usk-product-title .product_title', |
| 366 |
] |
| 367 |
); |
| 368 |
$this->add_control( |
| 369 |
'ultimate_store_kit_modal_rating_star', |
| 370 |
[ |
| 371 |
'label' => esc_html__('Rating', 'ultimate-store-kit'), |
| 372 |
'type' => Controls_Manager::HEADING, |
| 373 |
'separator' => 'before', |
| 374 |
] |
| 375 |
); |
| 376 |
$this->start_controls_tabs( |
| 377 |
'ultimate_store_kit_modal_rating_tabs' |
| 378 |
); |
| 379 |
$this->start_controls_tab( |
| 380 |
'ultimate_store_kit_modal_rating_normal', |
| 381 |
[ |
| 382 |
'label' => esc_html__('Normal', 'ultimate-store-kit'), |
| 383 |
] |
| 384 |
); |
| 385 |
$this->add_control( |
| 386 |
'ultimate_store_kit_modal_rating_color', |
| 387 |
[ |
| 388 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 389 |
'type' => Controls_Manager::COLOR, |
| 390 |
'default' => '#e7e7e7', |
| 391 |
'selectors' => [ |
| 392 |
'{{WRAPPER}} .usk-modal-page .usk-rating .star-rating::before' => 'color: {{VALUE}};', |
| 393 |
], |
| 394 |
] |
| 395 |
); |
| 396 |
$this->end_controls_tab(); |
| 397 |
$this->start_controls_tab( |
| 398 |
'ultimate_store_kit_modal_rating_active', |
| 399 |
[ |
| 400 |
'label' => esc_html__('Active', 'ultimate-store-kit'), |
| 401 |
] |
| 402 |
); |
| 403 |
$this->add_control( |
| 404 |
'ultimate_store_kit_modal_active_rating_color', |
| 405 |
[ |
| 406 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 407 |
'type' => Controls_Manager::COLOR, |
| 408 |
'default' => '#FFCC00', |
| 409 |
'selectors' => [ |
| 410 |
'{{WRAPPER}} .usk-modal-page .usk-rating .star-rating span::before' => 'color: {{VALUE}};', |
| 411 |
], |
| 412 |
] |
| 413 |
); |
| 414 |
$this->end_controls_tab(); |
| 415 |
$this->end_controls_tabs(); |
| 416 |
$this->add_control( |
| 417 |
'ultimate_store_kit_modal_sale_price_heading', |
| 418 |
[ |
| 419 |
'label' => esc_html__('Price', 'ultimate-store-kit'), |
| 420 |
'type' => Controls_Manager::HEADING, |
| 421 |
'separator' => 'before', |
| 422 |
] |
| 423 |
); |
| 424 |
$this->start_controls_tabs( |
| 425 |
'ultimate_store_kit_modal_price_tabs' |
| 426 |
); |
| 427 |
$this->start_controls_tab( |
| 428 |
'ultimate_store_kit_modal_price_regular_tab', |
| 429 |
[ |
| 430 |
'label' => esc_html__('Regular', 'ultimate-store-kit'), |
| 431 |
] |
| 432 |
); |
| 433 |
$this->add_control( |
| 434 |
'ultimate_store_kit_modal_regular_price_color', |
| 435 |
[ |
| 436 |
'label' => esc_html__('Regular Color', 'ultimate-store-kit'), |
| 437 |
'type' => Controls_Manager::COLOR, |
| 438 |
'selectors' => [ |
| 439 |
'.usk-modal-page .usk-product-price del .woocommerce-Price-amount.amount' => 'color: {{VALUE}};', |
| 440 |
'.usk-modal-page .usk-product-price del' => 'color: {{VALUE}};', |
| 441 |
], |
| 442 |
|
| 443 |
] |
| 444 |
); |
| 445 |
$this->end_controls_tab(); |
| 446 |
$this->start_controls_tab( |
| 447 |
'ultimate_store_kit_modal_price_sale_tab', |
| 448 |
[ |
| 449 |
'label' => esc_html__('Sale', 'ultimate-store-kit'), |
| 450 |
] |
| 451 |
); |
| 452 |
$this->add_control( |
| 453 |
'ultimate_store_kit_modal_sale_price_color', |
| 454 |
[ |
| 455 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 456 |
'type' => Controls_Manager::COLOR, |
| 457 |
'selectors' => [ |
| 458 |
'.usk-modal-page .usk-product-price' => 'color: {{VALUE}}', |
| 459 |
'.usk-modal-page .usk-product-price ins span' => 'color: {{VALUE}}', |
| 460 |
'.usk-modal-page .usk-product-price .woocommerce-Price-amount.amount' => 'color: {{VALUE}}', |
| 461 |
'.usk-modal-page .usk-product-price > .woocommerce-Price-amount.amount bdi' => 'color: {{VALUE}}', |
| 462 |
], |
| 463 |
] |
| 464 |
); |
| 465 |
$this->end_controls_tab(); |
| 466 |
$this->end_controls_tabs(); |
| 467 |
$this->add_group_control( |
| 468 |
Group_Control_Typography::get_type(), |
| 469 |
[ |
| 470 |
'name' => 'ultimate_store_kit_modal_sale_price_typography', |
| 471 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 472 |
'selector' => ' |
| 473 |
.usk-modal-page .usk-product-price .price *', |
| 474 |
] |
| 475 |
); |
| 476 |
$this->add_control( |
| 477 |
'ultimate_store_kit_modal_heading_desc', |
| 478 |
[ |
| 479 |
'label' => esc_html__('Description', 'ultimate-store-kit'), |
| 480 |
'type' => Controls_Manager::HEADING, |
| 481 |
'separator' => 'before', |
| 482 |
] |
| 483 |
); |
| 484 |
$this->add_control( |
| 485 |
'ultimate_store_kit_modal_desc_color', |
| 486 |
[ |
| 487 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 488 |
'type' => Controls_Manager::COLOR, |
| 489 |
'selectors' => [ |
| 490 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-desc p' => 'color: {{VALUE}}', |
| 491 |
], |
| 492 |
] |
| 493 |
); |
| 494 |
$this->add_group_control( |
| 495 |
Group_Control_Typography::get_type(), |
| 496 |
[ |
| 497 |
'name' => 'ultimate_store_kit_modal_desc_typography', |
| 498 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 499 |
'selector' => '.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-desc p', |
| 500 |
] |
| 501 |
); |
| 502 |
$this->add_control( |
| 503 |
'ultimate_store_kit_modal_heading_btn', |
| 504 |
[ |
| 505 |
'label' => esc_html__('Button', 'ultimate-store-kit'), |
| 506 |
'type' => Controls_Manager::HEADING, |
| 507 |
'separator' => 'before', |
| 508 |
] |
| 509 |
); |
| 510 |
$this->start_controls_tabs( |
| 511 |
'ultimate_store_kit_modal_btn_tabs' |
| 512 |
); |
| 513 |
$this->start_controls_tab( |
| 514 |
'ultimate_store_kit_modal_tab_normal', |
| 515 |
[ |
| 516 |
'label' => esc_html__('Normal', 'ultimate-store-kit'), |
| 517 |
] |
| 518 |
); |
| 519 |
$this->add_control( |
| 520 |
'ultimate_store_kit_modal_btn_color', |
| 521 |
[ |
| 522 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 523 |
'type' => Controls_Manager::COLOR, |
| 524 |
'selectors' => [ |
| 525 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-quick-action-wrap .cart button' => 'color: {{VALUE}}', |
| 526 |
], |
| 527 |
] |
| 528 |
); |
| 529 |
$this->add_control( |
| 530 |
'ultimate_store_kit_modal_btn_bg_color', |
| 531 |
[ |
| 532 |
'label' => esc_html__('Background', 'ultimate-store-kit'), |
| 533 |
'type' => Controls_Manager::COLOR, |
| 534 |
'selectors' => [ |
| 535 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-quick-action-wrap .cart button' => 'background: {{VALUE}}', |
| 536 |
], |
| 537 |
] |
| 538 |
); |
| 539 |
$this->end_controls_tab(); |
| 540 |
$this->start_controls_tab( |
| 541 |
'ultimate_store_kit_modal_btn_tab_hover', |
| 542 |
[ |
| 543 |
'label' => esc_html__('Hover', 'ultimate-store-kit'), |
| 544 |
] |
| 545 |
); |
| 546 |
$this->add_control( |
| 547 |
'ultimate_store_kit_modal_btn_hover_color', |
| 548 |
[ |
| 549 |
'label' => esc_html__('Hover Color', 'ultimate-store-kit'), |
| 550 |
'type' => Controls_Manager::COLOR, |
| 551 |
'selectors' => [ |
| 552 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-quick-action-wrap .cart button:hover' => 'color: {{VALUE}}', |
| 553 |
], |
| 554 |
] |
| 555 |
); |
| 556 |
$this->add_control( |
| 557 |
'ultimate_store_kit_modal_btn_hover_bg_color', |
| 558 |
[ |
| 559 |
'label' => esc_html__('Hover Background', 'ultimate-store-kit'), |
| 560 |
'type' => Controls_Manager::COLOR, |
| 561 |
'selectors' => [ |
| 562 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-quick-action-wrap .cart button:hover' => 'background: {{VALUE}}', |
| 563 |
], |
| 564 |
] |
| 565 |
); |
| 566 |
$this->end_controls_tab(); |
| 567 |
$this->end_controls_tabs(); |
| 568 |
$this->add_control( |
| 569 |
'ultimate_store_kit_modal_heading_stock', |
| 570 |
[ |
| 571 |
'label' => esc_html__('Stock Status', 'ultimate-store-kit'), |
| 572 |
'type' => Controls_Manager::HEADING, |
| 573 |
'separator' => 'before', |
| 574 |
] |
| 575 |
); |
| 576 |
$this->add_control( |
| 577 |
'ultimate_store_kit_modal_stock_color', |
| 578 |
[ |
| 579 |
'label' => esc_html__('Color', 'ultimate-store-kit'), |
| 580 |
'type' => Controls_Manager::COLOR, |
| 581 |
'selectors' => [ |
| 582 |
'.ultimate-store-kit-product-modal-wrap .usk-modal-page .usk-modal-content-box .usk-quick-action-wrap .out-of-stock' => 'color: {{VALUE}}', |
| 583 |
], |
| 584 |
] |
| 585 |
); |
| 586 |
$this->add_group_control( |
| 587 |
Group_Control_Typography::get_type(), |
| 588 |
[ |
| 589 |
'name' => 'ultimate_store_kit_modal_stock_typography', |
| 590 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 591 |
'selector' => '.ultimate-store-kit-product-modal-wrap .usk-modal-page .usk-modal-content-box .usk-quick-action-wrap .out-of-stock', |
| 592 |
] |
| 593 |
); |
| 594 |
$this->add_control( |
| 595 |
'ultimate_store_kit_modal_heading_sku', |
| 596 |
[ |
| 597 |
'label' => esc_html__('SKU', 'ultimate-store-kit'), |
| 598 |
'type' => Controls_Manager::HEADING, |
| 599 |
'separator' => 'before', |
| 600 |
] |
| 601 |
); |
| 602 |
$this->start_controls_tabs( |
| 603 |
'ultimate_store_kit_modal_sku_tabs' |
| 604 |
); |
| 605 |
$this->start_controls_tab( |
| 606 |
'ultimate_store_kit_modal_sku_tab_label', |
| 607 |
[ |
| 608 |
'label' => esc_html__('Label', 'ultimate-store-kit'), |
| 609 |
] |
| 610 |
); |
| 611 |
$this->add_control( |
| 612 |
'ultimate_store_kit_modal_sku_label_color', |
| 613 |
[ |
| 614 |
'label' => esc_html__('Label Color', 'ultimate-store-kit'), |
| 615 |
'type' => Controls_Manager::COLOR, |
| 616 |
'selectors' => [ |
| 617 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .sku_wrapper' => 'color: {{VALUE}}', |
| 618 |
], |
| 619 |
] |
| 620 |
); |
| 621 |
$this->add_group_control( |
| 622 |
Group_Control_Typography::get_type(), |
| 623 |
[ |
| 624 |
'name' => 'ultimate_store_kit_modal_sku_label_typography', |
| 625 |
'label' => esc_html__('Label Typography', 'ultimate-store-kit'), |
| 626 |
'selector' => '.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .sku_wrapper .sku', |
| 627 |
] |
| 628 |
); |
| 629 |
$this->end_controls_tab(); |
| 630 |
$this->start_controls_tab( |
| 631 |
'ultimate_store_kit_modal_sku_tab_value', |
| 632 |
[ |
| 633 |
'label' => esc_html__('Value', 'ultimate-store-kit'), |
| 634 |
] |
| 635 |
); |
| 636 |
$this->add_control( |
| 637 |
'ultimate_store_kit_modal_sku_color', |
| 638 |
[ |
| 639 |
'label' => esc_html__('Sku Color', 'ultimate-store-kit'), |
| 640 |
'type' => Controls_Manager::COLOR, |
| 641 |
'selectors' => [ |
| 642 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .sku_wrapper .sku' => 'color: {{VALUE}}', |
| 643 |
], |
| 644 |
] |
| 645 |
); |
| 646 |
$this->add_group_control( |
| 647 |
Group_Control_Typography::get_type(), |
| 648 |
[ |
| 649 |
'name' => 'ultimate_store_kit_modal_sku_typography', |
| 650 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 651 |
'selector' => '.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .sku_wrapper .sku', |
| 652 |
] |
| 653 |
); |
| 654 |
$this->end_controls_tab(); |
| 655 |
$this->end_controls_tabs(); |
| 656 |
$this->add_control( |
| 657 |
'ultimate_store_kit_modal_heading_category', |
| 658 |
[ |
| 659 |
'label' => esc_html__('Category', 'ultimate-store-kit'), |
| 660 |
'type' => Controls_Manager::HEADING, |
| 661 |
'separator' => 'before', |
| 662 |
] |
| 663 |
); |
| 664 |
$this->start_controls_tabs( |
| 665 |
'ultimate_store_kit_modal_category_tabs' |
| 666 |
); |
| 667 |
$this->start_controls_tab( |
| 668 |
'ultimate_store_kit_modal_category_tab_label', |
| 669 |
[ |
| 670 |
'label' => esc_html__('Label', 'ultimate-store-kit'), |
| 671 |
] |
| 672 |
); |
| 673 |
$this->add_control( |
| 674 |
'ultimate_store_kit_modal_category_label_color', |
| 675 |
[ |
| 676 |
'label' => esc_html__('Label Color', 'ultimate-store-kit'), |
| 677 |
'type' => Controls_Manager::COLOR, |
| 678 |
'selectors' => [ |
| 679 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .posted_in' => 'color: {{VALUE}}', |
| 680 |
], |
| 681 |
] |
| 682 |
); |
| 683 |
$this->add_group_control( |
| 684 |
Group_Control_Typography::get_type(), |
| 685 |
[ |
| 686 |
'name' => 'ultimate_store_kit_modal_category_label_typography', |
| 687 |
'label' => esc_html__('Label Typography', 'ultimate-store-kit'), |
| 688 |
'selector' => '.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .posted_in', |
| 689 |
] |
| 690 |
); |
| 691 |
$this->end_controls_tab(); |
| 692 |
$this->start_controls_tab( |
| 693 |
'ultimate_store_kit_modal_category_tab_value', |
| 694 |
[ |
| 695 |
'label' => esc_html__('Value', 'ultimate-store-kit'), |
| 696 |
] |
| 697 |
); |
| 698 |
$this->add_control( |
| 699 |
'ultimate_store_kit_modal_category_color', |
| 700 |
[ |
| 701 |
'label' => esc_html__('Category Color', 'ultimate-store-kit'), |
| 702 |
'type' => Controls_Manager::COLOR, |
| 703 |
'selectors' => [ |
| 704 |
'.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .posted_in a' => 'color: {{VALUE}}', |
| 705 |
], |
| 706 |
] |
| 707 |
); |
| 708 |
$this->add_group_control( |
| 709 |
Group_Control_Typography::get_type(), |
| 710 |
[ |
| 711 |
'name' => 'ultimate_store_kit_modal_category_typography', |
| 712 |
'label' => esc_html__('Typography', 'ultimate-store-kit'), |
| 713 |
'selector' => '.product-quick-view .usk-modal-page .usk-modal-product .product .usk-modal-content-box .usk-product-meta .posted_in a', |
| 714 |
] |
| 715 |
); |
| 716 |
$this->end_controls_tab(); |
| 717 |
$this->end_controls_tabs(); |
| 718 |
$this->end_controls_section(); |
| 719 |
} |
| 720 |
} |
| 721 |
|