C:\xampp\htdocs\landing\wp-content\plugins\Ultimate_VC_Addons\modules\ultimate_info_banner.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
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
<?php
/*
* Add-on Name: Info Banner
*/
if(!class_exists('Ultimate_Info_Banner'))
{
    class 
Ultimate_Info_Banner{
        function 
__construct(){
            if ( 
Ultimate_VC_Addons::$uavc_editor_enable ) {
                
add_action('init',array($this,'banner_init'));
            }
            
add_shortcode('ultimate_info_banner',array($this,'banner_shortcode'));
            
add_action('wp_enqueue_scripts', array($this'register_info_banner_assets'),1);
        }
        function 
register_info_banner_assets()
        {
            
            
Ultimate_VC_Addons::ultimate_register_style'utl-info-banner-style''info-banner' );
            
            
Ultimate_VC_Addons::ultimate_register_script'utl-info-banner-script''info-banner'false, array( 'jquery' ), ULTIMATE_VERSIONfalse );
        }
        function 
banner_init(){
            if(
function_exists('vc_map'))
            {
                
vc_map(
                    array(
                       
"name" => __("Info Banner","ultimate_vc"),
                       
"base" => "ultimate_info_banner",
                       
"class" => "vc_info_banner_icon",
                       
"icon" => "vc_icon_info_banner",
                       
"category" => "Ultimate VC Addons",
                       
"description" => __("Displays the banner information","ultimate_vc"),
                       
"params" => array(
                               array(
                                
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Title ","ultimate_vc"),
                                
"param_name" => "banner_title",
                                
"admin_label" => true,
                                
"value" => "",
                                
"description" => __("Give a title to this banner","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") => "Div",
                                    
__("H1","ultimate_vc") => "h1",
                                    
__("H2","ultimate_vc") => "h2",
                                    
__("H3","ultimate_vc") => "h3",
                                    
__("H4","ultimate_vc") => "h4",
                                    
__("H5","ultimate_vc") => "h5",
                                    
__("H6","ultimate_vc") => "h6",
                                    
__("p","ultimate_vc") => "p",
                                    
__("span","ultimate_vc") => "span",
                                ),
                                
"description" => __("Default is Div""ultimate_vc"),
                                
'edit_field_class' => 'ult-param-padding-remove vc_col-sm-4',
                            ),
                            array(
                                
"type" => "textarea",
                                
"class" => "",
                                
"heading" => __("Description","ultimate_vc"),
                                
"param_name" => "banner_desc",
                                
"value" => "",
                                
"description" => __("Text that comes on mouse hover.","ultimate_vc")
                            ),
                            array(
                                
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Button Text","ultimate_vc"),
                                
"param_name" => "button_text",
                                
"admin_label" => true,
                                
"value" => "",
                                
//"description" => __("Give a title to this banner","smile")
                            
),
                            array(
                                
"type" => "vc_link",
                                
"class" => "",
                                
"heading" => __("Link ","ultimate_vc"),
                                
"param_name" => "button_link",
                                
"value" => "",
                                
"description" => __("Add link / select existing page to link to this banner","ultimate_vc"),
                            ),
                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Information Alignment","ultimate_vc"),
                                
"param_name" => "info_alignment",
                                
"value" => array(
                                    
__("Center","ultimate_vc") => "ib3-info-center",
                                    
__("Left","ultimate_vc") => "ib3-info-left",
                                    
__("Right","ultimate_vc") => "ib3-info-right"
                                
)
                            ),
                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Animation Effect","ultimate_vc"),
                                
"param_name" => "info_effect",
                                
"value" => array(
                                    
__("No Effect","ultimate_vc") => "",
                                    
__("Fade-In","ultimate_vc") => "fadeIn",
                                    
__("Fade-In Left","ultimate_vc") => "fadeInLeft",
                                    
__("Fade-In Right","ultimate_vc") => "fadeInRight",
                                    
__("Fade-In Up","ultimate_vc") => "fadeInUp",
                                    
__("Fade-In Down","ultimate_vc") => "fadeInDown",
                                    
__("Flip","ultimate_vc") => "flipInX",
                                    
__("Zoom","ultimate_vc") => "zoomIn"
                                
)
                            ),
                            array(
                                
"type" => "ult_img_single",
                                
"class" => "",
                                
"heading" => __("Banner Image","ultimate_vc"),
                                
"param_name" => "banner_image",
                                
"value" => "",
                                
"description" => __("Upload the image for this banner","ultimate_vc"),
                                
"group" => "Image",
                            ),
                            array(
                                
"type" => "number",
                                
"param_name" => "banner_size",
                                
"heading" => __("Banner Min Height","ultimate_vc"),
                                
"value" => "50",
                                
"min" => "50",
                                
"suffix" => "px",
                                
"group" => "Design"
                            
),

                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Image Alignment","ultimate_vc"),
                                
"param_name" => "ib3_alignment",
                                
"value" => array(
                                    
__("Top Left","ultimate_vc") => "ultb3-img-top-left",
                                    
__("Top Center","ultimate_vc") => "ultb3-img-top-center",
                                    
__("Top Right","ultimate_vc") => "ultb3-img-top-right",
                                    
__("Center Left","ultimate_vc") => "ultb3-img-center-left",
                                    
__("Center","ultimate_vc") => "ultb3-img-center",
                                    
__("Center Right","ultimate_vc") => "ultb3-img-center-right",
                                    
__("Bottom Left","ultimate_vc") => "ultb3-img-bottom-left",
                                    
__("Bottom Center","ultimate_vc") => "ultb3-img-bottom-center",
                                    
__("Bottom Right","ultimate_vc") => "ultb3-img-bottom-right",
                                ),
                                
"group" => "Image",
                            ),
                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Effect","ultimate_vc"),
                                
"param_name" => "ib3_effect",
                                
"value" => array(
                                    
__("No Effect","ultimate_vc") => "",
                                    
__("Slide Down","ultimate_vc") => "ultb3-hover-1",
                                    
__("Slide Up","ultimate_vc") => "ultb3-hover-2",
                                    
__("Slide Left","ultimate_vc") => "ultb3-hover-3",
                                    
__("Slide Right","ultimate_vc") => "ultb3-hover-4",
                                    
__("Pan","ultimate_vc") => "ultb3-hover-5",
                                    
__("Zoom Out","ultimate_vc") => "ultb3-hover-6"
                                
),
                                
"group" => "Image",
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"heading" => __("Overlay Color on Image","ultimate_vc"),
                                
"param_name" => "overlay_color",
                                
"value" => "",
                                
"group" => "Image",
                                
// "dependency" => array("element" => "enable_overlay", "value" => array("enable_overlay_value"))
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Image Height","ultimate_vc"),
                                
"param_name" => "image_height_typography",
                                
"class" => "ult-param-heading",
                                
"group" => "Image",
                                
'edit_field_class' => 'ult-param-heading-wrapper vc_column vc_col-sm-12',
                            ),
                            array(
                                
"type" => "number",
                                
"param_name" => "banner_img_height_large_screen",
                                
"heading" => "<i class='dashicons dashicons-welcome-view-site'></i> ".__("Large Screen","ultimate_vc"),
                                
"min" => "50",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "number",
                                
"param_name" => "banner_img_height",
                                
"heading" => "<i class='dashicons dashicons-desktop'></i> ".__("Desktop","ultimate_vc"),
                                
"min" => "50",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "number",
                                
"heading" => "<i class='dashicons dashicons-tablet' style='transform: rotate(90deg);'></i> ".__("Tablet""ultimate_vc"),
                                
"param_name" => "banner_img_height_tablet",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "number",
                                
"heading" => "<i class='dashicons dashicons-tablet'></i> ".__("Tablet Portrait""ultimate_vc"),
                                
"param_name" => "banner_img_height_tablet_portrait",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "number",
                                
"heading" => "<i class='dashicons dashicons-smartphone' style='transform: rotate(90deg);'></i> ".__("Mobile Landscape""ultimate_vc"),
                                
"param_name" => "banner_img_height_mobile_landscape",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "number",
                                
"heading" => "<i class='dashicons dashicons-smartphone'></i> ".__("Mobile""ultimate_vc"),
                                
"param_name" => "banner_img_height_mobile",
                                
"value" => "",
                                
"suffix" => "px",
                                
"group" => "Image",
                                
'edit_field_class' => 'vc_column vc_col-sm-4',
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"heading" => __("Background Color","ultimate_vc"),
                                
"param_name" => "ib3_background",
                                
"group" => "Design"
                            
),
                            array(
                                
"type" => "dropdown",
                                
"heading" => __("Border","ultimate_vc"),
                                
"param_name" => "ib3_border",
                                
"value" => array(
                                    
__("No Border","ultimate_vc") => "no-border",
                                    
__("Solid","ultimate_vc") => "solid",
                                    
__("Dashed","ultimate_vc") => "dashed",
                                    
__("Dotted","ultimate_vc") => "dotted",
                                    
__("Double","ultimate_vc") => "double"
                                
),
                                
"group" => "Design"
                            
),
                            array(
                                
"type" => "number",
                                
"heading" => __("Border Width","ultimate_vc"),
                                
"param_name" => "ib3_border_width",
                                
"suffix" => "px",
                                
"value" => "1",
                                
"group" => "Design",
                                
"dependency" => array("element" => "ib3_border""value" => array("solid","dashed","dotted","double"))
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"heading" => __("Border Color","ultimate_vc"),
                                
"param_name" => "ib3_border_color",
                                
"group" => "Design",
                                
"dependency" => array("element" => "ib3_border""value" => array("solid","dashed","dotted","double"))
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"heading" => __("Button Color","ultimate_vc"),
                                
"param_name" => "button_color",
                                
"value" => "#1e73be",
                                
"group" => "Button"
                            
),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Text Color""ultimate_vc"),
                                
"param_name" => "button_text_color",
                                
"value" => "#898989",
                                
"group" => "Button"
                            
),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Text Hover Color""ultimate_vc"),
                                
"param_name" => "button_text_hover_color",
                                
"value" => "#ffffff",
                                
"group" => "Button"
                            
),
                            array(
                                
"type" => "number",
                                
"heading" => __("Border Width","ultimate_vc"),
                                
"param_name" => "button_border_width",
                                
"value" => "2",
                                
"suffix" => "px",
                                
"group" => "Button"
                            
),
                            array(
                                
"type" => "number",
                                
"heading" => __("Border Radius","ultimate_vc"),
                                
"param_name" => "button_border_radius",
                                
"value" => "50",
                                
"suffix" => "px",
                                
"group" => "Button"
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Title Settings","ultimate_vc"),
                                
"param_name" => "title_typograpy",
                                
"group" => "Typography",
                                
"class" => "ult-param-heading",
                                
'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_family",
                                
"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-google-font-manager' target='_blank' rel='noopener'>".__("add new here","ultimate_vc")."</a>.",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading"         =>    __("Font Style""ultimate_vc"),
                                
"param_name"    =>    "title_font_style",
                                
"group" => "Typography"
                            
),
                            
// array(
                            //     "type" => "number",
                            //     "class" => "font-size",
                            //     "heading" => __("Font Size", "ultimate_vc"),
                            //     "param_name" => "title_font_size",
                            //     "min" => 10,
                            //     "suffix" => "px",
                            //     "group" => "Typography"
                            // ),
                            // array(
                            //     "type" => "number",
                            //     "class" => "",
                            //     "heading" => __("Line Height", "ultimate_vc"),
                            //     "param_name" => "title_line_height",
                            //     "value" => "",
                            //     "suffix" => "px",
                            //     "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_line_height",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Font Color""ultimate_vc"),
                                
"param_name" => "title_color",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Description Settings","ultimate_vc"),
                                
"param_name" => "desc_typograpy",
                                
"group" => "Typography",
                                
"class" => "ult-param-heading",
                                
'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_family",
                                
"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>.",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading"         =>    __("Font Style""ultimate_vc"),
                                
"param_name"    =>    "desc_font_style",
                                
"group" => "Typography"
                            
),
                            
// array(
                            //     "type" => "number",
                            //     "class" => "font-size",
                            //     "heading" => __("Font Size", "ultimate_vc"),
                            //     "param_name" => "desc_font_size",
                            //     "min" => 10,
                            //     "suffix" => "px",
                            //     "group" => "Typography"
                            // ),
                            // array(
                            //     "type" => "number",
                            //     "class" => "",
                            //     "heading" => __("Line Height", "ultimate_vc"),
                            //     "param_name" => "desc_line_height",
                            //     "value" => "",
                            //     "suffix" => "px",
                            //     "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_line_height",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Font Color""ultimate_vc"),
                                
"param_name" => "desc_color",
                                
"value" => "",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Button Settings","ultimate_vc"),
                                
"param_name" => "button_typograpy",
                                
"group" => "Typography",
                                
"class" => "ult-param-heading",
                                
'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" => "button_font_family",
                                
"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>.",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading"         =>    __("Font Style""ultimate_vc"),
                                
"param_name"    =>    "button_font_style",
                                
"group" => "Typography"
                            
),
                            
// array(
                            //     "type" => "number",
                            //     "class" => "font-size",
                            //     "heading" => __("Font Size", "ultimate_vc"),
                            //     "param_name" => "button_font_size",
                            //     "min" => 10,
                            //     "suffix" => "px",
                            //     "group" => "Typography"
                            // ),
                            // array(
                            //     "type" => "number",
                            //     "class" => "",
                            //     "heading" => __("Line Height", "ultimate_vc"),
                            //     "param_name" => "button_line_height",
                            //     "value" => "",
                            //     "suffix" => "px",
                            //     "group" => "Typography"
                            // ),
                            
array(
                                
"type" => "ultimate_responsive",
                                
"class" => "",
                                
"heading" => __("Font size"'ultimate_vc'),
                                
"param_name" => "button_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" => "button_line_height",
                                
"unit" => "px",
                                
"media" => array(
                                    
"Desktop" => '',
                                    
"Tablet" => '',
                                    
"Tablet Portrait" => '',
                                    
"Mobile Landscape" => '',
                                    
"Mobile" => '',
                                ),
                                
"group" => "Typography",
                            ),
                            array(
                                
"type" => "textfield",
                                
"heading" => __("Extra class name""ultimate_vc"),
                                
"param_name" => "el_class",
                                
"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.""ultimate_vc")
                            ),
                            array(
                                
'type' => 'css_editor',
                                
'heading' => __'Css''ultimate_vc' ),
                                
'param_name' => 'css_infobanner',
                                
'group' => __'Design''ultimate_vc' ),
                                
'edit_field_class' => 'vc_col-sm-12 vc_column no-vc-background no-vc-border creative_link_css_editor',
                            ),
                        ),
                    )
                );
            }
        }
        
// Shortcode handler function for stats banner
        
function banner_shortcode($atts)
        {
            
$output $el_class $style $img_style $infobnr_design $target $link_title  $rel $heading_tag ='';

            
extract(shortcode_atts( array(
                
'banner_title' => '',
                
'heading_tag' => 'div',
                
'banner_desc' => '',
                
'info_alignment' => 'ib3-info-center',
                
'banner_image' => '',
                
'banner_size' => '50',
                
'ib3_alignment' => 'ultb3-img-top-left',
                
'button_text' => '',
                
'button_link' => '',
                
'info_effect' => '',
                
'ib3_effect' => '',
                
'ib3_background' => '',
                
'ib3_border' => 'no-border',
                
'ib3_border_width' => '1',
                
'ib3_border_color' => '',
                
'title_font_family' => '',
                
'title_font_style' => '',
                
'title_font_size' => '',
                
'title_color' => '',
                
'title_line_height' => '',
                
'desc_font_family' => '',
                
'desc_font_style' => '',
                
'desc_font_size' => '',
                
'desc_color' => '',
                
'desc_line_height' => '',
                
'button_font_family' => '',
                
'button_font_style' => '',
                
'button_font_size' => '',
                
'button_color' => '#1e73be',
                
'button_line_height' => '',
                
'button_border_radius' => '50',
                
'button_border_width' => '2',
                
'button_text_color' => '#898989',
                
'button_text_hover_color' => '#ffffff',
                
'banner_img_height_large_screen' => '',
                
'banner_img_height' => '',
                
'banner_img_height_tablet' => '',
                
'banner_img_height_tablet_portrait' => '',
                
'banner_img_height_mobile' => '',
                
'banner_img_height_mobile_landscape' => '',
                
'overlay_color' => '',
                
'el_class' => '',
                
'css_infobanner' => '',
            ),
$atts));

            
$vc_version = (defined('WPB_VC_VERSION')) ? WPB_VC_VERSION 0;
            
$is_vc_49_plus = (version_compare(4.9$vc_version'<=')) ? 'ult-adjust-bottom-margin' '';

            
$infobnr_design apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAGvc_shortcode_custom_css_class$css_infobanner' ' ), "ultimate_info_banner"$atts );
            
$infobnr_design esc_attr$infobnr_design );
            
/* typography */
            
$title_style_inline $desc_style_inline $button_style_inline '';
            if(
$title_font_family != '')
            {
                
$temp get_ultimate_font_family($title_font_family);
                if(
$temp != '')
                    
$title_style_inline .= 'font-family:'.$temp.';';
            }

            
$title_style_inline .= get_ultimate_font_style($title_font_style);

            
// if($title_font_size != '')
            //     $title_style_inline .= 'font-size:'.$title_font_size.'px;';
            // if($title_line_height != '')
            //     $title_style_inline .= 'line-height:'.$title_line_height.'px;';

            
if(is_numeric($title_font_size)){
                
$title_font_size 'desktop:'.$title_font_size.'px;';
            }
            if(
is_numeric($title_line_height)){
                
$title_line_height 'desktop:'.$title_line_height.'px;';
            }
            
$info_banner_id 'Info-banner-wrap'.rand(10009999);
            
$info_banner_args = array(
                
'target' => '#'.$info_banner_id.' .ultb3-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_line_height
                
),
            );
            
$info_banner_data_list get_ultimate_vc_responsive_media_css($info_banner_args);
            if(
$title_color != '')
                
$title_style_inline .= 'color:'.$title_color.';';

            if(
$desc_font_family != '')
            {
                
$temp get_ultimate_font_family($desc_font_family);
                if(
$temp != '')
                    
$desc_style_inline .= 'font-family:'.$temp.';';
            }

            
$desc_style_inline .= get_ultimate_font_style($desc_font_style);

            
// if($desc_font_size != '')
            //     $desc_style_inline .= 'font-size:'.$desc_font_size.'px;';
            // if($desc_line_height != '')
            //     $desc_style_inline .= 'line-height:'.$desc_line_height.'px;';

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

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

            
$info_banner_desc_args = array(
                
'target' => '#'.$info_banner_id.' .ultb3-desc'// 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_line_height
                
),
            );
            
$info_banner_desc_data_list get_ultimate_vc_responsive_media_css($info_banner_desc_args);

            if(
$desc_color != '')
                
$desc_style_inline .= 'color:'.$desc_color.';';

            if(
$button_font_family != '')
            {
                
$temp get_ultimate_font_family($button_font_family);
                if(
$temp != '')
                    
$button_style_inline .= 'font-family:'.$temp.';';
            }

            
$button_style_inline .= get_ultimate_font_style($button_font_style);

            
// if($button_font_size != '')
            //     $button_style_inline .= 'font-size:'.$button_font_size.'px;';

            // if($button_line_height != '')
            //     $button_style_inline .= 'line-height:'.$button_line_height.'px;';

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

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

            
$info_banner_btn_args = array(
                
'target' => '#'.$info_banner_id.' .ultb3-btn'// set targeted element e.g. unique class/id etc.
                
'media_sizes' => array(
                    
'font-size' => $button_font_size// set 'css property' & 'ultimate_responsive' sizes. Here $title_responsive_font_size holds responsive font sizes from user input.
                       
'line-height' => $button_line_height
                
),
            );
            
$info_banner_btn_data_list get_ultimate_vc_responsive_media_css($info_banner_btn_args);

            
$banner_src apply_filters('ult_get_img_single'$banner_image'url''full');

            
$alt apply_filters('ult_get_img_single'$banner_image'alt');

            if(
$ib3_background != '')
                
$style .= 'background-color: '.$ib3_background.';';

            if(
$ib3_border != 'no-border')
                
$style .= 'border:'.$ib3_border_width.'px '.$ib3_border.' '.$ib3_border_color.';';

            
$id uniqid(rand());

            
$button_link_main $title $target '';

            if(
$button_link != '')
            {
                
$button_link_temp vc_build_link($button_link);                
                
$button_link_main $button_link_temp['url'];
                
$title     = ( isset( $button_link_temp['title'] ) && $button_link_temp['title'] !== '' ) ? esc_attr($button_link_temp['title']) : '';
                
$target $button_link_temp['target'];
                
$rel     = ( isset( $button_link_temp['rel'] ) && $button_link_temp['rel'] !== '' ) ? esc_attr($button_link_temp['rel']) : '';
            }
            if(
$button_link_main == '') {
                
$button_link_main 'javascript:void(0);';
            }

            
$output .= '<div id="ultib3-'.esc_attr($id).'" class="'.esc_attr($infobnr_design).' ultb3-box '.esc_attr($is_vc_49_plus).' '.esc_attr($el_class).' '.esc_attr($ib3_effect).'" style="'.esc_attr($style).'">';
                if(
$overlay_color != '')
                    
$output .= '<div class="ultb3-box-overlay" style="background:'.esc_attr($overlay_color).';"></div>';

                if(isset(
$banner_src) && $banner_src != '')
                    
$output .= '<img src="'.esc_url(apply_filters('ultimate_images'$banner_src)).'" style="'.esc_attr($img_style).'" class="ultb3-img '.esc_attr($ib3_alignment).'" alt="'.esc_attr($alt).'"/>';

                
$output .= '<div id="'.esc_attr($info_banner_id).'" class="ultb3-info '.esc_attr($info_alignment).'" data-animation="'.esc_attr($info_effect).'" data-animation-delay="03">';

                if(
$banner_title != '')
                    
$output .= '<'$heading_tag .' class="ultb3-title ult-responsive" '.$info_banner_data_list.' style="'.esc_attr($title_style_inline).'">'.$banner_title.'</'$heading_tag .'>';
                if(
$banner_desc != '')
                    
$output .= '<div class="ultb3-desc ult-responsive" '.$info_banner_desc_data_list.' style="'.esc_attr($desc_style_inline).'">'.$banner_desc.'</div>';
                if(
$button_text != '')
                {
                    if(
$target != '')
                        
$target 'target="'.esc_attr($target).'"';
                    
$output .= '<a 'Ultimate_VC_Addons::uavc_link_init($button_link_main$target$title$rel ).' class="ultb3-btn ult-responsive" '.$info_banner_btn_data_list.' style="'.esc_attr($button_style_inline).'">'.$button_text.'<i class="Defaults-angle-right"></i></a>';
                }
                
$output .= '</div>';
            
$output .= '</div>';

            
$global_button_style $global_button_hover_style '';
            
$is_css false;

            if(
$button_color != '')
            {
                
$global_button_style .= 'border:'.$button_border_width.'px solid '.$button_color.';';
                
$global_button_hover_style .= 'background:'.$button_color.';';
                
$is_css true;
            }

            if(
$button_border_radius != '')
            {
                
$global_button_style .= 'border-radius:'.$button_border_radius.'px;';
                
$is_css true;
            }

            if(
$button_text_color != '')
            {
                
$global_button_style .= 'color:'.$button_text_color.';';
                
$is_css true;
            }

            if(
$button_text_hover_color != '')
            {
                
$global_button_hover_style .= 'color:'.$button_text_hover_color.';';
                
$is_css true;
            }

            if(
$is_css)
            {
                
$output .= '<style>
                    #ultib3-'
.esc_attr($id).' {
                        min-height:'
.esc_attr($banner_size).'px;
                    }
                    #ultib3-'
.esc_attr($id).' img.ultb3-img {
                        height: '
.esc_attr($banner_img_height).'px;
                    }
                    #ultib3-'
.esc_attr($id).' .ultb3-btn {
                        '
.esc_attr($global_button_style).'
                    }
                    #ultib3-'
.$id.' .ultb3-btn:hover {
                        '
.esc_attr($global_button_hover_style).'
                    }
                </style>'
;
                if(
$banner_img_height_large_screen != '')
                {
                    
$output .= '<style>
                        @media (min-width: 1824px) {
                             #ultib3-'
.esc_attr($id).' img.ultb3-img {
                                height:'
.esc_attr($banner_img_height_large_screen).'px;
                            }
                        }
                    </style>'
;
                }
                if(
$banner_img_height_tablet != '')
                {
                    
$output .= '<style>
                        @media (max-width: 1199px) {
                             #ultib3-'
.esc_attr($id).' img.ultb3-img {
                                height:'
.esc_attr($banner_img_height_tablet).'px;
                            }
                        }
                    </style>'
;
                }
                if(
$banner_img_height_tablet_portrait != '')
                {
                    
$output .= '<style>
                        @media (max-width: 991px) {
                             #ultib3-'
.esc_attr($id).' img.ultb3-img {
                                height:'
.esc_attr($banner_img_height_tablet_portrait).'px;
                            }
                        }
                    </style>'
;
                }
                if(
$banner_img_height_mobile_landscape != '')
                {
                    
$output .= '<style>
                        @media (max-width: 767px) {
                             #ultib3-'
.esc_attr($id).' img.ultb3-img {
                                height:'
.esc_attr($banner_img_height_mobile_landscape).'px;
                            }
                        }
                    </style>'
;
                }
                if(
$banner_img_height_mobile != '')
                {
                    
$output .= '<style>
                        @media (max-width: 479px) {
                             #ultib3-'
.esc_attr($id).' img.ultb3-img {
                                height:'
.esc_attr($banner_img_height_mobile).'px;
                            }
                        }
                    </style>'
;
                }
            }

            return 
$output;
        }
    }
}
if(
class_exists('Ultimate_Info_Banner'))
{
    
$Ultimate_Info_Banner = new Ultimate_Info_Banner;
}

if ( 
class_exists'WPBakeryShortCode' ) && !class_exists'WPBakeryShortCode_ultimate_info_banner' ) ) {
    class 
WPBakeryShortCode_ultimate_info_banner extends WPBakeryShortCode {
    }
}
x

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