PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.7.3
Shortcodes and extra features for Phlox theme v2.7.3
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 5 years ago accordion.php 6 years ago audio.php 6 years ago before-after.php 5 years ago button.php 6 years ago carousel-navigation.php 5 years ago contact-box.php 6 years ago contact-form.php 6 years ago custom-list.php 5 years ago divider.php 6 years ago gallery.php 5 years ago gmap.php 6 years ago heading-modern.php 6 years ago icon.php 6 years ago image.php 5 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 5 years ago recent-posts-land-style.php 5 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 5 years ago search.php 6 years ago staff.php 5 years ago svg.php 6 years ago tabs.php 6 years ago testimonial.php 6 years ago text.php 5 years ago touch-slider.php 6 years ago video.php 6 years ago
text.php
1675 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 $this->add_group_control(
545 Group_Control_Background::get_type(),
546 array(
547 'name' => 'icon_background_normal',
548 'label' => __( 'Background', 'auxin-elements' ),
549 'types' => array( 'gradient' ),
550 'selector' => '{{WRAPPER}} .aux-ico-box'
551 )
552 );
553
554
555 $this->end_controls_tab();
556
557 $this->start_controls_tab(
558 'icon_style_hover',
559 array(
560 'label' => __( 'Hover' , 'auxin-elements' )
561 )
562 );
563
564
565 $this->add_group_control(
566 Group_Control_Box_Shadow::get_type(),
567 array(
568 'name' => 'header_box_shadow_hover',
569 'selector' => '{{WRAPPER}}:hover .aux-ico-box'
570 )
571 );
572
573 $this->add_control(
574 'icon_color_hover',
575 array(
576 'label' => __('Icon color', 'auxin-elements'),
577 'type' => Controls_Manager::COLOR,
578 'default' => '',
579 'selectors' => array(
580 '{{WRAPPER}}:hover .aux-ico-box' => 'color:{{VALUE}} !important;',
581 ),
582 'condition' => array(
583 'icon_or_image' => ['icon']
584 )
585 )
586 );
587
588 $this->add_control(
589 'icon_bg_color_hover',
590 array(
591 'label' => __('Icon background color','auxin-elements' ),
592 'type' => Controls_Manager::COLOR,
593 'default' => '',
594 'selectors' => array(
595 '{{WRAPPER}}:hover .aux-ico-box' => 'background-color:{{VALUE}} !important;',
596 ),
597 'condition' => array(
598 'icon_or_image' => ['icon']
599 )
600 )
601 );
602
603 $this->add_group_control(
604 Group_Control_Background::get_type(),
605 array(
606 'name' => 'icon_background_hover',
607 'label' => __( 'Background', 'auxin-elements' ),
608 'types' => array( 'gradient' ),
609 'selector' => '{{WRAPPER}}:hover .aux-ico-box'
610 )
611 );
612
613 $this->add_control(
614 'icon_transition',
615 array(
616 'label' => __( 'Transition duration', 'auxin-elements' ),
617 'type' => Controls_Manager::SLIDER,
618 'range' => array(
619 'px' => array(
620 'min' => 0,
621 'max' => 2000,
622 'step' => 50
623 )
624 ),
625 'selectors' => array(
626 '{{WRAPPER}} .aux-ico-box' => 'transition:all {{SIZE}}ms ease;'
627 ),
628 'condition' => array(
629 'icon_or_image' => ['icon']
630 )
631 )
632 );
633
634 $this->end_controls_tab();
635
636 $this->end_controls_tabs();
637
638 $this->add_control(
639 'img_shape',
640 array(
641 'label' => __('Image shape','auxin-elements'),
642 'type' => 'aux-visual-select',
643 'options' => array(
644 'default' => array(
645 'label' => __('Default Aspect', 'auxin-elements'),
646 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
647 ),
648 'circle' => array(
649 'label' => __('Circle', 'auxin-elements'),
650 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
651 ),
652 'semi-circle' => array(
653 'label' => __('Semi-circle', 'auxin-elements'),
654 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
655 ),
656 'round-rect' => array(
657 'label' => __('Round Rectangle', 'auxin-elements'),
658 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
659 ),
660 'rect' => array(
661 'label' => __('Rectangle', 'auxin-elements'),
662 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
663 ),
664 ),
665 'default' => 'default',
666 'condition' => array(
667 'icon_or_image' => array('image')
668 )
669 )
670 );
671
672 $this->end_controls_section();
673
674 /* title_style_section
675 /*-------------------------------------*/
676
677 $this->start_controls_section(
678 'title_style_section',
679 array(
680 'label' => __( 'Title', 'auxin-elements' ),
681 'tab' => Controls_Manager::TAB_STYLE,
682 'condition' => array(
683 'title!' => ''
684 )
685 )
686 );
687
688 $this->start_controls_tabs( 'title_colors' );
689
690 $this->start_controls_tab(
691 'title_color_normal',
692 array(
693 'label' => __( 'Normal' , 'auxin-elements' )
694 )
695 );
696
697 $this->add_control(
698 'title_color',
699 array(
700 'label' => __( 'Color', 'auxin-elements' ),
701 'type' => Controls_Manager::COLOR,
702 'selectors' => array(
703 '{{WRAPPER}} .col-title a, {{WRAPPER}} .col-title' => 'color: {{VALUE}} !important;',
704 )
705 )
706 );
707
708 $this->end_controls_tab();
709
710 $this->start_controls_tab(
711 'title_color_hover',
712 array(
713 'label' => __( 'Hover' , 'auxin-elements' )
714 )
715 );
716
717 $this->add_control(
718 'title_hover_color',
719 array(
720 'label' => __( 'Color', 'auxin-elements' ),
721 'type' => Controls_Manager::COLOR,
722 'selectors' => array(
723 '{{WRAPPER}}:hover .col-title a, {{WRAPPER}}:hover .col-title' => 'color: {{VALUE}} !important;'
724 )
725 )
726 );
727
728 $this->end_controls_tab();
729
730 $this->end_controls_tabs();
731
732
733 $this->add_group_control(
734 Group_Control_Typography::get_type(),
735 array(
736 'name' => 'title_typography',
737 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
738 'selector' => '{{WRAPPER}} .col-title, {{WRAPPER}} .col-title a'
739 )
740 );
741
742 $this->add_group_control(
743 Group_Control_Text_Shadow::get_type(),
744 array(
745 'name' => 'title_shadow',
746 'label' => __( 'Text Shadow', 'auxin-elements' ),
747 'selector' => '{{WRAPPER}} .col-title'
748 )
749 );
750
751 $this->add_responsive_control(
752 'title_margin_bottom',
753 array(
754 'label' => __( 'Bottom space', 'auxin-elements' ),
755 'type' => Controls_Manager::SLIDER,
756 'range' => array(
757 'px' => array(
758 'min' => -200,
759 'max' => 200
760 )
761 ),
762 'selectors' => array(
763 '{{WRAPPER}} .col-title' => 'margin-bottom: {{SIZE}}{{UNIT}};'
764 )
765 )
766 );
767
768 $this->end_controls_section();
769
770 /* subtitle_style_section
771 /*-------------------------------------*/
772
773 $this->start_controls_section(
774 'subtitle_style_section',
775 array(
776 'label' => __( 'Subtitle', 'auxin-elements' ),
777 'tab' => Controls_Manager::TAB_STYLE,
778 'condition' => array(
779 'subtitle!' => ''
780 )
781 )
782 );
783
784 $this->start_controls_tabs( 'subtitle_colors' );
785
786 $this->start_controls_tab(
787 'subtitle_color_normal',
788 array(
789 'label' => __( 'Normal' , 'auxin-elements' )
790 )
791 );
792
793 $this->add_control(
794 'subtitle_color',
795 array(
796 'label' => __( 'Color', 'auxin-elements' ),
797 'type' => Controls_Manager::COLOR,
798 'selectors' => array(
799 '{{WRAPPER}} .col-subtitle' => 'color: {{VALUE}} !important;',
800 )
801 )
802 );
803
804 $this->end_controls_tab();
805
806 $this->start_controls_tab(
807 'subtitle_color_hover',
808 array(
809 'label' => __( 'Hover' , 'auxin-elements' )
810 )
811 );
812
813 $this->add_control(
814 'subtitle_hover_color',
815 array(
816 'label' => __( 'Color', 'auxin-elements' ),
817 'type' => Controls_Manager::COLOR,
818 'selectors' => array(
819 '{{WRAPPER}}:hover .col-subtitle' => 'color: {{VALUE}} !important;'
820 )
821 )
822 );
823
824 $this->end_controls_tab();
825
826 $this->end_controls_tabs();
827
828
829 $this->add_group_control(
830 Group_Control_Typography::get_type(),
831 array(
832 'name' => 'subtitle_typography',
833 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
834 'selector' => '{{WRAPPER}} .col-subtitle'
835 )
836 );
837
838 $this->add_group_control(
839 Group_Control_Text_Shadow::get_type(),
840 array(
841 'name' => 'subtitle_shadow',
842 'label' => __( 'Text Shadow', 'auxin-elements' ),
843 'selector' => '{{WRAPPER}} .col-subtitle'
844 )
845 );
846
847 $this->add_responsive_control(
848 'subtitle_margin_top',
849 array(
850 'label' => __( 'Top space', 'auxin-elements' ),
851 'type' => Controls_Manager::SLIDER,
852 'range' => array(
853 'px' => array(
854 'min' => -200,
855 'max' => 200
856 )
857 ),
858 'selectors' => array(
859 '{{WRAPPER}} .col-subtitle' => 'margin-top: {{SIZE}}{{UNIT}};'
860 )
861 )
862 );
863
864 $this->add_responsive_control(
865 'subtitle_margin_bottom',
866 array(
867 'label' => __( 'Bottom space', 'auxin-elements' ),
868 'type' => Controls_Manager::SLIDER,
869 'range' => array(
870 'px' => array(
871 'min' => -200,
872 'max' => 200
873 )
874 ),
875 'selectors' => array(
876 '{{WRAPPER}} .col-subtitle' => 'margin-bottom: {{SIZE}}{{UNIT}};'
877 )
878 )
879 );
880
881 $this->end_controls_section();
882
883 /* content_style_section
884 /*-------------------------------------*/
885
886 $this->start_controls_section(
887 'content_style_section',
888 array(
889 'label' => __( 'Content', 'auxin-elements' ),
890 'tab' => Controls_Manager::TAB_STYLE
891 )
892 );
893
894
895 $this->start_controls_tabs( 'content_colors' );
896
897 $this->start_controls_tab(
898 'content_color_normal',
899 array(
900 'label' => __( 'Normal' , 'auxin-elements' )
901 )
902 );
903
904 $this->add_control(
905 'content_color',
906 array(
907 'label' => __( 'Color', 'auxin-elements' ),
908 'type' => Controls_Manager::COLOR,
909 'selectors' => array(
910 '{{WRAPPER}} .widget-content' => 'color:{{VALUE}} !important;',
911 )
912 )
913 );
914
915 $this->end_controls_tab();
916
917 $this->start_controls_tab(
918 'content_color_hover',
919 array(
920 'label' => __( 'Hover' , 'auxin-elements' )
921 )
922 );
923
924 $this->add_control(
925 'content_hover_color',
926 array(
927 'label' => __( 'Color', 'auxin-elements' ),
928 'type' => Controls_Manager::COLOR,
929 'selectors' => array(
930 '{{WRAPPER}}:hover .widget-content' => 'color:{{VALUE}} !important;'
931 )
932 )
933 );
934
935 $this->end_controls_tab();
936
937 $this->end_controls_tabs();
938
939
940 $this->add_group_control(
941 Group_Control_Typography::get_type(),
942 array(
943 'name' => 'content_typography',
944 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
945 'selector' => '{{WRAPPER}} .widget-content'
946 )
947 );
948
949 $this->add_group_control(
950 Group_Control_Text_Shadow::get_type(),
951 array(
952 'name' => 'content_shadow',
953 'label' => __( 'Text Shadow', 'auxin-elements' ),
954 'selector' => '{{WRAPPER}} .widget-content'
955 )
956 );
957
958 $this->add_responsive_control(
959 'content_padding',
960 array(
961 'label' => __( 'Padding', 'auxin-elements' ),
962 'type' => Controls_Manager::DIMENSIONS,
963 'size_units' => array( 'px', '%' ),
964 'selectors' => array(
965 '{{WRAPPER}} .aux-widget-text .aux-text-widget-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
966 )
967 )
968 );
969
970 $this->add_responsive_control(
971 'content_margin_top',
972 array(
973 'label' => __( 'Top space', 'auxin-elements' ),
974 'type' => Controls_Manager::SLIDER,
975 'range' => array(
976 'px' => array(
977 'min' => -200,
978 'max' => 200
979 )
980 ),
981 'selectors' => array(
982 '{{WRAPPER}} .widget-content' => 'margin-top: {{SIZE}}{{UNIT}};'
983 )
984 )
985 );
986
987 $this->add_responsive_control(
988 'content_margin_bottom',
989 array(
990 'label' => __( 'Bottom space', 'auxin-elements' ),
991 'type' => Controls_Manager::SLIDER,
992 'range' => array(
993 'px' => array(
994 'min' => -200,
995 'max' => 200
996 )
997 ),
998 'selectors' => array(
999 '{{WRAPPER}} .widget-content' => 'margin-bottom: {{SIZE}}{{UNIT}};'
1000 )
1001 )
1002 );
1003
1004 $this->end_controls_section();
1005
1006 /* button_style_section
1007 /*-------------------------------------*/
1008
1009 $this->start_controls_section(
1010 'button_style_section',
1011 array(
1012 'label' => __('Button', 'auxin-elements' ),
1013 'tab' => Controls_Manager::TAB_STYLE,
1014 'condition' => array(
1015 'display_button' => 'yes',
1016 )
1017 )
1018 );
1019
1020 $this->add_control(
1021 'btn_size',
1022 array(
1023 'label' => __('Size', 'auxin-elements'),
1024 'type' => Controls_Manager::SELECT,
1025 'default' => 'medium',
1026 'options' => array(
1027 'exlarge' => __('Exlarge', 'auxin-elements' ),
1028 'large' => __('Large' , 'auxin-elements' ),
1029 'medium' => __('Medium' , 'auxin-elements' ),
1030 'small' => __('Small' , 'auxin-elements' ),
1031 'tiny' => __('Tiny' , 'auxin-elements' )
1032 )
1033 )
1034 );
1035
1036 $this->add_control(
1037 'button_skin_heading',
1038 array(
1039 'label' => __( 'Button Skin', 'auxin-elements' ),
1040 'type' => Controls_Manager::HEADING,
1041 'separator' => 'before',
1042 )
1043 );
1044
1045 $this->add_control(
1046 'btn_color_name',
1047 array(
1048 'label' => __('Skin', 'auxin-elements'),
1049 'type' => 'aux-visual-select',
1050 'default' => 'black',
1051 'options' => auxin_get_famous_colors_list()
1052 )
1053 );
1054
1055 $this->start_controls_tabs( 'button_background_tab' );
1056
1057 $this->start_controls_tab(
1058 'button_bg_normal',
1059 array(
1060 'label' => __( 'Normal' , 'auxin-elements' )
1061 )
1062 );
1063
1064 $this->add_group_control(
1065 Group_Control_Background::get_type(),
1066 array(
1067 'name' => 'button_background',
1068 'label' => __( 'Background', 'auxin-elements' ),
1069 'types' => array( 'classic', 'gradient' ),
1070 'selector' => '{{WRAPPER}} .aux-button'
1071 )
1072 );
1073
1074 $this->add_group_control(
1075 Group_Control_Box_Shadow::get_type(),
1076 array(
1077 'name' => 'button_box_shadow',
1078 'selector' => '{{WRAPPER}} .aux-button'
1079 )
1080 );
1081
1082 $this->end_controls_tab();
1083
1084 $this->start_controls_tab(
1085 'button_bg_hover',
1086 array(
1087 'label' => __( 'Hover' , 'auxin-elements' )
1088 )
1089 );
1090
1091 $this->add_group_control(
1092 Group_Control_Background::get_type(),
1093 array(
1094 'name' => 'hover_button_background',
1095 'label' => __( 'Background', 'auxin-elements' ),
1096 'types' => array( 'classic', 'gradient' ),
1097 'selector' => '{{WRAPPER}} .aux-button .aux-overlay::after'
1098 )
1099 );
1100
1101 $this->add_group_control(
1102 Group_Control_Box_Shadow::get_type(),
1103 array(
1104 'name' => 'hover_button_box_shadow',
1105 'selector' => '{{WRAPPER}} .aux-button:hover'
1106 )
1107 );
1108
1109 $this->end_controls_tab();
1110
1111 $this->end_controls_tabs();
1112
1113 $this->add_control(
1114 'button_icon_heading',
1115 array(
1116 'label' => __( 'Button Icon', 'auxin-elements' ),
1117 'type' => Controls_Manager::HEADING,
1118 'separator' => 'before',
1119 // @TODO: un comment after some release
1120 // 'condition' => array(
1121 // 'aux_text_btn_icon!' => '',
1122 // )
1123 )
1124 );
1125
1126 $this->add_control(
1127 'btn_icon_align',
1128 array(
1129 'label' => __('Icon alignment', 'auxin-elements'),
1130 'type' => Controls_Manager::SELECT,
1131 'default' => 'default',
1132 'options' => array(
1133 'default' => __('Default' , 'auxin-elements' ),
1134 'left' => __('Left' , 'auxin-elements' ),
1135 'right' => __('Right' , 'auxin-elements' ),
1136 'over' => __('Over' , 'auxin-elements' ),
1137 'left-animate' => __('Animate from Left' , 'auxin-elements' ),
1138 'right-animate' => __('Animate from Right' , 'auxin-elements' )
1139 ),
1140 // @TODO: un comment after some release
1141 // 'condition' => array(
1142 // 'aux_text_btn_icon!' => '',
1143 // )
1144 )
1145 );
1146
1147 $this->add_responsive_control(
1148 'btn_icon_size',
1149 array(
1150 'label' => __( 'Icon Size', 'auxin-elements' ),
1151 'type' => Controls_Manager::SLIDER,
1152 'size_units' => array( 'px', '%' ),
1153 'range' => array(
1154 'px' => array(
1155 'min' => 10,
1156 'max' => 512,
1157 'step' => 2,
1158 ),
1159 '%' => array(
1160 'min' => 0,
1161 'max' => 100,
1162 ),
1163 ),
1164 'selectors' => array(
1165 '{{WRAPPER}} .aux-icon' => 'font-size: {{SIZE}}{{UNIT}};',
1166 ),
1167 // @TODO: un comment after some release
1168 // 'condition' => array(
1169 // 'aux_text_btn_icon!' => ''
1170 // )
1171 )
1172 );
1173
1174 $this->start_controls_tabs(
1175 'btn_icon_color',
1176 array(
1177 // @TODO: un comment after some release
1178 // 'condition' => array(
1179 // 'aux_text_btn_icon!' => '',
1180 // )
1181 )
1182 );
1183
1184 $this->start_controls_tab(
1185 'icon_color_normal',
1186 array(
1187 'label' => __( 'Normal' , 'auxin-elements' )
1188 )
1189 );
1190
1191 $this->add_control(
1192 'button_icon_color',
1193 array(
1194 'label' => __( 'Color', 'auxin-elements' ),
1195 'type' => Controls_Manager::COLOR,
1196 'selectors' => array(
1197 '{{WRAPPER}} .aux-icon' => 'color: {{VALUE}};',
1198 )
1199 )
1200 );
1201
1202 $this->end_controls_tab();
1203
1204 $this->start_controls_tab(
1205 'btn_icon_color_hover',
1206 array(
1207 'label' => __( 'Hover' , 'auxin-elements' )
1208 )
1209 );
1210
1211 $this->add_control(
1212 'hover_button_icon_color',
1213 array(
1214 'label' => __( 'Color', 'auxin-elements' ),
1215 'type' => Controls_Manager::COLOR,
1216 'selectors' => array(
1217 '{{WRAPPER}} .aux-button:hover .aux-icon' => 'color: {{VALUE}};',
1218 )
1219 )
1220 );
1221
1222 $this->end_controls_tab();
1223
1224 $this->end_controls_tabs();
1225
1226 $this->add_control(
1227 'button_text_heading',
1228 array(
1229 'label' => __( 'Button Text', 'auxin-elements' ),
1230 'type' => Controls_Manager::HEADING,
1231 'separator' => 'before',
1232 // @TODO: un comment after some release
1233 // 'condition' => array(
1234 // 'aux_text_btn_icon!' => '',
1235 // )
1236 )
1237 );
1238
1239 $this->start_controls_tabs( 'button_text' );
1240
1241 $this->start_controls_tab(
1242 'button_text_normal',
1243 array(
1244 'label' => __( 'Normal' , 'auxin-elements' )
1245 )
1246 );
1247
1248 $this->add_control(
1249 'btn_text_color',
1250 array(
1251 'label' => __( 'Color', 'auxin-elements' ),
1252 'type' => Controls_Manager::COLOR,
1253 'selectors' => array(
1254 '{{WRAPPER}} .aux-text' => 'color: {{VALUE}};',
1255 )
1256 )
1257 );
1258
1259 $this->add_group_control(
1260 Group_Control_Text_Shadow::get_type(),
1261 array(
1262 'name' => 'btn_text_shadow',
1263 'label' => __( 'Text Shadow', 'auxin-elements' ),
1264 'selector' => '{{WRAPPER}} .aux-button',
1265 )
1266 );
1267
1268 $this->add_group_control(
1269 Group_Control_Typography::get_type(),
1270 array(
1271 'name' => 'button_typography',
1272 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1273 'selector' => '{{WRAPPER}} .aux-text'
1274 )
1275 );
1276
1277 $this->end_controls_tab();
1278
1279 $this->start_controls_tab(
1280 'button_text_hover',
1281 array(
1282 'label' => __( 'Hover' , 'auxin-elements' )
1283 )
1284 );
1285
1286 $this->add_control(
1287 'hover_btn_text_color',
1288 array(
1289 'label' => __( 'Color', 'auxin-elements' ),
1290 'type' => Controls_Manager::COLOR,
1291 'selectors' => array(
1292 '{{WRAPPER}} .aux-button:hover .aux-text' => 'color: {{VALUE}};',
1293 )
1294 )
1295 );
1296
1297 $this->add_group_control(
1298 Group_Control_Text_Shadow::get_type(),
1299 array(
1300 'name' => 'hover_btn_text_shadow',
1301 'label' => __( 'Text Shadow', 'auxin-elements' ),
1302 'selector' => '{{WRAPPER}} .aux-button:hover',
1303 )
1304 );
1305
1306 $this->add_group_control(
1307 Group_Control_Typography::get_type(),
1308 array(
1309 'name' => 'hover_button_typography',
1310 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
1311 'selector' => '{{WRAPPER}} .aux-text'
1312 )
1313 );
1314
1315 $this->end_controls_tab();
1316
1317 $this->end_controls_tabs();
1318
1319 $this->add_control(
1320 'button_wrapper_heading',
1321 array(
1322 'label' => __( 'Button Wrapper', 'auxin-elements' ),
1323 'type' => Controls_Manager::HEADING,
1324 'separator' => 'before',
1325 // @TODO: un comment after some release
1326 // 'condition' => array(
1327 // 'aux_text_btn_icon!' => '',
1328 // )
1329 )
1330 );
1331
1332 $this->add_responsive_control(
1333 'btn_icon_margin',
1334 array(
1335 'label' => __( 'Icon Margin', 'auxin-elements' ),
1336 'type' => Controls_Manager::DIMENSIONS,
1337 'size_units' => array( 'px', '%' ),
1338 'selectors' => array(
1339 '{{WRAPPER}} .aux-icon' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1340 )
1341 )
1342 );
1343
1344 $this->add_control(
1345 'btn_border',
1346 array(
1347 'label' => __('Shape Style','auxin-elements' ),
1348 'type' => 'aux-visual-select',
1349 'style_items' => 'max-width:30%;',
1350 'options' => array(
1351 'none' => array(
1352 'label' => __('Box', 'auxin-elements' ),
1353 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
1354 ),
1355 'round' => array(
1356 'label' => __('Round', 'auxin-elements' ),
1357 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
1358 ),
1359 'curve' => array(
1360 'label' => __('Curve', 'auxin-elements' ),
1361 'image' => AUXIN_URL . 'images/visual-select/button-rounded.svg'
1362 )
1363 ),
1364 'default' => 'round'
1365 )
1366 );
1367
1368 $this->add_control(
1369 'btn_style',
1370 array(
1371 'label' => __('Button Style','auxin-elements' ),
1372 'type' => 'aux-visual-select',
1373 'style_items' => 'max-width:30%;',
1374 'options' => array(
1375 'none' => array(
1376 'label' => __('Normal', 'auxin-elements' ),
1377 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
1378 ),
1379 '3d' => array(
1380 'label' => __('3D', 'auxin-elements' ),
1381 'image' => AUXIN_URL . 'images/visual-select/button-3d.svg'
1382 ),
1383 'outline' => array(
1384 'label' => __('Outline', 'auxin-elements' ),
1385 'image' => AUXIN_URL . 'images/visual-select/button-outline.svg'
1386 )
1387 ),
1388 'default' => 'outline'
1389 )
1390 );
1391
1392 $this->add_responsive_control(
1393 'button_padding',
1394 array(
1395 'label' => __( 'Padding', 'auxin-elements' ),
1396 'type' => Controls_Manager::DIMENSIONS,
1397 'size_units' => array( 'px', '%' ),
1398 'selectors' => array(
1399 '{{WRAPPER}} .aux-button' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1400 )
1401 )
1402 );
1403
1404 $this->end_controls_section();
1405
1406
1407 /* wrapper_style_section
1408 /*-------------------------------------*/
1409
1410 $this->start_controls_section(
1411 'wrapper_style_section',
1412 array(
1413 'label' => __( 'Wrapper', 'auxin-elements' ),
1414 'tab' => Controls_Manager::TAB_STYLE
1415 )
1416 );
1417
1418 $this->add_control(
1419 'overlay_color',
1420 array(
1421 'label' => __('Overlay', 'auxin-elements'),
1422 'type' => Controls_Manager::COLOR
1423 )
1424 );
1425
1426 $this->add_responsive_control(
1427 'text_align',
1428 array(
1429 'label' => __('Text Align','auxin-elements'),
1430 'type' => Controls_Manager::CHOOSE,
1431 'options' => array(
1432 'left' => array(
1433 'title' => __( 'Left', 'auxin-elements' ),
1434 'icon' => 'fa fa-align-left',
1435 ),
1436 'center' => array(
1437 'title' => __( 'Center', 'auxin-elements' ),
1438 'icon' => 'fa fa-align-center',
1439 ),
1440 'right' => array(
1441 'title' => __( 'Right', 'auxin-elements' ),
1442 'icon' => 'fa fa-align-right',
1443 ),
1444 ),
1445 'default' => 'center',
1446 'toggle' => true,
1447 'selectors' => array(
1448 '{{WRAPPER}} .aux-widget-advanced-text' => 'text-align: {{VALUE}} !important;'
1449 )
1450 )
1451 );
1452
1453 $this->add_responsive_control(
1454 'wrapper_content_padding',
1455 array(
1456 'label' => __( 'Padding', 'auxin-elements' ),
1457 'type' => Controls_Manager::DIMENSIONS,
1458 'size_units' => array( 'px', '%' ),
1459 'selectors' => array(
1460 '{{WRAPPER}} .aux-widget-advanced-text' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1461 )
1462 )
1463 );
1464
1465 $this->add_responsive_control(
1466 'wrapper_content_border_radius',
1467 array(
1468 'label' => __( 'Border Radius', 'auxin-elements' ),
1469 'type' => Controls_Manager::DIMENSIONS,
1470 'size_units' => array( 'px', 'em', '%' ),
1471 'selectors' => array(
1472 '{{WRAPPER}} .aux-text-widget-overlay, {{WRAPPER}} .aux-widget-advanced-text' => 'border-radius:{{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};'
1473 ),
1474 'allowed_dimensions' => 'all',
1475 'separator' => 'after'
1476 )
1477 );
1478
1479 $this->start_controls_tabs( 'wrapper_content_status' );
1480
1481 $this->start_controls_tab(
1482 'wrapper_content_status_normal',
1483 array(
1484 'label' => __( 'Normal' , 'auxin-elements' )
1485 )
1486 );
1487
1488 $this->add_group_control(
1489 Group_Control_Border::get_type(),
1490 array(
1491 'name' => 'wrapper_content_border_normal',
1492 'selector' => '{{WRAPPER}} .aux-widget-advanced-text',
1493 'separator' => 'none'
1494 )
1495 );
1496
1497 $this->add_group_control(
1498 Group_Control_Background::get_type(),
1499 array(
1500 'name' => 'wrapper_content_background_normal',
1501 'selector' => '{{WRAPPER}} .aux-widget-advanced-text',
1502 'separator' => 'none'
1503 )
1504 );
1505
1506 $this->end_controls_tab();
1507
1508
1509 $this->start_controls_tab(
1510 'wrapper_content_status_hover',
1511 array(
1512 'label' => __( 'Hover' , 'auxin-elements' )
1513 )
1514 );
1515
1516 $this->add_group_control(
1517 Group_Control_Border::get_type(),
1518 array(
1519 'name' => 'wrapper_content_border_hover',
1520 'selector' => '{{WRAPPER}} .aux-widget-advanced-text:hover',
1521 'separator' => 'none'
1522 )
1523 );
1524
1525 $this->add_group_control(
1526 Group_Control_Background::get_type(),
1527 array(
1528 'name' => 'wrapper_content_background_hover',
1529 'selector' => '{{WRAPPER}} .aux-widget-advanced-text:hover',
1530 'separator' => 'none'
1531 )
1532 );
1533
1534 $this->add_control(
1535 'wrapper_content_transition',
1536 array(
1537 'label' => __( 'Transition duration', 'auxin-elements' ),
1538 'type' => Controls_Manager::SLIDER,
1539 'range' => array(
1540 'px' => array(
1541 'min' => 0,
1542 'max' => 2000,
1543 'step' => 50
1544 )
1545 ),
1546 'selectors' => array(
1547 '{{WRAPPER}} .aux-widget-advanced-text' => 'transition-duration:{{SIZE}}ms;'
1548 )
1549 )
1550 );
1551
1552 $this->end_controls_tab();
1553
1554 $this->end_controls_tabs();
1555
1556 $this->end_controls_section();
1557
1558 /* footer_section
1559 /*-------------------------------------*/
1560
1561 $this->start_controls_section(
1562 'footer_section',
1563 array(
1564 'label' => __('Footer', 'auxin-elements' ),
1565 'tab' => Controls_Manager::TAB_STYLE
1566 )
1567 );
1568
1569 $this->add_control(
1570 'footer_shape',
1571 array(
1572 'label' => __('Footer Shape','auxin-elements'),
1573 'type' => 'aux-visual-select',
1574 'style_items' => 'max-width:30%;',
1575 'options' => array(
1576 'none' => array(
1577 'label' => __('None', 'auxin-elements'),
1578 'image' => AUXIN_URL . 'images/visual-select/text-normal.svg'
1579 ),
1580 'wave' => array(
1581 'label' => __('Wave', 'auxin-elements'),
1582 'image' => AUXIN_URL . 'images/visual-select/text-outline.svg'
1583 ),
1584 'tail' => array(
1585 'label' => __('Tail', 'auxin-elements'),
1586 'image' => AUXIN_URL . 'images/visual-select/text-boxed.svg'
1587 )
1588 ),
1589 'default' => 'none'
1590 )
1591 );
1592
1593 $this->add_control(
1594 'footer_shape_color',
1595 array(
1596 'label' => __('Color of button', 'auxin-elements'),
1597 'type' => Controls_Manager::COLOR,
1598 'condition' => array(
1599 'footer_shape' => array('tail', 'wave')
1600 )
1601 )
1602 );
1603
1604 $this->end_controls_section();
1605 }
1606
1607 /**
1608 * Render image box widget output on the frontend.
1609 *
1610 * Written in PHP and used to generate the final HTML.
1611 *
1612 * @since 1.0.0
1613 * @access protected
1614 */
1615 protected function render() {
1616
1617 $settings = $this->get_settings_for_display();
1618 $main_icon = '';
1619
1620 if( 'icon' == $settings['icon_or_image'] ){
1621 $main_icon = ! empty( $settings['aux_text_icon']['value'] ) ? $settings['aux_text_icon']['value'] : ( ! empty( $settings['icon'] ) ? $settings['icon'] : '' ) ;
1622 }
1623
1624 $btn_icon_value = ! empty( $settings['aux_text_btn_icon']['value'] ) ? $settings['aux_text_btn_icon']['value'] : ( ! empty( $settings['btn_icon'] ) ? $settings['btn_icon'] : '' ) ;
1625
1626 $args = array(
1627 'title' => $settings['title'],
1628 'subtitle' => $settings['subtitle'],
1629 'title_link' => auxin_get_array_value( $settings['title_link'], 'url' ),
1630 'content' => $settings['content'],
1631
1632 'display_button' => $settings['display_button'],
1633 'btn_label' => $settings['btn_label'],
1634 'btn_size' => $settings['btn_size'],
1635 'btn_border' => $settings['btn_border'],
1636 'btn_style' => $settings['btn_style'],
1637 'btn_icon' => $btn_icon_value,
1638 'btn_icon_align' => $settings['btn_icon_align'],
1639 'btn_color_name' => $settings['btn_color_name'],
1640 'btn_link' => auxin_get_array_value( $settings['btn_link'], 'url' ),
1641 'btn_nofollow' => auxin_get_array_value( $settings['btn_link'], 'nofollow' ),
1642 'btn_target' => auxin_get_array_value( $settings['btn_link'], 'is_external', false ) ? '_blank' : '_self',
1643
1644 'icon_or_image' => $settings['icon_or_image'],
1645 'icon' => $main_icon,
1646 'icon_color' => $settings['icon_color'],
1647 'icon_bg_color' => $settings['icon_bg_color'],
1648 'icon_shape' => $settings['icon_shape'],
1649 'image' => auxin_get_array_value( $settings['image'], 'id' ),
1650 'size' => $settings['image_size'],
1651 'width' => auxin_get_array_value( $settings['image_custom_dimension'], 'width' ),
1652 'height' => auxin_get_array_value( $settings['image_custom_dimension'], 'height' ),
1653 'preloadable' => $settings['preloadable'],
1654 'preload_preview' => $settings['preload_preview'],
1655 'preload_bgcolor' => $settings['preload_bgcolor'],
1656 'image_size' => $settings['image_size'],
1657 'img_shape' => $settings['img_shape'],
1658 'icon_border_width' => '',
1659 'image_position' => $settings['image_position'],
1660 'icon_svg_inline' => $settings['svg_inline'],
1661
1662 'text_align' => $settings['text_align'],
1663 'text_align_resp' => $settings['text_align_mobile'],
1664 'overlay_color' => $settings['overlay_color'],
1665
1666 'footer_shape' => $settings['footer_shape'],
1667 'footer_shape_color' => $settings['footer_shape_color']
1668 );
1669
1670 // get the shortcode base blog page
1671 echo auxin_widget_column_callback( $args );
1672 }
1673
1674 }
1675