PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.9.17
Shortcodes and extra features for Phlox theme v2.9.17
2.17.21 2.17.20 trunk 1.0.0 1.0.1 1.0.2 1.0.3 1.0.6 1.0.9 1.1.0 1.3.0 1.3.1 1.3.10 1.3.14 1.3.2 1.3.3 1.3.6 1.4.0 1.4.1 1.4.2 1.5.0 1.5.2 1.6.0 1.6.2 1.6.4 1.7.0 1.7.2 2.10.0 2.10.1 2.10.3 2.10.5 2.10.7 2.10.8 2.10.9 2.11.0 2.11.1 2.11.2 2.12.0 2.14.0 2.15.0 2.15.2 2.15.4 2.15.5 2.15.6 2.15.7 2.15.8 2.15.9 2.16.0 2.16.1 2.16.2 2.16.3 2.16.4 2.17.0 2.17.1 2.17.12 2.17.13 2.17.14 2.17.15 2.17.16 2.17.2 2.17.3 2.17.4 2.17.5 2.17.6 2.17.8 2.17.9 2.4.12 2.4.13 2.4.14 2.4.16 2.4.18 2.4.19 2.4.9 2.5.0 2.5.1 2.5.10 2.5.11 2.5.12 2.5.13 2.5.14 2.5.15 2.5.16 2.5.17 2.5.19 2.5.2 2.5.20 2.5.3 2.5.7 2.5.8 2.5.9 2.6.0 2.6.1 2.6.10 2.6.12 2.6.13 2.6.14 2.6.15 2.6.16 2.6.17 2.6.19 2.6.2 2.6.20 2.6.4 2.6.5 2.6.7 2.7.0 2.7.1 2.7.10 2.7.11 2.7.12 2.7.13 2.7.14 2.7.2 2.7.3 2.7.4 2.7.5 2.7.6 2.7.7 2.7.8 2.7.9 2.8.0 2.8.1 2.8.2 2.8.3 2.8.4 2.8.5 2.8.6 2.8.7 2.8.9 2.9.0 2.9.12 2.9.14 2.9.15 2.9.16 2.9.17 2.9.18 2.9.19 2.9.2 2.9.20 2.9.21 2.9.22 2.9.3 2.9.4 2.9.5 2.9.6 2.9.7 2.9.8
auxin-elements / includes / elements / staff.php
auxin-elements / includes / elements Last commit date
about-widget.php 4 years ago accordion-widget.php 4 years ago accordion.php 4 years ago attachment-url.php 4 years ago audio.php 4 years ago before-after.php 4 years ago button.php 4 years ago code.php 4 years ago contact-box.php 4 years ago contact-form.php 4 years ago custom-list.php 4 years ago divider.php 4 years ago dropcap.php 4 years ago facebook.php 4 years ago flickr.php 4 years ago gallery.php 4 years ago general-element-fields.php 4 years ago gmap.php 4 years ago highlight.php 4 years ago image.php 4 years ago instagram-feed.php 4 years ago latest-items.php 4 years ago latest-posts-slider.php 4 years ago popular-posts-widget.php 4 years ago products-grid.php 4 years ago quote.php 4 years ago recent-posts-grid-carousel.php 4 years ago recent-posts-land-style.php 4 years ago recent-posts-masonry.php 4 years ago recent-posts-tiles-carousel.php 4 years ago recent-posts-tiles.php 4 years ago recent-posts-timeline.php 4 years ago recent-posts-widget.php 4 years ago recent-products.php 4 years ago related-posts.php 8 years ago sample-element.php 4 years ago search.php 4 years ago socials-list.php 4 years ago staff.php 4 years ago tab-widget.php 4 years ago tabs.php 4 years ago testimonial.php 4 years ago text.php 4 years ago touch-slider.php 4 years ago video.php 4 years ago
staff.php
742 lines
1 <?php
2 /**
3 * Staff Element
4 *
5 *
6 * @package Auxin
7 * @license LICENSE.txt
8 * @author averta
9 * @link http://phlox.pro/
10 * @copyright (c) 2010-2022 averta
11 */
12
13 function auxin_get_staff_master_array( $master_array ) {
14
15 $master_array['aux_staff'] = array(
16 'name' => __('Staff ', 'auxin-elements'),
17 'auxin_output_callback' => 'auxin_widget_staff_callback',
18 'base' => 'aux_staff',
19 'description' => __('You can display your Staffs as a customized widget,', 'auxin-elements'),
20 'class' => 'aux-widget-staff',
21 'show_settings_on_create' => true,
22 'weight' => 1,
23 'is_widget' => true,
24 'is_shortcode' => true,
25 'is_vc' => true,
26 'category' => THEME_NAME,
27 'group' => '',
28 'admin_enqueue_js' => '',
29 'admin_enqueue_css' => '',
30 'front_enqueue_js' => '',
31 'front_enqueue_css' => '',
32 'icon' => 'aux-element aux-pb-icons-staff',
33 'custom_markup' => '',
34 'js_view' => '',
35 'html_template' => '',
36 'deprecated' => '',
37 'content_element' => '',
38 'as_parent' => '',
39 'as_child' => '',
40 'params' => array(
41 array(
42 'heading' => __('Staff Name','auxin-elements'),
43 'description' => __('Staff Name, leave it empty if you don`t need title.', 'auxin-elements'),
44 'param_name' => 'title',
45 'type' => 'textfield',
46 'value' => '',
47 'holder' => 'textfield',
48 'class' => 'title',
49 'admin_label' => true,
50 'dependency' => '',
51 'weight' => '',
52 'group' => __( 'Staff Details', 'auxin-elements' ),
53 'edit_field_class' => ''
54 ),
55 array(
56 'heading' => __('Staff Occupation','auxin-elements'),
57 'description' => __('Staff Occupation, leave it empty if you don`t need title.', 'auxin-elements'),
58 'param_name' => 'subtitle',
59 'type' => 'textfield',
60 'value' => '',
61 'def_value' => '',
62 'holder' => 'textfield',
63 'class' => 'subtitle',
64 'description' => '',
65 'admin_label' => true,
66 'dependency' => '',
67 'weight' => '',
68 'group' => 'Staff Details' ,
69 'edit_field_class' => ''
70 ),
71 array(
72 'heading' => __('Staff Page Link','auxin-elements'),
73 'description' => __('leave it empty if you don`t need to add a page.', 'auxin-elements'),
74 'param_name' => 'staff_link',
75 'type' => 'textfield',
76 'value' => '',
77 'def_value' => '',
78 'holder' => 'textfield',
79 'class' => 'staff_link',
80 'admin_label' => true,
81 'dependency' => '',
82 'weight' => '',
83 'group' => __( 'Staff Details', 'auxin-elements' ),
84 'edit_field_class' => ''
85 ),
86 array(
87 'heading' => __('Staff Image', 'auxin-elements'),
88 'description' => '',
89 'param_name' => 'staff_img',
90 'type' => 'attach_image',
91 'def_value' => '',
92 'value' => '',
93 'holder' => '',
94 'class' => 'staff_img',
95 'admin_label' => true,
96 'dependency' => '',
97 'weight' => '',
98 'group' => __( 'Staff Details', 'auxin-elements' ),
99 'edit_field_class' => ''
100 ),
101 array(
102 'heading' => __('Image Size','auxin-elements'),
103 'description' => '',
104 'param_name' => 'staff_img_size',
105 'type' => 'dropdown',
106 'def_value' => 'full',
107 'value' => array (
108 'full' => __( 'Orginal Size' , 'auxin-elements' ),
109 'large' => __( 'Large' , 'auxin-elements' ),
110 'medium' => __( 'Medium' , 'auxin-elements' ),
111 'thumbnail' => __( 'Thumbnail' , 'auxin-elements' ),
112 'custom' => __( 'Custom' , 'auxin-elements' ),
113 ),
114 'holder' => '',
115 'class' => 'staff_img_size',
116 'admin_label' => true,
117 'weight' => '',
118 'group' => __( 'Staff Details', 'auxin-elements' ),
119 'edit_field_class' => ''
120 ),
121
122 array(
123 'heading' => __('Width','auxin-elements' ),
124 'description' => '',
125 'param_name' => 'width',
126 'type' => 'textfield',
127 'value' => '',
128 'def_value' => '',
129 'holder' => 'textfield',
130 'class' => 'width',
131 'admin_label' => true,
132 'dependency' => array(
133 'element' => 'staff_img_size',
134 'value' => array('custom')
135 ),
136 'weight' => '',
137 'group' => __( 'Staff Details', 'auxin-elements' ),
138 'edit_field_class' => ''
139 ),
140 array(
141 'heading' => __('Height','auxin-elements' ),
142 'description' => '',
143 'param_name' => 'height',
144 'type' => 'textfield',
145 'value' => '',
146 'def_value' => '',
147 'holder' => 'textfield',
148 'class' => 'height',
149 'admin_label' => true,
150 'dependency' => array(
151 'element' => 'staff_img_size',
152 'value' => array('custom')
153 ),
154 'weight' => '',
155 'group' => __( 'Staff Details', 'auxin-elements' ),
156 'edit_field_class' => ''
157 ),
158
159 array(
160 'heading' => __('Image shape','auxin-elements'),
161 'description' => '',
162 'param_name' => 'img_shape',
163 'type' => 'aux_visual_select',
164 'def_value' => '',
165 'choices' => array(
166 'circle' => array(
167 'label' => __('Circle', 'auxin-elements'),
168 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
169 ),
170 'semi-circle' => array(
171 'label' => __('Semi-circle', 'auxin-elements'),
172 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
173 ),
174 'round-rect' => array(
175 'label' => __('Round Rectangle', 'auxin-elements'),
176 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
177 ),
178 'rect' => array(
179 'label' => __('Rectangle', 'auxin-elements'),
180 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
181 ),
182 ),
183 'holder' => '',
184 'class' => 'img_shape',
185 'admin_label' => true,
186 'weight' => '',
187 'group' => __( 'Staff Details', 'auxin-elements' ),
188 'edit_field_class' => ''
189 ),
190 array(
191 'heading' => __('Wrapper style','auxin-elements'),
192 'description' => '',
193 'param_name' => 'wrapper_style',
194 'type' => 'aux_visual_select',
195 'def_value' => 'simple',
196 'choices' => array(
197 'simple' => array(
198 'label' => __('Simple', 'auxin-elements'),
199 'image' => AUXIN_URL . 'images/visual-select/text-normal.svg'
200 ),
201 'outline' => array(
202 'label' => __('Outlined', 'auxin-elements'),
203 'image' => AUXIN_URL . 'images/visual-select/text-outline.svg'
204 ),
205 'box' => array(
206 'label' => __('Boxed', 'auxin-elements'),
207 'image' => AUXIN_URL . 'images/visual-select/text-boxed.svg'
208 )
209 ),
210 'holder' => '',
211 'class' => 'wrapper_style',
212 'admin_label' => true,
213 'dependency' => '',
214 'weight' => '',
215 'group' => '' ,
216 'edit_field_class' => ''
217 ), array(
218 'heading' => __('Layout Style','auxin-elements'),
219 'description' => '',
220 'param_name' => 'layout_style',
221 'type' => 'aux_visual_select',
222 'def_value' => 'top',
223 'choices' => array(
224 'top' => array(
225 'label' => __('Top', 'auxin-elements'),
226 'image' => AUXIN_URL . 'images/visual-select/column-icon-top.svg'
227 ),
228 'right' => array(
229 'label' => __('Right', 'auxin-elements'),
230 'image' => AUXIN_URL . 'images/visual-select/column-icon-right.svg'
231 ),
232 'bottom' => array(
233 'label' => __('Bottom', 'auxin-elements'),
234 'image' => AUXIN_URL . 'images/visual-select/column-icon-bottom.svg'
235 ),
236 'left' => array(
237 'label' => __('Left', 'auxin-elements'),
238 'image' => AUXIN_URL . 'images/visual-select/column-icon-left.svg'
239 )
240 ),
241 'holder' => '',
242 'class' => 'layout_style',
243 'admin_label' => true,
244 'dependency' => '',
245 'weight' => '',
246 'group' => '',
247 'edit_field_class' => ''
248 ),
249 array(
250 'heading' => __('Layout Border Color', 'auxin-elements'),
251 'description' => __('Choose a border color for this layout.', 'auxin-elements'),
252 'param_name' => 'layout_border_color',
253 'type' => 'colorpicker',
254 'def_value' => '',
255 'value' => '',
256 'holder' => '',
257 'class' => 'layout_border_color',
258 'admin_label' => true,
259 'dependency' => array(
260 'element' => 'wrapper_style',
261 'value' => array('simple','box'),
262 ),
263 'weight' => '',
264 'group' => '' ,
265 'edit_field_class' => ''
266 ),
267 array(
268 'heading' => __('Text align','auxin-elements'),
269 'description' => '',
270 'param_name' => 'text_align',
271 'type' => 'aux_visual_select',
272 'def_value' => 'left',
273 'choices' => array(
274 'left' => array(
275 'label' => __('Left', 'auxin-elements'),
276 'css_class' => 'axiAdminIcon-text-align-left',
277 ),
278 'center' => array(
279 'label' => __('Center', 'auxin-elements'),
280 'css_class' => 'axiAdminIcon-text-align-center'
281 ),
282 'right' => array(
283 'label' => __('Right', 'auxin-elements'),
284 'css_class' => 'axiAdminIcon-text-align-right'
285 )
286 ),
287 'holder' => '',
288 'class' => 'text_align',
289 'admin_label' => true,
290 'dependency' => '',
291 'weight' => '',
292 'group' => '' ,
293 'edit_field_class' => ''
294 ),
295 array(
296 'heading' => __('Text color scheme','auxin-elements'),
297 'description' => '',
298 'param_name' => 'text_color_mode',
299 'type' => 'dropdown',
300 'def_value' => 'dark',
301 'value' => array (
302 'inherit' => __( 'Inherit' , 'auxin-elements' ),
303 'light' => __( 'Light' , 'auxin-elements' ),
304 'dark' => __( 'Dark' , 'auxin-elements' )
305 ),
306 'holder' => '',
307 'class' => 'text_color_mode',
308 'admin_label' => true,
309 'dependency' => '',
310 'weight' => '',
311 'group' => '' ,
312 'edit_field_class' => ''
313 ),
314 array(
315 'heading' => __('Enable Socials','auxin-elements' ),
316 'description' => '',
317 'param_name' => 'socials',
318 'type' => 'checkbox',
319 'value' => 1,
320 'class' => '',
321 'admin_label' => false,
322 'dependency' => '',
323 'weight' => '',
324 'group' => __( 'Socials', 'auxin-elements' ),
325 'edit_field_class' => ''
326 ),
327 array(
328 'heading' => __('Twitter Address' ,'auxin-elements' ),
329 'param_name' => 'social_twitter',
330 'type' => 'textfield',
331 'value' => '',
332 'holder' => '',
333 'class' => '',
334 'admin_label' => false,
335 'dependency' => array(
336 'element' => 'socials',
337 'value' => array('true', 1)
338 ),
339 'weight' => '',
340 'group' => __( 'Socials', 'auxin-elements' ),
341 'edit_field_class' => ''
342 ),
343 array(
344 'heading' => __('Linkedin Address','auxin-elements' ),
345 'param_name' => 'social_linkedin',
346 'type' => 'textfield',
347 'value' => '',
348 'holder' => '',
349 'class' => '',
350 'admin_label' => false,
351 'dependency' => array(
352 'element' => 'socials',
353 'value' => array('true', 1)
354 ),
355 'weight' => '',
356 'group' => __( 'Socials', 'auxin-elements' ),
357 'edit_field_class' => ''
358 ),
359 array(
360 'heading' => __('Facebook Address','auxin-elements' ),
361 'param_name' => 'social_facebook',
362 'type' => 'textfield',
363 'value' => '',
364 'holder' => '',
365 'class' => '',
366 'admin_label' => false,
367 'dependency' => array(
368 'element' => 'socials',
369 'value' => array('true', 1)
370 ),
371 'weight' => '',
372 'group' => __( 'Socials', 'auxin-elements' ),
373 'edit_field_class' => ''
374 ),
375 array(
376 'heading' => __('Google Plus Address','auxin-elements' ),
377 'param_name' => 'social_gp',
378 'type' => 'textfield',
379 'value' => '',
380 'holder' => '',
381 'class' => '',
382 'admin_label' => false,
383 'dependency' => array(
384 'element' => 'socials',
385 'value' => array('true', 1)
386 ),
387 'weight' => '',
388 'group' => __( 'Socials', 'auxin-elements' ),
389 'edit_field_class' => ''
390 ),
391 array(
392 'heading' => __('Flickr Address','auxin-elements' ),
393 'param_name' => 'social_flickr',
394 'type' => 'textfield',
395 'value' => '',
396 'holder' => '',
397 'class' => '',
398 'admin_label' => false,
399 'dependency' => array(
400 'element' => 'socials',
401 'value' => array('true', 1)
402 ),
403 'weight' => '',
404 'group' => __( 'Socials', 'auxin-elements' ),
405 'edit_field_class' => ''
406 ),
407 array(
408 'heading' => __('Delicious Address','auxin-elements' ),
409 'param_name' => 'social_delicious',
410 'type' => 'textfield',
411 'value' => '',
412 'holder' => '',
413 'class' => '',
414 'admin_label' => false,
415 'dependency' => array(
416 'element' => 'socials',
417 'value' => array('true', 1)
418 ),
419 'weight' => '',
420 'group' => __( 'Socials', 'auxin-elements' ),
421 'edit_field_class' => ''
422 ),
423 array(
424 'heading' => __('Pinterest Address','auxin-elements' ),
425 'param_name' => 'social_pinterest',
426 'type' => 'textfield',
427 'value' => '',
428 'holder' => '',
429 'class' => '',
430 'admin_label' => false,
431 'dependency' => array(
432 'element' => 'socials',
433 'value' => array('true', 1)
434 ),
435 'weight' => '',
436 'group' => __( 'Socials', 'auxin-elements' ),
437 'edit_field_class' => ''
438 ),
439 array(
440 'heading' => __('GitHub Address','auxin-elements' ),
441 'param_name' => 'social_github',
442 'type' => 'textfield',
443 'value' => '',
444 'holder' => '',
445 'class' => '',
446 'admin_label' => false,
447 'dependency' => array(
448 'element' => 'socials',
449 'value' => array('true', 1)
450 ),
451 'weight' => '',
452 'group' => __( 'Socials', 'auxin-elements' ),
453 'edit_field_class' => ''
454 ),
455 array(
456 'heading' => __('Socials Icon size','auxin-elements'),
457 'description' => '',
458 'param_name' => 'icon_size',
459 'type' => 'dropdown',
460 'def_value' => 'aux-medium',
461 'value' => array (
462 'aux-small' => __( 'Small' , 'auxin-elements' ),
463 'aux-medium' => __( 'Medium' , 'auxin-elements' ),
464 'aux-large' => __( 'Large' , 'auxin-elements' ),
465 'aux-extra-large' => __( 'X-Large' , 'auxin-elements' )
466 ),
467 'holder' => '',
468 'class' => 'icon_size',
469 'admin_label' => true,
470 'dependency' => array(
471 'element' => 'socials',
472 'value' => array('true', 1)
473 ),
474 'weight' => '',
475 'group' => __( 'Socials', 'auxin-elements' ),
476 'edit_field_class' => ''
477 ),
478 array(
479 'heading' => __('Icon Direction','auxin-elements'),
480 'description' => '',
481 'param_name' => 'icon_align',
482 'type' => 'dropdown',
483 'def_value' => 'aux-horizontal',
484 'value' => array (
485 'aux-vertical' => __( 'Vertical' , 'auxin-elements' ),
486 'aux-horizontal' => __( 'Horizontal' , 'auxin-elements' ),
487 ),
488 'holder' => '',
489 'class' => 'icon_align',
490 'admin_label' => true,
491 'dependency' => array(
492 'element' => 'socials',
493 'value' => array('true', 1)
494 ),
495 'weight' => '',
496 'group' => __( 'Socials', 'auxin-elements' ),
497 'edit_field_class' => ''
498 ),
499 array(
500 'heading' => __('Maximum Words','auxin-elements' ),
501 'description' => __('Limit the number of words in the Content','auxin-elements' ),
502 'param_name' => 'max_words',
503 'type' => 'textfield',
504 'value' => '',
505 'holder' => '',
506 'def_value' => 22,
507 'class' => 'max_words',
508 'admin_label' => false,
509 'weight' => '',
510 'group' => '',
511 'edit_field_class' => ''
512 ), array(
513 'heading' => __('Content','auxin-elements'),
514 'description' => __('Enter a text as a text content.','auxin-elements'),
515 'param_name' => 'content',
516 'type' => 'textarea_html',
517 'value' => '',
518 'def_value' => '',
519 'holder' => 'div',
520 'class' => 'content',
521 'admin_label' => true,
522 'dependency' => '',
523 'weight' => '',
524 'group' => '' ,
525 'edit_field_class' => ''
526 ),
527 )
528 );
529
530 return $master_array;
531 }
532
533 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_staff_master_array', 10, 1 );
534
535
536 /**
537 * Staff Element Widget Markup
538 *
539 * The front-end output of this element is returned by the following function
540 *
541 * @param array $atts The array containing the parsed values from shortcode, it should be same as defined params above.
542 * @param string $shortcode_content The shorcode content
543 * @return string The output of element markup
544 */
545 function auxin_widget_staff_callback( $atts, $shortcode_content = null ){
546
547 // Defining default attributes
548 $default_atts = array(
549 'title' => '', // header title
550 'subtitle' => '',
551 'staff_link' => '',
552 'staff_img' => '',
553 'staff_img_size' => 'full',
554 'content' => '',
555 'text_color_mode' => 'dark',
556 'text_align' => 'left',
557 'width' => '',
558 'height' => '',
559 'img_shape' => 'rect',
560 'preloadable' => false,
561 'preload_preview' => true,
562 'preload_bgcolor' => '',
563 'layout_border_color' => '',
564 'socials' => 0,
565 'icon_size' => 'aux-medium',
566 'social_twitter' => '',
567 'image_html' => '',
568 'social_facebook' => '',
569 'social_linkedin' => '',
570 'social_gp' => '',
571 'wrapper_style' => 'simple',
572 'max_words' => 22,
573 'social_flickr' => '',
574 'social_pinterest' => '',
575 'icon_align' => 'aux-horizontal',
576 'social_github' => '',
577 'social_delicious' => '',
578 'social_instagram' => '',
579 'social_dribbble' => '',
580 'layout_style' => 'top',
581 'extra_classes' => '', // custom css class names for this element
582 'custom_el_id' => '', // custom id attribute for this element
583 'base_class' => 'aux-widget-staff' // base class name for container
584 );
585
586
587 if( ! empty( $atts['wrapper_style'] ) ){
588 $atts['extra_classes'] = ' aux-wrap-style-' . esc_attr( $atts['wrapper_style'] );
589
590 } elseif( ! empty( $default_atts['wrapper_style'] ) ){
591
592 if( ! isset( $atts['extra_classes'] ) ){
593
594 $atts['extra_classes'] = '';
595
596 }
597
598 $atts['extra_classes'] .= ' aux-wrap-style-' . esc_attr( $default_atts['wrapper_style'] );
599
600 }
601
602 $result = auxin_get_widget_scafold( $atts, $default_atts );
603
604 extract( $result['parsed_atts'] );
605
606 $image_classes = '';
607
608 if( 'custom' == $staff_img_size ){
609 $staff_img_size = array( 'width' => $width, 'height' => $height );
610 }
611
612 if( ! empty( $staff_img ) && is_numeric( $staff_img ) ) {
613 $image = auxin_get_the_responsive_attachment( $staff_img,
614 array(
615 'quality' => 100,
616 'preloadable' => $preloadable,
617 'preload_preview' => $preload_preview,
618 'preload_bgcolor' => $preload_bgcolor,
619 'size' => $staff_img_size,
620 'crop' => true,
621 'add_hw' => true,
622 'upscale' => false,
623 'original_src' => 'full' === $staff_img_size ? true : false,
624 'attr' => array( 'class' => $image_classes )
625 )
626 );
627 }
628
629
630 $content = empty( $content ) ? $shortcode_content : $content ;
631 $content = ( ! empty( $max_words ) && is_numeric( $max_words ) ) ? wp_trim_words( $content , (int) $max_words , ' ...') : $content;
632 $layout_border_color = ! empty( $layout_border_color ) ? 'style= "border-color: ' . esc_attr( $layout_border_color ) . '"': '' ;
633 $main_classes = 'aux-staff-container aux-staff-pos-'.$layout_style. ' aux-staff-text-' .$text_align. ' aux-staff-text-' .$text_color_mode. ' ';
634 $main_classes .= ! empty( $layout_border_color ) ? ' aux-staff-border' : '' ;
635 $header_classes = 'aux-staff-img-' . $img_shape ;
636 $footer_classes = $icon_size . ' ' .$icon_align ;
637
638 ob_start();
639
640 // widget header ------------------------------
641 echo wp_kses_post( $result['widget_header'] );
642 ?>
643 <div class="<?php echo esc_attr( $main_classes );?>" <?php echo wp_kses_post( $layout_border_color ); ?>>
644 <?php if( ! empty( $image ) ){ ;?>
645 <div class="aux-staff-header <?php echo esc_attr( $header_classes ) ;?>">
646 <?php echo sprintf( '<div class="aux-media-image">%s</div>' , wp_kses_post( $image ) );?>
647 </div>
648 <?php } ?>
649 <div class="aux-staff-content">
650 <?php if( ! empty( $title ) && empty( $staff_link ) ) { ?>
651 <h4 class="col-title"><?php echo auxin_kses( $title ); ?></h4>
652 <?php } elseif( ! empty( $title ) && ! empty( $staff_link ) ) {?>
653 <h4 class="col-title"><a href="<?php echo esc_url($staff_link); ?>">
654 <?php echo auxin_kses( $title ); ?></a>
655 </h4>
656 <?php } if( ! empty( $subtitle ) ) { ?>
657 <h5 class="col-subtitle"><?php echo auxin_kses( $subtitle ); ?></h5>
658 <?php } if( ! empty( $content ) ) { ?>
659 <div class="entry-content">
660 <?php $encoding_flag = defined('ENT_HTML401') ? ENT_HTML401 : ENT_QUOTES; ?>
661 <?php echo do_shortcode( html_entity_decode( $content, $encoding_flag, 'UTF-8') ); ?>
662 </div>
663 <?php } if ( auxin_is_true( $socials ) ) { ?>
664 <div class="aux-staff-footer <?php echo esc_attr( $footer_classes ) ;?>">
665 <ul class="aux-social-list">
666
667 <?php if ( ! empty( $social_facebook ) ) { ;?>
668 <li>
669 <a class="facebook" href="<?php echo esc_url( $social_facebook ) ;?>" target="_blank"><span class="auxicon-facebook"></span>
670 </a>
671 </li>
672 <?php } ?>
673 <?php if ( ! empty( $social_linkedin ) ) { ;?>
674 <li>
675 <a class="linkedin" href="<?php echo esc_url( $social_linkedin ) ;?>" target="_blank"><span class="auxicon-linkedin"></span>
676 </a>
677 </li>
678 <?php } ?>
679 <?php if ( ! empty( $social_twitter ) ) { ;?>
680 <li>
681 <a class="twitter" href="<?php echo esc_url( $social_twitter ) ;?>" target="_blank"><span class="auxicon-twitter"></span>
682 </a>
683 </li>
684 <?php } ?>
685 <?php if ( ! empty( $social_gp ) ) { ;?>
686 <li>
687 <a class="googleplus" href="<?php echo esc_url( $social_gp ) ;?>" target="_blank"><span class="auxicon-googleplus"></span>
688 </a>
689 </li>
690 <?php } ?>
691 <?php if ( ! empty( $social_flickr ) ) { ;?>
692 <li>
693 <a class="flickr" href="<?php echo esc_url( $social_flickr ) ;?>" target="_blank"><span class="auxicon-flickr"></span>
694 </a>
695 </li>
696 <?php } ?>
697 <?php if ( ! empty( $social_delicious ) ) { ;?>
698 <li>
699 <a class="delicious" href="<?php echo esc_url( $social_delicious ) ;?>" target="_blank"><span class="auxicon-delicious"></span>
700 </a>
701 </li>
702 <?php } ?>
703 <?php if ( ! empty( $social_pinterest ) ) { ;?>
704 <li>
705 <a class="pinterest" href="<?php echo esc_url( $social_pinterest ) ;?>" target="_blank"><span class="auxicon-pinterest"></span>
706 </a>
707 </li>
708 <?php } ?>
709 <?php if ( ! empty( $social_github ) ) { ;?>
710 <li>
711 <a class="github" href="<?php echo esc_url( $social_github ) ;?>" target="_blank"><span class="auxicon-github"></span>
712 </a>
713 </li>
714 <?php } ?>
715 <?php if ( ! empty( $social_instagram ) ) { ;?>
716 <li>
717 <a class="instagram" href="<?php echo esc_url( $social_instagram ) ;?>" target="_blank"><span class="auxicon-instagram"></span>
718 </a>
719 </li>
720 <?php } ?>
721 <?php if ( ! empty( $social_dribbble ) ) { ;?>
722 <li>
723 <a class="dribbble" href="<?php echo esc_url( $social_dribble ) ;?>" target="_blank"><span class="auxicon-dribbble"></span>
724 </a>
725 </li>
726 <?php } ?>
727 </ul>
728 </div>
729 <?php } ?>
730 </div>
731
732 </div>
733
734
735 <?php
736
737 // widget footer ------------------------------
738 echo wp_kses_post( $result['widget_footer'] );
739 return ob_get_clean();
740
741 }
742