PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.17.14
Shortcodes and extra features for Phlox theme v2.17.14
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 / socials-list.php
auxin-elements / includes / elements Last commit date
about-widget.php 1 year ago accordion-widget.php 1 year ago accordion.php 1 year ago attachment-url.php 1 year ago audio.php 1 year ago before-after.php 1 year ago button.php 1 year ago code.php 1 year ago contact-box.php 1 year ago contact-form.php 1 year ago custom-list.php 6 months ago divider.php 1 year ago dropcap.php 1 year ago facebook.php 1 year ago flickr.php 1 year ago gallery.php 1 year ago gmap.php 1 year ago highlight.php 1 year ago image.php 1 year ago instagram-feed.php 1 year ago latest-posts-slider.php 1 year ago popular-posts-widget.php 1 year ago products-grid.php 1 year ago quote.php 1 year ago recent-posts-grid-carousel.php 1 year ago recent-posts-land-style.php 1 year ago recent-posts-masonry.php 1 year ago recent-posts-tiles-carousel.php 1 year ago recent-posts-tiles.php 1 year ago recent-posts-timeline.php 1 year ago recent-posts-widget.php 1 year ago recent-products.php 1 year ago related-posts.php 8 years ago sample-element.php 1 year ago search.php 1 year ago socials-list.php 1 year ago staff.php 1 year ago tab-widget.php 1 year ago tabs.php 1 year ago testimonial.php 1 year ago text.php 1 year ago touch-slider.php 1 year ago video.php 1 year ago
socials-list.php
414 lines
1 <?php
2 /**
3 * Social List
4 * TODO: deprecate this widget
5 *
6 * @package Auxin
7 * @license LICENSE.txt
8 * @author averta
9 * @link http://phlox.pro/
10 * @copyright (c) 2010-2025 averta
11 */
12 function auxin_get_social_master_array( $master_array ) {
13
14 $master_array['aux_socials_list'] = array(
15 'name' => __("Socials", 'auxin-elements' ),
16 'auxin_output_callback' => 'auxin_widget_socials_list_callback',
17 'base' => 'aux_socials_list',
18 'description' => __('It shows the website socials icons which you can configure it by the customizer.', 'auxin-elements'),
19 'class' => 'aux-widget-socials',
20 'show_settings_on_create' => true,
21 'weight' => 1,
22 'is_widget' => true,
23 'is_shortcode' => true,
24 'category' => THEME_NAME,
25 'group' => '',
26 'admin_enqueue_js' => '',
27 'admin_enqueue_css' => '',
28 'front_enqueue_js' => '',
29 'front_enqueue_css' => '',
30 'icon' => 'aux-element aux-pb-icons-socials',
31 'custom_markup' => '',
32 'js_view' => '',
33 'html_template' => '',
34 'deprecated' => '',
35 'content_element' => '',
36 'as_parent' => '',
37 'as_child' => '',
38 'params' => array(
39 array(
40 'heading' => __('Title','auxin-elements'),
41 'description' => __('Socials title, leave it empty if you don`t need title.', 'auxin-elements'),
42 'param_name' => 'title',
43 'type' => 'textfield',
44 'value' => '',
45 'def_value' => '',
46 'holder' => 'textfield',
47 'class' => 'id',
48 'admin_label' => false,
49 'dependency' => '',
50 'weight' => '',
51 'group' => '',
52 'edit_field_class' => ''
53 ),
54 array(
55 'heading' => __('Size of social icons','auxin-elements'),
56 'description' => '',
57 'param_name' => 'size',
58 'type' => 'dropdown',
59 'def_value' => 'medium',
60 'value' => array(
61 'small' => __('Small' , 'auxin-elements'),
62 'medium' => __('Medium' , 'auxin-elements'),
63 'large' => __('Large' , 'auxin-elements'),
64 'extra-large' => __('Extra large' , 'auxin-elements')
65 ),
66 'holder' => '',
67 'class' => 'size',
68 'admin_label' => false,
69 'dependency' => '',
70 'weight' => '',
71 'group' => '',
72 'edit_field_class' => ''
73 ),
74 array(
75 'heading' => __('Directon of socials list','auxin-elements'),
76 'description' => '',
77 'param_name' => 'direction',
78 'type' => 'dropdown',
79 'def_value' => 'horizontal',
80 'value' => array(
81 'horizontal' => __('Horizontal' , 'auxin-elements'),
82 'vertical' => __('Vertical' , 'auxin-elements')
83 ),
84 'holder' => '',
85 'class' => 'direction',
86 'admin_label' => false,
87 'dependency' => '',
88 'weight' => '',
89 'group' => '',
90 'edit_field_class' => ''
91 )
92
93 )
94 );
95
96 return $master_array;
97 }
98
99 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_social_master_array', 10, 1 );
100
101 // TODO: deprecate this widget
102 // This is the widget call back in fact the front end out put of this widget comes from this function
103 function auxin_widget_socials_list_callback( $atts, $shortcode_content = null ){
104
105 // Defining default attributes
106 $default_atts = array(
107 'title' => '',
108 'direction' => 'horizontal',
109 'size' => 'medium',
110
111 'extra_classes' => '',
112 'custom_el_id' => '',
113 'base_class' => 'aux-widget-socials'
114 );
115
116
117 $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
118 extract( $result['parsed_atts'] );
119
120 ob_start();
121
122 // widget header ------------------------------
123 echo wp_kses_post( $result['widget_header'] );
124 echo wp_kses_post( $result['widget_title'] );
125
126 // widget output -----------------------
127 echo auxin_the_socials(array(
128 'direction' => $direction,
129 'size' => $size
130 ));
131
132 // widget footer ------------------------------
133 echo wp_kses_post( $result['widget_footer'] );
134
135 return ob_get_clean();
136 }
137
138 /**
139 * * New Social List Widget
140 *
141 *
142 * @package Auxin
143 * @license LICENSE.txt
144 * @author averta
145 * @link http://phlox.pro/
146 * @copyright (c) 2010-2025 averta
147 */
148 function auxin_get_social_widget_master_array( $master_array ) {
149
150 $master_array['aux_socials_list_2'] = array(
151 'name' => __("Socials", 'auxin-elements' ),
152 'auxin_output_callback' => 'auxin_widget_socials_list_callback_fun',
153 'base' => 'aux_socials_list_2',
154 'description' => __('It shows the website socials icons.', 'auxin-elements'),
155 'class' => 'aux-widget-socials',
156 'show_settings_on_create' => true,
157 'weight' => 1,
158 'is_widget' => true,
159 'is_shortcode' => false,
160 'category' => THEME_NAME,
161 'group' => '',
162 'admin_enqueue_js' => '',
163 'admin_enqueue_css' => '',
164 'front_enqueue_js' => '',
165 'front_enqueue_css' => '',
166 'icon' => 'aux-element aux-pb-icons-socials',
167 'custom_markup' => '',
168 'js_view' => '',
169 'html_template' => '',
170 'deprecated' => '',
171 'content_element' => '',
172 'as_parent' => '',
173 'as_child' => '',
174 'params' => array(
175 array(
176 'heading' => __('Title','auxin-elements'),
177 'description' => __('Socials title, leave it empty if you don`t need title.', 'auxin-elements'),
178 'param_name' => 'title',
179 'type' => 'textfield',
180 'value' => '',
181 'def_value' => '',
182 'holder' => 'textfield',
183 'class' => 'id',
184 'admin_label' => false,
185 'dependency' => '',
186 'weight' => '',
187 'group' => '',
188 'edit_field_class' => ''
189 ),
190 array(
191 'heading' => __('Size of social icons','auxin-elements'),
192 'description' => '',
193 'param_name' => 'size',
194 'type' => 'dropdown',
195 'def_value' => 'medium',
196 'value' => array(
197 'small' => __('Small' , 'auxin-elements'),
198 'medium' => __('Medium' , 'auxin-elements'),
199 'large' => __('Large' , 'auxin-elements'),
200 'extra-large' => __('Extra large' , 'auxin-elements')
201 ),
202 'holder' => '',
203 'class' => 'size',
204 'admin_label' => false,
205 'dependency' => '',
206 'weight' => '',
207 'group' => '',
208 'edit_field_class' => ''
209 ),
210 array(
211 'heading' => __('Directon of socials list','auxin-elements'),
212 'description' => '',
213 'param_name' => 'direction',
214 'type' => 'dropdown',
215 'def_value' => 'horizontal',
216 'value' => array(
217 'horizontal' => __('Horizontal' , 'auxin-elements'),
218 'vertical' => __('Vertical' , 'auxin-elements')
219 ),
220 'holder' => '',
221 'class' => 'direction',
222 'admin_label' => false,
223 'dependency' => '',
224 'weight' => '',
225 'group' => '',
226 'edit_field_class' => ''
227 ),
228 array(
229 'heading' => __('Twitter Address' ,'auxin-elements' ),
230 'param_name' => 'social_twitter',
231 'type' => 'textfield',
232 'value' => '',
233 'holder' => '',
234 'class' => '',
235 'admin_label' => false,
236 'weight' => '',
237 'group' => __( 'Socials', 'auxin-elements' ),
238 'edit_field_class' => ''
239 ),
240 array(
241 'heading' => __('Linkedin Address','auxin-elements' ),
242 'param_name' => 'social_linkedin',
243 'type' => 'textfield',
244 'value' => '',
245 'holder' => '',
246 'class' => '',
247 'admin_label' => false,
248 'weight' => '',
249 'group' => __( 'Socials', 'auxin-elements' ),
250 'edit_field_class' => ''
251 ),
252 array(
253 'heading' => __('Facebook Address','auxin-elements' ),
254 'param_name' => 'social_facebook',
255 'type' => 'textfield',
256 'value' => '',
257 'holder' => '',
258 'class' => '',
259 'admin_label' => false,
260 'weight' => '',
261 'group' => __( 'Socials', 'auxin-elements' ),
262 'edit_field_class' => ''
263 ),
264 array(
265 'heading' => __('Flickr Address','auxin-elements' ),
266 'param_name' => 'social_flickr',
267 'type' => 'textfield',
268 'value' => '',
269 'holder' => '',
270 'class' => '',
271 'admin_label' => false,
272 'weight' => '',
273 'group' => __( 'Socials', 'auxin-elements' ),
274 'edit_field_class' => ''
275 ),
276 array(
277 'heading' => __('Dribbble Address','auxin-elements' ),
278 'param_name' => 'social_dribbble',
279 'type' => 'textfield',
280 'value' => '',
281 'holder' => '',
282 'class' => '',
283 'admin_label' => false,
284 'weight' => '',
285 'group' => __( 'Socials', 'auxin-elements' ),
286 'edit_field_class' => ''
287 ),
288 array(
289 'heading' => __('Pinterest Address','auxin-elements' ),
290 'param_name' => 'social_pinterest',
291 'type' => 'textfield',
292 'value' => '',
293 'holder' => '',
294 'class' => '',
295 'admin_label' => false,
296 'weight' => '',
297 'group' => __( 'Socials', 'auxin-elements' ),
298 'edit_field_class' => ''
299 ),
300 array(
301 'heading' => __('Youtube Address','auxin-elements' ),
302 'param_name' => 'social_youtube',
303 'type' => 'textfield',
304 'value' => '',
305 'holder' => '',
306 'class' => '',
307 'admin_label' => false,
308 'weight' => '',
309 'group' => __( 'Socials', 'auxin-elements' ),
310 'edit_field_class' => ''
311 ),
312 array(
313 'heading' => __('Instagram Address','auxin-elements' ),
314 'param_name' => 'social_instagram',
315 'type' => 'textfield',
316 'value' => '',
317 'holder' => '',
318 'class' => '',
319 'admin_label' => false,
320 'weight' => '',
321 'group' => __( 'Socials', 'auxin-elements' ),
322 'edit_field_class' => ''
323 ),
324 array(
325 'heading' => __('Telegram Address','auxin-elements' ),
326 'param_name' => 'social_telegram',
327 'type' => 'textfield',
328 'value' => '',
329 'holder' => '',
330 'class' => '',
331 'admin_label' => false,
332 'weight' => '',
333 'group' => __( 'Socials', 'auxin-elements' ),
334 'edit_field_class' => ''
335 ),
336 array(
337 'heading' => __('VK Address','auxin-elements' ),
338 'param_name' => 'social_vk',
339 'type' => 'textfield',
340 'value' => '',
341 'holder' => '',
342 'class' => '',
343 'admin_label' => false,
344 'weight' => '',
345 'group' => __( 'Socials', 'auxin-elements' ),
346 'edit_field_class' => ''
347 )
348
349 )
350 );
351
352 return $master_array;
353 }
354
355 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_social_widget_master_array', 10, 1 );
356
357 // This is the widget call back in fact the front end out put of this widget comes from this function
358 function auxin_widget_socials_list_callback_fun( $atts, $shortcode_content = null ){
359
360 // Defining default attributes
361 $default_atts = array(
362 'title' => '',
363 'direction' => 'horizontal',
364 'size' => 'medium',
365 'extra_classes' => '',
366 'custom_el_id' => '',
367 'base_class' => 'aux-widget-socials',
368 'social_facebook' => '',
369 'social_twitter' => '',
370 'social_dribbble' => '',
371 'social_youtube' => '',
372 'social_flickr' => '',
373 'social_linkedin' => '',
374 'social_pinterest' => '',
375 'social_instagram' => '',
376 'social_vk' => '',
377 'social_telegram' => '',
378 );
379
380
381 $result = auxin_get_widget_scafold( $atts, $default_atts, $shortcode_content );
382 extract( $result['parsed_atts'] );
383
384 ob_start();
385
386 // widget header ------------------------------
387 echo wp_kses_post( $result['widget_header'] );
388 echo wp_kses_post( $result['widget_title'] );
389
390 $social_lists = array(
391 'facebook' => $social_facebook,
392 'twitter' => $social_twitter,
393 'dribbble' => $social_dribbble,
394 'youtube' => $social_youtube,
395 'flickr' => $social_flickr,
396 'linkedin' => $social_linkedin,
397 'pinterest' => $social_pinterest,
398 'instagram' => $social_instagram,
399 'vk' => $social_vk,
400 'telegram' => $social_telegram,
401 );
402
403 // widget output -----------------------
404 echo auxin_the_socials(array(
405 'direction' => $direction,
406 'size' => $size,
407 'social_list' => $social_lists
408 ));
409
410 // widget footer ------------------------------
411 echo wp_kses_post( $result['widget_footer'] );
412
413 return ob_get_clean();
414 }