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