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