Coming Soon, Under Construction & Maintenance Page - Version 1.1.0

Version Description

  • Vegas Background slider updated to the latest version
  • New background animations and options
  • Fixed bug with content slider and social links being disabled
  • Resolved issue with WP Total cache on specific nginx configurations
  • Redirect method restructured
  • Mobile user experience optimization
  • Small enhancements and code optimization
Download this release

Release Info

Developer ArissDJ
Plugin Icon 128x128 Coming Soon, Under Construction & Maintenance Page
Version 1.1.0
Comparing to
See all releases

Code changes from version 1.0.9 to 1.1.0

admin/main-options.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
 
3
  /**
4
- * Nifty Coming Soon and maintenance mode by Davor Veselinovic
5
  *
6
  *
7
- * Initialize the custom options panel based on OptionTree
8
  *
9
  */
10
 
@@ -16,7 +16,7 @@ add_action( 'init', 'nifty_cs_custom_theme_options' );
16
 
17
  function nifty_cs_custom_theme_options() {
18
 
19
- /* OptionTree is not loaded yet, or this is not an admin request */
20
  if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() )
21
  return false;
22
 
@@ -100,10 +100,7 @@ function nifty_cs_custom_theme_options() {
100
  'std' => 'on',
101
  'type' => 'on-off',
102
  'section' => 'general_settings',
103
- 'min_max_step'=> '',
104
- 'class' => '',
105
- 'condition' => '',
106
- 'operator' => 'and'
107
  ),
108
  array(
109
  'id' => 'enable_preloader',
@@ -112,10 +109,7 @@ function nifty_cs_custom_theme_options() {
112
  'std' => 'on',
113
  'type' => 'on-off',
114
  'section' => 'general_settings',
115
- 'min_max_step'=> '',
116
- 'class' => '',
117
- 'condition' => '',
118
- 'operator' => 'and'
119
  ),
120
  array(
121
  'id' => 'enable_sign_up_form',
@@ -124,10 +118,7 @@ function nifty_cs_custom_theme_options() {
124
  'std' => 'on',
125
  'type' => 'on-off',
126
  'section' => 'general_settings',
127
- 'min_max_step'=> '',
128
- 'class' => '',
129
- 'condition' => '',
130
- 'operator' => 'and'
131
  ),
132
  array(
133
  'id' => 'insert_custom_signup_form',
@@ -148,10 +139,7 @@ function nifty_cs_custom_theme_options() {
148
  'std' => 'on',
149
  'type' => 'on-off',
150
  'section' => 'general_settings',
151
- 'min_max_step'=> '',
152
- 'class' => '',
153
- 'condition' => '',
154
- 'operator' => 'and'
155
  ),
156
  array(
157
  'id' => 'enable_social_links',
@@ -160,10 +148,7 @@ function nifty_cs_custom_theme_options() {
160
  'std' => 'on',
161
  'type' => 'on-off',
162
  'section' => 'general_settings',
163
- 'min_max_step'=> '',
164
- 'class' => '',
165
- 'condition' => '',
166
- 'operator' => 'and'
167
  ),
168
  array(
169
  'id' => 'disable_navigation',
@@ -172,10 +157,7 @@ function nifty_cs_custom_theme_options() {
172
  'std' => 'on',
173
  'type' => 'on-off',
174
  'section' => 'general_settings',
175
- 'min_max_step'=> '',
176
- 'class' => '',
177
- 'condition' => '',
178
- 'operator' => 'and'
179
  ),
180
  array(
181
  'id' => 'disable_animation',
@@ -184,10 +166,7 @@ function nifty_cs_custom_theme_options() {
184
  'std' => 'on',
185
  'type' => 'on-off',
186
  'section' => 'general_settings',
187
- 'min_max_step'=> '',
188
- 'class' => '',
189
- 'condition' => '',
190
- 'operator' => 'and'
191
  ),
192
  array(
193
  'id' => 'insert_google_analytics_code',
@@ -196,10 +175,7 @@ function nifty_cs_custom_theme_options() {
196
  'std' => '',
197
  'type' => 'javascript',
198
  'section' => 'general_settings',
199
- 'min_max_step'=> '',
200
- 'class' => '',
201
- 'condition' => '',
202
- 'operator' => 'and'
203
  ),
204
  array(
205
  'id' => 'insert_additional_css',
@@ -208,10 +184,7 @@ function nifty_cs_custom_theme_options() {
208
  'std' => '',
209
  'type' => 'css',
210
  'section' => 'general_settings',
211
- 'min_max_step'=> '',
212
- 'class' => '',
213
- 'condition' => '',
214
- 'operator' => 'and'
215
  ),
216
 
217
  array(
@@ -221,10 +194,7 @@ function nifty_cs_custom_theme_options() {
221
  'std' => '',
222
  'type' => 'textblock-titled',
223
  'section' => 'design_and_layout',
224
- 'min_max_step'=> '',
225
- 'class' => '',
226
- 'condition' => '',
227
- 'operator' => 'and'
228
  ),
229
  array(
230
  'id' => 'disable_logo',
@@ -233,10 +203,7 @@ function nifty_cs_custom_theme_options() {
233
  'std' => 'on',
234
  'type' => 'on-off',
235
  'section' => 'design_and_layout',
236
- 'min_max_step'=> '',
237
- 'class' => '',
238
- 'condition' => '',
239
- 'operator' => 'and'
240
  ),
241
  array(
242
  'id' => 'upload_your_logo',
@@ -271,10 +238,7 @@ function nifty_cs_custom_theme_options() {
271
  'std' => 'Our website is coming very soon',
272
  'type' => 'text',
273
  'section' => 'design_and_layout',
274
- 'min_max_step'=> '',
275
- 'class' => '',
276
- 'condition' => '',
277
- 'operator' => 'and'
278
  ),
279
  array(
280
  'id' => 'enter_second_coming_soon_message',
@@ -283,10 +247,7 @@ function nifty_cs_custom_theme_options() {
283
  'std' => 'Feel free to drop-by any time soon',
284
  'type' => 'text',
285
  'section' => 'design_and_layout',
286
- 'min_max_step'=> '',
287
- 'class' => '',
288
- 'condition' => '',
289
- 'operator' => 'and'
290
  ),
291
  array(
292
  'id' => 'setup_the_count_down_timer',
@@ -295,10 +256,7 @@ function nifty_cs_custom_theme_options() {
295
  'std' => '',
296
  'type' => 'date-time-picker',
297
  'section' => 'design_and_layout',
298
- 'min_max_step'=> '',
299
- 'class' => '',
300
- 'condition' => '',
301
- 'operator' => 'and'
302
  ),
303
  array(
304
  'id' => 'background_color',
@@ -307,10 +265,7 @@ function nifty_cs_custom_theme_options() {
307
  'std' => '',
308
  'type' => 'colorpicker',
309
  'section' => 'design_and_layout',
310
- 'min_max_step'=> '',
311
- 'class' => '',
312
- 'condition' => '',
313
- 'operator' => 'and'
314
  ),
315
  array(
316
  'id' => 'sign_up_button_color',
@@ -319,10 +274,7 @@ function nifty_cs_custom_theme_options() {
319
  'std' => '#9e0039',
320
  'type' => 'colorpicker',
321
  'section' => 'design_and_layout',
322
- 'min_max_step'=> '',
323
- 'class' => '',
324
- 'condition' => '',
325
- 'operator' => 'and'
326
  ),
327
  array(
328
  'id' => 'sign_up_button_color_hover',
@@ -331,10 +283,7 @@ function nifty_cs_custom_theme_options() {
331
  'std' => '#9e0039',
332
  'type' => 'colorpicker',
333
  'section' => 'design_and_layout',
334
- 'min_max_step'=> '',
335
- 'class' => '',
336
- 'condition' => '',
337
- 'operator' => 'and'
338
  ),
339
  array(
340
  'id' => 'disable_background_image_slider',
@@ -343,16 +292,13 @@ function nifty_cs_custom_theme_options() {
343
  'std' => 'on',
344
  'type' => 'on-off',
345
  'section' => 'design_and_layout',
346
- 'min_max_step'=> '',
347
- 'class' => '',
348
- 'condition' => '',
349
- 'operator' => 'and'
350
  ),
351
  array(
352
  'id' => 'background_slider_time',
353
  'label' => 'Enter background slider rotation time',
354
  'desc' => 'Here you can enter desired time per slide. For example, 6000 equals to 6 seconds.',
355
- 'std' => '6000',
356
  'type' => 'text',
357
  'section' => 'design_and_layout',
358
  'min_max_step'=> '',
@@ -396,6 +342,137 @@ function nifty_cs_custom_theme_options() {
396
  'class' => '',
397
  'condition' => 'disable_background_image_slider:not(off)',
398
  'operator' => 'and'
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
399
  ),
400
  array(
401
  'id' => 'select_pattern_overlay',
@@ -511,10 +588,7 @@ function nifty_cs_custom_theme_options() {
511
  'type' => 'select',
512
  'section' => 'design_and_layout',
513
  'choices' => $google_webfonts_array,
514
- 'min_max_step'=> '',
515
- 'class' => '',
516
- 'condition' => '',
517
- 'operator' => 'and'
518
  ),
519
  array(
520
  'id' => 'choose_heading_font',
@@ -524,10 +598,7 @@ function nifty_cs_custom_theme_options() {
524
  'type' => 'select',
525
  'section' => 'design_and_layout',
526
  'choices' => $google_webfonts_array,
527
- 'min_max_step'=> '',
528
- 'class' => '',
529
- 'condition' => '',
530
- 'operator' => 'and'
531
  ),
532
  array(
533
  'id' => 'choose_counter_font',
@@ -537,10 +608,7 @@ function nifty_cs_custom_theme_options() {
537
  'type' => 'select',
538
  'section' => 'design_and_layout',
539
  'choices' => $google_webfonts_array,
540
- 'min_max_step'=> '',
541
- 'class' => '',
542
- 'condition' => '',
543
- 'operator' => 'and'
544
  ),
545
  array(
546
  'id' => 'choose_paragraph_font',
@@ -550,10 +618,7 @@ function nifty_cs_custom_theme_options() {
550
  'type' => 'select',
551
  'section' => 'design_and_layout',
552
  'choices' => $google_webfonts_array,
553
- 'min_max_step'=> '',
554
- 'class' => '',
555
- 'condition' => '',
556
- 'operator' => 'and'
557
  ),
558
  array(
559
  'id' => 'enter_you_website_or_company_name',
@@ -562,10 +627,7 @@ function nifty_cs_custom_theme_options() {
562
  'std' => 'ACME COMPANY',
563
  'type' => 'text',
564
  'section' => 'design_and_layout',
565
- 'min_max_step'=> '',
566
- 'class' => '',
567
- 'condition' => '',
568
- 'operator' => 'and'
569
  ),
570
  array(
571
  'id' => 'enter_your_address',
@@ -574,10 +636,7 @@ function nifty_cs_custom_theme_options() {
574
  'std' => '230 New Found lane, 8900 New City',
575
  'type' => 'text',
576
  'section' => 'design_and_layout',
577
- 'min_max_step'=> '',
578
- 'class' => '',
579
- 'condition' => '',
580
- 'operator' => 'and'
581
  ),
582
  array(
583
  'id' => 'enter_your_phone_number',
@@ -586,10 +645,7 @@ function nifty_cs_custom_theme_options() {
586
  'std' => '+555 53211 777',
587
  'type' => 'text',
588
  'section' => 'design_and_layout',
589
- 'min_max_step'=> '',
590
- 'class' => '',
591
- 'condition' => '',
592
- 'operator' => 'and'
593
  ),
594
  array(
595
  'id' => 'enter_your_email_address',
@@ -598,10 +654,7 @@ function nifty_cs_custom_theme_options() {
598
  'std' => 'someone@example.com',
599
  'type' => 'text',
600
  'section' => 'design_and_layout',
601
- 'min_max_step'=> '',
602
- 'class' => '',
603
- 'condition' => '',
604
- 'operator' => 'and'
605
  ),
606
  array(
607
  'id' => 'translation_settings',
@@ -610,10 +663,7 @@ function nifty_cs_custom_theme_options() {
610
  'std' => '',
611
  'type' => 'textblock-titled',
612
  'section' => 'translation',
613
- 'min_max_step'=> '',
614
- 'class' => '',
615
- 'condition' => '',
616
- 'operator' => 'and'
617
  ),
618
  array(
619
  'id' => 'sign_up_form_intro_text',
@@ -622,10 +672,7 @@ function nifty_cs_custom_theme_options() {
622
  'std' => 'Sign up to find out when we launch',
623
  'type' => 'text',
624
  'section' => 'translation',
625
- 'min_max_step'=> '',
626
- 'class' => '',
627
- 'condition' => '',
628
- 'operator' => 'and'
629
  ),
630
  array(
631
  'id' => 'sign_up_button_text',
@@ -634,10 +681,7 @@ function nifty_cs_custom_theme_options() {
634
  'std' => 'Sign Up',
635
  'type' => 'text',
636
  'section' => 'translation',
637
- 'min_max_step'=> '',
638
- 'class' => '',
639
- 'condition' => '',
640
- 'operator' => 'and'
641
  ),
642
  array(
643
  'id' => 'social_links_intro_text',
@@ -646,10 +690,7 @@ function nifty_cs_custom_theme_options() {
646
  'std' => 'Are you social? We are, find us below ;)',
647
  'type' => 'text',
648
  'section' => 'translation',
649
- 'min_max_step'=> '',
650
- 'class' => '',
651
- 'condition' => '',
652
- 'operator' => 'and'
653
  ),
654
  array(
655
  'id' => 'enter_email_text',
@@ -658,10 +699,7 @@ function nifty_cs_custom_theme_options() {
658
  'std' => 'Enter Email...',
659
  'type' => 'text',
660
  'section' => 'translation',
661
- 'min_max_step'=> '',
662
- 'class' => '',
663
- 'condition' => '',
664
- 'operator' => 'and'
665
  ),
666
  array(
667
  'id' => 'email_confirmation___error',
@@ -670,10 +708,7 @@ function nifty_cs_custom_theme_options() {
670
  'std' => 'Please, enter valid email address.',
671
  'type' => 'text',
672
  'section' => 'translation',
673
- 'min_max_step'=> '',
674
- 'class' => '',
675
- 'condition' => '',
676
- 'operator' => 'and'
677
  ),
678
  array(
679
  'id' => 'email_confirmation___success',
@@ -682,10 +717,7 @@ function nifty_cs_custom_theme_options() {
682
  'std' => 'You will be notified, thanks.',
683
  'type' => 'text',
684
  'section' => 'translation',
685
- 'min_max_step'=> '',
686
- 'class' => '',
687
- 'condition' => '',
688
- 'operator' => 'and'
689
  ),
690
  array(
691
  'id' => 'nifty_days_translate',
@@ -694,10 +726,7 @@ function nifty_cs_custom_theme_options() {
694
  'std' => 'days',
695
  'type' => 'text',
696
  'section' => 'translation',
697
- 'min_max_step'=> '',
698
- 'class' => '',
699
- 'condition' => '',
700
- 'operator' => 'and'
701
  ),
702
  array(
703
  'id' => 'nifty_hours_translate',
@@ -706,10 +735,7 @@ function nifty_cs_custom_theme_options() {
706
  'std' => 'hours',
707
  'type' => 'text',
708
  'section' => 'translation',
709
- 'min_max_step'=> '',
710
- 'class' => '',
711
- 'condition' => '',
712
- 'operator' => 'and'
713
  ),
714
  array(
715
  'id' => 'nifty_minutes_translate',
@@ -718,10 +744,7 @@ function nifty_cs_custom_theme_options() {
718
  'std' => 'minutes',
719
  'type' => 'text',
720
  'section' => 'translation',
721
- 'min_max_step'=> '',
722
- 'class' => '',
723
- 'condition' => '',
724
- 'operator' => 'and'
725
  ),
726
  array(
727
  'id' => 'nifty_seconds_translate',
@@ -730,10 +753,7 @@ function nifty_cs_custom_theme_options() {
730
  'std' => 'seconds',
731
  'type' => 'text',
732
  'section' => 'translation',
733
- 'min_max_step'=> '',
734
- 'class' => '',
735
- 'condition' => '',
736
- 'operator' => 'and'
737
  ),
738
  array(
739
  'id' => 'social_settings',
@@ -742,10 +762,7 @@ function nifty_cs_custom_theme_options() {
742
  'std' => '',
743
  'type' => 'textblock-titled',
744
  'section' => 'social_links',
745
- 'min_max_step'=> '',
746
- 'class' => '',
747
- 'condition' => '',
748
- 'operator' => 'and'
749
  ),
750
  array(
751
  'id' => 'facebook_page_or_profile_url',
@@ -754,10 +771,7 @@ function nifty_cs_custom_theme_options() {
754
  'std' => '#',
755
  'type' => 'text',
756
  'section' => 'social_links',
757
- 'min_max_step'=> '',
758
- 'class' => '',
759
- 'condition' => '',
760
- 'operator' => 'and'
761
  ),
762
  array(
763
  'id' => 'twitter_url',
@@ -766,10 +780,7 @@ function nifty_cs_custom_theme_options() {
766
  'std' => '#',
767
  'type' => 'text',
768
  'section' => 'social_links',
769
- 'min_max_step'=> '',
770
- 'class' => '',
771
- 'condition' => '',
772
- 'operator' => 'and'
773
  ),
774
  array(
775
  'id' => 'linkedin_profile_url',
@@ -778,10 +789,7 @@ function nifty_cs_custom_theme_options() {
778
  'std' => '#',
779
  'type' => 'text',
780
  'section' => 'social_links',
781
- 'min_max_step'=> '',
782
- 'class' => '',
783
- 'condition' => '',
784
- 'operator' => 'and'
785
  ),
786
  array(
787
  'id' => 'pinterest_url',
@@ -790,10 +798,7 @@ function nifty_cs_custom_theme_options() {
790
  'std' => '#',
791
  'type' => 'text',
792
  'section' => 'social_links',
793
- 'min_max_step'=> '',
794
- 'class' => '',
795
- 'condition' => '',
796
- 'operator' => 'and'
797
  ),
798
  array(
799
  'id' => 'instagram_url',
@@ -802,10 +807,7 @@ function nifty_cs_custom_theme_options() {
802
  'std' => '#',
803
  'type' => 'text',
804
  'section' => 'social_links',
805
- 'min_max_step'=> '',
806
- 'class' => '',
807
- 'condition' => '',
808
- 'operator' => 'and'
809
  ),
810
  array(
811
  'id' => 'google___profile_or_page_url',
@@ -814,10 +816,7 @@ function nifty_cs_custom_theme_options() {
814
  'std' => '#',
815
  'type' => 'text',
816
  'section' => 'social_links',
817
- 'min_max_step'=> '',
818
- 'class' => '',
819
- 'condition' => '',
820
- 'operator' => 'and'
821
  ),
822
  array(
823
  'id' => 'documentation_and_faq',
@@ -838,10 +837,7 @@ function nifty_cs_custom_theme_options() {
838
  'std' => '',
839
  'type' => 'textblock',
840
  'section' => 'documentation',
841
- 'min_max_step'=> '',
842
- 'class' => '',
843
- 'condition' => '',
844
- 'operator' => 'and'
845
  )
846
  )
847
  );
1
  <?php
2
 
3
  /**
4
+ * Nifty Coming Soon, Maintenance & Under Construction Plugin by Davor Veselinovic
5
  *
6
  *
7
+ * Initialize the Nifty ptions panel based on OptionTree
8
  *
9
  */
10
 
16
 
17
  function nifty_cs_custom_theme_options() {
18
 
19
+ /* OptionTree is not loaded yet7, or this is not an admin request */
20
  if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() )
21
  return false;
22
 
100
  'std' => 'on',
101
  'type' => 'on-off',
102
  'section' => 'general_settings',
103
+
 
 
 
104
  ),
105
  array(
106
  'id' => 'enable_preloader',
109
  'std' => 'on',
110
  'type' => 'on-off',
111
  'section' => 'general_settings',
112
+
 
 
 
113
  ),
114
  array(
115
  'id' => 'enable_sign_up_form',
118
  'std' => 'on',
119
  'type' => 'on-off',
120
  'section' => 'general_settings',
121
+
 
 
 
122
  ),
123
  array(
124
  'id' => 'insert_custom_signup_form',
139
  'std' => 'on',
140
  'type' => 'on-off',
141
  'section' => 'general_settings',
142
+
 
 
 
143
  ),
144
  array(
145
  'id' => 'enable_social_links',
148
  'std' => 'on',
149
  'type' => 'on-off',
150
  'section' => 'general_settings',
151
+
 
 
 
152
  ),
153
  array(
154
  'id' => 'disable_navigation',
157
  'std' => 'on',
158
  'type' => 'on-off',
159
  'section' => 'general_settings',
160
+
 
 
 
161
  ),
162
  array(
163
  'id' => 'disable_animation',
166
  'std' => 'on',
167
  'type' => 'on-off',
168
  'section' => 'general_settings',
169
+
 
 
 
170
  ),
171
  array(
172
  'id' => 'insert_google_analytics_code',
175
  'std' => '',
176
  'type' => 'javascript',
177
  'section' => 'general_settings',
178
+
 
 
 
179
  ),
180
  array(
181
  'id' => 'insert_additional_css',
184
  'std' => '',
185
  'type' => 'css',
186
  'section' => 'general_settings',
187
+
 
 
 
188
  ),
189
 
190
  array(
194
  'std' => '',
195
  'type' => 'textblock-titled',
196
  'section' => 'design_and_layout',
197
+
 
 
 
198
  ),
199
  array(
200
  'id' => 'disable_logo',
203
  'std' => 'on',
204
  'type' => 'on-off',
205
  'section' => 'design_and_layout',
206
+
 
 
 
207
  ),
208
  array(
209
  'id' => 'upload_your_logo',
238
  'std' => 'Our website is coming very soon',
239
  'type' => 'text',
240
  'section' => 'design_and_layout',
241
+
 
 
 
242
  ),
243
  array(
244
  'id' => 'enter_second_coming_soon_message',
247
  'std' => 'Feel free to drop-by any time soon',
248
  'type' => 'text',
249
  'section' => 'design_and_layout',
250
+
 
 
 
251
  ),
252
  array(
253
  'id' => 'setup_the_count_down_timer',
256
  'std' => '',
257
  'type' => 'date-time-picker',
258
  'section' => 'design_and_layout',
259
+
 
 
 
260
  ),
261
  array(
262
  'id' => 'background_color',
265
  'std' => '',
266
  'type' => 'colorpicker',
267
  'section' => 'design_and_layout',
268
+
 
 
 
269
  ),
270
  array(
271
  'id' => 'sign_up_button_color',
274
  'std' => '#9e0039',
275
  'type' => 'colorpicker',
276
  'section' => 'design_and_layout',
277
+
 
 
 
278
  ),
279
  array(
280
  'id' => 'sign_up_button_color_hover',
283
  'std' => '#9e0039',
284
  'type' => 'colorpicker',
285
  'section' => 'design_and_layout',
286
+
 
 
 
287
  ),
288
  array(
289
  'id' => 'disable_background_image_slider',
292
  'std' => 'on',
293
  'type' => 'on-off',
294
  'section' => 'design_and_layout',
295
+
 
 
 
296
  ),
297
  array(
298
  'id' => 'background_slider_time',
299
  'label' => 'Enter background slider rotation time',
300
  'desc' => 'Here you can enter desired time per slide. For example, 6000 equals to 6 seconds.',
301
+ 'std' => '10000',
302
  'type' => 'text',
303
  'section' => 'design_and_layout',
304
  'min_max_step'=> '',
342
  'class' => '',
343
  'condition' => 'disable_background_image_slider:not(off)',
344
  'operator' => 'and'
345
+ ),
346
+ array(
347
+ 'id' => 'background_slider_animation',
348
+ 'label' => 'Choose animation for the background slider',
349
+ 'desc' => 'Here you can select the desired animation between background slides, you can use the Random option and use all.',
350
+ 'std' => 'random',
351
+ 'type' => 'select',
352
+ 'choices' => array(
353
+ array(
354
+ 'value' => 'random',
355
+ 'label' => 'Random',
356
+ ),
357
+ array(
358
+ 'value' => 'fade',
359
+ 'label' => 'Fade',
360
+ ),
361
+ array(
362
+ 'value' => 'fade2',
363
+ 'label' => 'Fade 2',
364
+ ),
365
+ array(
366
+ 'value' => 'slideLeft',
367
+ 'label' => 'Slide Left',
368
+ ),
369
+ array(
370
+ 'value' => 'slideLeft2',
371
+ 'label' => 'Slide Left 2',
372
+ ),
373
+ array(
374
+ 'value' => 'slideRight',
375
+ 'label' => 'Slide Right',
376
+ ),
377
+ array(
378
+ 'value' => 'slideRight2',
379
+ 'label' => 'Slide Right 2',
380
+ ),
381
+ array(
382
+ 'value' => 'slideUp',
383
+ 'label' => 'Slide Up',
384
+ ),
385
+ array(
386
+ 'value' => 'slideUp2',
387
+ 'label' => 'Slide Up 2',
388
+ ),
389
+ array(
390
+ 'value' => 'slideDown',
391
+ 'label' => 'Slide Down',
392
+ ),
393
+ array(
394
+ 'value' => 'slideDown2',
395
+ 'label' => 'Slide Down 2',
396
+ ),
397
+ array(
398
+ 'value' => 'zoomIn',
399
+ 'label' => 'Zoom In',
400
+ ),
401
+ array(
402
+ 'value' => 'zoomIn2',
403
+ 'label' => 'Zoom In 2',
404
+ ),
405
+ array(
406
+ 'value' => 'zoomOut',
407
+ 'label' => 'Zoom Out',
408
+ ),
409
+ array(
410
+ 'value' => 'zoomOut2',
411
+ 'label' => 'Zoom Out 2',
412
+ ),
413
+ array(
414
+ 'value' => 'swirlLeft',
415
+ 'label' => 'Swirl Left',
416
+ ),
417
+ array(
418
+ 'value' => 'swirlLeft2',
419
+ 'label' => 'Swirl Left 2',
420
+ ),
421
+ array(
422
+ 'value' => 'swirlRight',
423
+ 'label' => 'Swirl Right',
424
+ ),
425
+ array(
426
+ 'value' => 'swirlRight2',
427
+ 'label' => 'Swirl Right 2',
428
+ ),
429
+ array(
430
+ 'value' => 'swirlUp',
431
+ 'label' => 'Swirl Up',
432
+ ),
433
+ array(
434
+ 'value' => 'swirlUp2',
435
+ 'label' => 'Swirl Up 2',
436
+ ),
437
+ array(
438
+ 'value' => 'swirlDown',
439
+ 'label' => 'Swirl Down',
440
+ ),
441
+ array(
442
+ 'value' => 'swirlDown2',
443
+ 'label' => 'Swirl Down 2',
444
+ ),
445
+ array(
446
+ 'value' => 'burn',
447
+ 'label' => 'Burn',
448
+ ),
449
+ array(
450
+ 'value' => 'burn2',
451
+ 'label' => 'Burn 2',
452
+ ),
453
+ array(
454
+ 'value' => 'blur',
455
+ 'label' => 'Blur',
456
+ ),
457
+ array(
458
+ 'value' => 'blur2',
459
+ 'label' => 'Blur 2',
460
+ ),
461
+ array(
462
+ 'value' => 'flash',
463
+ 'label' => 'Flash',
464
+ ),
465
+ array(
466
+ 'value' => 'flash2',
467
+ 'label' => 'Flash 2',
468
+ ),
469
+
470
+ ),
471
+ 'section' => 'design_and_layout',
472
+ 'min_max_step'=> '',
473
+ 'class' => '',
474
+ 'condition' => 'disable_background_image_slider:not(off)',
475
+ 'operator' => 'and'
476
  ),
477
  array(
478
  'id' => 'select_pattern_overlay',
588
  'type' => 'select',
589
  'section' => 'design_and_layout',
590
  'choices' => $google_webfonts_array,
591
+
 
 
 
592
  ),
593
  array(
594
  'id' => 'choose_heading_font',
598
  'type' => 'select',
599
  'section' => 'design_and_layout',
600
  'choices' => $google_webfonts_array,
601
+
 
 
 
602
  ),
603
  array(
604
  'id' => 'choose_counter_font',
608
  'type' => 'select',
609
  'section' => 'design_and_layout',
610
  'choices' => $google_webfonts_array,
611
+
 
 
 
612
  ),
613
  array(
614
  'id' => 'choose_paragraph_font',
618
  'type' => 'select',
619
  'section' => 'design_and_layout',
620
  'choices' => $google_webfonts_array,
621
+
 
 
 
622
  ),
623
  array(
624
  'id' => 'enter_you_website_or_company_name',
627
  'std' => 'ACME COMPANY',
628
  'type' => 'text',
629
  'section' => 'design_and_layout',
630
+
 
 
 
631
  ),
632
  array(
633
  'id' => 'enter_your_address',
636
  'std' => '230 New Found lane, 8900 New City',
637
  'type' => 'text',
638
  'section' => 'design_and_layout',
639
+
 
 
 
640
  ),
641
  array(
642
  'id' => 'enter_your_phone_number',
645
  'std' => '+555 53211 777',
646
  'type' => 'text',
647
  'section' => 'design_and_layout',
648
+
 
 
 
649
  ),
650
  array(
651
  'id' => 'enter_your_email_address',
654
  'std' => 'someone@example.com',
655
  'type' => 'text',
656
  'section' => 'design_and_layout',
657
+
 
 
 
658
  ),
659
  array(
660
  'id' => 'translation_settings',
663
  'std' => '',
664
  'type' => 'textblock-titled',
665
  'section' => 'translation',
666
+
 
 
 
667
  ),
668
  array(
669
  'id' => 'sign_up_form_intro_text',
672
  'std' => 'Sign up to find out when we launch',
673
  'type' => 'text',
674
  'section' => 'translation',
675
+
 
 
 
676
  ),
677
  array(
678
  'id' => 'sign_up_button_text',
681
  'std' => 'Sign Up',
682
  'type' => 'text',
683
  'section' => 'translation',
684
+
 
 
 
685
  ),
686
  array(
687
  'id' => 'social_links_intro_text',
690
  'std' => 'Are you social? We are, find us below ;)',
691
  'type' => 'text',
692
  'section' => 'translation',
693
+
 
 
 
694
  ),
695
  array(
696
  'id' => 'enter_email_text',
699
  'std' => 'Enter Email...',
700
  'type' => 'text',
701
  'section' => 'translation',
702
+
 
 
 
703
  ),
704
  array(
705
  'id' => 'email_confirmation___error',
708
  'std' => 'Please, enter valid email address.',
709
  'type' => 'text',
710
  'section' => 'translation',
711
+
 
 
 
712
  ),
713
  array(
714
  'id' => 'email_confirmation___success',
717
  'std' => 'You will be notified, thanks.',
718
  'type' => 'text',
719
  'section' => 'translation',
720
+
 
 
 
721
  ),
722
  array(
723
  'id' => 'nifty_days_translate',
726
  'std' => 'days',
727
  'type' => 'text',
728
  'section' => 'translation',
729
+
 
 
 
730
  ),
731
  array(
732
  'id' => 'nifty_hours_translate',
735
  'std' => 'hours',
736
  'type' => 'text',
737
  'section' => 'translation',
738
+
 
 
 
739
  ),
740
  array(
741
  'id' => 'nifty_minutes_translate',
744
  'std' => 'minutes',
745
  'type' => 'text',
746
  'section' => 'translation',
747
+
 
 
 
748
  ),
749
  array(
750
  'id' => 'nifty_seconds_translate',
753
  'std' => 'seconds',
754
  'type' => 'text',
755
  'section' => 'translation',
756
+
 
 
 
757
  ),
758
  array(
759
  'id' => 'social_settings',
762
  'std' => '',
763
  'type' => 'textblock-titled',
764
  'section' => 'social_links',
765
+
 
 
 
766
  ),
767
  array(
768
  'id' => 'facebook_page_or_profile_url',
771
  'std' => '#',
772
  'type' => 'text',
773
  'section' => 'social_links',
774
+
 
 
 
775
  ),
776
  array(
777
  'id' => 'twitter_url',
780
  'std' => '#',
781
  'type' => 'text',
782
  'section' => 'social_links',
783
+
 
 
 
784
  ),
785
  array(
786
  'id' => 'linkedin_profile_url',
789
  'std' => '#',
790
  'type' => 'text',
791
  'section' => 'social_links',
792
+
 
 
 
793
  ),
794
  array(
795
  'id' => 'pinterest_url',
798
  'std' => '#',
799
  'type' => 'text',
800
  'section' => 'social_links',
801
+
 
 
 
802
  ),
803
  array(
804
  'id' => 'instagram_url',
807
  'std' => '#',
808
  'type' => 'text',
809
  'section' => 'social_links',
810
+
 
 
 
811
  ),
812
  array(
813
  'id' => 'google___profile_or_page_url',
816
  'std' => '#',
817
  'type' => 'text',
818
  'section' => 'social_links',
819
+
 
 
 
820
  ),
821
  array(
822
  'id' => 'documentation_and_faq',
837
  'std' => '',
838
  'type' => 'textblock',
839
  'section' => 'documentation',
840
+
 
 
 
841
  )
842
  )
843
  );
admin/ot-loader.php CHANGED
@@ -181,7 +181,7 @@ if ( ! class_exists( 'OT_Loader' ) ) {
181
  /**
182
  * Current Version number.
183
  */
184
- define( 'OT_VERSION', '1.0.9' );
185
 
186
  /**
187
  * For developers: Theme mode.
181
  /**
182
  * Current Version number.
183
  */
184
+ define( 'OT_VERSION', '1.1.0' );
185
 
186
  /**
187
  * For developers: Theme mode.
nifty-coming-soon.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nifty Coming Soon and Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Nice and easy to setup coming soon and under construction / maintenance page that features Responsive design, Countdown timer, Animated text, Google fonts and Background Slider, Subscription form and more.
6
- Version: 1.0.9
7
  Author: Davor Veselinovic
8
  Author URI: https://themeadviser.com/
9
  License: GPL2
3
  Plugin Name: Nifty Coming Soon and Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Nice and easy to setup coming soon and under construction / maintenance page that features Responsive design, Countdown timer, Animated text, Google fonts and Background Slider, Subscription form and more.
6
+ Version: 1.1.0
7
  Author: Davor Veselinovic
8
  Author URI: https://themeadviser.com/
9
  License: GPL2
readme.txt CHANGED
@@ -25,18 +25,19 @@ You can activate or deactivate any section of the page, select Google Fonts and
25
  * Countdown timer
26
  * Animated coming soon text messages
27
  * Background slider with pattern overlay and opacity
 
28
  * Solid color background mode
29
- * Translation options included
30
  * Preloader
31
  * Live Preview (you can preview your Coming soon page without the need to log out or use another browser)
32
  * 300+ Google fonts
33
  * Font icons included
34
  * Built it Subscription form
35
  * Option to add MailChimp or any other Sign-up form
36
- * Option to turn on/off any section
37
  * Coming soon admin bar notification
 
38
 
39
- Nifty Coming soon plugin will help you to quickly launch Maintenance mode for the website as its offer the option to activate it and continue to work on your website while all other guests are redirected to Under construction / Coming soon or Maintenance page.
40
 
41
  The plugin should work with any WordPress theme and the installation and setup are really straight forward.
42
 
@@ -52,7 +53,7 @@ Nifty Coming soon / Maintenance and Under Construction official page - [Plugin P
52
 
53
  If you have an idea how to make this plugin even better or you need some specific feature that could also benefit the rest of the plugin users and the community, feel free to reach out.
54
 
55
- Feel free to ask for help and don't forget to rate with 5 stars if you feel like its the real thing. :)
56
 
57
 
58
  == Installation ==
@@ -76,19 +77,28 @@ Here are some of the questions asked in the past.
76
 
77
  1.) I have installed the plugin but I can't see my Coming soon page?
78
 
79
- Once you install the plugin, logged in users will be able to use the website while the visitors and subscribers will be redirected to the Coming soon page instead of your real Homepage.
80
- As for the update of 1.0.9, the plugin offers the way to Live Preview you're Coming soon page so that you don't have to check it out in the other browser or to log out just to see if everything is setup the way you want.
81
 
82
 
83
 
84
  == Screenshots ==
85
- 1. Plugin in action
86
  2. You can setup desired fonts, background slider images, pattern overlay and opacity.
87
  3. General settings preview
88
  4. Design and layout settings preview
89
 
90
  == Changelog ==
91
 
 
 
 
 
 
 
 
 
 
 
92
  = 1.0.9 =
93
  * Fixed small bug with URL of Coming soon notice on the Frontpage Admin bar
94
  * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
25
  * Countdown timer
26
  * Animated coming soon text messages
27
  * Background slider with pattern overlay and opacity
28
+ * 16 Background slider animations to choose from
29
  * Solid color background mode
30
+ * Option to turn on/off any section
31
  * Preloader
32
  * Live Preview (you can preview your Coming soon page without the need to log out or use another browser)
33
  * 300+ Google fonts
34
  * Font icons included
35
  * Built it Subscription form
36
  * Option to add MailChimp or any other Sign-up form
 
37
  * Coming soon admin bar notification
38
+ * Translation options included
39
 
40
+ Nifty Coming soon plugin will help you to quickly launch Maintenance mode for the website as its offer the option to activate it and continue to work on your website while the guests are redirected to Under construction / Coming soon or Maintenance page.
41
 
42
  The plugin should work with any WordPress theme and the installation and setup are really straight forward.
43
 
53
 
54
  If you have an idea how to make this plugin even better or you need some specific feature that could also benefit the rest of the plugin users and the community, feel free to reach out.
55
 
56
+ Feel free to ask for help and don't forget to rate our Coming Soon plugin with 5 stars if you feel like its the real thing. :)
57
 
58
 
59
  == Installation ==
77
 
78
  1.) I have installed the plugin but I can't see my Coming soon page?
79
 
80
+ As from the update of 1.0.9, the plugin offers the way to Live Preview you're Coming soon page so that you don't have to check it out in the other browser or to log out just to see if everything is setup the way you want.
 
81
 
82
 
83
 
84
  == Screenshots ==
85
+ 1. coming Soon Plugin in action
86
  2. You can setup desired fonts, background slider images, pattern overlay and opacity.
87
  3. General settings preview
88
  4. Design and layout settings preview
89
 
90
  == Changelog ==
91
 
92
+ = 1.1.0 =
93
+ * Vegas Background slider updated to the latest version
94
+ * New background animations and options
95
+ * Fixed bug with content slider and social links being disabled
96
+ * Resolved issue with WP Total cache on specific nginx configurations
97
+ * Redirect method restructured
98
+ * Mobile user experience optimization
99
+ * Small enhancements and code optimization
100
+
101
+
102
  = 1.0.9 =
103
  * Fixed small bug with URL of Coming soon notice on the Frontpage Admin bar
104
  * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
template/assets/css/style.css CHANGED
@@ -31,7 +31,7 @@ h1 {
31
  -webkit-text-stroke: 0.20px;
32
  }
33
  .nifty-inform {
34
- font-family: 'Roboto Slab', sans-serif;
35
  font-size:0.8em;
36
  color:#FFFFFF;
37
  margin:30px auto 10px;
@@ -106,25 +106,637 @@ h1 {
106
 
107
 
108
  /* jQuery Vegas CSS */
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
109
 
110
- .vegas-loading {
111
- display:none !important;
 
 
 
 
 
 
112
  }
113
 
114
- .vegas-background {
115
- -ms-interpolation-mode: bicubic;
116
- image-rendering: optimizeQuality;
117
- max-width: none !important; /* counteracts global img modification by twitter bootstrap library */
118
- z-index: -2;
119
  }
120
- .vegas-overlay, .vegas-background {
121
- -webkit-user-select: none;
122
- -khtml-user-select: none;
123
- -moz-user-select: none;
124
- -ms-user-select: none;
125
- user-select: none;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
126
  }
127
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
128
  /* Additional media queries */
129
 
130
  @media screen and (min-width: 0px) and (max-width: 320px) {
31
  -webkit-text-stroke: 0.20px;
32
  }
33
  .nifty-inform {
34
+ font-family: 'Lato', sans-serif;
35
  font-size:0.8em;
36
  color:#FFFFFF;
37
  margin:30px auto 10px;
106
 
107
 
108
  /* jQuery Vegas CSS */
109
+ .vegas-wrapper,
110
+ .vegas-overlay,
111
+ .vegas-timer,
112
+ .vegas-slide,
113
+ .vegas-slide-inner {
114
+ position: absolute;
115
+ top: 0;
116
+ left: 0;
117
+ bottom: 0;
118
+ right: 0;
119
+ overflow: hidden;
120
+ border: none;
121
+ padding: 0;
122
+ margin: 0;
123
+ }
124
+
125
+ .vegas-overlay {
126
+ opacity: .5;
127
+ background: transparent url("overlays/02.png") center center repeat;
128
+ }
129
+
130
+ .vegas-timer {
131
+ top: auto;
132
+ bottom: 0;
133
+ height: 2px;
134
+ }
135
+
136
+ .vegas-timer-progress {
137
+ width: 0%;
138
+ height: 100%;
139
+ background: white;
140
+ -webkit-transition: width ease-out;
141
+ transition: width ease-out;
142
+ }
143
+
144
+ .vegas-timer-running .vegas-timer-progress {
145
+ width: 100%;
146
+ }
147
+
148
+ .vegas-slide,
149
+ .vegas-slide-inner {
150
+ margin: 0;
151
+ padding: 0;
152
+ background: transparent center center no-repeat;
153
+ -webkit-transform: translateZ(0);
154
+ transform: translateZ(0);
155
+ will-change: transform, opacity;
156
+ }
157
+
158
+ body .vegas-container {
159
+ overflow: hidden !important;
160
+ position: relative;
161
+ }
162
+
163
+ .vegas-video {
164
+ min-width: 100%;
165
+ min-height: 100%;
166
+ width: auto;
167
+ height: auto;
168
+ }
169
+
170
+ body.vegas-container {
171
+ overflow: auto;
172
+ position: static;
173
+ z-index: -2;
174
+ }
175
+
176
+ body.vegas-container > .vegas-timer,
177
+ body.vegas-container > .vegas-overlay,
178
+ body.vegas-container > .vegas-slide {
179
+ position: fixed;
180
+ z-index: -1;
181
+ }
182
+
183
+ /* Target Safari IOS7+ in order to add 76px */
184
+ _::full-page-media, _:future,
185
+ :root body.vegas-container > .vegas-slide,
186
+ :root body.vegas-container > .vegas-overlay {
187
+ bottom: -76px;
188
+ }
189
+
190
+ /*******************************************/
191
+ /* blur transition */
192
+ /*******************************************/
193
+ .vegas-transition-blur,
194
+ .vegas-transition-blur2 {
195
+ opacity: 0;
196
+ -webkit-filter: blur(32px);
197
+ filter: blur(32px);
198
+ }
199
+
200
+ .vegas-transition-blur-in,
201
+ .vegas-transition-blur2-in {
202
+ opacity: 1;
203
+ -webkit-filter: blur(0px);
204
+ filter: blur(0px);
205
+ }
206
+
207
+ .vegas-transition-blur2-out {
208
+ opacity: 0;
209
+ }
210
+
211
+ /*******************************************/
212
+ /* burn transition */
213
+ /*******************************************/
214
+ .vegas-transition-burn,
215
+ .vegas-transition-burn2 {
216
+ opacity: 0;
217
+ -webkit-filter: contrast(1000%) saturate(1000%);
218
+ filter: contrast(1000%) saturate(1000%);
219
+ }
220
+
221
+ .vegas-transition-burn-in,
222
+ .vegas-transition-burn2-in {
223
+ opacity: 1;
224
+ -webkit-filter: contrast(100%) saturate(100%);
225
+ filter: contrast(100%) saturate(100%);
226
+ }
227
+
228
+ .vegas-transition-burn2-out {
229
+ opacity: 0;
230
+ -webkit-filter: contrast(1000%) saturate(1000%);
231
+ filter: contrast(1000%) saturate(1000%);
232
+ }
233
+
234
+ /*******************************************/
235
+ /* fade transition */
236
+ /*******************************************/
237
+ .vegas-transition-fade,
238
+ .vegas-transition-fade2 {
239
+ opacity: 0;
240
+ }
241
+
242
+ .vegas-transition-fade-in,
243
+ .vegas-transition-fade2-in {
244
+ opacity: 1;
245
+ }
246
+
247
+ .vegas-transition-fade2-out {
248
+ opacity: 0;
249
+ }
250
+
251
+ /*******************************************/
252
+ /* flash transition */
253
+ /*******************************************/
254
+ .vegas-transition-flash,
255
+ .vegas-transition-flash2 {
256
+ opacity: 0;
257
+ -webkit-filter: brightness(25);
258
+ filter: brightness(25);
259
+ }
260
+
261
+ .vegas-transition-flash-in,
262
+ .vegas-transition-flash2-in {
263
+ opacity: 1;
264
+ -webkit-filter: brightness(1);
265
+ filter: brightness(1);
266
+ }
267
+
268
+ .vegas-transition-flash2-out {
269
+ opacity: 0;
270
+ -webkit-filter: brightness(25);
271
+ filter: brightness(25);
272
+ }
273
+
274
+ /*******************************************/
275
+ /* negative transition */
276
+ /*******************************************/
277
+ .vegas-transition-negative,
278
+ .vegas-transition-negative2 {
279
+ opacity: 0;
280
+ -webkit-filter: invert(100%);
281
+ filter: invert(100%);
282
+ }
283
+
284
+ .vegas-transition-negative-in,
285
+ .vegas-transition-negative2-in {
286
+ opacity: 1;
287
+ -webkit-filter: invert(0);
288
+ filter: invert(0);
289
+ }
290
+
291
+ .vegas-transition-negative2-out {
292
+ opacity: 0;
293
+ -webkit-filter: invert(100%);
294
+ filter: invert(100%);
295
+ }
296
+
297
+ /*******************************************/
298
+ /* slideDown transition */
299
+ /*******************************************/
300
+ .vegas-transition-slideDown,
301
+ .vegas-transition-slideDown2 {
302
+ -webkit-transform: translateY(-100%);
303
+ transform: translateY(-100%);
304
+ }
305
+
306
+ .vegas-transition-slideDown-in,
307
+ .vegas-transition-slideDown2-in {
308
+ -webkit-transform: translateY(0%);
309
+ transform: translateY(0%);
310
+ }
311
+
312
+ .vegas-transition-slideDown2-out {
313
+ -webkit-transform: translateY(100%);
314
+ transform: translateY(100%);
315
+ }
316
+
317
+ /*******************************************/
318
+ /* slideLeft transition */
319
+ /*******************************************/
320
+ .vegas-transition-slideLeft,
321
+ .vegas-transition-slideLeft2 {
322
+ -webkit-transform: translateX(100%);
323
+ transform: translateX(100%);
324
+ }
325
+
326
+ .vegas-transition-slideLeft-in,
327
+ .vegas-transition-slideLeft2-in {
328
+ -webkit-transform: translateX(0%);
329
+ transform: translateX(0%);
330
+ }
331
+
332
+ .vegas-transition-slideLeft2-out {
333
+ -webkit-transform: translateX(-100%);
334
+ transform: translateX(-100%);
335
+ }
336
+
337
+ /*******************************************/
338
+ /* slideRight transition */
339
+ /*******************************************/
340
+ .vegas-transition-slideRight,
341
+ .vegas-transition-slideRight2 {
342
+ -webkit-transform: translateX(-100%);
343
+ transform: translateX(-100%);
344
+ }
345
+
346
+ .vegas-transition-slideRight-in,
347
+ .vegas-transition-slideRight2-in {
348
+ -webkit-transform: translateX(0%);
349
+ transform: translateX(0%);
350
+ }
351
+
352
+ .vegas-transition-slideRight2-out {
353
+ -webkit-transform: translateX(100%);
354
+ transform: translateX(100%);
355
+ }
356
+
357
+ /*******************************************/
358
+ /* slideUp transition */
359
+ /*******************************************/
360
+ .vegas-transition-slideUp,
361
+ .vegas-transition-slideUp2 {
362
+ -webkit-transform: translateY(100%);
363
+ transform: translateY(100%);
364
+ }
365
+
366
+ .vegas-transition-slideUp-in,
367
+ .vegas-transition-slideUp2-in {
368
+ -webkit-transform: translateY(0%);
369
+ transform: translateY(0%);
370
+ }
371
+
372
+ .vegas-transition-slideUp2-out {
373
+ -webkit-transform: translateY(-100%);
374
+ transform: translateY(-100%);
375
+ }
376
+
377
+ /*******************************************/
378
+ /* swirlLeft transition */
379
+ /*******************************************/
380
+ .vegas-transition-swirlLeft,
381
+ .vegas-transition-swirlLeft2 {
382
+ -webkit-transform: scale(2) rotate(35deg);
383
+ transform: scale(2) rotate(35deg);
384
+ opacity: 0;
385
+ }
386
+
387
+ .vegas-transition-swirlLeft-in,
388
+ .vegas-transition-swirlLeft2-in {
389
+ -webkit-transform: scale(1) rotate(0deg);
390
+ transform: scale(1) rotate(0deg);
391
+ opacity: 1;
392
+ }
393
+
394
+ .vegas-transition-swirlLeft2-out {
395
+ -webkit-transform: scale(2) rotate(-35deg);
396
+ transform: scale(2) rotate(-35deg);
397
+ opacity: 0;
398
+ }
399
+
400
+ /*******************************************/
401
+ /* swirlRight transition */
402
+ /*******************************************/
403
+ .vegas-transition-swirlRight,
404
+ .vegas-transition-swirlRight2 {
405
+ -webkit-transform: scale(2) rotate(-35deg);
406
+ transform: scale(2) rotate(-35deg);
407
+ opacity: 0;
408
+ }
409
+
410
+ .vegas-transition-swirlRight-in,
411
+ .vegas-transition-swirlRight2-in {
412
+ -webkit-transform: scale(1) rotate(0deg);
413
+ transform: scale(1) rotate(0deg);
414
+ opacity: 1;
415
+ }
416
+
417
+ .vegas-transition-swirlRight2-out {
418
+ -webkit-transform: scale(2) rotate(35deg);
419
+ transform: scale(2) rotate(35deg);
420
+ opacity: 0;
421
+ }
422
+
423
+ /*******************************************/
424
+ /* zoomIn transition */
425
+ /*******************************************/
426
+ .vegas-transition-zoomIn,
427
+ .vegas-transition-zoomIn2 {
428
+ -webkit-transform: scale(0);
429
+ transform: scale(0);
430
+ opacity: 0;
431
+ }
432
+
433
+ .vegas-transition-zoomIn-in,
434
+ .vegas-transition-zoomIn2-in {
435
+ -webkit-transform: scale(1);
436
+ transform: scale(1);
437
+ opacity: 1;
438
+ }
439
+
440
+ .vegas-transition-zoomIn2-out {
441
+ -webkit-transform: scale(2);
442
+ transform: scale(2);
443
+ opacity: 0;
444
+ }
445
 
446
+ /*******************************************/
447
+ /* zoomOut transition */
448
+ /*******************************************/
449
+ .vegas-transition-zoomOut,
450
+ .vegas-transition-zoomOut2 {
451
+ -webkit-transform: scale(2);
452
+ transform: scale(2);
453
+ opacity: 0;
454
  }
455
 
456
+ .vegas-transition-zoomOut-in,
457
+ .vegas-transition-zoomOut2-in {
458
+ -webkit-transform: scale(1);
459
+ transform: scale(1);
460
+ opacity: 1;
461
  }
462
+
463
+ .vegas-transition-zoomOut2-out {
464
+ -webkit-transform: scale(0);
465
+ transform: scale(0);
466
+ opacity: 0;
467
+ }
468
+
469
+ /*******************************************/
470
+ /* kenburns animation */
471
+ /*******************************************/
472
+ .vegas-animation-kenburns {
473
+ -webkit-animation: kenburns ease-out;
474
+ animation: kenburns ease-out;
475
+ }
476
+
477
+ @-webkit-keyframes kenburns {
478
+ 0% {
479
+ -webkit-transform: scale(1.5);
480
+ transform: scale(1.5);
481
+ }
482
+ 100% {
483
+ -webkit-transform: scale(1);
484
+ transform: scale(1);
485
+ }
486
+ }
487
+
488
+ @keyframes kenburns {
489
+ 0% {
490
+ -webkit-transform: scale(1.5);
491
+ transform: scale(1.5);
492
+ }
493
+ 100% {
494
+ -webkit-transform: scale(1);
495
+ transform: scale(1);
496
+ }
497
+ }
498
+
499
+ /*******************************************/
500
+ /* kenburnsDownLeft animation */
501
+ /*******************************************/
502
+ .vegas-animation-kenburnsDownLeft {
503
+ -webkit-animation: kenburnsDownLeft ease-out;
504
+ animation: kenburnsDownLeft ease-out;
505
+ }
506
+
507
+ @-webkit-keyframes kenburnsDownLeft {
508
+ 0% {
509
+ -webkit-transform: scale(1.5) translate(10%, -10%);
510
+ transform: scale(1.5) translate(10%, -10%);
511
+ }
512
+ 100% {
513
+ -webkit-transform: scale(1) translate(0, 0);
514
+ transform: scale(1) translate(0, 0);
515
+ }
516
+ }
517
+
518
+ @keyframes kenburnsDownLeft {
519
+ 0% {
520
+ -webkit-transform: scale(1.5) translate(10%, -10%);
521
+ transform: scale(1.5) translate(10%, -10%);
522
+ }
523
+ 100% {
524
+ -webkit-transform: scale(1) translate(0, 0);
525
+ transform: scale(1) translate(0, 0);
526
+ }
527
+ }
528
+
529
+ /*******************************************/
530
+ /* kenburnsDownRight animation */
531
+ /*******************************************/
532
+ .vegas-animation-kenburnsDownRight {
533
+ -webkit-animation: kenburnsDownRight ease-out;
534
+ animation: kenburnsDownRight ease-out;
535
+ }
536
+
537
+ @-webkit-keyframes kenburnsDownRight {
538
+ 0% {
539
+ -webkit-transform: scale(1.5) translate(-10%, -10%);
540
+ transform: scale(1.5) translate(-10%, -10%);
541
+ }
542
+ 100% {
543
+ -webkit-transform: scale(1) translate(0, 0);
544
+ transform: scale(1) translate(0, 0);
545
+ }
546
+ }
547
+
548
+ @keyframes kenburnsDownRight {
549
+ 0% {
550
+ -webkit-transform: scale(1.5) translate(-10%, -10%);
551
+ transform: scale(1.5) translate(-10%, -10%);
552
+ }
553
+ 100% {
554
+ -webkit-transform: scale(1) translate(0, 0);
555
+ transform: scale(1) translate(0, 0);
556
+ }
557
  }
558
 
559
+ /*******************************************/
560
+ /* kenburnsDown animation */
561
+ /*******************************************/
562
+ .vegas-animation-kenburnsDown {
563
+ -webkit-animation: kenburnsDown ease-out;
564
+ animation: kenburnsDown ease-out;
565
+ }
566
+
567
+ @-webkit-keyframes kenburnsDown {
568
+ 0% {
569
+ -webkit-transform: scale(1.5) translate(0, -10%);
570
+ transform: scale(1.5) translate(0, -10%);
571
+ }
572
+ 100% {
573
+ -webkit-transform: scale(1) translate(0, 0);
574
+ transform: scale(1) translate(0, 0);
575
+ }
576
+ }
577
+
578
+ @keyframes kenburnsDown {
579
+ 0% {
580
+ -webkit-transform: scale(1.5) translate(0, -10%);
581
+ transform: scale(1.5) translate(0, -10%);
582
+ }
583
+ 100% {
584
+ -webkit-transform: scale(1) translate(0, 0);
585
+ transform: scale(1) translate(0, 0);
586
+ }
587
+ }
588
+
589
+ /*******************************************/
590
+ /* kenburnsLeft animation */
591
+ /*******************************************/
592
+ .vegas-animation-kenburnsLeft {
593
+ -webkit-animation: kenburnsLeft ease-out;
594
+ animation: kenburnsLeft ease-out;
595
+ }
596
+
597
+ @-webkit-keyframes kenburnsLeft {
598
+ 0% {
599
+ -webkit-transform: scale(1.5) translate(10%, 0);
600
+ transform: scale(1.5) translate(10%, 0);
601
+ }
602
+ 100% {
603
+ -webkit-transform: scale(1) translate(0, 0);
604
+ transform: scale(1) translate(0, 0);
605
+ }
606
+ }
607
+
608
+ @keyframes kenburnsLeft {
609
+ 0% {
610
+ -webkit-transform: scale(1.5) translate(10%, 0);
611
+ transform: scale(1.5) translate(10%, 0);
612
+ }
613
+ 100% {
614
+ -webkit-transform: scale(1) translate(0, 0);
615
+ transform: scale(1) translate(0, 0);
616
+ }
617
+ }
618
+
619
+ /*******************************************/
620
+ /* kenburnsRight animation */
621
+ /*******************************************/
622
+ .vegas-animation-kenburnsRight {
623
+ -webkit-animation: kenburnsRight ease-out;
624
+ animation: kenburnsRight ease-out;
625
+ }
626
+
627
+ @-webkit-keyframes kenburnsRight {
628
+ 0% {
629
+ -webkit-transform: scale(1.5) translate(-10%, 0);
630
+ transform: scale(1.5) translate(-10%, 0);
631
+ }
632
+ 100% {
633
+ -webkit-transform: scale(1) translate(0, 0);
634
+ transform: scale(1) translate(0, 0);
635
+ }
636
+ }
637
+
638
+ @keyframes kenburnsRight {
639
+ 0% {
640
+ -webkit-transform: scale(1.5) translate(-10%, 0);
641
+ transform: scale(1.5) translate(-10%, 0);
642
+ }
643
+ 100% {
644
+ -webkit-transform: scale(1) translate(0, 0);
645
+ transform: scale(1) translate(0, 0);
646
+ }
647
+ }
648
+
649
+ /*******************************************/
650
+ /* kenburnsUpLeft animation */
651
+ /*******************************************/
652
+ .vegas-animation-kenburnsUpLeft {
653
+ -webkit-animation: kenburnsUpLeft ease-out;
654
+ animation: kenburnsUpLeft ease-out;
655
+ }
656
+
657
+ @-webkit-keyframes kenburnsUpLeft {
658
+ 0% {
659
+ -webkit-transform: scale(1.5) translate(10%, 10%);
660
+ transform: scale(1.5) translate(10%, 10%);
661
+ }
662
+ 100% {
663
+ -webkit-transform: scale(1) translate(0, 0);
664
+ transform: scale(1) translate(0, 0);
665
+ }
666
+ }
667
+
668
+ @keyframes kenburnsUpLeft {
669
+ 0% {
670
+ -webkit-transform: scale(1.5) translate(10%, 10%);
671
+ transform: scale(1.5) translate(10%, 10%);
672
+ }
673
+ 100% {
674
+ -webkit-transform: scale(1) translate(0, 0);
675
+ transform: scale(1) translate(0, 0);
676
+ }
677
+ }
678
+
679
+ /*******************************************/
680
+ /* kenburnsUpRight animation */
681
+ /*******************************************/
682
+ .vegas-animation-kenburnsUpRight {
683
+ -webkit-animation: kenburnsUpRight ease-out;
684
+ animation: kenburnsUpRight ease-out;
685
+ }
686
+
687
+ @-webkit-keyframes kenburnsUpRight {
688
+ 0% {
689
+ -webkit-transform: scale(1.5) translate(-10%, 10%);
690
+ transform: scale(1.5) translate(-10%, 10%);
691
+ }
692
+ 100% {
693
+ -webkit-transform: scale(1) translate(0, 0);
694
+ transform: scale(1) translate(0, 0);
695
+ }
696
+ }
697
+
698
+ @keyframes kenburnsUpRight {
699
+ 0% {
700
+ -webkit-transform: scale(1.5) translate(-10%, 10%);
701
+ transform: scale(1.5) translate(-10%, 10%);
702
+ }
703
+ 100% {
704
+ -webkit-transform: scale(1) translate(0, 0);
705
+ transform: scale(1) translate(0, 0);
706
+ }
707
+ }
708
+
709
+ /*******************************************/
710
+ /* kenburnsUp animation */
711
+ /*******************************************/
712
+ .vegas-animation-kenburnsUp {
713
+ -webkit-animation: kenburnsUp ease-out;
714
+ animation: kenburnsUp ease-out;
715
+ }
716
+
717
+ @-webkit-keyframes kenburnsUp {
718
+ 0% {
719
+ -webkit-transform: scale(1.5) translate(0, 10%);
720
+ transform: scale(1.5) translate(0, 10%);
721
+ }
722
+ 100% {
723
+ -webkit-transform: scale(1) translate(0, 0);
724
+ transform: scale(1) translate(0, 0);
725
+ }
726
+ }
727
+
728
+ @keyframes kenburnsUp {
729
+ 0% {
730
+ -webkit-transform: scale(1.5) translate(0, 10%);
731
+ transform: scale(1.5) translate(0, 10%);
732
+ }
733
+ 100% {
734
+ -webkit-transform: scale(1) translate(0, 0);
735
+ transform: scale(1) translate(0, 0);
736
+ }
737
+ }
738
+
739
+
740
  /* Additional media queries */
741
 
742
  @media screen and (min-width: 0px) and (max-width: 320px) {
template/assets/js/scripts.js CHANGED
@@ -1,3 +1,5 @@
 
 
1
  jQuery(document).ready(function($){
2
 
3
  jQuery('.bxslider').bxSlider({
1
+ // Nifty Coming Soon and Maintenance mode by Davor Veselinovic / Additional JavaScripts //
2
+
3
  jQuery(document).ready(function($){
4
 
5
  jQuery('.bxslider').bxSlider({
template/assets/js/vegas.min.js ADDED
@@ -0,0 +1,2 @@
 
 
1
+ !function(t){"use strict";var s={slide:0,delay:5e3,loop:!0,preload:!1,preloadImage:!1,preloadVideo:!1,timer:!0,overlay:!1,autoplay:!0,shuffle:!1,cover:!0,color:null,align:"center",valign:"center",firstTransition:null,firstTransitionDuration:null,transition:"fade",transitionDuration:1e3,transitionRegister:[],animation:null,animationDuration:"auto",animationRegister:[],slidesToKeep:1,init:function(){},play:function(){},pause:function(){},walk:function(){},slides:[]},i={},e=function(i,e){this.elmt=i,this.settings=t.extend({},s,t.vegas.defaults,e),this.slide=this.settings.slide,this.total=this.settings.slides.length,this.noshow=this.total<2,this.paused=!this.settings.autoplay||this.noshow,this.ended=!1,this.$elmt=t(i),this.$timer=null,this.$overlay=null,this.$slide=null,this.timeout=null,this.first=!0,this.transitions=["fade","fade2","blur","blur2","flash","flash2","negative","negative2","burn","burn2","slideLeft","slideLeft2","slideRight","slideRight2","slideUp","slideUp2","slideDown","slideDown2","zoomIn","zoomIn2","zoomOut","zoomOut2","swirlLeft","swirlLeft2","swirlRight","swirlRight2"],this.animations=["kenburns","kenburnsLeft","kenburnsRight","kenburnsUp","kenburnsUpLeft","kenburnsUpRight","kenburnsDown","kenburnsDownLeft","kenburnsDownRight"],this.settings.transitionRegister instanceof Array==!1&&(this.settings.transitionRegister=[this.settings.transitionRegister]),this.settings.animationRegister instanceof Array==!1&&(this.settings.animationRegister=[this.settings.animationRegister]),this.transitions=this.transitions.concat(this.settings.transitionRegister),this.animations=this.animations.concat(this.settings.animationRegister),this.support={objectFit:"objectFit"in document.body.style,transition:"transition"in document.body.style||"WebkitTransition"in document.body.style,video:t.vegas.isVideoCompatible()},this.settings.shuffle===!0&&this.shuffle(),this._init()};e.prototype={_init:function(){var s,i,e,n="BODY"===this.elmt.tagName,o=this.settings.timer,a=this.settings.overlay,r=this;this._preload(),n||(this.$elmt.css("height",this.$elmt.css("height")),s=t('<div class="vegas-wrapper">').css("overflow",this.$elmt.css("overflow")).css("padding",this.$elmt.css("padding")),this.$elmt.css("padding")||s.css("padding-top",this.$elmt.css("padding-top")).css("padding-bottom",this.$elmt.css("padding-bottom")).css("padding-left",this.$elmt.css("padding-left")).css("padding-right",this.$elmt.css("padding-right")),this.$elmt.clone(!0).children().appendTo(s),this.elmt.innerHTML=""),o&&this.support.transition&&(e=t('<div class="vegas-timer"><div class="vegas-timer-progress">'),this.$timer=e,this.$elmt.prepend(e)),a&&(i=t('<div class="vegas-overlay">'),"string"==typeof a&&i.css("background-image","url("+a+")"),this.$overlay=i,this.$elmt.prepend(i)),this.$elmt.addClass("vegas-container"),n||this.$elmt.append(s),setTimeout(function(){r.trigger("init"),r._goto(r.slide),r.settings.autoplay&&r.trigger("play")},1)},_preload:function(){var t,s;for(s=0;s<this.settings.slides.length;s++)(this.settings.preload||this.settings.preloadImages)&&this.settings.slides[s].src&&(t=new Image,t.src=this.settings.slides[s].src),(this.settings.preload||this.settings.preloadVideos)&&this.support.video&&this.settings.slides[s].video&&(this.settings.slides[s].video instanceof Array?this._video(this.settings.slides[s].video):this._video(this.settings.slides[s].video.src))},_random:function(t){return t[Math.floor(Math.random()*t.length)]},_slideShow:function(){var t=this;this.total>1&&!this.ended&&!this.paused&&!this.noshow&&(this.timeout=setTimeout(function(){t.next()},this._options("delay")))},_timer:function(t){var s=this;clearTimeout(this.timeout),this.$timer&&(this.$timer.removeClass("vegas-timer-running").find("div").css("transition-duration","0ms"),this.ended||this.paused||this.noshow||t&&setTimeout(function(){s.$timer.addClass("vegas-timer-running").find("div").css("transition-duration",s._options("delay")-100+"ms")},100))},_video:function(t){var s,e,n=t.toString();return i[n]?i[n]:(t instanceof Array==!1&&(t=[t]),s=document.createElement("video"),s.preload=!0,t.forEach(function(t){e=document.createElement("source"),e.src=t,s.appendChild(e)}),i[n]=s,s)},_fadeOutSound:function(t,s){var i=this,e=s/10,n=t.volume-.09;n>0?(t.volume=n,setTimeout(function(){i._fadeOutSound(t,s)},e)):t.pause()},_fadeInSound:function(t,s){var i=this,e=s/10,n=t.volume+.09;n<1&&(t.volume=n,setTimeout(function(){i._fadeInSound(t,s)},e))},_options:function(t,s){return void 0===s&&(s=this.slide),void 0!==this.settings.slides[s][t]?this.settings.slides[s][t]:this.settings[t]},_goto:function(s){function i(){f._timer(!0),setTimeout(function(){y&&(f.support.transition?(h.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-out"),h.each(function(){var t=h.find("video").get(0);t&&(t.volume=1,f._fadeOutSound(t,_))}),e.css("transition","all "+_+"ms").addClass("vegas-transition-"+y+"-in")):e.fadeIn(_));for(var t=0;t<h.length-f.settings.slidesToKeep;t++)h.eq(t).remove();f.trigger("walk"),f._slideShow()},100)}"undefined"==typeof this.settings.slides[s]&&(s=0),this.slide=s;var e,n,o,a,r,h=this.$elmt.children(".vegas-slide"),d=this.settings.slides[s].src,l=this.settings.slides[s].video,g=this._options("delay"),u=this._options("align"),c=this._options("valign"),p=this._options("cover"),m=this._options("color")||this.$elmt.css("background-color"),f=this,v=h.length,y=this._options("transition"),_=this._options("transitionDuration"),w=this._options("animation"),b=this._options("animationDuration");this.settings.firstTransition&&this.first&&(y=this.settings.firstTransition||y),this.settings.firstTransitionDuration&&this.first&&(_=this.settings.firstTransitionDuration||_),this.first&&(this.first=!1),"repeat"!==p&&(p===!0?p="cover":p===!1&&(p="contain")),("random"===y||y instanceof Array)&&(y=y instanceof Array?this._random(y):this._random(this.transitions)),("random"===w||w instanceof Array)&&(w=w instanceof Array?this._random(w):this._random(this.animations)),("auto"===_||_>g)&&(_=g),"auto"===b&&(b=g),e=t('<div class="vegas-slide"></div>'),this.support.transition&&y&&e.addClass("vegas-transition-"+y),this.support.video&&l?(a=l instanceof Array?this._video(l):this._video(l.src),a.loop=void 0===l.loop||l.loop,a.muted=void 0===l.mute||l.mute,a.muted===!1?(a.volume=0,this._fadeInSound(a,_)):a.pause(),o=t(a).addClass("vegas-video").css("background-color",m),this.support.objectFit?o.css("object-position",u+" "+c).css("object-fit",p).css("width","100%").css("height","100%"):"contain"===p&&o.css("width","100%").css("height","100%"),e.append(o)):(r=new Image,n=t('<div class="vegas-slide-inner"></div>').css("background-image",'url("'+d+'")').css("background-color",m).css("background-position",u+" "+c),"repeat"===p?n.css("background-repeat","repeat"):n.css("background-size",p),this.support.transition&&w&&n.addClass("vegas-animation-"+w).css("animation-duration",b+"ms"),e.append(n)),this.support.transition||e.css("display","none"),v?h.eq(v-1).after(e):this.$elmt.prepend(e),h.css("transition","all 0ms").each(function(){this.className="vegas-slide","VIDEO"===this.tagName&&(this.className+=" vegas-video"),y&&(this.className+=" vegas-transition-"+y,this.className+=" vegas-transition-"+y+"-in")}),f._timer(!1),a?(4===a.readyState&&(a.currentTime=0),a.play(),i()):(r.src=d,r.complete?i():r.onload=i)},_end:function(){this.ended=!0,this._timer(!1),this.trigger("end")},shuffle:function(){for(var t,s,i=this.total-1;i>0;i--)s=Math.floor(Math.random()*(i+1)),t=this.settings.slides[i],this.settings.slides[i]=this.settings.slides[s],this.settings.slides[s]=t},play:function(){this.paused&&(this.paused=!1,this.next(),this.trigger("play"))},pause:function(){this._timer(!1),this.paused=!0,this.trigger("pause")},toggle:function(){this.paused?this.play():this.pause()},playing:function(){return!this.paused&&!this.noshow},current:function(t){return t?{slide:this.slide,data:this.settings.slides[this.slide]}:this.slide},jump:function(t){t<0||t>this.total-1||t===this.slide||(this.slide=t,this._goto(this.slide))},next:function(){if(this.slide++,this.slide>=this.total){if(!this.settings.loop)return this._end();this.slide=0}this._goto(this.slide)},previous:function(){if(this.slide--,this.slide<0){if(!this.settings.loop)return void this.slide++;this.slide=this.total-1}this._goto(this.slide)},trigger:function(t){var s=[];s="init"===t?[this.settings]:[this.slide,this.settings.slides[this.slide]],this.$elmt.trigger("vegas"+t,s),"function"==typeof this.settings[t]&&this.settings[t].apply(this.$elmt,s)},options:function(i,e){var n=this.settings.slides.slice();if("object"==typeof i)this.settings=t.extend({},s,t.vegas.defaults,i);else{if("string"!=typeof i)return this.settings;if(void 0===e)return this.settings[i];this.settings[i]=e}this.settings.slides!==n&&(this.total=this.settings.slides.length,this.noshow=this.total<2,this._preload())},destroy:function(){clearTimeout(this.timeout),this.$elmt.removeClass("vegas-container"),this.$elmt.find("> .vegas-slide").remove(),this.$elmt.find("> .vegas-wrapper").clone(!0).children().appendTo(this.$elmt),this.$elmt.find("> .vegas-wrapper").remove(),this.settings.timer&&this.$timer.remove(),this.settings.overlay&&this.$overlay.remove(),this.elmt._vegas=null}},t.fn.vegas=function(t){var s,i=arguments,n=!1;if(void 0===t||"object"==typeof t)return this.each(function(){this._vegas||(this._vegas=new e(this,t))});if("string"==typeof t){if(this.each(function(){var e=this._vegas;if(!e)throw new Error("No Vegas applied to this element.");"function"==typeof e[t]&&"_"!==t[0]?s=e[t].apply(e,[].slice.call(i,1)):n=!0}),n)throw new Error('No method "'+t+'" in Vegas.');return void 0!==s?s:this}},t.vegas={},t.vegas.defaults=s,t.vegas.isVideoCompatible=function(){return!/(Android|webOS|Phone|iPad|iPod|BlackBerry|Windows Phone)/i.test(navigator.userAgent)}}(window.jQuery||window.Zepto);
2
+
template/index.php CHANGED
@@ -57,7 +57,7 @@ Main Coming soon page template
57
 
58
  </head>
59
  <body <?php body_class(); ?>>
60
- <div class="nifty-main-wrapper">
61
 
62
  <!-- Page Preloader -->
63
 
@@ -280,7 +280,7 @@ Main Coming soon page template
280
 
281
  ;
282
  } else {
283
- ;
284
  }
285
  ?>
286
 
@@ -289,7 +289,7 @@ Main Coming soon page template
289
  </div>
290
  </div>
291
  </div>
292
- </div>
293
 
294
  <!-- jQuery Vegas Background Slider -->
295
 
@@ -300,42 +300,40 @@ Main Coming soon page template
300
  $slide_1 = ot_get_option( 'upload_slider_images' );
301
  $slide_2 = ot_get_option( 'upload_slider_images_2' );
302
  $slide_3 = ot_get_option( 'upload_slider_images_3' );
 
303
  $slider_time = ot_get_option( 'background_slider_time', '6000' );
304
-
 
 
 
 
305
 
306
  echo "<script>
307
- jQuery(document).ready(function($) {
308
- $.vegas('slideshow', {
309
-
310
- delay:".$slider_time.",
311
- backgrounds:[
312
- { src:'".$slide_1."', fade:1000 },
313
- { src:'".$slide_2."', fade:1000 },
314
- { src:'".$slide_3."', fade:1000 }
315
- ]
316
- });
317
- ";
318
- ?>
 
 
 
 
319
 
 
 
 
 
320
 
321
- <?php
322
- $pattern = ot_get_option( 'select_pattern_overlay' );
323
- $pattern_opacity = ot_get_option( 'pattern_overlay_opacity' );
324
- $pattern_lib = '/assets/images/patterns/';
325
-
326
 
327
- echo "$.vegas('overlay', {
328
- src:'". OT_URL .$pattern_lib.$pattern."'";
329
- echo ", opacity:".$pattern_opacity;
330
- echo "});});";
331
-
332
- } else {
333
- ;
334
- }
335
-
336
 
337
- ?>
338
- </script>
339
 
340
  <script>
341
 
@@ -400,7 +398,7 @@ if ( isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL
400
  <script src="<?php echo plugins_url('template/assets/js/scripts.js',dirname(__FILE__)); ?>"></script>
401
  <script src="<?php echo plugins_url('template/assets/js/jquery.countdown.js',dirname(__FILE__)); ?>"></script>
402
  <script src="<?php echo plugins_url('template/assets/js/jquery.bxslider.min.js',dirname(__FILE__)); ?>"></script>
403
- <script src="<?php echo plugins_url('template/assets/js/jquery.vegas.min.js',dirname(__FILE__)); ?>"></script>
404
  <script src="<?php echo plugins_url('template/assets/js/jquery.fittext.js',dirname(__FILE__)); ?>"></script>
405
  <script src="<?php echo plugins_url('template/assets/js/jquery.textillate.js',dirname(__FILE__)); ?>"></script>
406
  <script src="<?php echo plugins_url('template/assets/js/jquery.lettering.js',dirname(__FILE__)); ?>"></script>
57
 
58
  </head>
59
  <body <?php body_class(); ?>>
60
+ <div class="nifty-main-wrapper" id="nifty-full-wrapper">
61
 
62
  <!-- Page Preloader -->
63
 
280
 
281
  ;
282
  } else {
283
+ echo '<section class="large-12 columns"><div class="nifty-row"></div></section>';
284
  }
285
  ?>
286
 
289
  </div>
290
  </div>
291
  </div>
292
+
293
 
294
  <!-- jQuery Vegas Background Slider -->
295
 
300
  $slide_1 = ot_get_option( 'upload_slider_images' );
301
  $slide_2 = ot_get_option( 'upload_slider_images_2' );
302
  $slide_3 = ot_get_option( 'upload_slider_images_3' );
303
+ $slide_3 = ot_get_option( 'upload_slider_images_3' );
304
  $slider_time = ot_get_option( 'background_slider_time', '6000' );
305
+ $body = '#nifty, body';
306
+ $bck_animation = ot_get_option( 'background_slider_animation' );
307
+ $pattern = ot_get_option( 'select_pattern_overlay' );
308
+ $pattern_opacity = ot_get_option( 'pattern_overlay_opacity' );
309
+ $pattern_lib = OT_URL .'/assets/images/patterns/';
310
 
311
  echo "<script>
312
+ jQuery(document).ready(function($){
313
+ $('".$body."').vegas({
314
+ animation: 'random',
315
+ cover: true,
316
+ timer: false,
317
+ transition: '".$bck_animation."',
318
+ delay:".$slider_time.",
319
+ opacity:".$pattern_opacity.",
320
+ overlay:'".$pattern_lib.$pattern."',
321
+ slides: [
322
+ { src:'".$slide_1."'},
323
+ { src:'".$slide_2."'},
324
+ { src:'".$slide_3."'}
325
+ ]
326
+ }); });
327
+ </script>";
328
 
329
+ } else {
330
+ }
331
+
332
+ ?>
333
 
 
 
 
 
 
334
 
 
 
 
 
 
 
 
 
 
335
 
336
+
 
337
 
338
  <script>
339
 
398
  <script src="<?php echo plugins_url('template/assets/js/scripts.js',dirname(__FILE__)); ?>"></script>
399
  <script src="<?php echo plugins_url('template/assets/js/jquery.countdown.js',dirname(__FILE__)); ?>"></script>
400
  <script src="<?php echo plugins_url('template/assets/js/jquery.bxslider.min.js',dirname(__FILE__)); ?>"></script>
401
+ <script src="<?php echo plugins_url('template/assets/js/vegas.min.js',dirname(__FILE__)); ?>"></script>
402
  <script src="<?php echo plugins_url('template/assets/js/jquery.fittext.js',dirname(__FILE__)); ?>"></script>
403
  <script src="<?php echo plugins_url('template/assets/js/jquery.textillate.js',dirname(__FILE__)); ?>"></script>
404
  <script src="<?php echo plugins_url('template/assets/js/jquery.lettering.js',dirname(__FILE__)); ?>"></script>