Coming Soon, Under Construction & Maintenance Page - Version 1.3

Version Description

  • 2018/06/13
  • 10k installs & 54.5k downloads
  • a lot of minor bug fixes
  • new: support for W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache
  • new: page meta description & page meta title
  • new: transparent pattern overlay aka disable overlay
  • new: support for custom login URLs like /login/
  • new: alert() for succesfull newsletter signup
  • update: max 4 images in slider
Download this release

Release Info

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

Code changes from version 1.2 to 1.3

Files changed (68) hide show
  1. admin/assets/css/ot-admin.css +21 -2
  2. admin/assets/images/patterns/17.png +0 -0
  3. admin/assets/images/themes/pro/aeroplane-company.jpg +0 -0
  4. admin/assets/images/themes/pro/animated-clock.jpg +0 -0
  5. admin/assets/images/themes/pro/beach.jpg +0 -0
  6. admin/assets/images/themes/pro/bicycle-race.jpg +0 -0
  7. admin/assets/images/themes/pro/bitcoin-miners.jpg +0 -0
  8. admin/assets/images/themes/pro/blogging.jpg +0 -0
  9. admin/assets/images/themes/pro/book-lovers.jpg +0 -0
  10. admin/assets/images/themes/pro/business-company.jpg +0 -0
  11. admin/assets/images/themes/pro/business.jpg +0 -0
  12. admin/assets/images/themes/pro/clouds-screensaver-video.jpg +0 -0
  13. admin/assets/images/themes/pro/coffee-shop.jpg +0 -0
  14. admin/assets/images/themes/pro/cold-lake.jpg +0 -0
  15. admin/assets/images/themes/pro/default.jpg +0 -0
  16. admin/assets/images/themes/pro/dental-clinic.jpg +0 -0
  17. admin/assets/images/themes/pro/dog-training-and-behavior-consulting.jpg +0 -0
  18. admin/assets/images/themes/pro/flower-shop.jpg +0 -0
  19. admin/assets/images/themes/pro/food-blog.jpg +0 -0
  20. admin/assets/images/themes/pro/homemade-chocolate-gifts.jpg +0 -0
  21. admin/assets/images/themes/pro/interior-design.jpg +0 -0
  22. admin/assets/images/themes/pro/journey-video.jpg +0 -0
  23. admin/assets/images/themes/pro/lego-bricks.jpg +0 -0
  24. admin/assets/images/themes/pro/lonely-road.jpg +0 -0
  25. admin/assets/images/themes/pro/luxury-car.jpg +0 -0
  26. admin/assets/images/themes/pro/maintenance-mode.jpg +0 -0
  27. admin/assets/images/themes/pro/makeup-artist-training.jpg +0 -0
  28. admin/assets/images/themes/pro/mobile-designer.jpg +0 -0
  29. admin/assets/images/themes/pro/modern-blog.jpg +0 -0
  30. admin/assets/images/themes/pro/modern-office.jpg +0 -0
  31. admin/assets/images/themes/pro/mountain-slide.jpg +0 -0
  32. admin/assets/images/themes/pro/mountain.jpg +0 -0
  33. admin/assets/images/themes/pro/movie-trailer-video.jpg +0 -0
  34. admin/assets/images/themes/pro/nature.jpg +0 -0
  35. admin/assets/images/themes/pro/office-meeting-video.jpg +0 -0
  36. admin/assets/images/themes/pro/office-theme.jpg +0 -0
  37. admin/assets/images/themes/pro/online-learning.jpg +0 -0
  38. admin/assets/images/themes/pro/pancake-house.jpg +0 -0
  39. admin/assets/images/themes/pro/parenting.jpg +0 -0
  40. admin/assets/images/themes/pro/photography.jpg +0 -0
  41. admin/assets/images/themes/pro/running-blog.jpg +0 -0
  42. admin/assets/images/themes/pro/running-video.jpg +0 -0
  43. admin/assets/images/themes/pro/shoes-store.jpg +0 -0
  44. admin/assets/images/themes/pro/simple-beige-design.jpg +0 -0
  45. admin/assets/images/themes/pro/snow-screensaver-video.jpg +0 -0
  46. admin/assets/images/themes/pro/snowboarding-blog.jpg +0 -0
  47. admin/assets/images/themes/pro/snowy-mountain.jpg +0 -0
  48. admin/assets/images/themes/pro/spring.jpg +0 -0
  49. admin/assets/images/themes/pro/the-big-city-newsletter.jpg +0 -0
  50. admin/assets/images/themes/pro/the-sunny-view.jpg +0 -0
  51. admin/assets/images/themes/pro/travel-agency.jpg +0 -0
  52. admin/assets/images/themes/pro/travel-blog.jpg +0 -0
  53. admin/assets/images/themes/pro/tulips.jpg +0 -0
  54. admin/assets/images/themes/pro/video-production.jpg +0 -0
  55. admin/assets/images/themes/pro/webinar.jpg +0 -0
  56. admin/assets/images/themes/pro/wedding-blog.jpg +0 -0
  57. admin/assets/images/themes/pro/white-orchids.jpg +0 -0
  58. admin/assets/images/themes/pro/working-out.jpg +0 -0
  59. admin/assets/images/themes/pro/workplace.jpg +0 -0
  60. admin/assets/images/themes/pro/writing-service-video.jpg +0 -0
  61. admin/assets/slideshow/4.jpg +0 -0
  62. admin/includes/ot-functions-admin.php +21 -1
  63. admin/includes/ot-settings-api.php +7 -2
  64. admin/main-options.php +721 -464
  65. nifty-coming-soon.php +26 -6
  66. readme.txt +19 -8
  67. template/assets/js/scripts.js +6 -4
  68. template/index.php +8 -6
admin/assets/css/ot-admin.css CHANGED
@@ -9,6 +9,24 @@
9
  border: thin solid transparent;
10
  position: relative;
11
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
12
  .format-setting-wrap .theme-thumb:nth-child(3n + 1) {
13
  margin-left: 0;
14
  }
@@ -2317,7 +2335,7 @@ li ul .format-setting-label {
2317
  }
2318
  select.option-tree-ui-select {
2319
  cursor: pointer;
2320
- filter: alpha(opacity: 0);
2321
  font-size: 14px;
2322
  height: 29px;
2323
  margin: 0;
@@ -2407,8 +2425,9 @@ select.option-tree-ui-select option {
2407
  float: left;
2408
  margin: 0 10px 10px 0px;
2409
  }
 
2410
  .type-radio-image .option-tree-ui-radio-images img {
2411
- background: #fff;
2412
  border: 1px solid #ccc;
2413
  cursor: pointer;
2414
  opacity: 0.8;
9
  border: thin solid transparent;
10
  position: relative;
11
  }
12
+ #rate-plugin {
13
+ left: 150px;
14
+ margin: 10px 20px 10px 150px;
15
+ padding: 15px;
16
+ background-color: #79042e;
17
+ width: calc(100% - 400px);
18
+ font-size: 16px;
19
+ color: #ffffff;
20
+ }
21
+
22
+ #rate-plugin a {
23
+ color: #ffffff;
24
+ }
25
+
26
+ #option-tree-settings-api #rate-plugin p {
27
+ margin: 10px 0 0 0 !important;
28
+ }
29
+
30
  .format-setting-wrap .theme-thumb:nth-child(3n + 1) {
31
  margin-left: 0;
32
  }
2335
  }
2336
  select.option-tree-ui-select {
2337
  cursor: pointer;
2338
+ filter: alpha(opacity= 0);
2339
  font-size: 14px;
2340
  height: 29px;
2341
  margin: 0;
2425
  float: left;
2426
  margin: 0 10px 10px 0px;
2427
  }
2428
+
2429
  .type-radio-image .option-tree-ui-radio-images img {
2430
+ background: #c2c2c2;
2431
  border: 1px solid #ccc;
2432
  cursor: pointer;
2433
  opacity: 0.8;
admin/assets/images/patterns/17.png ADDED
Binary file
admin/assets/images/themes/pro/aeroplane-company.jpg CHANGED
Binary file
admin/assets/images/themes/pro/animated-clock.jpg CHANGED
Binary file
admin/assets/images/themes/pro/beach.jpg ADDED
Binary file
admin/assets/images/themes/pro/bicycle-race.jpg CHANGED
Binary file
admin/assets/images/themes/pro/bitcoin-miners.jpg CHANGED
Binary file
admin/assets/images/themes/pro/blogging.jpg CHANGED
Binary file
admin/assets/images/themes/pro/book-lovers.jpg CHANGED
Binary file
admin/assets/images/themes/pro/business-company.jpg CHANGED
Binary file
admin/assets/images/themes/pro/business.jpg ADDED
Binary file
admin/assets/images/themes/pro/clouds-screensaver-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/coffee-shop.jpg CHANGED
Binary file
admin/assets/images/themes/pro/cold-lake.jpg ADDED
Binary file
admin/assets/images/themes/pro/default.jpg CHANGED
Binary file
admin/assets/images/themes/pro/dental-clinic.jpg CHANGED
Binary file
admin/assets/images/themes/pro/dog-training-and-behavior-consulting.jpg CHANGED
Binary file
admin/assets/images/themes/pro/flower-shop.jpg CHANGED
Binary file
admin/assets/images/themes/pro/food-blog.jpg ADDED
Binary file
admin/assets/images/themes/pro/homemade-chocolate-gifts.jpg CHANGED
Binary file
admin/assets/images/themes/pro/interior-design.jpg CHANGED
Binary file
admin/assets/images/themes/pro/journey-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/lego-bricks.jpg CHANGED
Binary file
admin/assets/images/themes/pro/lonely-road.jpg CHANGED
Binary file
admin/assets/images/themes/pro/luxury-car.jpg CHANGED
Binary file
admin/assets/images/themes/pro/maintenance-mode.jpg CHANGED
Binary file
admin/assets/images/themes/pro/makeup-artist-training.jpg CHANGED
Binary file
admin/assets/images/themes/pro/mobile-designer.jpg CHANGED
Binary file
admin/assets/images/themes/pro/modern-blog.jpg CHANGED
Binary file
admin/assets/images/themes/pro/modern-office.jpg CHANGED
Binary file
admin/assets/images/themes/pro/mountain-slide.jpg CHANGED
Binary file
admin/assets/images/themes/pro/mountain.jpg CHANGED
Binary file
admin/assets/images/themes/pro/movie-trailer-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/nature.jpg CHANGED
Binary file
admin/assets/images/themes/pro/office-meeting-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/office-theme.jpg CHANGED
Binary file
admin/assets/images/themes/pro/online-learning.jpg CHANGED
Binary file
admin/assets/images/themes/pro/pancake-house.jpg CHANGED
Binary file
admin/assets/images/themes/pro/parenting.jpg CHANGED
Binary file
admin/assets/images/themes/pro/photography.jpg ADDED
Binary file
admin/assets/images/themes/pro/running-blog.jpg CHANGED
Binary file
admin/assets/images/themes/pro/running-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/shoes-store.jpg CHANGED
Binary file
admin/assets/images/themes/pro/simple-beige-design.jpg CHANGED
Binary file
admin/assets/images/themes/pro/snow-screensaver-video.jpg ADDED
Binary file
admin/assets/images/themes/pro/snowboarding-blog.jpg CHANGED
Binary file
admin/assets/images/themes/pro/snowy-mountain.jpg ADDED
Binary file
admin/assets/images/themes/pro/spring.jpg ADDED
Binary file
admin/assets/images/themes/pro/the-big-city-newsletter.jpg CHANGED
Binary file
admin/assets/images/themes/pro/the-sunny-view.jpg ADDED
Binary file
admin/assets/images/themes/pro/travel-agency.jpg CHANGED
Binary file
admin/assets/images/themes/pro/travel-blog.jpg CHANGED
Binary file
admin/assets/images/themes/pro/tulips.jpg ADDED
Binary file
admin/assets/images/themes/pro/video-production.jpg CHANGED
Binary file
admin/assets/images/themes/pro/webinar.jpg CHANGED
Binary file
admin/assets/images/themes/pro/wedding-blog.jpg CHANGED
Binary file
admin/assets/images/themes/pro/white-orchids.jpg ADDED
Binary file
admin/assets/images/themes/pro/working-out.jpg ADDED
Binary file
admin/assets/images/themes/pro/workplace.jpg CHANGED
Binary file
admin/assets/images/themes/pro/writing-service-video.jpg ADDED
Binary file
admin/assets/slideshow/4.jpg ADDED
Binary file
admin/includes/ot-functions-admin.php CHANGED
@@ -2040,7 +2040,27 @@ if ( ! function_exists( 'ot_save_settings' ) ) {
2040
 
2041
  update_option( ot_settings_id(), $settings );
2042
  $message = 'success';
2043
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2044
  }
2045
 
2046
  /* redirect */
2040
 
2041
  update_option( ot_settings_id(), $settings );
2042
  $message = 'success';
2043
+
2044
+ // bust cache in 3rd party plugins
2045
+ if (function_exists('w3tc_pgcache_flush')) {
2046
+ w3tc_pgcache_flush();
2047
+ }
2048
+ if (function_exists('wp_cache_clear_cache')) {
2049
+ wp_cache_clear_cache();
2050
+ }
2051
+ if (class_exists('Endurance_Page_Cache')) {
2052
+ $epc = new Endurance_Page_Cache;
2053
+ $epc->purge_all();
2054
+ }
2055
+ if (class_exists('SG_CachePress_Supercacher') && method_exists('SG_CachePress_Supercacher', 'purge_cache')) {
2056
+ SG_CachePress_Supercacher::purge_cache(true);
2057
+ }
2058
+ if (isset($GLOBALS['wp_fastest_cache']) && method_exists($GLOBALS['wp_fastest_cache'], 'deleteCache')) {
2059
+ $GLOBALS['wp_fastest_cache']->deleteCache(true);
2060
+ }
2061
+ if (is_callable(array('Swift_Performance_Cache', 'clear_all_cache'))) {
2062
+ Swift_Performance_Cache::clear_all_cache();
2063
+ }
2064
  }
2065
 
2066
  /* redirect */
admin/includes/ot-settings-api.php CHANGED
@@ -302,8 +302,13 @@ if ( ! class_exists( 'OT_Settings' ) ) {
302
 
303
  if ( $show_buttons )
304
  echo '<button class="option-tree-ui-button button button-primary right">' . $page['button_text'] . '</button>';
305
- echo '<a target="_blank" href="'. get_site_url().'/?get_preview=true"><div class="option-tree-ui-button button right">Live Preview</div></a>';
306
- echo '</div>';
 
 
 
 
 
307
 
308
 
309
 
302
 
303
  if ( $show_buttons )
304
  echo '<button class="option-tree-ui-button button button-primary right">' . $page['button_text'] . '</button>';
305
+ echo '<a target="_blank" href="'. get_site_url().'/?get_preview=true"><div class="option-tree-ui-button button right">Live Preview</div></a>';
306
+ $options = get_option('nifty_options');
307
+ if (empty($options['hide_notice']['rate'])) {
308
+ $dismiss_url = add_query_arg(array('action' => 'nifty_dismiss_notice', 'notice' => 'rate', 'redirect' => urlencode($_SERVER['REQUEST_URI'])), admin_url('admin.php'));
309
+ echo '<div id="rate-plugin">Please help us out by rating Nifty. It only takes a second &amp; it helps to keep the plugin going! <b>Thank you!</b><p><a target="_blank" href="https://wordpress.org/support/plugin/nifty-coming-soon-and-under-construction-page/reviews/#new-post" class="button button-primary">I want to help! Let\'s rate the plugin!</a> &nbsp;&nbsp; <a href="' . $dismiss_url . '">I\'ve already rated Nifty</a></p></div>';
310
+ }
311
+ echo '</div>';
312
 
313
 
314
 
admin/main-options.php CHANGED
@@ -16,6 +16,8 @@ add_action( 'init', 'nifty_cs_custom_theme_options' );
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;
@@ -27,453 +29,672 @@ function nifty_cs_custom_theme_options() {
27
  $saved_settings = get_option( ot_settings_id(), array() );
28
 
29
 
30
- // Google Fonts support
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
31
 
32
 
33
  function ot_type_custom_themes() {
34
- $themes =
35
- array (
36
- 0 =>
37
- array (
38
- 'type' => 'CSMM PRO',
39
- 'version' => '5.005',
40
- 'last_edit' => 'Thu, 22 Feb 2018 18:45:00 +0000',
41
- 'name' => 'Aeroplane Company',
42
- 'description' => 'Andrea',
43
- 'frontpage' => '1',
44
- 'status' => 'pro',
45
- 'name_clean' => 'aeroplane-company',
46
- ),
47
- 1 =>
48
- array (
49
- 'type' => 'CSMM PRO',
50
- 'version' => '15.05',
51
- 'last_edit' => 'Fri, 02 Mar 2018 12:43:04 +0000',
52
- 'name' => 'Animated Clock',
53
- 'description' => 'Andrea',
54
- 'frontpage' => '0',
55
- 'status' => 'pro',
56
- 'name_clean' => 'animated-clock',
57
- ),
58
- 2 =>
59
- array (
60
- 'type' => 'CSMM PRO',
61
- 'version' => '5.05',
62
- 'last_edit' => 'Wed, 28 Feb 2018 10:30:46 +0000',
63
- 'name' => 'Bicycle Race',
64
- 'description' => 'Andrea',
65
- 'frontpage' => '0',
66
- 'status' => 'agency',
67
- 'name_clean' => 'bicycle-race',
68
- ),
69
- 3 =>
70
- array (
71
- 'type' => 'CSMM PRO',
72
- 'version' => '5.005',
73
- 'last_edit' => 'Sat, 24 Feb 2018 11:48:50 +0000',
74
- 'name' => 'Bitcoin Miners',
75
- 'description' => '',
76
- 'frontpage' => '1',
77
- 'status' => 'agency',
78
- 'name_clean' => 'bitcoin-miners',
79
- ),
80
- 4 =>
81
- array (
82
- 'type' => 'CSMM PRO',
83
- 'version' => '5.005',
84
- 'last_edit' => 'Mon, 26 Feb 2018 18:01:26 +0000',
85
- 'name' => 'Blogging',
86
- 'description' => 'Andrea',
87
- 'frontpage' => '1',
88
- 'status' => 'agency',
89
- 'name_clean' => 'blogging',
90
- ),
91
- 5 =>
92
- array (
93
- 'type' => 'CSMM PRO',
94
- 'version' => '5.005',
95
- 'last_edit' => 'Tue, 27 Feb 2018 09:56:05 +0000',
96
- 'name' => 'Book Lovers',
97
- 'description' => 'Andrea',
98
- 'frontpage' => '1',
99
- 'status' => 'agency',
100
- 'name_clean' => 'book-lovers',
101
- ),
102
- 6 =>
103
- array (
104
- 'type' => 'CSMM PRO',
105
- 'version' => '5.001',
106
- 'last_edit' => 'Thu, 15 Feb 2018 16:24:58 +0000',
107
- 'name' => 'Business Company',
108
- 'description' => '',
109
- 'frontpage' => '0',
110
- 'status' => 'agency',
111
- 'name_clean' => 'business-company',
112
- ),
113
- 7 =>
114
- array (
115
- 'type' => 'CSMM PRO',
116
- 'version' => '5.005',
117
- 'last_edit' => 'Thu, 22 Feb 2018 18:45:40 +0000',
118
- 'name' => 'Coffee Shop',
119
- 'description' => 'Andrea',
120
- 'frontpage' => '1',
121
- 'status' => 'agency',
122
- 'name_clean' => 'coffee-shop',
123
- ),
124
- 8 =>
125
- array (
126
- 'type' => 'CSMM PRO',
127
- 'version' => '5.005',
128
- 'last_edit' => 'Mon, 26 Feb 2018 20:41:31 +0000',
129
- 'name' => 'Default',
130
- 'description' => 'Default settings, nothing more.',
131
- 'frontpage' => '0',
132
- 'status' => 'pro',
133
- 'name_clean' => 'default',
134
- ),
135
- 9 =>
136
- array (
137
- 'type' => 'CSMM PRO',
138
- 'version' => '15.05',
139
- 'last_edit' => 'Fri, 02 Mar 2018 13:12:54 +0000',
140
- 'name' => 'Dental Clinic',
141
- 'description' => 'Andrea',
142
- 'frontpage' => '1',
143
- 'status' => 'agency',
144
- 'name_clean' => 'dental-clinic',
145
- ),
146
- 10 =>
147
- array (
148
- 'type' => 'CSMM PRO',
149
- 'version' => '5.001',
150
- 'last_edit' => 'Tue, 20 Feb 2018 09:14:59 +0000',
151
- 'name' => 'Dog Training and Behavior Consulting',
152
- 'description' => '',
153
- 'frontpage' => '1',
154
- 'status' => 'agency',
155
- 'name_clean' => 'dog-training-and-behavior-consulting',
156
- ),
157
- 11 =>
158
- array (
159
- 'type' => 'CSMM PRO',
160
- 'version' => '15.05',
161
- 'last_edit' => 'Fri, 02 Mar 2018 12:33:55 +0000',
162
- 'name' => 'Flower Shop',
163
- 'description' => '',
164
- 'frontpage' => '1',
165
- 'status' => 'agency',
166
- 'name_clean' => 'flower-shop',
167
- ),
168
- 12 =>
169
- array (
170
- 'type' => 'CSMM PRO',
171
- 'version' => '5.05',
172
- 'last_edit' => 'Wed, 28 Feb 2018 11:20:03 +0000',
173
- 'name' => 'Homemade Chocolate Gifts',
174
- 'description' => 'Andrea',
175
- 'frontpage' => '0',
176
- 'status' => 'pro',
177
- 'name_clean' => 'homemade-chocolate-gifts',
178
- ),
179
- 13 =>
180
- array (
181
- 'type' => 'CSMM PRO',
182
- 'version' => '15.05',
183
- 'last_edit' => 'Fri, 02 Mar 2018 12:59:44 +0000',
184
- 'name' => 'Interior Design',
185
- 'description' => 'Andrea',
186
- 'frontpage' => '1',
187
- 'status' => 'agency',
188
- 'name_clean' => 'interior-design',
189
- ),
190
- 14 =>
191
- array (
192
- 'type' => 'CSMM PRO',
193
- 'version' => '5.005',
194
- 'last_edit' => 'Fri, 23 Feb 2018 12:01:58 +0000',
195
- 'name' => 'LEGO Bricks',
196
- 'description' => '',
197
- 'frontpage' => '1',
198
- 'status' => 'pro',
199
- 'name_clean' => 'lego-bricks',
200
- ),
201
- 15 =>
202
- array (
203
- 'type' => 'CSMM PRO',
204
- 'version' => '5.005',
205
- 'last_edit' => 'Fri, 23 Feb 2018 11:58:49 +0000',
206
- 'name' => 'Lonely Road',
207
- 'description' => 'Andrea',
208
- 'frontpage' => '1',
209
- 'status' => 'agency',
210
- 'name_clean' => 'lonely-road',
211
- ),
212
- 16 =>
213
- array (
214
- 'type' => 'CSMM PRO',
215
- 'version' => '5.001',
216
- 'last_edit' => 'Thu, 15 Feb 2018 18:05:56 +0000',
217
- 'name' => 'Luxury Car',
218
- 'description' => '',
219
- 'frontpage' => '1',
220
- 'status' => 'pro',
221
- 'name_clean' => 'luxury-car',
222
- ),
223
- 17 =>
224
- array (
225
- 'type' => 'CSMM PRO',
226
- 'version' => '5.005',
227
- 'last_edit' => 'Mon, 26 Feb 2018 18:31:18 +0000',
228
- 'name' => 'Maintenance Mode',
229
- 'description' => 'Andrea',
230
- 'frontpage' => '0',
231
- 'status' => 'pro',
232
- 'name_clean' => 'maintenance-mode',
233
- ),
234
- 18 =>
235
- array (
236
- 'type' => 'CSMM PRO',
237
- 'version' => '5.005',
238
- 'last_edit' => 'Mon, 26 Feb 2018 17:59:30 +0000',
239
- 'name' => 'Makeup Artist Training',
240
- 'description' => 'Andrea',
241
- 'frontpage' => '1',
242
- 'status' => 'agency',
243
- 'name_clean' => 'makeup-artist-training',
244
- ),
245
- 19 =>
246
- array (
247
- 'type' => 'CSMM PRO',
248
- 'version' => '15.05',
249
- 'last_edit' => 'Fri, 02 Mar 2018 11:54:45 +0000',
250
- 'name' => 'Mobile Designer',
251
- 'description' => 'Andrea',
252
- 'frontpage' => '0',
253
- 'status' => 'agency',
254
- 'name_clean' => 'mobile-designer',
255
- ),
256
- 20 =>
257
- array (
258
- 'type' => 'CSMM PRO',
259
- 'version' => '5.005',
260
- 'last_edit' => 'Mon, 26 Feb 2018 18:04:32 +0000',
261
- 'name' => 'Modern Blog',
262
- 'description' => '',
263
- 'frontpage' => '1',
264
- 'status' => 'pro',
265
- 'name_clean' => 'modern-blog',
266
- ),
267
- 21 =>
268
- array (
269
- 'type' => 'CSMM PRO',
270
- 'version' => '15.05',
271
- 'last_edit' => 'Fri, 02 Mar 2018 10:14:21 +0000',
272
- 'name' => 'Modern Office',
273
- 'description' => 'Andrea',
274
- 'frontpage' => '0',
275
- 'status' => 'agency',
276
- 'name_clean' => 'modern-office',
277
- ),
278
- 22 =>
279
- array (
280
- 'type' => 'CSMM PRO',
281
- 'version' => '5.001',
282
- 'last_edit' => 'Thu, 15 Feb 2018 18:56:47 +0000',
283
- 'name' => 'Mountain Slide',
284
- 'description' => '',
285
- 'frontpage' => '1',
286
- 'status' => 'pro',
287
- 'name_clean' => 'mountain-slide',
288
- ),
289
- 23 =>
290
- array (
291
- 'type' => 'CSMM PRO',
292
- 'version' => '5.05',
293
- 'last_edit' => 'Thu, 01 Mar 2018 10:49:52 +0000',
294
- 'name' => 'Mountain',
295
- 'description' => 'Andrea',
296
- 'frontpage' => '0',
297
- 'status' => 'pro',
298
- 'name_clean' => 'mountain',
299
- ),
300
- 24 =>
301
- array (
302
- 'type' => 'CSMM PRO',
303
- 'version' => '15.05',
304
- 'last_edit' => 'Fri, 02 Mar 2018 10:17:02 +0000',
305
- 'name' => 'Nature',
306
- 'description' => 'Andrea',
307
- 'frontpage' => '0',
308
- 'status' => 'agency',
309
- 'name_clean' => 'nature',
310
- ),
311
- 25 =>
312
- array (
313
- 'type' => 'CSMM PRO',
314
- 'version' => '15.05',
315
- 'last_edit' => 'Fri, 02 Mar 2018 12:35:44 +0000',
316
- 'name' => 'Office Theme',
317
- 'description' => '',
318
- 'frontpage' => '1',
319
- 'status' => 'agency',
320
- 'name_clean' => 'office-theme',
321
- ),
322
- 26 =>
323
- array (
324
- 'type' => 'CSMM PRO',
325
- 'version' => '5.005',
326
- 'last_edit' => 'Mon, 26 Feb 2018 18:07:28 +0000',
327
- 'name' => 'Online Learning',
328
- 'description' => 'Andrea',
329
- 'frontpage' => '1',
330
- 'status' => 'agency',
331
- 'name_clean' => 'online-learning',
332
- ),
333
- 27 =>
334
- array (
335
- 'type' => 'CSMM PRO',
336
- 'version' => '5.005',
337
- 'last_edit' => 'Mon, 26 Feb 2018 18:10:05 +0000',
338
- 'name' => 'Pancake House',
339
- 'description' => 'Andrea',
340
- 'frontpage' => '0',
341
- 'status' => 'pro',
342
- 'name_clean' => 'pancake-house',
343
- ),
344
- 28 =>
345
- array (
346
- 'type' => 'CSMM PRO',
347
- 'version' => '5.05',
348
- 'last_edit' => 'Wed, 28 Feb 2018 10:03:34 +0000',
349
- 'name' => 'Parenting',
350
- 'description' => 'Andrea',
351
- 'frontpage' => '0',
352
- 'status' => 'pro',
353
- 'name_clean' => 'parenting',
354
- ),
355
- 29 =>
356
- array (
357
- 'type' => 'CSMM PRO',
358
- 'version' => '5.001',
359
- 'last_edit' => 'Thu, 15 Feb 2018 18:34:58 +0000',
360
- 'name' => 'Running Blog',
361
- 'description' => '',
362
- 'frontpage' => '1',
363
- 'status' => 'agency',
364
- 'name_clean' => 'running-blog',
365
- ),
366
- 30 =>
367
- array (
368
- 'type' => 'CSMM PRO',
369
- 'version' => '5.005',
370
- 'last_edit' => 'Mon, 26 Feb 2018 11:17:32 +0000',
371
- 'name' => 'Shoes Store',
372
- 'description' => 'Andrea',
373
- 'frontpage' => '1',
374
- 'status' => 'agency',
375
- 'name_clean' => 'shoes-store',
376
- ),
377
- 31 =>
378
- array (
379
- 'type' => 'CSMM PRO',
380
- 'version' => '5.05',
381
- 'last_edit' => 'Thu, 01 Mar 2018 11:33:14 +0000',
382
- 'name' => 'Simple Beige Design',
383
- 'description' => 'Andrea',
384
- 'frontpage' => '0',
385
- 'status' => 'pro',
386
- 'name_clean' => 'simple-beige-design',
387
- ),
388
- 32 =>
389
- array (
390
- 'type' => 'CSMM PRO',
391
- 'version' => '5.001',
392
- 'last_edit' => 'Tue, 20 Feb 2018 09:14:02 +0000',
393
- 'name' => 'Snowboarding Blog',
394
- 'description' => '',
395
- 'frontpage' => '1',
396
- 'status' => 'pro',
397
- 'name_clean' => 'snowboarding-blog',
398
- ),
399
- 33 =>
400
- array (
401
- 'type' => 'CSMM PRO',
402
- 'version' => '5.005',
403
- 'last_edit' => 'Fri, 23 Feb 2018 12:43:09 +0000',
404
- 'name' => 'The Big City Newsletter',
405
- 'description' => 'Andrea',
406
- 'frontpage' => '1',
407
- 'status' => 'agency',
408
- 'name_clean' => 'the-big-city-newsletter',
409
- ),
410
- 34 =>
411
- array (
412
- 'type' => 'CSMM PRO',
413
- 'version' => '5.001',
414
- 'last_edit' => 'Tue, 20 Feb 2018 10:57:27 +0000',
415
- 'name' => 'Travel Agency',
416
- 'description' => '',
417
- 'frontpage' => '1',
418
- 'status' => 'pro',
419
- 'name_clean' => 'travel-agency',
420
- ),
421
- 35 =>
422
- array (
423
- 'type' => 'CSMM PRO',
424
- 'version' => '15.05',
425
- 'last_edit' => 'Fri, 02 Mar 2018 12:39:22 +0000',
426
- 'name' => 'Travel Blog',
427
- 'description' => 'Andrea',
428
- 'frontpage' => '1',
429
- 'status' => 'agency',
430
- 'name_clean' => 'travel-blog',
431
- ),
432
- 36 =>
433
- array (
434
- 'type' => 'CSMM PRO',
435
- 'version' => '5.001',
436
- 'last_edit' => 'Mon, 19 Feb 2018 12:31:48 +0000',
437
- 'name' => 'Video Production',
438
- 'description' => '',
439
- 'frontpage' => '1',
440
- 'status' => 'pro',
441
- 'name_clean' => 'video-production',
442
- ),
443
- 37 =>
444
- array (
445
- 'type' => 'CSMM PRO',
446
- 'version' => '5.005',
447
- 'last_edit' => 'Mon, 26 Feb 2018 19:54:07 +0000',
448
- 'name' => 'Webinar',
449
- 'description' => 'Andrea',
450
- 'frontpage' => '1',
451
- 'status' => 'agency',
452
- 'name_clean' => 'webinar',
453
- ),
454
- 38 =>
455
- array (
456
- 'type' => 'CSMM PRO',
457
- 'version' => '5.005',
458
- 'last_edit' => 'Fri, 23 Feb 2018 11:53:23 +0000',
459
- 'name' => 'Wedding Blog',
460
- 'description' => 'Andrea',
461
- 'frontpage' => '1',
462
- 'status' => 'agency',
463
- 'name_clean' => 'wedding-blog',
464
- ),
465
- 39 =>
466
- array (
467
- 'type' => 'CSMM PRO',
468
- 'version' => '15.05',
469
- 'last_edit' => 'Fri, 02 Mar 2018 12:36:42 +0000',
470
- 'name' => 'Workplace',
471
- 'description' => 'Andrea',
472
- 'frontpage' => '1',
473
- 'status' => 'agency',
474
- 'name_clean' => 'workplace',
475
- ),
476
- );
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
477
 
478
  $path = plugins_url('', __FILE__);
479
 
@@ -753,6 +974,24 @@ array (
753
  'type' => 'text',
754
  'section' => 'design_and_layout',
755
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
756
  ),
757
  array(
758
  'id' => 'enter_second_coming_soon_message',
@@ -836,7 +1075,7 @@ array (
836
  'id' => 'upload_slider_images',
837
  'label' => 'Upload first background slider images',
838
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
839
- 'std' => OT_URL .'/assets/slideshow/1.jpg',
840
  'type' => 'upload',
841
  'section' => 'design_and_layout',
842
  'min_max_step'=> '',
@@ -848,7 +1087,7 @@ array (
848
  'id' => 'upload_slider_images_2',
849
  'label' => 'Upload second background slider images',
850
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
851
- 'std' => OT_URL .'/assets/slideshow/2.jpg',
852
  'type' => 'upload',
853
  'section' => 'design_and_layout',
854
  'min_max_step'=> '',
@@ -860,7 +1099,20 @@ array (
860
  'id' => 'upload_slider_images_3',
861
  'label' => 'Upload third background slider images',
862
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
863
- 'std' => OT_URL .'/assets/slideshow/3.jpg',
 
 
 
 
 
 
 
 
 
 
 
 
 
864
  'type' => 'upload',
865
 
866
  'section' => 'design_and_layout',
@@ -1015,82 +1267,87 @@ array (
1015
  array(
1016
  'value' => '01.png',
1017
  'label' => 'Pattern 1',
1018
- 'src' => OT_URL .'/assets/images/patterns/01.png'
1019
  ),
1020
  array(
1021
  'value' => '02.png',
1022
  'label' => 'Pattern 2',
1023
- 'src' => OT_URL .'/assets/images/patterns/02.png'
1024
  ),
1025
  array(
1026
  'value' => '03.png',
1027
  'label' => 'Pattern 3',
1028
- 'src' => OT_URL .'/assets/images/patterns/03.png'
1029
  ),
1030
  array(
1031
  'value' => '04.png',
1032
  'label' => 'Pattern 4',
1033
- 'src' => OT_URL .'/assets/images/patterns/04.png'
1034
  ),
1035
  array(
1036
  'value' => '05.png',
1037
  'label' => 'Pattern 5',
1038
- 'src' => OT_URL .'/assets/images/patterns/05.png'
1039
  ),
1040
  array(
1041
  'value' => '06.png',
1042
  'label' => 'Pattern 6',
1043
- 'src' => OT_URL .'/assets/images/patterns/06.png'
1044
  ),
1045
  array(
1046
  'value' => '07.png',
1047
  'label' => 'Pattern 7',
1048
- 'src' => OT_URL .'/assets/images/patterns/07.png'
1049
  ),
1050
  array(
1051
  'value' => '08.png',
1052
  'label' => 'Pattern 8',
1053
- 'src' => OT_URL .'/assets/images/patterns/08.png'
1054
  ),
1055
  array(
1056
  'value' => '09.png',
1057
  'label' => 'Pattern 9',
1058
- 'src' => OT_URL .'/assets/images/patterns/09.png'
1059
  ),
1060
  array(
1061
  'value' => '10.png',
1062
  'label' => 'Pattern 10',
1063
- 'src' => OT_URL .'/assets/images/patterns/10.png'
1064
  ),
1065
  array(
1066
  'value' => '11.png',
1067
  'label' => 'Pattern 11',
1068
- 'src' => OT_URL .'/assets/images/patterns/11.png'
1069
  ),
1070
  array(
1071
  'value' => '12.png',
1072
  'label' => 'Pattern 12',
1073
- 'src' => OT_URL .'/assets/images/patterns/12.png'
1074
  ),
1075
  array(
1076
  'value' => '13.png',
1077
  'label' => 'Pattern 13',
1078
- 'src' => OT_URL .'/assets/images/patterns/13.png'
1079
  ),
1080
  array(
1081
  'value' => '14.png',
1082
  'label' => 'Pattern 14',
1083
- 'src' => OT_URL .'/assets/images/patterns/14.png'
1084
  ),
1085
  array(
1086
  'value' => '15.png',
1087
  'label' => 'Pattern 15',
1088
- 'src' => OT_URL .'/assets/images/patterns/15.png'
1089
  ),
1090
  array(
1091
  'value' => '16.png',
1092
  'label' => 'Pattern 16',
1093
- 'src' => OT_URL .'/assets/images/patterns/16.png'
 
 
 
 
 
1094
  )
1095
  )
1096
  ),
@@ -1176,7 +1433,7 @@ array (
1176
  array(
1177
  'id' => 'enter_your_email_address',
1178
  'label' => 'Enter your email address',
1179
- 'desc' => 'This address will be used for receiving notifications from the subscription form on the coming soon page. It will also be displayed on the location tab of the footer section.',
1180
  'std' => 'someone@example.com',
1181
  'type' => 'text',
1182
  'section' => 'design_and_layout',
16
 
17
  function nifty_cs_custom_theme_options() {
18
 
19
+ add_action('admin_action_nifty_dismiss_notice', 'admin_action_dismiss_notice');
20
+
21
  /* OptionTree is not loaded yet7, or this is not an admin request */
22
  if ( ! function_exists( 'ot_settings_id' ) || ! is_admin() )
23
  return false;
29
  $saved_settings = get_option( ot_settings_id(), array() );
30
 
31
 
32
+ function admin_action_dismiss_notice() {
33
+ if (empty($_GET['notice'])) {
34
+ wp_redirect(admin_url());
35
+ exit;
36
+ }
37
+
38
+ $options = get_option('nifty_options', array());
39
+
40
+ if ($_GET['notice'] == 'rate') {
41
+ $options['hide_notice']['rate'] = true;
42
+ }
43
+
44
+
45
+ update_option('nifty_options', $options);
46
+
47
+ if (!empty($_GET['redirect'])) {
48
+ wp_redirect($_GET['redirect']);
49
+ } else {
50
+ wp_redirect(admin_url());
51
+ }
52
+
53
+ exit;
54
+ } // admin_action_dismiss_notice
55
 
56
 
57
  function ot_type_custom_themes() {
58
+ $themes = array (
59
+ 0 =>
60
+ array (
61
+ 'type' => 'CSMM PRO',
62
+ 'version' => '5.005',
63
+ 'last_edit' => 'Thu, 22 Feb 2018 18:45:00 +0000',
64
+ 'name' => 'Aeroplane Company',
65
+ 'description' => 'Andrea',
66
+ 'frontpage' => '1',
67
+ 'status' => 'pro',
68
+ 'name_clean' => 'aeroplane-company',
69
+ ),
70
+ 1 =>
71
+ array (
72
+ 'type' => 'CSMM PRO',
73
+ 'version' => '15.05',
74
+ 'last_edit' => 'Fri, 02 Mar 2018 12:43:04 +0000',
75
+ 'name' => 'Animated Clock',
76
+ 'description' => 'Andrea',
77
+ 'frontpage' => '0',
78
+ 'status' => 'pro',
79
+ 'name_clean' => 'animated-clock',
80
+ ),
81
+ 2 =>
82
+ array (
83
+ 'type' => 'CSMM PRO',
84
+ 'version' => '15.17',
85
+ 'last_edit' => 'Sat, 09 Jun 2018 13:26:02 +0000',
86
+ 'name' => 'Beach',
87
+ 'description' => '',
88
+ 'frontpage' => '1',
89
+ 'status' => 'pro',
90
+ 'name_clean' => 'beach',
91
+ ),
92
+ 3 =>
93
+ array (
94
+ 'type' => 'CSMM PRO',
95
+ 'version' => '5.05',
96
+ 'last_edit' => 'Wed, 28 Feb 2018 10:30:46 +0000',
97
+ 'name' => 'Bicycle Race',
98
+ 'description' => 'Andrea',
99
+ 'frontpage' => '0',
100
+ 'status' => 'agency',
101
+ 'name_clean' => 'bicycle-race',
102
+ ),
103
+ 4 =>
104
+ array (
105
+ 'type' => 'CSMM PRO',
106
+ 'version' => '5.005',
107
+ 'last_edit' => 'Sat, 24 Feb 2018 11:48:50 +0000',
108
+ 'name' => 'Bitcoin Miners',
109
+ 'description' => '',
110
+ 'frontpage' => '1',
111
+ 'status' => 'agency',
112
+ 'name_clean' => 'bitcoin-miners',
113
+ ),
114
+ 5 =>
115
+ array (
116
+ 'type' => 'CSMM PRO',
117
+ 'version' => '15.17',
118
+ 'last_edit' => 'Fri, 30 Mar 2018 11:50:26 +0000',
119
+ 'name' => 'Blogging',
120
+ 'description' => '',
121
+ 'frontpage' => '1',
122
+ 'status' => 'agency',
123
+ 'name_clean' => 'blogging',
124
+ ),
125
+ 6 =>
126
+ array (
127
+ 'type' => 'CSMM PRO',
128
+ 'version' => '5.005',
129
+ 'last_edit' => 'Tue, 27 Feb 2018 09:56:05 +0000',
130
+ 'name' => 'Book Lovers',
131
+ 'description' => 'Andrea',
132
+ 'frontpage' => '1',
133
+ 'status' => 'agency',
134
+ 'name_clean' => 'book-lovers',
135
+ ),
136
+ 7 =>
137
+ array (
138
+ 'type' => 'CSMM PRO',
139
+ 'version' => '5.001',
140
+ 'last_edit' => 'Thu, 15 Feb 2018 16:24:58 +0000',
141
+ 'name' => 'Business Company',
142
+ 'description' => '',
143
+ 'frontpage' => '0',
144
+ 'status' => 'agency',
145
+ 'name_clean' => 'business-company',
146
+ ),
147
+ 8 =>
148
+ array (
149
+ 'type' => 'CSMM PRO',
150
+ 'version' => '15.17',
151
+ 'last_edit' => 'Wed, 25 Apr 2018 11:06:41 +0000',
152
+ 'name' => 'Business',
153
+ 'description' => 'Andrea',
154
+ 'frontpage' => '1',
155
+ 'status' => 'agency',
156
+ 'name_clean' => 'business',
157
+ ),
158
+ 9 =>
159
+ array (
160
+ 'type' => 'CSMM PRO',
161
+ 'version' => '5.14',
162
+ 'last_edit' => 'Fri, 23 Mar 2018 16:46:05 +0000',
163
+ 'name' => 'Clouds Screensaver (Video)',
164
+ 'description' => '',
165
+ 'frontpage' => '1',
166
+ 'status' => 'agency',
167
+ 'name_clean' => 'clouds-screensaver-video',
168
+ ),
169
+ 10 =>
170
+ array (
171
+ 'type' => 'CSMM PRO',
172
+ 'version' => '5.005',
173
+ 'last_edit' => 'Thu, 22 Feb 2018 18:45:40 +0000',
174
+ 'name' => 'Coffee Shop',
175
+ 'description' => 'Andrea',
176
+ 'frontpage' => '1',
177
+ 'status' => 'agency',
178
+ 'name_clean' => 'coffee-shop',
179
+ ),
180
+ 11 =>
181
+ array (
182
+ 'type' => 'CSMM PRO',
183
+ 'version' => '15.17',
184
+ 'last_edit' => 'Fri, 04 May 2018 08:57:40 +0000',
185
+ 'name' => 'Cold Lake',
186
+ 'description' => '',
187
+ 'frontpage' => '1',
188
+ 'status' => 'agency',
189
+ 'name_clean' => 'cold-lake',
190
+ ),
191
+ 12 =>
192
+ array (
193
+ 'type' => 'CSMM PRO',
194
+ 'version' => '5.005',
195
+ 'last_edit' => 'Mon, 26 Feb 2018 20:41:31 +0000',
196
+ 'name' => 'Default',
197
+ 'description' => 'Default settings, nothing more.',
198
+ 'frontpage' => '0',
199
+ 'status' => 'pro',
200
+ 'name_clean' => 'default',
201
+ ),
202
+ 13 =>
203
+ array (
204
+ 'type' => 'CSMM PRO',
205
+ 'version' => '15.17',
206
+ 'last_edit' => 'Fri, 30 Mar 2018 11:24:59 +0000',
207
+ 'name' => 'Dental Clinic',
208
+ 'description' => 'Andrea',
209
+ 'frontpage' => '1',
210
+ 'status' => 'agency',
211
+ 'name_clean' => 'dental-clinic',
212
+ ),
213
+ 14 =>
214
+ array (
215
+ 'type' => 'CSMM PRO',
216
+ 'version' => '5.001',
217
+ 'last_edit' => 'Tue, 20 Feb 2018 09:14:59 +0000',
218
+ 'name' => 'Dog Training and Behavior Consulting',
219
+ 'description' => '',
220
+ 'frontpage' => '1',
221
+ 'status' => 'agency',
222
+ 'name_clean' => 'dog-training-and-behavior-consulting',
223
+ ),
224
+ 15 =>
225
+ array (
226
+ 'type' => 'CSMM PRO',
227
+ 'version' => '15.05',
228
+ 'last_edit' => 'Fri, 02 Mar 2018 12:33:55 +0000',
229
+ 'name' => 'Flower Shop',
230
+ 'description' => '',
231
+ 'frontpage' => '1',
232
+ 'status' => 'agency',
233
+ 'name_clean' => 'flower-shop',
234
+ ),
235
+ 16 =>
236
+ array (
237
+ 'type' => 'CSMM PRO',
238
+ 'version' => '15.17',
239
+ 'last_edit' => 'Wed, 02 May 2018 09:37:48 +0000',
240
+ 'name' => 'Food Blog',
241
+ 'description' => '',
242
+ 'frontpage' => '1',
243
+ 'status' => 'pro',
244
+ 'name_clean' => 'food-blog',
245
+ ),
246
+ 17 =>
247
+ array (
248
+ 'type' => 'CSMM PRO',
249
+ 'version' => '15.17',
250
+ 'last_edit' => 'Fri, 30 Mar 2018 11:26:42 +0000',
251
+ 'name' => 'Homemade Chocolate Gifts',
252
+ 'description' => '',
253
+ 'frontpage' => '0',
254
+ 'status' => 'pro',
255
+ 'name_clean' => 'homemade-chocolate-gifts',
256
+ ),
257
+ 18 =>
258
+ array (
259
+ 'type' => 'CSMM PRO',
260
+ 'version' => '15.05',
261
+ 'last_edit' => 'Fri, 02 Mar 2018 12:59:44 +0000',
262
+ 'name' => 'Interior Design',
263
+ 'description' => 'Andrea',
264
+ 'frontpage' => '1',
265
+ 'status' => 'agency',
266
+ 'name_clean' => 'interior-design',
267
+ ),
268
+ 19 =>
269
+ array (
270
+ 'type' => 'CSMM PRO',
271
+ 'version' => '5.14',
272
+ 'last_edit' => 'Fri, 23 Mar 2018 16:42:15 +0000',
273
+ 'name' => 'Journey (Video)',
274
+ 'description' => '',
275
+ 'frontpage' => '1',
276
+ 'status' => 'agency',
277
+ 'name_clean' => 'journey-video',
278
+ ),
279
+ 20 =>
280
+ array (
281
+ 'type' => 'CSMM PRO',
282
+ 'version' => '15.17',
283
+ 'last_edit' => 'Fri, 30 Mar 2018 11:28:28 +0000',
284
+ 'name' => 'LEGO Bricks',
285
+ 'description' => '',
286
+ 'frontpage' => '0',
287
+ 'status' => 'pro',
288
+ 'name_clean' => 'lego-bricks',
289
+ ),
290
+ 21 =>
291
+ array (
292
+ 'type' => 'CSMM PRO',
293
+ 'version' => '15.17',
294
+ 'last_edit' => 'Wed, 25 Apr 2018 11:04:55 +0000',
295
+ 'name' => 'Lonely Road',
296
+ 'description' => 'Andrea',
297
+ 'frontpage' => '1',
298
+ 'status' => 'agency',
299
+ 'name_clean' => 'lonely-road',
300
+ ),
301
+ 22 =>
302
+ array (
303
+ 'type' => 'CSMM PRO',
304
+ 'version' => '15.17',
305
+ 'last_edit' => 'Fri, 30 Mar 2018 11:30:37 +0000',
306
+ 'name' => 'Luxury Car',
307
+ 'description' => '',
308
+ 'frontpage' => '1',
309
+ 'status' => 'pro',
310
+ 'name_clean' => 'luxury-car',
311
+ ),
312
+ 23 =>
313
+ array (
314
+ 'type' => 'CSMM PRO',
315
+ 'version' => '5.005',
316
+ 'last_edit' => 'Mon, 26 Feb 2018 18:31:18 +0000',
317
+ 'name' => 'Maintenance Mode',
318
+ 'description' => 'Andrea',
319
+ 'frontpage' => '0',
320
+ 'status' => 'pro',
321
+ 'name_clean' => 'maintenance-mode',
322
+ ),
323
+ 24 =>
324
+ array (
325
+ 'type' => 'CSMM PRO',
326
+ 'version' => '5.005',
327
+ 'last_edit' => 'Mon, 26 Feb 2018 17:59:30 +0000',
328
+ 'name' => 'Makeup Artist Training',
329
+ 'description' => 'Andrea',
330
+ 'frontpage' => '1',
331
+ 'status' => 'agency',
332
+ 'name_clean' => 'makeup-artist-training',
333
+ ),
334
+ 25 =>
335
+ array (
336
+ 'type' => 'CSMM PRO',
337
+ 'version' => '15.17',
338
+ 'last_edit' => 'Wed, 25 Apr 2018 11:08:31 +0000',
339
+ 'name' => 'Mobile Designer',
340
+ 'description' => 'Andrea',
341
+ 'frontpage' => '1',
342
+ 'status' => 'agency',
343
+ 'name_clean' => 'mobile-designer',
344
+ ),
345
+ 26 =>
346
+ array (
347
+ 'type' => 'CSMM PRO',
348
+ 'version' => '5.005',
349
+ 'last_edit' => 'Mon, 26 Feb 2018 18:04:32 +0000',
350
+ 'name' => 'Modern Blog',
351
+ 'description' => '',
352
+ 'frontpage' => '1',
353
+ 'status' => 'pro',
354
+ 'name_clean' => 'modern-blog',
355
+ ),
356
+ 27 =>
357
+ array (
358
+ 'type' => 'CSMM PRO',
359
+ 'version' => '15.05',
360
+ 'last_edit' => 'Fri, 02 Mar 2018 10:14:21 +0000',
361
+ 'name' => 'Modern Office',
362
+ 'description' => 'Andrea',
363
+ 'frontpage' => '0',
364
+ 'status' => 'agency',
365
+ 'name_clean' => 'modern-office',
366
+ ),
367
+ 28 =>
368
+ array (
369
+ 'type' => 'CSMM PRO',
370
+ 'version' => '15.17',
371
+ 'last_edit' => 'Fri, 30 Mar 2018 11:48:23 +0000',
372
+ 'name' => 'Mountain Slide',
373
+ 'description' => '',
374
+ 'frontpage' => '1',
375
+ 'status' => 'pro',
376
+ 'name_clean' => 'mountain-slide',
377
+ ),
378
+ 29 =>
379
+ array (
380
+ 'type' => 'CSMM PRO',
381
+ 'version' => '5.05',
382
+ 'last_edit' => 'Thu, 01 Mar 2018 10:49:52 +0000',
383
+ 'name' => 'Mountain',
384
+ 'description' => 'Andrea',
385
+ 'frontpage' => '0',
386
+ 'status' => 'pro',
387
+ 'name_clean' => 'mountain',
388
+ ),
389
+ 30 =>
390
+ array (
391
+ 'type' => 'CSMM PRO',
392
+ 'version' => '15.17',
393
+ 'last_edit' => 'Wed, 25 Apr 2018 11:12:56 +0000',
394
+ 'name' => 'Movie Trailer (Video)',
395
+ 'description' => '',
396
+ 'frontpage' => '0',
397
+ 'status' => 'pro',
398
+ 'name_clean' => 'movie-trailer-video',
399
+ ),
400
+ 31 =>
401
+ array (
402
+ 'type' => 'CSMM PRO',
403
+ 'version' => '15.05',
404
+ 'last_edit' => 'Fri, 02 Mar 2018 10:17:02 +0000',
405
+ 'name' => 'Nature',
406
+ 'description' => 'Andrea',
407
+ 'frontpage' => '0',
408
+ 'status' => 'agency',
409
+ 'name_clean' => 'nature',
410
+ ),
411
+ 32 =>
412
+ array (
413
+ 'type' => 'CSMM PRO',
414
+ 'version' => '5.14',
415
+ 'last_edit' => 'Fri, 23 Mar 2018 16:37:55 +0000',
416
+ 'name' => 'Office Meeting (Video)',
417
+ 'description' => '',
418
+ 'frontpage' => '1',
419
+ 'status' => 'agency',
420
+ 'name_clean' => 'office-meeting-video',
421
+ ),
422
+ 33 =>
423
+ array (
424
+ 'type' => 'CSMM PRO',
425
+ 'version' => '15.05',
426
+ 'last_edit' => 'Fri, 02 Mar 2018 12:35:44 +0000',
427
+ 'name' => 'Office Theme',
428
+ 'description' => '',
429
+ 'frontpage' => '1',
430
+ 'status' => 'agency',
431
+ 'name_clean' => 'office-theme',
432
+ ),
433
+ 34 =>
434
+ array (
435
+ 'type' => 'CSMM PRO',
436
+ 'version' => '5.005',
437
+ 'last_edit' => 'Mon, 26 Feb 2018 18:07:28 +0000',
438
+ 'name' => 'Online Learning',
439
+ 'description' => 'Andrea',
440
+ 'frontpage' => '1',
441
+ 'status' => 'agency',
442
+ 'name_clean' => 'online-learning',
443
+ ),
444
+ 35 =>
445
+ array (
446
+ 'type' => 'CSMM PRO',
447
+ 'version' => '15.17',
448
+ 'last_edit' => 'Wed, 25 Apr 2018 11:10:44 +0000',
449
+ 'name' => 'Pancake House',
450
+ 'description' => '',
451
+ 'frontpage' => '0',
452
+ 'status' => 'pro',
453
+ 'name_clean' => 'pancake-house',
454
+ ),
455
+ 36 =>
456
+ array (
457
+ 'type' => 'CSMM PRO',
458
+ 'version' => '15.17',
459
+ 'last_edit' => 'Wed, 25 Apr 2018 11:15:19 +0000',
460
+ 'name' => 'Parenting',
461
+ 'description' => '',
462
+ 'frontpage' => '0',
463
+ 'status' => 'pro',
464
+ 'name_clean' => 'parenting',
465
+ ),
466
+ 37 =>
467
+ array (
468
+ 'type' => 'CSMM PRO',
469
+ 'version' => '15.17',
470
+ 'last_edit' => 'Fri, 30 Mar 2018 11:35:07 +0000',
471
+ 'name' => 'Photography',
472
+ 'description' => '',
473
+ 'frontpage' => '1',
474
+ 'status' => 'agency',
475
+ 'name_clean' => 'photography',
476
+ ),
477
+ 38 =>
478
+ array (
479
+ 'type' => 'CSMM PRO',
480
+ 'version' => '15.17',
481
+ 'last_edit' => 'Fri, 30 Mar 2018 11:41:09 +0000',
482
+ 'name' => 'Running Blog',
483
+ 'description' => '',
484
+ 'frontpage' => '0',
485
+ 'status' => 'agency',
486
+ 'name_clean' => 'running-blog',
487
+ ),
488
+ 39 =>
489
+ array (
490
+ 'type' => 'CSMM PRO',
491
+ 'version' => '15.14',
492
+ 'last_edit' => 'Sat, 24 Mar 2018 10:23:40 +0000',
493
+ 'name' => 'Running (Video)',
494
+ 'description' => '',
495
+ 'frontpage' => '1',
496
+ 'status' => 'pro',
497
+ 'name_clean' => 'running-video',
498
+ ),
499
+ 40 =>
500
+ array (
501
+ 'type' => 'CSMM PRO',
502
+ 'version' => '5.005',
503
+ 'last_edit' => 'Mon, 26 Feb 2018 11:17:32 +0000',
504
+ 'name' => 'Shoes Store',
505
+ 'description' => 'Andrea',
506
+ 'frontpage' => '1',
507
+ 'status' => 'agency',
508
+ 'name_clean' => 'shoes-store',
509
+ ),
510
+ 41 =>
511
+ array (
512
+ 'type' => 'CSMM PRO',
513
+ 'version' => '15.17',
514
+ 'last_edit' => 'Wed, 25 Apr 2018 11:17:21 +0000',
515
+ 'name' => 'Simple Beige Design',
516
+ 'description' => '',
517
+ 'frontpage' => '0',
518
+ 'status' => 'pro',
519
+ 'name_clean' => 'simple-beige-design',
520
+ ),
521
+ 42 =>
522
+ array (
523
+ 'type' => 'CSMM PRO',
524
+ 'version' => '15.17',
525
+ 'last_edit' => 'Wed, 25 Apr 2018 11:19:34 +0000',
526
+ 'name' => 'Snow Screensaver (Video)',
527
+ 'description' => '',
528
+ 'frontpage' => '1',
529
+ 'status' => 'pro',
530
+ 'name_clean' => 'snow-screensaver-video',
531
+ ),
532
+ 43 =>
533
+ array (
534
+ 'type' => 'CSMM PRO',
535
+ 'version' => '15.17',
536
+ 'last_edit' => 'Fri, 30 Mar 2018 11:44:39 +0000',
537
+ 'name' => 'Snowboarding Blog',
538
+ 'description' => '',
539
+ 'frontpage' => '1',
540
+ 'status' => 'pro',
541
+ 'name_clean' => 'snowboarding-blog',
542
+ ),
543
+ 44 =>
544
+ array (
545
+ 'type' => 'CSMM PRO',
546
+ 'version' => '15.17',
547
+ 'last_edit' => 'Wed, 25 Apr 2018 11:21:19 +0000',
548
+ 'name' => 'Snowy Mountain',
549
+ 'description' => '',
550
+ 'frontpage' => '1',
551
+ 'status' => 'pro',
552
+ 'name_clean' => 'snowy-mountain',
553
+ ),
554
+ 45 =>
555
+ array (
556
+ 'type' => 'CSMM PRO',
557
+ 'version' => '15.17',
558
+ 'last_edit' => 'Fri, 30 Mar 2018 09:59:40 +0000',
559
+ 'name' => 'Spring',
560
+ 'description' => '',
561
+ 'frontpage' => '0',
562
+ 'status' => 'agency',
563
+ 'name_clean' => 'spring',
564
+ ),
565
+ 46 =>
566
+ array (
567
+ 'type' => 'CSMM PRO',
568
+ 'version' => '15.17',
569
+ 'last_edit' => 'Wed, 25 Apr 2018 11:22:49 +0000',
570
+ 'name' => 'The Big City Newsletter',
571
+ 'description' => 'Andrea',
572
+ 'frontpage' => '1',
573
+ 'status' => 'agency',
574
+ 'name_clean' => 'the-big-city-newsletter',
575
+ ),
576
+ 47 =>
577
+ array (
578
+ 'type' => 'CSMM PRO',
579
+ 'version' => '5.14',
580
+ 'last_edit' => 'Thu, 22 Mar 2018 11:33:57 +0000',
581
+ 'name' => 'The Sunny View',
582
+ 'description' => 'Andrea',
583
+ 'frontpage' => '0',
584
+ 'status' => 'pro',
585
+ 'name_clean' => 'the-sunny-view',
586
+ ),
587
+ 48 =>
588
+ array (
589
+ 'type' => 'CSMM PRO',
590
+ 'version' => '5.001',
591
+ 'last_edit' => 'Tue, 20 Feb 2018 10:57:27 +0000',
592
+ 'name' => 'Travel Agency',
593
+ 'description' => '',
594
+ 'frontpage' => '1',
595
+ 'status' => 'pro',
596
+ 'name_clean' => 'travel-agency',
597
+ ),
598
+ 49 =>
599
+ array (
600
+ 'type' => 'CSMM PRO',
601
+ 'version' => '15.05',
602
+ 'last_edit' => 'Fri, 02 Mar 2018 12:39:22 +0000',
603
+ 'name' => 'Travel Blog',
604
+ 'description' => 'Andrea',
605
+ 'frontpage' => '1',
606
+ 'status' => 'agency',
607
+ 'name_clean' => 'travel-blog',
608
+ ),
609
+ 50 =>
610
+ array (
611
+ 'type' => 'CSMM PRO',
612
+ 'version' => '15.17',
613
+ 'last_edit' => 'Wed, 25 Apr 2018 11:24:56 +0000',
614
+ 'name' => 'Tulips',
615
+ 'description' => '',
616
+ 'frontpage' => '1',
617
+ 'status' => 'agency',
618
+ 'name_clean' => 'tulips',
619
+ ),
620
+ 51 =>
621
+ array (
622
+ 'type' => 'CSMM PRO',
623
+ 'version' => '5.001',
624
+ 'last_edit' => 'Mon, 19 Feb 2018 12:31:48 +0000',
625
+ 'name' => 'Video Production',
626
+ 'description' => '',
627
+ 'frontpage' => '1',
628
+ 'status' => 'pro',
629
+ 'name_clean' => 'video-production',
630
+ ),
631
+ 52 =>
632
+ array (
633
+ 'type' => 'CSMM PRO',
634
+ 'version' => '5.005',
635
+ 'last_edit' => 'Mon, 26 Feb 2018 19:54:07 +0000',
636
+ 'name' => 'Webinar',
637
+ 'description' => 'Andrea',
638
+ 'frontpage' => '1',
639
+ 'status' => 'agency',
640
+ 'name_clean' => 'webinar',
641
+ ),
642
+ 53 =>
643
+ array (
644
+ 'type' => 'CSMM PRO',
645
+ 'version' => '5.005',
646
+ 'last_edit' => 'Fri, 23 Feb 2018 11:53:23 +0000',
647
+ 'name' => 'Wedding Blog',
648
+ 'description' => 'Andrea',
649
+ 'frontpage' => '1',
650
+ 'status' => 'agency',
651
+ 'name_clean' => 'wedding-blog',
652
+ ),
653
+ 54 =>
654
+ array (
655
+ 'type' => 'CSMM PRO',
656
+ 'version' => '15.17',
657
+ 'last_edit' => 'Tue, 22 May 2018 12:41:04 +0000',
658
+ 'name' => 'White Orchids',
659
+ 'description' => '',
660
+ 'frontpage' => '1',
661
+ 'status' => 'pro',
662
+ 'name_clean' => 'white-orchids',
663
+ ),
664
+ 55 =>
665
+ array (
666
+ 'type' => 'CSMM PRO',
667
+ 'version' => '5.14',
668
+ 'last_edit' => 'Thu, 22 Mar 2018 11:29:56 +0000',
669
+ 'name' => 'Working Out',
670
+ 'description' => '',
671
+ 'frontpage' => '1',
672
+ 'status' => 'agency',
673
+ 'name_clean' => 'working-out',
674
+ ),
675
+ 56 =>
676
+ array (
677
+ 'type' => 'CSMM PRO',
678
+ 'version' => '15.05',
679
+ 'last_edit' => 'Fri, 02 Mar 2018 12:36:42 +0000',
680
+ 'name' => 'Workplace',
681
+ 'description' => 'Andrea',
682
+ 'frontpage' => '1',
683
+ 'status' => 'agency',
684
+ 'name_clean' => 'workplace',
685
+ ),
686
+ 57 =>
687
+ array (
688
+ 'type' => 'CSMM PRO',
689
+ 'version' => '15.17',
690
+ 'last_edit' => 'Wed, 25 Apr 2018 11:00:38 +0000',
691
+ 'name' => 'Writing Service (Video)',
692
+ 'description' => '',
693
+ 'frontpage' => '1',
694
+ 'status' => 'agency',
695
+ 'name_clean' => 'writing-service-video',
696
+ ),
697
+ );
698
 
699
  $path = plugins_url('', __FILE__);
700
 
974
  'type' => 'text',
975
  'section' => 'design_and_layout',
976
 
977
+ ),
978
+ array(
979
+ 'id' => 'page_title',
980
+ 'label' => 'Page Title',
981
+ 'desc' => 'Page title, for SEO. Keep it short.',
982
+ 'std' => get_bloginfo('name') . ' is coming soon',
983
+ 'type' => 'text',
984
+ 'section' => 'design_and_layout',
985
+
986
+ ),
987
+ array(
988
+ 'id' => 'page_description',
989
+ 'label' => 'Page Description',
990
+ 'desc' => 'Page description, for SEO. Keep it between 50 and 300 chars.',
991
+ 'std' => 'We are doing some work on our site. Please be patient. Thank you.',
992
+ 'type' => 'text',
993
+ 'section' => 'design_and_layout',
994
+
995
  ),
996
  array(
997
  'id' => 'enter_second_coming_soon_message',
1075
  'id' => 'upload_slider_images',
1076
  'label' => 'Upload first background slider images',
1077
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
1078
+ 'std' => OT_URL .'assets/slideshow/1.jpg',
1079
  'type' => 'upload',
1080
  'section' => 'design_and_layout',
1081
  'min_max_step'=> '',
1087
  'id' => 'upload_slider_images_2',
1088
  'label' => 'Upload second background slider images',
1089
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
1090
+ 'std' => OT_URL .'assets/slideshow/2.jpg',
1091
  'type' => 'upload',
1092
  'section' => 'design_and_layout',
1093
  'min_max_step'=> '',
1099
  'id' => 'upload_slider_images_3',
1100
  'label' => 'Upload third background slider images',
1101
  'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
1102
+ 'std' => OT_URL .'assets/slideshow/3.jpg',
1103
+ 'type' => 'upload',
1104
+
1105
+ 'section' => 'design_and_layout',
1106
+ 'min_max_step'=> '',
1107
+ 'class' => '',
1108
+ 'condition' => 'disable_background_image_slider:not(off)',
1109
+ 'operator' => 'and'
1110
+ ),
1111
+ array(
1112
+ 'id' => 'upload_slider_images_4',
1113
+ 'label' => 'Upload fourth background slider images',
1114
+ 'desc' => 'Here you can upload your cover images, the best dimensions should be 1920x1080 or any with similar proportions.',
1115
+ 'std' => OT_URL .'assets/slideshow/4.jpg',
1116
  'type' => 'upload',
1117
 
1118
  'section' => 'design_and_layout',
1267
  array(
1268
  'value' => '01.png',
1269
  'label' => 'Pattern 1',
1270
+ 'src' => OT_URL .'assets/images/patterns/01.png'
1271
  ),
1272
  array(
1273
  'value' => '02.png',
1274
  'label' => 'Pattern 2',
1275
+ 'src' => OT_URL .'assets/images/patterns/02.png'
1276
  ),
1277
  array(
1278
  'value' => '03.png',
1279
  'label' => 'Pattern 3',
1280
+ 'src' => OT_URL .'assets/images/patterns/03.png'
1281
  ),
1282
  array(
1283
  'value' => '04.png',
1284
  'label' => 'Pattern 4',
1285
+ 'src' => OT_URL .'assets/images/patterns/04.png'
1286
  ),
1287
  array(
1288
  'value' => '05.png',
1289
  'label' => 'Pattern 5',
1290
+ 'src' => OT_URL .'assets/images/patterns/05.png'
1291
  ),
1292
  array(
1293
  'value' => '06.png',
1294
  'label' => 'Pattern 6',
1295
+ 'src' => OT_URL .'assets/images/patterns/06.png'
1296
  ),
1297
  array(
1298
  'value' => '07.png',
1299
  'label' => 'Pattern 7',
1300
+ 'src' => OT_URL .'assets/images/patterns/07.png'
1301
  ),
1302
  array(
1303
  'value' => '08.png',
1304
  'label' => 'Pattern 8',
1305
+ 'src' => OT_URL .'assets/images/patterns/08.png'
1306
  ),
1307
  array(
1308
  'value' => '09.png',
1309
  'label' => 'Pattern 9',
1310
+ 'src' => OT_URL .'assets/images/patterns/09.png'
1311
  ),
1312
  array(
1313
  'value' => '10.png',
1314
  'label' => 'Pattern 10',
1315
+ 'src' => OT_URL .'assets/images/patterns/10.png'
1316
  ),
1317
  array(
1318
  'value' => '11.png',
1319
  'label' => 'Pattern 11',
1320
+ 'src' => OT_URL .'assets/images/patterns/11.png'
1321
  ),
1322
  array(
1323
  'value' => '12.png',
1324
  'label' => 'Pattern 12',
1325
+ 'src' => OT_URL .'assets/images/patterns/12.png'
1326
  ),
1327
  array(
1328
  'value' => '13.png',
1329
  'label' => 'Pattern 13',
1330
+ 'src' => OT_URL .'assets/images/patterns/13.png'
1331
  ),
1332
  array(
1333
  'value' => '14.png',
1334
  'label' => 'Pattern 14',
1335
+ 'src' => OT_URL .'assets/images/patterns/14.png'
1336
  ),
1337
  array(
1338
  'value' => '15.png',
1339
  'label' => 'Pattern 15',
1340
+ 'src' => OT_URL .'assets/images/patterns/15.png'
1341
  ),
1342
  array(
1343
  'value' => '16.png',
1344
  'label' => 'Pattern 16',
1345
+ 'src' => OT_URL .'assets/images/patterns/16.png'
1346
+ ),
1347
+ array(
1348
+ 'value' => '17.png',
1349
+ 'label' => 'No pattern',
1350
+ 'src' => OT_URL .'assets/images/patterns/17.png'
1351
  )
1352
  )
1353
  ),
1433
  array(
1434
  'id' => 'enter_your_email_address',
1435
  'label' => 'Enter your email address',
1436
+ 'desc' => 'This address will be used for receiving notifications from the subscription form on the coming soon page. It will also be displayed on the location tab of the footer section.<br><b>Emails are not stored in WordPress nor sent to any 3rd party services like MailChimp. You will only receive them on this email address.</b>',
1437
  'std' => 'someone@example.com',
1438
  'type' => 'text',
1439
  'section' => 'design_and_layout',
nifty-coming-soon.php CHANGED
@@ -3,8 +3,8 @@
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to setup Coming soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
- Version: 1.2
7
- Author: Web Factory Ltd
8
  Author URI: https://webfactoryltd.com/
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
@@ -14,9 +14,7 @@ License URI: https://www.gnu.org/licenses/gpl-3.0.html
14
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
15
 
16
 
17
-
18
  // Display status of the coming soon page in the admin bar
19
-
20
  add_action('admin_bar_menu', 'nifty_cs_custom_menu', 1000);
21
 
22
  function nifty_cs_custom_menu()
@@ -27,7 +25,7 @@ function nifty_cs_custom_menu()
27
 
28
  $argsParent=array(
29
  'id' => 'niftycs_custom_menu',
30
- 'title' => 'Nifty Coming Soon Enabled',
31
  'href' => admin_url('?page=niftycs-options#section_general_settings'),
32
  'meta' => array( 'class' => 'red-hot-button' ),
33
 
@@ -82,6 +80,21 @@ function nifty_get_plugin_version() {
82
  function nifty_cs_redirect()
83
  {
84
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
85
  // Check if the coming soon mode is enabled in the general settings
86
 
87
  $value = ot_get_option( 'coming_soon_mode_on___off' );
@@ -170,7 +183,7 @@ if ( isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL
170
  if ( preg_match( $test, $val ) ) {
171
  exit;
172
  }
173
- }
174
 
175
  $sanitized_email = sanitize_email($receiver);
176
  $receiver_sanitized = $sanitized_email;
@@ -183,6 +196,13 @@ if ( isset($_POST['email']) && filter_var($_POST['email'], FILTER_VALIDATE_EMAIL
183
 
184
  } // nifty_subscribe
185
 
 
 
 
 
 
 
 
186
  // Calling plugins option panel
187
  require_once 'admin/main-options.php';
188
  require_once 'admin/ot-loader.php';
3
  Plugin Name: Nifty Coming Soon & Maintenance page
4
  Plugin URI: https://wordpress.org/plugins/nifty-coming-soon-and-under-construction-page/
5
  Description: Easy to setup Coming soon, Maintenance and Under Construction page. It features Responsive design, Countdown timer, Animations, Live Preview, Background Slider, Subscription form and more.
6
+ Version: 1.3
7
+ Author: WebFactory Ltd
8
  Author URI: https://webfactoryltd.com/
9
  License: GPLv3
10
  License URI: https://www.gnu.org/licenses/gpl-3.0.html
14
  defined( 'ABSPATH' ) or die( 'No script kiddies please!' );
15
 
16
 
 
17
  // Display status of the coming soon page in the admin bar
 
18
  add_action('admin_bar_menu', 'nifty_cs_custom_menu', 1000);
19
 
20
  function nifty_cs_custom_menu()
25
 
26
  $argsParent=array(
27
  'id' => 'niftycs_custom_menu',
28
+ 'title' => 'Nifty Coming Soon is Enabled',
29
  'href' => admin_url('?page=niftycs-options#section_general_settings'),
30
  'meta' => array( 'class' => 'red-hot-button' ),
31
 
80
  function nifty_cs_redirect()
81
  {
82
 
83
+ $request_uri = trailingslashit(strtolower(@parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH)));
84
+ // some URLs have to be accessible at all times
85
+ if ($request_uri == '/wp-admin/' ||
86
+ $request_uri == '/feed/' ||
87
+ $request_uri == '/feed/rss/' ||
88
+ $request_uri == '/feed/rss2/' ||
89
+ $request_uri == '/feed/rdf/' ||
90
+ $request_uri == '/feed/atom/' ||
91
+ $request_uri == '/admin/' ||
92
+ $request_uri == '/login/' ||
93
+ $request_uri == '/wp-login.php') {
94
+ return;
95
+ }
96
+
97
+
98
  // Check if the coming soon mode is enabled in the general settings
99
 
100
  $value = ot_get_option( 'coming_soon_mode_on___off' );
183
  if ( preg_match( $test, $val ) ) {
184
  exit;
185
  }
186
+ }
187
 
188
  $sanitized_email = sanitize_email($receiver);
189
  $receiver_sanitized = $sanitized_email;
196
 
197
  } // nifty_subscribe
198
 
199
+ // remove options on deactivate
200
+ function nifty_deactivate() {
201
+ delete_option('nifty_options');
202
+ }
203
+
204
+ register_deactivation_hook(__FILE__, 'nifty_deactivate');
205
+
206
  // Calling plugins option panel
207
  require_once 'admin/main-options.php';
208
  require_once 'admin/ot-loader.php';
readme.txt CHANGED
@@ -1,18 +1,18 @@
1
- === Coming Soon & Under Construction Maintenance Page ===
2
  Contributors: WebFactory
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance
4
  Tested up to: 4.9
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
- Stable tag: 1.2
8
 
9
- Nifty Coming soon and Under Construction / Maintenance page builder plugin helps you create awesome coming soon page with all premium like features for free.
10
 
11
  == Description ==
12
 
13
- Nice and easy to setup Coming soon / Under Construction and Maintenance plugin will help you in creating amazing and animated Coming soon page with all needed features.
14
 
15
- Coming soon 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.
16
 
17
  You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
18
 
@@ -49,7 +49,7 @@ Check out <a href="https://comingsoonwp.com/?utm_source=wordpressorg&utm_medium=
49
 
50
  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.
51
 
52
- 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. :)
53
 
54
 
55
  == Installation ==
@@ -85,6 +85,17 @@ As from the update of 1.0.9, the plugin offers the way to Live Preview you're Co
85
 
86
  == Changelog ==
87
 
 
 
 
 
 
 
 
 
 
 
 
88
  = 1.2 =
89
  * 2018/03/06
90
  * 9k installs & 34.5k downloads
@@ -123,9 +134,9 @@ As from the update of 1.0.9, the plugin offers the way to Live Preview you're Co
123
 
124
  = 1.0.9 =
125
  * 2017/11/28
126
- * Fixed small bug with URL of Coming soon notice on the Frontpage Admin bar
127
  * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
128
- * You can now preview your Coming soon page from the admin menu using the "Live Preview" button in the header.
129
  * Added Pinterest and Instagram icons
130
  * Other small enhancements
131
 
1
+ === Nifty Coming Soon & Under Construction Maintenance Page ===
2
  Contributors: WebFactory
3
  Tags: coming soon, coming soon page, launch page, maintenance mode, mailchimp, coming soon mode, under construction, maintenance mode page, landing page, offline page, subscribe form, maintenance
4
  Tested up to: 4.9
5
  License: GPLv3
6
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
7
+ Stable tag: 1.3
8
 
9
+ Nifty Coming soon, Under Construction & Maintenance page builder plugin helps you create awesome pages with all premium alike features for free.
10
 
11
  == Description ==
12
 
13
+ Nice and easy to setup Coming soon, Under Construction and Maintenance plugin will help you in creating amazing and animated Coming soon page with all the features you need.
14
 
15
+ 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.
16
 
17
  You can activate or deactivate any section of the page, select Google Fonts and have all like premium features for FREE.
18
 
49
 
50
  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.
51
 
52
+ Feel free to ask for help and don't forget to rate our plugin with 5 stars if you feel like its the real thing. :)
53
 
54
 
55
  == Installation ==
85
 
86
  == Changelog ==
87
 
88
+ = 1.3 =
89
+ * 2018/06/13
90
+ * 10k installs & 54.5k downloads
91
+ * a lot of minor bug fixes
92
+ * new: support for W3 Total Cache, WP Super Cache, Endurance Page Cache, SiteGround SuperCacher, WP Fastest Cache and Swift Performance Cache
93
+ * new: page meta description & page meta title
94
+ * new: transparent pattern overlay aka disable overlay
95
+ * new: support for custom login URLs like /login/
96
+ * new: alert() for succesfull newsletter signup
97
+ * update: max 4 images in slider
98
+
99
  = 1.2 =
100
  * 2018/03/06
101
  * 9k installs & 34.5k downloads
134
 
135
  = 1.0.9 =
136
  * 2017/11/28
137
+ * Fixed small bug with URL of notice on the Frontpage Admin bar
138
  * Editor, Author and Contributer roles can now access the website while the Cooming soon mode is active
139
+ * You can now preview your page from the admin menu using the "Live Preview" button in the header.
140
  * Added Pinterest and Instagram icons
141
  * Other small enhancements
142
 
template/assets/js/scripts.js CHANGED
@@ -33,13 +33,15 @@ $("#contact").submit(function(e){
33
  url: $('#contact').attr('action'),
34
  data: dataString,
35
  success: function(){
36
- $('.nifty-success').fadeIn(1000);
37
- $('.nifty-success').delay(3000).fadeOut(1000);
 
38
  }
39
  });
40
  } else{
41
- $('.nifty-error').fadeIn(1000);
42
- $('.nifty-error').delay(3000).fadeOut(1000);
 
43
  }
44
 
45
  return false;
33
  url: $('#contact').attr('action'),
34
  data: dataString,
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{
42
+ //$('.nifty-error').fadeIn(1000);
43
+ //$('.nifty-error').delay(3000).fadeOut(1000);
44
+ alert($('.nifty-error').first().text());
45
  }
46
 
47
  return false;
template/index.php CHANGED
@@ -13,12 +13,13 @@ Main Coming soon page template
13
  <meta charset="utf-8">
14
  <meta name="viewport" content="width=device-width">
15
 
16
- <title><?php bloginfo('name'); ?></title>
 
17
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/normalize.css',dirname(__FILE__)); ?>">
18
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/foundation.css',dirname(__FILE__)); ?>">
19
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/animate.css',dirname(__FILE__)); ?>">
20
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/icomoon.css',dirname(__FILE__)); ?>">
21
- <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/style.css',dirname(__FILE__)); ?>">
22
 
23
  <script src="<?php echo plugins_url('template/assets/js/vendor/custom.modernizr.js',dirname(__FILE__)); ?>"></script>
24
 
@@ -81,9 +82,9 @@ Main Coming soon page template
81
  $blogname = get_bloginfo();
82
  $sitetitle = ot_get_option( 'display_site_title' );
83
  $logopath = ot_get_option( 'upload_your_logo' );
84
- if( 'off' != $niftylogo ) {
85
  echo '<div class="nifty-logo"><a href="'.$sitepath.'"><img src="'.$logopath.'" alt="'.$blogname.'" /></a></div>';
86
- } else {
87
  echo '<div class="nifty-logo"><h1 class="nifty-title">'.$blogname.'</h1></div>';
88
 
89
  }
@@ -306,7 +307,7 @@ Main Coming soon page template
306
  $slide_1 = ot_get_option( 'upload_slider_images' );
307
  $slide_2 = ot_get_option( 'upload_slider_images_2' );
308
  $slide_3 = ot_get_option( 'upload_slider_images_3' );
309
- $slide_3 = ot_get_option( 'upload_slider_images_3' );
310
  $slider_time = ot_get_option( 'background_slider_time', '6000' );
311
  $body = '#nifty, body';
312
  $bck_animation = ot_get_option( 'background_slider_animation' );
@@ -329,7 +330,8 @@ Main Coming soon page template
329
  slides: [
330
  { src:'".$slide_1."'},
331
  { src:'".$slide_2."'},
332
- { src:'".$slide_3."'}
 
333
  ]
334
  }); });
335
  </script>";
13
  <meta charset="utf-8">
14
  <meta name="viewport" content="width=device-width">
15
 
16
+ <title><?php echo ot_get_option( 'page_title' ); ?></title>
17
+ <meta name="description" content="<?php echo ot_get_option( 'page_description' ); ?>">
18
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/normalize.css',dirname(__FILE__)); ?>">
19
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/foundation.css',dirname(__FILE__)); ?>">
20
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/animate.css',dirname(__FILE__)); ?>">
21
  <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/icomoon.css',dirname(__FILE__)); ?>">
22
+ <link rel="stylesheet" href="<?php echo plugins_url('template/assets/css/style.css',dirname(__FILE__)); ?>">
23
 
24
  <script src="<?php echo plugins_url('template/assets/js/vendor/custom.modernizr.js',dirname(__FILE__)); ?>"></script>
25
 
82
  $blogname = get_bloginfo();
83
  $sitetitle = ot_get_option( 'display_site_title' );
84
  $logopath = ot_get_option( 'upload_your_logo' );
85
+ if( 'off' != $niftylogo ) {
86
  echo '<div class="nifty-logo"><a href="'.$sitepath.'"><img src="'.$logopath.'" alt="'.$blogname.'" /></a></div>';
87
+ } elseif ('off' != $sitetitle ) {
88
  echo '<div class="nifty-logo"><h1 class="nifty-title">'.$blogname.'</h1></div>';
89
 
90
  }
307
  $slide_1 = ot_get_option( 'upload_slider_images' );
308
  $slide_2 = ot_get_option( 'upload_slider_images_2' );
309
  $slide_3 = ot_get_option( 'upload_slider_images_3' );
310
+ $slide_4 = ot_get_option( 'upload_slider_images_4' );
311
  $slider_time = ot_get_option( 'background_slider_time', '6000' );
312
  $body = '#nifty, body';
313
  $bck_animation = ot_get_option( 'background_slider_animation' );
330
  slides: [
331
  { src:'".$slide_1."'},
332
  { src:'".$slide_2."'},
333
+ { src:'".$slide_3."'},
334
+ { src:'".$slide_4."'}
335
  ]
336
  }); });
337
  </script>";