PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.5.13
Shortcodes and extra features for Phlox theme v2.5.13
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 / staff.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
staff.php
937 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\Utils;
11 use Elementor\Group_Control_Border;
12
13
14 if ( ! defined( 'ABSPATH' ) ) {
15 exit; // Exit if accessed directly.
16 }
17
18 /**
19 * Elementor 'Staff' widget.
20 *
21 * Elementor widget that displays an 'Staff' with lightbox.
22 *
23 * @since 1.0.0
24 */
25 class Staff extends Widget_Base {
26
27 /**
28 * Get widget name.
29 *
30 * Retrieve 'Staff' widget name.
31 *
32 * @since 1.0.0
33 * @access public
34 *
35 * @return string Widget name.
36 */
37 public function get_name() {
38 return 'aux_staff';
39 }
40
41 /**
42 * Get widget title.
43 *
44 * Retrieve 'Staff' widget title.
45 *
46 * @since 1.0.0
47 * @access public
48 *
49 * @return string Widget title.
50 */
51 public function get_title() {
52 return __('Staff', 'auxin-elements' );
53 }
54
55 /**
56 * Get widget icon.
57 *
58 * Retrieve 'Staff' widget icon.
59 *
60 * @since 1.0.0
61 * @access public
62 *
63 * @return string Widget icon.
64 */
65 public function get_icon() {
66 return 'eicon-person auxin-badge';
67 }
68
69 /**
70 * Get widget categories.
71 *
72 * Retrieve 'Staff' widget icon.
73 *
74 * @since 1.0.0
75 * @access public
76 *
77 * @return string Widget icon.
78 */
79 public function get_categories() {
80 return array( 'auxin-core' );
81 }
82
83 /**
84 * Register 'Staff' widget controls.
85 *
86 * Adds different input fields to allow the user to change and customize the widget settings.
87 *
88 * @since 1.0.0
89 * @access protected
90 */
91 protected function _register_controls() {
92
93 /*-----------------------------------------------------------------------------------*/
94 /* content_section
95 /*-----------------------------------------------------------------------------------*/
96
97 $this->start_controls_section(
98 'content_section',
99 array(
100 'label' => __('Content', 'auxin-elements' ),
101 )
102 );
103
104 $this->add_control(
105 'title',
106 array(
107 'label' => __('Staff Name','auxin-elements' ),
108 'description' => __('Text title, leave it empty if you don`t need title.', 'auxin-elements'),
109 'type' => Controls_Manager::TEXT,
110 'default' => 'John Doe'
111 )
112 );
113
114 $this->add_control(
115 'subtitle',
116 array(
117 'label' => __('Staff Occupation','auxin-elements' ),
118 'type' => Controls_Manager::TEXT,
119 'default' => 'Manager'
120 )
121 );
122
123 $this->add_control(
124 'staff_link',
125 array(
126 'label' => __('Staff Page Link','auxin-elements' ),
127 'type' => Controls_Manager::URL,
128 'placeholder' => 'https://your-link.com',
129 'show_external' => false,
130 'dynamic' => [
131 'active' => true
132 ]
133 )
134 );
135
136
137 $this->add_control(
138 'content',
139 array(
140 'label' => __('Content','auxin-elements'),
141 'description' => __('Enter a text as a text content.','auxin-elements'),
142 'type' => Controls_Manager::TEXTAREA
143 )
144 );
145
146 $this->add_control(
147 'max_words',
148 array(
149 'label' => __('Maximum Words','auxin-elements' ),
150 'description' => __('Limit the number of words in the Content','auxin-elements' ),
151 'type' => Controls_Manager::NUMBER,
152 'default' => '',
153 'step' => 1,
154 'condition' => array(
155 'content!' => '',
156 )
157 )
158 );
159
160 $this->end_controls_section();
161
162 /*-----------------------------------------------------------------------------------*/
163 /* image_section
164 /*-----------------------------------------------------------------------------------*/
165
166 $this->start_controls_section(
167 'image_section',
168 array(
169 'label' => __('Image', 'auxin-elements' ),
170 )
171 );
172
173 $this->add_control(
174 'staff_img',
175 array(
176 'label' => __('Image','auxin-elements' ),
177 'type' => Controls_Manager::MEDIA,
178 'default' => array(
179 'url' => Utils::get_placeholder_image_src()
180 ),
181 )
182 );
183
184 $this->add_group_control(
185 Group_Control_Image_Size::get_type(),
186 array(
187 'name' => 'staff_img', // Usage: `{name}_size` and `{name}_custom_dimension`, in this case `thumbnail_size` and `thumbnail_custom_dimension`.
188 'separator' => 'none',
189 'default' => 'full'
190 )
191 );
192
193 $this->add_control(
194 'img_shape',
195 array(
196 'label' => __('Image shape','auxin-elements'),
197 'type' => 'aux-visual-select',
198 'options' => array(
199 'circle' => array(
200 'label' => __('Circle', 'auxin-elements'),
201 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
202 ),
203 'semi-circle' => array(
204 'label' => __('Semi-circle', 'auxin-elements'),
205 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
206 ),
207 'round-rect' => array(
208 'label' => __('Round Rectangle', 'auxin-elements'),
209 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
210 ),
211 'rect' => array(
212 'label' => __('Rectangle', 'auxin-elements'),
213 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
214 )
215 ),
216 'default' => 'circle'
217 )
218 );
219
220 $this->add_control(
221 'preloadable',
222 array(
223 'label' => __('Preload image','auxin-elements' ),
224 'type' => Controls_Manager::SWITCHER,
225 'label_on' => __( 'On', 'auxin-elements' ),
226 'label_off' => __( 'Off', 'auxin-elements' ),
227 'return_value' => 'yes',
228 'default' => 'no'
229 )
230 );
231
232 $this->add_control(
233 'preload_preview',
234 array(
235 'label' => __('While loading image display','auxin-elements' ),
236 'label_block' => true,
237 'type' => Controls_Manager::SELECT,
238 'options' => auxin_get_preloadable_previews(),
239 'return_value' => 'yes',
240 'default' => 'yes',
241 'condition' => array(
242 'preloadable' => 'yes'
243 )
244 )
245 );
246
247 $this->add_control(
248 'preload_bgcolor',
249 array(
250 'label' => __( 'Placeholder color while loading image', 'auxin-elements' ),
251 'type' => Controls_Manager::COLOR,
252 'condition' => array(
253 'preloadable' => 'yes',
254 'preload_preview' => array('simple-spinner', 'simple-spinner-light', 'simple-spinner-dark')
255 )
256 )
257 );
258
259 $this->end_controls_section();
260
261 /*-----------------------------------------------------------------------------------*/
262 /* social_section
263 /*-----------------------------------------------------------------------------------*/
264
265 $this->start_controls_section(
266 'social_section',
267 array(
268 'label' => __('Social', 'auxin-elements' ),
269 )
270 );
271
272 $this->add_control(
273 'socials',
274 array(
275 'label' => __('Enable Socials','auxin-elements' ),
276 'type' => Controls_Manager::SWITCHER,
277 'label_on' => __( 'On', 'auxin-elements' ),
278 'label_off' => __( 'Off', 'auxin-elements' ),
279 'default' => 'no'
280 )
281 );
282
283 $this->add_control(
284 'social_twitter',
285 array(
286 'label' => __('Twitter Address','auxin-elements' ),
287 'type' => Controls_Manager::URL,
288 'placeholder' => 'https://your-link.com',
289 'show_external' => false,
290 'condition' => [
291 'socials' => 'yes'
292 ],
293 'dynamic' => [
294 'active' => true
295 ]
296 )
297 );
298
299 $this->add_control(
300 'social_facebook',
301 array(
302 'label' => __('Facebook Address','auxin-elements' ),
303 'type' => Controls_Manager::URL,
304 'placeholder' => 'https://your-link.com',
305 'show_external' => false,
306 'condition' => [
307 'socials' => 'yes'
308 ],
309 'dynamic' => [
310 'active' => true
311 ]
312 )
313 );
314
315 $this->add_control(
316 'social_gp',
317 array(
318 'label' => __('Google Plus Address','auxin-elements' ),
319 'type' => Controls_Manager::URL,
320 'placeholder' => 'https://your-link.com',
321 'show_external' => false,
322 'condition' => [
323 'socials' => 'yes'
324 ],
325 'dynamic' => [
326 'active' => true
327 ]
328 )
329 );
330
331 $this->add_control(
332 'social_flickr',
333 array(
334 'label' => __('Flickr Address','auxin-elements' ),
335 'type' => Controls_Manager::URL,
336 'placeholder' => 'https://your-link.com',
337 'show_external' => false,
338 'condition' => [
339 'socials' => 'yes'
340 ],
341 'dynamic' => [
342 'active' => true
343 ]
344 )
345 );
346
347 $this->add_control(
348 'social_delicious',
349 array(
350 'label' => __('Delicious Address','auxin-elements' ),
351 'type' => Controls_Manager::URL,
352 'placeholder' => 'https://your-link.com',
353 'show_external' => false,
354 'condition' => [
355 'socials' => 'yes'
356 ],
357 'dynamic' => [
358 'active' => true
359 ]
360 )
361 );
362
363 $this->add_control(
364 'social_pinterest',
365 array(
366 'label' => __('Pinterest Address','auxin-elements' ),
367 'type' => Controls_Manager::URL,
368 'placeholder' => 'https://your-link.com',
369 'show_external' => false,
370 'condition' => [
371 'socials' => 'yes'
372 ],
373 'dynamic' => [
374 'active' => true
375 ]
376 )
377 );
378
379 $this->add_control(
380 'social_github',
381 array(
382 'label' => __('GitHub Address','auxin-elements' ),
383 'type' => Controls_Manager::URL,
384 'placeholder' => 'https://your-link.com',
385 'show_external' => false,
386 'condition' => [
387 'socials' => 'yes'
388 ],
389 'dynamic' => [
390 'active' => true
391 ]
392 )
393 );
394
395 $this->add_control(
396 'social_instagram',
397 array(
398 'label' => __('Instagram Address','auxin-elements' ),
399 'type' => Controls_Manager::URL,
400 'placeholder' => 'https://your-link.com',
401 'show_external' => false,
402 'condition' => [
403 'socials' => 'yes'
404 ],
405 'dynamic' => [
406 'active' => true
407 ]
408 )
409 );
410
411 $this->end_controls_section();
412
413 /*-----------------------------------------------------------------------------------*/
414 /* title_style_section
415 /*-----------------------------------------------------------------------------------*/
416
417 $this->start_controls_section(
418 'title_style_section',
419 array(
420 'label' => __( 'Title', 'auxin-elements' ),
421 'tab' => Controls_Manager::TAB_STYLE,
422 'condition' => array(
423 'title!' => '',
424 ),
425 )
426 );
427
428 $this->start_controls_tabs( 'title_colors' );
429
430 $this->start_controls_tab(
431 'title_color_normal',
432 array(
433 'label' => __( 'Normal' , 'auxin-elements' ),
434 'condition' => array(
435 'title!' => '',
436 ),
437 )
438 );
439
440 $this->add_control(
441 'title_color',
442 array(
443 'label' => __( 'Color', 'auxin-elements' ),
444 'type' => Controls_Manager::COLOR,
445 'selectors' => array(
446 '{{WRAPPER}} .col-title a, {{WRAPPER}} .col-title' => 'color: {{VALUE}} !important;',
447 ),
448 'condition' => array(
449 'title!' => '',
450 ),
451 )
452 );
453
454 $this->end_controls_tab();
455
456 $this->start_controls_tab(
457 'title_color_hover',
458 array(
459 'label' => __( 'Hover' , 'auxin-elements' ),
460 'condition' => array(
461 'title!' => '',
462 ),
463 )
464 );
465
466 $this->add_control(
467 'title_hover_color',
468 array(
469 'label' => __( 'Color', 'auxin-elements' ),
470 'type' => Controls_Manager::COLOR,
471 'selectors' => array(
472 '{{WRAPPER}} .col-title a:hover' => 'color: {{VALUE}} !important;',
473 ),
474 'condition' => array(
475 'title!' => '',
476 ),
477 )
478 );
479
480 $this->end_controls_tab();
481
482 $this->end_controls_tabs();
483
484 $this->add_group_control(
485 Group_Control_Typography::get_type(),
486 array(
487 'name' => 'title_typography',
488 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
489 'selector' => '{{WRAPPER}} .col-title, {{WRAPPER}} .col-title a',
490 'condition' => array(
491 'title!' => '',
492 ),
493 )
494 );
495
496 $this->add_responsive_control(
497 'title_margin_top',
498 array(
499 'label' => __( 'Top space', 'auxin-elements' ),
500 'type' => Controls_Manager::SLIDER,
501 'range' => array(
502 'px' => array(
503 'max' => 100,
504 ),
505 ),
506 'selectors' => array(
507 '{{WRAPPER}} .aux-staff-content .col-title' => 'margin-top: {{SIZE}}{{UNIT}};',
508 ),
509 'condition' => array(
510 'title!' => ''
511 )
512 )
513 );
514
515 $this->add_responsive_control(
516 'title_margin_bottom',
517 array(
518 'label' => __( 'Bottom space', 'auxin-elements' ),
519 'type' => Controls_Manager::SLIDER,
520 'range' => array(
521 'px' => array(
522 'max' => 100,
523 ),
524 ),
525 'selectors' => array(
526 '{{WRAPPER}} .aux-staff-content .col-title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
527 ),
528 'condition' => array(
529 'title!' => ''
530 )
531 )
532 );
533
534 $this->end_controls_section();
535
536 /*-----------------------------------------------------------------------------------*/
537 /* subtitle_style_section
538 /*-----------------------------------------------------------------------------------*/
539
540 $this->start_controls_section(
541 'subtitle_style_section',
542 array(
543 'label' => __( 'Subtitle', 'auxin-elements' ),
544 'tab' => Controls_Manager::TAB_STYLE,
545 'condition' => array(
546 'subtitle!' => '',
547 ),
548 )
549 );
550
551 $this->add_control(
552 'subtitle_color',
553 array(
554 'label' => __( 'Color', 'auxin-elements' ),
555 'type' => Controls_Manager::COLOR,
556 'selectors' => array(
557 '{{WRAPPER}} .col-subtitle' => 'color: {{VALUE}} !important;',
558 ),
559 'condition' => array(
560 'subtitle!' => '',
561 ),
562 )
563 );
564
565 $this->add_group_control(
566 Group_Control_Typography::get_type(),
567 array(
568 'name' => 'subtitle_typography',
569 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
570 'selector' => '{{WRAPPER}} .aux-staff-content .col-subtitle',
571 'condition' => array(
572 'subtitle!' => '',
573 ),
574 )
575 );
576
577 $this->add_responsive_control(
578 'subtitle_margin_bottom',
579 array(
580 'label' => __( 'Bottom space', 'auxin-elements' ),
581 'type' => Controls_Manager::SLIDER,
582 'range' => array(
583 'px' => array(
584 'max' => 100,
585 ),
586 ),
587 'selectors' => array(
588 '{{WRAPPER}} .col-subtitle' => 'margin-bottom: {{SIZE}}{{UNIT}};',
589 ),
590 'condition' => array(
591 'subtitle!' => '',
592 ),
593 )
594 );
595
596 $this->end_controls_section();
597
598 /*-----------------------------------------------------------------------------------*/
599 /* content_style_section
600 /*-----------------------------------------------------------------------------------*/
601
602 $this->start_controls_section(
603 'content_style_section',
604 array(
605 'label' => __( 'Content', 'auxin-elements' ),
606 'tab' => Controls_Manager::TAB_STYLE,
607 'condition' => array(
608 'content!' => '',
609 ),
610 )
611 );
612
613 $this->add_control(
614 'content_color',
615 array(
616 'label' => __( 'Color', 'auxin-elements' ),
617 'type' => Controls_Manager::COLOR,
618 'selectors' => array(
619 '{{WRAPPER}} .entry-content' => 'color: {{VALUE}} !important;',
620 ),
621 'condition' => array(
622 'content!' => '',
623 ),
624 )
625 );
626
627 $this->add_group_control(
628 Group_Control_Typography::get_type(),
629 array(
630 'name' => 'content_typography',
631 'scheme' => Scheme_Typography::TYPOGRAPHY_1,
632 'selector' => '{{WRAPPER}} .entry-content',
633 'condition' => array(
634 'content!' => '',
635 ),
636 )
637 );
638
639 $this->add_responsive_control(
640 'content_margin_bottom',
641 array(
642 'label' => __( 'Bottom space', 'auxin-elements' ),
643 'type' => Controls_Manager::SLIDER,
644 'range' => array(
645 'px' => array(
646 'max' => 100,
647 ),
648 ),
649 'selectors' => array(
650 '{{WRAPPER}} .entry-content' => 'margin-bottom: {{SIZE}}{{UNIT}};',
651 ),
652 'condition' => array(
653 'content!' => '',
654 ),
655 )
656 );
657
658 $this->end_controls_section();
659
660 /*-----------------------------------------------------------------------------------*/
661 /* content_style_section
662 /*-----------------------------------------------------------------------------------*/
663
664 $this->start_controls_section(
665 'socials_style_section',
666 array(
667 'label' => __( 'Socials', 'auxin-elements' ),
668 'tab' => Controls_Manager::TAB_STYLE,
669 'condition' => array(
670 'socials' => 'yes'
671 ),
672 )
673 );
674
675 $this->start_controls_tabs( 'socials_colors' );
676
677 $this->start_controls_tab(
678 'socials_color_normal',
679 array(
680 'label' => __( 'Normal' , 'auxin-elements' ),
681 'condition' => array(
682 'socials' => 'yes'
683 ),
684 )
685 );
686
687 $this->add_control(
688 'socials_color',
689 array(
690 'label' => __( 'Color', 'auxin-elements' ),
691 'type' => Controls_Manager::COLOR,
692 'selectors' => array(
693 '{{WRAPPER}} .aux-social-list a' => 'color: {{VALUE}};',
694 ),
695 'condition' => array(
696 'socials' => 'yes'
697 ),
698 )
699 );
700
701 $this->end_controls_tab();
702
703 $this->start_controls_tab(
704 'socials_color_hover',
705 array(
706 'label' => __( 'Hover' , 'auxin-elements' ),
707 'condition' => array(
708 'socials' => 'yes'
709 ),
710 )
711 );
712
713 $this->add_control(
714 'socials_hover_color',
715 array(
716 'label' => __( 'Color', 'auxin-elements' ),
717 'type' => Controls_Manager::COLOR,
718 'selectors' => array(
719 '{{WRAPPER}} .aux-social-list a:hover' => 'color: {{VALUE}};',
720 ),
721 'condition' => array(
722 'socials' => 'yes'
723 ),
724 )
725 );
726
727 $this->end_controls_tab();
728
729 $this->end_controls_tabs();
730
731 $this->add_control(
732 'icon_align',
733 array(
734 'label' => __('Icon Direction', 'auxin-elements'),
735 'type' => Controls_Manager::SELECT,
736 'default' => 'aux-horizontal',
737 'options' => array(
738 'aux-vertical' => __( 'Vertical' , 'auxin-elements' ),
739 'aux-horizontal' => __( 'Horizontal' , 'auxin-elements' ),
740 ),
741 'condition' => array(
742 'socials' => 'yes'
743 )
744 )
745 );
746
747
748 $this->add_control(
749 'icon_size',
750 array(
751 'label' => __('Socials Icon size', 'auxin-elements'),
752 'type' => Controls_Manager::SELECT,
753 'default' => 'aux-medium',
754 'options' => array(
755 'aux-small' => __( 'Small' , 'auxin-elements' ),
756 'aux-medium' => __( 'Medium' , 'auxin-elements' ),
757 'aux-large' => __( 'Large' , 'auxin-elements' ),
758 'aux-extra-large' => __( 'X-Large' , 'auxin-elements' )
759 ),
760 'condition' => array(
761 'socials' => 'yes'
762 )
763 )
764 );
765
766 $this->add_group_control(
767 Group_Control_Border::get_type(),
768 array(
769 'name' => 'socials_separator',
770 'label' => __( 'Separator', 'auxin-elements' ),
771 'selector' => '{{WRAPPER}} .aux-widget-staff .aux-staff-footer',
772 )
773 );
774
775 $this->add_responsive_control(
776 'socials_padding',
777 array(
778 'label' => __( 'Padding', 'auxin-elements' ),
779 'type' => Controls_Manager::DIMENSIONS,
780 'size_units' => array( 'px', '%' ),
781 'selectors' => array(
782 '{{WRAPPER}} .aux-widget-staff .aux-staff-footer' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
783 ),
784 'condition' => array(
785 'socials' => 'yes'
786 )
787 )
788 );
789
790 $this->end_controls_section();
791
792 /*-----------------------------------------------------------------------------------*/
793 /* Wrapper section
794 /*-----------------------------------------------------------------------------------*/
795
796 $this->start_controls_section(
797 'wrapper_style_section',
798 array(
799 'label' => __( 'Wrappers', 'auxin-elements' ),
800 'tab' => Controls_Manager::TAB_STYLE,
801 'condition' => array(
802 'title!' => '',
803 ),
804 )
805 );
806
807 $this->add_control(
808 'layout_style',
809 array(
810 'label' => __('Layout','auxin-elements'),
811 'type' => 'aux-visual-select',
812 'style_items' => 'max-width:31%;',
813 'options' => array(
814 'top' => array(
815 'label' => __('Top', 'auxin-elements'),
816 'image' => AUXIN_URL . 'images/visual-select/column-icon-top.svg'
817 ),
818 'right' => array(
819 'label' => __('Right', 'auxin-elements'),
820 'image' => AUXIN_URL . 'images/visual-select/column-icon-right.svg'
821 ),
822 'bottom' => array(
823 'label' => __('Bottom', 'auxin-elements'),
824 'image' => AUXIN_URL . 'images/visual-select/column-icon-bottom.svg'
825 ),
826 'left' => array(
827 'label' => __('Left', 'auxin-elements'),
828 'image' => AUXIN_URL . 'images/visual-select/column-icon-left.svg'
829 )
830 ),
831 'default' => 'top'
832 )
833 );
834
835 $this->add_control(
836 'text_align',
837 array(
838 'label' => __('Text Align','auxin-elements'),
839 'type' => Controls_Manager::CHOOSE,
840 'options' => array(
841 'left' => array(
842 'title' => __( 'Left', 'auxin-elements' ),
843 'icon' => 'fa fa-align-left',
844 ),
845 'center' => array(
846 'title' => __( 'Center', 'auxin-elements' ),
847 'icon' => 'fa fa-align-center',
848 ),
849 'right' => array(
850 'title' => __( 'Right', 'auxin-elements' ),
851 'icon' => 'fa fa-align-right',
852 ),
853 ),
854 'default' => 'left',
855 'toggle' => true,
856 )
857 );
858
859 $this->add_responsive_control(
860 'wrapper_main_padding',
861 array(
862 'label' => __( 'Padding for main wrapper', 'auxin-elements' ),
863 'type' => Controls_Manager::DIMENSIONS,
864 'size_units' => array( 'px', '%' ),
865 'selectors' => array(
866 '{{WRAPPER}} .aux-widget-staff > div' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
867 )
868 )
869 );
870
871 $this->add_responsive_control(
872 'wrapper_content_padding',
873 array(
874 'label' => __( 'Padding for content wrapper', 'auxin-elements' ),
875 'type' => Controls_Manager::DIMENSIONS,
876 'size_units' => array( 'px', '%' ),
877 'selectors' => array(
878 '{{WRAPPER}} .aux-widget-staff .aux-staff-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
879 )
880 )
881 );
882
883 $this->end_controls_section();
884 }
885
886 /**
887 * Render image box widget output on the frontend.
888 *
889 * Written in PHP and used to generate the final HTML.
890 *
891 * @since 1.0.0
892 * @access protected
893 */
894 protected function render() {
895
896 $settings = $this->get_settings_for_display();
897
898 $args = array(
899 'title' => $settings['title'],
900 'subtitle' => $settings['subtitle'],
901 'staff_link' => $settings['staff_link']['url'],
902 'content' => $settings['content'],
903 'max_words' => $settings['max_words'],
904 'width' => $settings['staff_img_custom_dimension']['width'],
905 'height' => $settings['staff_img_custom_dimension']['height'],
906
907 'staff_img' => $settings['staff_img']['id'],
908 'staff_img_size' => $settings['staff_img_size'],
909 'img_shape' => $settings['img_shape'],
910 'preloadable' => $settings['preloadable'],
911 'preload_preview' => $settings['preload_preview'],
912 'preload_bgcolor' => $settings['preload_bgcolor'],
913
914 'socials' => $settings['socials'],
915 'social_twitter' => $settings['social_twitter']['url'],
916 'social_facebook' => $settings['social_facebook']['url'],
917 'social_gp' => $settings['social_gp']['url'],
918 'social_flickr' => $settings['social_flickr']['url'],
919 'social_delicious' => $settings['social_delicious']['url'],
920 'social_pinterest' => $settings['social_pinterest']['url'],
921 'social_github' => $settings['social_github']['url'],
922 'social_instagram' => $settings['social_instagram']['url'],
923
924 'icon_size' => $settings['icon_size'],
925 'icon_align' => $settings['icon_align'],
926
927 'wrapper_style' => 'simple', //$settings['wrapper_style'],
928 'layout_style' => $settings['layout_style'],
929 //'wrapper_bg_color' => $settings['wrapper_bg_color'],
930 'text_align' => $settings['text_align'],
931 );
932
933 echo auxin_widget_staff_callback( $args );
934 }
935
936 }
937