C:\xampp\htdocs\landing\wp-content\plugins\Ultimate_VC_Addons\modules\ultimate_countdown.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
<?php
/*
* Add-on Name: CountDown for WPBakery Page Builder
* Add-on URI: http://dev.brainstormforce.com
*/
if(!class_exists('Ultimate_CountDown'))
{
    class 
Ultimate_CountDown
    
{
        function 
__construct()
        {
            if ( 
Ultimate_VC_Addons::$uavc_editor_enable ) {
                
add_action('init',array($this,'countdown_init'));
            }
            
add_shortcode('ult_countdown',array($this,'countdown_shortcode'));
            
add_action('admin_enqueue_scripts',array($this,'admin_scripts'));
            
add_action('wp_enqueue_scripts',array($this,'count_down_scripts'),1);
        }
        function 
count_down_scripts() {
            
            
Ultimate_VC_Addons::ultimate_register_script'jquery.timecircle''countdown'false, array( 'jquery' ), ULTIMATE_VERSIONfalse );
            
Ultimate_VC_Addons::ultimate_register_script'jquery.countdown''count-timer'false, array( 'jquery' ), ULTIMATE_VERSIONfalse );

            
Ultimate_VC_Addons::ultimate_register_style'ult-countdown''countdown' );
        }
        function 
admin_scripts($hook) {
           if(
$hook == "post.php" || $hook == "post-new.php"){
                   
$bsf_dev_mode bsf_get_option('dev_mode');
                if(
$bsf_dev_mode === 'enable') {
                    
                    
Ultimate_VC_Addons::ultimate_register_style'ult-colorpicker-style'UAVC_URL.'admin/css/bootstrap-datetimepicker-admin.css'true );

                    
wp_enqueue_style('ult-colorpicker-style');
                }
           }
           }
        function 
countdown_init()
        {
            if(
function_exists('vc_map'))
            {
                
vc_map(
                    array(
                       
"name" => __("Countdown","ultimate_vc"),
                       
"base" => "ult_countdown",
                       
"class" => "vc_countdown",
                       
"icon" => "vc_countdown",
                       
"category" => "Ultimate VC Addons",
                       
"description" => __("Countdown Timer.","ultimate_vc"),
                       
"params" => array(
                               array(
                                   
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Countdown Timer Style""ultimate_vc"),
                                
"param_name" => "count_style",
                                
"value" => array(
                                        
__("Digit and Unit Side by Side","smile") => "ult-cd-s1",
                                        
__("Digit and Unit Up and Down","smile") => "ult-cd-s2",
                                    ),
                                
"group" => "General Settings",
                                
//"description" => __("Select style for countdown timer.", "smile"),
                            
),
                            array(
                                   
"type" => "datetimepicker",
                                
"class" => "",
                                
"heading" => __("Target Time For Countdown""ultimate_vc"),
                                
"param_name" => "datetime",
                                
"value" => "",
                                
"description" => __("Date and time format (yyyy/mm/dd hh:mm:ss).""ultimate_vc"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Countdown Timer Depends on""ultimate_vc"),
                                
"param_name" => "ult_tz",
                                
"value" => array(
                                        
__("WordPress Defined Timezone","ultimate_vc") => "ult-wptz",
                                        
__("User's System Timezone","ultimate_vc") => "ult-usrtz",
                                    ),
                                
//"description" => __("Select style for countdown timer.", "smile"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "checkbox",
                                
"class" => "",
                                
"heading" => __("Select Time Units To Display In Countdown Timer""ultimate_vc"),
                                
"param_name" => "countdown_opts",
                                
"value" => array(
                                        
__("Years","ultimate_vc") => "syear",
                                        
__("Months","ultimate_vc") => "smonth",
                                        
__("Weeks","ultimate_vc") => "sweek",
                                        
__("Days","ultimate_vc") => "sday",
                                        
__("Hours","ultimate_vc") => "shr",
                                        
__("Minutes","ultimate_vc") => "smin",
                                        
__("Seconds","ultimate_vc") => "ssec",
                                    ),
                                
//"description" => __("Select options for the video.", "smile"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "dropdown",
                                
"class" => "",
                                
"heading" => __("Timer Digit Border Style""ultimate_vc"),
                                
"param_name" => "br_style",
                                
"value" => array(
                                            
"None"=>'',
                                            
"Solid"=>"solid",
                                            
"Dashed"=>"dashed",
                                            
"Dotted"=>"dotted",
                                            
"Double"=>"double",
                                            
"Inset"=>"inset",
                                            
"Outset"=>"outset",
                                            ),
                                
//"description" => __("Border-style.", "smile"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Timer Digit Border Size""ultimate_vc"),
                                
"param_name" => "br_size",
                                
"value" => "",
                                
"min"=>"0",
                                
"suffix"=>"px",
                                
//"description" => __("Border-size.", "smile"),
                                
"dependency" => Array("element"=>"br_style","value"=>array("solid","dotted","dashed","double","inset","outset",)),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Timer Digit Border Color""ultimate_vc"),
                                
"param_name" => "br_color",
                                
"value" => "",
                                
//"description" => __("Text color for time ticks Period.", "smile"),
                                
"dependency" => Array("element"=>"br_style","value"=>array("solid","dotted","dashed","double","inset","outset",)),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Timer Digit Border Radius""ultimate_vc"),
                                
"param_name" => "br_radius",
                                
"value" => "",
                                
"min"=>"0",
                                
"suffix"=>"px",
                                
//"description" => __("Border-Time Radius.", "smile"),
                                
"dependency" => Array("element"=>"br_style","value"=>array("solid","dotted","dashed","double","inset","outset",)),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Timer Digit Background Color""ultimate_vc"),
                                
"param_name" => "timer_bg_color",
                                
"value" => "",
                                
//"description" => __("Background-Color.", "smile"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "number",
                                
"class" => "",
                                
"heading" => __("Timer Digit Background Size""ultimate_vc"),
                                
"param_name" => "br_time_space",
                                
"min"=>"0",
                                
"value" => "0",
                                
"suffix"=>"px",
                                
//"description" => __("Border-Timer Space.", "smile"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Extra Class""ultimate_vc"),
                                
"param_name" => "el_class",
                                
"value" => "",
                                
"description" => __("Extra Class for the Wrapper.""ultimate_vc"),
                                
"group" => "General Settings",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Day (Singular)""ultimate_vc"),
                                
"param_name" => "string_days",
                                
"value" => "Day",
                                
//"description" => __("Enter your string for day.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Days (Plural)""ultimate_vc"),
                                
"param_name" => "string_days2",
                                
"value" => "Days",
                                
//"description" => __("Enter your string for days.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Week (Singular)""ultimate_vc"),
                                
"param_name" => "string_weeks",
                                
"value" => "Week",
                                
//"description" => __("Enter your string for Week.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Weeks (Plural)""ultimate_vc"),
                                
"param_name" => "string_weeks2",
                                
"value" => "Weeks",
                                
//"description" => __("Enter your string for Weeks.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Month (Singular)""ultimate_vc"),
                                
"param_name" => "string_months",
                                
"value" => "Month",
                                
//"description" => __("Enter your string for Month.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Months (Plural)""ultimate_vc"),
                                
"param_name" => "string_months2",
                                
"value" => "Months",
                                
//"description" => __("Enter your string for Months.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Year (Singular)""ultimate_vc"),
                                
"param_name" => "string_years",
                                
"value" => "Year",
                                
//"description" => __("Enter your string for Year.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Years (Plural)""ultimate_vc"),
                                
"param_name" => "string_years2",
                                
"value" => "Years",
                                
//"description" => __("Enter your string for Years.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Hour (Singular)""ultimate_vc"),
                                
"param_name" => "string_hours",
                                
"value" => "Hour",
                                
//"description" => __("Enter your string for Hour.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Hours (Plural)""ultimate_vc"),
                                
"param_name" => "string_hours2",
                                
"value" => "Hours",
                                
//"description" => __("Enter your string for Hours.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Minute (Singular)""ultimate_vc"),
                                
"param_name" => "string_minutes",
                                
"value" => "Minute",
                                
//"description" => __("Enter your string for Minute.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Minutes (Plural)""ultimate_vc"),
                                
"param_name" => "string_minutes2",
                                
"value" => "Minutes",
                                
//"description" => __("Enter your string for Minutes.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Second (Singular)""ultimate_vc"),
                                
"param_name" => "string_seconds",
                                
"value" => "Second",
                                
//"description" => __("Enter your string for Second.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                   
"type" => "textfield",
                                
"class" => "",
                                
"heading" => __("Seconds (Plural)""ultimate_vc"),
                                
"param_name" => "string_seconds2",
                                
"value" => "Seconds",
                                
//"description" => __("Enter your string for Seconds.", "smile"),
                                
"group" => "Strings Translation",
                            ),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => "<span style='display: block;'><a href='http://bsf.io/szdd2' 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',
                                
"group" => "General Settings",
                            ),
                            array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Timer Digit Settings","ultimate_vc"),
                                
"param_name" => "countdown_typograpy",
                                
"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" => "timer_digit_font_family",
                                
"description" => __("Select the font of your choice.","ultimate_vc")." ".__("You can","ultimate_vc")." <a target='_blank' rel='noopener' href='".admin_url('admin.php?page=bsf-google-font-manager')."'>".__("add new in the collection here","ultimate_vc")."</a>.",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading"         =>    __("Font Style""ultimate_vc"),
                                
"param_name"    =>    "tick_style",
                                
"group" => "Typography"
                            
),
                            array(
                                   
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Timer Digit Text Color""ultimate_vc"),
                                
"param_name" => "tick_col",
                                
"value" => "",
                                
"group" => "Typography",
                            ),
                            array(
                                    
"type" => "ultimate_responsive",
                                    
"class" => "",
                                    
"heading" => __("Timer Digit Text Size"'ultimate_vc'),
                                    
"param_name" => "tick_size",
                                    
"unit"  => "px",
                                    
"media" => array(
                                        
"Desktop"           => '',
                                        
"Tablet"            => '',
                                        
"Tablet Portrait"   => '',
                                        
"Mobile Landscape"  => '',
                                        
"Mobile"            => '',
                                    ),
                                    
"group" => "Typography"
                              
),
                              array(
                                    
"type" => "ultimate_responsive",
                                    
"class" => "",
                                    
"heading" => __("Timer Digit Text Line height"'ultimate_vc'),
                                    
"param_name" => "tick_line_height",
                                    
"unit"  => "px",
                                    
"media" => array(
                                        
"Desktop"           => '',
                                        
"Tablet"            => '',
                                        
"Tablet Portrait"   => '',
                                        
"Mobile Landscape"  => '',
                                        
"Mobile"            => '',
                                    ),
                                    
"group" => "Typography"
                              
),
                              array(
                                
"type" => "ult_param_heading",
                                
"text" => __("Timer Unit Settings","ultimate_vc"),
                                
"param_name" => "countdown_typograpy",
                                
"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" => "timer_unit_font_family",
                                
"description" => __("Select the font of your choice.","ultimate_vc")." ".__("You can","ultimate_vc")." <a target='_blank' rel='noopener' href='".admin_url('admin.php?page=bsf-google-font-manager')."'>".__("add new in the collection here","ultimate_vc")."</a>.",
                                
"group" => "Typography"
                            
),
                            array(
                                
"type" => "ultimate_google_fonts_style",
                                
"heading"         =>    __("Font Style""ultimate_vc"),
                                
"param_name"    =>    "tick_unit_style",
                                
"group" => "Typography"
                            
),
                            array(
                                   
"type" => "colorpicker",
                                
"class" => "",
                                
"heading" => __("Timer Unit Text Color""ultimate_vc"),
                                
"param_name" => "tick_sep_col",
                                
"value" => "",
                                
//"description" => __("Text color for time ticks Period.", "smile"),
                                
"group" => "Typography",
                            ),
                            array(
                                    
"type" => "ultimate_responsive",
                                    
"class" => "",
                                    
"heading" => __("Timer Unit Text Size"'ultimate_vc'),
                                    
"param_name" => "tick_sep_size",
                                    
"unit"  => "px",
                                    
"media" => array(
                                        
"Desktop"           => '',
                                        
"Tablet"            => '',
                                        
"Tablet Portrait"   => '',
                                        
"Mobile Landscape"  => '',
                                        
"Mobile"            => '',
                                    ),
                                    
"group" => "Typography"
                              
),
                              array(
                                    
"type" => "ultimate_responsive",
                                    
"class" => "",
                                    
"heading" => __("Timer Unit Line Height"'ultimate_vc'),
                                    
"param_name" => "tick_sep_line_height",
                                    
"unit"  => "px",
                                    
"media" => array(
                                        
"Desktop"           => '',
                                        
"Tablet"            => '',
                                        
"Tablet Portrait"   => '',
                                        
"Mobile Landscape"  => '',
                                        
"Mobile"            => '',
                                    ),
                                    
"group" => "Typography"
                              
),
                              array(
                                
'type' => 'css_editor',
                                
'heading' => __'Css''ultimate_vc' ),
                                
'param_name' => 'css_countdown',
                                
'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  icon block
        
function countdown_shortcode($atts)
        {
            
$count_style $datetime $ult_tz $countdown_opts $tick_col $tick_size $tick_line_height $tick_style $tick_sep_col $tick_sep_size $tick_sep_line_height '';
            
$tick_sep_style $br_color $br_style $br_size $timer_bg_color $br_radius $br_time_space $el_class '';
            
$string_days $string_weeks $string_months $string_years $string_hours $string_minutes $string_seconds '';
            
$string_days2 $string_weeks2 $string_months2 $string_yers2 $string_hours2 $string_minutes2 $string_seconds2 $timer_digit_font_family $timer_unit_font_family $tick_unit_style '';
            
extract(shortcode_atts( array(
                
'count_style'=>'ult-cd-s1',
                
'datetime'=>'',
                
'ult_tz'=>'ult-wptz',
                
'countdown_opts'=>'',
                
'tick_col'=>'',
                
'tick_size'=>'36',
                
'tick_line_height'=>'',
                
'tick_style'=>'',
                
'tick_unit_style' => '',
                
'timer_digit_font_family' => '',
                
'timer_unit_font_family' => '',
                
'tick_sep_col'=>'',
                
'tick_sep_size'=>'13',
                
'tick_sep_line_height'=> '',
                
'tick_sep_style'=>'',
                
'br_color'=>'',
                
'br_style'=>'',
                
'br_size'=>'',
                
'timer_bg_color'=>'',
                
'br_radius'=>'',
                
'br_time_space'=>'0',
                
'el_class'=>'',
                
'string_days' => 'Day',
                
'string_days2' => 'Days',
                
'string_weeks' => 'Week',
                
'string_weeks2' => 'Weeks',
                
'string_months' => 'Month',
                
'string_months2' => 'Months',
                
'string_years' => 'Year',
                
'string_years2' => 'Years',
                
'string_hours' => 'Hour',
                
'string_hours2' => 'Hours',
                
'string_minutes' => 'Minute',
                
'string_minutes2' => 'Minutes',
                
'string_seconds' => 'Second',
                
'string_seconds2' => 'Seconds',
                
'css_countdown' => '',
            ),
$atts));
            
$count_frmt $labels $countdown_design_style $tdfamily $tunifamily '';
            
$labels $string_years2 .','.$string_months2.','.$string_weeks2.','.$string_days2.','.$string_hours2.','.$string_minutes2.','.$string_seconds2;
            
$labels2 $string_years .','.$string_months.','.$string_weeks.','.$string_days.','.$string_hours.','.$string_minutes.','.$string_seconds;
            
$countdown_opt explode(",",$countdown_opts);
                if(
is_array($countdown_opt)){
                    foreach(
$countdown_opt as $opt){
                        if(
$opt == "syear"$count_frmt .= 'Y';
                        if(
$opt == "smonth"$count_frmt .= 'O';
                        if(
$opt == "sweek"$count_frmt .= 'W';
                        if(
$opt == "sday"$count_frmt .= 'D';
                        if(
$opt == "shr"$count_frmt .= 'H';
                        if(
$opt == "smin"$count_frmt .= 'M';
                        if(
$opt == "ssec"$count_frmt .= 'S';
                    }
                }
            if (
is_numeric($tick_size)) {
                
$tick_size 'desktop:'.$tick_size.'px;';
            }
            
$countdown_design_style apply_filtersVC_SHORTCODE_CUSTOM_CSS_FILTER_TAGvc_shortcode_custom_css_class$css_countdown' ' ), "ult_countdown"$atts );
            
$countdown_design_style esc_attr$countdown_design_style );
            
$countdown_id 'countdown-wrap-'.rand(10009999);
   
//          $ult_countdown_args = array(
   //              'target' => '#'.$countdown_id.' .ult_countdown-amount', // set targeted element e.g. unique class/id etc.
   //              'media_sizes' => array(
   //                  'font-size' => $tick_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
   //              ),
   //          );
            // $data_list = get_ultimate_vc_responsive_media_css($ult_countdown_args);

            
$data_attr '';
            if(
$count_frmt==''$count_frmt 'DHMS';
            if(
$br_size =='' || $br_color == '' || $br_style ==''){
                if(
$timer_bg_color==''){
                    
$el_class.=' ult-cd-no-border';
                }
            }
            else{
                
$data_attr .=  'data-br-color="'.esc_attr$br_color ).'" data-br-style="'.esc_attr($br_style).'" data-br-size="'.esc_attr($br_size).'" ';
            }
            
// Responsive param

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

            
$count_down_id "count-down-wrap-".rand(1000,9999);
              
$count_down_sep_args = array(
                  
'target'        =>    '#'.$count_down_id.' .ult_countdown-period',
                  
'media_sizes'     => array(
                    
'font-size'     => $tick_sep_size,
                    
'line-height'     => $tick_sep_line_height,
                ),
              );
            
$count_down_sep_data_list get_ultimate_vc_responsive_media_css($count_down_sep_args);
            if(
$timer_digit_font_family != '')
            {
                
$tdfamily get_ultimate_font_family($timer_digit_font_family);
                
$timer_d_font_family 'font-family:\''.$tdfamily.'\';';
            }
            if(
$timer_unit_font_family != '')
            {
                
$tunifamily get_ultimate_font_family($timer_unit_font_family);
                    
$data_attr .= ' data-tuni-font-family ="'.esc_attr($tunifamily).'"';
            }
            
$stick_style get_ultimate_font_style($tick_style);
            
$stick_unit_style get_ultimate_font_style($tick_unit_style);
            
$data_attr .= ' data-tick-style="'.esc_attr($stick_style).'" ';
            
$data_attr .= ' data-tick-p-style="'.esc_attr($tick_sep_style).'" ';
            
$data_attr .= ' data-bg-color="'.esc_attr($timer_bg_color).'" data-br-radius="'.esc_attr($br_radius).'" data-padd="'.esc_attr($br_time_space).'" ';

            switch( 
$tick_style ) {
                case 
'bold':
                                
$tick_style_css 'font-weight:bold;';
                    break;
                case 
'italic':
                                
$tick_style_css 'font-style:italic;';
                    break;
                case 
'boldnitalic':
                                
$tick_style_css  'font-weight:bold;';
                                
$tick_style_css .= 'font-style:italic;';
                    break;
                   default:
                                   
$tick_style_css  $tick_style;
                    break;
            }
            switch( 
$tick_sep_style ) {
                case 
'bold':
                                
$tick_sep_style_css ='font-weight:bold;';
                    break;
                case 
'italic':
                                
$tick_sep_style_css='font-style:italic;';
                    break;
                case 
'boldnitalic':
                          
$tick_sep_style_css='font-style:italic;';
                          
$tick_sep_style_css ='font-weight:bold;';
                    break;
                default:
                        
$tick_sep_style_css $tick_sep_style;
                    break;
            }
            
$output  '<style>';
            
$output .=     '#'.$count_down_id.' .ult_countdown-amount { ';
            
$output .=         $stick_style;
            
$output .=         $tick_style_css;
            
$output .=  '  font-family : '.$tdfamily.';';
            
$output .=     '    color: '.$tick_col.';';
            
$output .=     ' } ';
            
$output .=  '#'.$count_down_id.' .ult_countdown-period{';
            
$output .= $stick_unit_style;
            
$output .=     '    color: '.$tick_sep_col.';';        
            
$output .=     '    font-family: '.$tunifamily.';';    
            
$output .= $tick_sep_style_css;
            
$output .= $tick_sep_style;        
            
$output .= '}';

            
$output .= '</style>';
            
$output .= '<div "'.$count_down_sep_data_list.'" class="ult-responsive ult_countdown '.esc_attr($countdown_design_style).' '.esc_attr($el_class).' '.esc_attr($count_style).'">';

            
//Responsive param

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

              
$count_down_args = array(
                  
'target'        =>    '#'.$count_down_id.' .ult_countdown-amount',
                  
'media_sizes'     => array(
                    
'font-size'     => $tick_size,
                    
'line-height'     => $tick_line_height,
                ),
              );
            
$count_down_data_list get_ultimate_vc_responsive_media_css($count_down_args);

            if(
$datetime!=''){
                
$output .='<div id="'.esc_attr($count_down_id).'"  class="ult-responsive ult_countdown-div ult_countdown-dateAndTime '.esc_attr($ult_tz).'" data-labels="'.esc_attr($labels).'" data-labels2="'.esc_attr($labels2).'"  data-terminal-date="'.esc_attr($datetime).'" data-countformat="'.esc_attr($count_frmt).'" data-time-zone="'.esc_attr(get_option('gmt_offset')).'" data-time-now="'.esc_attr(str_replace('-''/'current_time('mysql'))).'"  data-tick-col="'.esc_attr($tick_col).'"  '.$count_down_data_list.' data-tick-p-col="'.esc_attr($tick_sep_col).'" '.$data_attr.'>'.$datetime.'</div>';
            }
            
$output .='</div>';
            
$is_preset false;
            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>'// remove backslash once copied
            
}
            return 
$output;
        }
    }
    
//instantiate the class
    
$ult_countdown = new Ultimate_CountDown;
    if(
class_exists('WPBakeryShortCode') && !class_exists('WPBakeryShortCode_ult_countdown'))
    {
        class 
WPBakeryShortCode_ult_countdown extends WPBakeryShortCode {
        }
    }
}
x

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