C:\xampp\htdocs\landing\wp-content\plugins\Ultimate_VC_Addons\modules\ultimate_info_box.php


1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
<?php
/*
* Add-on Name: Info Box
* Add-on URI: https://www.brainstormforce.com
*/
if(!class_exists('AIO_Icons_Box'))
{
    class 
AIO_Icons_Box
    
{
        function 
__construct()
        {
            if ( 
Ultimate_VC_Addons::$uavc_editor_enable ) {
                
// Initialize the icon box component for WPBakery Page Builder
                
add_action('init', array( &$this'icon_box_init' ) );
            }
            
// Add shortcode for icon box
            
add_shortcode('bsf-info-box', array(&$this'icon_boxes' ) );
            
add_action'wp_enqueue_scripts', array( $this'icon_box_scripts' ), );

        }
        
// Add shortcode for icon-box
        
function icon_boxes($atts$content null)
        {
            
$icon_type $icon_img $img_width $icon $icon_color $icon_color_bg $icon_size $icon_style $icon_border_style $icon_border_radius $icon_color_border $icon_border_size $icon_border_spacing $el_class $icon_animation $title $link $hover_effect $pos $read_more$read_text $box_border_style $box_border_width =$box_border_color $box_bg_color $pos $css_class $desc_font_line_height $title_font_line_height $heading_tag '';
            
$title_font $title_font_style $title_font_size $title_font_color $desc_font $desc_font_style $desc_font_size $desc_font_color $box_min_height $target $link_title  $rel '';
            
extract(shortcode_atts(array(
                
'icon_type' => 'selector',
                
'icon' => 'none',
                
'icon_img' => '',
                
'img_width' => '48',
                
'icon_size' => '32',
                
'icon_color' => '#333',
                
'icon_style' => 'none',
                
'icon_color_bg' => '#ffffff',
                
'icon_color_border' => '#333333',
                
'icon_border_style' => '',
                
'icon_border_size' => '1',
                
'icon_border_radius' => '500',
                
'icon_border_spacing' => '50',
                
'icon_animation' => '',
                
'title'      => '',
                
'link'       => '',
                
'hover_effect' => 'style_1',
                
'pos'        => 'default',
                
'box_min_height' => '',
                
'box_border_style'=>'',
                
'box_border_width'=>'',
                
'box_border_color'=>'',
                
'box_bg_color'=>"",
                
'read_more'  => 'none',
                
'read_text'  => 'Read More',
                
'heading_tag' => 'h3',
                
'title_font' => '',
                
'title_font_style' => '',
                
'title_font_size' => '',
                
'title_font_line_height'=> '',
                
'title_font_color' => '',
                
'desc_font' => '',
                
'desc_font_style' => '',
                
'desc_font_size' => '',
                
'desc_font_color' => '',
                
'desc_font_line_height'=> '',
                
'el_class'      => '',
                
'css_info_box' => '',
                ),
$atts,'bsf-info-box'));
            
$html $target $suffix $prefix $title_style $desc_style $inf_design_style '';
            
$inf_design_style apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAGvc_shortcode_custom_css_class$css_info_box' ' ), "bsf-info-box"$atts );
             
$inf_design_style esc_attr$inf_design_style );
            
$box_icon do_shortcode('[just_icon icon_type="'.esc_attr($icon_type).'" icon="'.esc_attr($icon).'" icon_img="'.esc_attr($icon_img).'" img_width="'.esc_attr($img_width).'" icon_size="'.esc_attr($icon_size).'" icon_color="'.esc_attr($icon_color).'" icon_style="'.esc_attr($icon_style).'" icon_color_bg="'.esc_attr($icon_color_bg).'" icon_color_border="'.esc_attr($icon_color_border).'"  icon_border_style="'.esc_attr($icon_border_style).'" icon_border_size="'.esc_attr($icon_border_size).'" icon_border_radius="'.esc_attr($icon_border_radius).'" icon_border_spacing="'.esc_attr($icon_border_spacing).'" icon_animation="'.esc_attr($icon_animation).'"]');
            
$prefix .= '<div class="aio-icon-component '.esc_attr($inf_design_style).' '.esc_attr($css_class).' '.esc_attr($el_class).' '.esc_attr($hover_effect).'">';
            
$suffix .= '</div> <!-- aio-icon-component -->';

            
$ex_class $ic_class '';
            if(
$pos != ''){
                
$ex_class .= $pos.'-icon';
                
$ic_class 'aio-icon-'.$pos;
            }

            
/* title */
            
if($title_font != '')
            {
                
$font_family get_ultimate_font_family($title_font);
                if(
$font_family != '')
                    
$title_style .= 'font-family:\''.$font_family.'\';';
            }
            if(
$title_font_style != '') {
                
$title_style .= get_ultimate_font_style($title_font_style);
            }


            if(
is_numeric($title_font_size)){
                
$title_font_size 'desktop:'.$title_font_size.'px;';
            }
            if(
is_numeric($title_font_line_height)){
                
$title_font_line_height 'desktop:'.$title_font_line_height.'px;';
            }
            
$info_box_id 'Info-box-wrap-'.rand(10009999);
            
$info_box_args = array(
                
'target' => '#'.$info_box_id.' .aio-icon-title'// set targeted element e.g. unique class/id etc.
                
'media_sizes' => array(
                    
'font-size' => $title_font_size// set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
                       
'line-height' => $title_font_line_height
                
),
            );
            
$info_box_data_list get_ultimate_vc_responsive_media_css($info_box_args);

            if(
$title_font_color != '')
                
$title_style .= 'color:'.$title_font_color.';';

            
/* description */
            
if($desc_font != '')
            {
                
$font_family get_ultimate_font_family($desc_font);
                if(
$font_family !== '')
                    
$desc_style .= 'font-family:\''.$font_family.'\';';
            }
            if(
$desc_font_style != '') {
                
$desc_style .= get_ultimate_font_style($desc_font_style);
            }

            if(
is_numeric($desc_font_size)){
                
$desc_font_size 'desktop:'.$desc_font_size.'px;';
            }
            if(
is_numeric($desc_font_line_height)){
                
$desc_font_line_height 'desktop:'.$desc_font_line_height.'px;';
            }

            
$info_box_desc_args = array(
                
'target' => '#'.$info_box_id.' .aio-icon-description'// set targeted element e.g. unique class/id etc.
                
'media_sizes' => array(
                    
'font-size' => $desc_font_size// set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
                       
'line-height' => $desc_font_line_height
                
),
            );
            
$info_box_desc_data_list get_ultimate_vc_responsive_media_css($info_box_desc_args);
            if(
$desc_font_color != '')
                
$desc_style .= 'color:'.$desc_font_color.';';
            
//enquque_ultimate_google_fonts($font_args);

            
$box_style $box_style_data '';
            if(
$pos=='square_box'){
                if(
$box_min_height!='') {
                    
$box_style_data .="data-min-height='".esc_attr($box_min_height)."px'";
                }
                if(
$box_border_color!=''){
                    
$box_style .="border-color:".$box_border_color.";";
                }
                if(
$box_border_style!=''){
                    
$box_style .="border-style:".$box_border_style.";";
                }
                if(
$box_border_width!=''){
                    
$box_style .="border-width:".$box_border_width."px;";
                }
                if(
$box_bg_color!=''){
                    
$box_style .="background-color:".$box_bg_color.";";
                }
            }
            
$html .= '<div id="'.esc_attr($info_box_id).'" class="aio-icon-box '.esc_attr($ex_class).'" style="'.esc_attr($box_style).'" '.$box_style_data.' >';

            if(
$pos == "heading-right" || $pos == "right"){
                    if(
$pos == "right"){
                        
$html .= '<div class="aio-ibd-block" >';
                    }
                    if(
$title !== ''){
                        
$html .= '<div class="aio-icon-header" >';
                        
$link_prefix $link_sufix '';
                        if(
$link !== 'none'){
                            if(
$read_more == 'title')
                            {
                                
$href             vc_build_link($link);

                                
$url             = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url']  : '';
                                
$target         = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attrtrim$href['target'] ) ) : '';
                                
$link_title     = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
                                
$rel             = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';
                                
$link_prefix '<a class="aio-icon-box-link" 'Ultimate_VC_Addons::uavc_link_init($url$target$link_title$rel ).'>';
                                
$link_sufix '</a>';
                            }
                        }
                        
$html .= $link_prefix.'<'$heading_tag .' class="aio-icon-title ult-responsive" '.$info_box_data_list.' style="'.esc_attr($title_style).'">'.$title.'</'$heading_tag .'>'.$link_sufix;
                        
$html .= '</div> <!-- header -->';
                    }
                    if(
$pos !== "right"){
                        if(
$icon !== 'none' || $icon_img !== '')
                            
$html .= '<div class="'.esc_attr($ic_class).'" >'.$box_icon.'</div>';
                    }
                    if(
$content !== ''){
                        
$html .= '<div class="aio-icon-description ult-responsive" '.$info_box_desc_data_list.' style="'.esc_attr($desc_style).'">';
                        
$html .= do_shortcode($content);
                        if(
$link !== 'none'){
                            if(
$read_more == 'more')
                            {
                                
$href             vc_build_link($link);

                                
$url             = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url']  : '';
                                
$target         = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attrtrim$href['target'] ) ) : '';
                                
$link_title     = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
                                
$rel             = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';

                                
$more_link '<a class="aio-icon-read x" 'Ultimate_VC_Addons::uavc_link_init($url$target$link_title$rel ).'>';
                                
$more_link .= $read_text;
                                
$more_link .= '&nbsp;&raquo;';
                                
$more_link .= '</a>';
                                
$html .= $more_link;
                            }
                        }
                        
$html .= '</div> <!-- description -->';
                    }
                    if(
$pos == "right"){
                        
$html .= '</div> <!-- aio-ibd-block -->';
                        if(
$icon !== 'none' || $icon_img !== '')
                            
$html .= '<div class="'.esc_attr($ic_class).'">'.$box_icon.'</div>';
                    }

                }
                else {
                    if(
$icon !== 'none' || $icon_img != '')
                        
$html .= '<div class="'.esc_attr($ic_class).'">'.$box_icon.'</div>';
                    if(
$pos == "left")
                        
$html .= '<div class="aio-ibd-block">';
                    if(
$title !== ''){
                        
$html .= '<div class="aio-icon-header" >';
                        
$link_prefix $link_sufix '';
                        if(
$link !== 'none'){
                            if(
$read_more == 'title')
                            {
                                
$href vc_build_link($link);

                                
$url             = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url']  : '';
                                
$target         = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attrtrim$href['target'] ) ) : '';
                                
$link_title     = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
                                
$rel             = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';

                                
$link_prefix '<a class="aio-icon-box-link" 'Ultimate_VC_Addons::uavc_link_init($url$target$link_title$rel ).'>';
                                
$link_sufix '</a>';
                            }
                        }
                        
$html .= $link_prefix.'<'$heading_tag .' class="aio-icon-title ult-responsive" '.$info_box_data_list.' style="'.esc_attr($title_style).'">'.$title.'</'$heading_tag .'>'.$link_sufix;
                        
$html .= '</div> <!-- header -->';
                    }
                    if(
$content !== ''){
                        
$html .= '<div class="aio-icon-description ult-responsive" '.$info_box_desc_data_list.' style="'.esc_attr($desc_style).'">';
                        
$html .= do_shortcode($content);
                        if(
$link !== 'none'){
                            if(
$read_more == 'more')
                            {
                                
$href vc_build_link($link);

                                
$url             = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url']  : '';
                                
$target         = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attrtrim$href['target'] ) ) : '';
                                
$link_title     = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
                                
$rel             = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';

                                
$more_link '<a class="aio-icon-read xx" 'Ultimate_VC_Addons::uavc_link_init($url$target$link_title$rel ).'>';
                                
$more_link .= $read_text;
                                
$more_link .= '&nbsp;&raquo;';
                                
$more_link .= '</a>';
                                
$html .= $more_link;
                            }
                        }
                        
$html .= '</div> <!-- description -->';
                    }
                    if(
$pos == "left")
                        
$html .= '</div> <!-- aio-ibd-block -->';

                }


            
$html .= '</div> <!-- aio-icon-box -->';
            if(
$link !== 'none'){
                if(
$read_more == 'box')
                {
                    
$href vc_build_link($link);

                    
$url             = ( isset( $href['url'] ) && $href['url'] !== '' ) ? $href['url']  : '';
                    
$target         = ( isset( $href['target'] ) && $href['target'] !== '' ) ? esc_attrtrim$href['target'] ) ) : '';
                    
$link_title     = ( isset( $href['title'] ) && $href['title'] !== '' ) ? esc_attr($href['title']) : '';
                    
$rel             = ( isset( $href['rel'] ) && $href['rel'] !== '' ) ? esc_attr($href['rel']) : '';

                    
$output $prefix.'<a class="aio-icon-box-link" 'Ultimate_VC_Addons::uavc_link_init($url$target$link_title$rel ).'>'.$html.'</a>'.$suffix;
                } else {
                    
$output $prefix.$html.$suffix;
                }
            } else {
                
$output $prefix.$html.$suffix;
            }
            
$is_preset false//Display settings for Preset
            
if(isset($_GET['preset'])) {
                
$is_preset true;
            }
            if(
$is_preset) {
                
$text 'array ( ';
                foreach (
$atts as $key => $att) {
                    
$text .= '<br/>    \''.$key.'\' => \''.$att.'\',';
                }
                if(
$content != '') {
                    
$text .= '<br/>    \'content\' => \''.$content.'\',';
                }
                
$text .= '<br/>)';
                
$output .= '<pre>';
                
$output .= $text;
                
$output .= '</pre>';
            }
            return 
$output;
        }
        
/* Add icon box Component*/
        
function icon_box_init()
        {
            if ( 
function_exists('vc_map'))
            {
                
vc_map(
                    array(
                        
"name"        => __("Info Box""ultimate_vc"),
                        
"base"        => "bsf-info-box",
                        
"icon"        => "vc_info_box",
                        
"class"       => "info_box",
                        
"category"  => "Ultimate VC Addons",
                        
"description" => __("Adds icon box with custom font icon","ultimate_vc"),
                        
"controls" => "full",
                        
"show_settings_on_create" => true,
                        
"params" => array(
                            array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Icon to display:""ultimate_vc"),
                                
"param_name" => "icon_type",
                                
"value" => array(
                                    
__("Font Icon Manager","ultimate_vc") => "selector",
                                    
__("Custom Image Icon","ultimate_vc") => "custom",
                                ),
                                
"description" => __("Use an existing font icon or upload a custom image.""ultimate_vc")
                            ),
                            array(
                                
"type" => "icon_manager",
                                
"class" => "",
                                
"heading" => __("Select Icon ","ultimate_vc"),
                                
"param_name" => "icon",
                                
"value" => "",
                                
"description" => __("Click and select icon of your choice. If you can't find the one that suits for your purpose","ultimate_vc").", ".__("you can","ultimate_vc")." <a href='admin.php?page=bsf-font-icon-manager' target='_blank' rel='noopener'>".__("add new here","ultimate_vc")."</a>.",
                                
"dependency" => Array("element" => "icon_type","value" => array("selector")),
                            ),
                            array(
                                
"type" => "ult_img_single",
                                
"class" => "",
                                
"heading" => __("Upload Image Icon:""ultimate_vc"),
                                
"param_name" => "icon_img",
                                
"value" => "",
                                
"description" => __("Upload the custom image icon.""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_type","value" => array("custom")),
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Image Width""ultimate_vc"),
                                
"param_name" => "img_width",
                                
"value" => 48,
                                
"min" => 16,
                                
"max" => 512,
                                
"suffix" => "px",
                                
"description" => __("Provide image width""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_type","value" => array("custom")),
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Size of Icon""ultimate_vc"),
                                
"param_name" => "icon_size",
                                
"value" => 32,
                                
"min" => 12,
                                
"max" => 72,
                                
"suffix" => "px",
                                
"description" => __("How big would you like it?""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_type","value" => array("selector")),
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Color""ultimate_vc"),
                                
"param_name" => "icon_color",
                                
"value" => "#333333",
                                
"description" => __("Give it a nice paint!""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_type","value" => array("selector")),
                            ),
                            array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Icon Style""ultimate_vc"),
                                
"param_name" => "icon_style",
                                
"value" => array(
                                    
__("Simple","ultimate_vc") => "none",
                                    
__("Circle Background","ultimate_vc") => "circle",
                                    
__("Square Background","ultimate_vc") => "square",
                                    
__("Design your own","ultimate_vc") => "advanced",
                                ),
                                
"description" => __("We have given three quick preset if you are in a hurry. Otherwise, create your own with various options.""ultimate_vc"),
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Background Color""ultimate_vc"),
                                
"param_name" => "icon_color_bg",
                                
"value" => "#ffffff",
                                
"description" => __("Select background color for icon.""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_style""value" => array("circle","square","advanced")),
                            ),
                            array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Icon Border Style""ultimate_vc"),
                                
"param_name" => "icon_border_style",
                                
"value" => array(
                                    
__("None","ultimate_vc") => "",
                                    
__("Solid","ultimate_vc") => "solid",
                                    
__("Dashed","ultimate_vc") => "dashed",
                                    
__("Dotted","ultimate_vc") => "dotted",
                                    
__("Double","ultimate_vc") => "double",
                                    
__("Inset","ultimate_vc") => "inset",
                                    
__("Outset","ultimate_vc") => "outset",
                                ),
                                
"description" => __("Select the border style for icon.","ultimate_vc"),
                                
"dependency" => Array("element" => "icon_style""value" => array("advanced")),
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Border Color""ultimate_vc"),
                                
"param_name" => "icon_color_border",
                                
"value" => "#333333",
                                
"description" => __("Select border color for icon.""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_border_style""not_empty" => true),
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Border Width""ultimate_vc"),
                                
"param_name" => "icon_border_size",
                                
"value" => 1,
                                
"min" => 1,
                                
"max" => 10,
                                
"suffix" => "px",
                                
"description" => __("Thickness of the border.""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_border_style""not_empty" => true),
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Border Radius""ultimate_vc"),
                                
"param_name" => "icon_border_radius",
                                
"value" => 500,
                                
"min" => 1,
                                
"max" => 500,
                                
"suffix" => "px",
                                
"description" => __("0 pixel value will create a square border. As you increase the value, the shape convert in circle slowly. (e.g 500 pixels).""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_border_style""not_empty" => true),
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Background Size""ultimate_vc"),
                                
"param_name" => "icon_border_spacing",
                                
"value" => 50,
                                
"min" => 30,
                                
"max" => 500,
                                
"suffix" => "px",
                                
"description" => __("Spacing from center of the icon till the boundary of border / background""ultimate_vc"),
                                
"dependency" => Array("element" => "icon_style""value" => array("advanced")),
                            ),
                            array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Animation","ultimate_vc"),
                                
"param_name" => "icon_animation",
                                
"value" => array(
                                     
__("No Animation","ultimate_vc") => "",
                                    
__("Swing","ultimate_vc") => "swing",
                                    
__("Pulse","ultimate_vc") => "pulse",
                                    
__("Fade In","ultimate_vc") => "fadeIn",
                                    
__("Fade In Up","ultimate_vc") => "fadeInUp",
                                    
__("Fade In Down","ultimate_vc") => "fadeInDown",
                                    
__("Fade In Left","ultimate_vc") => "fadeInLeft",
                                    
__("Fade In Right","ultimate_vc") => "fadeInRight",
                                    
__("Fade In Up Long","ultimate_vc") => "fadeInUpBig",
                                    
__("Fade In Down Long","ultimate_vc") => "fadeInDownBig",
                                    
__("Fade In Left Long","ultimate_vc") => "fadeInLeftBig",
                                    
__("Fade In Right Long","ultimate_vc") => "fadeInRightBig",
                                    
__("Slide In Down","ultimate_vc") => "slideInDown",
                                    
__("Slide In Left","ultimate_vc") => "slideInLeft",
                                    
__("Slide In Left","ultimate_vc") => "slideInLeft",
                                    
__("Bounce In","ultimate_vc") => "bounceIn",
                                    
__("Bounce In Up","ultimate_vc") => "bounceInUp",
                                    
__("Bounce In Down","ultimate_vc") => "bounceInDown",
                                    
__("Bounce In Left","ultimate_vc") => "bounceInLeft",
                                    
__("Bounce In Right","ultimate_vc") => "bounceInRight",
                                    
__("Rotate In","ultimate_vc") => "rotateIn",
                                    
__("Light Speed In","ultimate_vc") => "lightSpeedIn",
                                    
__("Roll In","ultimate_vc") => "rollIn",
                                    ),
                                
"description" => __("Like CSS3 Animations? We have several options for you!","ultimate_vc")
                              ),
                            
// Icon Box Heading
                            
array(
                                
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Title""ultimate_vc"),
                                
"param_name" => "title",
                                
"admin_label" => true,
                                
"value" => "",
                                
"description" => __("Provide the title for this icon box.""ultimate_vc"),
                                
'edit_field_class' => 'vc_col-sm-8',
                            ),
                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Tag","ultimate_vc"),
                                
"param_name" => "heading_tag",
                                
"value" => array(
                                    
__("Default","ultimate_vc") => "h3",
                                    
__("H1","ultimate_vc") => "h1",
                                    
__("H2","ultimate_vc") => "h2",
                                    
__("H4","ultimate_vc") => "h4",
                                    
__("H5","ultimate_vc") => "h5",
                                    
__("H6","ultimate_vc") => "h6",
                                    
__("Div","ultimate_vc") => "div",
                                    
__("p","ultimate_vc") => "p",
                                    
__("span","ultimate_vc") => "span",
                                ),
                                
"description" => __("Default is H3""ultimate_vc"),
                                
'edit_field_class' => 'vc_col-sm-4',
                                
// "group" => "Typography"
                            
),
                            
// Add some description
                            
array(
                                
"type" => "textarea_html",
                                
"class" => "",
                                
"heading" => __("Description""ultimate_vc"),
                                
"param_name" => "content",
                                
"value" => "",
                                
"description" => __("Provide the description for this icon box.""ultimate_vc"),
                                
"edit_field_class" => "ult_hide_editor_fullscreen vc_col-xs-12 vc_column wpb_el_type_textarea_html vc_wrapper-param-type-textarea_html vc_shortcode-param",
                            ),
                            
// Select link option - to box or with read more text
                            
array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Apply link to:""ultimate_vc"),
                                
"param_name" => "read_more",
                                
"value" => array(
                                    
__("No Link","ultimate_vc") => "none",
                                    
__("Complete Box","ultimate_vc") => "box",
                                    
__("Box Title","ultimate_vc") => "title",
                                    
__("Display Read More","ultimate_vc") => "more",
                                ),
                                
"description" => __("Select whether to use color for icon or not.""ultimate_vc")
                            ),
                            
// Add link to existing content or to another resource
                            
array(
                                
"type" => "vc_link",
                                
"class" => "",
                                
"heading" => __("Add Link""ultimate_vc"),
                                
"param_name" => "link",
                                
"value" => "",
                                
"description" => __("Add a custom link or select existing page. You can remove existing link as well.""ultimate_vc"),
                                
"dependency" => Array("element" => "read_more""value" => array("box","title","more")),
                            ),
                            
// Link to traditional read more
                            
array(
                                
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Read More Text""ultimate_vc"),
                                
"param_name" => "read_text",
                                
"value" => "Read More",
                                
"description" => __("Customize the read more text.""ultimate_vc"),
                                
"dependency" => Array("element" => "read_more","value" => array("more")),
                            ),
                            
// Hover Effect type
                            
array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Select Hover Effect type""ultimate_vc"),
                                
"param_name" => "hover_effect",
                                
"value" => array(
                                    
__("No Effect","ultimate_vc") => "style_1",
                                    
__("Icon Zoom","ultimate_vc") => "style_2",
                                    
__("Icon Bounce Up","ultimate_vc") => "style_3",
                                ),
                                
"description" => __("Select the type of effct you want on hover""smile")
                            ),
                            
// Position the icon box
                            
array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Box Style""ultimate_vc"),
                                
"param_name" => "pos",
                                
"value" => array(
                                    
__("Icon at Left with heading","ultimate_vc") => "default",
                                    
__("Icon at Right with heading","ultimate_vc") => "heading-right",
                                    
__("Icon at Left","ultimate_vc") => "left",
                                    
__("Icon at Right","ultimate_vc") => "right",
                                    
__("Icon at Top","ultimate_vc") => "top",
                                    
__("Boxed Style","ultimate_vc") => "square_box",
                                ),
                                
"description" => __("Select icon position. Icon box style will be changed according to the icon position.""ultimate_vc")
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Box Min Height""ultimate_vc"),
                                
"param_name" => "box_min_height",
                                
"value" => "",
                                
"suffix" =>"px",
                                
"dependency" => Array("element" => "pos","value" => array("square_box")),
                                
"description" => __("Select Min Height for Box.""ultimate_vc")
                            ),
                            array(
                                
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Box Border Style""ultimate_vc"),
                                
"param_name" => "box_border_style",
                                
"value" => array(
                                    
__("None","ultimate_vc") => "",
                                    
__("Solid","ultimate_vc")=> "solid",
                                    
__("Dashed","ultimate_vc") => "dashed",
                                    
__("Dotted","ultimate_vc") => "dotted",
                                    
__("Double","ultimate_vc") => "double",
                                    
__("Inset","ultimate_vc") => "inset",
                                    
__("Outset","ultimate_vc") => "outset",
                                ),
                                
"dependency" => Array("element" => "pos","value" => array("square_box")),
                                
"description" => __("Select Border Style for box border.""ultimate_vc")
                            ),
                            array(
                                
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Box Border Width""ultimate_vc"),
                                
"param_name" => "box_border_width",
                                
"value" => "",
                                
"suffix" =>"",
                                
"dependency" => Array("element" => "pos","value" => array("square_box")),
                                
"description" => __("Select Width for Box Border.""ultimate_vc")
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Box Border Color""ultimate_vc"),
                                
"param_name" => "box_border_color",
                                
"value" => "",
                                
"dependency" => Array("element" => "pos","value" => array("square_box")),
                                
"description" => __("Select Border color for border box.""ultimate_vc")
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Box Background Color""ultimate_vc"),
                                
"param_name" => "box_bg_color",
                                
"value" => "",
                                
"dependency" => Array("element" => "pos","value" => array("square_box")),
                                
"description" => __("Select Box background color.""ultimate_vc")
                            ),
                            
// Customize everything
                            
array(
                                
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Extra Class""ultimate_vc"),
                                
"param_name" => "el_class",
                                
"value" => "",
                                
"description" => __("Add extra class name that will be applied to the icon box, and you can use this class for your customizations.""ultimate_vc"),
                            ),
                            array(
                                
"type" => "ult_param_heading",
                                
"param_name" => "title_text_typography",
                                
"heading" => __("Title settings","ultimate_vc"),
                                
"value" => "",
                                
"group" => "Typography",
                                
'edit_field_class' => 'ult-param-heading-wrapper no-top-margin vc_column vc_col-sm-12',
                            ),
                            array(
                                
"type" => "ultimate_google_fonts",
                                
"heading" => __("Font Family","ultimate_vc"),
                                
"param_name" => "title_font",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading" => __("Font Style","ultimate_vc"),
                                
"param_name" => "title_font_style",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_responsive",
                                
"class" => "",
                                
"heading" => __("Font size"'ultimate_vc'),
                                
"param_name" => "title_font_size",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "ultimate_responsive",
                                
"class" => "",
                                
"heading" => __("Line Height"'ultimate_vc'),
                                
"param_name" => "title_font_line_height",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"param_name" => "title_font_color",
                                
"heading" => __("Color","ultimate_vc"),
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"param_name" => "desc_text_typography",
                                
"heading" => __("Description settings","ultimate_vc"),
                                
"value" => "",
                                
"group" => "Typography",
                                
'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12',
                            ),
                            array(
                                
"type" => "ultimate_google_fonts",
                                
"heading" => __("Font Family","ultimate_vc"),
                                
"param_name" => "desc_font",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading" => __("Font Style","ultimate_vc"),
                                
"param_name" => "desc_font_style",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_responsive",
                                
"class" => "",
                                
"heading" => __("Font size"'ultimate_vc'),
                                
"param_name" => "desc_font_size",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "ultimate_responsive",
                                
"class" => "",
                                
"heading" => __("Line Height"'ultimate_vc'),
                                
"param_name" => "desc_font_line_height",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"param_name" => "desc_font_color",
                                
"heading" => __("Color","ultimate_vc"),
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => "<span style='display: block;'><a href='http://bsf.io/kqzzi' target='_blank' rel='noopener'>".__("Watch Video Tutorial","ultimate_vc")." &nbsp; <span class='dashicons dashicons-video-alt3' style='font-size:30px;vertical-align: middle;color: #e52d27;'></span></a></span>",
                                
"param_name" => "notification",
                                
'edit_field_class' => 'ult-param-important-wrapper ult-dashicon ult-align-right ult-bold-font ult-blue-font vc_column vc_col-sm-12',
                            ),
                            array(
                                
'type' => 'css_editor',
                                
'heading' => __'Css''ultimate_vc' ),
                                
'param_name' => 'css_info_box',
                                
'group' => __'Design ''ultimate_vc' ),
                                
'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor',
                            ),
                        ) 
// end params array
                    
// end vc_map array
                
); // end vc_map
            
// end function check 'vc_map'
        
}// end function icon_box_init
        
function icon_box_scripts() {
            
Ultimate_VC_Addons::ultimate_register_style'info-box-style''info-box' );
            
            
Ultimate_VC_Addons::ultimate_register_script'info_box_js''info-box' );
        }
    }
//Class end
}
if(
class_exists('AIO_Icons_Box'))
{
    
$AIO_Icons_Box = new AIO_Icons_Box;
}
x

Windows NT KPTV 6.2 build 9200 (Windows Server 2012 Datacenter Edition) i586