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