PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.17.4
Shortcodes and extra features for Phlox theme v2.17.4
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / includes / elementor / widgets / text.php
auxin-elements / includes / elementor / widgets Last commit date
theme-elements 1 year ago accordion.php 1 year ago audio.php 4 years ago before-after.php 3 years ago button.php 1 year ago carousel-navigation.php 4 years ago circle-chart.php 1 year ago contact-box.php 4 years ago contact-form.php 1 year ago custom-list.php 1 year ago divider.php 4 years ago gallery.php 1 year ago gmap.php 4 years ago heading-modern.php 1 year ago icon.php 1 year ago image.php 1 year ago mailchimp.php 1 year ago modern-button.php 1 year ago products-grid.php 1 year ago quote.php 1 year ago recent-comments.php 1 year ago recent-posts-grid-carousel.php 1 year ago recent-posts-land-style.php 1 year ago recent-posts-masonry.php 1 year ago recent-posts-tiles-carousel.php 1 year ago recent-posts-tiles.php 1 year ago recent-posts-timeline.php 1 year ago recent-products.php 1 year ago responsive-table.php 1 year ago search.php 4 years ago staff.php 1 year ago svg.php 1 year ago tabs.php 1 year ago testimonial.php 1 year ago text.php 1 year ago touch-slider.php 1 year ago video.php 4 years ago
text.php
1700 lines
1 <?php
2 namespace Auxin\Plugin\CoreElements\Elementor\Elements;
3
4 use Elementor\Plugin;
5 use Elementor\Widget_Base;
6 use Elementor\Controls_Manager;
7 use Elementor\Group_Control_Image_Size;
8 use Elementor\Group_Control_Typography;
9 use Elementor\Group_Control_Text_Stroke;
10 use Elementor\Core\Kits\Documents\Tabs\Global_Typography;
11 use Elementor\Group_Control_Border;
12 use Elementor\Group_Control_Box_Shadow;
13 use Elementor\Group_Control_Text_Shadow;
14 use Elementor\Group_Control_Background;
15
16 if ( ! defined( 'ABSPATH' ) ) {
17 exit; // Exit if accessed directly.
18 }
19
20 /**
21 * Elementor 'RecentProducts' widget.
22 *
23 * Elementor widget that displays an 'RecentProducts' with lightbox.
24 *
25 * @since 1.0.0
26 */
27 class Text extends Widget_Base {
28
29 /**
30 * Get widget name.
31 *
32 * Retrieve 'RecentProducts' widget name.
33 *
34 * @since 1.0.0
35 * @access public
36 *
37 * @return string Widget name.
38 */
39 public function get_name() {
40 return 'aux_text';
41 }
42
43 /**
44 * Get widget title.
45 *
46 * Retrieve 'RecentProducts' widget title.
47 *
48 * @since 1.0.0
49 * @access public
50 *
51 * @return string Widget title.
52 */
53 public function get_title() {
54 return __('Info Box', 'auxin-elements' );
55 }
56
57 /**
58 * Get widget icon.
59 *
60 * Retrieve 'RecentProducts' widget icon.
61 *
62 * @since 1.0.0
63 * @access public
64 *
65 * @return string Widget icon.
66 */
67 public function get_icon() {
68 return 'eicon-info-box auxin-badge';
69 }
70
71 /**
72 * Get widget categories.
73 *
74 * Retrieve 'RecentProducts' widget icon.
75 *
76 * @since 1.0.0
77 * @access public
78 *
79 * @return string Widget icon.
80 */
81 public function get_categories() {
82 return array( 'auxin-core' );
83 }
84
85 /**
86 * Register 'RecentProducts' widget controls.
87 *
88 * Adds different input fields to allow the user to change and customize the widget settings.
89 *
90 * @since 1.0.0
91 * @access protected
92 */
93 protected function register_controls() {
94
95 /*-----------------------------------------------------------------------------------*/
96 /* Content TAB
97 /*-----------------------------------------------------------------------------------*/
98
99 /* header_section
100 /*-------------------------------------*/
101
102 $this->start_controls_section(
103 'header_section',
104 array(
105 'label' => __( 'Header', 'auxin-elements' ),
106 )
107 );
108
109 $this->add_control(
110 'icon_or_image',
111 array(
112 'label' => __( 'Type', 'auxin-elements' ),
113 'type' => Controls_Manager::SELECT,
114 'default' => 'icon',
115 'options' => array(
116 'none' => __( 'None' , 'auxin-elements' ),
117 'icon' => __( 'Icon' , 'auxin-elements' ),
118 'image' => __( 'Image' , 'auxin-elements' ),
119 'inline-svg' => __( 'Inline SVG' , 'auxin-elements' )
120 )
121 )
122 );
123
124 $this->add_control(
125 'aux_text_icon',
126 array(
127 'label' => __('Icon','auxin-elements' ),
128 'label_block' => true,
129 'description' => __('Please choose an icon from the list.', 'auxin-elements'),
130 'type' => Controls_Manager::ICONS,
131 'condition' => array(
132 'icon_or_image' => array('icon')
133 )
134 )
135 );
136
137 $this->add_control(
138 'image',
139 array(
140 'label' => __('Image','auxin-elements' ),
141 'type' => Controls_Manager::MEDIA,
142 'condition' => array(
143 'icon_or_image' => array('image')
144 )
145 )
146 );
147
148 $this->add_group_control(
149 Group_Control_Image_Size::get_type(),
150 array(
151 'name' => 'image', // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `thumbnail_size` and `thumbnail_custom_dimension`.
152 'separator' => 'none',
153 'default' => 'full',
154 'condition' => array(
155 'icon_or_image' => array('image')
156 )
157 )
158 );
159
160 $this->add_control(
161 'preloadable',
162 array(
163 'label' => __('Preload image','auxin-elements' ),
164 'type' => Controls_Manager::SWITCHER,
165 'label_on' => __( 'On', 'auxin-elements' ),
166 'label_off' => __( 'Off', 'auxin-elements' ),
167 'return_value' => 'yes',
168 'default' => 'no',
169 'condition' => array(
170 'icon_or_image' => array('image')
171 )
172 )
173 );
174
175 $this->add_control(
176 'preload_preview',
177 array(
178 'label' => __('While loading image display','auxin-elements' ),
179 'label_block' => true,
180 'type' => Controls_Manager::SELECT,
181 'options' => auxin_get_preloadable_previews(),
182 'return_value' => 'yes',
183 'default' => 'yes',
184 'condition' => array(
185 'icon_or_image' => array('image'),
186 'preloadable' => 'yes'
187 )
188 )
189 );
190
191 $this->add_control(
192 'preload_bgcolor',
193 array(
194 'label' => __( 'Placeholder color while loading image', 'auxin-elements' ),
195 'type' => Controls_Manager::COLOR,
196 'condition' => array(
197 'icon_or_image' => array('image'),
198 'preloadable' => 'yes',
199 'preload_preview' => array('no', 'simple-spinner', 'simple-spinner-light', 'simple-spinner-dark')
200 )
201 )
202 );
203
204 $this->add_control(
205 'svg_inline',
206 array(
207 'label' => '',
208 'type' => Controls_Manager::CODE,
209 'default' => '',
210 'placeholder' => __( 'Enter inline SVG content here', 'auxin-elements' ),
211 'show_label' => false,
212 'condition' => array(
213 'icon_or_image' => 'inline-svg'
214 )
215 )
216 );
217
218 $this->end_controls_section();
219
220 /* content_section
221 /*-------------------------------------*/
222
223 $this->start_controls_section(
224 'content_section',
225 array(
226 'label' => __('Content', 'auxin-elements' ),
227 )
228 );
229
230 $this->add_control(
231 'title',
232 array(
233 'label' => __('Title','auxin-elements' ),
234 'description' => __('Text title, leave it empty if you don`t need title.', 'auxin-elements'),
235 'type' => Controls_Manager::TEXT,
236 'default' => 'Great Idea'
237 )
238 );
239
240 $this->add_control(
241 'subtitle',
242 array(
243 'label' => __('Subtitle','auxin-elements' ),
244 'type' => Controls_Manager::TEXT
245 )
246 );
247
248 $this->add_control(
249 'title_link',
250 array(
251 'label' => __('Title Link','auxin-elements' ),
252 'type' => Controls_Manager::URL,
253 'placeholder' => 'http://phlox.pro',
254 'show_external' => false,
255 'dynamic' => [
256 'active' => true
257 ]
258 )
259 );
260
261 $this->add_control(
262 'content',
263 array(
264 'label' => __('Content','auxin-elements' ),
265 'description' => __('Enter a text as a text content.', 'auxin-elements'),
266 'type' => Controls_Manager::WYSIWYG,
267 'default' => 'NVestibulum rutum, mi nec elementum vehicula, eros quam gravida nisl, id fringilla neque ante.'
268 )
269 );
270
271 $this->end_controls_section();
272
273 /* button_section
274 /*-------------------------------------*/
275
276 $this->start_controls_section(
277 'button_section',
278 array(
279 'label' => __('Button', 'auxin-elements' ),
280 )
281 );
282
283 $this->add_control(
284 'display_button',
285 array(
286 'label' => __('Display button','auxin-elements' ),
287 'description' => __('Display a button in text widget', 'auxin-elements' ),
288 'type' => Controls_Manager::SWITCHER,
289 'label_on' => __( 'On', 'auxin-elements' ),
290 'label_off' => __( 'Off', 'auxin-elements' ),
291 'return_value' => 'yes',
292 'default' => 'yes'
293 )
294 );
295
296 $this->add_control(
297 'btn_label',
298 array(
299 'label' => __('Button label','auxin-elements' ),
300 'type' => Controls_Manager::TEXT,
301 'default' => __( 'Read More', 'auxin-elements' ),
302 'condition' => array(
303 'display_button' => 'yes',
304 )
305 )
306 );
307
308 $this->add_control(
309 'aux_text_btn_icon',
310 array(
311 'label' => __('Icon for button','auxin-elements' ),
312 'type' => Controls_Manager::ICONS,
313 'condition' => array(
314 'display_button' => 'yes',
315 )
316 )
317 );
318
319 $this->add_control(
320 'btn_link',
321 array(
322 'label' => __('Link','auxin-elements' ),
323 'description' => __('If you want to link your button.', 'auxin-elements' ),
324 'type' => Controls_Manager::URL,
325 'placeholder' => 'http://phlox.pro',
326 'show_external' => true,
327 'condition' => [
328 'display_button' => 'yes',
329 ],
330 'dynamic' => [
331 'active' => true
332 ]
333 )
334 );
335
336 $this->end_controls_section();
337
338 /*-----------------------------------------------------------------------------------*/
339 /* Style TAB
340 /*-----------------------------------------------------------------------------------*/
341
342 /* header_style_section
343 /*-------------------------------------*/
344
345 $this->start_controls_section(
346 'header_style_section',
347 array(
348 'label' => __('Header', 'auxin-elements' ),
349 'tab' => Controls_Manager::TAB_STYLE,
350 'condition' => array(
351 'icon_or_image' => array( 'icon', 'image', 'inline-svg' )
352 )
353 )
354 );
355
356 $this->add_control(
357 'image_position',
358 array(
359 'label' => __('Header Position','auxin-elements'),
360 'type' => 'aux-visual-select',
361 'style_items' => 'max-width:30%;',
362 'options' => array(
363 'top' => array(
364 'label' => __('Top', 'auxin-elements'),
365 'image' => AUXIN_URL . 'images/visual-select/column-icon-top.svg'
366 ),
367 'left' => array(
368 'label' => __('Left', 'auxin-elements'),
369 'image' => AUXIN_URL . 'images/visual-select/column-icon-left.svg'
370 ),
371 'right' => array(
372 'label' => __('Right', 'auxin-elements'),
373 'image' => AUXIN_URL . 'images/visual-select/column-icon-right.svg'
374 )
375 ),
376 'default' => 'top'
377 )
378 );
379
380 $this->add_group_control(
381 Group_Control_Background::get_type(),
382 array(
383 'name' => 'header_background',
384 'label' => __( 'Background', 'auxin-elements' ),
385 'types' => array( 'classic', 'gradient' ),
386 'selector' => '{{WRAPPER}} .aux-text-widget-header'
387 )
388 );
389
390 $this->add_responsive_control(
391 'header_padding',
392 array(
393 'label' => __( 'Padding', 'auxin-elements' ),
394 'type' => Controls_Manager::DIMENSIONS,
395 'size_units' => array( 'px', '%' ),
396 'selectors' => array(
397 '{{WRAPPER}} .aux-widget-text .aux-text-widget-header' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
398 )
399 )
400 );
401
402 $this->end_controls_section();
403
404 /* icon_image_style_section
405 /*-------------------------------------*/
406
407 $this->start_controls_section(
408 'icon_image_style_section',
409 array(
410 'label' => __('Icon/Image', 'auxin-elements' ),
411 'tab' => Controls_Manager::TAB_STYLE,
412 'condition' => array(
413 'icon_or_image' => array( 'icon', 'image', 'inline-svg' )
414 )
415 )
416 );
417
418 $this->add_group_control(
419 Group_Control_Border::get_type(),
420 array(
421 'name' => 'icon_border',
422 'label' => __( 'Border', 'auxin-elements' ),
423 'selector' => '{{WRAPPER}} .aux-ico-box',
424 )
425 );
426
427 $this->add_responsive_control(
428 'icon_size',
429 array(
430 'label' => __( 'Icon Size', 'auxin-elements' ),
431 'type' => Controls_Manager::SLIDER,
432 'size_units' => array( 'px', '%' ),
433 'range' => array(
434 'px' => array(
435 'min' => 16,
436 'max' => 512,
437 'step' => 2,
438 ),
439 '%' => array(
440 'min' => 0,
441 'max' => 100,
442 ),
443 ),
444 'selectors' => array(
445 '{{WRAPPER}} .aux-ico' => 'font-size: {{SIZE}}{{UNIT}};height: {{SIZE}}{{UNIT}};',
446 ),
447 'condition' => array(
448 'icon_or_image' => array('icon')
449 )
450 )
451 );
452
453 $this->add_control(
454 'icon_shape',
455 array(
456 'label' => __('Icon background shape','auxin-elements'),
457 'style_items' => 'max-width:30%;',
458 'type' => 'aux-visual-select',
459 'options' => array(
460 'circle' => array(
461 'label' => __('Circle', 'auxin-elements'),
462 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
463 ),
464 'semi-circle' => array(
465 'label' => __('Semi-circle', 'auxin-elements'),
466 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
467 ),
468 'round-rect' => array(
469 'label' => __('Round Rectangle', 'auxin-elements'),
470 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
471 ),
472 'cross-rect' => array(
473 'label' => __('Cross Rectangle', 'auxin-elements'),
474 'image' => AUXIN_URL . 'images/visual-select/icon-style-cross-rectangle.svg'
475 ),
476 'rect' => array(
477 'label' => __('Rectangle', 'auxin-elements'),
478 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
479 )
480 ),
481 'default' => 'circle',
482 'condition' => array(
483 'icon_or_image' => array('icon')
484 )
485 )
486 );
487
488 $this->add_responsive_control(
489 'icon_padding',
490 array(
491 'label' => __( 'Padding', 'auxin-elements' ),
492 'type' => Controls_Manager::DIMENSIONS,
493 'size_units' => array( 'px', '%' ),
494 'selectors' => array(
495 '{{WRAPPER}} .aux-ico-box' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
496 ),
497 'condition' => array(
498 'icon_or_image' => array('icon')
499 )
500 )
501 );
502
503 $this->start_controls_tabs( 'icon_style_tabs' );
504
505 $this->start_controls_tab(
506 'icon_style_normal',
507 array(
508 'label' => __( 'Normal' , 'auxin-elements' )
509 )
510 );
511
512
513 $this->add_group_control(
514 Group_Control_Box_Shadow::get_type(),
515 array(
516 'name' => 'header_box_shadow',
517 'selector' => '{{WRAPPER}} .aux-ico-box'
518 )
519 );
520
521 $this->add_control(
522 'icon_color',
523 array(
524 'label' => __('Icon color', 'auxin-elements'),
525 'type' => Controls_Manager::COLOR,
526 'default' => '#ffffff',
527 'selectors' => array(
528 '{{WRAPPER}} .aux-ico-box' => 'color:{{VALUE}};fill: {{VALUE}};',
529 ),
530 'condition' => array(
531 'icon_or_image' => array('icon')
532 )
533 )
534 );
535
536 $this->add_control(
537 'icon_bg_color',
538 array(
539 'label' => __('Icon background color','auxin-elements' ),
540 'type' => Controls_Manager::COLOR,
541 'default' => '',
542 'selectors' => array(
543 '{{WRAPPER}} .aux-ico-box' => 'background-color:{{VALUE}};',
544 ),
545 'condition' => array(
546 'icon_or_image' => array('icon')
547 )
548 )
549 );
550
551 $this->add_group_control(
552 Group_Control_Background::get_type(),
553 array(
554 'name' => 'icon_background_normal',
555 'label' => __( 'Background', 'auxin-elements' ),
556 'types' => array( 'gradient' ),
557 'selector' => '{{WRAPPER}} .aux-ico-box'
558 )
559 );
560
561
562 $this->end_controls_tab();
563
564 $this->start_controls_tab(
565 'icon_style_hover',
566 array(
567 'label' => __( 'Hover' , 'auxin-elements' )
568 )
569 );
570
571
572 $this->add_group_control(
573 Group_Control_Box_Shadow::get_type(),
574 array(
575 'name' => 'header_box_shadow_hover',
576 'selector' => '{{WRAPPER}}:hover .aux-ico-box'
577 )
578 );
579
580 $this->add_control(
581 'icon_color_hover',
582 array(
583 'label' => __('Icon color', 'auxin-elements'),
584 'type' => Controls_Manager::COLOR,
585 'default' => '',
586 'selectors' => array(
587 '{{WRAPPER}}:hover .aux-ico-box' => 'color:{{VALUE}} !important;',
588 ),
589 'condition' => array(
590 'icon_or_image' => ['icon']
591 )
592 )
593 );
594
595 $this->add_control(
596 'icon_bg_color_hover',
597 array(
598 'label' => __('Icon background color','auxin-elements' ),
599 'type' => Controls_Manager::COLOR,
600 'default' => '',
601 'selectors' => array(
602 '{{WRAPPER}}:hover .aux-ico-box' => 'background-color:{{VALUE}} !important;',
603 ),
604 'condition' => array(
605 'icon_or_image' => ['icon']
606 )
607 )
608 );
609
610 $this->add_group_control(
611 Group_Control_Background::get_type(),
612 array(
613 'name' => 'icon_background_hover',
614 'label' => __( 'Background', 'auxin-elements' ),
615 'types' => array( 'gradient' ),
616 'selector' => '{{WRAPPER}}:hover .aux-ico-box'
617 )
618 );
619
620 $this->add_control(
621 'icon_transition',
622 array(
623 'label' => __( 'Transition duration', 'auxin-elements' ),
624 'type' => Controls_Manager::SLIDER,
625 'range' => array(
626 'px' => array(
627 'min' => 0,
628 'max' => 2000,
629 'step' => 50
630 )
631 ),
632 'selectors' => array(
633 '{{WRAPPER}} .aux-ico-box' => 'transition:all {{SIZE}}ms ease;'
634 ),
635 'condition' => array(
636 'icon_or_image' => ['icon']
637 )
638 )
639 );
640
641 $this->end_controls_tab();
642
643 $this->end_controls_tabs();
644
645 $this->add_control(
646 'img_shape',
647 array(
648 'label' => __('Image shape','auxin-elements'),
649 'type' => 'aux-visual-select',
650 'options' => array(
651 'default' => array(
652 'label' => __('Default Aspect', 'auxin-elements'),
653 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
654 ),
655 'circle' => array(
656 'label' => __('Circle', 'auxin-elements'),
657 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
658 ),
659 'semi-circle' => array(
660 'label' => __('Semi-circle', 'auxin-elements'),
661 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
662 ),
663 'round-rect' => array(
664 'label' => __('Round Rectangle', 'auxin-elements'),
665 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
666 ),
667 'rect' => array(
668 'label' => __('Rectangle', 'auxin-elements'),
669 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
670 ),
671 ),
672 'default' => 'default',
673 'condition' => array(
674 'icon_or_image' => array('image')
675 )
676 )
677 );
678
679 $this->end_controls_section();
680
681 /* title_style_section
682 /*-------------------------------------*/
683
684 $this->start_controls_section(
685 'title_style_section',
686 array(
687 'label' => __( 'Title', 'auxin-elements' ),
688 'tab' => Controls_Manager::TAB_STYLE,
689 'condition' => array(
690 'title!' => ''
691 )
692 )
693 );
694
695 $this->start_controls_tabs( 'title_colors' );
696
697 $this->start_controls_tab(
698 'title_color_normal',
699 array(
700 'label' => __( 'Normal' , 'auxin-elements' )
701 )
702 );
703
704 $this->add_control(
705 'title_color',
706 array(
707 'label' => __( 'Color', 'auxin-elements' ),
708 'type' => Controls_Manager::COLOR,
709 'selectors' => array(
710 '{{WRAPPER}} .col-title a, {{WRAPPER}} .col-title' => 'color: {{VALUE}} !important;',
711 )
712 )
713 );
714
715 $this->end_controls_tab();
716
717 $this->start_controls_tab(
718 'title_color_hover',
719 array(
720 'label' => __( 'Hover' , 'auxin-elements' )
721 )
722 );
723
724 $this->add_control(
725 'title_hover_color',
726 array(
727 'label' => __( 'Color', 'auxin-elements' ),
728 'type' => Controls_Manager::COLOR,
729 'selectors' => array(
730 '{{WRAPPER}}:hover .col-title a, {{WRAPPER}}:hover .col-title' => 'color: {{VALUE}} !important;'
731 )
732 )
733 );
734
735 $this->end_controls_tab();
736
737 $this->end_controls_tabs();
738
739 if ( class_exists( 'Elementor\Group_Control_Text_Stroke' ) ) {
740 $this->add_group_control(
741 Group_Control_Text_Stroke::get_type(),
742 [
743 'name' => 'title_stroke',
744 'selector' => '{{WRAPPER}} .col-title a, {{WRAPPER}} .col-title'
745 ]
746 );
747 }
748
749 $this->add_group_control(
750 Group_Control_Typography::get_type(),
751 array(
752 'name' => 'title_typography',
753 'global' => [
754 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
755 ],
756 'selector' => '{{WRAPPER}} .col-title, {{WRAPPER}} .col-title a'
757 )
758 );
759
760 $this->add_group_control(
761 Group_Control_Text_Shadow::get_type(),
762 array(
763 'name' => 'title_shadow',
764 'label' => __( 'Text Shadow', 'auxin-elements' ),
765 'selector' => '{{WRAPPER}} .col-title'
766 )
767 );
768
769 $this->add_responsive_control(
770 'title_margin_bottom',
771 array(
772 'label' => __( 'Bottom space', 'auxin-elements' ),
773 'type' => Controls_Manager::SLIDER,
774 'range' => array(
775 'px' => array(
776 'min' => -200,
777 'max' => 200
778 )
779 ),
780 'selectors' => array(
781 '{{WRAPPER}} .col-title' => 'margin-bottom: {{SIZE}}{{UNIT}};'
782 )
783 )
784 );
785
786 $this->end_controls_section();
787
788 /* subtitle_style_section
789 /*-------------------------------------*/
790
791 $this->start_controls_section(
792 'subtitle_style_section',
793 array(
794 'label' => __( 'Subtitle', 'auxin-elements' ),
795 'tab' => Controls_Manager::TAB_STYLE,
796 'condition' => array(
797 'subtitle!' => ''
798 )
799 )
800 );
801
802 $this->start_controls_tabs( 'subtitle_colors' );
803
804 $this->start_controls_tab(
805 'subtitle_color_normal',
806 array(
807 'label' => __( 'Normal' , 'auxin-elements' )
808 )
809 );
810
811 $this->add_control(
812 'subtitle_color',
813 array(
814 'label' => __( 'Color', 'auxin-elements' ),
815 'type' => Controls_Manager::COLOR,
816 'selectors' => array(
817 '{{WRAPPER}} .col-subtitle' => 'color: {{VALUE}} !important;',
818 )
819 )
820 );
821
822 $this->end_controls_tab();
823
824 $this->start_controls_tab(
825 'subtitle_color_hover',
826 array(
827 'label' => __( 'Hover' , 'auxin-elements' )
828 )
829 );
830
831 $this->add_control(
832 'subtitle_hover_color',
833 array(
834 'label' => __( 'Color', 'auxin-elements' ),
835 'type' => Controls_Manager::COLOR,
836 'selectors' => array(
837 '{{WRAPPER}}:hover .col-subtitle' => 'color: {{VALUE}} !important;'
838 )
839 )
840 );
841
842 $this->end_controls_tab();
843
844 $this->end_controls_tabs();
845
846
847 $this->add_group_control(
848 Group_Control_Typography::get_type(),
849 array(
850 'name' => 'subtitle_typography',
851 'global' => [
852 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
853 ],
854 'selector' => '{{WRAPPER}} .col-subtitle'
855 )
856 );
857
858 $this->add_group_control(
859 Group_Control_Text_Shadow::get_type(),
860 array(
861 'name' => 'subtitle_shadow',
862 'label' => __( 'Text Shadow', 'auxin-elements' ),
863 'selector' => '{{WRAPPER}} .col-subtitle'
864 )
865 );
866
867 $this->add_responsive_control(
868 'subtitle_margin_top',
869 array(
870 'label' => __( 'Top space', 'auxin-elements' ),
871 'type' => Controls_Manager::SLIDER,
872 'range' => array(
873 'px' => array(
874 'min' => -200,
875 'max' => 200
876 )
877 ),
878 'selectors' => array(
879 '{{WRAPPER}} .col-subtitle' => 'margin-top: {{SIZE}}{{UNIT}};'
880 )
881 )
882 );
883
884 $this->add_responsive_control(
885 'subtitle_margin_bottom',
886 array(
887 'label' => __( 'Bottom space', 'auxin-elements' ),
888 'type' => Controls_Manager::SLIDER,
889 'range' => array(
890 'px' => array(
891 'min' => -200,
892 'max' => 200
893 )
894 ),
895 'selectors' => array(
896 '{{WRAPPER}} .col-subtitle' => 'margin-bottom: {{SIZE}}{{UNIT}};'
897 )
898 )
899 );
900
901 $this->end_controls_section();
902
903 /* content_style_section
904 /*-------------------------------------*/
905
906 $this->start_controls_section(
907 'content_style_section',
908 array(
909 'label' => __( 'Content', 'auxin-elements' ),
910 'tab' => Controls_Manager::TAB_STYLE
911 )
912 );
913
914
915 $this->start_controls_tabs( 'content_colors' );
916
917 $this->start_controls_tab(
918 'content_color_normal',
919 array(
920 'label' => __( 'Normal' , 'auxin-elements' )
921 )
922 );
923
924 $this->add_control(
925 'content_color',
926 array(
927 'label' => __( 'Color', 'auxin-elements' ),
928 'type' => Controls_Manager::COLOR,
929 'selectors' => array(
930 '{{WRAPPER}} .widget-content' => 'color:{{VALUE}} !important;',
931 )
932 )
933 );
934
935 $this->end_controls_tab();
936
937 $this->start_controls_tab(
938 'content_color_hover',
939 array(
940 'label' => __( 'Hover' , 'auxin-elements' )
941 )
942 );
943
944 $this->add_control(
945 'content_hover_color',
946 array(
947 'label' => __( 'Color', 'auxin-elements' ),
948 'type' => Controls_Manager::COLOR,
949 'selectors' => array(
950 '{{WRAPPER}}:hover .widget-content' => 'color:{{VALUE}} !important;'
951 )
952 )
953 );
954
955 $this->end_controls_tab();
956
957 $this->end_controls_tabs();
958
959
960 $this->add_group_control(
961 Group_Control_Typography::get_type(),
962 array(
963 'name' => 'content_typography',
964 'global' => [
965 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
966 ],
967 'selector' => '{{WRAPPER}} .widget-content'
968 )
969 );
970
971 $this->add_group_control(
972 Group_Control_Text_Shadow::get_type(),
973 array(
974 'name' => 'content_shadow',
975 'label' => __( 'Text Shadow', 'auxin-elements' ),
976 'selector' => '{{WRAPPER}} .widget-content'
977 )
978 );
979
980 $this->add_responsive_control(
981 'content_padding',
982 array(
983 'label' => __( 'Padding', 'auxin-elements' ),
984 'type' => Controls_Manager::DIMENSIONS,
985 'size_units' => array( 'px', '%' ),
986 'selectors' => array(
987 '{{WRAPPER}} .aux-widget-text .aux-text-widget-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
988 )
989 )
990 );
991
992 $this->add_responsive_control(
993 'content_margin_top',
994 array(
995 'label' => __( 'Top space', 'auxin-elements' ),
996 'type' => Controls_Manager::SLIDER,
997 'range' => array(
998 'px' => array(
999 'min' => -200,
1000 'max' => 200
1001 )
1002 ),
1003 'selectors' => array(
1004 '{{WRAPPER}} .widget-content' => 'margin-top: {{SIZE}}{{UNIT}};'
1005 )
1006 )
1007 );
1008
1009 $this->add_responsive_control(
1010 'content_margin_bottom',
1011 array(
1012 'label' => __( 'Bottom space', 'auxin-elements' ),
1013 'type' => Controls_Manager::SLIDER,
1014 'range' => array(
1015 'px' => array(
1016 'min' => -200,
1017 'max' => 200
1018 )
1019 ),
1020 'selectors' => array(
1021 '{{WRAPPER}} .widget-content' => 'margin-bottom: {{SIZE}}{{UNIT}};'
1022 )
1023 )
1024 );
1025
1026 $this->end_controls_section();
1027
1028 /* button_style_section
1029 /*-------------------------------------*/
1030
1031 $this->start_controls_section(
1032 'button_style_section',
1033 array(
1034 'label' => __('Button', 'auxin-elements' ),
1035 'tab' => Controls_Manager::TAB_STYLE,
1036 'condition' => array(
1037 'display_button' => 'yes',
1038 )
1039 )
1040 );
1041
1042 $this->add_control(
1043 'btn_size',
1044 array(
1045 'label' => __('Size', 'auxin-elements'),
1046 'type' => Controls_Manager::SELECT,
1047 'default' => 'medium',
1048 'options' => array(
1049 'exlarge' => __('Exlarge', 'auxin-elements' ),
1050 'large' => __('Large' , 'auxin-elements' ),
1051 'medium' => __('Medium' , 'auxin-elements' ),
1052 'small' => __('Small' , 'auxin-elements' ),
1053 'tiny' => __('Tiny' , 'auxin-elements' )
1054 )
1055 )
1056 );
1057
1058 $this->add_control(
1059 'button_skin_heading',
1060 array(
1061 'label' => __( 'Button Skin', 'auxin-elements' ),
1062 'type' => Controls_Manager::HEADING,
1063 'separator' => 'before',
1064 )
1065 );
1066
1067 $this->add_control(
1068 'btn_color_name',
1069 array(
1070 'label' => __('Skin', 'auxin-elements'),
1071 'type' => 'aux-visual-select',
1072 'default' => 'black',
1073 'options' => auxin_get_famous_colors_list()
1074 )
1075 );
1076
1077 $this->start_controls_tabs( 'button_background_tab' );
1078
1079 $this->start_controls_tab(
1080 'button_bg_normal',
1081 array(
1082 'label' => __( 'Normal' , 'auxin-elements' )
1083 )
1084 );
1085
1086 $this->add_group_control(
1087 Group_Control_Background::get_type(),
1088 array(
1089 'name' => 'button_background',
1090 'label' => __( 'Background', 'auxin-elements' ),
1091 'types' => array( 'classic', 'gradient' ),
1092 'selector' => '{{WRAPPER}} .aux-button'
1093 )
1094 );
1095
1096 $this->add_group_control(
1097 Group_Control_Box_Shadow::get_type(),
1098 array(
1099 'name' => 'button_box_shadow',
1100 'selector' => '{{WRAPPER}} .aux-button'
1101 )
1102 );
1103
1104 $this->end_controls_tab();
1105
1106 $this->start_controls_tab(
1107 'button_bg_hover',
1108 array(
1109 'label' => __( 'Hover' , 'auxin-elements' )
1110 )
1111 );
1112
1113 $this->add_group_control(
1114 Group_Control_Background::get_type(),
1115 array(
1116 'name' => 'hover_button_background',
1117 'label' => __( 'Background', 'auxin-elements' ),
1118 'types' => array( 'classic', 'gradient' ),
1119 'selector' => '{{WRAPPER}} .aux-button .aux-overlay::after'
1120 )
1121 );
1122
1123 $this->add_group_control(
1124 Group_Control_Box_Shadow::get_type(),
1125 array(
1126 'name' => 'hover_button_box_shadow',
1127 'selector' => '{{WRAPPER}} .aux-button:hover'
1128 )
1129 );
1130
1131 $this->end_controls_tab();
1132
1133 $this->end_controls_tabs();
1134
1135 $this->add_control(
1136 'button_icon_heading',
1137 array(
1138 'label' => __( 'Button Icon', 'auxin-elements' ),
1139 'type' => Controls_Manager::HEADING,
1140 'separator' => 'before',
1141 // @TODO: un comment after some release
1142 // 'condition' => array(
1143 // 'aux_text_btn_icon!' => '',
1144 // )
1145 )
1146 );
1147
1148 $this->add_control(
1149 'btn_icon_align',
1150 array(
1151 'label' => __('Icon alignment', 'auxin-elements'),
1152 'type' => Controls_Manager::SELECT,
1153 'default' => 'default',
1154 'options' => array(
1155 'default' => __('Default' , 'auxin-elements' ),
1156 'left' => __('Left' , 'auxin-elements' ),
1157 'right' => __('Right' , 'auxin-elements' ),
1158 'over' => __('Over' , 'auxin-elements' ),
1159 'left-animate' => __('Animate from Left' , 'auxin-elements' ),
1160 'right-animate' => __('Animate from Right' , 'auxin-elements' )
1161 ),
1162 // @TODO: un comment after some release
1163 // 'condition' => array(
1164 // 'aux_text_btn_icon!' => '',
1165 // )
1166 )
1167 );
1168
1169 $this->add_responsive_control(
1170 'btn_icon_size',
1171 array(
1172 'label' => __( 'Icon Size', 'auxin-elements' ),
1173 'type' => Controls_Manager::SLIDER,
1174 'size_units' => array( 'px', '%' ),
1175 'range' => array(
1176 'px' => array(
1177 'min' => 10,
1178 'max' => 512,
1179 'step' => 2,
1180 ),
1181 '%' => array(
1182 'min' => 0,
1183 'max' => 100,
1184 ),
1185 ),
1186 'selectors' => array(
1187 '{{WRAPPER}} .aux-icon' => 'font-size: {{SIZE}}{{UNIT}};',
1188 ),
1189 // @TODO: un comment after some release
1190 // 'condition' => array(
1191 // 'aux_text_btn_icon!' => ''
1192 // )
1193 )
1194 );
1195
1196 $this->start_controls_tabs(
1197 'btn_icon_color',
1198 array(
1199 // @TODO: un comment after some release
1200 // 'condition' => array(
1201 // 'aux_text_btn_icon!' => '',
1202 // )
1203 )
1204 );
1205
1206 $this->start_controls_tab(
1207 'icon_color_normal',
1208 array(
1209 'label' => __( 'Normal' , 'auxin-elements' )
1210 )
1211 );
1212
1213 $this->add_control(
1214 'button_icon_color',
1215 array(
1216 'label' => __( 'Color', 'auxin-elements' ),
1217 'type' => Controls_Manager::COLOR,
1218 'selectors' => array(
1219 '{{WRAPPER}} .aux-icon' => 'color: {{VALUE}};',
1220 )
1221 )
1222 );
1223
1224 $this->end_controls_tab();
1225
1226 $this->start_controls_tab(
1227 'btn_icon_color_hover',
1228 array(
1229 'label' => __( 'Hover' , 'auxin-elements' )
1230 )
1231 );
1232
1233 $this->add_control(
1234 'hover_button_icon_color',
1235 array(
1236 'label' => __( 'Color', 'auxin-elements' ),
1237 'type' => Controls_Manager::COLOR,
1238 'selectors' => array(
1239 '{{WRAPPER}} .aux-button:hover .aux-icon' => 'color: {{VALUE}};',
1240 )
1241 )
1242 );
1243
1244 $this->end_controls_tab();
1245
1246 $this->end_controls_tabs();
1247
1248 $this->add_control(
1249 'button_text_heading',
1250 array(
1251 'label' => __( 'Button Text', 'auxin-elements' ),
1252 'type' => Controls_Manager::HEADING,
1253 'separator' => 'before',
1254 // @TODO: un comment after some release
1255 // 'condition' => array(
1256 // 'aux_text_btn_icon!' => '',
1257 // )
1258 )
1259 );
1260
1261 $this->start_controls_tabs( 'button_text' );
1262
1263 $this->start_controls_tab(
1264 'button_text_normal',
1265 array(
1266 'label' => __( 'Normal' , 'auxin-elements' )
1267 )
1268 );
1269
1270 $this->add_control(
1271 'btn_text_color',
1272 array(
1273 'label' => __( 'Color', 'auxin-elements' ),
1274 'type' => Controls_Manager::COLOR,
1275 'selectors' => array(
1276 '{{WRAPPER}} .aux-text' => 'color: {{VALUE}};',
1277 )
1278 )
1279 );
1280
1281 $this->add_group_control(
1282 Group_Control_Text_Shadow::get_type(),
1283 array(
1284 'name' => 'btn_text_shadow',
1285 'label' => __( 'Text Shadow', 'auxin-elements' ),
1286 'selector' => '{{WRAPPER}} .aux-button',
1287 )
1288 );
1289
1290 $this->add_group_control(
1291 Group_Control_Typography::get_type(),
1292 array(
1293 'name' => 'button_typography',
1294 'global' => [
1295 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
1296 ],
1297 'selector' => '{{WRAPPER}} .aux-text'
1298 )
1299 );
1300
1301 $this->end_controls_tab();
1302
1303 $this->start_controls_tab(
1304 'button_text_hover',
1305 array(
1306 'label' => __( 'Hover' , 'auxin-elements' )
1307 )
1308 );
1309
1310 $this->add_control(
1311 'hover_btn_text_color',
1312 array(
1313 'label' => __( 'Color', 'auxin-elements' ),
1314 'type' => Controls_Manager::COLOR,
1315 'selectors' => array(
1316 '{{WRAPPER}} .aux-button:hover .aux-text' => 'color: {{VALUE}};',
1317 )
1318 )
1319 );
1320
1321 $this->add_group_control(
1322 Group_Control_Text_Shadow::get_type(),
1323 array(
1324 'name' => 'hover_btn_text_shadow',
1325 'label' => __( 'Text Shadow', 'auxin-elements' ),
1326 'selector' => '{{WRAPPER}} .aux-button:hover',
1327 )
1328 );
1329
1330 $this->add_group_control(
1331 Group_Control_Typography::get_type(),
1332 array(
1333 'name' => 'hover_button_typography',
1334 'global' => [
1335 'default' => Global_Typography::TYPOGRAPHY_PRIMARY,
1336 ],
1337 'selector' => '{{WRAPPER}} .aux-text'
1338 )
1339 );
1340
1341 $this->end_controls_tab();
1342
1343 $this->end_controls_tabs();
1344
1345 $this->add_control(
1346 'button_wrapper_heading',
1347 array(
1348 'label' => __( 'Button Wrapper', 'auxin-elements' ),
1349 'type' => Controls_Manager::HEADING,
1350 'separator' => 'before',
1351 // @TODO: un comment after some release
1352 // 'condition' => array(
1353 // 'aux_text_btn_icon!' => '',
1354 // )
1355 )
1356 );
1357
1358 $this->add_responsive_control(
1359 'btn_icon_margin',
1360 array(
1361 'label' => __( 'Icon Margin', 'auxin-elements' ),
1362 'type' => Controls_Manager::DIMENSIONS,
1363 'size_units' => array( 'px', '%' ),
1364 'selectors' => array(
1365 '{{WRAPPER}} .aux-icon' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1366 )
1367 )
1368 );
1369
1370 $this->add_control(
1371 'btn_border',
1372 array(
1373 'label' => __('Shape Style','auxin-elements' ),
1374 'type' => 'aux-visual-select',
1375 'style_items' => 'max-width:30%;',
1376 'options' => array(
1377 'none' => array(
1378 'label' => __('Box', 'auxin-elements' ),
1379 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
1380 ),
1381 'round' => array(
1382 'label' => __('Round', 'auxin-elements' ),
1383 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
1384 ),
1385 'curve' => array(
1386 'label' => __('Curve', 'auxin-elements' ),
1387 'image' => AUXIN_URL . 'images/visual-select/button-rounded.svg'
1388 )
1389 ),
1390 'default' => 'round'
1391 )
1392 );
1393
1394 $this->add_control(
1395 'btn_style',
1396 array(
1397 'label' => __('Button Style','auxin-elements' ),
1398 'type' => 'aux-visual-select',
1399 'style_items' => 'max-width:30%;',
1400 'options' => array(
1401 'none' => array(
1402 'label' => __('Normal', 'auxin-elements' ),
1403 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
1404 ),
1405 '3d' => array(
1406 'label' => __('3D', 'auxin-elements' ),
1407 'image' => AUXIN_URL . 'images/visual-select/button-3d.svg'
1408 ),
1409 'outline' => array(
1410 'label' => __('Outline', 'auxin-elements' ),
1411 'image' => AUXIN_URL . 'images/visual-select/button-outline.svg'
1412 )
1413 ),
1414 'default' => 'outline'
1415 )
1416 );
1417
1418 $this->add_responsive_control(
1419 'button_padding',
1420 array(
1421 'label' => __( 'Padding', 'auxin-elements' ),
1422 'type' => Controls_Manager::DIMENSIONS,
1423 'size_units' => array( 'px', '%' ),
1424 'selectors' => array(
1425 '{{WRAPPER}} .aux-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1426 )
1427 )
1428 );
1429
1430 $this->end_controls_section();
1431
1432
1433 /* wrapper_style_section
1434 /*-------------------------------------*/
1435
1436 $this->start_controls_section(
1437 'wrapper_style_section',
1438 array(
1439 'label' => __( 'Wrapper', 'auxin-elements' ),
1440 'tab' => Controls_Manager::TAB_STYLE
1441 )
1442 );
1443
1444 $this->add_control(
1445 'overlay_color',
1446 array(
1447 'label' => __('Overlay', 'auxin-elements'),
1448 'type' => Controls_Manager::COLOR
1449 )
1450 );
1451
1452 $this->add_responsive_control(
1453 'text_align',
1454 array(
1455 'label' => __('Text Align','auxin-elements'),
1456 'type' => Controls_Manager::CHOOSE,
1457 'options' => array(
1458 'left' => array(
1459 'title' => __( 'Left', 'auxin-elements' ),
1460 'icon' => 'eicon-text-align-left',
1461 ),
1462 'center' => array(
1463 'title' => __( 'Center', 'auxin-elements' ),
1464 'icon' => 'eicon-text-align-center',
1465 ),
1466 'right' => array(
1467 'title' => __( 'Right', 'auxin-elements' ),
1468 'icon' => 'eicon-text-align-right',
1469 ),
1470 ),
1471 'default' => 'center',
1472 'toggle' => true,
1473 'selectors' => array(
1474 '{{WRAPPER}} .aux-widget-advanced-text' => 'text-align: {{VALUE}} !important;'
1475 )
1476 )
1477 );
1478
1479 $this->add_responsive_control(
1480 'wrapper_content_padding',
1481 array(
1482 'label' => __( 'Padding', 'auxin-elements' ),
1483 'type' => Controls_Manager::DIMENSIONS,
1484 'size_units' => array( 'px', '%' ),
1485 'selectors' => array(
1486 '{{WRAPPER}} .aux-widget-advanced-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1487 )
1488 )
1489 );
1490
1491 $this->add_responsive_control(
1492 'wrapper_content_border_radius',
1493 array(
1494 'label' => __( 'Border Radius', 'auxin-elements' ),
1495 'type' => Controls_Manager::DIMENSIONS,
1496 'size_units' => array( 'px', 'em', '%' ),
1497 'selectors' => array(
1498 '{{WRAPPER}} .aux-text-widget-overlay, {{WRAPPER}} .aux-widget-advanced-text' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1499 ),
1500 'allowed_dimensions' => 'all',
1501 'separator' => 'after'
1502 )
1503 );
1504
1505 $this->start_controls_tabs( 'wrapper_content_status' );
1506
1507 $this->start_controls_tab(
1508 'wrapper_content_status_normal',
1509 array(
1510 'label' => __( 'Normal' , 'auxin-elements' )
1511 )
1512 );
1513
1514 $this->add_group_control(
1515 Group_Control_Border::get_type(),
1516 array(
1517 'name' => 'wrapper_content_border_normal',
1518 'selector' => '{{WRAPPER}} .aux-widget-advanced-text',
1519 'separator' => 'none'
1520 )
1521 );
1522
1523 $this->add_group_control(
1524 Group_Control_Background::get_type(),
1525 array(
1526 'name' => 'wrapper_content_background_normal',
1527 'selector' => '{{WRAPPER}} .aux-widget-advanced-text',
1528 'separator' => 'none'
1529 )
1530 );
1531
1532 $this->end_controls_tab();
1533
1534
1535 $this->start_controls_tab(
1536 'wrapper_content_status_hover',
1537 array(
1538 'label' => __( 'Hover' , 'auxin-elements' )
1539 )
1540 );
1541
1542 $this->add_group_control(
1543 Group_Control_Border::get_type(),
1544 array(
1545 'name' => 'wrapper_content_border_hover',
1546 'selector' => '{{WRAPPER}} .aux-widget-advanced-text:hover',
1547 'separator' => 'none'
1548 )
1549 );
1550
1551 $this->add_group_control(
1552 Group_Control_Background::get_type(),
1553 array(
1554 'name' => 'wrapper_content_background_hover',
1555 'selector' => '{{WRAPPER}} .aux-widget-advanced-text:hover',
1556 'separator' => 'none'
1557 )
1558 );
1559
1560 $this->add_control(
1561 'wrapper_content_transition',
1562 array(
1563 'label' => __( 'Transition duration', 'auxin-elements' ),
1564 'type' => Controls_Manager::SLIDER,
1565 'range' => array(
1566 'px' => array(
1567 'min' => 0,
1568 'max' => 2000,
1569 'step' => 50
1570 )
1571 ),
1572 'selectors' => array(
1573 '{{WRAPPER}} .aux-widget-advanced-text' => 'transition-duration:{{SIZE}}ms;'
1574 )
1575 )
1576 );
1577
1578 $this->end_controls_tab();
1579
1580 $this->end_controls_tabs();
1581
1582 $this->end_controls_section();
1583
1584 /* footer_section
1585 /*-------------------------------------*/
1586
1587 $this->start_controls_section(
1588 'footer_section',
1589 array(
1590 'label' => __('Footer', 'auxin-elements' ),
1591 'tab' => Controls_Manager::TAB_STYLE
1592 )
1593 );
1594
1595 $this->add_control(
1596 'footer_shape',
1597 array(
1598 'label' => __('Footer Shape','auxin-elements'),
1599 'type' => 'aux-visual-select',
1600 'style_items' => 'max-width:30%;',
1601 'options' => array(
1602 'none' => array(
1603 'label' => __('None', 'auxin-elements'),
1604 'image' => AUXIN_URL . 'images/visual-select/text-normal.svg'
1605 ),
1606 'wave' => array(
1607 'label' => __('Wave', 'auxin-elements'),
1608 'image' => AUXIN_URL . 'images/visual-select/text-outline.svg'
1609 ),
1610 'tail' => array(
1611 'label' => __('Tail', 'auxin-elements'),
1612 'image' => AUXIN_URL . 'images/visual-select/text-boxed.svg'
1613 )
1614 ),
1615 'default' => 'none'
1616 )
1617 );
1618
1619 $this->add_control(
1620 'footer_shape_color',
1621 array(
1622 'label' => __('Color of button', 'auxin-elements'),
1623 'type' => Controls_Manager::COLOR,
1624 'condition' => array(
1625 'footer_shape' => array('tail', 'wave')
1626 )
1627 )
1628 );
1629
1630 $this->end_controls_section();
1631 }
1632
1633 /**
1634 * Render image box widget output on the frontend.
1635 *
1636 * Written in PHP and used to generate the final HTML.
1637 *
1638 * @since 1.0.0
1639 * @access protected
1640 */
1641 protected function render() {
1642
1643 $settings = $this->get_settings_for_display();
1644 $main_icon = '';
1645
1646 if( 'icon' == $settings['icon_or_image'] ){
1647 $main_icon = ! empty( $settings['aux_text_icon']['value'] ) ? $settings['aux_text_icon'] : ( ! empty( $settings['icon'] ) ? $settings['icon'] : '' ) ;
1648 }
1649
1650 $btn_icon_value = ! empty( $settings['aux_text_btn_icon']['value'] ) ? $settings['aux_text_btn_icon'] : ( ! empty( $settings['btn_icon'] ) ? $settings['btn_icon'] : '' ) ;
1651
1652 $args = array(
1653 'title' => $settings['title'],
1654 'subtitle' => $settings['subtitle'],
1655 'title_link' => auxin_get_array_value( $settings['title_link'], 'url' ),
1656 'content' => $settings['content'],
1657
1658 'display_button' => $settings['display_button'],
1659 'btn_label' => $settings['btn_label'],
1660 'btn_size' => $settings['btn_size'],
1661 'btn_border' => $settings['btn_border'],
1662 'btn_style' => $settings['btn_style'],
1663 'btn_icon' => $btn_icon_value,
1664 'btn_icon_align' => $settings['btn_icon_align'],
1665 'btn_color_name' => $settings['btn_color_name'],
1666 'btn_link' => auxin_get_array_value( $settings['btn_link'], 'url' ),
1667 'btn_nofollow' => auxin_get_array_value( $settings['btn_link'], 'nofollow' ),
1668 'btn_target' => auxin_get_array_value( $settings['btn_link'], 'is_external', false ) ? '_blank' : '_self',
1669
1670 'icon_or_image' => $settings['icon_or_image'],
1671 'icon' => $main_icon,
1672 'icon_color' => $settings['icon_color'] ?? '#ffffff',
1673 'icon_bg_color' => $settings['icon_bg_color'] ?? '',
1674 'icon_shape' => $settings['icon_shape'],
1675 'image' => auxin_get_array_value( $settings['image'], 'id' ),
1676 'size' => $settings['image_size'],
1677 'width' => auxin_get_array_value( $settings['image_custom_dimension'], 'width' ),
1678 'height' => auxin_get_array_value( $settings['image_custom_dimension'], 'height' ),
1679 'preloadable' => $settings['preloadable'],
1680 'preload_preview' => $settings['preload_preview'],
1681 'preload_bgcolor' => $settings['preload_bgcolor'],
1682 'image_size' => $settings['image_size'],
1683 'img_shape' => $settings['img_shape'],
1684 'image_position' => $settings['image_position'],
1685 'icon_svg_inline' => $settings['svg_inline'],
1686
1687 'text_align' => $settings['text_align'] ?? 'center',
1688 'text_align_resp' => empty( $settings['text_align_mobile'] ) ? '' : $settings['text_align_mobile'],
1689 'overlay_color' => $settings['overlay_color'],
1690
1691 'footer_shape' => $settings['footer_shape'],
1692 'footer_shape_color' => $settings['footer_shape_color']
1693 );
1694
1695 // get the shortcode base blog page
1696 echo auxin_widget_column_callback( $args );
1697 }
1698
1699 }
1700