Coming Soon, Under Construction & Maintenance Page - Version 2.0.3

Version Description

  • Fix slider
  • Minor bug fixes
Download this release

Release Info

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

Code changes from version 2.0.2 to 2.0.3

languages/nifty-coming-soon-and-under-construction-page.pot CHANGED
@@ -2,11 +2,11 @@
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
- "Project-Id-Version: Nifty Coming Soon & Maintenance page 2.0.2\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/nifty-coming-soon-and-under-"
8
  "construction-page\n"
9
- "POT-Creation-Date: 2022-07-01 11:07:05+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
2
  # This file is distributed under the GPLv3.
3
  msgid ""
4
  msgstr ""
5
+ "Project-Id-Version: Nifty Coming Soon & Maintenance page 2.0.3\n"
6
  "Report-Msgid-Bugs-To: "
7
  "https://wordpress.org/support/plugin/nifty-coming-soon-and-under-"
8
  "construction-page\n"
9
+ "POT-Creation-Date: 2022-08-19 04:58:39+00:00\n"
10
  "MIME-Version: 1.0\n"
11
  "Content-Type: text/plain; charset=utf-8\n"
12
  "Content-Transfer-Encoding: 8bit\n"
nifty-coming-soon.php CHANGED
@@ -3,7 +3,7 @@
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
- Version: 2.0.2
7
  Author: WP Concern
8
  Author URI: https://wpconcern.com/
9
  Text Domain: nifty-coming-soon-and-under-construction-page
@@ -29,7 +29,7 @@ License URI: https://www.gnu.org/licenses/gpl-3.0.html
29
 
30
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
31
 
32
- define( 'NCSUCP_VERSION', '2.0.2' );
33
  define( 'NCSUCP_SLUG', 'nifty-coming-soon-and-under-construction-page' );
34
  define( 'NCSUCP_BASE_NAME', basename( dirname( __FILE__ ) ) );
35
  define( 'NCSUCP_BASE_FILEPATH', __FILE__ );
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to set up Coming Soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
+ Version: 2.0.3
7
  Author: WP Concern
8
  Author URI: https://wpconcern.com/
9
  Text Domain: nifty-coming-soon-and-under-construction-page
29
 
30
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
31
 
32
+ define( 'NCSUCP_VERSION', '2.0.3' );
33
  define( 'NCSUCP_SLUG', 'nifty-coming-soon-and-under-construction-page' );
34
  define( 'NCSUCP_BASE_NAME', basename( dirname( __FILE__ ) ) );
35
  define( 'NCSUCP_BASE_FILEPATH', __FILE__ );
readme.txt CHANGED
@@ -1,248 +1,252 @@
1
- === Coming Soon & Maintenance Mode Page ===
2
-
3
- Contributors: wpconcern, maneshtimilsina, rabmalin
4
- Donate link: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
5
- Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, maintenance mode with countdown timer, maintenance mode with timer, coming soon plugin, wp coming soon, wordpress under construction, under construction page, wp maintenance, wordpress coming soon page, simple maintenance mode, custom coming soon, custom maintenance mode
6
- Tested up to: 6.0
7
- License: GPLv3
8
- License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
- Stable tag: 2.0.2
10
- Requires PHP: 5.6
11
- Requires at least: 4.9
12
-
13
- Nifty Coming Soon & Maintenance Page creates awesome Coming Soon & Maintenance Pages with premium features for free.
14
-
15
- == Description ==
16
-
17
- Simple and easy to setup Coming soon, Under Construction and Maintenance page plugin will help you in creating amazing and animated Coming soon pages with all the needed features.
18
-
19
- Coming Soon and Maintenance Mode plugin features responsive design and will adapt to any device. You can setup background slider with overlay pattern and opacity. Easily alter animated text on the coming soon page and use the built in count down timer, subscription form and more.
20
-
21
- You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
22
-
23
- ### Main Features
24
-
25
- * Responsive and modern coming soon page design
26
- * All section editable from plugin options panel
27
- * Countdown timer
28
- * Animated coming soon text messages
29
- * Background slider with pattern overlay and opacity
30
- * 16 Background slider animations to choose from
31
- * Solid color background mode
32
- * Option to turn on/off any section
33
- * Preloader
34
- * Live Preview (you can preview your Coming soon page without the need to log out or use another browser)
35
- * 300+ Google fonts
36
- * Font icons included
37
- * Built it Subscription form
38
- * Option to add MailChimp or any other Sign-up form to the coming soon page
39
- * Coming soon admin bar notification
40
- * Translation options included
41
-
42
- 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.
43
-
44
- The plugin should work with any WordPress theme and the installation and setup are really straight forward.
45
-
46
- 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. :)
47
-
48
-
49
- == Installation ==
50
-
51
- You can install this plugin in two way. The manual way:
52
-
53
- 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly by uploading it in .zip format.
54
-
55
- 2. Then just navigate to WordPress admin -> Plugins and activate it.
56
-
57
- 3. Once the plugin is activated navigate to WordPress admin -> Nifty Options and configure the plugin settings.
58
-
59
- You can also Plugin can be also installed from your WordPress back-end. Just navigate to WordPress admin -> Plugins -> Add new. Here just enter the words Nifty Coming soon inside the search field and wait for the results.
60
- The plugin should be listed here and you can easily install and activate it.
61
-
62
- NOTE: Once you activate the plugin, logged in users will NOT see you're Coming soon page as they can work on the website while the visitors/guest are redirected to Coming soon page.
63
-
64
-
65
- == Frequently Asked Questions ==
66
- Here are some of the questions asked in the past.
67
-
68
- 1.) I have installed the plugin but I can't see my Coming soon page?
69
-
70
- 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.
71
-
72
-
73
-
74
- == Screenshots ==
75
- 1. Coming Soon Plugin in action
76
- 2. You can setup desired fonts, background slider images, pattern overlay and opacity.
77
- 3. General settings preview
78
- 4. Design and layout settings preview
79
-
80
- == Changelog ==
81
-
82
- = 2.0.2 =
83
- * Implement local webfonts
84
- * Minor bug fixes
85
-
86
- = 2.0.1 =
87
- * WP compatibility check
88
- * Minor bug fixes
89
-
90
- = 2.0.0 =
91
- * WP compatibility check
92
- * Few bug fixes
93
-
94
- = 1.63 =
95
- * 2021/01/29
96
- * minor update
97
-
98
- = 1.62 =
99
- * 2020/12/08
100
- * fixes for WP v5.6
101
-
102
- = 1.60 =
103
- * 2020/10/17
104
- * minor update
105
-
106
- = 1.58 =
107
- * 2020/08/25
108
- * security fixes
109
-
110
- = 1.57 =
111
- * 2020/06/23
112
- * bug fixes
113
-
114
- = 1.56 =
115
- * 2019/08/07
116
- * NotificationX integration
117
- * bug fix with notification - we apologize :(
118
-
119
- = 1.54 =
120
- * 2019/06/10
121
- * bug fixes
122
-
123
- = 1.52 =
124
- * 2019/05/27
125
- * removed weForms
126
- * 25% discount on all themes
127
-
128
- = 1.50 =
129
- * 2019/05/19
130
- * OptionTree security fix
131
-
132
- = 1.45 =
133
- * 2019/02/19
134
- * 20k installs hit on 2018/12/18 with 101,500 downloads
135
- * minor fixes and updates
136
-
137
- = 1.42 =
138
- * 2018/11/27
139
- * minor vulnerability removed
140
- * few bugs fixed
141
-
142
- = 1.40 =
143
- * 2018/11/20
144
- * new: weForms integration - create any kind of form you need on the coming soon page
145
-
146
- = 1.35 =
147
- * 2018/10/29
148
- * 10k installs & 80.2k downloads
149
- * fixed: hiding contact and social icons section
150
- * fixed: a lot of minor stuff, mainly optimizations
151
- * new: countdown timer color picker x2
152
- * new: Vimeo social icon
153
-
154
- = 1.3 =
155
- * 2018/06/13
156
- * 10k installs & 54.5k downloads
157
- * a lot of minor bug fixes
158
- * new: support for W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache
159
- * new: page meta description & page meta title
160
- * new: transparent pattern overlay aka disable overlay
161
- * new: support for custom login URLs like /login/
162
- * new: alert() for successful newsletter signup
163
- * update: max 4 images in slider
164
-
165
- = 1.2 =
166
- * 2018/03/06
167
- * 9k installs & 34.5k downloads
168
- * a lot of minor fixes
169
- * started advertising PRO themes
170
- * fixed countdown clock
171
- * fixed subscribe form
172
- * unused social icons can now be hidden
173
-
174
- = 1.1.3 =
175
- * 2017/12/28
176
- * WebFactory took over development
177
- * 5k installs & 22k downloads
178
- * minor cleanup
179
-
180
- = 1.1.2 =
181
- * 2017/12/14
182
- * Maintenance update
183
- * Fixed missing hex color field in color picker tool
184
- * Fixed small admin menu issue with focus state on Chrome
185
- * Fixed small typo related to transition time
186
- * Small enhancements
187
-
188
- = 1.1.1 =
189
- * Fixed timing issue with Vegas slider
190
- * Added option to define transition effects time
191
-
192
- = 1.1.0 =
193
- * Vegas Background slider updated to the latest version
194
- * New background animations and options
195
- * Fixed bug with content slider and social links being disabled
196
- * Resolved issue with WP Total cache on specific nginx configurations
197
- * Redirect method restructured
198
- * Mobile user experience optimization
199
- * Small enhancements and code optimization
200
-
201
- = 1.0.9 =
202
- * 2017/11/28
203
- * Fixed small bug with URL of Coming soon notice on the Frontpage Admin bar
204
- * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
205
- * You can now preview your Coming soon page from the admin menu using the "Live Preview" button in the header.
206
- * Added Pinterest and Instagram icons
207
- * Other small enhancements
208
-
209
- = 1.0.8 =
210
- * Added the option to disable Logo and display Site title or remove both
211
- * Added option for setting up font for Site title option
212
- * New background slider demo images. Curtesy of Mia Baker, Sabri Tuzcu
213
- * Small enhancements and tweaks
214
-
215
- = 1.0.7 =
216
- * Added option for embedding MailChimp or any custom Sign-up form to be used instead of the plugin built it subscription form.
217
- * Small styling enhancements
218
-
219
- = 1.0.6 =
220
- * Additional CSS field added back
221
- * Fixed language bug reported by user
222
- * Small enhancements
223
-
224
- = 1.0.5 =
225
- * Add option for disabling text animation
226
- * Small enhancements
227
-
228
- = 1.0.4 =
229
- * Fixed issues with email address that is used for receiving subscription form data
230
- * small adjustments
231
-
232
- = 1.0.3 =
233
- * Fixed small issues with the logo path
234
-
235
- = 1.0.2 =
236
- * Added translation translation for countdown elements
237
- * Optimized plugin code
238
-
239
- = 1.0.1 =
240
- * Fixed Jquery loading specific issues.
241
- * Added new settings
242
-
243
- = 1.0.1 =
244
- * Fixed some small styling issues.
245
-
246
- = 1.0.0 =
247
- * 2016/07/19
248
- * First release.
 
 
 
 
1
+ === Coming Soon & Maintenance Mode Page ===
2
+
3
+ Contributors: wpconcern, maneshtimilsina, rabmalin
4
+ Donate link: https://wpconcern.com/plugins/nifty-coming-soon-and-under-construction-page/
5
+ Tags: coming soon, coming soon page, launch page, maintenance mode, maintenance page, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance, maintenance mode with countdown timer, maintenance mode with timer, coming soon plugin, wp coming soon, wordpress under construction, under construction page, wp maintenance, wordpress coming soon page, simple maintenance mode, custom coming soon, custom maintenance mode
6
+ Tested up to: 6.0
7
+ License: GPLv3
8
+ License URI: http://www.gnu.org/licenses/gpl-2.0.html
9
+ Stable tag: 2.0.3
10
+ Requires PHP: 5.6
11
+ Requires at least: 4.9
12
+
13
+ Nifty Coming Soon & Maintenance Page creates awesome Coming Soon & Maintenance Pages with premium features for free.
14
+
15
+ == Description ==
16
+
17
+ Simple and easy to setup Coming soon, Under Construction and Maintenance page plugin will help you in creating amazing and animated Coming soon pages with all the needed features.
18
+
19
+ Coming Soon and Maintenance Mode plugin features responsive design and will adapt to any device. You can setup background slider with overlay pattern and opacity. Easily alter animated text on the coming soon page and use the built in count down timer, subscription form and more.
20
+
21
+ You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
22
+
23
+ ### Main Features
24
+
25
+ * Responsive and modern coming soon page design
26
+ * All section editable from plugin options panel
27
+ * Countdown timer
28
+ * Animated coming soon text messages
29
+ * Background slider with pattern overlay and opacity
30
+ * 16 Background slider animations to choose from
31
+ * Solid color background mode
32
+ * Option to turn on/off any section
33
+ * Preloader
34
+ * Live Preview (you can preview your Coming soon page without the need to log out or use another browser)
35
+ * 300+ Google fonts
36
+ * Font icons included
37
+ * Built it Subscription form
38
+ * Option to add MailChimp or any other Sign-up form to the coming soon page
39
+ * Coming soon admin bar notification
40
+ * Translation options included
41
+
42
+ 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.
43
+
44
+ The plugin should work with any WordPress theme and the installation and setup are really straight forward.
45
+
46
+ 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. :)
47
+
48
+
49
+ == Installation ==
50
+
51
+ You can install this plugin in two way. The manual way:
52
+
53
+ 1. Upload the plugin folder to the `/wp-content/plugins/` directory, or install the plugin through the WordPress plugins screen directly by uploading it in .zip format.
54
+
55
+ 2. Then just navigate to WordPress admin -> Plugins and activate it.
56
+
57
+ 3. Once the plugin is activated navigate to WordPress admin -> Nifty Options and configure the plugin settings.
58
+
59
+ You can also Plugin can be also installed from your WordPress back-end. Just navigate to WordPress admin -> Plugins -> Add new. Here just enter the words Nifty Coming soon inside the search field and wait for the results.
60
+ The plugin should be listed here and you can easily install and activate it.
61
+
62
+ NOTE: Once you activate the plugin, logged in users will NOT see you're Coming soon page as they can work on the website while the visitors/guest are redirected to Coming soon page.
63
+
64
+
65
+ == Frequently Asked Questions ==
66
+ Here are some of the questions asked in the past.
67
+
68
+ 1.) I have installed the plugin but I can't see my Coming soon page?
69
+
70
+ 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.
71
+
72
+
73
+
74
+ == Screenshots ==
75
+ 1. Coming Soon Plugin in action
76
+ 2. You can setup desired fonts, background slider images, pattern overlay and opacity.
77
+ 3. General settings preview
78
+ 4. Design and layout settings preview
79
+
80
+ == Changelog ==
81
+
82
+ = 2.0.3 =
83
+ * Fix slider
84
+ * Minor bug fixes
85
+
86
+ = 2.0.2 =
87
+ * Implement local webfonts
88
+ * Minor bug fixes
89
+
90
+ = 2.0.1 =
91
+ * WP compatibility check
92
+ * Minor bug fixes
93
+
94
+ = 2.0.0 =
95
+ * WP compatibility check
96
+ * Few bug fixes
97
+
98
+ = 1.63 =
99
+ * 2021/01/29
100
+ * minor update
101
+
102
+ = 1.62 =
103
+ * 2020/12/08
104
+ * fixes for WP v5.6
105
+
106
+ = 1.60 =
107
+ * 2020/10/17
108
+ * minor update
109
+
110
+ = 1.58 =
111
+ * 2020/08/25
112
+ * security fixes
113
+
114
+ = 1.57 =
115
+ * 2020/06/23
116
+ * bug fixes
117
+
118
+ = 1.56 =
119
+ * 2019/08/07
120
+ * NotificationX integration
121
+ * bug fix with notification - we apologize :(
122
+
123
+ = 1.54 =
124
+ * 2019/06/10
125
+ * bug fixes
126
+
127
+ = 1.52 =
128
+ * 2019/05/27
129
+ * removed weForms
130
+ * 25% discount on all themes
131
+
132
+ = 1.50 =
133
+ * 2019/05/19
134
+ * OptionTree security fix
135
+
136
+ = 1.45 =
137
+ * 2019/02/19
138
+ * 20k installs hit on 2018/12/18 with 101,500 downloads
139
+ * minor fixes and updates
140
+
141
+ = 1.42 =
142
+ * 2018/11/27
143
+ * minor vulnerability removed
144
+ * few bugs fixed
145
+
146
+ = 1.40 =
147
+ * 2018/11/20
148
+ * new: weForms integration - create any kind of form you need on the coming soon page
149
+
150
+ = 1.35 =
151
+ * 2018/10/29
152
+ * 10k installs & 80.2k downloads
153
+ * fixed: hiding contact and social icons section
154
+ * fixed: a lot of minor stuff, mainly optimizations
155
+ * new: countdown timer color picker x2
156
+ * new: Vimeo social icon
157
+
158
+ = 1.3 =
159
+ * 2018/06/13
160
+ * 10k installs & 54.5k downloads
161
+ * a lot of minor bug fixes
162
+ * new: support for W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache
163
+ * new: page meta description & page meta title
164
+ * new: transparent pattern overlay aka disable overlay
165
+ * new: support for custom login URLs like /login/
166
+ * new: alert() for successful newsletter signup
167
+ * update: max 4 images in slider
168
+
169
+ = 1.2 =
170
+ * 2018/03/06
171
+ * 9k installs & 34.5k downloads
172
+ * a lot of minor fixes
173
+ * started advertising PRO themes
174
+ * fixed countdown clock
175
+ * fixed subscribe form
176
+ * unused social icons can now be hidden
177
+
178
+ = 1.1.3 =
179
+ * 2017/12/28
180
+ * WebFactory took over development
181
+ * 5k installs & 22k downloads
182
+ * minor cleanup
183
+
184
+ = 1.1.2 =
185
+ * 2017/12/14
186
+ * Maintenance update
187
+ * Fixed missing hex color field in color picker tool
188
+ * Fixed small admin menu issue with focus state on Chrome
189
+ * Fixed small typo related to transition time
190
+ * Small enhancements
191
+
192
+ = 1.1.1 =
193
+ * Fixed timing issue with Vegas slider
194
+ * Added option to define transition effects time
195
+
196
+ = 1.1.0 =
197
+ * Vegas Background slider updated to the latest version
198
+ * New background animations and options
199
+ * Fixed bug with content slider and social links being disabled
200
+ * Resolved issue with WP Total cache on specific nginx configurations
201
+ * Redirect method restructured
202
+ * Mobile user experience optimization
203
+ * Small enhancements and code optimization
204
+
205
+ = 1.0.9 =
206
+ * 2017/11/28
207
+ * Fixed small bug with URL of Coming soon notice on the Frontpage Admin bar
208
+ * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
209
+ * You can now preview your Coming soon page from the admin menu using the "Live Preview" button in the header.
210
+ * Added Pinterest and Instagram icons
211
+ * Other small enhancements
212
+
213
+ = 1.0.8 =
214
+ * Added the option to disable Logo and display Site title or remove both
215
+ * Added option for setting up font for Site title option
216
+ * New background slider demo images. Curtesy of Mia Baker, Sabri Tuzcu
217
+ * Small enhancements and tweaks
218
+
219
+ = 1.0.7 =
220
+ * Added option for embedding MailChimp or any custom Sign-up form to be used instead of the plugin built it subscription form.
221
+ * Small styling enhancements
222
+
223
+ = 1.0.6 =
224
+ * Additional CSS field added back
225
+ * Fixed language bug reported by user
226
+ * Small enhancements
227
+
228
+ = 1.0.5 =
229
+ * Add option for disabling text animation
230
+ * Small enhancements
231
+
232
+ = 1.0.4 =
233
+ * Fixed issues with email address that is used for receiving subscription form data
234
+ * small adjustments
235
+
236
+ = 1.0.3 =
237
+ * Fixed small issues with the logo path
238
+
239
+ = 1.0.2 =
240
+ * Added translation translation for countdown elements
241
+ * Optimized plugin code
242
+
243
+ = 1.0.1 =
244
+ * Fixed Jquery loading specific issues.
245
+ * Added new settings
246
+
247
+ = 1.0.1 =
248
+ * Fixed some small styling issues.
249
+
250
+ = 1.0.0 =
251
+ * 2016/07/19
252
+ * First release.
template/assets/js/scripts.js CHANGED
@@ -1,5 +1,16 @@
1
  // Nifty Coming Soon and Maintenance mode by Davor Veselinovic / Additional JavaScripts //
2
 
 
 
 
 
 
 
 
 
 
 
 
3
  jQuery(document).ready(function($){
4
 
5
  jQuery('.bxslider').bxSlider({
@@ -9,12 +20,8 @@ jQuery('.bxslider').bxSlider({
9
 
10
  });
11
 
12
- // Preloader //
13
 
14
  jQuery(document).ready(function($) {
15
- $(window).on('load', function(){
16
- $('#preloader').fadeOut('fast',function(){$(this).remove();});
17
- });
18
 
19
  // Email Form Settings //
20
 
@@ -35,7 +42,7 @@ $("#contact").submit(function(e){
35
  success: function(){
36
  //$('.nifty-success').fadeIn(1000);
37
  //$('.nifty-success').delay(3000).fadeOut(1000);
38
- alert($('.nifty-success').first().text());
39
  }
40
  });
41
  } else{
@@ -47,4 +54,4 @@ $("#contact").submit(function(e){
47
  return false;
48
  });
49
 
50
- });
1
  // Nifty Coming Soon and Maintenance mode by Davor Veselinovic / Additional JavaScripts //
2
 
3
+ // Preloader //
4
+ if (document.querySelector('#preloader')) {
5
+ window.addEventListener('load', function () {
6
+ jQuery(document).ready(function ($) {
7
+ $('#preloader').fadeOut('slow', function () {
8
+ $(this).remove();
9
+ });
10
+ });
11
+ });
12
+ }
13
+
14
  jQuery(document).ready(function($){
15
 
16
  jQuery('.bxslider').bxSlider({
20
 
21
  });
22
 
 
23
 
24
  jQuery(document).ready(function($) {
 
 
 
25
 
26
  // Email Form Settings //
27
 
42
  success: function(){
43
  //$('.nifty-success').fadeIn(1000);
44
  //$('.nifty-success').delay(3000).fadeOut(1000);
45
+ alert($('.nifty-success').first().text());
46
  }
47
  });
48
  } else{
54
  return false;
55
  });
56
 
57
+ });
template/index.php CHANGED
@@ -55,7 +55,7 @@ $nifty_timer = ot_get_option('display_count_down_timer');
55
  echo "<link href='". wptt_get_webfont_url( "https://fonts.googleapis.com/css2?family={$font}&display=swap&subset=latin,latin-ext" ) . "' rel='stylesheet' type='text/css'>";
56
  }
57
  }
58
-
59
  echo "<style>";
60
  echo "body {background:" . $background_color . " !important;}";
61
  echo '#days, #hours, #minutes, #seconds { color: ' . (ot_get_option('countdown_font_color') ? ot_get_option('countdown_font_color') : '#ffffff') . '; }';
@@ -146,7 +146,7 @@ $nifty_timer = ot_get_option('display_count_down_timer');
146
  $slide_index = 0;
147
  if ('off' != $navigation) {
148
  $custom_signup_form = ot_get_option( 'insert_custom_signup_form' );
149
-
150
  echo '<div id="slider-navigation">';
151
  if ( $nifty_form != 'off' || strlen($custom_signup_form) > 0 ) {
152
  echo '<a data-slide-index="' . ($slide_index) . '" href=""><span aria-hidden="true" class="icon-paperplane"></span></a>';
@@ -387,10 +387,44 @@ $nifty_timer = ot_get_option('display_count_down_timer');
387
  $pattern_opacity = ot_get_option('pattern_overlay_opacity');
388
  $pattern_lib = OT_URL . '/assets/images/patterns/';
389
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
390
  echo "<script>
391
  jQuery(document).ready(function($){
392
  $('" . $body . "').vegas({
393
- animation: 'random',
394
  cover: true,
395
  animationDuration: '" . $bck_animation_time . "',
396
  timer: false,
@@ -398,12 +432,7 @@ $nifty_timer = ot_get_option('display_count_down_timer');
398
  delay:" . $slider_time . ",
399
  opacity:" . $pattern_opacity . ",
400
  overlay:'" . $pattern_lib . $pattern . "',
401
- slides: [
402
- { src:'" . $slide_1 . "'},
403
- { src:'" . $slide_2 . "'},
404
- { src:'" . $slide_3 . "'},
405
- { src:'" . $slide_4 . "'}
406
- ]
407
  }); });
408
  </script>";
409
  } else { }
55
  echo "<link href='". wptt_get_webfont_url( "https://fonts.googleapis.com/css2?family={$font}&display=swap&subset=latin,latin-ext" ) . "' rel='stylesheet' type='text/css'>";
56
  }
57
  }
58
+
59
  echo "<style>";
60
  echo "body {background:" . $background_color . " !important;}";
61
  echo '#days, #hours, #minutes, #seconds { color: ' . (ot_get_option('countdown_font_color') ? ot_get_option('countdown_font_color') : '#ffffff') . '; }';
146
  $slide_index = 0;
147
  if ('off' != $navigation) {
148
  $custom_signup_form = ot_get_option( 'insert_custom_signup_form' );
149
+
150
  echo '<div id="slider-navigation">';
151
  if ( $nifty_form != 'off' || strlen($custom_signup_form) > 0 ) {
152
  echo '<a data-slide-index="' . ($slide_index) . '" href=""><span aria-hidden="true" class="icon-paperplane"></span></a>';
387
  $pattern_opacity = ot_get_option('pattern_overlay_opacity');
388
  $pattern_lib = OT_URL . '/assets/images/patterns/';
389
 
390
+ $slides_array = array();
391
+
392
+ if ( ! empty( $slide_1 ) ) {
393
+ $slides_array[] = array(
394
+ 'src' => $slide_1,
395
+ );
396
+ }
397
+ if ( ! empty( $slide_2 ) ) {
398
+ $slides_array[] = array(
399
+ 'src' => $slide_2,
400
+ );
401
+ }
402
+ if ( ! empty( $slide_3 ) ) {
403
+ $slides_array[] = array(
404
+ 'src' => $slide_3,
405
+ );
406
+ }
407
+ if ( ! empty( $slide_4 ) ) {
408
+ $slides_array[] = array(
409
+ 'src' => $slide_4,
410
+ );
411
+ }
412
+
413
+ $slides_string = json_encode( $slides_array );
414
+
415
+ $single_mode = ( count( $slides_array ) === 1 ) ? true : false;
416
+
417
+ $sanimation = 'random';
418
+
419
+ if ( $single_mode ) {
420
+ $sanimation = 'kenburns';
421
+ $bck_animation = 'kenburns';
422
+ }
423
+
424
  echo "<script>
425
  jQuery(document).ready(function($){
426
  $('" . $body . "').vegas({
427
+ animation: '" . $sanimation . "',
428
  cover: true,
429
  animationDuration: '" . $bck_animation_time . "',
430
  timer: false,
432
  delay:" . $slider_time . ",
433
  opacity:" . $pattern_opacity . ",
434
  overlay:'" . $pattern_lib . $pattern . "',
435
+ slides: " . $slides_string . "
 
 
 
 
 
436
  }); });
437
  </script>";
438
  } else { }