PluginProbe
Easy Elements for Elementor – Addons & Website Templates / 1.3.9
Easy Elements for Elementor – Addons & Website Templates v1.3.9
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.3.9, at widgets/team-grid/team-grid.php

1,326 lines 57.8 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 ],
67 ]
68 );
69
70 $this->add_control(
71 'image',
72 [
73 'label' => esc_html__('Image', 'easy-elements'),
74 'type' => Controls_Manager::MEDIA,
75 'default' => [
76 'url' => Utils::get_placeholder_image_src(),
77 ],
78 ]
79 );
80
81 $this->add_control(
82 '_name',
83 [
84 'label' => esc_html__( 'Name', 'easy-elements' ),
85 'type' => \Elementor\Controls_Manager::TEXT,
86 'default' => esc_html__( 'Harry Nelson', 'easy-elements' ),
87 'label_block' => true,
88 ]
89 );
90
91 $this->add_control(
92 'title_tag',
93 [
94 'label' => esc_html__( 'Title HTML Tag', 'easy-elements' ),
95 'type' => \Elementor\Controls_Manager::SELECT,
96 'default' => 'h4',
97 'options' => [
98 'h1' => 'H1',
99 'h2' => 'H2',
100 'h3' => 'H3',
101 'h4' => 'H4',
102 'h5' => 'H5',
103 'h6' => 'H6',
104 'div' => 'div',
105 'span' => 'span',
106 'p' => 'p',
107 ],
108 ]
109 );
110
111 $this->add_control(
112 'designation',
113 [
114 'label' => esc_html__('Designation', 'easy-elements'),
115 'type' => Controls_Manager::TEXT,
116 'default' => esc_html__( 'Head of Operations', 'easy-elements' ),
117 'label_block' => true,
118 ]
119 );
120 $this->add_control(
121 'details',
122 [
123 'label' => esc_html__('Details', 'easy-elements'),
124 'type' => \Elementor\Controls_Manager::TEXTAREA,
125 'default' => '',
126 'rows' => 4,
127 'placeholder' => esc_html__('Enter team member details here...', 'easy-elements'),
128 'label_block' => true,
129 'description' => esc_html__('This field is shown in the popup when Action Type is set to Popup.', 'easy-elements'),
130 ]
131 );
132 $this->add_control(
133 'action_type',
134 [
135 'label' => esc_html__('Action Type', 'easy-elements'),
136 'type' => \Elementor\Controls_Manager::SELECT,
137 'options' => [
138 'link' => esc_html__('Link', 'easy-elements'),
139 'popup' => esc_html__('Popup', 'easy-elements'),
140 ],
141 'default' => 'link',
142 'description' => esc_html__('Choose between link or popup action.', 'easy-elements'),
143 ]
144 );
145 $this->add_control(
146 'link',
147 [
148 'label' => esc_html__('Link', 'easy-elements'),
149 'type' => Controls_Manager::URL,
150 'placeholder' => 'https://example.com',
151 'description' => esc_html__('You can add a page link here, such as the team member\'s profile page.', 'easy-elements'),
152 'condition' => [
153 'action_type' => 'link',
154 ],
155 ]
156 );
157 $this->add_control(
158 'content_show',
159 [
160 'label' => esc_html__('Content Show', 'easy-elements'),
161 'type' => \Elementor\Controls_Manager::SELECT,
162 'default' => 'inside',
163 'options' => [
164 'inside' => esc_html__('Inside Image', 'easy-elements'),
165 'normal' => esc_html__('Normal', 'easy-elements'),
166 ],
167 'condition' => [
168 'team_skin' => ['default','skin2'],
169 ],
170 ]
171 );
172
173 $this->add_group_control(
174 Group_Control_Image_Size::get_type(),
175 [
176 'name' => 'image',
177 'default' => 'full',
178 ]
179 );
180
181 $this->add_control(
182 'fetchpriority',
183 [
184 'label' => __('Image Fetch Priority', 'easy-elements'),
185 'type' => \Elementor\Controls_Manager::SELECT,
186 'options' => [
187 '' => __('Default', 'easy-elements'),
188 'high' => __('High', 'easy-elements'),
189 'low' => __('Low', 'easy-elements'),
190 ],
191 'default' => 'low',
192 ]
193 );
194
195 $this->add_control(
196 'image_overlay_note',
197 [
198 'type' => \Elementor\Controls_Manager::RAW_HTML,
199 'raw' => '<div class="eel-popup-note">' . esc_html__('Note: The Image Overlay supports both classic (solid color) and gradient backgrounds.', 'easy-elements') . '</div>',
200 'separator' => 'before',
201 ]
202 );
203 $this->add_group_control(
204 \Elementor\Group_Control_Background::get_type(),
205 [
206 'name' => 'image_overlay',
207 'label' => esc_html__('Image Overlay', 'easy-elements'),
208 'types' => [ 'classic', 'gradient' ],
209 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-image-overlay',
210 ]
211 );
212 $this->add_control(
213 'show_social_icon',
214 [
215 'label' => esc_html__( 'Show Social Icon', 'easy-elements' ),
216 'type' => \Elementor\Controls_Manager::SWITCHER,
217 'label_on' => esc_html__( 'Show', 'easy-elements' ),
218 'label_off' => esc_html__( 'Hide', 'easy-elements' ),
219 'return_value' => 'yes',
220 'default' => 'no',
221 'separator' => 'before',
222 ]
223 );
224
225 $this->end_controls_section();
226
227 // Social Item
228 $this->start_controls_section(
229 'social_icon_section',
230 [
231 'label' => esc_html__( 'Social Settings', 'easy-elements' ),
232 'tab' => Controls_Manager::TAB_CONTENT,
233 'condition' => [
234 'show_social_icon' => 'yes',
235 ],
236 ]
237 );
238
239 $this->add_control(
240 'social_icon_position',
241 [
242 'label' => esc_html__('Icon Position', 'easy-elements'),
243 'type' => \Elementor\Controls_Manager::SELECT,
244 'default' => 'default',
245 'options' => [
246 'default' => esc_html__('Default', 'easy-elements'),
247 'posi_left' => esc_html__('Top Left', 'easy-elements'),
248 'posi_right' => esc_html__('Top Right', 'easy-elements'),
249 'posi_botttom_left' => esc_html__('Bottom Left', 'easy-elements'),
250 'posi_botttom_right' => esc_html__('Bottom Right', 'easy-elements'),
251 ],
252 ]
253 );
254 $this->add_control(
255 'social_icon_show',
256 [
257 'label' => esc_html__('Icon Show', 'easy-elements'),
258 'type' => \Elementor\Controls_Manager::SELECT,
259 'default' => 'dafault_show',
260 'options' => [
261 'dafault_show' => esc_html__('Dafault Show', 'easy-elements'),
262 'hover_show' => esc_html__('Icon Hover Show', 'easy-elements'),
263 ],
264 'condition' => [
265 'social_icon_position!' => 'default',
266 ],
267 ]
268 );
269 $this->add_control(
270 'social_hover_icon',
271 [
272 'label' => esc_html__( 'Hover Icon', 'easy-elements' ),
273 'type' => \Elementor\Controls_Manager::ICONS,
274 'label_block' => true,
275 'default' => [
276 'value' => 'fas fa-plus',
277 'library' => 'fa-solid',
278 ],
279 'condition' => [
280 'social_icon_show' => 'hover_show',
281 'social_icon_position!' => 'default',
282 ],
283 ]
284 );
285 $this->add_responsive_control(
286 's_icon_posi_top',
287 [
288 'label' => esc_html__( 'Top Position', 'easy-elements' ),
289 'type' => \Elementor\Controls_Manager::SLIDER,
290 'size_units' => [ 'px', 'em','%'],
291 'range' => [
292 'px' => [
293 'min' => 0,
294 'max' => 500,
295 ],
296 ],
297 'selectors' => [
298 '{{WRAPPER}} .eel-team-grid-social.posi_left, {{WRAPPER}} .eel-team-grid-social.posi_right' => 'top: {{SIZE}}{{UNIT}};',
299 ],
300 'condition' => [
301 'social_icon_position' => ['posi_left','posi_right'],
302 ],
303 ]
304 );
305 $this->add_responsive_control(
306 's_icon_posi_bottom',
307 [
308 'label' => esc_html__( 'Bottom Position', 'easy-elements' ),
309 'type' => \Elementor\Controls_Manager::SLIDER,
310 'size_units' => [ 'px', 'em','%'],
311 'range' => [
312 'px' => [
313 'min' => 0,
314 'max' => 500,
315 ],
316 ],
317 'selectors' => [
318 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_left, {{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'bottom: {{SIZE}}{{UNIT}};',
319 ],
320 'condition' => [
321 'social_icon_position' => ['posi_botttom_left','posi_botttom_right'],
322 ],
323 ]
324 );
325 $this->add_responsive_control(
326 's_icon_posi_left',
327 [
328 'label' => esc_html__( 'Left Position', 'easy-elements' ),
329 'type' => \Elementor\Controls_Manager::SLIDER,
330 'size_units' => [ 'px', 'em','%'],
331 'range' => [
332 'px' => [
333 'min' => 0,
334 'max' => 500,
335 ],
336 ],
337 'selectors' => [
338 '{{WRAPPER}} .eel-team-grid-social.posi_left' => 'left: {{SIZE}}{{UNIT}};',
339 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_left' => 'left: {{SIZE}}{{UNIT}};',
340 ],
341 'condition' => [
342 'social_icon_position' => ['posi_left','posi_botttom_left'],
343 ],
344 ]
345 );
346 $this->add_responsive_control(
347 's_icon_posi_right',
348 [
349 'label' => esc_html__( 'Right Position', 'easy-elements' ),
350 'type' => \Elementor\Controls_Manager::SLIDER,
351 'size_units' => [ 'px', 'em','%'],
352 'range' => [
353 'px' => [
354 'min' => 0,
355 'max' => 500,
356 ],
357 ],
358 'selectors' => [
359 '{{WRAPPER}} .eel-team-grid-social.posi_right' => 'right: {{SIZE}}{{UNIT}};',
360 '{{WRAPPER}} .eel-team-grid-social.posi_botttom_right' => 'right: {{SIZE}}{{UNIT}};',
361 ],
362 'condition' => [
363 'social_icon_position' => ['posi_right','posi_botttom_right'],
364 ],
365 ]
366 );
367
368 $this->add_control(
369 'social_links',
370 [
371 'label' => esc_html__( 'Social Links', 'easy-elements' ),
372 'type' => Controls_Manager::REPEATER,
373 'fields' => [
374 [
375 'name' => 'link_url',
376 'label' => esc_html__( 'Link URL', 'easy-elements' ),
377 'type' => Controls_Manager::URL,
378 'default' => [
379 'url' => '#',
380 'is_external' => true,
381 'nofollow' => false,
382 ],
383 ],
384 [
385 'name' => 'icon',
386 'label' => esc_html__( 'Icon', 'easy-elements' ),
387 'type' => Controls_Manager::ICONS,
388 'default' => [
389 'value' => 'fab fa-facebook-f',
390 'library' => 'fa-brands',
391 ],
392 ],
393 ],
394 'default' => [
395 [
396 'link_url' => [ 'url' => '#' ],
397 'icon' => [ 'value' => 'fab fa-facebook-f' ],
398 ],
399 ],
400 'title_field' => '<i class="{{ icon.value }}"></i> {{{ icon.value.replace(/^(fab fa-|fas fa-|far fa-|fa fa-)/, "") }}}',
401 ]
402 );
403
404 $this->end_controls_section();
405
406 // Tab STYLE
407 $this->start_controls_section(
408 'section_item_per',
409 [
410 'label' => esc_html__( 'Team Item', 'easy-elements' ),
411 'tab' => Controls_Manager::TAB_STYLE,
412 ]
413 );
414
415 $this->add_group_control(
416 \Elementor\Group_Control_Background::get_type(),
417 [
418 'name' => 'team_wrap_background',
419 'label' => __( 'Background', 'easy-elements' ),
420 'types' => [ 'classic', 'gradient' ],
421 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
422 ]
423 );
424
425 $this->add_responsive_control(
426 'item_padding',
427 [
428 'label' => esc_html__( 'Padding', 'easy-elements' ),
429 'type' => \Elementor\Controls_Manager::DIMENSIONS,
430 'size_units' => [ 'px', '%' ],
431 'selectors' => [
432 '{{WRAPPER}} .eel-team-grid .ee--team-img' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
433 ],
434 ]
435 );
436 $this->add_responsive_control(
437 'item_bdr_radius',
438 [
439 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
440 'type' => \Elementor\Controls_Manager::DIMENSIONS,
441 'size_units' => [ 'px', '%' ],
442 'selectors' => [
443 '{{WRAPPER}} .eel-team-grid .ee--team-img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
444 ],
445 ]
446 );
447 $this->add_group_control(
448 \Elementor\Group_Control_Border::get_type(),
449 [
450 'name' => 'team_border',
451 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
452 ]
453 );
454 $this->add_control(
455 'team_hover_border_color',
456 [
457 'label' => esc_html__( 'Item Hover Border Color', 'easy-elements' ),
458 'type' => \Elementor\Controls_Manager::COLOR,
459 'selectors' => [
460 '{{WRAPPER}} .eel-team-grid .ee--team-img:hover' => 'border-color: {{VALUE}}',
461 ],
462 ]
463 );
464 $this->add_group_control(
465 \Elementor\Group_Control_Box_Shadow::get_type(),
466 [
467 'name' => 'team_box_shadow',
468 'label' => esc_html__('Box Shadow', 'easy-elements'),
469 'selector' => '{{WRAPPER}} .eel-team-grid .ee--team-img',
470 ]
471 );
472
473 $this->end_controls_section();
474
475 // Image
476 $this->start_controls_section(
477 'section_image',
478 [
479 'label' => esc_html__( 'Image', 'easy-elements' ),
480 'tab' => Controls_Manager::TAB_STYLE,
481 ]
482 );
483 $this->add_responsive_control(
484 'image_width',
485 [
486 'label' => esc_html__( 'Image Width', 'easy-elements' ),
487 'type' => \Elementor\Controls_Manager::SLIDER,
488 'size_units' => [ 'px', 'em', '%' ],
489 'range' => [
490 'px' => [
491 'max' => 500,
492 ],
493 ],
494 'selectors' => [
495 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'max-width: {{SIZE}}{{UNIT}};',
496 ],
497 ]
498 );
499 $this->add_responsive_control(
500 'image_height',
501 [
502 'label' => esc_html__( 'Image Height', 'easy-elements' ),
503 'type' => \Elementor\Controls_Manager::SLIDER,
504 'size_units' => [ 'px', 'em', '%' ],
505 'range' => [
506 'px' => [
507 'max' => 500,
508 ],
509 ],
510 'selectors' => [
511 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box img' => 'height: {{SIZE}}{{UNIT}};',
512 ],
513 ]
514 );
515 $this->add_responsive_control(
516 'image_padding',
517 [
518 'label' => esc_html__( 'Padding', 'easy-elements' ),
519 'type' => \Elementor\Controls_Manager::DIMENSIONS,
520 'size_units' => [ 'px', 'em', '%' ],
521 'selectors' => [
522 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
523 ],
524 ]
525 );
526 $this->add_responsive_control(
527 'image_border_radius',
528 [
529 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
530 'type' => \Elementor\Controls_Manager::DIMENSIONS,
531 'size_units' => [ 'px', '%' ],
532 'selectors' => [
533 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-box' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
534 ],
535 ]
536 );
537 $this->add_control(
538 'image_below_bg',
539 [
540 'label' => esc_html__( 'Below Background Color', 'easy-elements' ),
541 'type' => \Elementor\Controls_Manager::COLOR,
542 'selectors' => [
543 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'background-color: {{VALUE}}',
544 ],
545 ]
546 );
547 $this->add_responsive_control(
548 'image_below_height',
549 [
550 'label' => esc_html__( 'Image BG Height', 'easy-elements' ),
551 'type' => \Elementor\Controls_Manager::SLIDER,
552 'selectors' => [
553 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-img-area .eel-image-below-bg' => 'height: {{SIZE}}%;',
554 ],
555 ]
556 );
557 $this->add_responsive_control(
558 'image_below_border_radius',
559 [
560 'label' => esc_html__( 'Below BG Border Radius', 'easy-elements' ),
561 'type' => \Elementor\Controls_Manager::DIMENSIONS,
562 'size_units' => [ 'px', '%' ],
563 'selectors' => [
564 '{{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}};',
565 ],
566 ]
567 );
568
569 $this->end_controls_section();
570
571 // Name & Designation
572 $this->start_controls_section(
573 'section_item',
574 [
575 'label' => esc_html__( 'Name & Designation Area', 'easy-elements' ),
576 'tab' => Controls_Manager::TAB_STYLE,
577 ]
578 );
579
580 $this->add_control(
581 '_bg_color',
582 [
583 'label' => esc_html__( 'Background Color', 'easy-elements' ),
584 'type' => \Elementor\Controls_Manager::COLOR,
585 'selectors' => [
586 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'background-color: {{VALUE}}',
587 ],
588 'condition' => [
589 'team_skin!' => ['skin1']
590 ],
591 ]
592 );
593
594 $this->add_responsive_control(
595 'wrap_padding',
596 [
597 'label' => esc_html__( 'Padding', 'easy-elements' ),
598 'type' => \Elementor\Controls_Manager::DIMENSIONS,
599 'size_units' => [ 'px', 'em', '%' ],
600 'selectors' => [
601 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
602 ],
603 ]
604 );
605 $this->add_responsive_control(
606 'wrap_margin',
607 [
608 'label' => esc_html__( 'Margin', 'easy-elements' ),
609 'type' => \Elementor\Controls_Manager::DIMENSIONS,
610 'size_units' => [ 'px', 'em', '%' ],
611 'selectors' => [
612 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
613 ],
614 ]
615 );
616
617 $this->add_responsive_control(
618 '_bdr_radius',
619 [
620 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
621 'type' => \Elementor\Controls_Manager::DIMENSIONS,
622 'size_units' => [ 'px', '%' ],
623 'selectors' => [
624 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
625 ],
626 'condition' => [
627 'team_skin!' => ['skin1']
628 ],
629 ]
630 );
631 $this->add_responsive_control(
632 'team_content_alignment',
633 [
634 'label' => esc_html__( 'Alignment', 'easy-elements' ),
635 'type' => \Elementor\Controls_Manager::CHOOSE,
636 'options' => [
637 'left' => [
638 'title' => esc_html__( 'Left', 'easy-elements' ),
639 'icon' => 'eicon-text-align-left',
640 ],
641 'center' => [
642 'title' => esc_html__( 'Center', 'easy-elements' ),
643 'icon' => 'eicon-text-align-center',
644 ],
645 'right' => [
646 'title' => esc_html__( 'Right', 'easy-elements' ),
647 'icon' => 'eicon-text-align-right',
648 ],
649 ],
650 'selectors' => [
651 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-name-deg-wrap' => 'text-align: {{VALUE}};',
652 ],
653 ]
654 );
655
656 $this->end_controls_section();
657
658 // Name
659 $this->start_controls_section(
660 'section_name',
661 [
662 'label' => esc_html__( 'Name', 'easy-elements' ),
663 'tab' => Controls_Manager::TAB_STYLE,
664 ]
665 );
666
667 $this->add_control(
668 'name_color',
669 [
670 'label' => esc_html__( 'Color', 'easy-elements' ),
671 'type' => Controls_Manager::COLOR,
672 'selectors' => [
673 '{{WRAPPER}} .eel-name' => 'color: {{VALUE}};',
674 ],
675 ]
676 );
677
678 $this->add_group_control(
679 \Elementor\Group_Control_Typography::get_type(),
680 [
681 'name' => 'name_typography',
682 'label' => esc_html__( 'Typography', 'easy-elements' ),
683 'selector' => '{{WRAPPER}} .eel-name',
684 ]
685 );
686
687 $this->add_responsive_control(
688 'name_padding',
689 [
690 'label' => esc_html__( 'Padding', 'easy-elements' ),
691 'type' => \Elementor\Controls_Manager::DIMENSIONS,
692 'size_units' => [ 'px', 'em', '%' ],
693 'selectors' => [
694 '{{WRAPPER}} .eel-name' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
695 ],
696 ]
697 );
698
699 $this->end_controls_section();
700
701 // Designation
702 $this->start_controls_section(
703 'section_designation',
704 [
705 'label' => esc_html__( 'Designation', 'easy-elements' ),
706 'tab' => Controls_Manager::TAB_STYLE,
707 ]
708 );
709
710 $this->add_control(
711 'designation_color',
712 [
713 'label' => esc_html__( 'Color', 'easy-elements' ),
714 'type' => Controls_Manager::COLOR,
715 'selectors' => [
716 '{{WRAPPER}} .eel-designation' => 'color: {{VALUE}};',
717 ],
718 ]
719 );
720
721 $this->add_group_control(
722 \Elementor\Group_Control_Typography::get_type(),
723 [
724 'name' => 'designation_typography',
725 'label' => esc_html__( 'Typography', 'easy-elements' ),
726 'selector' => '{{WRAPPER}} .eel-designation',
727 ]
728 );
729
730 $this->end_controls_section();
731
732 $this->start_controls_section(
733 'section_description',
734 [
735 'label' => esc_html__( 'Description', 'easy-elements' ),
736 'tab' => Controls_Manager::TAB_STYLE,
737 'condition' => [
738 'team_skin' => 'skin3',
739 ],
740 ]
741 );
742
743
744 $this->start_controls_tabs( 'description_colors' );
745
746 // Normal Tab
747 $this->start_controls_tab(
748 'description_colors_normal',
749 [
750 'label' => esc_html__( 'Normal', 'easy-elements' ),
751 ]
752 );
753
754 $this->add_control(
755 'description_color',
756 [
757 'label' => esc_html__( 'Color', 'easy-elements' ),
758 'type' => Controls_Manager::COLOR,
759 'selectors' => [
760 '{{WRAPPER}} .eel-image-content .eel-description' => 'color: {{VALUE}};',
761 ],
762 ]
763 );
764
765 $this->add_group_control(
766 \Elementor\Group_Control_Background::get_type(),
767 [
768 'name' => 'description_background',
769 'label' => esc_html__( 'Background Color', 'easy-elements' ),
770 'types' => [ 'classic', 'gradient' ],
771 'selector' => '{{WRAPPER}} .eel-image-content',
772 ]
773 );
774
775 $this->end_controls_tab();
776
777 // Hover Tab
778 $this->start_controls_tab(
779 'description_colors_hover',
780 [
781 'label' => esc_html__( 'Hover', 'easy-elements' ),
782 ]
783 );
784
785 $this->add_control(
786 'description_color_hover',
787 [
788 'label' => esc_html__( 'Color', 'easy-elements' ),
789 'type' => Controls_Manager::COLOR,
790 'selectors' => [
791 '{{WRAPPER}} .eel-image-content:hover .eel-description' => 'color: {{VALUE}};',
792 ],
793 ]
794 );
795
796 $this->add_group_control(
797 \Elementor\Group_Control_Background::get_type(),
798 [
799 'name' => 'description_background_hover',
800 'label' => esc_html__( 'Background Color', 'easy-elements' ),
801 'types' => [ 'classic', 'gradient' ],
802 'selector' => '{{WRAPPER}} .eel-image-content:hover:before',
803 ]
804 );
805
806 $this->add_control(
807 'description_background_hover_opacity',
808 [
809 'label' => esc_html__( 'Opacity', 'easy-elements' ),
810 'type' => \Elementor\Controls_Manager::SLIDER,
811 'range' => [
812 '' => [
813 'min' => 0,
814 'max' => 1,
815 'step' => 0.1,
816 ],
817 ],
818 'default' => [
819 'size' => 0.5,
820 ],
821 'selectors' => [
822 '{{WRAPPER}} .eel-image-content:hover::before' => 'opacity: {{SIZE}};',
823 ],
824 ]
825 );
826
827
828 $this->end_controls_tab();
829
830 $this->end_controls_tabs();
831
832 // Typography control (applies to both normal and hover states)
833 $this->add_group_control(
834 \Elementor\Group_Control_Typography::get_type(),
835 [
836 'name' => 'description_typography',
837 'label' => esc_html__( 'Typography', 'easy-elements' ),
838 'selector' => '{{WRAPPER}} .eel-image-content .eel-description',
839 ]
840 );
841
842 $this->add_control(
843 'description_hover_transition',
844 [
845 'label' => esc_html__( 'Transition Duration', 'easy-elements' ),
846 'type' => Controls_Manager::SLIDER,
847 'size_units' => [ 's', 'ms' ],
848 'range' => [
849 's' => [
850 'min' => 0,
851 'max' => 3,
852 'step' => 0.1,
853 ],
854 'ms' => [
855 'min' => 0,
856 'max' => 3000,
857 'step' => 100,
858 ],
859 ],
860 'default' => [
861 'unit' => 's',
862 'size' => 0.3,
863 ],
864 'selectors' => [
865 '{{WRAPPER}} .eel-image-content' => 'transition-duration: {{SIZE}}{{UNIT}};',
866 ],
867 ]
868 );
869
870 $this->add_responsive_control(
871 'description_padding',
872 [
873 'label' => esc_html__( 'Padding', 'easy-elements' ),
874 'type' => Controls_Manager::DIMENSIONS,
875 'size_units' => [ 'px', '%', 'em' ],
876 'selectors' => [
877 '{{WRAPPER}} .eel-image-content' => 'padding: {{TOP}}{{UNIT}}} {{RIGHT}}{{UNIT}}} {{BOTTOM}}{{UNIT}}} {{LEFT}}{{UNIT}};',
878 ],
879 ]
880 );
881
882 $this->add_control(
883 'image_descripiton_overlay_note',
884 [
885 'type' => \Elementor\Controls_Manager::RAW_HTML,
886 'raw' => '<div class="eel-popup-note">' . esc_html__('Note: This style only workable when description added for style 3.', 'easy-elements') . '</div>',
887 'separator' => 'before',
888 ]
889 );
890
891 $this->end_controls_section();
892
893 // Social Item
894 $this->start_controls_section(
895 'section_social',
896 [
897 'label' => esc_html__( 'Social Icon', 'easy-elements' ),
898 'tab' => Controls_Manager::TAB_STYLE,
899 'condition' => [
900 'show_social_icon' => 'yes',
901 ]
902 ]
903 );
904
905 $this->add_control(
906 's_icon_color',
907 [
908 'label' => esc_html__( 'Color', 'easy-elements' ),
909 'type' => Controls_Manager::COLOR,
910 'selectors' => [
911 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'color: {{VALUE}};',
912 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'color: {{VALUE}};',
913 ],
914 ]
915 );
916 $this->add_control(
917 's_icon_hover_color',
918 [
919 'label' => esc_html__( 'Hover Color', 'easy-elements' ),
920 'type' => Controls_Manager::COLOR,
921 'selectors' => [
922 '{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'color: {{VALUE}};',
923 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'color: {{VALUE}};',
924 ],
925 ]
926 );
927
928 $this->add_control(
929 's_icon_bg_color',
930 [
931 'label' => esc_html__( 'Background Color', 'easy-elements' ),
932 'type' => Controls_Manager::COLOR,
933 'selectors' => [
934 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'background: {{VALUE}};',
935 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'background: {{VALUE}};',
936 ],
937 ]
938 );
939 $this->add_control(
940 's_icon_hover_bg_color',
941 [
942 'label' => esc_html__( 'Hover Background Color', 'easy-elements' ),
943 'type' => Controls_Manager::COLOR,
944 'selectors' => [
945 '{{WRAPPER}} .eel-team-grid-social ul li a:hover' => 'background: {{VALUE}};',
946 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a:hover' => 'background: {{VALUE}};',
947 ],
948 ]
949 );
950
951 $this->add_group_control(
952 \Elementor\Group_Control_Typography::get_type(),
953 [
954 'name' => 's_icon_typography',
955 'label' => esc_html__( 'Typography', 'easy-elements' ),
956 'selector' => '{{WRAPPER}} .eel-team-grid-social ul li a, {{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a',
957 ]
958 );
959 $this->add_responsive_control(
960 's_icon_gap',
961 [
962 'label' => esc_html__( 'Icon Gap', 'easy-elements' ),
963 'type' => \Elementor\Controls_Manager::SLIDER,
964 'size_units' => [ 'px', 'em'],
965 'selectors' => [
966 '{{WRAPPER}} .eel-team-grid-social ul' => 'gap: {{SIZE}}{{UNIT}};',
967 ],
968 ]
969 );
970 $this->add_responsive_control(
971 's_icon_width-height',
972 [
973 'label' => esc_html__( 'Button Size', 'easy-elements' ),
974 'type' => \Elementor\Controls_Manager::SLIDER,
975 'size_units' => [ 'px', 'em'],
976 'selectors' => [
977 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
978 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
979 ],
980 ]
981 );
982 $this->add_responsive_control(
983 's_icon_radius',
984 [
985 'label' => esc_html__( 'Border Radius', 'easy-elements' ),
986 'type' => \Elementor\Controls_Manager::DIMENSIONS,
987 'size_units' => [ 'px', '%' ],
988 'selectors' => [
989 '{{WRAPPER}} .eel-team-grid-social ul li a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
990 '{{WRAPPER}} .eel-team-grid-social .eel-team-social-hover a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
991 ],
992 ]
993 );
994 $this->add_responsive_control(
995 's_icon_area_padding',
996 [
997 'label' => esc_html__( 'Area Padding', 'easy-elements' ),
998 'type' => \Elementor\Controls_Manager::DIMENSIONS,
999 'size_units' => [ 'px', '%' ],
1000 'selectors' => [
1001 '{{WRAPPER}} .eel-team-grid-social' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1002 ],
1003 ]
1004 );
1005 $this->add_group_control(
1006 \Elementor\Group_Control_Border::get_type(),
1007 [
1008 'name' => 'social_item_border',
1009 'label' => esc_html__( 'Area Border', 'easy-elements' ),
1010 'selector' => '{{WRAPPER}} .eel-team-grid .eel-team-grid-social.default',
1011 'condition' => [
1012 'social_icon_position' => 'default',
1013 ]
1014 ]
1015 );
1016 $this->add_control(
1017 'social_item_border_note',
1018 [
1019 'type' => \Elementor\Controls_Manager::RAW_HTML,
1020 'raw' => '<strong>Note:</strong>Social Area Border',
1021 'content_classes' => 'elementor-panel-alert elementor-panel-alert-info',
1022 'condition' => [
1023 'social_icon_position' => 'default',
1024 ]
1025 ]
1026 );
1027 $this->add_responsive_control(
1028 'team_social_icon_alignment',
1029 [
1030 'label' => esc_html__( 'Alignment', 'easy-elements' ),
1031 'type' => \Elementor\Controls_Manager::CHOOSE,
1032 'options' => [
1033 'flex-start' => [
1034 'title' => esc_html__( 'Left', 'easy-elements' ),
1035 'icon' => 'eicon-justify-start-h',
1036 ],
1037 'center' => [
1038 'title' => esc_html__( 'Center', 'easy-elements' ),
1039 'icon' => 'eicon-justify-center-h',
1040 ],
1041 'right' => [
1042 'title' => esc_html__( 'Right', 'easy-elements' ),
1043 'icon' => 'eicon-justify-end-h',
1044 ],
1045 ],
1046 'selectors' => [
1047 '{{WRAPPER}} .eel-team-grid .ee--team-img .eel-team-grid-social.default ul' => 'justify-content: {{VALUE}};',
1048 ],
1049 'condition' => [
1050 'social_icon_position' => 'default',
1051 ]
1052 ]
1053 );
1054
1055 $this->end_controls_section();
1056
1057 // Popup
1058 $this->start_controls_section(
1059 'section_popup_style',
1060 [
1061 'label' => esc_html__( 'Popup Style', 'easy-elements' ),
1062 'tab' => Controls_Manager::TAB_STYLE,
1063 'condition' => [
1064 'action_type' => 'popup',
1065 ],
1066 ]
1067 );
1068
1069 $this->add_control(
1070 'popup_bg_color',
1071 [
1072 'label' => esc_html__( 'Background Color', 'easy-elements' ),
1073 'type' => Controls_Manager::COLOR,
1074 'selectors' => [
1075 '{{WRAPPER}} .eel-popup-content' => 'background-color: {{VALUE}};',
1076 ],
1077 ]
1078 );
1079
1080 $this->add_control(
1081 'popup_name_color',
1082 [
1083 'label' => esc_html__( 'Name Color', 'easy-elements' ),
1084 'type' => Controls_Manager::COLOR,
1085 'selectors' => [
1086 '{{WRAPPER}} .eel-popup-name .eel-name' => 'color: {{VALUE}};',
1087 ],
1088 ]
1089 );
1090 $this->add_group_control(
1091 \Elementor\Group_Control_Typography::get_type(),
1092 [
1093 'name' => 'popup_name_typography',
1094 'label' => esc_html__( 'Name Typography', 'easy-elements' ),
1095 'selector' => '{{WRAPPER}} .eel-popup-name .eel-name',
1096 ]
1097 );
1098
1099 $this->add_control(
1100 'popup_designation_color',
1101 [
1102 'label' => esc_html__( 'Designation Color', 'easy-elements' ),
1103 'type' => Controls_Manager::COLOR,
1104 'selectors' => [
1105 '{{WRAPPER}} .eel-popup-designation' => 'color: {{VALUE}};',
1106 ],
1107 ]
1108 );
1109 $this->add_group_control(
1110 \Elementor\Group_Control_Typography::get_type(),
1111 [
1112 'name' => 'popup_designation_typography',
1113 'label' => esc_html__( 'Designation Typography', 'easy-elements' ),
1114 'selector' => '{{WRAPPER}} .eel-popup-designation',
1115 ]
1116 );
1117
1118 $this->add_control(
1119 'popup_details_color',
1120 [
1121 'label' => esc_html__( 'Details Color', 'easy-elements' ),
1122 'type' => Controls_Manager::COLOR,
1123 'selectors' => [
1124 '{{WRAPPER}} .eel-popup-details' => 'color: {{VALUE}};',
1125 ],
1126 ]
1127 );
1128 $this->add_group_control(
1129 \Elementor\Group_Control_Typography::get_type(),
1130 [
1131 'name' => 'popup_details_typography',
1132 'label' => esc_html__( 'Details Typography', 'easy-elements' ),
1133 'selector' => '{{WRAPPER}} .eel-popup-details',
1134 ]
1135 );
1136 $this->add_control(
1137 'popup_close_color',
1138 [
1139 'label' => esc_html__( 'Close Icon Color', 'easy-elements' ),
1140 'type' => Controls_Manager::COLOR,
1141 'selectors' => [
1142 '{{WRAPPER}} .eel-popup-close' => 'color: {{VALUE}};',
1143 ],
1144 ]
1145 );
1146
1147 $this->end_controls_section();
1148 }
1149
1150 protected function render() {
1151 $settings = $this->get_settings_for_display();
1152 $team_skin = $settings['team_skin'];
1153 ?>
1154
1155 <div class="eel-team-wraps eel-team-grid grid-layout <?php echo esc_attr( $team_skin )?>">
1156 <div class="grid-wrap">
1157 <?php
1158 $image_id = $settings['image']['id'] ?? '';
1159 $image_size = $settings['image_size'] ?? 'full';
1160 if ( $image_id ) {
1161 $image_data = wp_get_attachment_image_src( $image_id, $image_size );
1162 $alt = get_post_meta( $image_id, '_wp_attachment_image_alt', true );
1163 $title = get_the_title( $image_id );
1164 } else {
1165 $fallback_url = Utils::get_placeholder_image_src();
1166 $image_data = [ $fallback_url, 600, 400 ];
1167 $alt = esc_attr__( 'Team Image', 'easy-elements' );
1168 $title = esc_attr__( 'Team Image', 'easy-elements' );
1169 }
1170
1171 $action_type = $settings['action_type'] ?? 'link';
1172 $link = $settings['link']['url'] ?? '';
1173 $target = ! empty( $settings['link']['is_external'] ) ? '_blank' : '';
1174 $nofollow = ! empty( $settings['link']['nofollow'] ) ? 'nofollow' : '';
1175 $fetchpriority = $settings['fetchpriority'] ?? '';
1176 $unique_id = uniqid('eel_team_');
1177
1178 $title_tag = isset( $settings['title_tag'] ) ? $settings['title_tag'] : 'h4';
1179 $name = sprintf( '<%1$s class="eel-name">%2$s</%1$s>', esc_attr( $title_tag ), esc_html( $settings['_name'] ));
1180 $designation = $settings['designation'] ?? '';
1181 $details = $settings['details'] ?? '';
1182 ?>
1183 <?php if ($team_skin == 'default'): ?>
1184 <div class="grid-item">
1185 <div class="ee--team-img">
1186 <?php if ( $action_type === 'link' && $link ) : ?>
1187 <a href="<?php echo esc_url( $link ); ?>"
1188 <?php if ( $target ) : ?>target="<?php echo esc_attr( $target ); ?>"<?php endif; ?>
1189 <?php if ( $nofollow ) : ?>rel="<?php echo esc_attr( $nofollow ); ?>"<?php endif; ?>>
1190 <?php elseif ( $action_type === 'popup' ) : ?>
1191 <a href="#<?php echo esc_attr($unique_id); ?>" class="eel-popup-trigger" data-popup-id="<?php echo esc_attr($unique_id); ?>">
1192 <?php endif; ?>
1193
1194 <?php if ( $image_data ) : ?>
1195 <div class="eel-team-img-area">
1196 <div class="eel-team-img-box">
1197 <img class="eel-team-img"
1198 src="<?php echo esc_url( $image_data[0] ); ?>"
1199 width="<?php echo esc_attr( $image_data[1] ); ?>"
1200 height="<?php echo esc_attr( $image_data[2] ); ?>"
1201 alt="<?php echo esc_attr( $alt ); ?>"
1202 title="<?php echo esc_attr( $title ); ?>"
1203 loading="lazy"
1204 decoding="async" fetchpriority="<?php echo esc_attr( $fetchpriority ); ?>">
1205 <div class="eel-image-below-bg"></div>
1206 <div class="eel-image-overlay"></div>
1207 </div>
1208 <?php if($settings['content_show'] == 'inside'):?>
1209 <div class="eel-name-deg-wrap <?php echo esc_attr( $settings['content_show'] )?>">
1210 <?php if ( ! empty( $name ) ) :
1211 echo wp_kses_post( $name );
1212 endif; ?>
1213 <?php if ( ! empty( $designation ) ) : ?>
1214 <div class="eel-designation"><?php echo esc_html( $designation ); ?></div>
1215 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] == 'default'): ?>
1216 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1217 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1218 <div class="eel-team-social-hover">
1219 <a href="#">
1220 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1221 </a>
1222 </div>
1223 <?php endif;?>
1224 <ul>
1225 <?php foreach ( $settings['social_links'] as $item ):?>
1226 <li>
1227 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1228 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1229 </a>
1230 </li>
1231 <?php endforeach; ?>
1232 </ul>
1233 </div>
1234 <?php endif; ?>
1235 <?php endif; ?>
1236 </div>
1237 <?php endif; ?>
1238 </div>
1239 <?php endif; ?>
1240 <?php if($settings['content_show'] != 'inside'):?>
1241 <div class="eel-name-deg-wrap">
1242 <?php if ( ! empty( $name ) ) :
1243 echo wp_kses_post( $name );
1244 endif; ?>
1245 <?php if ( ! empty( $designation ) ) : ?>
1246 <div class="eel-designation"><?php echo esc_html( $designation ); ?></div>
1247 <?php endif; ?>
1248 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] == 'default'): ?>
1249 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1250 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1251 <div class="eel-team-social-hover">
1252 <a href="#">
1253 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1254 </a>
1255 </div>
1256 <?php endif;?>
1257 <ul>
1258 <?php foreach ( $settings['social_links'] as $item ):?>
1259 <li>
1260 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1261 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1262 </a>
1263 </li>
1264 <?php endforeach; ?>
1265 </ul>
1266 </div>
1267 <?php endif; ?>
1268 </div>
1269 <?php endif; ?>
1270 <?php if ( ($action_type === 'link' && $link) || $action_type === 'popup' ) : ?>
1271 </a>
1272 <?php endif; ?>
1273 <?php if ( $settings['social_links'] && $settings['show_social_icon'] == 'yes' && $settings['social_icon_position'] != 'default'): ?>
1274 <div class="eel-team-grid-social <?php echo esc_attr( $settings['social_icon_position'].' '.$settings['social_icon_show'] )?>">
1275 <?php if( $settings['social_icon_show'] =='hover_show' && !empty( $settings['social_hover_icon']['value']) ): ?>
1276 <div class="eel-team-social-hover">
1277 <a href="#">
1278 <?php \Elementor\Icons_Manager::render_icon( $settings['social_hover_icon'], [ 'aria-hidden' => 'true' ] ); ?>
1279 </a>
1280 </div>
1281 <?php endif;?>
1282 <ul>
1283 <?php foreach ( $settings['social_links'] as $item ):?>
1284 <li>
1285 <a href="<?php echo esc_attr( $item['link_url']['url'] )?>">
1286 <?php \Elementor\Icons_Manager::render_icon( $item['icon'], [ 'aria-hidden' => 'true' ] ); ?>
1287 </a>
1288 </li>
1289 <?php endforeach; ?>
1290 </ul>
1291 </div>
1292 <?php endif; ?>
1293 </div>
1294 </div>
1295 <!-- Others Skins -->
1296 <?php else:
1297 include plugin_dir_path(__FILE__) . 'skins/' . $team_skin . '.php';
1298 endif;
1299 ?>
1300 <?php if ( $action_type === 'popup' ) : ?>
1301 <div id="<?php echo esc_attr($unique_id); ?>" class="eel-popup-modal" style="display:none;">
1302 <div class="eel-popup-content">
1303 <span class="eel-popup-close">&times;</span>
1304 <div class="eel-popup-header">
1305 <?php if ( ! empty( $name ) ) : ?>
1306 <div class="eel-popup-name"><?php echo wp_kses_post( $name ); ?></div>
1307 <?php endif; ?>
1308 <?php if ( ! empty( $designation ) ) : ?>
1309 <div class="eel-popup-designation"><?php echo esc_html( $designation ); ?></div>
1310 <?php endif; ?>
1311 </div>
1312 <div class="eel-popup-details">
1313 <?php if ( ! empty( $details ) ) : ?>
1314 <?php echo nl2br( esc_html( $details ) ); ?>
1315 <?php else : ?>
1316 <p><?php esc_html_e( 'No additional details available.', 'easy-elements' ); ?></p>
1317 <?php endif; ?>
1318 </div>
1319 </div>
1320 </div>
1321 <?php endif; ?>
1322 </div>
1323 </div>
1324 <?php
1325 }
1326 }