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