PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.5.0
Easy Elements for Elementor – Addons & Website Templates v1.5.0
1.5.3 1.5.2 1.5.1 1.5.0 1.4.9 1.4.6 1.4.7 1.4.8 1.4.5 1.4.4 1.4.3 1.2.7 1.2.8 1.2.9 1.3.0 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.6 1.3.7 1.3.8 1.3.9 1.4.0 All 47 releases
easy-elements / widgets / team-grid / team-grid.php

team-grid.php in Easy Elements for Elementor – Addons & Website Templates 1.5.0, at widgets/team-grid/team-grid.php

1,926 lines 86.2 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2 namespace Easyel\EasyElements\Widgets;
3 use Elementor\Repeater;
4 use Elementor\Utils;
5 use Elementor\Controls_Manager;
6 use Elementor\Responsive_Control;
7 use Elementor\Group_Control_Image_Size;
8 use Elementor\Group_Control_Background;
9 use Elementor\Group_Control_Box_Shadow;
10
11 defined( 'ABSPATH' ) || die();
12 class Easyel_Team_Grid__Widget extends \Elementor\Widget_Base {
13
14 public function get_name() {
15 return 'eel-team-grid';
16 }
17
18 public function get_title() {
19 return esc_html__( 'Team Grid', 'easy-elements' );
20 }
21
22 public function get_icon() {
23 return 'easyicon easyelIcon-team-grid';
24 }
25
26 public function get_categories() {
27 return [ 'easyelements_category' ];
28 }
29
30 public function get_keywords() {
31 return [ 'member', 'team', 'brand', 'partner', 'image', 'text' ];
32 }
33
34 public function get_style_depends() {
35 return [
36 'eel-team-grid',
37 ];
38 }
39
40 public function get_script_depends() {
41 return [
42 'eel-team-grid',
43 ];
44 }
45
46 protected function register_controls() {
47
48 $this->start_controls_section(
49 '_section_team',
50 [
51 'label' => esc_html__( 'Team Settings', 'easy-elements' ),
52 'tab' => Controls_Manager::TAB_CONTENT,
53 ]
54 );
55 $this->add_control(
56 'team_skin',
57 [
58 'label' => esc_html__('Skin Type', 'easy-elements'),
59 'type' => \Elementor\Controls_Manager::SELECT,
60 'default' => 'default',
61 'options' => [
62 'default' => esc_html__('Default', 'easy-elements'),
63 'skin1' => esc_html__('Skin 01', 'easy-elements'),
64 'skin2' => esc_html__('Skin 02', 'easy-elements'),
65 'skin3' => esc_html__('Skin 03', 'easy-elements'),
66 'skin4' => esc_html__('Skin 04 (Hover Overlay)', 'easy-elements'),
67 'skin5' => esc_html__('Skin 05', 'easy-elements'),
68 ],
69 ]
70 );
71
72 $this->add_control(
73 'skin4_hover_overlay',
74 [
75 'label' => esc_html__('Hover Overlay Style', 'easy-elements'),
76 'type' => \Elementor\Controls_Manager::SELECT,
77 'default' => 'overlay1',
78 'options' => [
79 'overlay1' => esc_html__('Hover Overlay 1', 'easy-elements'),
80 'overlay2' => esc_html__('Hover Overlay 2', 'easy-elements'),
81 ],
82 'condition' => [
83 'team_skin' => 'skin4',
84 ],
85 ]
86 );
87
88
89
90 $this->add_control(
91 'image',
92 [
93 'label' => esc_html__('Image', 'easy-elements'),
94 'type' => Controls_Manager::MEDIA,
95 'default' => [
96 'url' => Utils::get_placeholder_image_src(),
97 ],
98 ]
99 );
100
101 $this->add_control(
102 '_name',
103 [
104 'label' => esc_html__( 'Name', 'easy-elements' ),
105 'type' => \Elementor\Controls_Manager::TEXT,
106 'default' => esc_html__( 'Harry Nelson', 'easy-elements' ),
107 'label_block' => true,
108 ]
109 );
110
111 $this->add_control(
112 'title_tag',
113 [
114 'label' => esc_html__( 'Title HTML Tag', 'easy-elements' ),
115 'type' => \Elementor\Controls_Manager::SELECT,
116 'default' => 'h4',
117 'options' => [
118 'h1' => 'H1',
119 'h2' => 'H2',
120 'h3' => 'H3',
121 'h4' => 'H4',
122 'h5' => 'H5',
123 'h6' => 'H6',
124 'div' => 'div',
125 'span' => 'span',
126 'p' => 'p',
127 ],
128 ]
129 );
130
131 $this->add_control(
132 'designation',
133 [
134 'label' => esc_html__('Designation', 'easy-elements'),
135 'type' => Controls_Manager::TEXT,
136 'default' => esc_html__( 'Head of Operations', 'easy-elements' ),
137 'label_block' => true,
138 ]
139 );
140
141 $this->add_control(
142 'details',
143 [
144 'label' => esc_html__('Description', 'easy-elements'),
145 'type' => \Elementor\Controls_Manager::TEXTAREA,
146 'default' => '',
147 'rows' => 4,
148 'placeholder' => esc_html__('Enter description here...', 'easy-elements'),
149 'label_block' => true,
150 'description' => esc_html__('Shown below designation on the card (default, Skin 01, Skin 02), as the hover overlay text on Skin 03, and inside the popup when Action Type is set to Popup.', 'easy-elements'),
151 ]
152 );
153
154 $this->add_control(
155 'show_contact_info',
156 [
157 'label' => esc_html__( 'Show Contact Info', 'easy-elements' ),
158 'type' => \Elementor\Controls_Manager::SWITCHER,
159 'label_on' => esc_html__( 'Yes', 'easy-elements' ),
160 'label_off' => esc_html__( 'No', 'easy-elements' ),
161 'return_value' => 'yes',
162 'default' => 'yes',
163 'description' => esc_html__( 'Show the email and phone in the hover contact area. Skin 05 only.', 'easy-elements' ),
164 'condition' => [ 'team_skin' => 'skin5' ],
165 ]
166 );
167
168 $this->add_control(
169 'team_email',
170 [
171 'label' => esc_html__( 'Email (Skin 05)', 'easy-elements' ),
172 'type' => \Elementor\Controls_Manager::TEXT,
173 'label_block' => true,
174 'placeholder' => 'info@example.com',
175 'description' => esc_html__( 'Shown in the contact area on Skin 05.', 'easy-elements' ),
176 'condition' => [
177 'team_skin' => 'skin5',
178 'show_contact_info' => 'yes',
179 ],
180 ]
181 );
182
183 $this->add_control(
184 'team_phone',
185 [
186 'label' => esc_html__( 'Phone (Skin 05)', 'easy-elements' ),
187 'type' => \Elementor\Controls_Manager::TEXT,
188 'label_block' => true,
189 'placeholder' => '+1 234 567 890',
190 'description' => esc_html__( 'Shown in the contact area on Skin 05.', 'easy-elements' ),
191 'condition' => [
192 'team_skin' => 'skin5',
193 'show_contact_info' => 'yes',
194 ],
195 ]
196 );
197
198 $this->add_control(
199 'team_email_icon',
200 [
201 'label' => esc_html__( 'Email Icon', 'easy-elements' ),
202 'type' => \Elementor\Controls_Manager::ICONS,
203 'default' => [
204 'value' => 'far fa-envelope',
205 'library' => 'fa-regular',
206 ],
207 'condition' => [
208 'team_skin' => 'skin5',
209 'show_contact_info' => 'yes',
210 ],
211 ]
212 );
213
214 $this->add_control(
215 'team_phone_icon',
216 [
217 'label' => esc_html__( 'Phone Icon', 'easy-elements' ),
218 'type' => \Elementor\Controls_Manager::ICONS,
219 'default' => [
220 'value' => 'fas fa-phone-alt',
221 'library' => 'fa-solid',
222 ],
223 'condition' => [
224 'team_skin' => 'skin5',
225 'show_contact_info' => 'yes',
226 ],
227 ]
228 );
229
230 $this->add_control(
231 'action_type',
232 [
233 'label' => esc_html__('Action Type', 'easy-elements'),
234 'type' => \Elementor\Controls_Manager::SELECT,
235 'options' => [
236 'link' => esc_html__('Link', 'easy-elements'),
237 'popup' => esc_html__('Popup', 'easy-elements'),
238 ],
239 'default' => 'link',
240 'description' => esc_html__('Choose between link or popup action.', 'easy-elements'),
241 ]
242 );
243 $this->add_control(
244 'link',
245 [
246 'label' => esc_html__('Link', 'easy-elements'),
247 'type' => Controls_Manager::URL,
248 'placeholder' => 'https://example.com',
249 'description' => esc_html__('You can add a page link here, such as the team member\'s profile page.', 'easy-elements'),
250 'condition' => [
251 'action_type' => 'link',
252 ],
253 ]
254 );
255 $this->add_control(
256 'content_show',
257 [
258 'label' => esc_html__('Content Show', 'easy-elements'),
259 'type' => \Elementor\Controls_Manager::SELECT,
260 'default' => 'inside',
261 'options' => [
262 'inside' => esc_html__('Inside Image', 'easy-elements'),
263 'normal' => esc_html__('Normal', 'easy-elements'),
264 ],
265 'condition' => [
266 'team_skin' => ['default','skin2'],
267 ],
268 ]
269 );
270
271 $this->add_group_control(
272 Group_Control_Image_Size::get_type(),
273 [
274 'name' => 'image',
275 'default' => 'full',
276 ]
277 );
278
279 $this->add_control(
280 'fetchpriority',
281 [
282 'label' => __('Image Fetch Priority', 'easy-elements'),
283 'type' => \Elementor\Controls_Manager::SELECT,
284 'options' => [
285 '' => __('Default', 'easy-elements'),
286 'high' => __('High', 'easy-elements'),
287 'low' => __('Low', 'easy-elements'),
288 ],
289 'default' => 'low',
290 ]
291 );
292
293 $this->add_control(
294 'image_overlay_note',
295 [
296 'type' => \Elementor\Controls_Manager::RAW_HTML,
297 'raw' => '<div class="eel-popup-note">' . esc_html__('Note: The Image Overlay supports both classic (solid color) and gradient backgrounds.', 'easy-elements') . '</div>',
298 'separator' => 'before',
299 ]
300 );
301 $this->add_group_control(
302 \Elementor\Group_Control_Background::get_type(),
303 [
304 'name' => 'image_overlay',
305 'label' => esc_html__('Image Overlay', 'easy-elements'),
306 'types' => [ 'classic', 'gradient' ],
307 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-image-overlay',
308 ]
309 );
310 $this->add_control(
311 'disable_image_scale',
312 [
313 'label' => esc_html__( 'Disable Image Scale on Hover', 'easy-elements' ),
314 'type' => \Elementor\Controls_Manager::SWITCHER,
315 'label_on' => esc_html__( 'Yes', 'easy-elements' ),
316 'label_off' => esc_html__( 'No', 'easy-elements' ),
317 'return_value' => 'yes',
318 'default' => '',
319 'selectors' => [
320 '{{WRAPPER}} .eel-team-grid .grid-item .ee--team-img:hover img' => 'transform: none;',
321 ],
322 'separator' => 'before',
323 ]
324 );
325
326 $this->add_control(
327 'disable_social_icon_lift',
328 [
329 'label' => esc_html__( 'Disable Social Icon Lift on Hover', 'easy-elements' ),
330 'type' => \Elementor\Controls_Manager::SWITCHER,
331 'label_on' => esc_html__( 'Yes', 'easy-elements' ),
332 'label_off' => esc_html__( 'No', 'easy-elements' ),
333 'return_value' => 'yes',
334 'default' => '',
335 'selectors' => [
336 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'transform: none;',
337 '{{WRAPPER}} .eel-team-grid-social ul li a:not(.eel-popup-trigger):hover' => 'transform: none;',
338 ],
339 ]
340 );
341
342 $this->add_control(
343 'show_social_icon',
344 [
345 'label' => esc_html__( 'Show Social Icon', 'easy-elements' ),
346 'type' => \Elementor\Controls_Manager::SWITCHER,
347 'label_on' => esc_html__( 'Show', 'easy-elements' ),
348 'label_off' => esc_html__( 'Hide', 'easy-elements' ),
349 'return_value' => 'yes',
350 'default' => 'no',
351 'separator' => 'before',
352 ]
353 );
354
355 $this->end_controls_section();
356
357 // Social Item
358 $this->start_controls_section(
359 'social_icon_section',
360 [
361 'label' => esc_html__( 'Social Settings', 'easy-elements' ),
362 'tab' => Controls_Manager::TAB_CONTENT,
363 'condition' => [
364 'show_social_icon' => 'yes',
365 ],
366 ]
367 );
368
369 $this->add_control(
370 'social_icon_position',
371 [
372 'label' => esc_html__('Icon Position', 'easy-elements'),
373 'type' => \Elementor\Controls_Manager::SELECT,
374 'default' => 'default',
375 'options' => [
376 'default' => esc_html__('Default', 'easy-elements'),
377 'posi_left' => esc_html__('Top Left', 'easy-elements'),
378 'posi_right' => esc_html__('Top Right', 'easy-elements'),
379 'posi_botttom_left' => esc_html__('Bottom Left', 'easy-elements'),
380 'posi_botttom_right' => esc_html__('Bottom Right', 'easy-elements'),
381 ],
382 ]
383 );
384 $this->add_control(
385 'social_icon_show',
386 [
387 'label' => esc_html__('Icon Show', 'easy-elements'),
388 'type' => \Elementor\Controls_Manager::SELECT,
389 'default' => 'dafault_show',
390 'options' => [
391 'dafault_show' => esc_html__('Dafault Show', 'easy-elements'),
392 'hover_show' => esc_html__('Icon Hover Show', 'easy-elements'),
393 ],
394 'condition' => [
395 'social_icon_position!' => 'default',
396 ],
397 ]
398 );
399 $this->add_control(
400 'social_hover_icon',
401 [
402 'label' => esc_html__( 'Hover Icon', 'easy-elements' ),
403 'type' => \Elementor\Controls_Manager::ICONS,
404 'label_block' => true,
405 'default' => [
406 'value' => 'fas fa-plus',
407 'library' => 'fa-solid',
408 ],
409 'condition' => [
410 'social_icon_show' => 'hover_show',
411 'social_icon_position!' => 'default',
412 ],
413 ]
414 );
415 $this->add_responsive_control(
416 's_icon_posi_top',
417 [
418 'label' => esc_html__( 'Top Position', 'easy-elements' ),
419 'type' => \Elementor\Controls_Manager::SLIDER,
420 'size_units' => [ 'px', 'em','%'],
421 'range' => [
422 'px' => [
423 'min' => 0,
424 'max' => 500,
425 ],
426 ],
427 'selectors' => [
428 '{{WRAPPER}} .eel-team-grid-social.posi_left, {{WRAPPER}} .eel-team-grid-social.posi_right' => 'top: {{SIZE}}{{UNIT}};',
429 ],
430 'condition' => [
431 'social_icon_position' => ['posi_left','posi_right'],
432 ],
433 ]
434 );
435 $this->add_responsive_control(
436 's_icon_posi_bottom',
437 [
438 'label' => esc_html__( 'Bottom Position', 'easy-elements' ),
439 'type' => \Elementor\Controls_Manager::SLIDER,
440 'size_units' => [ 'px', 'em','%'],
441 'range' => [
442 'px' => [
443 'min' => 0,
444 'max' => 500,
445 ],
446 ],
447 'selectors' => [
448 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_left, {{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'bottom: {{SIZE}}{{UNIT}};',
449 ],
450 'condition' => [
451 'social_icon_position' => ['posi_botttom_left','posi_botttom_right'],
452 ],
453 ]
454 );
455 $this->add_responsive_control(
456 's_icon_posi_left',
457 [
458 'label' => esc_html__( 'Left Position', 'easy-elements' ),
459 'type' => \Elementor\Controls_Manager::SLIDER,
460 'size_units' => [ 'px', 'em','%'],
461 'range' => [
462 'px' => [
463 'min' => 0,
464 'max' => 500,
465 ],
466 ],
467 'selectors' => [
468 '{{WRAPPER}} .eel-team-grid-social.posi_left' => 'left: {{SIZE}}{{UNIT}};',
469 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_left' => 'left: {{SIZE}}{{UNIT}};',
470 ],
471 'condition' => [
472 'social_icon_position' => ['posi_left','posi_botttom_left'],
473 ],
474 ]
475 );
476 $this->add_responsive_control(
477 's_icon_posi_right',
478 [
479 'label' => esc_html__( 'Right Position', 'easy-elements' ),
480 'type' => \Elementor\Controls_Manager::SLIDER,
481 'size_units' => [ 'px', 'em','%'],
482 'range' => [
483 'px' => [
484 'min' => 0,
485 'max' => 500,
486 ],
487 ],
488 'selectors' => [
489 '{{WRAPPER}} .eel-team-grid-social.posi_right' => 'right: {{SIZE}}{{UNIT}};',
490 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'right: {{SIZE}}{{UNIT}};',
491 ],
492 'condition' => [
493 'social_icon_position' => ['posi_right','posi_botttom_right'],
494 ],
495 ]
496 );
497
498 $this->add_control(
499 'social_links',
500 [
501 'label' => esc_html__( 'Social Links', 'easy-elements' ),
502 'type' => Controls_Manager::REPEATER,
503 'fields' => [
504 [
505 'name' => 'link_url',
506 'label' => esc_html__( 'Link URL', 'easy-elements' ),
507 'type' => Controls_Manager::URL,
508 'default' => [
509 'url' => '#',
510 'is_external' => true,
511 'nofollow' => false,
512 ],
513 ],
514 [
515 'name' => 'icon',
516 'label' => esc_html__( 'Icon', 'easy-elements' ),
517 'type' => Controls_Manager::ICONS,
518 'default' => [
519 'value' => 'fab fa-facebook-f',
520 'library' => 'fa-brands',
521 ],
522 ],
523 ],
524 'default' => [
525 [
526 'link_url' => [ 'url' => '#' ],
527 'icon' => [ 'value' => 'fab fa-facebook-f' ],
528 ],
529 ],
530 'title_field' => '<i class="{{ icon.value }}"></i> {{{ icon.value.replace(/^(fab fa-|fas fa-|far fa-|fa fa-)/, "") }}}',
531 ]
532 );
533
534 $this->end_controls_section();
535
536 // Tab STYLE
537 $this->start_controls_section(
538 'section_item_per',
539 [
540 'label' => esc_html__( 'Team Item', 'easy-elements' ),
541 'tab' => Controls_Manager::TAB_STYLE,
542 ]
543 );
544
545 $this->add_group_control(
546 \Elementor\Group_Control_Background::get_type(),
547 [
548 'name' => 'team_wrap_background',
549 'label' => __( 'Background', 'easy-elements' ),
550 'types' => [ 'classic', 'gradient' ],
551 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
552 ]
553 );
554
555 $this->add_responsive_control(
556 'item_padding',
557 [
558 'label' => esc_html__( 'Padding', 'easy-elements' ),
559 'type' => \Elementor\Controls_Manager::DIMENSIONS,
560 'size_units' => [ 'px', '%' ],
561 'selectors' => [
562 '{{WRAPPER}} .eel-team-grid .ee--team-img' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
563 ],
564 ]
565 );
566 $this->add_responsive_control(
567 'item_bdr_radius',
568 [
569 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
570 'type' => \Elementor\Controls_Manager::DIMENSIONS,
571 'size_units' => [ 'px', '%' ],
572 'selectors' => [
573 '{{WRAPPER}} .eel-team-grid .ee--team-img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
574 ],
575 ]
576 );
577 $this->add_group_control(
578 \Elementor\Group_Control_Border::get_type(),
579 [
580 'name' => 'team_border',
581 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
582 ]
583 );
584 $this->add_control(
585 'team_hover_border_color',
586 [
587 'label' => esc_html__( 'Item Hover Border Color', 'easy-elements' ),
588 'type' => \Elementor\Controls_Manager::COLOR,
589 'selectors' => [
590 '{{WRAPPER}} .eel-team-grid .ee--team-img:hover' => 'border-color: {{VALUE}}',
591 ],
592 ]
593 );
594 $this->add_group_control(
595 \Elementor\Group_Control_Box_Shadow::get_type(),
596 [
597 'name' => 'team_box_shadow',
598 'label' => esc_html__('Box Shadow', 'easy-elements'),
599 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
600 ]
601 );
602 $this->add_responsive_control(
603 'team_content_alignment',
604 [
605 'label' => esc_html__( 'Alignment', 'easy-elements' ),
606 'type' => \Elementor\Controls_Manager::CHOOSE,
607 'options' => [
608 'left' => [
609 'title' => esc_html__( 'Left', 'easy-elements' ),
610 'icon' => 'eicon-text-align-left',
611 ],
612 'center' => [
613 'title' => esc_html__( 'Center', 'easy-elements' ),
614 'icon' => 'eicon-text-align-center',
615 ],
616 'right' => [
617 'title' => esc_html__( 'Right', 'easy-elements' ),
618 'icon' => 'eicon-text-align-right',
619 ],
620 ],
621 'selectors' => [
622 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'text-align: {{VALUE}};',
623 ],
624 ]
625 );
626
627 $this->end_controls_section();
628
629 // Image
630 $this->start_controls_section(
631 'section_image',
632 [
633 'label' => esc_html__( 'Image', 'easy-elements' ),
634 'tab' => Controls_Manager::TAB_STYLE,
635 ]
636 );
637 $this->add_responsive_control(
638 'image_width',
639 [
640 'label' => esc_html__( 'Image Width', 'easy-elements' ),
641 'type' => \Elementor\Controls_Manager::SLIDER,
642 'size_units' => [ 'px', 'em', '%' ],
643 'range' => [
644 'px' => [
645 'max' => 500,
646 ],
647 ],
648 'selectors' => [
649 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'max-width: {{SIZE}}{{UNIT}};',
650 ],
651 ]
652 );
653 $this->add_responsive_control(
654 'image_height',
655 [
656 'label' => esc_html__( 'Image Height', 'easy-elements' ),
657 'type' => \Elementor\Controls_Manager::SLIDER,
658 'size_units' => [ 'px', 'em', '%' ],
659 'range' => [
660 'px' => [
661 'max' => 500,
662 ],
663 ],
664 'selectors' => [
665 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box img' => 'height: {{SIZE}}{{UNIT}};',
666 ],
667 ]
668 );
669 $this->add_responsive_control(
670 'image_padding',
671 [
672 'label' => esc_html__( 'Padding', 'easy-elements' ),
673 'type' => \Elementor\Controls_Manager::DIMENSIONS,
674 'size_units' => [ 'px', 'em', '%' ],
675 'selectors' => [
676 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
677 ],
678 ]
679 );
680 $this->add_responsive_control(
681 'image_border_radius',
682 [
683 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
684 'type' => \Elementor\Controls_Manager::DIMENSIONS,
685 'size_units' => [ 'px', '%' ],
686 'selectors' => [
687 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
688 ],
689 ]
690 );
691 $this->add_control(
692 'image_below_bg',
693 [
694 'label' => esc_html__( 'Below Background Color', 'easy-elements' ),
695 'type' => \Elementor\Controls_Manager::COLOR,
696 'selectors' => [
697 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'background-color: {{VALUE}}',
698 ],
699 ]
700 );
701 $this->add_responsive_control(
702 'image_below_height',
703 [
704 'label' => esc_html__( 'Image BG Height', 'easy-elements' ),
705 'type' => \Elementor\Controls_Manager::SLIDER,
706 'selectors' => [
707 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'height: {{SIZE}}%;',
708 ],
709 ]
710 );
711
712 $this->add_control(
713 'image_below_position',
714 [
715 'label' => esc_html__( 'Image BG Position', 'easy-elements' ),
716 'type' => \Elementor\Controls_Manager::SELECT,
717 'default' => 'top',
718 'options' => [
719 'top' => esc_html__( 'Top', 'easy-elements' ),
720 'bottom' => esc_html__( 'Bottom', 'easy-elements' ),
721 ],
722 'selectors_dictionary' => [
723 'top' => 'top: 0; bottom: auto;',
724 'bottom' => 'top: auto; bottom: 0;',
725 ],
726 'selectors' => [
727 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => '{{VALUE}}',
728 ],
729 ]
730 );
731 $this->add_responsive_control(
732 'image_below_border_radius',
733 [
734 'label' => esc_html__( 'Below BG Border Radius', 'easy-elements' ),
735 'type' => \Elementor\Controls_Manager::DIMENSIONS,
736 'size_units' => [ 'px', '%' ],
737 'selectors' => [
738 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
739 ],
740 ]
741 );
742
743 $this->end_controls_section();
744
745 // Name & Designation
746 $this->start_controls_section(
747 'section_item',
748 [
749 'label' => esc_html__( 'Name & Designation Area', 'easy-elements' ),
750 'tab' => Controls_Manager::TAB_STYLE,
751 ]
752 );
753
754 $this->add_control(
755 '_bg_color',
756 [
757 'label' => esc_html__( 'Background Color', 'easy-elements' ),
758 'type' => \Elementor\Controls_Manager::COLOR,
759 'selectors' => [
760 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'background-color: {{VALUE}}',
761 ],
762 'condition' => [
763 'team_skin!' => ['skin1']
764 ],
765 ]
766 );
767
768 $this->add_responsive_control(
769 'wrap_padding',
770 [
771 'label' => esc_html__( 'Padding', 'easy-elements' ),
772 'type' => \Elementor\Controls_Manager::DIMENSIONS,
773 'size_units' => [ 'px', 'em', '%' ],
774 'selectors' => [
775 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
776 ],
777 ]
778 );
779 $this->add_responsive_control(
780 'wrap_margin',
781 [
782 'label' => esc_html__( 'Margin', 'easy-elements' ),
783 'type' => \Elementor\Controls_Manager::DIMENSIONS,
784 'size_units' => [ 'px', 'em', '%' ],
785 'selectors' => [
786 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
787 ],
788 ]
789 );
790
791 $this->add_responsive_control(
792 '_bdr_radius',
793 [
794 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
795 'type' => \Elementor\Controls_Manager::DIMENSIONS,
796 'size_units' => [ 'px', '%' ],
797 'selectors' => [
798 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
799 ],
800 'condition' => [
801 'team_skin!' => ['skin1']
802 ],
803 ]
804 );
805
806 $this->end_controls_section();
807
808 // Skin 04 Hover Overlay
809 $this->start_controls_section(
810 'section_skin4_hover_overlay',
811 [
812 'label' => esc_html__( 'Hover Overlay', 'easy-elements' ),
813 'tab' => Controls_Manager::TAB_STYLE,
814 'condition' => [
815 'team_skin' => 'skin4',
816 ],
817 ]
818 );
819
820 $this->add_group_control(
821 \Elementor\Group_Control_Background::get_type(),
822 [
823 'name' => 'skin4_overlay_bg',
824 'label' => esc_html__( 'Background', 'easy-elements' ),
825 'types' => [ 'classic', 'gradient' ],
826 'selector' => '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content, {{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2',
827 ]
828 );
829
830 $this->add_responsive_control(
831 'skin4_overlay_blur',
832 [
833 'label' => esc_html__( 'Backdrop Blur', 'easy-elements' ),
834 'type' => \Elementor\Controls_Manager::SLIDER,
835 'size_units' => [ 'px' ],
836 'range' => [
837 'px' => [ 'min' => 0, 'max' => 50, 'step' => 1 ],
838 ],
839 'selectors' => [
840 '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content' => 'backdrop-filter: blur({{SIZE}}{{UNIT}}); -webkit-backdrop-filter: blur({{SIZE}}{{UNIT}});',
841 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'backdrop-filter: blur({{SIZE}}{{UNIT}}); -webkit-backdrop-filter: blur({{SIZE}}{{UNIT}});',
842 ],
843 ]
844 );
845
846 $this->add_control(
847 'skin4_overlay_text_color',
848 [
849 'label' => esc_html__( 'Text Color', 'easy-elements' ),
850 'type' => \Elementor\Controls_Manager::COLOR,
851 'selectors' => [
852 '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content' => 'color: {{VALUE}};',
853 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'color: {{VALUE}};',
854 ],
855 ]
856 );
857
858 $this->add_responsive_control(
859 'skin4_overlay2_circle_size',
860 [
861 'label' => esc_html__( 'Overlay 2 Circle Size', 'easy-elements' ),
862 'type' => \Elementor\Controls_Manager::SLIDER,
863 'size_units' => [ 'px', '%', 'vw' ],
864 'range' => [
865 'px' => [ 'min' => 80, 'max' => 500, 'step' => 1 ],
866 '%' => [ 'min' => 20, 'max' => 100, 'step' => 1 ],
867 'vw' => [ 'min' => 10, 'max' => 80, 'step' => 1 ],
868 ],
869 'selectors' => [
870 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'width: {{SIZE}}{{UNIT}};',
871 ],
872 'condition' => [
873 'skin4_hover_overlay' => 'overlay2',
874 ],
875 ]
876 );
877
878 $this->add_responsive_control(
879 'skin4_overlay_padding',
880 [
881 'label' => esc_html__( 'Padding', 'easy-elements' ),
882 'type' => \Elementor\Controls_Manager::DIMENSIONS,
883 'size_units' => [ 'px', 'em', '%' ],
884 'selectors' => [
885 '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
886 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
887 ],
888 ]
889 );
890
891 $this->add_responsive_control(
892 'skin4_overlay_border_radius',
893 [
894 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
895 'type' => \Elementor\Controls_Manager::DIMENSIONS,
896 'size_units' => [ 'px', '%' ],
897 'selectors' => [
898 '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
899 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
900 ],
901 ]
902 );
903
904 $this->add_control(
905 'skin4_overlay_transition',
906 [
907 'label' => esc_html__( 'Transition Duration (s)', 'easy-elements' ),
908 'type' => \Elementor\Controls_Manager::SLIDER,
909 'range' => [
910 'px' => [ 'min' => 0, 'max' => 2, 'step' => 0.1 ],
911 ],
912 'selectors' => [
913 '{{WRAPPER}} .eel-team-grid.skin4 .eel-team-hover-content' => 'transition: opacity {{SIZE}}s ease;',
914 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2' => 'transition: opacity {{SIZE}}s ease, transform {{SIZE}}s ease;',
915 ],
916 ]
917 );
918
919 $this->end_controls_section();
920
921 // Name
922 $this->start_controls_section(
923 'section_name',
924 [
925 'label' => esc_html__( 'Name', 'easy-elements' ),
926 'tab' => Controls_Manager::TAB_STYLE,
927 ]
928 );
929
930 $this->add_control(
931 'name_color',
932 [
933 'label' => esc_html__( 'Color', 'easy-elements' ),
934 'type' => Controls_Manager::COLOR,
935 'selectors' => [
936 '{{WRAPPER}} .eel-name' => 'color: {{VALUE}};',
937 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-name' => 'color: {{VALUE}};',
938 ],
939 ]
940 );
941
942 $this->add_group_control(
943 \Elementor\Group_Control_Typography::get_type(),
944 [
945 'name' => 'name_typography',
946 'label' => esc_html__( 'Typography', 'easy-elements' ),
947 'selector' => '{{WRAPPER}} .eel-name, {{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-name',
948 ]
949 );
950
951 $this->add_responsive_control(
952 'name_padding',
953 [
954 'label' => esc_html__( 'Padding', 'easy-elements' ),
955 'type' => \Elementor\Controls_Manager::DIMENSIONS,
956 'size_units' => [ 'px', 'em', '%' ],
957 'selectors' => [
958 '{{WRAPPER}} .eel-name' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
959 ],
960 ]
961 );
962
963 $this->end_controls_section();
964
965 // Designation
966 $this->start_controls_section(
967 'section_designation',
968 [
969 'label' => esc_html__( 'Designation', 'easy-elements' ),
970 'tab' => Controls_Manager::TAB_STYLE,
971 ]
972 );
973
974 $this->add_control(
975 'designation_color',
976 [
977 'label' => esc_html__( 'Color', 'easy-elements' ),
978 'type' => Controls_Manager::COLOR,
979 'selectors' => [
980 '{{WRAPPER}} .eel-designation' => 'color: {{VALUE}};',
981 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-designation' => 'color: {{VALUE}};',
982 ],
983 ]
984 );
985
986 $this->add_group_control(
987 \Elementor\Group_Control_Typography::get_type(),
988 [
989 'name' => 'designation_typography',
990 'label' => esc_html__( 'Typography', 'easy-elements' ),
991 'selector' => '{{WRAPPER}} .eel-designation, {{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-designation',
992 ]
993 );
994
995 $this->end_controls_section();
996
997 // Contact Info (Skin 05)
998 $this->start_controls_section(
999 'section_contact_info',
1000 [
1001 'label' => esc_html__( 'Contact Info', 'easy-elements' ),
1002 'tab' => Controls_Manager::TAB_STYLE,
1003 'condition' => [
1004 'team_skin' => 'skin5',
1005 'show_contact_info' => 'yes',
1006 ],
1007 ]
1008 );
1009
1010 $this->add_responsive_control(
1011 'contact_gap',
1012 [
1013 'label' => esc_html__( 'Items Gap', 'easy-elements' ),
1014 'type' => \Elementor\Controls_Manager::SLIDER,
1015 'size_units' => [ 'px', 'em' ],
1016 'range' => [ 'px' => [ 'min' => 0, 'max' => 60 ] ],
1017 'selectors' => [
1018 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact' => 'gap: {{SIZE}}{{UNIT}};',
1019 ],
1020 ]
1021 );
1022
1023 $this->add_control(
1024 'contact_item_heading',
1025 [
1026 'label' => esc_html__( 'Item', 'easy-elements' ),
1027 'type' => \Elementor\Controls_Manager::HEADING,
1028 'separator' => 'before',
1029 ]
1030 );
1031
1032 $this->start_controls_tabs( 'contact_item_tabs' );
1033
1034 $this->start_controls_tab(
1035 'contact_item_tab_normal',
1036 [ 'label' => esc_html__( 'Normal', 'easy-elements' ) ]
1037 );
1038
1039 $this->add_control(
1040 'contact_text_color',
1041 [
1042 'label' => esc_html__( 'Text Color', 'easy-elements' ),
1043 'type' => \Elementor\Controls_Manager::COLOR,
1044 'selectors' => [
1045 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item' => 'color: {{VALUE}};',
1046 ],
1047 ]
1048 );
1049
1050 $this->add_group_control(
1051 \Elementor\Group_Control_Background::get_type(),
1052 [
1053 'name' => 'contact_item_bg',
1054 'label' => esc_html__( 'Background', 'easy-elements' ),
1055 'types' => [ 'classic', 'gradient' ],
1056 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item',
1057 ]
1058 );
1059
1060 $this->end_controls_tab();
1061
1062 $this->start_controls_tab(
1063 'contact_item_tab_hover',
1064 [ 'label' => esc_html__( 'Hover', 'easy-elements' ) ]
1065 );
1066
1067 $this->add_control(
1068 'contact_text_hover_color',
1069 [
1070 'label' => esc_html__( 'Text Color', 'easy-elements' ),
1071 'type' => \Elementor\Controls_Manager::COLOR,
1072 'selectors' => [
1073 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item:hover' => 'color: {{VALUE}};',
1074 ],
1075 ]
1076 );
1077
1078 $this->add_group_control(
1079 \Elementor\Group_Control_Background::get_type(),
1080 [
1081 'name' => 'contact_item_bg_hover',
1082 'label' => esc_html__( 'Background', 'easy-elements' ),
1083 'types' => [ 'classic', 'gradient' ],
1084 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item:hover',
1085 ]
1086 );
1087
1088 $this->end_controls_tab();
1089
1090 $this->end_controls_tabs();
1091
1092 $this->add_group_control(
1093 \Elementor\Group_Control_Typography::get_type(),
1094 [
1095 'name' => 'contact_typography',
1096 'label' => esc_html__( 'Typography', 'easy-elements' ),
1097 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item',
1098 ]
1099 );
1100
1101 $this->add_responsive_control(
1102 'contact_item_radius',
1103 [
1104 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
1105 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1106 'size_units' => [ 'px', '%' ],
1107 'selectors' => [
1108 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1109 ],
1110 ]
1111 );
1112
1113 $this->add_responsive_control(
1114 'contact_item_padding',
1115 [
1116 'label' => esc_html__( 'Padding', 'easy-elements' ),
1117 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1118 'size_units' => [ 'px', 'em', '%' ],
1119 'selectors' => [
1120 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1121 ],
1122 ]
1123 );
1124
1125 $this->add_control(
1126 'contact_icon_heading',
1127 [
1128 'label' => esc_html__( 'Icon', 'easy-elements' ),
1129 'type' => \Elementor\Controls_Manager::HEADING,
1130 'separator' => 'before',
1131 ]
1132 );
1133
1134 $this->add_control(
1135 'contact_icon_color',
1136 [
1137 'label' => esc_html__( 'Icon Color', 'easy-elements' ),
1138 'type' => \Elementor\Controls_Manager::COLOR,
1139 'selectors' => [
1140 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon' => 'color: {{VALUE}};',
1141 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon svg' => 'fill: {{VALUE}};',
1142 ],
1143 ]
1144 );
1145
1146 $this->add_group_control(
1147 \Elementor\Group_Control_Background::get_type(),
1148 [
1149 'name' => 'contact_icon_bg',
1150 'label' => esc_html__( 'Icon Background', 'easy-elements' ),
1151 'types' => [ 'classic', 'gradient' ],
1152 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon',
1153 ]
1154 );
1155
1156 $this->add_responsive_control(
1157 'contact_icon_size',
1158 [
1159 'label' => esc_html__( 'Icon Size', 'easy-elements' ),
1160 'type' => \Elementor\Controls_Manager::SLIDER,
1161 'size_units' => [ 'px', 'em' ],
1162 'range' => [ 'px' => [ 'min' => 8, 'max' => 60 ] ],
1163 'selectors' => [
1164 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon i' => 'font-size: {{SIZE}}{{UNIT}};',
1165 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon svg' => 'font-size: {{SIZE}}{{UNIT}};',
1166 ],
1167 ]
1168 );
1169
1170 $this->add_responsive_control(
1171 'contact_icon_box_size',
1172 [
1173 'label' => esc_html__( 'Icon Box Size', 'easy-elements' ),
1174 'type' => \Elementor\Controls_Manager::SLIDER,
1175 'size_units' => [ 'px', 'em' ],
1176 'range' => [ 'px' => [ 'min' => 24, 'max' => 100 ] ],
1177 'selectors' => [
1178 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
1179 ],
1180 ]
1181 );
1182
1183 $this->add_responsive_control(
1184 'contact_icon_radius',
1185 [
1186 'label' => esc_html__( 'Icon Border Radius', 'easy-elements' ),
1187 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1188 'size_units' => [ 'px', '%' ],
1189 'selectors' => [
1190 '{{WRAPPER}} .eel-team-grid .ee--team-img.skin5 .eel-author-contact .eel-contact-item .eel-contact-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1191 ],
1192 ]
1193 );
1194
1195 $this->end_controls_section();
1196
1197 // Description (default, skin1, skin2)
1198 $this->start_controls_section(
1199 'section_team_description',
1200 [
1201 'label' => esc_html__( 'Description', 'easy-elements' ),
1202 'tab' => Controls_Manager::TAB_STYLE,
1203 'condition' => [
1204 'team_skin' => [ 'default', 'skin1', 'skin2' ],
1205 ],
1206 ]
1207 );
1208
1209 $this->add_control(
1210 'team_description_color',
1211 [
1212 'label' => esc_html__( 'Color', 'easy-elements' ),
1213 'type' => Controls_Manager::COLOR,
1214 'selectors' => [
1215 '{{WRAPPER}} .eel-team-description' => 'color: {{VALUE}};',
1216 ],
1217 ]
1218 );
1219
1220 $this->add_group_control(
1221 \Elementor\Group_Control_Typography::get_type(),
1222 [
1223 'name' => 'team_description_typography',
1224 'label' => esc_html__( 'Typography', 'easy-elements' ),
1225 'selector' => '{{WRAPPER}} .eel-team-description',
1226 ]
1227 );
1228
1229 $this->add_responsive_control(
1230 'team_description_margin',
1231 [
1232 'label' => esc_html__( 'Margin', 'easy-elements' ),
1233 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1234 'size_units' => [ 'px', 'em', '%' ],
1235 'selectors' => [
1236 '{{WRAPPER}} .eel-team-description' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1237 ],
1238 ]
1239 );
1240
1241 $this->add_responsive_control(
1242 'team_description_padding',
1243 [
1244 'label' => esc_html__( 'Padding', 'easy-elements' ),
1245 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1246 'size_units' => [ 'px', 'em', '%' ],
1247 'selectors' => [
1248 '{{WRAPPER}} .eel-team-description' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1249 ],
1250 ]
1251 );
1252
1253 $this->end_controls_section();
1254
1255 $this->start_controls_section(
1256 'section_description',
1257 [
1258 'label' => esc_html__( 'Description', 'easy-elements' ),
1259 'tab' => Controls_Manager::TAB_STYLE,
1260 'condition' => [
1261 'team_skin' => 'skin3',
1262 ],
1263 ]
1264 );
1265
1266
1267 $this->start_controls_tabs( 'description_colors' );
1268
1269 // Normal Tab
1270 $this->start_controls_tab(
1271 'description_colors_normal',
1272 [
1273 'label' => esc_html__( 'Normal', 'easy-elements' ),
1274 ]
1275 );
1276
1277 $this->add_control(
1278 'description_color',
1279 [
1280 'label' => esc_html__( 'Color', 'easy-elements' ),
1281 'type' => Controls_Manager::COLOR,
1282 'selectors' => [
1283 '{{WRAPPER}} .eel-image-content .eel-description' => 'color: {{VALUE}};',
1284 ],
1285 ]
1286 );
1287
1288 $this->add_group_control(
1289 \Elementor\Group_Control_Background::get_type(),
1290 [
1291 'name' => 'description_background',
1292 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1293 'types' => [ 'classic', 'gradient' ],
1294 'selector' => '{{WRAPPER}} .eel-image-content',
1295 ]
1296 );
1297
1298 $this->end_controls_tab();
1299
1300 // Hover Tab
1301 $this->start_controls_tab(
1302 'description_colors_hover',
1303 [
1304 'label' => esc_html__( 'Hover', 'easy-elements' ),
1305 ]
1306 );
1307
1308 $this->add_control(
1309 'description_color_hover',
1310 [
1311 'label' => esc_html__( 'Color', 'easy-elements' ),
1312 'type' => Controls_Manager::COLOR,
1313 'selectors' => [
1314 '{{WRAPPER}} .eel-image-content:hover .eel-description' => 'color: {{VALUE}};',
1315 ],
1316 ]
1317 );
1318
1319 $this->add_group_control(
1320 \Elementor\Group_Control_Background::get_type(),
1321 [
1322 'name' => 'description_background_hover',
1323 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1324 'types' => [ 'classic', 'gradient' ],
1325 'selector' => '{{WRAPPER}} .eel-image-content:hover:before',
1326 ]
1327 );
1328
1329 $this->add_control(
1330 'description_background_hover_opacity',
1331 [
1332 'label' => esc_html__( 'Opacity', 'easy-elements' ),
1333 'type' => \Elementor\Controls_Manager::SLIDER,
1334 'range' => [
1335 '' => [
1336 'min' => 0,
1337 'max' => 1,
1338 'step' => 0.1,
1339 ],
1340 ],
1341 'default' => [
1342 'size' => 0.5,
1343 ],
1344 'selectors' => [
1345 '{{WRAPPER}} .eel-image-content:hover::before' => 'opacity: {{SIZE}};',
1346 ],
1347 ]
1348 );
1349
1350
1351 $this->end_controls_tab();
1352
1353 $this->end_controls_tabs();
1354
1355 // Typography control (applies to both normal and hover states)
1356 $this->add_group_control(
1357 \Elementor\Group_Control_Typography::get_type(),
1358 [
1359 'name' => 'description_typography',
1360 'label' => esc_html__( 'Typography', 'easy-elements' ),
1361 'selector' => '{{WRAPPER}} .eel-image-content .eel-description',
1362 ]
1363 );
1364
1365 $this->add_control(
1366 'description_hover_transition',
1367 [
1368 'label' => esc_html__( 'Transition Duration', 'easy-elements' ),
1369 'type' => Controls_Manager::SLIDER,
1370 'size_units' => [ 's', 'ms' ],
1371 'range' => [
1372 's' => [
1373 'min' => 0,
1374 'max' => 3,
1375 'step' => 0.1,
1376 ],
1377 'ms' => [
1378 'min' => 0,
1379 'max' => 3000,
1380 'step' => 100,
1381 ],
1382 ],
1383 'default' => [
1384 'unit' => 's',
1385 'size' => 0.3,
1386 ],
1387 'selectors' => [
1388 '{{WRAPPER}} .eel-image-content' => 'transition-duration: {{SIZE}}{{UNIT}};',
1389 ],
1390 ]
1391 );
1392
1393 $this->add_responsive_control(
1394 'description_padding',
1395 [
1396 'label' => esc_html__( 'Padding', 'easy-elements' ),
1397 'type' => Controls_Manager::DIMENSIONS,
1398 'size_units' => [ 'px', '%', 'em' ],
1399 'selectors' => [
1400 '{{WRAPPER}} .eel-image-content' => 'padding: {{TOP}}{{UNIT}}} {{RIGHT}}{{UNIT}}} {{BOTTOM}}{{UNIT}}} {{LEFT}}{{UNIT}};',
1401 ],
1402 ]
1403 );
1404
1405 $this->add_control(
1406 'image_descripiton_overlay_note',
1407 [
1408 'type' => \Elementor\Controls_Manager::RAW_HTML,
1409 'raw' => '<div class="eel-popup-note">' . esc_html__('Note: This style only workable when description added for style 3.', 'easy-elements') . '</div>',
1410 'separator' => 'before',
1411 ]
1412 );
1413
1414 $this->end_controls_section();
1415
1416 // Social Item
1417 $this->start_controls_section(
1418 'section_social',
1419 [
1420 'label' => esc_html__( 'Social Icon', 'easy-elements' ),
1421 'tab' => Controls_Manager::TAB_STYLE,
1422 'condition' => [
1423 'show_social_icon' => 'yes',
1424 ]
1425 ]
1426 );
1427
1428 $this->start_controls_tabs( 's_icon_color_tabs' );
1429
1430 $this->start_controls_tab(
1431 's_icon_tab_normal',
1432 [ 'label' => esc_html__( 'Normal', 'easy-elements' ) ]
1433 );
1434
1435 $this->add_control(
1436 's_icon_color',
1437 [
1438 'label' => esc_html__( 'Color', 'easy-elements' ),
1439 'type' => Controls_Manager::COLOR,
1440 'selectors' => [
1441 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'color: {{VALUE}};',
1442 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'color: {{VALUE}};',
1443 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger)' => 'color: {{VALUE}};',
1444 ],
1445 ]
1446 );
1447
1448 $this->add_control(
1449 's_icon_bg_color',
1450 [
1451 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1452 'type' => Controls_Manager::COLOR,
1453 'selectors' => [
1454 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'background: {{VALUE}};',
1455 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'background: {{VALUE}};',
1456 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger)' => 'background: {{VALUE}};',
1457 ],
1458 ]
1459 );
1460
1461 $this->end_controls_tab();
1462
1463 $this->start_controls_tab(
1464 's_icon_tab_hover',
1465 [ 'label' => esc_html__( 'Hover', 'easy-elements' ) ]
1466 );
1467
1468 $this->add_control(
1469 's_icon_hover_color',
1470 [
1471 'label' => esc_html__( 'Color', 'easy-elements' ),
1472 'type' => Controls_Manager::COLOR,
1473 'selectors' => [
1474 '{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'color: {{VALUE}};',
1475 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'color: {{VALUE}};',
1476 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger):hover' => 'color: {{VALUE}};',
1477 ],
1478 ]
1479 );
1480
1481 $this->add_control(
1482 's_icon_hover_bg_color',
1483 [
1484 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1485 'type' => Controls_Manager::COLOR,
1486 'selectors' => [
1487 '{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'background: {{VALUE}};',
1488 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'background: {{VALUE}};',
1489 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger):hover' => 'background: {{VALUE}};',
1490 ],
1491 ]
1492 );
1493
1494 $this->end_controls_tab();
1495
1496 $this->end_controls_tabs();
1497
1498 $this->add_group_control(
1499 \Elementor\Group_Control_Typography::get_type(),
1500 [
1501 'name' => 's_icon_typography',
1502 'label' => esc_html__( 'Typography', 'easy-elements' ),
1503 'selector' => '{{WRAPPER}} .eel-team-grid-social ul li a, {{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a, {{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger)',
1504 ]
1505 );
1506 $this->add_responsive_control(
1507 's_icon_gap',
1508 [
1509 'label' => esc_html__( 'Icon Gap', 'easy-elements' ),
1510 'type' => \Elementor\Controls_Manager::SLIDER,
1511 'size_units' => [ 'px', 'em'],
1512 'selectors' => [
1513 '{{WRAPPER}} .eel-team-grid-social ul' => 'gap: {{SIZE}}{{UNIT}};',
1514 ],
1515 ]
1516 );
1517 $this->add_responsive_control(
1518 's_icon_width-height',
1519 [
1520 'label' => esc_html__( 'Button Size', 'easy-elements' ),
1521 'type' => \Elementor\Controls_Manager::SLIDER,
1522 'size_units' => [ 'px', 'em'],
1523 'selectors' => [
1524 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
1525 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
1526 '{{WRAPPER}} .eel-team-grid.skin4 .ee--team-img .eel-team-hover-content.overlay2 .eel-team-grid-social ul li a:not(.eel-popup-trigger)' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
1527 ],
1528 ]
1529 );
1530 $this->add_responsive_control(
1531 's_icon_radius',
1532 [
1533 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
1534 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1535 'size_units' => [ 'px', '%' ],
1536 'selectors' => [
1537 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1538 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1539 ],
1540 ]
1541 );
1542 $this->add_responsive_control(
1543 's_icon_area_padding',
1544 [
1545 'label' => esc_html__( 'Area Padding', 'easy-elements' ),
1546 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1547 'size_units' => [ 'px', '%' ],
1548 'selectors' => [
1549 '{{WRAPPER}} .eel-team-grid-social' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1550 ],
1551 ]
1552 );
1553 $this->add_group_control(
1554 \Elementor\Group_Control_Border::get_type(),
1555 [
1556 'name' => 'social_item_border',
1557 'label' => esc_html__( 'Area Border', 'easy-elements' ),
1558 'selector' => '{{WRAPPER}} .eel-team-grid .eel-team-grid-social.default',
1559 'condition' => [
1560 'social_icon_position' => 'default',
1561 ]
1562 ]
1563 );
1564 $this->add_control(
1565 'social_item_border_note',
1566 [
1567 'type' => \Elementor\Controls_Manager::RAW_HTML,
1568 'raw' => '<strong>Note:</strong>Social Area Border',
1569 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1570 'condition' => [
1571 'social_icon_position' => 'default',
1572 ]
1573 ]
1574 );
1575 $this->add_responsive_control(
1576 'team_social_icon_alignment',
1577 [
1578 'label' => esc_html__( 'Alignment', 'easy-elements' ),
1579 'type' => \Elementor\Controls_Manager::CHOOSE,
1580 'options' => [
1581 'flex-start' => [
1582 'title' => esc_html__( 'Left', 'easy-elements' ),
1583 'icon' => 'eicon-justify-start-h',
1584 ],
1585 'center' => [
1586 'title' => esc_html__( 'Center', 'easy-elements' ),
1587 'icon' => 'eicon-justify-center-h',
1588 ],
1589 'right' => [
1590 'title' => esc_html__( 'Right', 'easy-elements' ),
1591 'icon' => 'eicon-justify-end-h',
1592 ],
1593 ],
1594 'selectors' => [
1595 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-grid-social.default ul' => 'justify-content: {{VALUE}};',
1596 ],
1597 'condition' => [
1598 'social_icon_position' => 'default',
1599 ]
1600 ]
1601 );
1602
1603 // Normal Box Shadow
1604 $this->add_group_control(
1605 \Elementor\Group_Control_Box_Shadow::get_type(),
1606 [
1607 'name' => 'item_box_shadow',
1608 'label' => esc_html__( 'Box Shadow', 'easy-elements' ),
1609 'selector' => '{{WRAPPER}} .eel-team-grid-social ul li a',
1610 'condition' => [
1611 'enable_multiple_shadow!' => 'yes',
1612 ],
1613 ]
1614 );
1615
1616 // Multiple Shadow Switcher
1617 $this->add_control(
1618 'enable_multiple_shadow',
1619 [
1620 'label' => esc_html__( 'Enable Multiple Shadow', 'easy-elements' ),
1621 'type' => \Elementor\Controls_Manager::SWITCHER,
1622 'label_on' => esc_html__( 'Yes', 'easy-elements' ),
1623 'label_off' => esc_html__( 'No', 'easy-elements' ),
1624 'return_value' => 'yes',
1625 'default' => '',
1626 ]
1627 );
1628
1629 // Multiple Shadow Control
1630 $this->add_control(
1631 'multiple_box_shadow',
1632 [
1633 'label' => esc_html__( 'Multiple Box Shadow', 'easy-elements' ),
1634 'type' => \Elementor\Controls_Manager::TEXTAREA,
1635 'rows' => 4,
1636 'default' => '',
1637 'label_block' => true,
1638 'selectors' => [
1639 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'box-shadow: {{VALUE}};',
1640 ],
1641 'condition' => [
1642 'enable_multiple_shadow' => 'yes',
1643 ],
1644 ]
1645 );
1646
1647
1648
1649 $this->end_controls_section();
1650
1651 // Popup
1652 $this->start_controls_section(
1653 'section_popup_style',
1654 [
1655 'label' => esc_html__( 'Popup Style', 'easy-elements' ),
1656 'tab' => Controls_Manager::TAB_STYLE,
1657 'condition' => [
1658 'action_type' => 'popup',
1659 ],
1660 ]
1661 );
1662
1663 $this->add_control(
1664 'popup_bg_color',
1665 [
1666 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1667 'type' => Controls_Manager::COLOR,
1668 'selectors' => [
1669 '{{WRAPPER}} .eel-popup-content' => 'background-color: {{VALUE}};',
1670 ],
1671 ]
1672 );
1673
1674 $this->add_control(
1675 'popup_name_color',
1676 [
1677 'label' => esc_html__( 'Name Color', 'easy-elements' ),
1678 'type' => Controls_Manager::COLOR,
1679 'selectors' => [
1680 '{{WRAPPER}} .eel-popup-name .eel-name' => 'color: {{VALUE}};',
1681 ],
1682 ]
1683 );
1684 $this->add_group_control(
1685 \Elementor\Group_Control_Typography::get_type(),
1686 [
1687 'name' => 'popup_name_typography',
1688 'label' => esc_html__( 'Name Typography', 'easy-elements' ),
1689 'selector' => '{{WRAPPER}} .eel-popup-name .eel-name',
1690 ]
1691 );
1692
1693 $this->add_control(
1694 'popup_designation_color',
1695 [
1696 'label' => esc_html__( 'Designation Color', 'easy-elements' ),
1697 'type' => Controls_Manager::COLOR,
1698 'selectors' => [
1699 '{{WRAPPER}} .eel-popup-designation' => 'color: {{VALUE}};',
1700 ],
1701 ]
1702 );
1703 $this->add_group_control(
1704 \Elementor\Group_Control_Typography::get_type(),
1705 [
1706 'name' => 'popup_designation_typography',
1707 'label' => esc_html__( 'Designation Typography', 'easy-elements' ),
1708 'selector' => '{{WRAPPER}} .eel-popup-designation',
1709 ]
1710 );
1711
1712 $this->add_control(
1713 'popup_details_color',
1714 [
1715 'label' => esc_html__( 'Details Color', 'easy-elements' ),
1716 'type' => Controls_Manager::COLOR,
1717 'selectors' => [
1718 '{{WRAPPER}} .eel-popup-details' => 'color: {{VALUE}};',
1719 ],
1720 ]
1721 );
1722 $this->add_group_control(
1723 \Elementor\Group_Control_Typography::get_type(),
1724 [
1725 'name' => 'popup_details_typography',
1726 'label' => esc_html__( 'Details Typography', 'easy-elements' ),
1727 'selector' => '{{WRAPPER}} .eel-popup-details',
1728 ]
1729 );
1730 $this->add_control(
1731 'popup_close_color',
1732 [
1733 'label' => esc_html__( 'Close Icon Color', 'easy-elements' ),
1734 'type' => Controls_Manager::COLOR,
1735 'selectors' => [
1736 '{{WRAPPER}} .eel-popup-close' => 'color: {{VALUE}};',
1737 ],
1738 ]
1739 );
1740
1741 $this->end_controls_section();
1742 }
1743
1744 protected function render() {
1745 $settings = $this->get_settings_for_display();
1746 $team_skin = $settings['team_skin'];
1747 ?>
1748
1749 <div class="eel-team-wraps eel-team-grid grid-layout <?php echo esc_attr( $team_skin )?>">
1750 <div class="grid-wrap">
1751 <?php
1752 $image_id = $settings['image']['id'] ?? '';
1753 $image_size = $settings['image_size'] ?? 'full';
1754 if ( $image_id ) {
1755 $image_data = wp_get_attachment_image_src( $image_id, $image_size );
1756 $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
1757 $title = get_the_title( $image_id );
1758 } else {
1759 $fallback_url = Utils::get_placeholder_image_src();
1760 $image_data = [ $fallback_url, 600, 400 ];
1761 $alt = esc_attr__( 'Team Image', 'easy-elements' );
1762 $title = esc_attr__( 'Team Image', 'easy-elements' );
1763 }
1764
1765 $action_type = $settings['action_type'] ?? 'link';
1766 $link = $settings['link']['url'] ?? '';
1767 $target = ! empty( $settings['link']['is_external'] ) ? '_blank' : '';
1768 $nofollow = ! empty( $settings['link']['nofollow'] ) ? 'nofollow' : '';
1769 $fetchpriority = $settings['fetchpriority'] ?? '';
1770 $unique_id = uniqid('eel_team_');
1771
1772 $title_tag = isset( $settings['title_tag'] ) ? $settings['title_tag'] : 'h4';
1773 $name = sprintf( '<%1$s class="eel-name">%2$s</%1$s>', esc_attr( $title_tag ), esc_html( $settings['_name'] ));
1774 $designation = $settings['designation'] ?? '';
1775 $details = $settings['details'] ?? '';
1776 ?>
1777 <?php if ($team_skin == 'default'): ?>
1778 <div class="grid-item">
1779 <div class="ee--team-img">
1780 <?php if ( $image_data ) : ?>
1781 <div class="eel-team-img-area">
1782 <?php if ( $action_type === 'link' && $link ) : ?>
1783 <a href="<?php echo esc_url( $link ); ?>"
1784 <?php if ( $target ) : ?>target="<?php echo esc_attr( $target ); ?>"<?php endif; ?>
1785 <?php if ( $nofollow ) : ?>rel="<?php echo esc_attr( $nofollow ); ?>"<?php endif; ?>>
1786 <?php elseif ( $action_type === 'popup' ) : ?>
1787 <a href="#<?php echo esc_attr($unique_id); ?>" class="eel-popup-trigger" data-popup-id="<?php echo esc_attr($unique_id); ?>">
1788 <?php endif; ?>
1789 <div class="eel-team-img-box">
1790 <img class="eel-team-img"
1791 src="<?php echo esc_url( $image_data[0] ); ?>"
1792 width="<?php echo esc_attr( $image_data[1] ); ?>"
1793 height="<?php echo esc_attr( $image_data[2] ); ?>"
1794 alt="<?php echo esc_attr( $alt ); ?>"
1795 title="<?php echo esc_attr( $title ); ?>"
1796 loading="lazy"
1797 decoding="async" fetchpriority="<?php echo esc_attr( $fetchpriority ); ?>">
1798 <div class="eel-image-below-bg"></div>
1799 <div class="eel-image-overlay"></div>
1800 </div>
1801 <?php if ( ($action_type === 'link' && $link) || $action_type === 'popup' ) : ?>
1802 </a>
1803 <?php endif; ?>
1804 <?php if($settings['content_show'] == 'inside'):?>
1805 <div class="eel-name-deg-wrap <?php echo esc_attr( $settings['content_show'] )?>">
1806 <?php if ( ! empty( $name ) ) :
1807 echo wp_kses_post( $name );
1808 endif; ?>
1809 <?php if ( ! empty( $designation ) ) : ?>
1810 <div class="eel-designation"><?php echo esc_html( $designation ); ?></div>
1811 <?php if ( ! empty( $details ) ) : ?>
1812 <div class="eel-team-description"><?php echo nl2br( esc_html( $details ) ); ?></div>
1813 <?php endif; ?>
1814 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] == 'default'): ?>
1815 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1816 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1817 <div class="eel-team-social-hover">
1818 <a href="#">
1819 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1820 </a>
1821 </div>
1822 <?php endif;?>
1823 <ul>
1824 <?php foreach ( $settings['social_links'] as $item ):?>
1825 <li>
1826 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1827 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1828 </a>
1829 </li>
1830 <?php endforeach; ?>
1831 </ul>
1832 </div>
1833 <?php endif; ?>
1834 <?php endif; ?>
1835 </div>
1836 <?php endif; ?>
1837 </div>
1838 <?php endif; ?>
1839 <?php if($settings['content_show'] != 'inside'):?>
1840 <div class="eel-name-deg-wrap">
1841 <?php if ( ! empty( $name ) ) :
1842 echo wp_kses_post( $name );
1843 endif; ?>
1844 <?php if ( ! empty( $designation ) ) : ?>
1845 <div class="eel-designation"><?php echo esc_html( $designation ); ?></div>
1846 <?php endif; ?>
1847 <?php if ( ! empty( $details ) ) : ?>
1848 <div class="eel-team-description"><?php echo nl2br( esc_html( $details ) ); ?></div>
1849 <?php endif; ?>
1850 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] == 'default'): ?>
1851 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1852 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1853 <div class="eel-team-social-hover">
1854 <a href="#">
1855 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1856 </a>
1857 </div>
1858 <?php endif;?>
1859 <ul>
1860 <?php foreach ( $settings['social_links'] as $item ):?>
1861 <li>
1862 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1863 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1864 </a>
1865 </li>
1866 <?php endforeach; ?>
1867 </ul>
1868 </div>
1869 <?php endif; ?>
1870 </div>
1871 <?php endif; ?>
1872 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] != 'default'): ?>
1873 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1874 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1875 <div class="eel-team-social-hover">
1876 <a href="#">
1877 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1878 </a>
1879 </div>
1880 <?php endif;?>
1881 <ul>
1882 <?php foreach ( $settings['social_links'] as $item ):?>
1883 <li>
1884 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1885 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1886 </a>
1887 </li>
1888 <?php endforeach; ?>
1889 </ul>
1890 </div>
1891 <?php endif; ?>
1892 </div>
1893 </div>
1894 <!-- Others Skins -->
1895 <?php else:
1896 include plugin_dir_path(__FILE__) . 'skins/' . $team_skin . '.php';
1897 endif;
1898 ?>
1899 <?php if ( $action_type === 'popup' ) : ?>
1900 <div id="<?php echo esc_attr($unique_id); ?>" class="eel-popup-modal" style="display:none;">
1901 <div class="eel-popup-content">
1902 <span class="eel-popup-close">&times;</span>
1903 <div class="eel-popup-header">
1904 <?php if ( ! empty( $name ) ) : ?>
1905 <div class="eel-popup-name"><?php echo wp_kses_post( $name ); ?></div>
1906 <?php endif; ?>
1907 <?php if ( ! empty( $designation ) ) : ?>
1908 <div class="eel-popup-designation"><?php echo esc_html( $designation ); ?></div>
1909 <?php endif; ?>
1910 </div>
1911 <div class="eel-popup-details">
1912 <?php if ( ! empty( $details ) ) : ?>
1913 <?php echo nl2br( esc_html( $details ) ); ?>
1914 <?php else : ?>
1915 <p><?php esc_html_e( 'No additional details available.', 'easy-elements' ); ?></p>
1916 <?php endif; ?>
1917 </div>
1918 </div>
1919 </div>
1920 <?php endif; ?>
1921 </div>
1922 </div>
1923 <?php
1924 }
1925 }
1926