← All changes
|
elementor-elements/classes/wdk-listing-carousel.php
+98
-98
1.3.4
→
1.5.9
View file →
| @@ -27,14 +27,14 @@ | ||
| 27 | 27 | public function __construct($data = array(), $args = null) { |
| 28 | 28 | |
| 29 | 29 | \Elementor\Controls_Manager::add_tab( |
| 30 | 30 | 'tab_conf', |
| 31 | - esc_html__('Settings', 'wdk-listing-sliders') | |
| 31 | + esc_html__('Settings', 'wpdirectorykit') | |
| 32 | 32 | ); |
| 33 | 33 | |
| 34 | 34 | \Elementor\Controls_Manager::add_tab( |
| 35 | 35 | 'tab_slider_nav', |
| 36 | - esc_html__('Slider Nav', 'wdk-listing-sliders') | |
| 36 | + esc_html__('Slider Nav', 'wpdirectorykit') | |
| 37 | 37 | ); |
| 38 | 38 | |
| 39 | 39 | if ($this->is_edit_mode_load()) { |
| 40 | 40 | $this->enqueue_styles_scripts(); |
| @@ -82,9 +82,9 @@ | ||
| 82 | 82 | * |
| 83 | 83 | * @return string Widget title. |
| 84 | 84 | */ |
| 85 | 85 | public function get_title() { |
| 86 | - return esc_html__('Wdk Listing Carousel', 'wdk-listing-sliders'); | |
| 86 | + return esc_html__('Wdk Listing Carousel', 'wpdirectorykit'); | |
| 87 | 87 | } |
| 88 | 88 | |
| 89 | 89 | /** |
| 90 | 90 | * Retrieve the widget icon. |
| @@ -148,9 +148,9 @@ | ||
| 148 | 148 | } else { |
| 149 | 149 | /* return false if no content */ |
| 150 | 150 | } |
| 151 | 151 | |
| 152 | - echo $this->view('wdk-listing-carousel', $this->data); | |
| 152 | + $this->view('wdk-listing-carousel', $this->data, true); | |
| 153 | 153 | } |
| 154 | 154 | |
| 155 | 155 | |
| 156 | 156 | private function generate_controls_conf() { |
| @@ -156,9 +156,9 @@ | ||
| 156 | 156 | private function generate_controls_conf() { |
| 157 | 157 | $this->start_controls_section( |
| 158 | 158 | 'tab_conf_main_section', |
| 159 | 159 | [ |
| 160 | - 'label' => esc_html__('Main', 'wdk-listing-sliders'), | |
| 160 | + 'label' => esc_html__('Main', 'wpdirectorykit'), | |
| 161 | 161 | 'tab' => 'tab_conf', |
| 162 | 162 | ] |
| 163 | 163 | ); |
| 164 | 164 | |
| @@ -164,9 +164,9 @@ | ||
| 164 | 164 | |
| 165 | 165 | $this->add_control( |
| 166 | 166 | 'limit_images', |
| 167 | 167 | [ |
| 168 | - 'label' => __( 'Limit Images', 'wdk-listing-sliders' ), | |
| 168 | + 'label' => __( 'Limit Images', 'wpdirectorykit' ), | |
| 169 | 169 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 170 | 170 | 'min' => 1, |
| 171 | 171 | 'max' => 100, |
| 172 | 172 | 'step' => 1, |
| @@ -176,9 +176,9 @@ | ||
| 176 | 176 | |
| 177 | 177 | $this->add_control( |
| 178 | 178 | 'offset_images', |
| 179 | 179 | [ |
| 180 | - 'label' => __( 'Offset Images', 'wdk-listing-sliders' ), | |
| 180 | + 'label' => __( 'Offset Images', 'wpdirectorykit' ), | |
| 181 | 181 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 182 | 182 | 'min' => 1, |
| 183 | 183 | 'max' => 100, |
| 184 | 184 | 'step' => 1, |
| @@ -189,14 +189,14 @@ | ||
| 189 | 189 | |
| 190 | 190 | $this->add_responsive_control( |
| 191 | 191 | 'direction', |
| 192 | 192 | [ |
| 193 | - 'label' => __( 'Direction', 'wdk-listing-sliders' ), | |
| 193 | + 'label' => __( 'Direction', 'wpdirectorykit' ), | |
| 194 | 194 | 'type' => Controls_Manager::SELECT, |
| 195 | 195 | 'options' => [ |
| 196 | - '' => esc_html__('Default', 'wdk-listing-sliders'), | |
| 197 | - 'row' => esc_html__('Row', 'wdk-listing-sliders'), | |
| 198 | - 'row-reverse' => esc_html__('Row Reverse', 'wdk-listing-sliders'), | |
| 196 | + '' => esc_html__('Default', 'wpdirectorykit'), | |
| 197 | + 'row' => esc_html__('Row', 'wpdirectorykit'), | |
| 198 | + 'row-reverse' => esc_html__('Row Reverse', 'wpdirectorykit'), | |
| 199 | 199 | ], |
| 200 | 200 | 'selectors_dictionary' => [ |
| 201 | 201 | 'row' => 'display: flex; flex-direction: row;', |
| 202 | 202 | 'row-reverse' => 'display: flex; flex-direction: row-reverse;', |
| @@ -230,9 +230,9 @@ | ||
| 230 | 230 | |
| 231 | 231 | $this->start_controls_section( |
| 232 | 232 | 'tab_slider_nav', |
| 233 | 233 | [ |
| 234 | - 'label' => esc_html__('Basic', 'wdk-listing-sliders'), | |
| 234 | + 'label' => esc_html__('Basic', 'wpdirectorykit'), | |
| 235 | 235 | 'tab' => '1', |
| 236 | 236 | ] |
| 237 | 237 | ); |
| 238 | 238 | |
| @@ -241,9 +241,9 @@ | ||
| 241 | 241 | |
| 242 | 242 | $this->start_controls_section( |
| 243 | 243 | 'layout_carousel_sec', |
| 244 | 244 | [ |
| 245 | - 'label' => esc_html__('Carousel Options', 'wdk-listing-sliders'), | |
| 245 | + 'label' => esc_html__('Carousel Options', 'wpdirectorykit'), | |
| 246 | 246 | 'tab' => '1', |
| 247 | 247 | ] |
| 248 | 248 | ); |
| 249 | 249 | |
| @@ -250,9 +250,9 @@ | ||
| 250 | 250 | |
| 251 | 251 | $this->add_responsive_control( |
| 252 | 252 | 'styles_thmbn_columns', |
| 253 | 253 | [ |
| 254 | - 'label' => __( 'Count grid', 'wdk-listing-sliders' ), | |
| 254 | + 'label' => __( 'Count grid', 'wpdirectorykit' ), | |
| 255 | 255 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 256 | 256 | 'min' => 1, |
| 257 | 257 | 'max' => 10, |
| 258 | 258 | 'step' => 1, |
| @@ -262,12 +262,12 @@ | ||
| 262 | 262 | |
| 263 | 263 | $this->add_control( |
| 264 | 264 | 'layout_carousel_is_infinite', |
| 265 | 265 | [ |
| 266 | - 'label' => __( 'Infinite', 'wdk-listing-sliders' ), | |
| 266 | + 'label' => __( 'Infinite', 'wpdirectorykit' ), | |
| 267 | 267 | 'type' => \Elementor\Controls_Manager::SWITCHER, |
| 268 | - 'label_on' => __( 'On', 'wdk-listing-sliders' ), | |
| 269 | - 'label_off' => __( 'Off', 'wdk-listing-sliders' ), | |
| 268 | + 'label_on' => __( 'On', 'wpdirectorykit' ), | |
| 269 | + 'label_off' => __( 'Off', 'wpdirectorykit' ), | |
| 270 | 270 | 'return_value' => 'true', |
| 271 | 271 | 'default' => 'true', |
| 272 | 272 | ] |
| 273 | 273 | ); |
| @@ -274,13 +274,13 @@ | ||
| 274 | 274 | |
| 275 | 275 | $this->add_control( |
| 276 | 276 | 'layout_carousel_variableWidth', |
| 277 | 277 | [ |
| 278 | - 'label' => __( 'Variable width slides', 'wdk-listing-sliders' ), | |
| 279 | - 'description' => __( 'Ignore columns', 'wdk-listing-sliders' ), | |
| 278 | + 'label' => __( 'Variable width slides', 'wpdirectorykit' ), | |
| 279 | + 'description' => __( 'Ignore columns', 'wpdirectorykit' ), | |
| 280 | 280 | 'type' => \Elementor\Controls_Manager::SWITCHER, |
| 281 | - 'label_on' => __( 'On', 'wdk-listing-sliders' ), | |
| 282 | - 'label_off' => __( 'Off', 'wdk-listing-sliders' ), | |
| 281 | + 'label_on' => __( 'On', 'wpdirectorykit' ), | |
| 282 | + 'label_off' => __( 'Off', 'wpdirectorykit' ), | |
| 283 | 283 | 'return_value' => 'true', |
| 284 | 284 | 'default' => '', |
| 285 | 285 | ] |
| 286 | 286 | ); |
| @@ -287,12 +287,12 @@ | ||
| 287 | 287 | |
| 288 | 288 | $this->add_control( |
| 289 | 289 | 'layout_carousel_is_center', |
| 290 | 290 | [ |
| 291 | - 'label' => __( 'Center Mode', 'wdk-listing-sliders' ), | |
| 291 | + 'label' => __( 'Center Mode', 'wpdirectorykit' ), | |
| 292 | 292 | 'type' => \Elementor\Controls_Manager::SWITCHER, |
| 293 | - 'label_on' => __( 'On', 'wdk-listing-sliders' ), | |
| 294 | - 'label_off' => __( 'Off', 'wdk-listing-sliders' ), | |
| 293 | + 'label_on' => __( 'On', 'wpdirectorykit' ), | |
| 294 | + 'label_off' => __( 'Off', 'wpdirectorykit' ), | |
| 295 | 295 | 'return_value' => 'true', |
| 296 | 296 | 'default' => '', |
| 297 | 297 | ] |
| 298 | 298 | ); |
| @@ -299,9 +299,9 @@ | ||
| 299 | 299 | |
| 300 | 300 | $this->add_control( |
| 301 | 301 | 'layout_carousel_speed', |
| 302 | 302 | [ |
| 303 | - 'label' => __( 'Animations Speed', 'wdk-listing-sliders' ), | |
| 303 | + 'label' => __( 'Animations Speed', 'wpdirectorykit' ), | |
| 304 | 304 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 305 | 305 | 'min' => 0, |
| 306 | 306 | 'max' => 100000, |
| 307 | 307 | 'step' => 100, |
| @@ -312,12 +312,12 @@ | ||
| 312 | 312 | |
| 313 | 313 | $this->add_control( |
| 314 | 314 | 'layout_carousel_is_autoplay', |
| 315 | 315 | [ |
| 316 | - 'label' => __( 'Autoplay', 'wdk-listing-sliders' ), | |
| 316 | + 'label' => __( 'Autoplay', 'wpdirectorykit' ), | |
| 317 | 317 | 'type' => \Elementor\Controls_Manager::SWITCHER, |
| 318 | - 'label_on' => __( 'On', 'wdk-listing-sliders' ), | |
| 319 | - 'label_off' => __( 'Off', 'wdk-listing-sliders' ), | |
| 318 | + 'label_on' => __( 'On', 'wpdirectorykit' ), | |
| 319 | + 'label_off' => __( 'Off', 'wpdirectorykit' ), | |
| 320 | 320 | 'return_value' => 'true', |
| 321 | 321 | 'default' => '', |
| 322 | 322 | ] |
| 323 | 323 | ); |
| @@ -324,9 +324,9 @@ | ||
| 324 | 324 | |
| 325 | 325 | $this->add_control( |
| 326 | 326 | 'layout_carousel_autoplay_speed', |
| 327 | 327 | [ |
| 328 | - 'label' => __( 'Autoplay Speed', 'wdk-listing-sliders' ), | |
| 328 | + 'label' => __( 'Autoplay Speed', 'wpdirectorykit' ), | |
| 329 | 329 | 'type' => \Elementor\Controls_Manager::NUMBER, |
| 330 | 330 | 'min' => 0, |
| 331 | 331 | 'max' => 100000, |
| 332 | 332 | 'step' => 100, |
| @@ -336,15 +336,15 @@ | ||
| 336 | 336 | |
| 337 | 337 | $this->add_control( |
| 338 | 338 | 'layout_carousel_animation_style', |
| 339 | 339 | [ |
| 340 | - 'label' => __( 'Animation Style', 'wdk-listing-sliders' ), | |
| 340 | + 'label' => __( 'Animation Style', 'wpdirectorykit' ), | |
| 341 | 341 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 342 | 342 | 'default' => 'fade_in', |
| 343 | 343 | 'options' => [ |
| 344 | - 'slide' => __( 'Slide', 'wdk-listing-sliders' ), | |
| 345 | - 'fade' => __( 'Fade', 'wdk-listing-sliders' ), | |
| 346 | - 'fade_in' => __( 'Fade in', 'wdk-listing-sliders' ), | |
| 344 | + 'slide' => __( 'Slide', 'wpdirectorykit' ), | |
| 345 | + 'fade' => __( 'Fade', 'wpdirectorykit' ), | |
| 346 | + 'fade_in' => __( 'Fade in', 'wpdirectorykit' ), | |
| 347 | 347 | ], |
| 348 | 348 | ] |
| 349 | 349 | ); |
| 350 | 350 | |
| @@ -350,19 +350,19 @@ | ||
| 350 | 350 | |
| 351 | 351 | $this->add_control( |
| 352 | 352 | 'layout_carousel_cssease', |
| 353 | 353 | [ |
| 354 | - 'label' => __( 'cssEase ', 'wdk-listing-sliders' ), | |
| 354 | + 'label' => __( 'cssEase ', 'wpdirectorykit' ), | |
| 355 | 355 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 356 | 356 | 'default' => 'linear', |
| 357 | 357 | 'options' => [ |
| 358 | - 'linear' => __( 'linear', 'wdk-listing-sliders' ), | |
| 359 | - 'ease' => __( 'ease', 'wdk-listing-sliders' ), | |
| 360 | - 'ease-in' => __( 'ease-in', 'wdk-listing-sliders' ), | |
| 361 | - 'ease-out' => __( 'ease-out', 'wdk-listing-sliders' ), | |
| 362 | - 'ease-in-out' => __( 'ease-in-out', 'wdk-listing-sliders' ), | |
| 363 | - 'step-start' => __( 'step-start', 'wdk-listing-sliders' ), | |
| 364 | - 'step-end' => __( 'step-end', 'wdk-listing-sliders' ), | |
| 358 | + 'linear' => __( 'linear', 'wpdirectorykit' ), | |
| 359 | + 'ease' => __( 'ease', 'wpdirectorykit' ), | |
| 360 | + 'ease-in' => __( 'ease-in', 'wpdirectorykit' ), | |
| 361 | + 'ease-out' => __( 'ease-out', 'wpdirectorykit' ), | |
| 362 | + 'ease-in-out' => __( 'ease-in-out', 'wpdirectorykit' ), | |
| 363 | + 'step-start' => __( 'step-start', 'wpdirectorykit' ), | |
| 364 | + 'step-end' => __( 'step-end', 'wpdirectorykit' ), | |
| 365 | 365 | ], |
| 366 | 366 | ] |
| 367 | 367 | ); |
| 368 | 368 | |
| @@ -373,9 +373,9 @@ | ||
| 373 | 373 | |
| 374 | 374 | $items = [ |
| 375 | 375 | [ |
| 376 | 376 | 'key'=>'card', |
| 377 | - 'label'=> esc_html__('Slider', 'wdk-listing-sliders'), | |
| 377 | + 'label'=> esc_html__('Slider', 'wpdirectorykit'), | |
| 378 | 378 | 'selector'=>'.wdk_listing_slider_box .wdk-listing-image-card', |
| 379 | 379 | 'selector_hover'=>'.wdk_listing_slider_box .wdk-listing-image-card%1$s', |
| 380 | 380 | 'options'=>['background','border','border_radius','padding','shadow','transition'], |
| 381 | 381 | ], |
| @@ -401,9 +401,9 @@ | ||
| 401 | 401 | |
| 402 | 402 | $this->start_controls_section( |
| 403 | 403 | 'styles_thmbn_type', |
| 404 | 404 | [ |
| 405 | - 'label' => esc_html__('Image Slide', 'wdk-listing-sliders'), | |
| 405 | + 'label' => esc_html__('Image Slide', 'wpdirectorykit'), | |
| 406 | 406 | 'tab' => '1', |
| 407 | 407 | ] |
| 408 | 408 | ); |
| 409 | 409 | |
| @@ -409,15 +409,15 @@ | ||
| 409 | 409 | |
| 410 | 410 | $this->add_control( |
| 411 | 411 | 'layout_image_design', |
| 412 | 412 | [ |
| 413 | - 'label' => __( 'Size style thumbnail', 'wdk-listing-sliders' ), | |
| 413 | + 'label' => __( 'Size style thumbnail', 'wpdirectorykit' ), | |
| 414 | 414 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 415 | 415 | 'options' => [ |
| 416 | - '' => __( 'Default', 'wdk-listing-sliders' ), | |
| 417 | - 'contain' => __( 'Contain', 'wdk-listing-sliders' ), | |
| 418 | - 'cover' => __( 'Cover', 'wdk-listing-sliders' ), | |
| 419 | - 'fill' => __( 'Fill', 'wdk-listing-sliders' ), | |
| 416 | + '' => __( 'Default', 'wpdirectorykit' ), | |
| 417 | + 'contain' => __( 'Contain', 'wpdirectorykit' ), | |
| 418 | + 'cover' => __( 'Cover', 'wpdirectorykit' ), | |
| 419 | + 'fill' => __( 'Fill', 'wpdirectorykit' ), | |
| 420 | 420 | ], |
| 421 | 421 | 'selectors' => [ |
| 422 | 422 | '{{WRAPPER}} .wdk_listing_slider_box .wdk-listing-image' => 'object-fit: {{VALUE}}', |
| 423 | 423 | ], |
| @@ -426,9 +426,9 @@ | ||
| 426 | 426 | |
| 427 | 427 | $this->add_responsive_control( |
| 428 | 428 | 'layout_image_mask_header', |
| 429 | 429 | [ |
| 430 | - 'label' => esc_html__('Mask', 'wdk-listing-sliders'), | |
| 430 | + 'label' => esc_html__('Mask', 'wpdirectorykit'), | |
| 431 | 431 | 'type' => Controls_Manager::HEADING, |
| 432 | 432 | 'separator' => 'before', |
| 433 | 433 | ] |
| 434 | 434 | ); |
| @@ -446,9 +446,9 @@ | ||
| 446 | 446 | |
| 447 | 447 | $this->add_responsive_control ( |
| 448 | 448 | 'styles_thmbn_nav_des_height', |
| 449 | 449 | [ |
| 450 | - 'label' => esc_html__('Height', 'wdk-listing-sliders'), | |
| 450 | + 'label' => esc_html__('Height', 'wpdirectorykit'), | |
| 451 | 451 | 'type' => Controls_Manager::SLIDER, |
| 452 | 452 | 'range' => [ |
| 453 | 453 | 'px' => [ |
| 454 | 454 | 'min' => 100, |
| @@ -475,9 +475,9 @@ | ||
| 475 | 475 | |
| 476 | 476 | $this->start_controls_section( |
| 477 | 477 | 'styles_carousel_arrows_section', |
| 478 | 478 | [ |
| 479 | - 'label' => esc_html__('Carousel Arrows', 'wdk-listing-sliders'), | |
| 479 | + 'label' => esc_html__('Carousel Arrows', 'wpdirectorykit'), | |
| 480 | 480 | 'tab' => '1', |
| 481 | 481 | ] |
| 482 | 482 | ); |
| 483 | 483 | |
| @@ -483,12 +483,12 @@ | ||
| 483 | 483 | |
| 484 | 484 | $this->add_responsive_control( |
| 485 | 485 | 'styles_carousel_arrows_hide', |
| 486 | 486 | [ |
| 487 | - 'label' => esc_html__( 'Hide Element', 'wdk-listing-sliders' ), | |
| 487 | + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ), | |
| 488 | 488 | 'type' => Controls_Manager::SWITCHER, |
| 489 | - 'none' => esc_html__( 'Hide', 'wdk-listing-sliders' ), | |
| 490 | - 'block' => esc_html__( 'Show', 'wdk-listing-sliders' ), | |
| 489 | + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ), | |
| 490 | + 'block' => esc_html__( 'Show', 'wpdirectorykit' ), | |
| 491 | 491 | 'return_value' => 'none', |
| 492 | 492 | 'default' => '', |
| 493 | 493 | 'selectors' => [ |
| 494 | 494 | '{{WRAPPER}} .wdk-listing-carousel .wdk-listing-carousel_arrows' => 'display: {{VALUE}};', |
| @@ -498,16 +498,16 @@ | ||
| 498 | 498 | |
| 499 | 499 | $this->add_responsive_control( |
| 500 | 500 | 'styles_carousel_arrows_position', |
| 501 | 501 | [ |
| 502 | - 'label' => __( 'Position', 'wdk-listing-sliders' ), | |
| 502 | + 'label' => __( 'Position', 'wpdirectorykit' ), | |
| 503 | 503 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 504 | 504 | 'default' => 'wdk-listing-carousel_arrows_middle', |
| 505 | 505 | 'options' => [ |
| 506 | - '' => __( 'Default', 'wdk-listing-sliders' ), | |
| 507 | - 'wdk-listing-carousel_arrows_bottom' => __( 'Bottom', 'wdk-listing-sliders' ), | |
| 508 | - 'wdk-listing-carousel_arrows_middle' => __( 'Center', 'wdk-listing-sliders' ), | |
| 509 | - 'wdk-listing-carousel_arrows_top' => __( 'Top', 'wdk-listing-sliders' ), | |
| 506 | + '' => __( 'Default', 'wpdirectorykit' ), | |
| 507 | + 'wdk-listing-carousel_arrows_bottom' => __( 'Bottom', 'wpdirectorykit' ), | |
| 508 | + 'wdk-listing-carousel_arrows_middle' => __( 'Center', 'wpdirectorykit' ), | |
| 509 | + 'wdk-listing-carousel_arrows_top' => __( 'Top', 'wpdirectorykit' ), | |
| 510 | 510 | ], |
| 511 | 511 | ] |
| 512 | 512 | ); |
| 513 | 513 | |
| @@ -513,25 +513,25 @@ | ||
| 513 | 513 | |
| 514 | 514 | $this->add_responsive_control( |
| 515 | 515 | 'styles_carousel_arrows_align', |
| 516 | 516 | [ |
| 517 | - 'label' => __( 'Align', 'wdk-listing-sliders' ), | |
| 517 | + 'label' => __( 'Align', 'wpdirectorykit' ), | |
| 518 | 518 | 'type' => Controls_Manager::CHOOSE, |
| 519 | 519 | 'options' => [ |
| 520 | 520 | 'left' => [ |
| 521 | - 'title' => esc_html__( 'Left', 'wdk-listing-sliders' ), | |
| 521 | + 'title' => esc_html__( 'Left', 'wpdirectorykit' ), | |
| 522 | 522 | 'icon' => 'eicon-text-align-left', |
| 523 | 523 | ], |
| 524 | 524 | 'center' => [ |
| 525 | - 'title' => esc_html__( 'Center', 'wdk-listing-sliders' ), | |
| 525 | + 'title' => esc_html__( 'Center', 'wpdirectorykit' ), | |
| 526 | 526 | 'icon' => 'eicon-text-align-center', |
| 527 | 527 | ], |
| 528 | 528 | 'right' => [ |
| 529 | - 'title' => esc_html__( 'Right', 'wdk-listing-sliders' ), | |
| 529 | + 'title' => esc_html__( 'Right', 'wpdirectorykit' ), | |
| 530 | 530 | 'icon' => 'eicon-text-align-right', |
| 531 | 531 | ], |
| 532 | 532 | 'justify' => [ |
| 533 | - 'title' => esc_html__( 'Justified', 'wdk-listing-sliders' ), | |
| 533 | + 'title' => esc_html__( 'Justified', 'wpdirectorykit' ), | |
| 534 | 534 | 'icon' => 'eicon-text-align-justify', |
| 535 | 535 | ], |
| 536 | 536 | ], |
| 537 | 537 | 'render_type' => 'ui', |
| @@ -558,9 +558,9 @@ | ||
| 558 | 558 | |
| 559 | 559 | $this->add_responsive_control( |
| 560 | 560 | 'styles_carousel_arrows_icon_left_h', |
| 561 | 561 | [ |
| 562 | - 'label' => esc_html__('Arrow left', 'wdk-listing-sliders'), | |
| 562 | + 'label' => esc_html__('Arrow left', 'wpdirectorykit'), | |
| 563 | 563 | 'type' => Controls_Manager::HEADING, |
| 564 | 564 | 'separator' => 'before', |
| 565 | 565 | ] |
| 566 | 566 | ); |
| @@ -571,9 +571,9 @@ | ||
| 571 | 571 | |
| 572 | 572 | $this->add_responsive_control( |
| 573 | 573 | 'styles_carousel_arrows_icon_left', |
| 574 | 574 | [ |
| 575 | - 'label' => esc_html__('Icon', 'wdk-listing-sliders'), | |
| 575 | + 'label' => esc_html__('Icon', 'wpdirectorykit'), | |
| 576 | 576 | 'type' => Controls_Manager::ICONS, |
| 577 | 577 | 'label_block' => true, |
| 578 | 578 | 'default' => [ |
| 579 | 579 | 'value' => 'fa fa-angle-left', |
| @@ -584,9 +584,9 @@ | ||
| 584 | 584 | |
| 585 | 585 | $this->add_responsive_control( |
| 586 | 586 | 'styles_carousel_arrows_icon_right_h', |
| 587 | 587 | [ |
| 588 | - 'label' => esc_html__('Arrow right', 'wdk-listing-sliders'), | |
| 588 | + 'label' => esc_html__('Arrow right', 'wpdirectorykit'), | |
| 589 | 589 | 'type' => Controls_Manager::HEADING, |
| 590 | 590 | 'separator' => 'before', |
| 591 | 591 | ] |
| 592 | 592 | ); |
| @@ -597,9 +597,9 @@ | ||
| 597 | 597 | |
| 598 | 598 | $this->add_responsive_control( |
| 599 | 599 | 'styles_carousel_arrows_icon_right', |
| 600 | 600 | [ |
| 601 | - 'label' => esc_html__('Icon', 'wdk-listing-sliders'), | |
| 601 | + 'label' => esc_html__('Icon', 'wpdirectorykit'), | |
| 602 | 602 | 'type' => Controls_Manager::ICONS, |
| 603 | 603 | 'label_block' => true, |
| 604 | 604 | 'default' => [ |
| 605 | 605 | 'value' => 'fa fa-angle-right', |
| @@ -618,9 +618,9 @@ | ||
| 618 | 618 | |
| 619 | 619 | $this->start_controls_section( |
| 620 | 620 | 'styles_carousel_dots_section', |
| 621 | 621 | [ |
| 622 | - 'label' => esc_html__('Section Dots', 'wdk-listing-sliders'), | |
| 622 | + 'label' => esc_html__('Section Dots', 'wpdirectorykit'), | |
| 623 | 623 | 'tab' => '1', |
| 624 | 624 | ] |
| 625 | 625 | ); |
| 626 | 626 | |
| @@ -626,12 +626,12 @@ | ||
| 626 | 626 | |
| 627 | 627 | $this->add_responsive_control( |
| 628 | 628 | 'styles_carousel_dots_hide', |
| 629 | 629 | [ |
| 630 | - 'label' => esc_html__( 'Hide Element', 'wdk-listing-sliders' ), | |
| 630 | + 'label' => esc_html__( 'Hide Element', 'wpdirectorykit' ), | |
| 631 | 631 | 'type' => Controls_Manager::SWITCHER, |
| 632 | - 'none' => esc_html__( 'Hide', 'wdk-listing-sliders' ), | |
| 633 | - 'block' => esc_html__( 'Show', 'wdk-listing-sliders' ), | |
| 632 | + 'none' => esc_html__( 'Hide', 'wpdirectorykit' ), | |
| 633 | + 'block' => esc_html__( 'Show', 'wpdirectorykit' ), | |
| 634 | 634 | 'return_value' => 'none', |
| 635 | 635 | 'default' => '', |
| 636 | 636 | 'selectors' => [ |
| 637 | 637 | '{{WRAPPER}} .wdk-listing-carousel .slick-dots' => 'display: {{VALUE}} !important;', |
| @@ -641,15 +641,15 @@ | ||
| 641 | 641 | |
| 642 | 642 | $this->add_responsive_control( |
| 643 | 643 | 'styles_carousel_dots_position_style', |
| 644 | 644 | [ |
| 645 | - 'label' => __( 'Position Style', 'wdk-listing-sliders' ), | |
| 645 | + 'label' => __( 'Position Style', 'wpdirectorykit' ), | |
| 646 | 646 | 'type' => \Elementor\Controls_Manager::SELECT, |
| 647 | 647 | 'default' => 'wdk-listing-carousel_dots_out', |
| 648 | 648 | 'options' => [ |
| 649 | - '' => __( 'Default', 'wdk-listing-sliders' ), | |
| 650 | - 'wdk-listing-carousel_dots_out' => __( 'Out', 'wdk-listing-sliders' ), | |
| 651 | - 'wdk-listing-carousel_dots_in' => __( 'In', 'wdk-listing-sliders' ), | |
| 649 | + '' => __( 'Default', 'wpdirectorykit' ), | |
| 650 | + 'wdk-listing-carousel_dots_out' => __( 'Out', 'wpdirectorykit' ), | |
| 651 | + 'wdk-listing-carousel_dots_in' => __( 'In', 'wpdirectorykit' ), | |
| 652 | 652 | ], |
| 653 | 653 | ] |
| 654 | 654 | ); |
| 655 | 655 | |
| @@ -655,16 +655,16 @@ | ||
| 655 | 655 | |
| 656 | 656 | $this->add_responsive_control( |
| 657 | 657 | 'styles_carousel_dots_direction', |
| 658 | 658 | [ |
| 659 | - 'label' => __( 'Direction Dots', 'wdk-listing-sliders' ), | |
| 659 | + 'label' => __( 'Direction Dots', 'wpdirectorykit' ), | |
| 660 | 660 | 'type' => Controls_Manager::SELECT, |
| 661 | 661 | 'options' => [ |
| 662 | - '' => esc_html__('Default', 'wdk-listing-sliders'), | |
| 663 | - 'column' => esc_html__('Column', 'wdk-listing-sliders'), | |
| 664 | - 'column-reverse' => esc_html__('Column Reverse', 'wdk-listing-sliders'), | |
| 665 | - 'row' => esc_html__('Row', 'wdk-listing-sliders'), | |
| 666 | - 'row-reverse' => esc_html__('Row Reverse', 'wdk-listing-sliders'), | |
| 662 | + '' => esc_html__('Default', 'wpdirectorykit'), | |
| 663 | + 'column' => esc_html__('Column', 'wpdirectorykit'), | |
| 664 | + 'column-reverse' => esc_html__('Column Reverse', 'wpdirectorykit'), | |
| 665 | + 'row' => esc_html__('Row', 'wpdirectorykit'), | |
| 666 | + 'row-reverse' => esc_html__('Row Reverse', 'wpdirectorykit'), | |
| 667 | 667 | ], |
| 668 | 668 | 'selectors_dictionary' => [ |
| 669 | 669 | 'column' => 'display: flex !important; flex-direction: column;', |
| 670 | 670 | 'column-reverse' => 'display: flex !important; flex-direction: column-reverse;', |
| @@ -681,25 +681,25 @@ | ||
| 681 | 681 | |
| 682 | 682 | $this->add_responsive_control( |
| 683 | 683 | 'styles_carousel_dots_align', |
| 684 | 684 | [ |
| 685 | - 'label' => __( 'Position', 'wdk-listing-sliders' ), | |
| 685 | + 'label' => __( 'Position', 'wpdirectorykit' ), | |
| 686 | 686 | 'type' => Controls_Manager::CHOOSE, |
| 687 | 687 | 'options' => [ |
| 688 | 688 | 'left' => [ |
| 689 | - 'title' => esc_html__( 'Left', 'wdk-listing-sliders' ), | |
| 689 | + 'title' => esc_html__( 'Left', 'wpdirectorykit' ), | |
| 690 | 690 | 'icon' => 'eicon-text-align-left', |
| 691 | 691 | ], |
| 692 | 692 | 'center' => [ |
| 693 | - 'title' => esc_html__( 'Center', 'wdk-listing-sliders' ), | |
| 693 | + 'title' => esc_html__( 'Center', 'wpdirectorykit' ), | |
| 694 | 694 | 'icon' => 'eicon-text-align-center', |
| 695 | 695 | ], |
| 696 | 696 | 'right' => [ |
| 697 | - 'title' => esc_html__( 'Right', 'wdk-listing-sliders' ), | |
| 697 | + 'title' => esc_html__( 'Right', 'wpdirectorykit' ), | |
| 698 | 698 | 'icon' => 'eicon-text-align-right', |
| 699 | 699 | ], |
| 700 | 700 | 'justify' => [ |
| 701 | - 'title' => esc_html__( 'Justified', 'wdk-listing-sliders' ), | |
| 701 | + 'title' => esc_html__( 'Justified', 'wpdirectorykit' ), | |
| 702 | 702 | 'icon' => 'eicon-text-align-justify', |
| 703 | 703 | ], |
| 704 | 704 | ], |
| 705 | 705 | 'render_type' => 'ui', |
| @@ -726,21 +726,21 @@ | ||
| 726 | 726 | |
| 727 | 727 | $this->add_responsive_control( |
| 728 | 728 | 'styles_carousel_dots_in_align', |
| 729 | 729 | [ |
| 730 | - 'label' => __( 'Position', 'wdk-listing-sliders' ), | |
| 730 | + 'label' => __( 'Position', 'wpdirectorykit' ), | |
| 731 | 731 | 'type' => Controls_Manager::CHOOSE, |
| 732 | 732 | 'options' => [ |
| 733 | 733 | 'left' => [ |
| 734 | - 'title' => esc_html__( 'Left', 'wdk-listing-sliders' ), | |
| 734 | + 'title' => esc_html__( 'Left', 'wpdirectorykit' ), | |
| 735 | 735 | 'icon' => 'eicon-text-align-left', |
| 736 | 736 | ], |
| 737 | 737 | 'center' => [ |
| 738 | - 'title' => esc_html__( 'Center', 'wdk-listing-sliders' ), | |
| 738 | + 'title' => esc_html__( 'Center', 'wpdirectorykit' ), | |
| 739 | 739 | 'icon' => 'eicon-text-align-center', |
| 740 | 740 | ], |
| 741 | 741 | 'right' => [ |
| 742 | - 'title' => esc_html__( 'Right', 'wdk-listing-sliders' ), | |
| 742 | + 'title' => esc_html__( 'Right', 'wpdirectorykit' ), | |
| 743 | 743 | 'icon' => 'eicon-text-align-right', |
| 744 | 744 | ], |
| 745 | 745 | ], |
| 746 | 746 | 'default' => 'center', |
| @@ -767,21 +767,21 @@ | ||
| 767 | 767 | |
| 768 | 768 | $this->add_responsive_control( |
| 769 | 769 | 'styles_carousel_dots_in_align_y', |
| 770 | 770 | [ |
| 771 | - 'label' => __( 'Position Vertical', 'wdk-listing-sliders' ), | |
| 771 | + 'label' => __( 'Position Vertical', 'wpdirectorykit' ), | |
| 772 | 772 | 'type' => Controls_Manager::CHOOSE, |
| 773 | 773 | 'options' => [ |
| 774 | 774 | 'top' => [ |
| 775 | - 'title' => esc_html__( 'Top', 'wdk-listing-sliders' ), | |
| 775 | + 'title' => esc_html__( 'Top', 'wpdirectorykit' ), | |
| 776 | 776 | 'icon' => 'eicon-justify-start-v', |
| 777 | 777 | ], |
| 778 | 778 | 'center' => [ |
| 779 | - 'title' => esc_html__( 'Center', 'wdk-listing-sliders' ), | |
| 779 | + 'title' => esc_html__( 'Center', 'wpdirectorykit' ), | |
| 780 | 780 | 'icon' => 'eicon-text-align-center', |
| 781 | 781 | ], |
| 782 | 782 | 'bottom' => [ |
| 783 | - 'title' => esc_html__( 'Bottom', 'wdk-listing-sliders' ), | |
| 783 | + 'title' => esc_html__( 'Bottom', 'wpdirectorykit' ), | |
| 784 | 784 | 'icon' => ' eicon-justify-end-v', |
| 785 | 785 | ], |
| 786 | 786 | ], |
| 787 | 787 | 'render_type' => 'ui', |
| @@ -807,9 +807,9 @@ | ||
| 807 | 807 | |
| 808 | 808 | $this->add_responsive_control( |
| 809 | 809 | 'styles_carousel_dots_icon', |
| 810 | 810 | [ |
| 811 | - 'label' => esc_html__('Icon', 'wdk-listing-sliders'), | |
| 811 | + 'label' => esc_html__('Icon', 'wpdirectorykit'), | |
| 812 | 812 | 'type' => Controls_Manager::ICONS, |
| 813 | 813 | 'label_block' => true, |
| 814 | 814 | 'default' => [ |
| 815 | 815 | 'value' => 'fas fa-circle', |
| @@ -828,9 +828,9 @@ | ||
| 828 | 828 | |
| 829 | 829 | $this->add_responsive_control( |
| 830 | 830 | 'styles_carousel_dots_hover_header', |
| 831 | 831 | [ |
| 832 | - 'label' => esc_html__('Hover Animation', 'wdk-listing-sliders'), | |
| 832 | + 'label' => esc_html__('Hover Animation', 'wpdirectorykit'), | |
| 833 | 833 | 'type' => Controls_Manager::HEADING, |
| 834 | 834 | 'separator' => 'before', |
| 835 | 835 | ] |
| 836 | 836 | ); |
| @@ -843,9 +843,9 @@ | ||
| 843 | 843 | |
| 844 | 844 | $this->add_responsive_control( |
| 845 | 845 | 'styles_carousel_dots_box_header', |
| 846 | 846 | [ |
| 847 | - 'label' => esc_html__('Dots container', 'wdk-listing-sliders'), | |
| 847 | + 'label' => esc_html__('Dots container', 'wpdirectorykit'), | |
| 848 | 848 | 'type' => Controls_Manager::HEADING, |
| 849 | 849 | 'separator' => 'before', |
| 850 | 850 | ] |
| 851 | 851 | ); |