PluginProbe ʕ •ᴥ•ʔ
Shortcodes and extra features for Phlox theme / 2.5.2
Shortcodes and extra features for Phlox theme v2.5.2
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 / text.php
auxin-elements / includes / elements Last commit date
about-widget.php 6 years ago accordion-widget.php 6 years ago accordion.php 6 years ago attachment-url.php 6 years ago audio.php 6 years ago before-after.php 6 years ago button.php 6 years ago code.php 6 years ago contact-box.php 6 years ago contact-form.php 6 years ago custom-list.php 6 years ago divider.php 6 years ago dropcap.php 6 years ago facebook.php 6 years ago flickr.php 6 years ago gallery.php 6 years ago general-element-fields.php 6 years ago gmap.php 6 years ago highlight.php 6 years ago image.php 6 years ago instagram-feed.php 6 years ago latest-items.php 8 years ago latest-posts-slider.php 6 years ago popular-posts-widget.php 6 years ago quote.php 6 years ago recent-posts-grid-carousel.php 6 years ago recent-posts-land-style.php 6 years ago recent-posts-masonry.php 6 years ago recent-posts-tiles-carousel.php 6 years ago recent-posts-tiles.php 6 years ago recent-posts-timeline.php 6 years ago recent-posts-widget.php 6 years ago recent-products.php 6 years ago related-posts.php 8 years ago sample-element.php 6 years ago search.php 6 years ago socials-list.php 6 years ago staff.php 6 years ago tab-widget.php 6 years ago tabs.php 6 years ago testimonial.php 6 years ago text.php 6 years ago touch-slider.php 6 years ago video.php 6 years ago
text.php
1230 lines
1 <?php
2 /**
3 * Text element
4 *
5 *
6 * @package Auxin
7 * @license LICENSE.txt
8 * @author averta
9 * @link http://phlox.pro/
10 * @copyright (c) 2010-2020 averta
11 */
12 function auxin_get_text_master_array( $master_array ) {
13
14 $master_array['aux_text'] = array(
15 'name' => __('Info Box', 'auxin-elements'),
16 'auxin_output_callback' => 'auxin_widget_column_callback',
17 'base' => 'aux_text',
18 'description' => __('Iconic text block.', 'auxin-elements'),
19 'class' => 'aux-widget-text',
20 'show_settings_on_create' => true,
21 'weight' => 1,
22 'is_widget' => false,
23 'is_shortcode' => true,
24 'is_so' => true,
25 'is_vc' => true,
26 'so_api' => false,
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-text',
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' => __('Title','auxin-elements'),
44 'description' => __('Text title, leave it empty if you don`t need title.', 'auxin-elements'),
45 'param_name' => 'title',
46 'type' => 'textfield',
47 'value' => '',
48 'def_value' => '',
49 'holder' => 'textfield',
50 'class' => 'title',
51 'description' => '',
52 'admin_label' => false,
53 'dependency' => '',
54 'weight' => '',
55 'group' => '' ,
56 'edit_field_class' => ''
57 ),
58 array(
59 'heading' => __('Subtitle','auxin-elements'),
60 'description' => '',
61 'param_name' => 'subtitle',
62 'type' => 'textfield',
63 'value' => '',
64 'def_value' => '',
65 'holder' => 'textfield',
66 'class' => 'subtitle',
67 'description' => '',
68 'admin_label' => false,
69 'dependency' => '',
70 'weight' => '',
71 'group' => '' ,
72 'edit_field_class' => ''
73 ),
74 array(
75 'heading' => __('Title Link','auxin-elements'),
76 'description' => '',
77 'param_name' => 'title_link',
78 'type' => 'textfield',
79 'value' => '',
80 'def_value' => '',
81 'holder' => 'textfield',
82 'class' => 'title_link',
83 'admin_label' => false,
84 'dependency' => '',
85 'weight' => '',
86 'group' => '' ,
87 'edit_field_class' => ''
88 ),
89 array(
90 'heading' => __('Wrapper Style','auxin-elements'),
91 'description' => '',
92 'param_name' => 'wrapper_style',
93 'type' => 'aux_visual_select',
94 'def_value' => 'simple',
95 'choices' => array(
96 'simple' => array(
97 'label' => __('Simple', 'auxin-elements'),
98 'image' => AUXIN_URL . 'images/visual-select/text-normal.svg'
99 ),
100 'outline' => array(
101 'label' => __('Outlined', 'auxin-elements'),
102 'image' => AUXIN_URL . 'images/visual-select/text-outline.svg'
103 ),
104 'box' => array(
105 'label' => __('Boxed', 'auxin-elements'),
106 'image' => AUXIN_URL . 'images/visual-select/text-boxed.svg'
107 )
108 ),
109 'holder' => '',
110 'class' => 'wrapper_style',
111 'admin_label' => false,
112 'dependency' => '',
113 'weight' => '',
114 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
115 'edit_field_class' => ''
116 ),
117 array(
118 'heading' => __('Text Align','auxin-elements'),
119 'description' => '',
120 'param_name' => 'text_align',
121 'type' => 'aux_visual_select',
122 'def_value' => '',
123 'choices' => array(
124 'left' => array(
125 'label' => __('Left', 'auxin-elements'),
126 'css_class' => 'axiAdminIcon-text-align-left',
127 ),
128 'center' => array(
129 'label' => __('Center', 'auxin-elements'),
130 'css_class' => 'axiAdminIcon-text-align-center'
131 ),
132 'right' => array(
133 'label' => __('Right', 'auxin-elements'),
134 'css_class' => 'axiAdminIcon-text-align-right'
135 )
136 ),
137 'holder' => '',
138 'class' => 'text_align',
139 'admin_label' => false,
140 'dependency' => '',
141 'weight' => '',
142 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
143 'edit_field_class' => ''
144 ),
145 array(
146 'heading' => __('Text Align on Small Screens','auxin-elements'),
147 'description' => '',
148 'param_name' => 'text_align_resp',
149 'type' => 'aux_visual_select',
150 'def_value' => '',
151 'choices' => array(
152 'left' => array(
153 'label' => __('Left', 'auxin-elements'),
154 'css_class' => 'axiAdminIcon-text-align-left',
155 ),
156 'center' => array(
157 'label' => __('Center', 'auxin-elements'),
158 'css_class' => 'axiAdminIcon-text-align-center'
159 ),
160 'right' => array(
161 'label' => __('Right', 'auxin-elements'),
162 'css_class' => 'axiAdminIcon-text-align-right'
163 )
164 ),
165 'holder' => '',
166 'class' => 'text_align_resp',
167 'admin_label' => false,
168 'dependency' => '',
169 'weight' => '',
170 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
171 'edit_field_class' => ''
172 ),
173 array(
174 'heading' => __('Text Color Scheme','auxin-elements'),
175 'description' => '',
176 'param_name' => 'text_color_mode',
177 'type' => 'dropdown',
178 'def_value' => '',
179 'value' => array(
180 '' => __( 'Default' , 'auxin-elements' ),
181 'dark' => __( 'Dark' , 'auxin-elements' ),
182 'light' => __( 'Light' , 'auxin-elements' )
183 ),
184 'holder' => '',
185 'class' => 'text_color_mode',
186 'admin_label' => false,
187 'dependency' => '',
188 'weight' => '',
189 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
190 'edit_field_class' => ''
191 ),
192
193 array(
194 'heading' => __('Wrapper Background Type', 'auxin-elements' ),
195 'description' => '',
196 'param_name' => 'wrapper_type',
197 'type' => 'dropdown',
198 'def_value' => '',
199 'value' => array(
200 'color' => __( 'Single Color' , 'auxin-elements' ),
201 'image' => __( 'Background Image' , 'auxin-elements' )
202 ),
203 'holder' => '',
204 'class' => 'wrapper_type',
205 'admin_label' => false,
206 'dependency' => '',
207 'weight' => '',
208 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
209 'edit_field_class' => ''
210 ),
211
212 array(
213 'heading' => __('Wrapper Background Color', 'auxin-elements'),
214 'description' => '',
215 'param_name' => 'wrapper_bg_color',
216 'type' => 'colorpicker',
217 'def_value' => '',
218 'value' => '',
219 'holder' => '',
220 'class' => 'wrapper_bg_color',
221 'admin_label' => false,
222 'dependency' => array(
223 'element' => 'wrapper_type',
224 'value' => array('color')
225 ),
226 'weight' => '',
227 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
228 'edit_field_class' => ''
229 ),
230 array(
231 'heading' => __('Wrapper Background image', 'auxin-elements'),
232 'description' => '',
233 'param_name' => 'wrapper_bg_image',
234 'type' => 'attach_image',
235 'def_value' => '',
236 'value' => '',
237 'holder' => '',
238 'class' => 'wrapper_bg_image',
239 'admin_label' => false,
240 'dependency' => array(
241 'element' => 'wrapper_type',
242 'value' => array('image')
243 ),
244 'weight' => '',
245 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
246 'edit_field_class' => ''
247 ),
248 array(
249 'heading' => __('Wrapper Background Image Display', 'auxin-elements'),
250 'description' => '',
251 'param_name' => 'background_display',
252 'type' => 'dropdown',
253 'value' => array(
254 'cover' => __( 'Cover', 'auxin-elements' ),
255 'tile' => __( 'Tiled Image', 'auxin-elements' ),
256 'center' => __( 'Centered, with original size', 'auxin-elements' ),
257 'fixed' => __( 'Fixed', 'auxin-elements' )
258 ),
259 'holder' => '',
260 'class' => 'background_display',
261 'admin_label' => false,
262 'dependency' => array(
263 'element' => 'wrapper_type',
264 'value' => array('image')
265 ),
266 'weight' => '',
267 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
268 'edit_field_class' => ''
269 ),
270 array(
271 'heading' => __('Wrapper Background Overlay', 'auxin-elements'),
272 'description' => '',
273 'param_name' => 'overlay_color',
274 'type' => 'colorpicker',
275 'def_value' => '',
276 'value' => '',
277 'holder' => '',
278 'class' => 'overlay_color',
279 'admin_label' => false,
280 'dependency' => array(
281 'element' => 'wrapper_type',
282 'value' => array('image')
283 ),
284 'weight' => '',
285 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
286 'edit_field_class' => ''
287 ),
288 array(
289 'heading' => __('Header Background Type', 'auxin-elements' ),
290 'description' => '',
291 'param_name' => 'header_type',
292 'type' => 'dropdown',
293 'def_value' => '',
294 'value' => array(
295 'color' => __( 'Single Color' , 'auxin-elements' ),
296 'image' => __( 'Background Image' , 'auxin-elements' )
297 ),
298 'holder' => '',
299 'class' => 'header_type',
300 'admin_label' => false,
301 'dependency' => '',
302 'weight' => '',
303 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
304 'edit_field_class' => ''
305 ),
306 array(
307 'heading' => __( 'Header Background color', 'auxin-elements' ),
308 'description' => '',
309 'param_name' => 'header_bg_color',
310 'type' => 'colorpicker',
311 'def_value' => '',
312 'value' => '',
313 'holder' => '',
314 'class' => '',
315 'admin_label' => '',
316 'dependency' => array(
317 'element' => 'header_type',
318 'value' => array('color')
319 ),
320 'weight' => '',
321 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
322 'edit_field_class' => ''
323
324 ),
325 array(
326 'heading' => __('Header Background image', 'auxin-elements'),
327 'description' => '',
328 'param_name' => 'header_bg_img',
329 'type' => 'attach_image',
330 'def_value' => '',
331 'value' => '',
332 'holder' => '',
333 'class' => 'wrapper_bg_image',
334 'admin_label' => false,
335 'dependency' => array(
336 'element' => 'header_type',
337 'value' => array('image')
338 ),
339 'weight' => '',
340 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
341 'edit_field_class' => ''
342 ),
343 array(
344 'heading' => __('Header Background Image Display', 'auxin-elements'),
345 'description' => '',
346 'param_name' => 'header_img_display',
347 'type' => 'dropdown',
348 'value' => array(
349 'cover' => __( 'Cover', 'auxin-elements' ),
350 'tile' => __( 'Tiled Image', 'auxin-elements' ),
351 'center' => __( 'Centered, with original size', 'auxin-elements' ),
352 'fixed' => __( 'Fixed', 'auxin-elements' )
353 ),
354 'holder' => '',
355 'class' => 'background_display',
356 'admin_label' => false,
357 'dependency' => array(
358 'element' => 'header_type',
359 'value' => array('image')
360 ),
361 'weight' => '',
362 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
363 'edit_field_class' => ''
364 ),
365 array(
366 'heading' => __('Icon or image', 'auxin-elements' ),
367 'description' => __('Please choose an icon from avaialable icons.', 'auxin-elements'),
368 'heading' => __('Display Icon or Image', 'auxin-elements'),
369 'description' => '',
370 'param_name' => 'icon_or_image',
371 'type' => 'dropdown',
372 'def_value' => 'icon',
373 'value' => array(
374 'icon' => __( 'Icon' , 'auxin-elements' ),
375 'image' => __( 'Image' , 'auxin-elements' ),
376 ),
377 'holder' => '',
378 'class' => 'icon_or_image',
379 'admin_label' => false,
380 'dependency' => '',
381 'weight' => '',
382 'group' => __( 'Icon & Image', 'auxin-elements' ),
383 'edit_field_class' => ''
384 ),
385 array(
386 'heading' => __('Icon', 'auxin-elements' ),
387 'description' => __('Please choose an icon from the list.', 'auxin-elements'),
388 'param_name' => 'icon',
389 'type' => 'aux_iconpicker',
390 'value' => '',
391 'def_value' => '',
392 'holder' => 'textfield',
393 'class' => 'aux_iconpicker',
394 'admin_label' => false,
395 'dependency' => array(
396 'element' => 'icon_or_image',
397 'value' => array('icon')
398 ),
399 'weight' => '',
400 'group' => __( 'Icon & Image', 'auxin-elements' ),
401 'edit_field_class' => ''
402 ),
403 array(
404 'heading' => __('Image','auxin-elements'),
405 'description' => '',
406 'param_name' => 'image',
407 'type' => 'attach_image',
408 'def_value' => '',
409 'value' => '',
410 'holder' => '',
411 'class' => 'image',
412 'admin_label' => false,
413 'dependency' => array(
414 'element' => 'icon_or_image',
415 'value' => array('image')
416 ),
417 'weight' => '',
418 'group' => __( 'Icon & Image', 'auxin-elements' ),
419 'edit_field_class' => ''
420 ),
421 array(
422 'heading' => __('Image Size','auxin-elements'),
423 'description' => '',
424 'param_name' => 'image_size',
425 'type' => 'dropdown',
426 'def_value' => '',
427 'value' => array(
428 'full' => __( 'Orginal Size' , 'auxin-elements' ),
429 'large' => __( 'Large' , 'auxin-elements' ),
430 'medium' => __( 'Medium' , 'auxin-elements' ),
431 'thumbnail' => __( 'Thumbnail' , 'auxin-elements' )
432 ),
433 'holder' => '',
434 'class' => 'image_size',
435 'admin_label' => false,
436 'dependency' => array(
437 'element' => 'icon_or_image',
438 'value' => array('image')
439 ),
440 'weight' => '',
441 'group' => __( 'Icon & Image', 'auxin-elements' ),
442 'edit_field_class' => ''
443 ),
444 array(
445 'heading' => __('Icon color','auxin-elements'),
446 'description' => __('Choose a color for icon.','auxin-elements'),
447 'param_name' => 'icon_color',
448 'type' => 'colorpicker',
449 'def_value' => '#888',
450 'value' => '',
451 'holder' => '',
452 'class' => 'icon_color',
453 'admin_label' => false,
454 'dependency' => array(
455 'element' => 'icon_or_image',
456 'value' => array('icon')
457 ),
458 'weight' => '',
459 'group' => __( 'Icon & Image', 'auxin-elements' ),
460 'edit_field_class' => ''
461 ),
462 array(
463 'heading' => __('Icon size','auxin-elements'),
464 'description' => '',
465 'param_name' => 'icon_size',
466 'type' => 'dropdown',
467 'def_value' => '',
468 'value' => array(
469 'small' => __( 'Small' , 'auxin-elements' ),
470 'medium' => __( 'Medium' , 'auxin-elements' ),
471 'large' => __( 'Large' , 'auxin-elements' ),
472 'x-large' => __( 'X-Large' , 'auxin-elements' )
473 ),
474 'holder' => '',
475 'class' => 'icon_size',
476 'admin_label' => false,
477 'dependency' => array(
478 'element' => 'icon_or_image',
479 'value' => array('icon')
480 ),
481 'weight' => '',
482 'group' => __( 'Icon & Image', 'auxin-elements' ),
483 'edit_field_class' => ''
484 ),
485 array(
486 'heading' => __('Icon background color','auxin-elements'),
487 'description' => __('Choose a color for background of icon.','auxin-elements'),
488 'param_name' => 'icon_bg_color',
489 'type' => 'colorpicker',
490 'def_value' => '',
491 'value' => '',
492 'holder' => '',
493 'class' => 'icon_bg_color',
494 'admin_label' => false,
495 'dependency' => array(
496 'element' => 'icon_or_image',
497 'value' => array('icon')
498 ),
499 'weight' => '',
500 'group' => __( 'Icon & Image', 'auxin-elements' ),
501 'edit_field_class' => ''
502 ),
503 array(
504 'heading' => __( 'Icon/Image outline color', 'auxin-elements' ),
505 'description' => __( 'Choose a color for the border around the icon or image.', 'auxin-elements' ),
506 'param_name' => 'icon_border_color',
507 'type' => 'colorpicker',
508 'def_value' => '',
509 'value' => '',
510 'holder' => '',
511 'class' => 'icon_border_color',
512 'admin_label' => false,
513 'weight' => '',
514 'group' => 'Icon & Image',
515 'edit_field_class' => ''
516 ),
517
518 array(
519 'heading' => __( 'Icon/Image outline width', 'auxin-elements' ),
520 'description' => __( 'Choose a width for the border around the icon or image.', 'auxin-elements' ),
521 'param_name' => 'icon_border_width',
522 'type' => 'textfield',
523 'def_value' => '1',
524 'value' => '',
525 'holder' => '',
526 'class' => 'icon_border_width',
527 'admin_label' => false,
528 'weight' => '',
529 'group' => __( 'Icon & Image', 'auxin-elements' ),
530 'edit_field_class' => ''
531 ),
532 array(
533 'heading' => __('Icon background shape','auxin-elements'),
534 'description' => '',
535 'param_name' => 'icon_shape',
536 'type' => 'aux_visual_select',
537 'choices' => array(
538 'circle' => array(
539 'label' => __('Circle', 'auxin-elements'),
540 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
541 ),
542 'semi-circle' => array(
543 'label' => __('Semi-circle', 'auxin-elements'),
544 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
545 ),
546 'round-rect' => array(
547 'label' => __('Round Rectangle', 'auxin-elements'),
548 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
549 ),
550 'cross-rect' => array(
551 'label' => __('Cross Rectangle', 'auxin-elements'),
552 'image' => AUXIN_URL . 'images/visual-select/icon-style-cross-rectangle.svg'
553 ),
554 'rect' => array(
555 'label' => __('Rectangle', 'auxin-elements'),
556 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
557 )
558 ),
559 'holder' => '',
560 'class' => 'icon_shape',
561 'dependency' => array(
562 'element' => 'icon_or_image',
563 'value' => array('icon')
564 ),
565 'admin_label' => false,
566 'weight' => '',
567 'group' =>__( 'Icon & Image', 'auxin-elements' ),
568 'edit_field_class' => ''
569 ),
570 array(
571 'heading' => __('Image shape','auxin-elements'),
572 'description' => '',
573 'param_name' => 'img_shape',
574 'type' => 'aux_visual_select',
575 'choices' => array(
576 'default' => array(
577 'label' => __('Default Aspect', 'auxin-elements'),
578 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
579 ),
580 'circle' => array(
581 'label' => __('Circle', 'auxin-elements'),
582 'image' => AUXIN_URL . 'images/visual-select/icon-style-circle.svg'
583 ),
584 'semi-circle' => array(
585 'label' => __('Semi-circle', 'auxin-elements'),
586 'image' => AUXIN_URL . 'images/visual-select/icon-style-semi-circle.svg'
587 ),
588 'round-rect' => array(
589 'label' => __('Round Rectangle', 'auxin-elements'),
590 'image' => AUXIN_URL . 'images/visual-select/icon-style-round-rectangle.svg'
591 ),
592 'rect' => array(
593 'label' => __('Rectangle', 'auxin-elements'),
594 'image' => AUXIN_URL . 'images/visual-select/icon-style-rectangle.svg'
595 )
596 ),
597 'holder' => '',
598 'dependency' => array(
599 'element' => 'icon_or_image',
600 'value' => array('image')
601 ),
602 'class' => 'img_shape',
603 'admin_label' => false,
604 'weight' => '',
605 'group' => __( 'Icon & Image', 'auxin-elements' ),
606 'edit_field_class' => ''
607 ),
608 array(
609 'heading' => __('Image or icon position','auxin-elements'),
610 'description' => '',
611 'param_name' => 'image_position',
612 'type' => 'aux_visual_select',
613 'def_value' => '',
614 'choices' => array(
615 'top' => array(
616 'label' => __('Top', 'auxin-elements'),
617 'image' => AUXIN_URL . 'images/visual-select/column-icon-top.svg'
618 ),
619 'left' => array(
620 'label' => __('Left', 'auxin-elements'),
621 'image' => AUXIN_URL . 'images/visual-select/column-icon-left.svg'
622 ),
623 'right' => array(
624 'label' => __('Right', 'auxin-elements'),
625 'image' => AUXIN_URL . 'images/visual-select/column-icon-right.svg'
626 )
627 ),
628 'holder' => '',
629 'class' => 'image_position',
630 'admin_label' => false,
631 'dependency' => '',
632 'weight' => '',
633 'group' => __( 'Icon & Image', 'auxin-elements' ),
634 'edit_field_class' => ''
635 ),
636 array(
637 'heading' => __('Display button', 'auxin-elements' ),
638 'description' => __('Display a button in text widget', 'auxin-elements' ),
639 'param_name' => 'display_button',
640 'type' => 'checkbox',
641 'def_value' => '',
642 'value' => '',
643 'class' => 'display_button',
644 'admin_label' => false,
645 'dependency' => '',
646 'weight' => '',
647 'group' => __( 'Button', 'auxin-elements' ),
648 'edit_field_class' => ''
649 ),
650 array(
651 'heading' => __('Button label', 'auxin-elements' ),
652 'description' => __('The label of button.', 'auxin-elements' ),
653 'param_name' => 'btn_label',
654 'type' => 'textfield',
655 'value' => '',
656 'holder' => 'textfield',
657 'class' => 'label',
658 'admin_label' => false,
659 'dependency' => array(
660 'element' => 'display_button',
661 'value' => array('1', 'true'),
662 ),
663 'weight' => '',
664 'group' => __( 'Button', 'auxin-elements' ),
665 'edit_field_class' => ''
666 ),
667 array(
668 'heading' => __('Button size','auxin-elements' ),
669 'description' => '',
670 'param_name' => 'btn_size',
671 'type' => 'dropdown',
672 'def_value' => 'medium',
673 'value' => array(
674 'exlarge' => __('Exlarge', 'auxin-elements' ),
675 'large' => __('Large' , 'auxin-elements' ),
676 'medium' => __('Medium' , 'auxin-elements' ),
677 'small' => __('Small' , 'auxin-elements' ),
678 'tiny' => __('Tiny' , 'auxin-elements' )
679 ),
680 'holder' => '',
681 'class' => 'round',
682 'admin_label' => false,
683 'dependency' => array(
684 'element' => 'display_button',
685 'value' => array('1', 'true'),
686 ),
687 'weight' => '',
688 'group' => __( 'Button', 'auxin-elements' ),
689 'edit_field_class' => ''
690 ),
691 array(
692 'heading' => __('Button shape style','auxin-elements' ),
693 'description' => '',
694 'param_name' => 'btn_border',
695 'type' => 'aux_visual_select',
696 'value' => '',
697 'class' => 'border',
698 'admin_label' => false,
699 'dependency' => array(
700 'element' => 'display_button',
701 'value' => array('1', 'true'),
702 ),
703 'weight' => '',
704 'group' => __( 'Button', 'auxin-elements' ),
705 'edit_field_class' => '',
706 'choices' => array(
707 'none' => array(
708 'label' => __('Box', 'auxin-elements' ),
709 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
710 ),
711 'round' => array(
712 'label' => __('Round', 'auxin-elements' ),
713 'image' => AUXIN_URL . 'images/visual-select/button-curved.svg'
714 ),
715 'curve' => array(
716 'label' => __('Curve', 'auxin-elements' ),
717 'image' => AUXIN_URL . 'images/visual-select/button-rounded.svg'
718 )
719 )
720 ),
721 array(
722 'heading' => __('Button style','auxin-elements' ),
723 'description' => '',
724 'param_name' => 'btn_style',
725 'type' => 'aux_visual_select',
726 'value' => '',
727 'class' => 'style',
728 'admin_label' => false,
729 'dependency' => array(
730 'element' => 'display_button',
731 'value' => array('1', 'true'),
732 ),
733 'weight' => '',
734 'group' => __( 'Button', 'auxin-elements' ),
735 'edit_field_class' => '',
736 'choices' => array(
737 'none' => array(
738 'label' => __('Normal', 'auxin-elements' ),
739 'image' => AUXIN_URL . 'images/visual-select/button-normal.svg'
740 ),
741 '3d' => array(
742 'label' => __('3D', 'auxin-elements' ),
743 'image' => AUXIN_URL . 'images/visual-select/button-3d.svg'
744 ),
745 'outline' => array(
746 'label' => __('Outline', 'auxin-elements' ),
747 'image' => AUXIN_URL . 'images/visual-select/button-outline.svg'
748 )
749 )
750 ),
751 array(
752 'heading' => __('Uppercase label','auxin-elements' ),
753 'description' => '',
754 'param_name' => 'btn_uppercase',
755 'type' => 'aux_switch',
756 'value' => '1',
757 'class' => 'uppercase',
758 'admin_label' => false,
759 'dependency' => array(
760 'element' => 'display_button',
761 'value' => array('1', 'true'),
762 ),
763 'weight' => '',
764 'group' => __( 'Button', 'auxin-elements' ),
765 'edit_field_class' => ''
766 ),
767 array(
768 'heading' => __('Darken the label','auxin-elements' ),
769 'description' => __('Darken label of button while mouse over it.','auxin-elements' ),
770 'param_name' => 'btn_dark',
771 'type' => 'aux_switch',
772 'value' => '0',
773 'class' => 'dark',
774 'admin_label' => false,
775 'dependency' => array(
776 'element' => 'display_button',
777 'value' => array('1', 'true'),
778 ),
779 'weight' => '',
780 'group' => __( 'Button', 'auxin-elements' ),
781 'edit_field_class' => ''
782 ),
783 array(
784 'heading' => __('Icon for button','auxin-elements' ),
785 'description' => '',
786 'param_name' => 'btn_icon',
787 'type' => 'aux_iconpicker',
788 'value' => '',
789 'class' => 'icon-name',
790 'admin_label' => false,
791 'dependency' => array(
792 'element' => 'display_button',
793 'value' => array('1', 'true'),
794 ),
795 'weight' => '',
796 'group' => __( 'Button', 'auxin-elements' ),
797 'edit_field_class' => ''
798 ),
799 array(
800 'heading' => __('Icon alignment','auxin-elements' ),
801 'description' => '',
802 'param_name' => 'btn_icon_align',
803 'type' => 'dropdown',
804 'def_value' => 'default',
805 'value' => array(
806 'default' => __('Default' , 'auxin-elements' ),
807 'left' => __('Left' , 'auxin-elements' ),
808 'right' => __('Right' , 'auxin-elements' ),
809 'over' => __('Over' , 'auxin-elements' ),
810 'left-animate' => __('Animate from Left' , 'auxin-elements' ),
811 'right-animate' => __('Animate from Right' , 'auxin-elements' )
812 ),
813 'holder' => '',
814 'class' => 'icon-align',
815 'admin_label' => false,
816 'dependency' => array(
817 'element' => 'display_button',
818 'value' => array('1', 'true'),
819 ),
820 'weight' => '',
821 'group' => __( 'Button', 'auxin-elements' ),
822 'edit_field_class' => ''
823 ),
824 array(
825 'heading' => __('Color of button','auxin-elements' ),
826 'description' => '',
827 'param_name' => 'btn_color_name',
828 'type' => 'aux_visual_select',
829 'value' => 'carmine-pink',
830 'choices' => auxin_get_famous_colors_list(),
831 'holder' => '',
832 'class' => 'color',
833 'admin_label' => false,
834 'dependency' => array(
835 'element' => 'display_button',
836 'value' => array('1', 'true'),
837 ),
838 'weight' => '',
839 'group' => __( 'Button', 'auxin-elements' ),
840 'edit_field_class' => ''
841 ),
842 array(
843 'heading' => __('Link','auxin-elements' ),
844 'description' => __('If you want to link your button.', 'auxin-elements' ),
845 'param_name' => 'btn_link',
846 'type' => 'textfield',
847 'value' => '',
848 'holder' => '',
849 'class' => 'link',
850 'admin_label' => false,
851 'dependency' => array(
852 'element' => 'display_button',
853 'value' => array('1', 'true'),
854 ),
855 'weight' => '',
856 'group' => __( 'Button', 'auxin-elements' ),
857 'edit_field_class' => ''
858 ),
859 array(
860 'heading' => __('Open link in','auxin-elements' ),
861 'description' => '',
862 'param_name' => 'btn_target',
863 'type' => 'dropdown',
864 'def_value' => '_self',
865 'value' => array(
866 '_self' => __('Current page' , 'auxin-elements' ),
867 '_blank' => __('New page', 'auxin-elements' )
868 ),
869 'holder' => '',
870 'class' => 'btn_target',
871 'admin_label' => false,
872 'dependency' => array(
873 'element' => 'display_button',
874 'value' => array('1', 'true'),
875 ),
876 'weight' => '',
877 'group' => __( 'Button', 'auxin-elements' ),
878 'edit_field_class' => ''
879 ),
880 array(
881 'heading' => __('Content','auxin-elements'),
882 'description' => __('Enter a text as a text content.','auxin-elements'),
883 'param_name' => 'content',
884 'type' => 'textarea_html',
885 'value' => '',
886 'def_value' => '',
887 'holder' => 'div',
888 'class' => 'content',
889 'admin_label' => false,
890 'dependency' => '',
891 'weight' => '',
892 'group' => '' ,
893 'edit_field_class' => ''
894 ),
895 array(
896 'heading' => __('Footer Shape','auxin-elements'),
897 'description' => '',
898 'param_name' => 'footer_shape',
899 'type' => 'aux_visual_select',
900 'def_value' => 'simple',
901 'choices' => array(
902 'none' => array(
903 'label' => __('None', 'auxin-elements'),
904 'image' => AUXIN_URL . 'images/visual-select/text-normal.svg'
905 ),
906 'wave' => array(
907 'label' => __('Wave', 'auxin-elements'),
908 'image' => AUXIN_URL . 'images/visual-select/text-outline.svg'
909 ),
910 'tail' => array(
911 'label' => __('Tail', 'auxin-elements'),
912 'image' => AUXIN_URL . 'images/visual-select/text-boxed.svg'
913 )
914 ),
915 'holder' => '',
916 'class' => 'footer_shape',
917 'admin_label' => false,
918 'dependency' => '',
919 'weight' => '',
920 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
921 'edit_field_class' => ''
922 ),
923 array(
924 'heading' => __( 'Footer Shape color', 'auxin-elements' ),
925 'description' => __( 'Select color for shape', 'auxin-elements' ),
926 'param_name' => 'footer_shape_color',
927 'type' => 'colorpicker',
928 'value' => '',
929 'class' => 'footer_shape_color',
930 'dependency' => array(
931 'element' => 'footer_shape',
932 'value' => array('tail', 'wave')
933 ),
934 'group' => __( 'Wrapper Layout', 'auxin-elements' ),
935 ),
936 array(
937 'heading' => __('Extra class name','auxin-elements'),
938 'description' => __('If you wish to style particular content element differently, then use this field to add a class name and then refer to it in your css file.', 'auxin-elements'),
939 'param_name' => 'extra_classes',
940 'type' => 'textfield',
941 'value' => '',
942 'def_value' => '',
943 'holder' => 'textfield',
944 'class' => 'extra_classes',
945 'admin_label' => false,
946 'dependency' => '',
947 'weight' => '',
948 'group' => '' ,
949 'edit_field_class' => ''
950 )
951 )
952 );
953
954 return $master_array;
955 }
956
957 add_filter( 'auxin_master_array_shortcodes', 'auxin_get_text_master_array', 10, 1 );
958
959 // This is the widget call back in fact the front end out put of this widget comes from this function
960 function auxin_widget_column_callback( $atts, $shortcode_content = null ){
961
962 global $aux_content_width;
963
964 // Defining default attributes
965 $default_atts = array(
966 'title' => '', // section title
967 'subtitle' => '', // Text as subtitle under the title
968 'title_link' => '', // the link on title
969 'wrapper_style' => 'simple', // box, outline,
970 'text_align' => 'center', // left, right, center
971 'text_align_resp' => 'center', // left, right, center
972 'text_color_mode' => 'dark', // dark, light
973 'wrapper_type' => '', // color, image
974 'wrapper_bg_color' => '',
975 'wrapper_bg_image' => '',
976 'background_display' => 'center', // center, fixed , cover, tile
977 'overlay_color' => '',
978 'header_type' => 'color', //color, image
979 'header_bg_color' => '',
980 'header_bg_img' => '',
981 'header_img_display' => 'center', // center, fixed , cover, tile
982 'icon_or_image' => 'icon', //icon, image
983 'icon' => '', // icon on column side
984 'image' => '', // image on column side
985 'size' => 'medium_large', // image size
986 'width' => '', // final width of image
987 'height' => '', // final height of imageone
988 'lightbox' => 'no', // open in lightbox or not
989 'preloadable' => '0',
990 'preload_preview' => '0',
991 'preload_bgcolor' => '',
992 'icon_color' => '#888', // color for icon
993 'icon_size' => 'large', // small, medium, large, x-large
994 'icon_bg_color' => '', // empty mean inherit,
995 'icon_border_color' => '', // border color for icon
996 'icon_border_width' => '1', // border width for icon
997 'icon_shape' => '', // circle, semi-circle, round-rect, rect, fill, ...
998 'img_shape' => '', // circle, semi-circle, round-rect, rect, fill, ...
999 'image_position' => 'top', // top,left,right
1000 'content' => '', // the content
1001 'display_button' => '0',
1002 'btn_label' => '',
1003 'btn_size' => '',
1004 'btn_border' => '',
1005 'btn_style' => '',
1006 'btn_uppercase' => '',
1007 'btn_dark' => '',
1008 'btn_icon' => '',
1009 'btn_icon_align' => '',
1010 'btn_color_name' => '',
1011 'btn_link' => '',
1012 'btn_target' => '',
1013 'btn_nofollow' => false,
1014 'footer_shape' => '',
1015 'footer_shape_color' => '',
1016 'icon_svg_inline' => '',
1017 'extra_classes' => '', // custom css class names for this element
1018 'custom_el_id' => '', // custom id attribute for this element
1019 'base_class' => 'aux-widget-text' // base class name for container
1020 );
1021
1022
1023 $result = auxin_get_widget_scafold( $atts, $default_atts );
1024
1025 extract( $result['parsed_atts'] );
1026
1027 if( empty( $size ) ){
1028 $size = 'medium_large';
1029 }
1030 if( 'custom' == $size ){
1031 $size = array( 'width' => $width, 'height' => $height );
1032 }
1033
1034 if( ! empty( $image ) && is_numeric( $image ) ) {
1035 $image = auxin_get_the_responsive_attachment( $image,
1036 array(
1037 'quality' => 100,
1038 'preloadable' => auxin_is_true( $preloadable ),
1039 'preload_preview' => $preload_preview,
1040 'preload_bgcolor' => $preload_bgcolor,
1041 'size' => $size,
1042 'crop' => true,
1043 'add_hw' => true,
1044 'upscale' => false,
1045 'original_src' => 'full' === $size ? true : false,
1046 'attr' => array( 'class' => "aux-attachment aux-featured-image aux-attachment-id-$image" )
1047 )
1048 );
1049 }
1050
1051 if ( ! empty( $wrapper_bg_image ) && is_numeric( $wrapper_bg_image ) ){
1052 $wrapper_bg_image = wp_get_attachment_image_url( $wrapper_bg_image, 'full' );
1053 }
1054
1055 if ( ! empty( $header_bg_img ) && is_numeric( $header_bg_img ) ){
1056 $header_bg_img = wp_get_attachment_image_url( $header_bg_img, 'full' );
1057 }
1058
1059 $content = empty( $content ) ? $shortcode_content : $content;
1060
1061 // Box Main Classes
1062
1063 $main_classes = 'aux-widget-advanced-text ';
1064 $main_classes .= 'aux-wrap-style-' . esc_attr( $wrapper_style ) . ' ';
1065 $main_classes .= 'aux-ico-pos-' . esc_attr( $image_position ) . ' ';
1066 $main_classes .= 'aux-text-' . esc_attr( $text_align ) . ' ';
1067 $main_classes .= 'aux-text-resp-' . esc_attr( $text_align_resp ) . ' ';
1068 if( $text_color_mode ){
1069 $main_classes .= 'aux-text-color-' . esc_attr( $text_color_mode ) . ' ';
1070 }
1071 $main_classes .= 'aux-text-widget-bg-' . esc_attr( $background_display ) . ' ';
1072 $main_classes .= empty( $header_bg_color ) ? '' : 'aux-text-fill-header ' ;
1073 $main_classes .= empty( $header_bg_img ) ? '' : 'aux-text-img-header ' ;
1074 $main_classes .= empty( $header_bg_img ) ? '' : 'aux-text-img-header ' ;
1075 $main_classes .= empty( $content ) ? 'aux-text-no-content ' : ' ' ;
1076 $main_classes .= ! empty( $icon ) && empty( $icon_bg_color ) && ( 'top' != $image_position ) ? 'aux-text-padding-fix ' : '';
1077 $main_classes .= ! empty( $header_bg_color ) && ( 'top' != $image_position ) ? 'aux-text-header-fix ' : '';
1078
1079 //---------------------------------------------
1080 // Overlay Inline Styles
1081
1082 $overlay_style = '';
1083 $overlay_style .= empty( $overlay_color ) ? '' : 'background-color: ' . esc_attr( $overlay_color ) . '; ';
1084
1085 $overlay_style = ! empty( $overlay_style ) ? 'style="' . $overlay_style . '"' : '';
1086
1087 //---------------------------------------------
1088 // Box Inline Styles
1089
1090 $main_styles = '';
1091 $main_styles .= empty( $wrapper_bg_color ) ? '' : 'background-color: ' . esc_attr( $wrapper_bg_color ) . '; ';
1092 $main_styles .= empty( $wrapper_bg_image ) ? '' : 'background-image: url(' . esc_attr( $wrapper_bg_image ) . '); ';
1093
1094 $main_styles = ! empty( $main_styles ) ? 'style="' . $main_styles . '"' : '';
1095
1096 //---------------------------------------------
1097 // Header Inline Styles
1098
1099 $header_styles = '';
1100 $header_styles .= empty( $header_bg_color ) ? '' : 'background-color: ' . esc_attr( $header_bg_color ) . '; ';
1101 $header_styles .= empty( $header_bg_img ) ? '' : 'background-image: url(' . esc_attr( $header_bg_img ) . '); ';
1102
1103 $header_styles = ! empty( $header_styles ) ? 'style="' . $header_styles . '"' : '';
1104 //---------------------------------------------
1105 // Header Classnames
1106
1107 $header_classess = '';
1108 $header_classess .= empty( $header_bg_img ) ? '' : 'aux-text-widget-bg-' . esc_attr( $header_img_display ) . ' ';
1109
1110 //---------------------------------------------
1111 // Icon Inline Styles
1112
1113 $icon_styles = '';
1114 if( 'icon' == $icon_or_image ){
1115 $icon_styles .= empty( $icon_color ) ? '' : 'color: ' . esc_attr( $icon_color ) . '; ';
1116 $icon_styles .= empty( $icon_bg_color ) ? '' : 'background-color:' . esc_attr( $icon_bg_color ) . '; ';
1117 }
1118 $icon_styles .= empty( $icon_border_color ) && empty( $icon_border_width ) ? '' : 'border: '. esc_attr( $icon_border_width ) . 'px solid ' . esc_attr( $icon_border_color ) . '; ';
1119
1120 $icon_styles = ! empty( $icon_styles ) ? 'style="' . $icon_styles . '"' : '';
1121
1122
1123 //---------------------------------------------
1124 // Icon Classnames
1125
1126 $icon_box_classnames = '';
1127 $icon_box_classnames .= ! empty ( $icon_size ) ? 'aux-ico-' . esc_attr( $icon_size ) . ' ' : '';
1128 $icon_box_classnames .= ! empty ( $icon ) ? 'aux-ico-shape-' . esc_attr( $icon_shape ) . ' ' : '';
1129 $icon_box_classnames .= ! empty ( $image ) ? 'aux-img-box aux-ico-shape-' . esc_attr( $img_shape ) . ' ' : '';
1130 $icon_box_classnames .= empty( $icon_bg_color ) ? 'aux-ico-clear' : '';
1131
1132 $icon_classname = empty( $icon ) ? '' : $icon ;
1133
1134 //---------------------------------------------
1135 // Footer Classnames
1136
1137 $footer_classess = '';
1138 $footer_classess .= empty( $footer_shape ) ? '' : 'aux-border-shape-' . esc_attr( $footer_shape ) . ' ';
1139
1140 //---------------------------------------------
1141 // Footer Inline Styles
1142
1143 $footer_styles = '';
1144 $footer_styles .= ! empty ( $footer_shape_color ) && 'wave' === $footer_shape ? 'fill: ' . esc_attr( $footer_shape_color) . '; ' : '';
1145 $footer_styles .= ! empty ( $footer_shape_color ) && 'tail' === $footer_shape ? 'border-top-color: ' . esc_attr( $footer_shape_color) . '; ' : '';
1146
1147 $footer_styles = ! empty( $footer_styles ) ? 'style="' . $footer_styles . '"' : '';
1148
1149 //---------------------------------------------
1150
1151 $btn_atts = array(
1152 'label' => $btn_label,
1153 'size' => $btn_size,
1154 'border' => $btn_border,
1155 'style' => $btn_style,
1156 'uppercase' => $btn_uppercase,
1157 'dark' => $btn_dark,
1158 'icon' => $btn_icon,
1159 'icon_align' => $btn_icon_align,
1160 'color_name' => $btn_color_name,
1161 'link' => $btn_link,
1162 'target' => $btn_target,
1163 'nofollow' => $btn_nofollow
1164 );
1165
1166 ob_start();
1167 // widget header ------------------------------
1168 echo $result['widget_header'];
1169 ?>
1170 <div class="<?php echo $main_classes ;?>" <?php echo $main_styles ;?>>
1171 <?php if ( ! empty( $overlay_color ) ) { ?>
1172 <div class="aux-text-widget-overlay" <?php echo $overlay_style ;?>></div>
1173 <?php } ?>
1174
1175 <?php if( ! empty( $icon ) || ! empty( $image ) || ! empty( $header_bg_img ) || ! empty( $icon_svg_inline ) ) { ?>
1176 <div class="aux-text-widget-header <?php echo $header_classess ;?>" <?php echo $header_styles ;?> >
1177 <div class="aux-ico-box <?php echo $icon_box_classnames ;?> " <?php echo $icon_styles ;?>>
1178 <?php if ( ! empty( $icon ) ){ ;?>
1179 <span class="aux-ico <?php echo esc_attr( $icon_classname ) ;?>" > </span>
1180 <?php } elseif ( ! empty( $image ) ) { ?>
1181 <?php echo $image; ?>
1182 <?php } else { ?>
1183 <?php echo $icon_svg_inline ;?>
1184 <?php }; ?>
1185 </div>
1186 </div>
1187 <?php } ?>
1188
1189 <div class="aux-text-inner aux-text-widget-content">
1190 <?php if( ! empty( $title ) && empty( $title_link ) ) { ?>
1191 <h4 class="col-title"><?php echo $title; ?></h4>
1192 <?php } elseif( ! empty( $title ) && ! empty( $title_link ) ) { ?>
1193 <h4 class="col-title"><a href="<?php echo $title_link; ?>"><?php echo $title; ?></a></h4>
1194 <?php } if( ! empty( $subtitle ) ) { ?>
1195 <h5 class="col-subtitle"><?php echo $subtitle; ?></h5>
1196
1197 <?php } if( ! empty( $content ) ) { ?>
1198 <div class="widget-content">
1199 <?php $encoding_flag = defined('ENT_HTML401') ? ENT_HTML401 : ENT_QUOTES; ?>
1200 <?php echo do_shortcode( html_entity_decode( $content, $encoding_flag, 'UTF-8') ); ?>
1201 </div>
1202 <?php } if ( auxin_is_true( $display_button ) ) {
1203 echo auxin_widget_button_callback( $btn_atts );
1204 } ?>
1205 </div>
1206 </div>
1207 <?php if ( ! empty( $footer_classess ) ) { ?>
1208 <div class="aux-text-widget-footer">
1209 <div class="<?php echo $footer_classess; ?>"<?php echo $footer_styles; ?>>
1210 <?php if ( 'wave' === $footer_shape ){?>
1211 <svg width="100%" height="16">
1212 <defs>
1213 <pattern id="pattern-shape-wave" x="16" y="0" width="35" height="16" patternUnits="userSpaceOnUse" >
1214 <path d="M16 16 L35 0 L-2 0 Z" />
1215 </pattern>
1216 </defs>
1217 <rect x="0" y="0" width="100%" height="17" style="fill: url(#pattern-shape-wave);" />
1218 </svg>
1219 <?php }?>
1220 </div>
1221 </div>
1222 <?php } ?>
1223
1224 <?php
1225 // widget footer ------------------------------
1226 echo $result['widget_footer'];
1227
1228 return ob_get_clean();
1229 }
1230