PluginProbe ʕ •ᴥ•ʔ
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor / 4.0.1
ElementsKit Elementor Addons – Advanced Widgets & Templates Addons for Elementor v4.0.1
4.0.2 4.0.1 4.0.0 3.10.02 3.10.01 3.9.10 3.9.9 3.9.8 3.9.7 3.9.5 3.9.6 3.9.3 2.1.0 2.1.1 2.1.2 2.1.3 2.1.4 2.1.5 2.1.6 2.1.7 2.2.0 2.2.1 2.2.2 2.2.3 2.2.4 2.3.0 2.3.1 2.3.1.1 2.3.2 2.3.3 2.3.4 2.3.5 2.3.6 2.3.7 2.4.0 2.5.0 2.5.1 2.5.10 2.5.2 2.5.3 2.5.4 2.5.5 2.5.6 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.2 2.6.3 2.7.0 2.7.2 2.7.3 2.7.4 2.7.5 2.8.0 2.8.1 2.8.5 2.8.6 2.8.7 2.8.8 2.9.0 2.9.1 2.9.2 3.0.0 3.0.1 3.0.2 3.0.3 3.0.4 3.0.5 3.0.6 3.0.7 3.1.0 3.1.1 3.1.2 3.1.3 3.1.4 3.2.0 3.2.1 3.2.2 3.2.3 3.2.4 3.2.5 3.2.6 3.2.7 3.2.8 3.2.9 3.3.0 3.3.1 3.3.2 3.3.3 3.3.4 3.3.5 3.3.6 3.3.7 3.3.8 3.3.9 3.4.0 3.4.1 3.4.2 3.4.3 3.4.4 3.4.5 3.4.6 3.4.7 3.4.8 3.4.9 3.5.0 3.5.1 3.5.2 3.5.3 3.5.4 3.5.5 3.5.6 3.6.0 3.6.1 3.7.0 3.7.1 3.7.2 3.7.3 3.7.4 3.7.5 3.7.6 3.7.7 3.7.8 3.7.9 3.8.0 3.8.1 3.8.2 3.9.0 3.9.1 3.9.2 trunk 1.2.6 1.2.7 1.2.9 1.3.1 1.3.2 1.3.3 1.3.4 1.3.5 1.3.8 1.3.9 1.4.0 1.4.1 1.4.2 1.4.3 1.4.4 1.4.5 1.4.7 1.4.8 1.4.9 1.5.0 1.5.1 1.5.10 1.5.11 1.5.12 1.5.2 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.5.9 2.0.0 2.0.1 2.0.10 2.0.11 2.0.12 2.0.13 2.0.2 2.0.3 2.0.4 2.0.5 2.0.6 2.0.7 2.0.8 2.0.9 2.0.9.1 2.0.9.2 2.0.9.3
elementskit-lite / widgets / team / team.php
elementskit-lite / widgets / team Last commit date
parts 4 years ago team-handler.php 3 years ago team.php 3 weeks ago
team.php
2583 lines
1 <?php
2 namespace Elementor;
3
4 use \Elementor\ElementsKit_Widget_Team_Handler as Handler;
5 use \ElementsKit_Lite\Modules\Controls\Controls_Manager as ElementsKit_Controls_Manager;
6
7 if ( ! defined( 'ABSPATH' ) ) exit;
8
9
10 class ElementsKit_Widget_Team extends Widget_Base {
11 use \ElementsKit_Lite\Widgets\Widget_Notice;
12
13 public $base;
14
15 public function __construct( $data = [], $args = null ) {
16 parent::__construct( $data, $args );
17 }
18 public function get_style_depends() {
19 return ['magnific-popup', 'ekit-team'];
20 }
21
22 public function get_script_depends() {
23 return ['ekit-team', 'magnific-popup'];
24 }
25
26
27 public function get_name() {
28 return Handler::get_name();
29 }
30
31 public function get_title() {
32 return Handler::get_title();
33 }
34
35 public function get_icon() {
36 return Handler::get_icon();
37 }
38
39 public function get_categories() {
40 return Handler::get_categories();
41 }
42
43 public function get_keywords() {
44 return Handler::get_keywords();
45 }
46
47 public function get_help_url() {
48 return 'https://wpmet.com/doc/team-2/';
49 }
50 protected function is_dynamic_content(): bool {
51 return false;
52 }
53 protected function register_controls() {
54
55 // Team Content
56 $this->start_controls_section(
57 'ekit_team_content', [
58 'label' => esc_html__( 'Team Member Content', 'elementskit-lite' ),
59 ]
60 );
61
62 $this->add_control(
63 'ekit_team_style',
64 [
65 'label' =>esc_html__( 'Style', 'elementskit-lite' ),
66 'type' => Controls_Manager::SELECT,
67 'default' => 'default',
68 'options' => [
69 'default' => esc_html__( 'Default', 'elementskit-lite' ),
70 'overlay' => esc_html__( 'Overlay', 'elementskit-lite' ),
71 'centered_style' => esc_html__( 'Centered ', 'elementskit-lite' ),
72 'hover_info' => esc_html__( 'Hover on social', 'elementskit-lite' ),
73 'overlay_details' => esc_html__( 'Overlay with details', 'elementskit-lite' ),
74 'centered_style_details' => esc_html__( 'Centered with details ', 'elementskit-lite' ),
75 'long_height_hover' => esc_html__( 'Long height with hover ', 'elementskit-lite' ),
76 'long_height_details' => esc_html__( 'Long height with details ', 'elementskit-lite' ),
77 'long_height_details_hover' => esc_html__( 'Long height with details & hover', 'elementskit-lite' ),
78 'overlay_circle' => esc_html__( 'Overlay with circle shape', 'elementskit-lite' ),
79 'overlay_circle_hover' => esc_html__( 'Overlay with circle shape & hover', 'elementskit-lite' ),
80 ],
81 ]
82 );
83
84 $this->add_control(
85 'ekit_team_image',
86 [
87 'label' => esc_html__( 'Choose Member Image', 'elementskit-lite' ),
88 'type' => Controls_Manager::MEDIA,
89 'dynamic' => [
90 'active' => true,
91 ],
92 'default' => [
93 'url' => Utils::get_placeholder_image_src(),
94 'id' => -1
95 ],
96 ]
97 );
98
99 $this->add_group_control(
100 Group_Control_Image_Size::get_type(),
101 [
102 'name' => 'ekit_team_thumbnail',
103 'default' => 'large',
104 ]
105 );
106
107 $this->add_control(
108 'ekit_team_name',
109 [
110 'label' => esc_html__( 'Member Name', 'elementskit-lite' ),
111 'type' => Controls_Manager::TEXT,
112 'dynamic' => [
113 'active' => true,
114 ],
115 'default' => esc_html__( 'Jane Doe', 'elementskit-lite' ),
116 'placeholder' => esc_html__( 'Member Name', 'elementskit-lite' ),
117 ]
118 );
119
120 $this->add_control(
121 'ekit_team_position',
122 [
123 'label' => esc_html__( 'Member Position', 'elementskit-lite' ),
124 'type' => Controls_Manager::TEXT,
125 'dynamic' => [
126 'active' => true,
127 ],
128 'default' => esc_html__( 'Designer', 'elementskit-lite' ),
129 'placeholder' => esc_html__( 'Member Position', 'elementskit-lite' ),
130
131 ]
132 );
133
134 // Show Icon
135 $this->add_control(
136 'ekit_team_toggle_icon',
137 [
138 'label' => esc_html__( 'Show Icon', 'elementskit-lite' ),
139 'type' => Controls_Manager::SWITCHER,
140 'label_on' => esc_html__( 'Show', 'elementskit-lite' ),
141 'label_off' => esc_html__( 'Hide', 'elementskit-lite' ),
142 'return_value' => 'yes',
143 'default' => 'no',
144 'condition' => [
145 'ekit_team_style' => 'default',
146 ],
147 ]
148 );
149 $this->add_control(
150 'ekit_team_top_icons',
151 [
152 'label' => esc_html__( 'Icon', 'elementskit-lite' ),
153 'type' => Controls_Manager::ICONS,
154 'fa4compatibility' => 'ekit_team_top_icon',
155 'default' => [
156 'value' => 'icon icon-team1',
157 'library' => 'ekiticons',
158 ],
159 'condition' => [
160 'ekit_team_style' => 'default',
161 'ekit_team_toggle_icon' => 'yes',
162 ],
163 ]
164 );
165
166 // Show Description
167 $this->add_control(
168 'ekit_team_show_short_description',
169 [
170 'label' => esc_html__( 'Show Description', 'elementskit-lite' ),
171 'type' => Controls_Manager::SWITCHER,
172 'label_on' => esc_html__( 'Show', 'elementskit-lite' ),
173 'label_off' => esc_html__( 'Hide', 'elementskit-lite' ),
174 'return_value' => 'yes',
175 'default' => 'no',
176 ]
177 );
178 $this->add_control(
179 'ekit_team_short_description',
180 [
181 'label' => esc_html__( 'About Member', 'elementskit-lite' ),
182 'type' => Controls_Manager::TEXTAREA,
183 'dynamic' => [
184 'active' => true,
185 ],
186 'default' => esc_html__( 'A small river named Duden flows by their place and supplies it with the necessary', 'elementskit-lite' ),
187 'placeholder' => esc_html__( 'About Member', 'elementskit-lite' ),
188 'condition' => [
189 'ekit_team_show_short_description' => 'yes'
190 ],
191
192 ]
193 );
194
195 $this->end_controls_section();
196
197
198 // Team Social section
199
200 $this->start_controls_section(
201 'ekit_team_section_social', [
202 'label' => esc_html__( 'Social Profiles', 'elementskit-lite' ),
203 ]
204 );
205
206 $this->add_control(
207 'ekit_team_socail_enable',
208 [
209 'label' => esc_html__( 'Display Social Profiles?', 'elementskit-lite' ),
210 'type' => Controls_Manager::SWITCHER,
211 'label_on' => esc_html__( 'Show', 'elementskit-lite' ),
212 'label_off' => esc_html__( 'Hide', 'elementskit-lite' ),
213 'return_value' => 'yes',
214 'default' => 'yes',
215 ]
216 );
217
218 $popup_selector = '.team-popup-id-{{ID}}';
219 $social = new Repeater();
220
221 $social->add_control(
222 'ekit_team_icons',
223 [
224 'label' => esc_html__( 'Icon', 'elementskit-lite' ),
225 'label_block' => true,
226 'type' => Controls_Manager::ICONS,
227 'fa4compatibility' => 'ekit_team_icon',
228 'default' => [
229 'value' => 'icon icon-facebook',
230 'library' => 'ekiticons',
231 ],
232 ]
233 );
234
235 $social->add_control(
236 'ekit_team_label',
237 [
238 'label' => esc_html__( 'Label', 'elementskit-lite' ),
239 'type' => Controls_Manager::TEXT,
240 'dynamic' => [
241 'active' => true,
242 ],
243 'default' => 'Facebook',
244 ]
245 );
246
247 $social->add_control(
248 'ekit_team_link',
249 [
250 'label' => esc_html__( 'Link', 'elementskit-lite' ),
251 'type' => Controls_Manager::URL,
252 'dynamic' => [
253 'active' => true,
254 ],
255 'default' => [
256 'url' => 'https://facebook.com',
257 ],
258 ]
259 );
260 // start tab for content
261 $social->start_controls_tabs(
262 'ekit_team_socialmedia_tabs'
263 );
264
265 // start normal tab
266 $social->start_controls_tab(
267 'ekit_team_socialmedia_normal',
268 [
269 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
270 ]
271 );
272
273 // set social icon color
274 $social->add_control(
275 'ekit_team_socialmedia_icon_color',
276 [
277 'label' =>esc_html__( 'Color', 'elementskit-lite' ),
278 'type' => Controls_Manager::COLOR,
279 'default' => '#FFFFFF',
280 'selectors' => [
281 '{{WRAPPER}} {{CURRENT_ITEM}} > a' => 'color: {{VALUE}}; fill: {{VALUE}};',
282 $popup_selector . ' {{CURRENT_ITEM}} > a' => 'color: {{VALUE}}; fill: {{VALUE}};',
283 ],
284 ]
285 );
286
287 // set social icon background color
288 $social->add_control(
289 'ekit_team_socialmedia_icon_bg_color',
290 [
291 'label' =>esc_html__( 'Background Color', 'elementskit-lite' ),
292 'type' => Controls_Manager::COLOR,
293 'default' => '#a1a1a1',
294 'selectors' => [
295 '{{WRAPPER}} {{CURRENT_ITEM}} > a' => 'background-color: {{VALUE}};',
296 $popup_selector . ' {{CURRENT_ITEM}} > a' => 'background-color: {{VALUE}};',
297 ],
298 ]
299 );
300
301 $social->add_group_control(
302 Group_Control_Border::get_type(),
303 [
304 'name' => 'ekit_team_socialmedia_border',
305 'label' => esc_html__( 'Border', 'elementskit-lite' ),
306 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a,'. $popup_selector . ' {{CURRENT_ITEM}} > a',
307 ]
308 );
309
310 $social->add_group_control(
311 Group_Control_Text_Shadow::get_type(),
312 [
313 'name' => 'ekit_team_socialmedia_icon_normal_text_shadow',
314 'label' => esc_html__( 'Text Shadow', 'elementskit-lite' ),
315 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a,' . $popup_selector . ' {{CURRENT_ITEM}} > a',
316 ]
317 );
318
319 $social->add_group_control(
320 Group_Control_Box_Shadow::get_type(), [
321 'name' => 'ekit_team_socialmedai_list_box_shadow',
322 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a,' . $popup_selector . ' {{CURRENT_ITEM}} > a',
323 ]
324 );
325
326 $social->end_controls_tab();
327 // end normal tab
328
329 //start hover tab
330 $social->start_controls_tab(
331 'ekit_team_socialmedia_hover',
332 [
333 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
334 ]
335 );
336
337 // set social icon color
338 $social->add_control(
339 'ekit_team_socialmedia_icon_hover_color',
340 [
341 'label' =>esc_html__( 'Color', 'elementskit-lite' ),
342 'type' => Controls_Manager::COLOR,
343 'selectors' => [
344 '{{WRAPPER}} {{CURRENT_ITEM}} > a:hover' => 'color: {{VALUE}}; fill: {{VALUE}};',
345 $popup_selector . ' {{CURRENT_ITEM}} > a:hover' => 'color: {{VALUE}}; fill: {{VALUE}};',
346 ],
347 ]
348 );
349
350 // set social icon background color
351 $social->add_control(
352 'ekit_team_socialmedia_icon_hover_bg_color',
353 [
354 'label' =>esc_html__( 'Background Color', 'elementskit-lite' ),
355 'type' => Controls_Manager::COLOR,
356 'default' => '#3b5998',
357 'selectors' => [
358 '{{WRAPPER}} {{CURRENT_ITEM}} > a:hover' => 'background-color: {{VALUE}};',
359 $popup_selector . ' {{CURRENT_ITEM}} > a:hover' => 'background-color: {{VALUE}};',
360 ],
361 ]
362 );
363
364 $social->add_group_control(
365 Group_Control_Border::get_type(),
366 [
367 'name' => 'ekit_team_socialmedia_border_hover',
368 'label' => esc_html__( 'Border', 'elementskit-lite' ),
369 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a:hover,' . $popup_selector . ' {{CURRENT_ITEM}} > a:hover',
370 ]
371 );
372
373 $social->add_group_control(
374 Group_Control_Text_Shadow::get_type(),
375 [
376 'name' => 'ekit_team_socialmedia_icon_hover_text_shadow',
377 'label' => esc_html__( 'Text Shadow', 'elementskit-lite' ),
378 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a:hover,' . $popup_selector . ' {{CURRENT_ITEM}} > a:hover',
379 ]
380 );
381
382 $social->add_group_control(
383 Group_Control_Box_Shadow::get_type(), [
384 'name' => 'ekit_team_socialmedai_list_box_shadow_hover',
385 'selector' => '{{WRAPPER}} {{CURRENT_ITEM}} > a:hover,' . $popup_selector . ' {{CURRENT_ITEM}} > a:hover',
386 ]
387 );
388
389 $social->end_controls_tab();
390 //end hover tab
391
392 $social->end_controls_tabs();
393
394 $this->add_control(
395 'ekit_team_social_icons',
396 [
397 'label' => esc_html__('Add Icon', 'elementskit-lite'),
398 'type' => Controls_Manager::REPEATER,
399 'fields' => $social->get_controls(),
400 'default' => [
401 [
402 'ekit_team_label' => esc_html__('Facebook', 'elementskit-lite'),
403 'ekit_team_icons' => [
404 'value' => 'icon icon-facebook',
405 'library' => 'ekiticons',
406 ],
407 'ekit_team_socialmedia_icon_hover_bg_color' => '#3b5998',
408 ],
409 [
410 'ekit_team_label' => esc_html__('Twitter', 'elementskit-lite'),
411 'ekit_team_icons' => [
412 'value' => 'icon icon-twitter',
413 'library' => 'ekiticons',
414 ],
415 'ekit_team_socialmedia_icon_hover_bg_color' => '#1da1f2',
416 ],
417 [
418 'ekit_team_label' => esc_html__('Pinterest', 'elementskit-lite'),
419 'ekit_team_icons' => [
420 'value' => 'icon icon-pinterest',
421 'library' => 'ekiticons',
422 ],
423 'ekit_team_socialmedia_icon_hover_bg_color' => '#e60023',
424 ],
425 ],
426 'title_field' => '{{{ ekit_team_label }}}',
427 'condition' => [
428 'ekit_team_socail_enable' => 'yes'
429 ]
430 ]
431 );
432
433 $this->end_controls_section();
434
435 $this->start_controls_section(
436 'ekit_team_popup_details',
437 [
438 'label' => esc_html__( 'Pop Up Details', 'elementskit-lite' ),
439 'tab' => Controls_Manager::TAB_CONTENT,
440 ]
441 );
442
443 $this->add_control(
444 'ekit_team_chose_popup',
445 [
446 'label' => esc_html__( 'Show Popup', 'elementskit-lite' ),
447 'type' => Controls_Manager::SWITCHER,
448 'default' => 'yes',
449 ]
450 );
451
452 $this->add_control(
453 'ekit_team_description',
454 [
455 'label' => esc_html__( 'About Member', 'elementskit-lite' ),
456 'type' => Controls_Manager::TEXTAREA,
457 'dynamic' => [
458 'active' => true,
459 ],
460 'default' => esc_html__( 'A small river named Duden flows by their place and supplies it with the necessary', 'elementskit-lite' ),
461 'placeholder' => esc_html__( 'About Member', 'elementskit-lite' ),
462 'condition' => [
463 'ekit_team_chose_popup' => 'yes'
464 ],
465
466 ]
467 );
468 $this->add_control(
469 'ekit_team_phone',
470 [
471 'label' => esc_html__( 'Phone', 'elementskit-lite' ),
472 'type' => Controls_Manager::TEXT,
473 'dynamic' => [
474 'active' => true,
475 ],
476 'default' => '+1 (859) 254-6589',
477 'placeholder' => esc_html__( 'Phone Number', 'elementskit-lite' ),
478 'condition' => [
479 'ekit_team_chose_popup' => 'yes'
480 ],
481
482 ]
483 );
484 $this->add_control(
485 'ekit_team_email',
486 [
487 'label' => esc_html__( 'Email', 'elementskit-lite' ),
488 'type' => Controls_Manager::TEXT,
489 'dynamic' => [
490 'active' => true,
491 ],
492 'default' => 'info@example.com',
493 'placeholder' => esc_html__( 'Email Address', 'elementskit-lite' ),
494 'condition' => [
495 'ekit_team_chose_popup' => 'yes'
496 ],
497
498 ]
499 );
500
501 // Close icon change option
502 $this->add_control(
503 'ekit_team_close_icon_changes',
504 [
505 'label' => esc_html__( 'Close Icon', 'elementskit-lite' ),
506 'type' => Controls_Manager::ICONS,
507 'fa4compatibility' => 'ekit_team_close_icon_change',
508 'default' => [
509 'value' => 'fas fa-times',
510 'library' => 'fa-solid',
511 ],
512 'label_block' => true,
513 'condition' => [
514 'ekit_team_chose_popup' => 'yes'
515 ],
516 'separator' => 'before',
517 ]
518 );
519
520 $this->add_control(
521 'ekit_team_close_icon_alignment',
522 [
523 'label' => esc_html__( 'Close Icon Alignment', 'elementskit-lite' ),
524 'type' => Controls_Manager::CHOOSE,
525 'options' => [
526 'left' => [
527 'title' => esc_html__( 'Left', 'elementskit-lite' ),
528 'icon' => 'eicon-text-align-left',
529 ],
530 'right' => [
531 'title' => esc_html__( 'Right', 'elementskit-lite' ),
532 'icon' => 'eicon-text-align-right',
533 ],
534 ],
535 'selectors' => [
536 '{{WRAPPER}} .ekit-team-modal-close' => '{{VALUE}}: 10px;',
537 ],
538 'default' => 'right',
539 'condition' => [
540 'ekit_team_chose_popup' => 'yes'
541 ],
542 ]
543 );
544
545 $this->end_controls_section();
546
547 // start style section here
548
549 // Team content section style start
550 $this->start_controls_section(
551 'ekit_team_content_style', [
552 'label' => esc_html__( 'Content', 'elementskit-lite' ),
553 'tab' => Controls_Manager::TAB_STYLE,
554 ]
555 );
556
557
558
559 $this->start_controls_tabs(
560 'ekit_team_background_tabs'
561 );
562 // start normal tab
563 $this->start_controls_tab(
564 'ekit_team_content_normal',
565 [
566 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
567 ]
568 );
569
570 $this->add_group_control(
571 Group_Control_Background::get_type(),
572 [
573 'name' => 'ekit_team_background_content_normal',
574 'label' => esc_html__( 'Background', 'elementskit-lite' ),
575 'types' => [ 'classic', 'gradient', 'video' ],
576 'selector' => '{{WRAPPER}} .profile-card, {{WRAPPER}} .profile-image-card',
577 ]
578 );
579 $this->add_group_control(
580 Group_Control_Box_Shadow::get_type(), [
581 'name' => 'ekit_team_content_box_shadow',
582 'selector' => '{{WRAPPER}} .profile-card, {{WRAPPER}} .profile-image-card',
583 ]
584 );
585 $this->end_controls_tab();
586
587 $this->start_controls_tab(
588 'ekit_team_content_hover',
589 [
590 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
591 ]
592 );
593
594
595 $this->add_group_control(
596 Group_Control_Background::get_type(),
597 [
598 'name' => 'ekit_team_background_content_hover',
599 'label' => esc_html__( 'Background', 'elementskit-lite' ),
600 'types' => [ 'classic', 'gradient' ],
601 'selector' => '{{WRAPPER}} .profile-card:hover, {{WRAPPER}} .profile-image-card:hover, {{WRAPPER}} .profile-card::before, {{WRAPPER}} .profile-image-card::before, {{WRAPPER}} div .profile-card .profile-body::before, {{WRAPPER}} .image-card-v3 .profile-image-card:after',
602 ]
603 );
604
605 $this->add_group_control(
606 Group_Control_Box_Shadow::get_type(), [
607 'name' => 'ekit_team_content_box_shadow_hover_group',
608 'selector' => '{{WRAPPER}} .profile-card:hover, {{WRAPPER}} .profile-image-card:hover',
609 ]
610 );
611
612 $this->add_control(
613 'team_hover_animation',
614 [
615 'label' => esc_html__( 'Hover Animation', 'elementskit-lite' ),
616 'type' => Controls_Manager::HOVER_ANIMATION,
617 ]
618 );
619
620 $this->add_responsive_control(
621 'overlay_height',
622 [
623 'label' => esc_html__('Overlay Height', 'elementskit-lite'),
624 'type' => Controls_Manager::SLIDER,
625 'size_units' => ['%', 'px'],
626 'range' => [
627 '%' => [
628 'min' => 0,
629 'max' => 100
630 ],
631 'px' => [
632 'min' => 0,
633 'max' => 500,
634 'step' => 5
635 ]
636 ],
637 'default' => [
638 'unit' => '%',
639 ],
640 'selectors' => [
641 '{{WRAPPER}} .ekit-team-style-long_height_hover:after' => 'height: {{SIZE}}{{UNIT}};',
642 ],
643 'condition' => [
644 'ekit_team_style' => 'long_height_hover',
645 ],
646 ]
647 );
648
649 $this->end_controls_tab();
650 $this->end_controls_tabs();
651
652 $this->add_control(
653 'content_tabs_after',
654 [
655 'type' => Controls_Manager::DIVIDER,
656 ]
657 );
658
659 // contentmax height
660 $this->add_responsive_control(
661 'ekit_team_content_max_weight',
662 [
663 'label' => esc_html__( 'Max Height', 'elementskit-lite' ),
664 'type' => Controls_Manager::SLIDER,
665 'size_units' => [ 'px', '%' ],
666 'range' => [
667 'px' => [
668 'min' => 0,
669 'max' => 1000,
670 'step' => 1,
671 ],
672 '%' => [
673 'min' => 0,
674 'max' => 100,
675 ],
676 ],
677 'default' => [
678 'unit' => 'px',
679 'size' => 380,
680 ],
681 'selectors' => [
682 '{{WRAPPER}} .profile-square-v .profile-card' => 'max-height: {{SIZE}}{{UNIT}};',
683 ],
684 'condition' => [
685 'ekit_team_style' => 'hover_info'
686 ]
687 ]
688 );
689
690 // Text aliment
691
692 $this->add_control(
693 'ekit_team_content_text_align',
694 [
695 'label' => esc_html__( 'Alignment', 'elementskit-lite' ),
696 'type' => Controls_Manager::CHOOSE,
697 'options' => [
698 'text-left' => [
699 'title' => esc_html__( 'Left', 'elementskit-lite' ),
700 'icon' => 'eicon-text-align-left',
701 ],
702 'text-center' => [
703 'title' => esc_html__( 'Center', 'elementskit-lite' ),
704 'icon' => 'eicon-text-align-center',
705 ],
706 'text-right' => [
707 'title' => esc_html__( 'Right', 'elementskit-lite' ),
708 'icon' => 'eicon-text-align-right',
709 ],
710 ],
711 'default' => 'text-center',
712 'toggle' => true,
713 ]
714 );
715
716 $this->add_responsive_control(
717 'ekit_team_content_padding',
718 [
719 'label' =>esc_html__( 'Padding', 'elementskit-lite' ),
720 'type' => Controls_Manager::DIMENSIONS,
721 'size_units' => [ 'px', 'em', '%' ],
722 'selectors' => [
723 '{{WRAPPER}} .profile-card, {{WRAPPER}} .profile-image-card' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
724 ],
725 ]
726 );
727
728 $this->add_responsive_control(
729 'ekit_team_content_inner_padding',
730 [
731 'label' =>esc_html__( 'Content Padding', 'elementskit-lite' ),
732 'type' => Controls_Manager::DIMENSIONS,
733 'size_units' => [ 'px', 'em', '%' ],
734 'selectors' => [
735 '{{WRAPPER}} .profile-body' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
736 '{{WRAPPER}} .ekit-wid-con .profile-square-v .profile-card .profile-body' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
737 ],
738 ]
739 );
740
741 $this->add_group_control(
742 Group_Control_Border::get_type(),
743 [
744 'name' => 'ekit_team_content_border_color_group',
745 'label' => esc_html__( 'Border', 'elementskit-lite' ),
746 'selector' => '{{WRAPPER}} .profile-card, {{WRAPPER}} .profile-image-card',
747 ]
748 );
749
750 $this->add_responsive_control(
751 'ekit_team_content_border_radius',
752 [
753 'label' =>esc_html__( 'Border Radius', 'elementskit-lite' ),
754 'type' => Controls_Manager::DIMENSIONS,
755 'size_units' => [ 'px', '%' ],
756 'default' => [
757 'top' => '',
758 'right' => '',
759 'bottom' => '' ,
760 'left' => '',
761 ],
762 'selectors' => [
763 '{{WRAPPER}} .profile-card, {{WRAPPER}} .profile-image-card' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
764 ],
765 ]
766 );
767
768
769 $this->add_control(
770 'ekit_team_content_overly_color_heading',
771 [
772 'label' => esc_html__( 'Hover Overy Color', 'elementskit-lite' ),
773 'type' => Controls_Manager::HEADING,
774 'separator' => 'before',
775 'condition' => [
776 'ekit_team_style' => 'overlay_details'
777 ]
778 ]
779 );
780
781 $this->add_group_control(
782 Group_Control_Background::get_type(),
783 [
784 'name' => 'ekit_team_content_overly_color',
785 'label' => esc_html__( 'Background', 'elementskit-lite' ),
786 'types' => [ 'gradient'],
787 'selector' => '{{WRAPPER}} .image-card-v2 .profile-image-card::before',
788 'condition' => [
789 'ekit_team_style' => 'overlay_details'
790 ]
791 ]
792 );
793
794 $this->add_control(
795 'ekit_team_remove_gutters',
796 [
797 'label' => esc_html__( 'Remove Gutter?', 'elementskit-lite' ),
798 'type' => Controls_Manager::SWITCHER,
799 'label_on' => esc_html__( 'Yes', 'elementskit-lite' ),
800 'label_off' => esc_html__( 'Yes', 'elementskit-lite' ),
801 'return_value' => 'yes',
802 'default' => '',
803 ]
804 );
805
806
807
808 $this->end_controls_section();
809 // team content section style end
810
811 // Image Styles section
812 $this->start_controls_section(
813 'ekit_team_image_style', [
814 'label' => esc_html__( 'Image', 'elementskit-lite' ),
815 'tab' => Controls_Manager::TAB_STYLE,
816 ]
817 );
818
819 $this->add_responsive_control(
820 'ekit_team_image_weight',
821 [
822 'label' => esc_html__( 'Image Size', 'elementskit-lite' ),
823 'type' => Controls_Manager::SLIDER,
824 'size_units' => [ 'px', '%', 'em' ],
825 'range' => [
826 'px' => [
827 'min' => 10,
828 'max' => 300,
829 ],
830 '%' => [
831 'min' => 10,
832 'max' => 100,
833 ],
834 ],
835 'selectors' => [
836 '{{WRAPPER}} .ekit-wid-con .profile-square-v.square-v4 .profile-card .profile-header' => 'padding-top: {{SIZE}}{{UNIT}};',
837 '{{WRAPPER}} .profile-header > img, {{WRAPPER}} .profile-image-card img, {{WRAPPER}} .profile-image-card, {{WRAPPER}} .profile-header ' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};'
838 ],
839 'default' => [
840 'unit' => '%'
841 ]
842 ]
843 );
844
845 $this->add_responsive_control(
846 'ekit_team_image_border_radius',
847 [
848 'label' => esc_html__( 'Border Radius', 'elementskit-lite' ),
849 'type' => Controls_Manager::SLIDER,
850 'size_units' => [ 'px', '%', 'em' ],
851 'range' => [
852 'px' => [
853 'min' => 0,
854 'max' => 100,
855 ],
856 '%' => [
857 'min' => 0,
858 'max' => 100,
859 ],
860 ],
861 'selectors' => [
862 '{{WRAPPER}} .profile-header > img, {{WRAPPER}} .profile-image-card img, {{WRAPPER}} .ekit-team-style-overlay_circle, {{WRAPPER}} .ekit-team-style-overlay_circle_hover' => 'border-radius: {{SIZE}}{{UNIT}};'
863 ],
864 'condition' => [
865 'ekit_team_style' => [
866 'overlay', 'overlay_details', 'long_height_hover', 'overlay_circle', 'overlay_circle_hover'
867 ]
868 ]
869 ]
870 );
871
872 $this->add_responsive_control(
873 'ekit_team_image_height',
874 [
875 'label' => esc_html__('Height', 'elementskit-lite'),
876 'type' => Controls_Manager::SLIDER,
877 'size_units' => ['px', 'em'],
878 'range' => [
879 'px' => [
880 'min' => 1,
881 'max' => 500,
882 ],
883 ],
884 'condition' => [
885 'team_style!' => 'overlay',
886 ],
887 'selectors' => [
888 '{{WRAPPER}} .profile-card .profile-header' => 'height: {{SIZE}}{{UNIT}};',
889 ],
890 ]
891 );
892
893 $this->add_responsive_control(
894 'ekit_team_image_height_margin_bottom',
895 [
896 'label' => esc_html__( 'Margin', 'elementskit-lite' ),
897 'type' => Controls_Manager::DIMENSIONS,
898 'size_units' => [ 'px', '%', 'em' ],
899 'selectors' => [
900 '{{WRAPPER}} .profile-card .profile-header' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
901 ],
902 'condition' => [
903 'ekit_team_style' => [
904 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
905 ],
906 ],
907 ]
908 );
909
910
911
912 $this->add_responsive_control(
913 'ekit_team_image_width',
914 [
915 'label' => esc_html__('Width', 'elementskit-lite'),
916 'type' => Controls_Manager::SLIDER,
917 'size_units' => ['px', 'em', '%'],
918 'range' => [
919 'px' => [
920 'min' => 1,
921 'max' => 500,
922 ],
923 ],
924 'condition' => [
925 'team_style!' => 'overlay',
926 ],
927 'selectors' => [
928 '{{WRAPPER}} .profile-card .profile-header' => 'width: {{SIZE}}{{UNIT}};',
929 ],
930 ]
931 );
932
933 $this->add_group_control(
934 Group_Control_Box_Shadow::get_type(), [
935 'name' => 'ekit_team_image_shadow',
936 'selector' => '{{WRAPPER}} .profile-card .profile-header',
937 'condition' => [
938 'ekit_team_style' => [
939 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
940 ]
941 ]
942 ]
943 );
944
945 $this->add_group_control(
946 Group_Control_Box_Shadow::get_type(), [
947 'name' => 'modal_img_shadow',
948 'label' => esc_html__('Box Shadow (Popup)', 'elementskit-lite'),
949 'selector' => '{{WRAPPER}} .ekit-team-modal-img > img',
950 'condition' => [
951 'ekit_team_chose_popup' => 'yes',
952 'ekit_team_style' => [
953 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
954 ]
955 ],
956 ]
957 );
958
959 $this->add_group_control(
960 Group_Control_Border::get_type(),
961 [
962 'name' => 'ekit_team_image_border',
963 'label' => esc_html__( 'Border', 'elementskit-lite' ),
964 'selector' => '{{WRAPPER}} .profile-card .profile-header',
965 'condition' => [
966 'ekit_team_style' => [
967 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
968 ]
969 ],
970 ]
971 );
972
973 $this->add_responsive_control(
974 'ekit_team_image_radius',
975 [
976 'label' => esc_html__( 'Border radius', 'elementskit-lite' ),
977 'type' => Controls_Manager::DIMENSIONS,
978 'size_units' => [ 'px', '%', 'em' ],
979 'selectors' => [
980 '{{WRAPPER}} .ekit-team-img.profile-header > img' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
981 ],
982 'default' => [
983 'top' => '50',
984 'right' => '50',
985 'left' => '50',
986 'bottom' => '50',
987 'unit' => '%',
988 ],
989 'condition' => [
990 'ekit_team_style' => [
991 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
992 ]
993 ]
994 ]
995 );
996
997 $this->add_group_control(
998 Group_Control_Background::get_type(),
999 [
1000 'name' => 'ekit_team_image_background',
1001 'label' => esc_html__( 'Background', 'elementskit-lite' ),
1002 'types' => [ 'classic', 'gradient' ],
1003 'selector' => '{{WRAPPER}} .profile-card .profile-header',
1004 'condition' => [
1005 'ekit_team_style' => [
1006 'default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover'
1007 ]
1008 ],
1009 ]
1010 );
1011
1012 $this->add_control(
1013 'ekit_team_default_img_overlay_h',
1014 [
1015 'label' => esc_html__( 'Overlay', 'elementskit-lite' ),
1016 'type' => \Elementor\Controls_Manager::HEADING,
1017 'separator' => 'before',
1018 'condition' => [
1019 'ekit_team_style' => 'default',
1020 ],
1021 ]
1022 );
1023 $this->add_group_control(
1024 Group_Control_Background::get_type(),
1025 [
1026 'name' => 'ekit_team_default_img_overlay',
1027 'label' => esc_html__( 'Overlay', 'elementskit-lite' ),
1028 'types' => [ 'classic', 'gradient' ],
1029 'selector' => '{{WRAPPER}} .profile-header:before',
1030 'condition' => [
1031 'ekit_team_style' => 'default',
1032 ],
1033 ]
1034 );
1035
1036 $this->end_controls_section();
1037
1038
1039 // Icon Styles
1040 $this->start_controls_section(
1041 'ekit_team_top_icon_style',
1042 [
1043 'label' => esc_html__( 'Icon', 'elementskit-lite' ),
1044 'tab' => Controls_Manager::TAB_STYLE,
1045 'condition' => [
1046 'ekit_team_style' => 'default',
1047 'ekit_team_toggle_icon' => 'yes',
1048 ],
1049 ]
1050 );
1051
1052 $this->add_responsive_control(
1053 'ekit_team_top_icon_align',
1054 [
1055 'label' => esc_html__( 'Alignment', 'elementskit-lite' ),
1056 'type' => Controls_Manager::CHOOSE,
1057 'options' => [
1058 'start' => [
1059 'title' => esc_html__( 'Left', 'elementskit-lite' ),
1060 'icon' => 'eicon-text-align-left',
1061 ],
1062 'center' => [
1063 'title' => esc_html__( 'Right', 'elementskit-lite' ),
1064 'icon' => 'eicon-text-align-right',
1065 ],
1066 'end' => [
1067 'title' => esc_html__( 'Right', 'elementskit-lite' ),
1068 'icon' => 'eicon-text-align-right',
1069 ],
1070 ],
1071 'toggle' => true,
1072 ]
1073 );
1074
1075 $this->add_responsive_control(
1076 'ekit_team_top_icon_margin',
1077 [
1078 'label' => esc_html__( 'Margin', 'elementskit-lite' ),
1079 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1080 'size_units' => [ 'px', '%' ],
1081 'selectors' => [
1082 '{{WRAPPER}} .profile-icon > i, {{WRAPPER}} .profile-icon > svg' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1083 ],
1084 ]
1085 );
1086
1087 $this->add_responsive_control(
1088 'ekit_team_top_icon_padding',
1089 [
1090 'label' => esc_html__( 'Padding', 'elementskit-lite' ),
1091 'type' => \Elementor\Controls_Manager::DIMENSIONS,
1092 'size_units' => [ 'px', '%' ],
1093 'selectors' => [
1094 '{{WRAPPER}} .profile-icon > i, {{WRAPPER}} .profile-icon > svg' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1095 ],
1096 ]
1097 );
1098
1099 $this->add_responsive_control(
1100 'ekit_team_top_icon_border_radius',
1101 [
1102 'label' => esc_html__( 'Border Radius', 'elementskit-lite' ),
1103 'type' => Controls_Manager::DIMENSIONS,
1104 'size_units' => [ 'px', '%' ],
1105 'selectors' => [
1106 '{{WRAPPER}} .profile-icon' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1107 ],
1108 'default' => [
1109 'top' => '50',
1110 'left' => '50',
1111 'right' => '50',
1112 'bottom'=> '50',
1113 'unit' => '%'
1114 ],
1115 ]
1116 );
1117
1118 $this->add_group_control(
1119 Group_Control_Box_Shadow::get_type(),
1120 [
1121 'name' => 'ekit_team_top_icon_shadow',
1122 'selector' => '{{WRAPPER}} .profile-icon > i, {{WRAPPER}} .profile-icon > svg',
1123 ]
1124 );
1125
1126 $this->add_responsive_control(
1127 'ekit_team_top_icon_fsize',
1128 [
1129 'label' => esc_html__( 'Font Size', 'elementskit-lite' ),
1130 'type' => Controls_Manager::SLIDER,
1131 'range' => [
1132 'px' => [
1133 'min' => 6,
1134 'max' => 300,
1135 ],
1136 ],
1137 'default' => [
1138 'size' => 22,
1139 'unit' => 'px',
1140 ],
1141 'selectors' => [
1142 '{{WRAPPER}} .profile-icon' => 'font-size: {{SIZE}}{{UNIT}};',
1143 ],
1144 ]
1145 );
1146
1147 $this->add_control(
1148 'ekit_team_top_icon_hw',
1149 [
1150 'label' => esc_html__( 'Use Height Width', 'elementskit-lite' ),
1151 'description' => esc_html__('For svg icon, We don\'t need this. We will use font size and padding for adjusting size.', 'elementskit-lite'),
1152 'type' => Controls_Manager::SWITCHER,
1153 'label_on' => esc_html__( 'Show', 'elementskit-lite' ),
1154 'label_off' => esc_html__( 'Hide', 'elementskit-lite' ),
1155 'return_value' => 'yes',
1156 'default' => 'yes',
1157 ]
1158 );
1159
1160 $this->add_responsive_control(
1161 'ekit_team_top_icon_width',
1162 [
1163 'label' => esc_html__( 'Width', 'elementskit-lite' ),
1164 'type' => Controls_Manager::SLIDER,
1165 'size_units' => [ 'px', '%' ],
1166 'range' => [
1167 'px' => [
1168 'min' => 0,
1169 'max' => 200,
1170 ],
1171 ],
1172 'default' => [
1173 'size' => 60,
1174 'unit' => 'px',
1175 ],
1176 'selectors' => [
1177 '{{WRAPPER}} .profile-icon' => 'width: {{SIZE}}{{UNIT}};',
1178 ],
1179 'condition' => [
1180 'ekit_team_top_icon_hw' => 'yes'
1181 ],
1182 ]
1183 );
1184
1185 $this->add_responsive_control(
1186 'ekit_team_top_icon_height',
1187 [
1188 'label' => esc_html__( 'Height', 'elementskit-lite' ),
1189 'type' => Controls_Manager::SLIDER,
1190 'size_units' => [ 'px', '%' ],
1191 'range' => [
1192 'px' => [
1193 'min' => 0,
1194 'max' => 200,
1195 ],
1196 ],
1197 'default' => [
1198 'size' => 60,
1199 'unit' => 'px',
1200 ],
1201 'selectors' => [
1202 '{{WRAPPER}} .profile-icon' => 'height: {{SIZE}}{{UNIT}};',
1203 ],
1204 'condition' => [
1205 'ekit_team_top_icon_hw' => 'yes'
1206 ],
1207 ]
1208 );
1209
1210 $this->start_controls_tabs( 'top_icon_colors' );
1211 $this->start_controls_tab(
1212 'ekit_team_top_icon_colors_normal',
1213 [
1214 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
1215 ]
1216 );
1217 $this->add_control(
1218 'ekit_team_top_icon_n_color',
1219 [
1220 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1221 'type' => Controls_Manager::COLOR,
1222 'default' => '#fff',
1223 'selectors' => [
1224 '{{WRAPPER}} .profile-icon > i' => 'color: {{VALUE}};',
1225 '{{WRAPPER}} .profile-icon > svg' => 'fill: {{VALUE}};',
1226 ],
1227 ]
1228 );
1229 $this->add_control(
1230 'ekit_team_top_icon_n_bgcolor',
1231 [
1232 'label' => esc_html__( 'Background Color', 'elementskit-lite' ),
1233 'type' => Controls_Manager::COLOR,
1234 'default' => '#fc0467',
1235 'selectors' => [
1236 '{{WRAPPER}} .profile-icon' => 'background-color: {{VALUE}};',
1237 ],
1238 ]
1239 );
1240 $this->add_group_control(
1241 Group_Control_Border::get_type(),
1242 [
1243 'name' => 'ekit_team_top_icon_n_border',
1244 'label' => esc_html__( 'Border', 'elementskit-lite' ),
1245 'selector' => '{{WRAPPER}} .profile-icon',
1246 ]
1247 );
1248 $this->end_controls_tab();
1249
1250 $this->start_controls_tab(
1251 'ekit_team_top_icon_colors_hover',
1252 [
1253 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
1254 ]
1255 );
1256 $this->add_control(
1257 'ekit_team_top_icon_h_color',
1258 [
1259 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1260 'type' => Controls_Manager::COLOR,
1261 'default' => '',
1262 'selectors' => [
1263 '{{WRAPPER}} .profile-icon > i:hover' => 'color: {{VALUE}};',
1264 '{{WRAPPER}} .profile-icon > svg:hover' => 'fill: {{VALUE}};',
1265 ],
1266 ]
1267 );
1268 $this->add_control(
1269 'ekit_team_top_icon_h_bgcolor',
1270 [
1271 'label' => esc_html__( 'Background Color', 'elementskit-lite' ),
1272 'type' => Controls_Manager::COLOR,
1273 'default' => '',
1274 'selectors' => [
1275 '{{WRAPPER}} .profile-icon > i:hover, {{WRAPPER}} .profile-icon > svg:hover' => 'background-color: {{VALUE}};',
1276 ],
1277 ]
1278 );
1279 $this->add_group_control(
1280 Group_Control_Border::get_type(),
1281 [
1282 'name' => 'ekit_team_top_icon_h_border',
1283 'label' => esc_html__( 'Border', 'elementskit-lite' ),
1284 'selector' => '{{WRAPPER}} .profile-icon > i:hover, {{WRAPPER}} .profile-icon > svg:hover',
1285 ]
1286 );
1287 $this->end_controls_tab();
1288 $this->end_controls_tabs();
1289
1290 $this->end_controls_section();
1291
1292
1293 // Name Styles
1294 $this->start_controls_section(
1295 'ekit_team_name_style', [
1296 'label' => esc_html__( 'Name', 'elementskit-lite' ),
1297 'tab' => Controls_Manager::TAB_STYLE,
1298 ]
1299 );
1300
1301 $this->add_group_control(
1302 Group_Control_Typography::get_type(), [
1303 'name' => 'ekit_team_name_typography',
1304 'selector' => '{{WRAPPER}} .profile-body .profile-title',
1305 ]
1306 );
1307
1308 $this->start_controls_tabs(
1309 'ekit_team_name_tabs'
1310 );
1311
1312 $this->start_controls_tab(
1313 'ekit_team_name_normal',
1314 [
1315 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
1316 ]
1317 );
1318
1319 $this->add_control(
1320 'ekit_team_name_color',
1321 [
1322 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1323 'type' => Controls_Manager::COLOR,
1324 'selectors' => [
1325 '{{WRAPPER}} .profile-body .profile-title' => 'color: {{VALUE}};'
1326 ],
1327 ]
1328 );
1329 $this->end_controls_tab();
1330
1331 $this->start_controls_tab(
1332 'ekit_team_name_hover',
1333 [
1334 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
1335 ]
1336 );
1337
1338 $this->add_control(
1339 'ekit_team_name_hover_color',
1340 [
1341 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1342 'type' => Controls_Manager::COLOR,
1343 'selectors' => [
1344 '{{WRAPPER}} .profile-body:hover .profile-title' => 'color: {{VALUE}};',
1345 '{{WRAPPER}} .profile-card:hover .profile-title' => 'color: {{VALUE}} !important',
1346 ],
1347 ]
1348 );
1349
1350 $this->end_controls_tab();
1351
1352 $this->end_controls_tabs();
1353
1354 $this->add_responsive_control(
1355 'ekit_team_name_margin',
1356 [
1357 'label' => esc_html__('Margin Bottom', 'elementskit-lite'),
1358 'type' => Controls_Manager::SLIDER,
1359 'size_units' => ['px', 'em'],
1360 'separator' => 'before',
1361 'selectors' => [
1362 '{{WRAPPER}} .profile-body .profile-title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1363 ],
1364 ]
1365 );
1366
1367 $this->end_controls_section();
1368
1369
1370 // Position Styles
1371 $this->start_controls_section(
1372 'ekit_team_position_style', [
1373 'label' => esc_html__( 'Position', 'elementskit-lite' ),
1374 'tab' => Controls_Manager::TAB_STYLE,
1375 ]
1376 );
1377
1378 $this->add_group_control(
1379 Group_Control_Typography::get_type(), [
1380 'name' => 'ekit_team_position_typography',
1381 'selector' => '{{WRAPPER}} .profile-body .profile-designation',
1382 ]
1383 );
1384
1385 $this->start_controls_tabs(
1386 'ekit_team_position_tabs'
1387 );
1388
1389 $this->start_controls_tab(
1390 'ekit_team_position_normal',
1391 [
1392 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
1393 ]
1394 );
1395
1396 $this->add_control(
1397 'ekit_team_position_color',
1398 [
1399 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1400 'type' => Controls_Manager::COLOR,
1401 'selectors' => [
1402 '{{WRAPPER}} .profile-body .profile-designation' => 'color: {{VALUE}};'
1403 ],
1404 ]
1405 );
1406
1407 $this->end_controls_tab();
1408
1409 $this->start_controls_tab(
1410 'ekit_team_position_hover',
1411 [
1412 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
1413 ]
1414 );
1415
1416 $this->add_control(
1417 'ekit_team_position_hover_color',
1418 [
1419 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1420 'type' => Controls_Manager::COLOR,
1421 'selectors' => [
1422 '{{WRAPPER}} .profile-card:hover .profile-body .profile-designation,
1423 {{WRAPPER}} .profile-body .profile-designation:hover' => 'color: {{VALUE}};'
1424 ],
1425 ]
1426 );
1427
1428 $this->add_group_control(
1429 Group_Control_Text_Shadow::get_type(), [
1430 'name' => 'ekit_team_position_hover_shadow',
1431 'selector' => '{{WRAPPER}} .profile-card:hover .profile-body .profile-designation,
1432 {{WRAPPER}} .profile-body .profile-designation:hover',
1433 ]
1434 );
1435
1436 $this->end_controls_tab();
1437
1438 $this->end_controls_tabs();
1439
1440 $this->add_responsive_control(
1441 'ekit_team_position_margin_bottom',
1442 [
1443 'label' => esc_html__( 'Margin Bottom', 'elementskit-lite' ),
1444 'type' => Controls_Manager::SLIDER,
1445 'size_units' => [ 'px', '%' ],
1446 'range' => [
1447 'px' => [
1448 'min' => 0,
1449 'max' => 150,
1450 'step' => 1,
1451 ],
1452 '%' => [
1453 'min' => 0,
1454 'max' => 100,
1455 ],
1456 ],
1457
1458 'selectors' => [
1459 '{{WRAPPER}} .profile-body .profile-designation' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1460 ],
1461 'separator' => 'before',
1462 ]
1463 );
1464
1465 $this->end_controls_section();
1466
1467 // Position Styles
1468 $this->start_controls_section(
1469 'ekit_team_text_content_style_tab', [
1470 'label' => esc_html__( 'Description', 'elementskit-lite' ),
1471 'tab' => Controls_Manager::TAB_STYLE,
1472 ]
1473 );
1474
1475 $this->add_group_control(
1476 Group_Control_Typography::get_type(), [
1477 'name' => 'ekit_team_text_content_typography',
1478 'selector' => '{{WRAPPER}} .profile-body .profile-content',
1479 ]
1480 );
1481
1482 $this->start_controls_tabs(
1483 'ekit_team_text_content_tabs'
1484 );
1485
1486 $this->start_controls_tab(
1487 'ekit_team_text_content_normal',
1488 [
1489 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
1490 ]
1491 );
1492
1493 $this->add_control(
1494 'ekit_team_text_content_color',
1495 [
1496 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1497 'type' => Controls_Manager::COLOR,
1498 'selectors' => [
1499 '{{WRAPPER}} .profile-body .profile-content' => 'color: {{VALUE}};'
1500 ],
1501 ]
1502 );
1503
1504 $this->end_controls_tab();
1505
1506 $this->start_controls_tab(
1507 'ekit_team_text_content_hover',
1508 [
1509 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
1510 ]
1511 );
1512
1513 $this->add_control(
1514 'ekit_team_text_content_hover_color',
1515 [
1516 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1517 'type' => Controls_Manager::COLOR,
1518 'selectors' => [
1519 '{{WRAPPER}} .profile-card:hover .profile-body .profile-content' => 'color: {{VALUE}};',
1520 '{{WRAPPER}} .profile-image-card:hover .profile-body .profile-content' => 'color: {{VALUE}};',
1521 ],
1522 ]
1523 );
1524
1525 $this->end_controls_tab();
1526
1527 $this->end_controls_tabs();
1528
1529 $this->add_responsive_control(
1530 'ekit_team_text_content_margin_bottom',
1531 [
1532 'label' => esc_html__( 'Margin', 'elementskit-lite' ),
1533 'type' => Controls_Manager::DIMENSIONS,
1534 'size_units' => [ 'px', '%', 'em' ],
1535 'selectors' => [
1536 '{{WRAPPER}} .profile-body .profile-content' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1537 ],
1538 'separator' => 'before',
1539 ]
1540 );
1541
1542
1543 $this->end_controls_section();
1544
1545
1546 // Social Styles
1547 $this->start_controls_section(
1548 'ekit_team_social_style', [
1549 'label' => esc_html__( 'Social Profiles', 'elementskit-lite' ),
1550 'tab' => Controls_Manager::TAB_STYLE,
1551 'condition' => [
1552 'ekit_team_socail_enable' => 'yes'
1553 ]
1554 ]
1555 );
1556
1557 // Alignment
1558 $this->add_responsive_control(
1559 'ekit_socialmedai_list_item_align',
1560 [
1561 'label' => esc_html__( 'Alignment', 'elementskit-lite' ),
1562 'type' => Controls_Manager::CHOOSE,
1563 'options' => [
1564 'left' => [
1565 'title' => esc_html__( 'Left', 'elementskit-lite' ),
1566 'icon' => 'eicon-text-align-left',
1567 ],
1568 'center' => [
1569 'title' => esc_html__( 'Center', 'elementskit-lite' ),
1570 'icon' => 'eicon-text-align-center',
1571 ],
1572 'right' => [
1573 'title' => esc_html__( 'Right', 'elementskit-lite' ),
1574 'icon' => 'eicon-text-align-right',
1575 ],
1576 ],
1577 'default' => 'center',
1578 'toggle' => true,
1579 'selectors' => [
1580 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'text-align: {{VALUE}};',
1581 $popup_selector . ' .ekit-team-social-list > li > a' => 'text-align: {{VALUE}};',
1582 ],
1583 ]
1584 );
1585
1586 // Display design
1587 $this->add_responsive_control(
1588 'ekit_socialmedai_list_display',
1589 [
1590 'label' => esc_html__( 'Display', 'elementskit-lite' ),
1591 'type' => Controls_Manager::SELECT,
1592 'default' => 'inline-block',
1593 'options' => [
1594 'inline-block' => esc_html__( 'Inline Block', 'elementskit-lite' ),
1595 'block' => esc_html__( 'Block', 'elementskit-lite' ),
1596 ],
1597 'selectors' => [
1598 '{{WRAPPER}} .ekit-team-social-list > li' => 'display: {{VALUE}};',
1599 $popup_selector . ' .ekit-team-social-list > li' => 'display: {{VALUE}};',
1600 ],
1601 ]
1602 );
1603
1604 // border radius
1605 $this->add_responsive_control(
1606 'ekit_socialmedai_list_border_radius',
1607 [
1608 'label' => esc_html__( 'Border radius', 'elementskit-lite' ),
1609 'type' => Controls_Manager::DIMENSIONS,
1610 'size_units' => [ 'px', '%', 'em' ],
1611 'default' => [
1612 'top' => '50',
1613 'right' => '50',
1614 'bottom' => '50' ,
1615 'left' => '50',
1616 'unit' => '%',
1617 ],
1618 'selectors' => [
1619 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1620 $popup_selector . ' .ekit-team-social-list > li > a' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1621 ],
1622 ]
1623 );
1624
1625 // Padding style
1626
1627 $this->add_responsive_control(
1628 'ekit_socialmedai_list_container_padding',
1629 [
1630 'label' => esc_html__('Container Padding', 'elementskit-lite'),
1631 'type' => Controls_Manager::DIMENSIONS,
1632 'size_units' => ['px', 'em'],
1633 'selectors' => [
1634 '{{WRAPPER}} .ekit-team-social-list' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1635 $popup_selector . ' .ekit-team-social-list' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1636 ],
1637 ]
1638 );
1639
1640 $this->add_responsive_control(
1641 'ekit_socialmedai_list_padding',
1642 [
1643 'label' => esc_html__('Padding', 'elementskit-lite'),
1644 'type' => Controls_Manager::DIMENSIONS,
1645 'size_units' => ['px', 'em'],
1646 'selectors' => [
1647 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1648 $popup_selector . ' .ekit-team-social-list > li > a' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1649 ],
1650 ]
1651 );
1652
1653 // margin style
1654
1655 $this->add_responsive_control(
1656 'ekit_socialmedai_list_margin',
1657 [
1658 'label' => esc_html__('Margin', 'elementskit-lite'),
1659 'type' => Controls_Manager::DIMENSIONS,
1660 'size_units' => ['px', 'em'],
1661 'selectors' => [
1662 '{{WRAPPER}} .ekit-team-social-list > li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1663 $popup_selector .' .ekit-team-social-list > li' => 'margin: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
1664 ],
1665 ]
1666 );
1667
1668 $this->add_responsive_control(
1669 'ekit_socialmedai_list_icon_size',
1670 [
1671 'label' => esc_html__( 'Icon Size', 'elementskit-lite' ),
1672 'type' => Controls_Manager::SLIDER,
1673 'size_units' => [ 'px', '%' ],
1674 'range' => [
1675 'px' => [
1676 'min' => 1,
1677 'max' => 100,
1678 'step' => 5,
1679 ],
1680 '%' => [
1681 'min' => 1,
1682 'max' => 100,
1683 ],
1684 ],
1685 'selectors' => [
1686 '{{WRAPPER}} .ekit-team-social-list > li > a :is(i, svg)' => 'font-size: {{SIZE}}{{UNIT}};',
1687 $popup_selector .' .ekit-team-social-list > li > a :is(i, svg)' => 'font-size: {{SIZE}}{{UNIT}};',
1688 $popup_selector .' .ekit-team-social-list > li > a svg' => 'width: {{SIZE}}{{UNIT}}; height: {{SIZE}}{{UNIT}};',
1689 ],
1690 ]
1691 );
1692
1693 $this->add_group_control(
1694 Group_Control_Typography::get_type(),
1695 [
1696 'name' => 'ekit_socialmedai_list_typography',
1697 'label' => esc_html__( 'Typography', 'elementskit-lite' ),
1698 'selector' => '{{WRAPPER}} .ekit-team-social-list > li > a,'. $popup_selector . ' .ekit-team-social-list > li > a',
1699 ]
1700 );
1701
1702 $this->add_control(
1703 'ekit_socialmedai_list_style_use_height_and_width',
1704 [
1705 'label' => esc_html__( 'Use Height Width', 'elementskit-lite' ),
1706 'type' => Controls_Manager::SWITCHER,
1707 'label_on' => esc_html__( 'Show', 'elementskit-lite' ),
1708 'label_off' => esc_html__( 'Hide', 'elementskit-lite' ),
1709 'return_value' => 'yes',
1710 'default' => 'no',
1711 ]
1712 );
1713
1714 $this->add_responsive_control(
1715 'ekit_socialmedai_list_width',
1716 [
1717 'label' => esc_html__( 'Width', 'elementskit-lite' ),
1718 'type' => Controls_Manager::SLIDER,
1719 'size_units' => [ 'px', '%' ],
1720 'range' => [
1721 'px' => [
1722 'min' => 0,
1723 'max' => 200,
1724 'step' => 1,
1725 ],
1726 '%' => [
1727 'min' => 0,
1728 'max' => 100,
1729 ],
1730 ],
1731 'default' => [
1732 'unit' => 'px',
1733 'size' => 30,
1734 ],
1735 'selectors' => [
1736 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'width: {{SIZE}}{{UNIT}};',
1737 $popup_selector .' .ekit-team-social-list > li > a' => 'width: {{SIZE}}{{UNIT}};',
1738 ],
1739 'condition' => [
1740 'ekit_socialmedai_list_style_use_height_and_width' => 'yes'
1741 ]
1742 ]
1743 );
1744
1745 $this->add_responsive_control(
1746 'ekit_socialmedai_list_height',
1747 [
1748 'label' => esc_html__( 'Height', 'elementskit-lite' ),
1749 'type' => Controls_Manager::SLIDER,
1750 'size_units' => [ 'px', '%' ],
1751 'range' => [
1752 'px' => [
1753 'min' => 0,
1754 'max' => 200,
1755 'step' => 1,
1756 ],
1757 '%' => [
1758 'min' => 0,
1759 'max' => 100,
1760 ],
1761 ],
1762 'default' => [
1763 'unit' => 'px',
1764 'size' => 30,
1765 ],
1766 'selectors' => [
1767 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'height: {{SIZE}}{{UNIT}};',
1768 $popup_selector .' .ekit-team-social-list > li > a' => 'height: {{SIZE}}{{UNIT}};',
1769 ],
1770 'condition' => [
1771 'ekit_socialmedai_list_style_use_height_and_width' => 'yes'
1772 ]
1773 ]
1774 );
1775
1776 $this->add_responsive_control(
1777 'ekit_socialmedai_list_line_height',
1778 [
1779 'label' => esc_html__( 'Line Height', 'elementskit-lite' ),
1780 'type' => Controls_Manager::SLIDER,
1781 'size_units' => [ 'px', '%' ],
1782 'range' => [
1783 'px' => [
1784 'min' => 0,
1785 'max' => 200,
1786 'step' => 1,
1787 ],
1788 '%' => [
1789 'min' => 0,
1790 'max' => 100,
1791 ],
1792 ],
1793 'default' => [
1794 'unit' => 'px',
1795 'size' => 30,
1796 ],
1797 'selectors' => [
1798 '{{WRAPPER}} .ekit-team-social-list > li > a' => 'line-height: {{SIZE}}{{UNIT}};',
1799 $popup_selector .' .ekit-team-social-list > li > a' => 'line-height: {{SIZE}}{{UNIT}};',
1800 ],
1801 'condition' => [
1802 'ekit_socialmedai_list_style_use_height_and_width' => 'yes'
1803 ]
1804 ]
1805 );
1806
1807 $this->end_controls_section();
1808
1809
1810 // Overlay Styles
1811 $this->start_controls_section(
1812 'ekit_team_overlay_style', [
1813 'label' => esc_html__( 'Overlay', 'elementskit-lite' ),
1814 'tab' => Controls_Manager::TAB_STYLE,
1815 'condition' => [
1816 'team_style' => 'overlay',
1817 ],
1818 ]
1819 );
1820
1821 $this->add_group_control(
1822 Group_Control_Background::get_type(),
1823 [
1824 'name' => 'ekit_team_background_overlay',
1825 'label' => esc_html__( 'Background', 'elementskit-lite' ),
1826 'types' => [ 'gradient' ],
1827 'selector' => '{{WRAPPER}} .profile-image-card:before',
1828 ]
1829 );
1830
1831 $this->end_controls_section();
1832
1833
1834 // Modal Styles start here
1835 $this->start_controls_section(
1836 'ekit_team_modal_style', [
1837 'label' => esc_html__( 'Modal Controls', 'elementskit-lite' ),
1838 'tab' => Controls_Manager::TAB_STYLE,
1839 'condition' => [
1840 'ekit_team_chose_popup' => 'yes'
1841 ]
1842 ]
1843 );
1844
1845
1846 $this->add_control(
1847 'ekit_team_modal_heading',
1848 [
1849 'label' => esc_html__( 'Modal', 'elementskit-lite' ),
1850 'type' => Controls_Manager::HEADING,
1851 'separator' => 'before',
1852 ]
1853 );
1854
1855 $this->add_group_control(
1856 Group_Control_Background::get_type(),
1857 [
1858 'name' => 'ekit_team_modal_background',
1859 'label' => esc_html__( 'Background', 'elementskit-lite' ),
1860 'types' => [ 'classic', 'gradient' ],
1861 'selector' => '{{WRAPPER}} .elementskit-team-popup .modal-content, ' . $popup_selector . '.elementskit-team-popup .modal-content',
1862 ]
1863 );
1864
1865 $this->add_control(
1866 'ekit_team_modal_name_heading',
1867 [
1868 'label' => esc_html__( 'Name', 'elementskit-lite' ),
1869 'type' => Controls_Manager::HEADING,
1870 'separator' => 'before',
1871 ]
1872 );
1873
1874 $this->add_control(
1875 'ekit_team_modal_name_color',
1876 [
1877 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1878 'type' => Controls_Manager::COLOR,
1879 'selectors' => [
1880 '{{WRAPPER}} .ekit-team-modal-title' => 'color: {{VALUE}};',
1881 $popup_selector . ' .ekit-team-modal-title' => 'color: {{VALUE}};',
1882 ],
1883 ]
1884 );
1885
1886 $this->add_group_control(
1887 Group_Control_Typography::get_type(), [
1888 'name' => 'ekit_team_modal_name_typography',
1889 'selector' => '{{WRAPPER}} .ekit-team-modal-title,' . $popup_selector . ' .ekit-team-modal-title',
1890 ]
1891 );
1892
1893 $this->add_responsive_control(
1894 'ekit_team_modal_name_margin_bottom',
1895 [
1896 'label' => esc_html__( 'Margin Bottom', 'elementskit-lite' ),
1897 'type' => Controls_Manager::SLIDER,
1898 'size_units' => [ 'px', '%' ],
1899 'range' => [
1900 'px' => [
1901 'min' => 0,
1902 'max' => 150,
1903 'step' => 1,
1904 ],
1905 '%' => [
1906 'min' => 0,
1907 'max' => 100,
1908 ],
1909 ],
1910 'selectors' => [
1911 '{{WRAPPER}} .ekit-team-modal-title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1912 $popup_selector . ' .ekit-team-modal-title' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1913 ],
1914 ]
1915 );
1916
1917 $this->add_control(
1918 'ekit_team_modal_position_heading',
1919 [
1920 'label' => esc_html__( 'Position', 'elementskit-lite' ),
1921 'type' => Controls_Manager::HEADING,
1922 'separator' => 'before',
1923 ]
1924 );
1925
1926 $this->add_control(
1927 'ekit_team_modal_position_color',
1928 [
1929 'label' => esc_html__( 'Color', 'elementskit-lite' ),
1930 'type' => Controls_Manager::COLOR,
1931 'selectors' => [
1932 '{{WRAPPER}} .ekit-team-modal-position' => 'color: {{VALUE}};',
1933 $popup_selector . ' .ekit-team-modal-position' => 'color: {{VALUE}};'
1934 ],
1935 ]
1936 );
1937
1938 $this->add_group_control(
1939 Group_Control_Typography::get_type(), [
1940 'name' => 'ekit_team_modal_position_typography',
1941 'selector' => '{{WRAPPER}} .ekit-team-modal-position,' . $popup_selector . ' .ekit-team-modal-position',
1942 ]
1943 );
1944
1945 $this->add_responsive_control(
1946 'ekit_team_modal_position_margin_bottom',
1947 [
1948 'label' => esc_html__( 'Margin Bottom', 'elementskit-lite' ),
1949 'type' => Controls_Manager::SLIDER,
1950 'size_units' => [ 'px', '%' ],
1951 'range' => [
1952 'px' => [
1953 'min' => 0,
1954 'max' => 150,
1955 'step' => 1,
1956 ],
1957 '%' => [
1958 'min' => 0,
1959 'max' => 100,
1960 ],
1961 ],
1962 'selectors' => [
1963 '{{WRAPPER}} .ekit-team-modal-position' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1964 $popup_selector . ' .ekit-team-modal-position' => 'margin-bottom: {{SIZE}}{{UNIT}};',
1965 ],
1966 ]
1967 );
1968
1969 // Modal Description
1970 $this->add_control(
1971 'modal_desc',
1972 [
1973 'label' => esc_html__('Description', 'elementskit-lite'),
1974 'type' => Controls_Manager::HEADING,
1975 'separator' => 'before',
1976 ]
1977 );
1978
1979 // Modal Description - Color
1980 $this->add_control(
1981 'modal_desc_color',
1982 [
1983 'label' => esc_html__('Color', 'elementskit-lite'),
1984 'type' => Controls_Manager::COLOR,
1985 'selectors' => [
1986 '{{WRAPPER}} .ekit-team-modal-content' => 'color: {{VALUE}};',
1987 $popup_selector . ' .ekit-team-modal-content' => 'color: {{VALUE}};',
1988 ]
1989 ]
1990 );
1991
1992 // Modal Description - Typography
1993 $this->add_group_control(
1994 Group_Control_Typography::get_type(), [
1995 'name' => 'modal_desc_font',
1996 'selector' => '{{WRAPPER}} .ekit-team-modal-content,'. $popup_selector . ' .ekit-team-modal-content',
1997 ]
1998 );
1999
2000 // Modal Description - Margin Bottom
2001 $this->add_responsive_control(
2002 'modal_desc_margin_bottom',
2003 [
2004 'label' => esc_html__( 'Margin Bottom', 'elementskit-lite' ),
2005 'type' => Controls_Manager::SLIDER,
2006 'size_units' => [ 'px', '%' ],
2007 'range' => [
2008 'px' => [
2009 'min' => 0,
2010 'max' => 150,
2011 'step' => 1,
2012 ],
2013 '%' => [
2014 'min' => 0,
2015 'max' => 100,
2016 ],
2017 ],
2018 'selectors' => [
2019 '{{WRAPPER}} .ekit-team-modal-content' => 'margin-bottom: {{SIZE}}{{UNIT}};',
2020 $popup_selector .' .ekit-team-modal-content' => 'margin-bottom: {{SIZE}}{{UNIT}};',
2021 ],
2022 ]
2023 );
2024
2025 $this->add_control(
2026 'more_options',
2027 [
2028 'label' => esc_html__( 'Phone and Email', 'elementskit-lite' ),
2029 'type' => Controls_Manager::HEADING,
2030 'separator' => 'before',
2031 ]
2032 );
2033
2034
2035 $this->add_group_control(
2036 Group_Control_Typography::get_type(), [
2037 'name' => 'ekit_team_info_typography',
2038 'selector' => '{{WRAPPER}} .ekit-team-modal-list,'. $popup_selector . ' .ekit-team-modal-list',
2039 ]
2040 );
2041
2042 $this->add_control(
2043 'ekit_team_info_color',
2044 [
2045 'label' => esc_html__( 'Color', 'elementskit-lite' ),
2046 'type' => Controls_Manager::COLOR,
2047 'selectors' => [
2048 '{{WRAPPER}} .ekit-team-modal-list' => 'color: {{VALUE}};',
2049 $popup_selector . ' .ekit-team-modal-list' => 'color: {{VALUE}};'
2050 ],
2051 ]
2052 );
2053
2054 $this->add_control(
2055 'ekit_team_info_hover_color',
2056 [
2057 'label' => esc_html__( 'Color Hover', 'elementskit-lite' ),
2058 'type' => Controls_Manager::COLOR,
2059 'selectors' => [
2060 '{{WRAPPER}} .ekit-team-modal-list a:hover' => 'color: {{VALUE}};',
2061 $popup_selector . ' .ekit-team-modal-list a:hover' => 'color: {{VALUE}};'
2062 ],
2063 ]
2064 );
2065
2066 $this->end_controls_section();
2067
2068 $this->start_controls_section(
2069 'ekit_team_close_icon',
2070 [
2071 'label' => esc_html__( 'Close Icon', 'elementskit-lite' ),
2072 'tab' => Controls_Manager::TAB_STYLE,
2073 'condition' => [
2074 'ekit_team_chose_popup' => 'yes'
2075 ]
2076 ]
2077 );
2078
2079 $this->start_controls_tabs( 'ekit_icon_box_icon_colors' );
2080
2081 $this->start_controls_tab(
2082 'ekit_team_icon_colors_normal',
2083 [
2084 'label' => esc_html__( 'Normal', 'elementskit-lite' ),
2085 ]
2086 );
2087
2088 $this->add_control(
2089 'ekit_team_icon_primary_color',
2090 [
2091 'label' => esc_html__( 'Icon Color', 'elementskit-lite' ),
2092 'type' => Controls_Manager::COLOR,
2093 'default' => '#656565',
2094 'selectors' => [
2095 '{{WRAPPER}} .ekit-team-modal-close' => 'color: {{VALUE}};',
2096 '{{WRAPPER}} .ekit-team-modal-close svg' => 'fill: {{VALUE}};',
2097 $popup_selector . ' .ekit-team-modal-close' => 'color: {{VALUE}};',
2098 $popup_selector . ' .ekit-team-modal-close svg' => 'fill: {{VALUE}};',
2099 ],
2100 ]
2101 );
2102
2103 $this->add_control(
2104 'ekit_team_icon_secondary_color_normal',
2105 [
2106 'label' => esc_html__( 'Icon BG Color', 'elementskit-lite' ),
2107 'type' => Controls_Manager::COLOR,
2108 'default' => '',
2109 'selectors' => [
2110 '{{WRAPPER}} .ekit-team-modal-close' => 'background-color: {{VALUE}};',
2111 $popup_selector . ' .ekit-team-modal-close' => 'background-color: {{VALUE}};',
2112 ],
2113 ]
2114 );
2115
2116 $this->add_group_control(
2117 Group_Control_Border::get_type(),
2118 [
2119 'name' => 'ekit_team_border',
2120 'label' => esc_html__( 'Border', 'elementskit-lite' ),
2121 'selector' => '{{WRAPPER}} .ekit-team-modal-close,' . $popup_selector .' .ekit-team-modal-close',
2122 ]
2123 );
2124
2125
2126
2127 $this->add_responsive_control(
2128 'ekit_team_icon_border_radius',
2129 [
2130 'label' => esc_html__( 'Border Radius', 'elementskit-lite' ),
2131 'type' => Controls_Manager::DIMENSIONS,
2132 'size_units' => [ 'px', '%' ],
2133 'selectors' => [
2134 '{{WRAPPER}} .ekit-team-modal-close' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2135 $popup_selector . ' .ekit-team-modal-close' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2136 ],
2137 ]
2138 );
2139 $this->add_group_control(
2140 Group_Control_Box_Shadow::get_type(),
2141 [
2142 'name' => 'ekit_icon_icon_box_shadow_normal_group',
2143 'selector' => '{{WRAPPER}} .ekit-team-modal-close,' . $popup_selector . ' .ekit-team-modal-close',
2144 ]
2145 );
2146 $this->end_controls_tab();
2147
2148 $this->start_controls_tab(
2149 'ekit_team_icon_colors_hover',
2150 [
2151 'label' => esc_html__( 'Hover', 'elementskit-lite' ),
2152 ]
2153 );
2154
2155 $this->add_control(
2156 'ekit_team_hover_primary_color',
2157 [
2158 'label' => esc_html__( 'Icon Color (Hover)', 'elementskit-lite' ),
2159 'type' => Controls_Manager::COLOR,
2160 'default' => '',
2161 'selectors' => [
2162 '{{WRAPPER}} .ekit-team-modal-close:hover' => 'color: {{VALUE}};',
2163 '{{WRAPPER}} .ekit-team-modal-close:hover svg' => 'fill: {{VALUE}};',
2164 $popup_selector . ' .ekit-team-modal-close:hover' => 'color: {{VALUE}};',
2165 $popup_selector . ' .ekit-team-modal-close:hover svg' => 'fill: {{VALUE}};',
2166 ],
2167 ]
2168 );
2169
2170 $this->add_control(
2171 'ekit_team_hover_background_color',
2172 [
2173 'label' => esc_html__( 'Icon BG Color (Hover)', 'elementskit-lite' ),
2174 'type' => Controls_Manager::COLOR,
2175 'default' => '',
2176 'selectors' => [
2177 '{{WRAPPER}} .ekit-team-modal-close:hover' => 'background-color: {{VALUE}};',
2178 $popup_selector . ' .ekit-team-modal-close:hover' => 'background-color: {{VALUE}};',
2179 ],
2180 ]
2181 );
2182
2183 $this->add_group_control(
2184 Group_Control_Border::get_type(),
2185 [
2186 'name' => 'ekit_team_border_icon_group',
2187 'label' => esc_html__( 'Border', 'elementskit-lite' ),
2188 'selector' => '{{WRAPPER}} .ekit-team-modal-close:hover,' . $popup_selector . ' .ekit-team-modal-close:hover',
2189 ]
2190 );
2191
2192 $this->add_responsive_control(
2193 'ekit_icon_box_icons_hover_border_radius',
2194 [
2195 'label' => esc_html__( 'Border Radius', 'elementskit-lite' ),
2196 'type' => Controls_Manager::DIMENSIONS,
2197 'size_units' => [ 'px', '%' ],
2198 'selectors' => [
2199 '{{WRAPPER}} .ekit-team-modal-close:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2200 $popup_selector . ' .ekit-team-modal-close:hover' => 'border-radius: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2201 ],
2202 ]
2203 );
2204 $this->add_group_control(
2205 Group_Control_Box_Shadow::get_type(),
2206 [
2207 'name' => 'ekit_team_shadow_group',
2208 'selector' => '{{WRAPPER}} .ekit-team-modal-close:hover,' . $popup_selector . ' .ekit-team-modal-close:hover',
2209 ]
2210 );
2211 $this->end_controls_tab();
2212
2213 $this->end_controls_tabs();
2214 $this->add_responsive_control(
2215 'ekit_team_close_icon_size',
2216 [
2217 'label' => esc_html__( 'Font Size', 'elementskit-lite' ),
2218 'type' => Controls_Manager::SLIDER,
2219 'range' => [
2220 'px' => [
2221 'min' => 6,
2222 'max' => 300,
2223 ],
2224 ],
2225 'selectors' => [
2226 '{{WRAPPER}} .ekit-team-modal-close' => 'font-size: {{SIZE}}{{UNIT}};',
2227 '{{WRAPPER}} .ekit-team-modal-close svg' => 'max-width: {{SIZE}}{{UNIT}};',
2228 $popup_selector .' .ekit-team-modal-close' => 'font-size: {{SIZE}}{{UNIT}};',
2229 $popup_selector .' .ekit-team-modal-close svg' => 'max-width: {{SIZE}}{{UNIT}};',
2230 ],
2231 'separator' => 'before',
2232 ]
2233 );
2234
2235 $this->add_responsive_control(
2236 'ekit_team_close_icon_padding',
2237 [
2238 'label' => esc_html__( 'Padding', 'elementskit-lite' ),
2239 'type' => Controls_Manager::DIMENSIONS,
2240 'size_units' => [ 'px', '%', 'em' ],
2241 'selectors' => [
2242 '{{WRAPPER}} .ekit-team-modal-close' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2243 $popup_selector . ' .ekit-team-modal-close' => 'padding: {{TOP}}{{UNIT}} {{RIGHT}}{{UNIT}} {{BOTTOM}}{{UNIT}} {{LEFT}}{{UNIT}};',
2244 ],
2245 ]
2246 );
2247
2248 $this->add_responsive_control(
2249 'ekit_team_close_icon_enable_height_width',
2250 [
2251 'label' => esc_html__( 'Use Height Width', 'elementskit-lite' ),
2252 'type' => Controls_Manager::SWITCHER,
2253 'label_on' => esc_html__( 'Yes', 'elementskit-lite' ),
2254 'label_off' => esc_html__( 'No', 'elementskit-lite' ),
2255 'return_value' => 'yes',
2256 'default' => '',
2257 ]
2258 );
2259
2260 $this->add_responsive_control(
2261 'ekit_team_close_icon_width',
2262 [
2263 'label' => esc_html__( 'Width', 'elementskit-lite' ),
2264 'type' => Controls_Manager::SLIDER,
2265 'range' => [
2266 'px' => [
2267 'min' => 10,
2268 'max' => 200,
2269 ],
2270 ],
2271 'selectors' => [
2272 '{{WRAPPER}} .ekit-team-modal-close' => 'width: {{SIZE}}{{UNIT}};',
2273 $popup_selector . ' .ekit-team-modal-close' => 'width: {{SIZE}}{{UNIT}};',
2274 ],
2275 'condition' => [
2276 'ekit_team_close_icon_enable_height_width' => 'yes',
2277 ],
2278 ]
2279 );
2280
2281 $this->add_responsive_control(
2282 'ekit_team_close_icon_height',
2283 [
2284 'label' => esc_html__( 'Height', 'elementskit-lite' ),
2285 'type' => Controls_Manager::SLIDER,
2286 'range' => [
2287 'px' => [
2288 'min' => 10,
2289 'max' => 200,
2290 ],
2291 ],
2292 'selectors' => [
2293 '{{WRAPPER}} .ekit-team-modal-close' => 'height: {{SIZE}}{{UNIT}};',
2294 $popup_selector . ' .ekit-team-modal-close' => 'height: {{SIZE}}{{UNIT}};',
2295 ],
2296 'condition' => [
2297 'ekit_team_close_icon_enable_height_width' => 'yes',
2298 ],
2299 ]
2300 );
2301
2302 $this->add_responsive_control(
2303 'ekit_team_close_icon_line_height',
2304 [
2305 'label' => esc_html__( 'Line Height', 'elementskit-lite' ),
2306 'type' => Controls_Manager::SLIDER,
2307 'range' => [
2308 'px' => [
2309 'min' => 10,
2310 'max' => 200,
2311 ],
2312 ],
2313 'selectors' => [
2314 '{{WRAPPER}} .ekit-team-modal-close' => 'line-height: {{SIZE}}{{UNIT}};',
2315 $popup_selector . ' .ekit-team-modal-close' => 'line-height: {{SIZE}}{{UNIT}};',
2316 ],
2317 'condition' => [
2318 'ekit_team_close_icon_enable_height_width' => 'yes',
2319 ],
2320
2321 ]
2322 );
2323
2324 $this->add_responsive_control(
2325 'ekit_team_close_icon_vertical_align',
2326 [
2327 'label' => esc_html__( 'Vertical Position ', 'elementskit-lite' ),
2328 'type' => Controls_Manager::SLIDER,
2329 'range' => [
2330 'px' => [
2331 'min' => -200,
2332 'max' => 200,
2333 ],
2334 ],
2335 'selectors' => [
2336 '{{WRAPPER}} .elementskit-infobox .elementskit-box-header .elementskit-info-box-icon' => ' -webkit-transform: translateY({{SIZE}}{{UNIT}}); -ms-transform: translateY({{SIZE}}{{UNIT}}); transform: translateY({{SIZE}}{{UNIT}});',
2337 $popup_selector .' .elementskit-infobox .elementskit-box-header .elementskit-info-box-icon' => ' -webkit-transform: translateY({{SIZE}}{{UNIT}}); -ms-transform: translateY({{SIZE}}{{UNIT}}); transform: translateY({{SIZE}}{{UNIT}});',
2338 ],
2339 'condition' => [
2340 'ekit_icon_box_icon_position!' => 'top'
2341 ]
2342
2343 ]
2344 );
2345
2346 $this->end_controls_section();
2347
2348 $this->insert_pro_message();
2349 }
2350
2351 protected function render( ) {
2352 echo '<div class="ekit-wid-con">';
2353 $this->render_raw();
2354 echo '</div>';
2355 }
2356
2357 protected function render_raw( ) {
2358 $settings = $this->get_settings_for_display();
2359 extract($settings);
2360
2361 // Image sectionn
2362 $image_html = '';
2363 if ( !empty($ekit_team_image['url']) ) {
2364 $this->add_render_attribute('image', 'src', $ekit_team_image['url']);
2365 $this->add_render_attribute('image', 'alt', Control_Media::get_image_alt($ekit_team_image));
2366 $this->add_render_attribute('image', 'title', Control_Media::get_image_title($ekit_team_image));
2367
2368 $image_html = Group_Control_Image_Size::get_attachment_image_html($settings, 'ekit_team_thumbnail', 'ekit_team_image');
2369 }
2370
2371 $this->add_render_attribute(
2372 'profile_card',
2373 [
2374 'class' => 'profile-card elementor-animation-'. $team_hover_animation .' ' . $ekit_team_content_text_align . ' ekit-team-style-'.$ekit_team_style,
2375 ]
2376 );
2377
2378 // Social List
2379 if ( $ekit_team_socail_enable === 'yes' ) {
2380 foreach ($ekit_team_social_icons as $icon) {
2381 // List Item
2382 $this->add_render_attribute( 'social_item_' . $icon['_id'], 'class', 'elementor-repeater-item-' . $icon[ '_id' ] );
2383
2384 // Link
2385 $this->add_link_attributes( 'social_link_' . $icon['_id'], $icon['ekit_team_link'] );
2386 $this->add_render_attribute( 'social_link_' . $icon['_id'], 'aria-label', $icon['ekit_team_label'] );
2387 }
2388 }
2389
2390 if ( in_array($ekit_team_style, array('default', 'centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover')) ):
2391 ?>
2392 <?php if($ekit_team_style == 'centered_style'): ?> <div class="profile-square-v"> <?php endif; ?>
2393 <?php if($ekit_team_style == 'centered_style_details'): ?> <div class="profile-square-v square-v5 no_gutters"> <?php endif; ?>
2394 <?php if($ekit_team_style == 'long_height_details'): ?> <div class="profile-square-v square-v6 no_gutters"> <?php endif; ?>
2395 <?php if($ekit_team_style == 'long_height_details_hover'): ?> <div class="profile-square-v square-v6 square-v6-v2 no_gutters"><?php endif; ?>
2396
2397 <div <?php echo $this->get_render_attribute_string('profile_card'); // phpcs:ignore WordPress.Security.EscapeOutput.OutputNotEscaped -- Already escaped by elementor ?>>
2398 <?php if ($settings['ekit_team_chose_popup'] == 'yes') : ?>
2399 <a aria-label="<?php echo esc_attr( sprintf( __( 'View %s profile', 'elementskit-lite' ), $ekit_team_name ) ); ?>" href="javascript:void(0)" data-mfp-src="#ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" class="ekit-team-popup">
2400 <?php endif; ?>
2401
2402 <div class="profile-header ekit-team-img <?php echo esc_attr($ekit_team_style == 'default' ? 'ekit-img-overlay ekit-team-img-block' : ''); ?>" <?php if ( (isset($settings['ekit_team_chose_popup']) ? $ekit_team_chose_popup : 'no') == 'yes') :?> data-toggle="modal" data-target="ekit_team_modal_#<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" <?php endif; ?>>
2403 <?php echo wp_kses($image_html, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2404 </div><!-- .profile-header END -->
2405 <?php if ($settings['ekit_team_chose_popup'] == 'yes') : ?>
2406 </a>
2407 <?php endif; ?>
2408
2409
2410 <div class="profile-body">
2411 <?php if ( 'default' == $ekit_team_style && 'yes' == $ekit_team_toggle_icon && !empty( $ekit_team_top_icons ) ): ?>
2412 <div class="profile-icon<?php echo esc_attr($ekit_team_top_icon_align) ? ' icon-align-'.esc_attr($ekit_team_top_icon_align) : ''; ?>">
2413
2414 <?php
2415 // new icon
2416 $migrated = isset( $settings['__fa4_migrated']['ekit_team_top_icons'] );
2417 // Check if its a new widget without previously selected icon using the old Icon control
2418 $is_new = empty( $settings['ekit_team_top_icon'] );
2419 if ( $is_new || $migrated ) {
2420 // new icon
2421 Icons_Manager::render_icon( $settings['ekit_team_top_icons'], [ 'aria-hidden' => 'true' ] );
2422 } else {
2423 ?>
2424 <i class="<?php echo esc_attr($settings['ekit_team_top_icon']); ?>" aria-hidden="true"></i>
2425 <?php
2426 }
2427 ?>
2428 </div>
2429 <?php endif; ?>
2430
2431 <h2 class="profile-title">
2432 <?php if ($settings['ekit_team_chose_popup'] == 'yes') : ?>
2433 <a aria-label="<?php echo esc_attr( sprintf( __( 'View %s profile', 'elementskit-lite' ), $ekit_team_name ) ); ?>" href="javascript:void(0)" data-mfp-src="#ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" class="ekit-team-popup">
2434 <?php echo esc_html( $ekit_team_name ); ?>
2435 </a>
2436 <?php else: ?>
2437 <?php echo esc_html( $ekit_team_name ); ?>
2438 <?php endif; ?>
2439 </h2>
2440 <p class="profile-designation"><?php echo esc_html( $ekit_team_position ); ?></p>
2441 <?php if($ekit_team_show_short_description == 'yes' && $ekit_team_short_description != ''): ?>
2442 <p class="profile-content"><?php echo wp_kses($ekit_team_short_description, \ElementsKit_Lite\Utils::get_kses_array()); ?></p>
2443 <?php endif;?>
2444 </div><!-- .profile-body END -->
2445
2446 <?php if(isset($ekit_team_socail_enable) && $ekit_team_socail_enable == 'yes'){?>
2447 <div class="profile-footer">
2448 <?php require Handler::get_dir() . 'parts/social-list.php'; ?>
2449 </div>
2450 <?php
2451 }
2452 ?>
2453 </div>
2454 <?php if(in_array($ekit_team_style, array('centered_style', 'centered_style_details', 'long_height_details', 'long_height_details_hover')) ): ?> </div> <?php endif; ?>
2455 <?php endif; ?>
2456
2457 <?php if ( in_array($ekit_team_style, array('overlay', 'overlay_details', 'long_height_hover', 'overlay_circle', 'overlay_circle_hover')) ): ?>
2458 <?php if($ekit_team_style == 'overlay_details'): ?> <div class="image-card-v2"> <?php endif; ?>
2459 <?php if($ekit_team_style == 'long_height_hover'): ?> <div class="<?php echo esc_attr($settings['ekit_team_remove_gutters'] == 'yes' ? '' : 'small-gutters'); ?> image-card-v3"> <?php endif; ?>
2460 <?php if($ekit_team_style == 'overlay_circle'): ?> <div class="style-circle ekit-team-img-fit"> <?php endif; ?>
2461 <?php if($ekit_team_style == 'overlay_circle_hover'): ?> <div class="image-card-v2 style-circle"> <?php endif; ?>
2462 <div class="profile-image-card elementor-animation-<?php echo esc_attr($team_hover_animation) ?> ekit-team-img ekit-team-style-<?php echo esc_attr($ekit_team_style); ?> <?php if(isset($ekit_team_content_text_align)) { echo esc_attr($ekit_team_content_text_align);} ?>">
2463
2464 <?php if($ekit_team_style == 'long_height_hover'){ ?>
2465 <?php echo wp_kses($image_html, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2466 <?php
2467 $modalClass = 'team-sidebar_'.$ekit_team_style.'';
2468 }else{
2469 $modalClass = 'team-modal_'.$ekit_team_style.'';
2470 ?>
2471 <?php echo wp_kses($image_html, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2472 <?php }?>
2473 <div class="hover-area">
2474 <div class="profile-body">
2475 <h2 class="profile-title">
2476 <?php if ($settings['ekit_team_chose_popup'] == 'yes') : ?>
2477 <a aria-label="<?php echo esc_attr( sprintf( __( 'View %s profile', 'elementskit-lite' ), $ekit_team_name ) ); ?>" href="javascript:void(0)" data-mfp-src="#ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" class="ekit-team-popup">
2478 <?php echo esc_html( $ekit_team_name ); ?>
2479 </a>
2480 <?php else: ?>
2481 <?php echo esc_html( $ekit_team_name ); ?>
2482 <?php endif; ?>
2483 </h2>
2484 <p class="profile-designation"><?php echo esc_html( $ekit_team_position ); ?></p>
2485 <?php if($ekit_team_show_short_description == 'yes' && $ekit_team_short_description != ''): ?>
2486 <p class="profile-content"><?php echo wp_kses($ekit_team_short_description, \ElementsKit_Lite\Utils::get_kses_array()); ?></p>
2487 <?php endif;?>
2488 </div>
2489 <?php if(isset($ekit_team_socail_enable) && $ekit_team_socail_enable == 'yes'){?>
2490 <div class="profile-footer">
2491 <?php require Handler::get_dir() . 'parts/social-list.php'; ?>
2492 </div>
2493 <?php
2494 }
2495 ?>
2496 </div>
2497 </div>
2498 <?php if(in_array($ekit_team_style, array('overlay_details', 'long_height_hover' , 'overlay_circle', 'overlay_circle_hover')) ): ?> </div> <?php endif; ?>
2499
2500 <?php
2501 endif;
2502 if ( 'hover_info' == $ekit_team_style ):
2503 ?>
2504
2505 <div class="profile-square-v square-v4 elementor-animation-<?php echo esc_attr($team_hover_animation) ?> ekit-team-style-<?php echo esc_attr($ekit_team_style); ?>">
2506 <div class="profile-card <?php if(isset($ekit_team_content_text_align)) { echo esc_attr($ekit_team_content_text_align);} ?>">
2507 <div class="profile-header ekit-team-img" <?php if ($settings['ekit_team_chose_popup'] == 'yes') :?> data-toggle="modal" data-target="#ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" <?php endif; ?>>
2508 <?php echo wp_kses($image_html, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2509 </div><!-- .profile-header END -->
2510 <div class="profile-body">
2511 <h2 class="profile-title">
2512 <?php if ($settings['ekit_team_chose_popup'] == 'yes') : ?>
2513 <a aria-label="<?php echo esc_attr( sprintf( __( 'View %s profile', 'elementskit-lite' ), $ekit_team_name ) ); ?>" href="javascript:void(0)" data-mfp-src="#ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" class="ekit-team-popup">
2514 <?php echo esc_html( $ekit_team_name ); ?>
2515 </a>
2516 <?php else: ?>
2517 <?php echo esc_html( $ekit_team_name ); ?>
2518 <?php endif; ?>
2519 </h2>
2520 <p class="profile-designation"><?php echo esc_html( $ekit_team_position ); ?></p>
2521 <?php if($ekit_team_show_short_description == 'yes' && $ekit_team_short_description != ''): ?>
2522 <p class="profile-content"><?php echo wp_kses($ekit_team_short_description, \ElementsKit_Lite\Utils::get_kses_array()); ?></p>
2523 <?php endif;?>
2524 <?php
2525 if ( isset($ekit_team_socail_enable) && $ekit_team_socail_enable == 'yes' ) {
2526 require Handler::get_dir() . 'parts/social-list.php';
2527 }
2528 ?>
2529 </div>
2530 </div>
2531 </div>
2532 <?php endif; ?>
2533
2534 <?php if ( $ekit_team_chose_popup == 'yes' ): ?>
2535 <div class="zoom-anim-dialog mfp-hide elementskit-team-popup team-popup-id-<?php echo esc_attr($this->get_id()) ;?>" id="ekit_team_modal_<?php echo esc_attr($this->get_id() . '_' . get_the_ID()); ?>" tabindex="-1" role="dialog" aria-modal="true">
2536 <div class="modal-dialog modal-dialog-centered" role="document">
2537 <div class="modal-content">
2538 <button type="button" class="ekit-team-modal-close">
2539 <?php Icons_Manager::render_icon( $ekit_team_close_icon_changes, ['aria-hidden' => 'true'] ); ?>
2540 </button>
2541
2542 <div class="modal-body">
2543 <?php if ( !empty($image_html) ) { ?>
2544 <div class="ekit-team-modal-img">
2545 <?php echo wp_kses($image_html, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2546 </div>
2547 <?php } ?>
2548
2549 <div class="ekit-team-modal-info<?php echo !empty($image_html) ? ' has-img' : ''; ?>">
2550 <h2 class="ekit-team-modal-title"><?php echo esc_html( $ekit_team_name ); ?></h2>
2551 <p class="ekit-team-modal-position"><?php echo esc_html( $ekit_team_position ); ?></p>
2552
2553 <div class="ekit-team-modal-content">
2554 <?php echo wp_kses($ekit_team_description, \ElementsKit_Lite\Utils::get_kses_array()); ?>
2555 </div>
2556
2557 <?php if ( $ekit_team_phone || $ekit_team_email ) { ?>
2558 <ul class="ekit-team-modal-list">
2559 <?php if ( $ekit_team_phone ): ?>
2560 <li><strong><?php esc_html_e( 'Phone', 'elementskit-lite' ); ?>:</strong><a href="tel:<?php echo esc_attr( $ekit_team_phone ); ?>"><?php echo esc_html( $ekit_team_phone ); ?></a></li>
2561 <?php endif; ?>
2562
2563 <?php if ( $ekit_team_email ): ?>
2564 <li><strong><?php esc_html_e( 'Email', 'elementskit-lite' ); ?>:</strong><a href="mailto:<?php echo esc_attr( $ekit_team_email ); ?>"><?php echo esc_html( $ekit_team_email ); ?></a></li>
2565 <?php endif; ?>
2566 </ul>
2567 <?php } ?>
2568
2569 <?php
2570 if ( isset($ekit_team_socail_enable) && $ekit_team_socail_enable == 'yes' ) {
2571 require Handler::get_dir() . 'parts/social-list.php';
2572 }
2573 ?>
2574 </div>
2575 </div>
2576 </div>
2577 </div>
2578 </div>
2579 <?php endif; ?>
2580 <?php
2581 }
2582 }
2583