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