Version Description
Download this release
Release Info
Developer | niteo |
Plugin | CMP – Coming Soon & Maintenance Plugin by NiteoThemes |
Version | 1.4.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.0 to 1.4.0
- cmp-options.php +146 -131
- comingsoon.js +69 -69
- comingsoon.min.js +1 -1
- cs_style.css +19 -6
- languages/coming-soon-default.mo +0 -0
- languages/coming-soon-default.po +275 -103
- niteo-cmp.php +126 -21
- readme.txt +22 -5
- themes/construct/construct-theme.php +57 -21
- themes/construct/img/construct_thumbnail.jpg +0 -0
- themes/construct/style.css +18 -1
- themes/fifty_thumbnail.jpg +0 -0
- themes/frame_thumbnail.jpg +0 -0
- themes/hardwork/hardwork-theme.php +62 -28
- themes/hardwork/img/hardwork_thumbnail.jpg +0 -0
- themes/hardwork/style.css +46 -13
- themes/hardwork_premium_thumbnail.jpg +0 -0
cmp-options.php
CHANGED
@@ -8,75 +8,12 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
8 |
}
|
9 |
}
|
10 |
|
11 |
-
$ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
|
12 |
-
$title = stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!'));
|
13 |
-
$descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
|
14 |
-
|
15 |
-
$niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
|
16 |
-
$niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
|
17 |
-
$niteoCS_unsplash_id = get_option('niteoCS_unsplash_id', '');
|
18 |
-
$logo_id = get_option('niteoCS_logo_id');
|
19 |
-
|
20 |
-
if ( $logo_id != '' ) {
|
21 |
-
$logo_url = wp_get_attachment_image_src($logo_id, 'medium');
|
22 |
-
if ( isset($logo_url[0]) ){
|
23 |
-
$logo_url = $logo_url[0];
|
24 |
-
}
|
25 |
-
}
|
26 |
-
|
27 |
-
$niteoCS_banner = get_option('niteoCS_banner', '0');
|
28 |
-
$banner_id = get_option('niteoCS_banner_id');
|
29 |
-
$unsplash_feed = get_option('niteoCS_unsplash_feed', '0');
|
30 |
-
$niteoCS_unsplash_0 = get_option('niteoCS_unsplash_0');
|
31 |
-
$niteoCS_unsplash_2 = get_option('niteoCS_unsplash_2');
|
32 |
-
$niteoCS_unsplash_3 = get_option('niteoCS_unsplash_3');
|
33 |
-
$unsplash_category = get_option('niteoCS_unsplash_category', 'buildings');
|
34 |
-
$niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
|
35 |
-
$niteoCS_soc_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
|
36 |
-
$niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '0');
|
37 |
-
$niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
38 |
-
$niteoCS_subscribe_label= get_option('niteoCS_subscribe_label');
|
39 |
-
$subscriber_list = get_option('niteoCS_subscribers_list');
|
40 |
-
$niteoCS_csv_export_time = get_option('niteoCS_csv_export_time');
|
41 |
-
$niteoCS_font_content = get_option('niteoCS_font_content', 'Average Sans');
|
42 |
-
$niteoCS_font_headings = get_option('niteoCS_font_headings', 'Fjalla One');
|
43 |
-
$niteoCS_font_content_custom = get_option('niteoCS_font_content_custom');
|
44 |
-
$niteoCS_font_headings_custom = get_option('niteoCS_font_headings_custom');
|
45 |
-
$niteoCS_body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
|
46 |
-
$body = get_option('niteoCS_body');
|
47 |
-
$niteoCS_copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
|
48 |
-
|
49 |
-
|
50 |
-
$new_subs = array();
|
51 |
-
|
52 |
-
if ( $subscriber_list ) {
|
53 |
-
foreach ($subscriber_list as $subscriber) {
|
54 |
-
|
55 |
-
if ( $subscriber['timestamp'] > $niteoCS_csv_export_time )
|
56 |
-
array_push($new_subs, $subscriber['email']);
|
57 |
-
}
|
58 |
-
$new_subs = count($new_subs);
|
59 |
-
} else {
|
60 |
-
$new_subs = '0';
|
61 |
-
}
|
62 |
-
|
63 |
-
$social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
|
64 |
-
$premium = $this->cmp_plugin_premium();
|
65 |
-
|
66 |
if (isset($_POST['niteoCS_logo_id']) && ( is_numeric($_POST['niteoCS_logo_id']) || empty($_POST['niteoCS_logo_id']))) {
|
67 |
update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
|
68 |
-
$logo_id = get_option('niteoCS_logo_id');
|
69 |
-
if ( $logo_id != '' ) {
|
70 |
-
$logo_url = wp_get_attachment_image_src($logo_id, 'medium');
|
71 |
-
if ( isset($logo_url[0]) ){
|
72 |
-
$logo_url = $logo_url[0];
|
73 |
-
}
|
74 |
-
}
|
75 |
}
|
76 |
|
77 |
if (isset($_POST['niteoCS_banner']) && is_numeric($_POST['niteoCS_banner'])) {
|
78 |
update_option('niteoCS_banner', sanitize_text_field($_POST['niteoCS_banner']));
|
79 |
-
$niteoCS_banner = get_option('niteoCS_banner');
|
80 |
}
|
81 |
|
82 |
if (isset($_POST['niteoCS_banner_id'])) {
|
@@ -92,14 +29,12 @@ if (isset($_POST['niteoCS_banner_id'])) {
|
|
92 |
|
93 |
if ( $allnums === true || $_POST['niteoCS_banner_id'] == '' ) {
|
94 |
update_option('niteoCS_banner_id', sanitize_text_field($_POST['niteoCS_banner_id']));
|
95 |
-
$banner_id = get_option('niteoCS_banner_id');
|
96 |
}
|
97 |
|
98 |
}
|
99 |
|
100 |
if (isset($_POST['unsplash_feed']) && is_numeric($_POST['unsplash_feed'])) {
|
101 |
update_option('niteoCS_unsplash_feed', sanitize_text_field($_POST['unsplash_feed']));
|
102 |
-
$unsplash_feed = get_option('niteoCS_unsplash_feed');
|
103 |
}
|
104 |
|
105 |
if (isset($_POST['niteoCS_unsplash_0'])) {
|
@@ -111,10 +46,8 @@ if (isset($_POST['niteoCS_unsplash_0'])) {
|
|
111 |
// sanitize string
|
112 |
update_option('niteoCS_unsplash_0', sanitize_text_field($_POST['niteoCS_unsplash_0']));
|
113 |
}
|
114 |
-
$niteoCS_unsplash_0 = get_option('niteoCS_unsplash_0');
|
115 |
}
|
116 |
|
117 |
-
|
118 |
if (isset($_POST['niteoCS_unsplash_2'])) {
|
119 |
$url = $_POST['niteoCS_unsplash_2'];
|
120 |
// if we have url sanitize url
|
@@ -124,21 +57,17 @@ if (isset($_POST['niteoCS_unsplash_2'])) {
|
|
124 |
// sanitize string
|
125 |
update_option('niteoCS_unsplash_2', sanitize_text_field($_POST['niteoCS_unsplash_2']));
|
126 |
}
|
127 |
-
$niteoCS_unsplash_2 = get_option('niteoCS_unsplash_2');
|
128 |
}
|
129 |
|
130 |
if (isset($_POST['niteoCS_unsplash_3'])) {
|
131 |
update_option('niteoCS_unsplash_3', sanitize_text_field($_POST['niteoCS_unsplash_3']));
|
132 |
-
$niteoCS_unsplash_3 = get_option('niteoCS_unsplash_3');
|
133 |
}
|
134 |
|
135 |
if (isset($_POST['unsplash_category'])) {
|
136 |
update_option('niteoCS_unsplash_category', sanitize_text_field($_POST['unsplash_category']));
|
137 |
-
$unsplash_category = get_option('niteoCS_unsplash_category');
|
138 |
}
|
139 |
if (isset($_POST['niteoCS_cat_keyword'])) {
|
140 |
update_option('niteoCS_cat_keyword', sanitize_text_field($_POST['niteoCS_cat_keyword']));
|
141 |
-
$niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
|
142 |
}
|
143 |
|
144 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
@@ -154,100 +83,152 @@ if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
|
154 |
|
155 |
if (isset($_POST['niteoCS_title'])) {
|
156 |
update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
|
157 |
-
$title = get_option('niteoCS_title');
|
158 |
}
|
159 |
|
160 |
if (isset($_POST['niteoCS_descr'])) {
|
161 |
update_option('niteoCS_descr', sanitize_text_field($_POST['niteoCS_descr']));
|
162 |
-
$descr = get_option('niteoCS_descr');
|
163 |
}
|
164 |
|
165 |
if (isset($_POST['niteoCS_analytics'])) {
|
166 |
update_option('niteoCS_analytics', sanitize_text_field($_POST['niteoCS_analytics']));
|
167 |
-
$niteoCS_analytics = stripslashes(get_option('niteoCS_analytics'));
|
168 |
}
|
169 |
|
170 |
if (isset($_POST['niteoCS_custom_css'])) {
|
171 |
update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
|
172 |
-
$niteoCS_custom_css = stripslashes(wp_filter_nohtml_kses(get_option('niteoCS_custom_css')));
|
173 |
}
|
174 |
|
175 |
if ( isset($_POST['select_theme']) && in_array($_POST['select_theme'], $theme_array)) {
|
176 |
update_option('niteoCS_theme', sanitize_text_field($_POST['select_theme']));
|
177 |
-
$selectedTheme = $_POST['select_theme'];
|
178 |
}
|
179 |
|
180 |
if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscribe_type'])) {
|
181 |
update_option('niteoCS_subscribe_type', sanitize_text_field($_POST['niteoCS_subscribe_type']));
|
182 |
-
$niteoCS_subscribe_type= stripslashes(get_option('niteoCS_subscribe_type'));
|
183 |
}
|
184 |
|
185 |
if (isset($_POST['niteoCS_subscribe_label'])) {
|
186 |
update_option('niteoCS_subscribe_label', sanitize_text_field($_POST['niteoCS_subscribe_label']));
|
187 |
-
$niteoCS_subscribe_label= get_option('niteoCS_subscribe_label');
|
188 |
}
|
189 |
|
190 |
if (isset($_POST['niteoCS_font_headings'])) {
|
191 |
update_option('niteoCS_font_headings', sanitize_text_field($_POST['niteoCS_font_headings']));
|
192 |
-
$niteoCS_font_headings = get_option('niteoCS_font_headings');
|
193 |
}
|
194 |
|
195 |
if (isset($_POST['niteoCS_font_content'])) {
|
196 |
update_option('niteoCS_font_content', sanitize_text_field($_POST['niteoCS_font_content']));
|
197 |
-
$niteoCS_font_content = get_option('niteoCS_font_content');
|
198 |
}
|
199 |
-
|
200 |
if (isset($_POST['niteoCS_font_headings_custom'])) {
|
201 |
update_option('niteoCS_font_headings_custom', ucwords( sanitize_text_field($_POST['niteoCS_font_headings_custom']) ) );
|
202 |
-
$niteoCS_font_headings_custom = get_option('niteoCS_font_headings_custom');
|
203 |
}
|
204 |
|
205 |
if (isset($_POST['niteoCS_font_content_custom'])) {
|
206 |
update_option('niteoCS_font_content_custom', ucwords( sanitize_text_field($_POST['niteoCS_font_content_custom']) ) );
|
207 |
-
$niteoCS_font_content_custom = get_option('niteoCS_font_content_custom');
|
208 |
}
|
209 |
|
210 |
-
|
211 |
if (isset($_POST['niteoCS_soc_title'])) {
|
212 |
update_option('niteoCS_soc_title', sanitize_text_field($_POST['niteoCS_soc_title']));
|
213 |
-
$niteoCS_soc_title = get_option('niteoCS_soc_title');
|
214 |
}
|
215 |
|
216 |
-
|
217 |
-
|
218 |
-
update_option('niteoCS_'.$social, esc_url_raw($_POST['niteoCS_'.$social]));
|
219 |
-
}
|
220 |
-
|
221 |
-
if (isset($_POST['niteoCS_'.$social]) && $social == 'envelope-o' && is_email($_POST['niteoCS_'.$social])) {
|
222 |
-
update_option('niteoCS_'.$social, $_POST['niteoCS_'.$social]);
|
223 |
-
}
|
224 |
}
|
225 |
|
|
|
226 |
if ( isset($_POST['niteoCS_subscribe_code']) ) {
|
227 |
$shortcode = str_replace('"', '\'', $_POST['niteoCS_subscribe_code']);
|
228 |
update_option('niteoCS_subscribe_code', sanitize_text_field($shortcode));
|
229 |
-
$niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
230 |
}
|
231 |
|
232 |
if (isset($_POST['niteoCS_body_title'])) {
|
233 |
update_option('niteoCS_body_title', sanitize_text_field($_POST['niteoCS_body_title']));
|
234 |
-
$niteoCS_body_title = get_option('niteoCS_body_title');
|
235 |
}
|
236 |
|
237 |
if (isset($_POST['niteoCS_body'])) {
|
238 |
update_option('niteoCS_body', $this->niteo_sanitize_html( $_POST['niteoCS_body']));
|
239 |
-
$body = get_option('niteoCS_body');
|
240 |
}
|
241 |
|
242 |
|
243 |
if (isset($_POST['niteoCS_copyright'])) {
|
244 |
update_option('niteoCS_copyright', $this->niteo_sanitize_html( $_POST['niteoCS_copyright']));
|
245 |
-
$niteoCS_copyright = get_option('niteoCS_copyright');
|
246 |
}
|
247 |
|
248 |
|
249 |
-
// Handle ZIP UPLOAD
|
250 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
251 |
if( isset($_POST['submit_theme']) ) {
|
252 |
|
253 |
// allow zip file to upload
|
@@ -275,10 +256,7 @@ if( isset($_POST['submit_theme']) ) {
|
|
275 |
WP_Filesystem();
|
276 |
$source_path = $movefile['file'];
|
277 |
$theme_name = str_replace('.zip', '', $filename);
|
278 |
-
$destination_path =
|
279 |
-
if (isset($destination_path[0])) {
|
280 |
-
$destination_path = $destination_path[0];
|
281 |
-
}
|
282 |
|
283 |
// create new theme DIR
|
284 |
if ( wp_mkdir_p( $destination_path ) ) {
|
@@ -288,7 +266,9 @@ if( isset($_POST['submit_theme']) ) {
|
|
288 |
if ( $unzipfile ) {
|
289 |
// delete FILE
|
290 |
wp_delete_file( $source_path );
|
291 |
-
|
|
|
|
|
292 |
_e('<p class="cmp-success">Successfully installed new Theme!</p>', 'cmp');
|
293 |
|
294 |
} else {
|
@@ -415,14 +395,13 @@ add_thickbox();
|
|
415 |
// if not in available themes array, display buy button
|
416 |
if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
|
417 |
|
418 |
-
<a href="http://
|
419 |
<a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
|
420 |
-
|
421 |
</div>
|
422 |
<?php
|
423 |
} else { ?>
|
424 |
<label title="<?php echo esc_attr($premium_theme['name']);?>">
|
425 |
-
<img src="<?php echo esc_url( plugins_url().'/
|
426 |
<input type="radio" name="select_theme" value="<?php echo esc_attr($premium_theme['name']);?>" id="displayOption-<?php echo esc_attr($premium_theme['name']);?>"<?php if ( $this->cmp_selectedTheme() == $premium_theme['name'] ) { echo ' checked="checked"'; } ?>> <?php echo ucwords(esc_html(str_replace('_', ' ', $premium_theme['name'])));?>
|
427 |
</label>
|
428 |
|
@@ -563,7 +542,7 @@ add_thickbox();
|
|
563 |
|
564 |
<fieldset id="default_banner">
|
565 |
<div class="banner-wrapper">
|
566 |
-
<img src="<?php echo esc_url(
|
567 |
</div>
|
568 |
<input id="delete-banner" type="button" class="button" value="Remove Banner" />
|
569 |
</fieldset>
|
@@ -574,8 +553,8 @@ add_thickbox();
|
|
574 |
|
575 |
<?php
|
576 |
// include theme slider settings, if exists
|
577 |
-
if (file_exists(
|
578 |
-
include (
|
579 |
}
|
580 |
?>
|
581 |
|
@@ -683,7 +662,9 @@ add_thickbox();
|
|
683 |
|
684 |
<?php
|
685 |
// include theme related settings
|
686 |
-
|
|
|
|
|
687 |
?>
|
688 |
|
689 |
<div class="table-wrapper customization" id="subscribe-section">
|
@@ -727,7 +708,7 @@ add_thickbox();
|
|
727 |
<input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
|
728 |
</label>
|
729 |
|
730 |
-
<p><?php _e('You can find Shortode in your Contact Form Plugin settings. Should be something
|
731 |
|
732 |
<p><?php _e('Your Subscribe Form should have only one input (type=email) and submit (input=submit). If you have more than one input field, our design will not work and you need to use custom CSS to style your Subscribe form.', 'cmp');?></p>
|
733 |
<p><?php _e('Example of Subscribe Form code for ', 'cmp');?><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp</a> plugin:</p>
|
@@ -750,8 +731,8 @@ add_thickbox();
|
|
750 |
|
751 |
<p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
|
752 |
<p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
|
753 |
-
<p><?php _e('Last Export Date: ', 'cmp'); echo $niteoCS_csv_export_time ?
|
754 |
-
<a href="#" id="csv-generate" class="button"
|
755 |
|
756 |
</fieldset>
|
757 |
</td>
|
@@ -778,36 +759,69 @@ add_thickbox();
|
|
778 |
<td>
|
779 |
<ul class="social-media">
|
780 |
<?php
|
781 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
782 |
$social_active = '';
|
783 |
-
|
784 |
-
if ($
|
785 |
$social_active = 'active';
|
786 |
-
|
|
|
787 |
<li>
|
788 |
-
<i class="fa fa-<?php echo $social . ' '. $social_active;?>" data-
|
789 |
</li>
|
790 |
-
|
791 |
} ?>
|
792 |
</ul>
|
793 |
|
794 |
-
<
|
795 |
<?php
|
796 |
-
foreach ( $
|
797 |
-
|
798 |
-
$
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
<
|
803 |
-
<
|
804 |
-
|
805 |
-
|
|
|
|
|
|
|
|
|
|
|
806 |
<?php
|
807 |
} ?>
|
808 |
-
|
|
|
|
|
|
|
809 |
</td>
|
810 |
</tr>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
811 |
</table>
|
812 |
</div>
|
813 |
|
@@ -905,6 +919,7 @@ add_thickbox();
|
|
905 |
<script>
|
906 |
// test Unsplash
|
907 |
jQuery(document).ready(function($){
|
|
|
908 |
jQuery('#test-unsplash').click(function(e){
|
909 |
e.preventDefault();
|
910 |
|
8 |
}
|
9 |
}
|
10 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
if (isset($_POST['niteoCS_logo_id']) && ( is_numeric($_POST['niteoCS_logo_id']) || empty($_POST['niteoCS_logo_id']))) {
|
12 |
update_option('niteoCS_logo_id', sanitize_text_field($_POST['niteoCS_logo_id']));
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
13 |
}
|
14 |
|
15 |
if (isset($_POST['niteoCS_banner']) && is_numeric($_POST['niteoCS_banner'])) {
|
16 |
update_option('niteoCS_banner', sanitize_text_field($_POST['niteoCS_banner']));
|
|
|
17 |
}
|
18 |
|
19 |
if (isset($_POST['niteoCS_banner_id'])) {
|
29 |
|
30 |
if ( $allnums === true || $_POST['niteoCS_banner_id'] == '' ) {
|
31 |
update_option('niteoCS_banner_id', sanitize_text_field($_POST['niteoCS_banner_id']));
|
|
|
32 |
}
|
33 |
|
34 |
}
|
35 |
|
36 |
if (isset($_POST['unsplash_feed']) && is_numeric($_POST['unsplash_feed'])) {
|
37 |
update_option('niteoCS_unsplash_feed', sanitize_text_field($_POST['unsplash_feed']));
|
|
|
38 |
}
|
39 |
|
40 |
if (isset($_POST['niteoCS_unsplash_0'])) {
|
46 |
// sanitize string
|
47 |
update_option('niteoCS_unsplash_0', sanitize_text_field($_POST['niteoCS_unsplash_0']));
|
48 |
}
|
|
|
49 |
}
|
50 |
|
|
|
51 |
if (isset($_POST['niteoCS_unsplash_2'])) {
|
52 |
$url = $_POST['niteoCS_unsplash_2'];
|
53 |
// if we have url sanitize url
|
57 |
// sanitize string
|
58 |
update_option('niteoCS_unsplash_2', sanitize_text_field($_POST['niteoCS_unsplash_2']));
|
59 |
}
|
|
|
60 |
}
|
61 |
|
62 |
if (isset($_POST['niteoCS_unsplash_3'])) {
|
63 |
update_option('niteoCS_unsplash_3', sanitize_text_field($_POST['niteoCS_unsplash_3']));
|
|
|
64 |
}
|
65 |
|
66 |
if (isset($_POST['unsplash_category'])) {
|
67 |
update_option('niteoCS_unsplash_category', sanitize_text_field($_POST['unsplash_category']));
|
|
|
68 |
}
|
69 |
if (isset($_POST['niteoCS_cat_keyword'])) {
|
70 |
update_option('niteoCS_cat_keyword', sanitize_text_field($_POST['niteoCS_cat_keyword']));
|
|
|
71 |
}
|
72 |
|
73 |
if ( $_SERVER['REQUEST_METHOD'] == 'POST' ) {
|
83 |
|
84 |
if (isset($_POST['niteoCS_title'])) {
|
85 |
update_option('niteoCS_title', sanitize_text_field($_POST['niteoCS_title']));
|
|
|
86 |
}
|
87 |
|
88 |
if (isset($_POST['niteoCS_descr'])) {
|
89 |
update_option('niteoCS_descr', sanitize_text_field($_POST['niteoCS_descr']));
|
|
|
90 |
}
|
91 |
|
92 |
if (isset($_POST['niteoCS_analytics'])) {
|
93 |
update_option('niteoCS_analytics', sanitize_text_field($_POST['niteoCS_analytics']));
|
|
|
94 |
}
|
95 |
|
96 |
if (isset($_POST['niteoCS_custom_css'])) {
|
97 |
update_option('niteoCS_custom_css', $_POST['niteoCS_custom_css']);
|
|
|
98 |
}
|
99 |
|
100 |
if ( isset($_POST['select_theme']) && in_array($_POST['select_theme'], $theme_array)) {
|
101 |
update_option('niteoCS_theme', sanitize_text_field($_POST['select_theme']));
|
|
|
102 |
}
|
103 |
|
104 |
if (isset($_POST['niteoCS_subscribe_type']) && is_numeric($_POST['niteoCS_subscribe_type'])) {
|
105 |
update_option('niteoCS_subscribe_type', sanitize_text_field($_POST['niteoCS_subscribe_type']));
|
|
|
106 |
}
|
107 |
|
108 |
if (isset($_POST['niteoCS_subscribe_label'])) {
|
109 |
update_option('niteoCS_subscribe_label', sanitize_text_field($_POST['niteoCS_subscribe_label']));
|
|
|
110 |
}
|
111 |
|
112 |
if (isset($_POST['niteoCS_font_headings'])) {
|
113 |
update_option('niteoCS_font_headings', sanitize_text_field($_POST['niteoCS_font_headings']));
|
|
|
114 |
}
|
115 |
|
116 |
if (isset($_POST['niteoCS_font_content'])) {
|
117 |
update_option('niteoCS_font_content', sanitize_text_field($_POST['niteoCS_font_content']));
|
|
|
118 |
}
|
|
|
119 |
if (isset($_POST['niteoCS_font_headings_custom'])) {
|
120 |
update_option('niteoCS_font_headings_custom', ucwords( sanitize_text_field($_POST['niteoCS_font_headings_custom']) ) );
|
|
|
121 |
}
|
122 |
|
123 |
if (isset($_POST['niteoCS_font_content_custom'])) {
|
124 |
update_option('niteoCS_font_content_custom', ucwords( sanitize_text_field($_POST['niteoCS_font_content_custom']) ) );
|
|
|
125 |
}
|
126 |
|
|
|
127 |
if (isset($_POST['niteoCS_soc_title'])) {
|
128 |
update_option('niteoCS_soc_title', sanitize_text_field($_POST['niteoCS_soc_title']));
|
|
|
129 |
}
|
130 |
|
131 |
+
if (isset($_POST['niteoCS_socialmedia'])) {
|
132 |
+
update_option('niteoCS_socialmedia', sanitize_text_field($_POST['niteoCS_socialmedia']));
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
}
|
134 |
|
135 |
+
|
136 |
if ( isset($_POST['niteoCS_subscribe_code']) ) {
|
137 |
$shortcode = str_replace('"', '\'', $_POST['niteoCS_subscribe_code']);
|
138 |
update_option('niteoCS_subscribe_code', sanitize_text_field($shortcode));
|
|
|
139 |
}
|
140 |
|
141 |
if (isset($_POST['niteoCS_body_title'])) {
|
142 |
update_option('niteoCS_body_title', sanitize_text_field($_POST['niteoCS_body_title']));
|
|
|
143 |
}
|
144 |
|
145 |
if (isset($_POST['niteoCS_body'])) {
|
146 |
update_option('niteoCS_body', $this->niteo_sanitize_html( $_POST['niteoCS_body']));
|
|
|
147 |
}
|
148 |
|
149 |
|
150 |
if (isset($_POST['niteoCS_copyright'])) {
|
151 |
update_option('niteoCS_copyright', $this->niteo_sanitize_html( $_POST['niteoCS_copyright']));
|
|
|
152 |
}
|
153 |
|
154 |
|
|
|
155 |
|
156 |
+
// get saved options
|
157 |
+
$ajax_nonce = wp_create_nonce( 'cmp-coming-soon-ajax-secret' );
|
158 |
+
$title = stripslashes(get_option('niteoCS_title', get_bloginfo('name').' Coming soon!'));
|
159 |
+
$descr = stripslashes(get_option('niteoCS_descr', 'Just another Coming Soon Page'));
|
160 |
+
$niteoCS_analytics = stripslashes(get_option('niteoCS_analytics', ''));
|
161 |
+
$niteoCS_custom_css = stripslashes(get_option('niteoCS_custom_css', ''));
|
162 |
+
$niteoCS_unsplash_id = get_option('niteoCS_unsplash_id', '');
|
163 |
+
$logo_id = get_option('niteoCS_logo_id');
|
164 |
+
$niteoCS_banner = get_option('niteoCS_banner', '0');
|
165 |
+
$banner_id = get_option('niteoCS_banner_id');
|
166 |
+
$unsplash_feed = get_option('niteoCS_unsplash_feed', '0');
|
167 |
+
$niteoCS_unsplash_0 = get_option('niteoCS_unsplash_0');
|
168 |
+
$niteoCS_unsplash_2 = get_option('niteoCS_unsplash_2');
|
169 |
+
$niteoCS_unsplash_3 = get_option('niteoCS_unsplash_3');
|
170 |
+
$unsplash_category = get_option('niteoCS_unsplash_category', 'buildings');
|
171 |
+
$niteoCS_cat_keyword = get_option('niteoCS_cat_keyword');
|
172 |
+
$niteoCS_soc_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
|
173 |
+
$niteoCS_subscribe_type = get_option('niteoCS_subscribe_type', '0');
|
174 |
+
$niteoCS_subscribe_code = get_option('niteoCS_subscribe_code');
|
175 |
+
$niteoCS_subscribe_label = get_option('niteoCS_subscribe_label');
|
176 |
+
$subscriber_list = get_option('niteoCS_subscribers_list');
|
177 |
+
$niteoCS_csv_export_time = get_option('niteoCS_csv_export_time');
|
178 |
+
$niteoCS_font_content = get_option('niteoCS_font_content', 'Average Sans');
|
179 |
+
$niteoCS_font_headings = get_option('niteoCS_font_headings', 'Fjalla One');
|
180 |
+
$niteoCS_font_content_custom = get_option('niteoCS_font_content_custom');
|
181 |
+
$niteoCS_font_headings_custom = get_option('niteoCS_font_headings_custom');
|
182 |
+
$niteoCS_body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
|
183 |
+
$body = get_option('niteoCS_body');
|
184 |
+
$niteoCS_copyright = get_option('niteoCS_copyright', 'Copyright 2017 NiteoThemes. All rights reserved.');
|
185 |
+
$premium = $this->cmp_plugin_premium();
|
186 |
+
$niteoCS_socialmedia = stripslashes(get_option('niteoCS_socialmedia'));
|
187 |
+
|
188 |
+
|
189 |
+
// get logo url from id
|
190 |
+
if ( $logo_id != '' ) {
|
191 |
+
$logo_url = wp_get_attachment_image_src($logo_id, 'medium');
|
192 |
+
if ( isset($logo_url[0]) ){
|
193 |
+
$logo_url = $logo_url[0];
|
194 |
+
}
|
195 |
+
}
|
196 |
+
|
197 |
+
// count new subscribers
|
198 |
+
$new_subs = array();
|
199 |
+
|
200 |
+
if ( $subscriber_list ) {
|
201 |
+
foreach ($subscriber_list as $subscriber) {
|
202 |
+
|
203 |
+
if ( $subscriber['timestamp'] > $niteoCS_csv_export_time )
|
204 |
+
array_push($new_subs, $subscriber['email']);
|
205 |
+
}
|
206 |
+
$new_subs = count($new_subs);
|
207 |
+
} else {
|
208 |
+
$new_subs = '0';
|
209 |
+
}
|
210 |
+
|
211 |
+
// migrade social media to new option after update 1.4.0
|
212 |
+
if ( !get_option('niteoCS_socialmedia') ) {
|
213 |
+
$social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
|
214 |
+
$i = 0;
|
215 |
+
$new_socials = array();
|
216 |
+
foreach ( $social_media as $social ) {
|
217 |
+
|
218 |
+
$social_field = get_option('niteoCS_'.$social);
|
219 |
+
|
220 |
+
$new_socials[$i]['name'] = $social;
|
221 |
+
$new_socials[$i]['url'] = $social_field;
|
222 |
+
$new_socials[$i]['active'] = '1';
|
223 |
+
$new_socials[$i]['hidden'] = $social_field ? '0' : '1';
|
224 |
+
$new_socials[$i]['order'] = $i;
|
225 |
+
$i++;
|
226 |
+
|
227 |
+
}
|
228 |
+
$niteoCS_socialmedia = json_encode($new_socials);
|
229 |
+
}
|
230 |
+
|
231 |
+
// Handle ZIP UPLOAD
|
232 |
if( isset($_POST['submit_theme']) ) {
|
233 |
|
234 |
// allow zip file to upload
|
256 |
WP_Filesystem();
|
257 |
$source_path = $movefile['file'];
|
258 |
$theme_name = str_replace('.zip', '', $filename);
|
259 |
+
$destination_path = plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
|
|
|
|
|
|
|
260 |
|
261 |
// create new theme DIR
|
262 |
if ( wp_mkdir_p( $destination_path ) ) {
|
266 |
if ( $unzipfile ) {
|
267 |
// delete FILE
|
268 |
wp_delete_file( $source_path );
|
269 |
+
$premium_installed = array_map('basename', glob( $destination_path . '*', GLOB_ONLYDIR));
|
270 |
+
$theme_array = array_merge( $theme_array, $premium_installed );
|
271 |
+
|
272 |
_e('<p class="cmp-success">Successfully installed new Theme!</p>', 'cmp');
|
273 |
|
274 |
} else {
|
395 |
// if not in available themes array, display buy button
|
396 |
if ( !in_array( $premium_theme['name'], $theme_array) ) { ?>
|
397 |
|
398 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=<?php echo esc_attr($premium_theme['name']);?>" target="_blank"><img src="<?php echo esc_url( plugins_url().'/'.$this->installedFolder.'\/themes/'. $premium_theme['name']. '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme"></a>
|
399 |
<a class="button" href="<?php echo esc_url($premium_theme['url']);?>" target="_blank">Buy for <?php echo esc_html($premium_theme['price']);?> USD</a>
|
|
|
400 |
</div>
|
401 |
<?php
|
402 |
} else { ?>
|
403 |
<label title="<?php echo esc_attr($premium_theme['name']);?>">
|
404 |
+
<img src="<?php echo esc_url( plugins_url().'/cmp-premium-themes/'. $premium_theme['name'] . '/img/'. $premium_theme['name'] . '_thumbnail.jpg' );?>" alt="<?php echo esc_attr(ucwords($premium_theme['name']));?> Premium Theme">
|
405 |
<input type="radio" name="select_theme" value="<?php echo esc_attr($premium_theme['name']);?>" id="displayOption-<?php echo esc_attr($premium_theme['name']);?>"<?php if ( $this->cmp_selectedTheme() == $premium_theme['name'] ) { echo ' checked="checked"'; } ?>> <?php echo ucwords(esc_html(str_replace('_', ' ', $premium_theme['name'])));?>
|
406 |
</label>
|
407 |
|
542 |
|
543 |
<fieldset id="default_banner">
|
544 |
<div class="banner-wrapper">
|
545 |
+
<img src="<?php echo esc_url($this->cmp_themeDirPath().$this->cmp_selectedTheme().'/img/'.$this->cmp_selectedTheme().'_banner_large.jpg');?>" alt="Default Media">
|
546 |
</div>
|
547 |
<input id="delete-banner" type="button" class="button" value="Remove Banner" />
|
548 |
</fieldset>
|
553 |
|
554 |
<?php
|
555 |
// include theme slider settings, if exists
|
556 |
+
if (file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-slider_settings.php')) {
|
557 |
+
include ( $this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-slider_settings.php' );
|
558 |
}
|
559 |
?>
|
560 |
|
662 |
|
663 |
<?php
|
664 |
// include theme related settings
|
665 |
+
if (file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php')) {
|
666 |
+
require ( $this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-settings.php' );
|
667 |
+
}
|
668 |
?>
|
669 |
|
670 |
<div class="table-wrapper customization" id="subscribe-section">
|
708 |
<input type="text" name="niteoCS_subscribe_code" id="niteoCS_subscribe_code" value="<?php echo stripslashes( esc_attr($niteoCS_subscribe_code ));?>" class="regular-text code">
|
709 |
</label>
|
710 |
|
711 |
+
<p><?php _e('You can find Shortode in your Contact Form Plugin settings. Should be something similar to code below: ', 'cmp');?><br><code>[contact-form-7 id="8" title='Contact form 1']</code></p>
|
712 |
|
713 |
<p><?php _e('Your Subscribe Form should have only one input (type=email) and submit (input=submit). If you have more than one input field, our design will not work and you need to use custom CSS to style your Subscribe form.', 'cmp');?></p>
|
714 |
<p><?php _e('Example of Subscribe Form code for ', 'cmp');?><a href="https://wordpress.org/plugins/mailchimp-for-wp/">MailChimp</a> plugin:</p>
|
731 |
|
732 |
<p><?php _e('Total Subscribers: ', 'cmp'); echo $subscriber_list ? count( $subscriber_list ) : '0';?></p>
|
733 |
<p><?php _e('Since last export: ', 'cmp'); echo $new_subs;?></p>
|
734 |
+
<p><?php _e('Last Export Date: ', 'cmp'); echo $niteoCS_csv_export_time ? date('Y-m-d\ H:i:s\ ', $niteoCS_csv_export_time) : __('Never exported', 'cmp');?></p>
|
735 |
+
<a href="#generate-mailinglist" id="csv-generate" class="button"><?php _e('Generate CSV', 'cmp');?></a>
|
736 |
|
737 |
</fieldset>
|
738 |
</td>
|
759 |
<td>
|
760 |
<ul class="social-media">
|
761 |
<?php
|
762 |
+
$socialmedia = json_decode($niteoCS_socialmedia, true);
|
763 |
+
|
764 |
+
//sort array by hidden, then order key
|
765 |
+
function sort_social($a, $b){
|
766 |
+
if ( $a['hidden'] == $b['hidden'] ) {
|
767 |
+
if( $a['order'] == $b['order'] ) {
|
768 |
+
return 0;
|
769 |
+
}
|
770 |
+
return $a['order'] < $b['order'] ? -1 : 1;
|
771 |
+
} else {
|
772 |
+
return $a['hidden'] > $b['hidden'] ? 1 : -1;
|
773 |
+
}
|
774 |
+
}
|
775 |
+
uasort($socialmedia , 'sort_social');
|
776 |
+
|
777 |
+
// render icons
|
778 |
+
foreach ( $socialmedia as $social ) {
|
779 |
$social_active = '';
|
780 |
+
|
781 |
+
if ($social['hidden'] == '0') {
|
782 |
$social_active = 'active';
|
783 |
+
}
|
784 |
+
?>
|
785 |
<li>
|
786 |
+
<i class="fa fa-<?php echo esc_attr($social['name']) . ' '. $social_active;?>" data-name="<?php echo esc_attr($social['name']);?>" aria-hidden="true"></i>
|
787 |
</li>
|
788 |
+
<?php
|
789 |
} ?>
|
790 |
</ul>
|
791 |
|
792 |
+
<ul class="social-inputs">
|
793 |
<?php
|
794 |
+
foreach ( $socialmedia as $social ) {
|
795 |
+
|
796 |
+
($social['hidden'] == '0') ? $active = 'active ' : $active = '';
|
797 |
+
|
798 |
+
($social['active'] == '0') ? $disabled = 'disabled ' : $disabled = '';
|
799 |
+
?>
|
800 |
+
<li class="<?php echo esc_attr($active).esc_attr($social['name']);?>">
|
801 |
+
<p> <i class="fa fa-sort" aria-hidden="true"></i>
|
802 |
+
<label for="niteoCS_<?php echo esc_attr($social['name']);?>" class="<?php echo esc_attr($social['name']);?>"><?php echo ($social['name'] == 'envelope-o') ? 'Email address' : esc_html( ucfirst( esc_attr($social['name'] ) )). ' '. __('profile', 'cmp');?></label>
|
803 |
+
|
804 |
+
<input type="text" <?php echo $disabled;?>name="niteoCS_<?php echo esc_attr($social['name']);?>" id="niteoCS_<?php echo esc_attr($social['name']);?>" value="<?php echo esc_attr( $social['url'] ); ?>" class="regular-text code <?php echo esc_attr($social['name']);?>" data-name="<?php echo esc_attr($social['name']);?>">
|
805 |
+
|
806 |
+
<input type="checkbox" name="niteoCS_<?php echo esc_attr($social['name']);?>_checkbox" id="niteoCS_<?php echo esc_attr($social['name']);?>_checkbox" class="<?php echo esc_attr($social['name']);?>" data-name="<?php echo esc_attr($social['name']);?>" <?php checked( '1', $social['active'] ); ?>>
|
807 |
+
</p>
|
808 |
+
</li>
|
809 |
<?php
|
810 |
} ?>
|
811 |
+
|
812 |
+
</ul>
|
813 |
+
|
814 |
+
<input type="hidden" name="niteoCS_socialmedia" id="niteoCS_socialmedia" value="<?php echo esc_attr( $niteoCS_socialmedia ); ?>" class="regular-text code active">
|
815 |
</td>
|
816 |
</tr>
|
817 |
+
|
818 |
+
<?php
|
819 |
+
// include theme slider settings, if exists
|
820 |
+
if (file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-social_settings.php')) {
|
821 |
+
include ( $this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-social_settings.php' );
|
822 |
+
}
|
823 |
+
?>
|
824 |
+
|
825 |
</table>
|
826 |
</div>
|
827 |
|
919 |
<script>
|
920 |
// test Unsplash
|
921 |
jQuery(document).ready(function($){
|
922 |
+
|
923 |
jQuery('#test-unsplash').click(function(e){
|
924 |
e.preventDefault();
|
925 |
|
comingsoon.js
CHANGED
@@ -150,16 +150,6 @@ jQuery(document).ready(function($){
|
|
150 |
jQuery('#niteoCS-banner-id').val('');
|
151 |
});
|
152 |
|
153 |
-
// script for Social Icons
|
154 |
-
var social;
|
155 |
-
jQuery('.social-media i').click(function() {
|
156 |
-
social = jQuery(this).data('social');
|
157 |
-
jQuery(this).addClass('active');
|
158 |
-
jQuery('.social-inputs label.' + social).addClass('active');
|
159 |
-
jQuery('.social-inputs input.' + social).addClass('active');
|
160 |
-
// jQuery('.social-media label:not(.' + social + ')').css('display','none');
|
161 |
-
});
|
162 |
-
|
163 |
// hiding banner on load
|
164 |
if ( jQuery('#csoptions input[name="niteoCS_banner"]:checked' ).val() == 0 ) {
|
165 |
jQuery('#custom_banner').css('display','block');
|
@@ -368,69 +358,79 @@ jQuery(document).ready(function($){
|
|
368 |
}
|
369 |
});
|
370 |
|
371 |
-
jQuery('#test-unsplash').click(function(e){
|
372 |
-
e.preventDefault();
|
373 |
|
374 |
-
|
375 |
-
|
376 |
-
|
377 |
-
var
|
378 |
-
|
379 |
-
|
380 |
-
switch( unsplash_feed ) {
|
381 |
-
case '0':
|
382 |
-
unsp_url = jQuery('#niteoCS-unsplash-0').val();
|
383 |
-
break;
|
384 |
-
|
385 |
-
case '1':
|
386 |
-
unsp_url = jQuery('#niteoCS-unsplash-1').val();
|
387 |
-
cat = jQuery('#unsplash_banner select[name="unsplash_category"] option:selected').val();
|
388 |
-
custom_str = jQuery('#niteoCS-category-keyword').val();
|
389 |
-
break;
|
390 |
-
|
391 |
-
case '2':
|
392 |
-
unsp_url = jQuery('#niteoCS-unsplash-2').val();
|
393 |
-
break;
|
394 |
-
|
395 |
-
case '3':
|
396 |
-
unsp_url = jQuery('#niteoCS-unsplash-3').val();
|
397 |
-
if ( jQuery('#niteoCS_unsplash_feat' ).is( ':checked' ) ) {
|
398 |
-
cat = '1';
|
399 |
-
} else {
|
400 |
-
cat = '0';
|
401 |
-
}
|
402 |
-
break;
|
403 |
-
|
404 |
-
default:
|
405 |
-
// code block
|
406 |
-
}
|
407 |
|
408 |
-
|
409 |
-
|
410 |
-
|
411 |
-
|
412 |
-
|
413 |
-
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
jQuery('#test-unsplash').prop('disabled', false);
|
430 |
-
jQuery('#test-unsplash').text('Test Unsplash');
|
431 |
-
});
|
432 |
});
|
|
|
|
|
|
|
|
|
|
|
433 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
434 |
});
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
435 |
});
|
436 |
|
150 |
jQuery('#niteoCS-banner-id').val('');
|
151 |
});
|
152 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
153 |
// hiding banner on load
|
154 |
if ( jQuery('#csoptions input[name="niteoCS_banner"]:checked' ).val() == 0 ) {
|
155 |
jQuery('#custom_banner').css('display','block');
|
358 |
}
|
359 |
});
|
360 |
|
|
|
|
|
361 |
|
362 |
+
// ----------------------- sortable social list -----------------------
|
363 |
+
// function to update social list
|
364 |
+
var update_social = function(name, key, val){
|
365 |
+
var socialmedia = $('#niteoCS_socialmedia').attr('value');
|
366 |
+
socialmedia = $.parseJSON(socialmedia);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
367 |
|
368 |
+
$.each(socialmedia, function(i, ele){
|
369 |
+
if (ele['name'] == name) {
|
370 |
+
ele[key] = val;
|
371 |
+
}
|
372 |
+
});
|
373 |
+
|
374 |
+
$('#niteoCS_socialmedia').attr('value', JSON.stringify(socialmedia));
|
375 |
+
};
|
376 |
+
|
377 |
+
// sortable UI
|
378 |
+
var $sortableList = $('.social-inputs');
|
379 |
+
|
380 |
+
var sortEventHandler = function(event, ui){
|
381 |
+
|
382 |
+
var inputs = $sortableList.find('input[type="text"]');
|
383 |
+
|
384 |
+
var order = ui.item.index();
|
385 |
+
|
386 |
+
inputs.each(function(i, ele){
|
387 |
+
var name = $(ele).data('name');
|
388 |
+
update_social(name, 'order', i);
|
|
|
|
|
|
|
389 |
});
|
390 |
+
};
|
391 |
+
|
392 |
+
$sortableList.sortable({
|
393 |
+
stop: sortEventHandler
|
394 |
+
});
|
395 |
|
396 |
+
$sortableList.on('sortchange', sortEventHandler);
|
397 |
+
|
398 |
+
// social checkbox to enable/disable input
|
399 |
+
(function($) {
|
400 |
+
$.fn.toggleDisabled = function() {
|
401 |
+
return this.each(function() {
|
402 |
+
var $this = $(this);
|
403 |
+
var active;
|
404 |
+
var name = $this.data('name');
|
405 |
+
if ($this.attr('disabled')) {
|
406 |
+
$this.prop('disabled', false);
|
407 |
+
active = '1';
|
408 |
+
} else {
|
409 |
+
$this.prop('disabled', true);
|
410 |
+
active = '0';
|
411 |
+
}
|
412 |
+
update_social(name, 'active', active);
|
413 |
+
});
|
414 |
+
};
|
415 |
+
})(jQuery);
|
416 |
+
|
417 |
+
jQuery('.social-inputs input[type="checkbox"]').click(function(e){
|
418 |
+
var $this = $(this).siblings('input[type="text"]');
|
419 |
+
$this.toggleDisabled();
|
420 |
});
|
421 |
+
|
422 |
+
// social icons active/inactive
|
423 |
+
jQuery('.social-media i').click(function() {
|
424 |
+
var name = jQuery(this).data('name');
|
425 |
+
jQuery(this).toggleClass('active');
|
426 |
+
jQuery('.social-inputs li.' + name).toggleClass('active');
|
427 |
+
if (jQuery(this).hasClass('active')) {
|
428 |
+
update_social(name, 'hidden', '0');
|
429 |
+
} else {
|
430 |
+
update_social(name, 'hidden', '1');
|
431 |
+
}
|
432 |
+
|
433 |
+
});
|
434 |
+
|
435 |
});
|
436 |
|
comingsoon.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
jQuery(document).ready(function(a){function
|
1 |
+
jQuery(document).ready(function(a){function e(a){return(a+"").replace(/^([a-z])|\s+([a-z])/g,function(a){return a.toUpperCase()})}function f(a){return(a+"").toLowerCase()}navtab=function(a){jQuery(".nav-tab-wrapper .nav-tab").removeClass("nav-tab-active"),jQuery(".nav-tab-wrapper ."+a).addClass("nav-tab-active"),jQuery(".table-wrapper."+a).css("display","block"),jQuery(".table-wrapper:not(."+a+")").css("display","none"),jQuery(".comingsoon."+a).css("display","block"),jQuery(".comingsoon:not(."+a+")").css("display","none"),"install"==a?jQuery(".submit").css("display","none"):jQuery(".submit").css("display","block")};var b=localStorage.getItem("sc_tab");b&&navtab(b),a(".nav-tab:not(.theme-preview)").click(function(c){c.preventDefault(),b=a(this).data("tab"),navtab(b),localStorage.setItem("sc_tab",b)});var c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val();jQuery("#unsplash-feed-"+c).css("display","block"),jQuery('#unsplash_banner select[name="unsplash_feed"]').on("change",function(){c=jQuery('#unsplash_banner select[name="unsplash_feed"] option:selected').val(),jQuery(".unsplash-feed").css("display","none"),jQuery("#unsplash-feed-"+c).css("display","block")});var d=jQuery(".logo-wrapper");""!=jQuery("#niteoCS-logo-id").val()&&(jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block")),jQuery("#add-logo").click(function(a){if(a.preventDefault(),b)return void b.open();var b=wp.media({title:"Select Logo",button:{text:"Insert Logo"},multiple:!1,type:"image"}).on("select",function(){var a=b.state().get("selection").first().toJSON();jQuery(".logo-wrapper").empty(),d.append('<img src="'+a.url+'" alt="" style="max-width:588px"/>'),jQuery("#add-logo").val("Change Logo"),jQuery("#delete-logo").css("display","block"),jQuery("#niteoCS-logo-id").val(a.id)}).open()}),jQuery("#delete-logo").click(function(a){jQuery(".logo-wrapper").empty(),jQuery("#add-logo").val("Select Logo"),jQuery(this).css("display","none"),jQuery("#niteoCS-logo-id").val("")}),""!=jQuery("#niteoCS-banner-id").val()&&jQuery("#delete-banner").css("display","block"),jQuery("#add-banner").click(function(a){var b=jQuery(".banner-wrapper");if(a.preventDefault(),c)return void c.open();var c=wp.media({title:"Select Photos",button:{text:"Insert Photos"},multiple:!0,type:"image"}).on("select",function(){var a=c.state().get("selection").toJSON(),d="";a.length>0&&(jQuery(".banner-wrapper").empty(),jQuery(a).each(function(c){b.append('<img src="'+a[c].url+'" alt="" style="max-width:588px;"/>'),jQuery("#delete-banner").css("display","block"),d+=(0===c?"":",")+a[c].id}),jQuery("#niteoCS-banner-id").val(d))}).open()}),jQuery("#delete-banner").click(function(a){jQuery(".banner-wrapper").empty(),jQuery(this).css("display","none"),jQuery("#niteoCS-banner-id").val("")}),0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none")),jQuery('#csoptions input[name="niteoCS_banner"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"),jQuery("#default_banner").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_banner"]:checked').val()?(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","none"),jQuery("#unsplash_banner").css("display","block")):(jQuery("#custom_banner").css("display","none"),jQuery("#default_banner").css("display","block"),jQuery("#unsplash_banner").css("display","none"))}),1==jQuery("#niteoCS_subscribe").prop("checked")&&jQuery(".subscribe").css("display","block"),jQuery("#niteoCS_subscribe").change(function(){jQuery(this)[0].checked?jQuery(".subscribe").css("display","block"):jQuery(".subscribe").css("display","none")}),0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block")),jQuery('#csoptions input[name="niteoCS_subscribe_type"]').change(function(){0==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","block"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","none")):1==jQuery('#csoptions input[name="niteoCS_subscribe_type"]:checked').val()?(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","block"),jQuery("#subscribe-niteo").css("display","none")):(jQuery("#subscribe-disabled").css("display","none"),jQuery("#subscribe-3rdparty").css("display","none"),jQuery("#subscribe-niteo").css("display","block"))}),jQuery("#csv-generate").click(function(b){b.preventDefault(),jQuery("#csv-download").length&&jQuery("#csv-download").remove(),jQuery.ajax({type:"POST",url:ajaxurl,data:{action:"niteo_export_csv"},success:function(b){b=b.slice(0,-1);var c=a("<a />",{id:"csv-download",href:"data:text/plain;charset=UTF-8,"+encodeURIComponent(b),text:"Download CSV",download:"subscriber_list.csv"});jQuery("#subscribe-niteo").append(c)}})});var g="",h="";g="custom"==jQuery('select[name="niteoCS_font_headings"] option:selected').val()?e(f(jQuery("#niteoCS_font_headings_custom").val())):jQuery('select[name="niteoCS_font_headings"] option:selected').val(),h="custom"==jQuery('select[name="niteoCS_font_content"] option:selected').val()?e(f(jQuery("#niteoCS_font_content_custom").val())):jQuery('select[name="niteoCS_font_content"] option:selected').val(),WebFont.load({google:{families:[e(f(g)),e(f(h))]},active:function(){a("#heading-example").css("font-family",g),a("#content-example").css("font-family",h)}}),jQuery('select[name="niteoCS_font_headings"]').on("change",function(){niteoCS_font_headings=jQuery('select[name="niteoCS_font_headings"] option:selected').val(),"custom"==niteoCS_font_headings?(jQuery("#custom_headings_font").css("display","block"),jQuery("#custom_headings_font").data("timeout",null).keyup(function(){clearTimeout(jQuery(this).data("timeout")),jQuery(this).data("timeout",setTimeout(function(){WebFont.load({google:{families:[e(f(jQuery("#niteoCS_font_headings_custom").val()))]},active:function(){a("#heading-example").css("font-family",jQuery("#niteoCS_font_headings_custom").val())}})},1e3))})):(jQuery("#custom_headings_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_headings]},active:function(){a("#heading-example").css("font-family",niteoCS_font_headings||"")}}))}),jQuery('select[name="niteoCS_font_content"]').on("change",function(){niteoCS_font_content=jQuery('select[name="niteoCS_font_content"] option:selected').val(),"custom"==niteoCS_font_content?(jQuery("#custom_content_font").css("display","block"),jQuery("#custom_content_font").data("timeout",null).keyup(function(){clearTimeout(jQuery(this).data("timeout")),jQuery(this).data("timeout",setTimeout(function(){WebFont.load({google:{families:[e(f(jQuery("#niteoCS_font_content_custom").val()))]},active:function(){a("#content-example").css("font-family",jQuery("#niteoCS_font_content_custom").val())}})},1e3))})):(jQuery("#custom_content_font").css("display","none"),WebFont.load({google:{families:[niteoCS_font_content]},active:function(){a("#content-example").css("font-family",niteoCS_font_content||"")}}))});var i=function(b,c,d){var e=a("#niteoCS_socialmedia").attr("value");e=a.parseJSON(e),a.each(e,function(a,e){e.name==b&&(e[c]=d)}),a("#niteoCS_socialmedia").attr("value",JSON.stringify(e))},j=a(".social-inputs"),k=function(b,c){var d=j.find('input[type="text"]');c.item.index();d.each(function(b,c){var d=a(c).data("name");i(d,"order",b)})};j.sortable({stop:k}),j.on("sortchange",k),function(a){a.fn.toggleDisabled=function(){return this.each(function(){var c,b=a(this),d=b.data("name");b.attr("disabled")?(b.prop("disabled",!1),c="1"):(b.prop("disabled",!0),c="0"),i(d,"active",c)})}}(jQuery),jQuery('.social-inputs input[type="checkbox"]').click(function(b){a(this).siblings('input[type="text"]').toggleDisabled()}),jQuery(".social-media i").click(function(){var a=jQuery(this).data("name");jQuery(this).toggleClass("active"),jQuery(".social-inputs li."+a).toggleClass("active"),jQuery(this).hasClass("active")?i(a,"hidden","0"):i(a,"hidden","1")})});
|
cs_style.css
CHANGED
@@ -13,7 +13,8 @@
|
|
13 |
input[type="text"], textarea{width:100%;}
|
14 |
.table-wrapper.customization,
|
15 |
.table-wrapper.install,
|
16 |
-
.table-wrapper.seo
|
|
|
17 |
display: none;
|
18 |
}
|
19 |
.upload-plugin.comingsoon .wp-upload-form {
|
@@ -31,6 +32,7 @@ input[type="text"], textarea{width:100%;}
|
|
31 |
|
32 |
.table-wrapper td {
|
33 |
display: block;
|
|
|
34 |
max-width: 600px;
|
35 |
margin-bottom: 1em;
|
36 |
}
|
@@ -48,13 +50,24 @@ input[type="text"], textarea{width:100%;}
|
|
48 |
text-align: left;
|
49 |
}
|
50 |
#delete-logo,#delete-banner{display:none;}
|
51 |
-
|
|
|
|
|
52 |
.social-media i {font-size:1.5em;padding:7px;cursor:pointer;}
|
53 |
.social-media i.active {color:#d54e21;}
|
|
|
|
|
|
|
|
|
|
|
54 |
.social-inputs label,
|
55 |
-
.social-inputs
|
56 |
-
.social-inputs
|
57 |
-
.social-inputs input
|
|
|
|
|
|
|
|
|
58 |
th label {font-weight: 600;}
|
59 |
#unsplash_img{display: none;}
|
60 |
#unsplash-media{padding-top: 1em;}
|
@@ -68,7 +81,7 @@ input[type="text"], textarea{width:100%;}
|
|
68 |
.table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
|
69 |
.table-wrapper table{padding:1em;}
|
70 |
.logo-wrapper, .banner-wrapper {margin: 1em 0;}
|
71 |
-
.logo-wrapper img {background-color: #efefef;}
|
72 |
.logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
|
73 |
.thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
|
74 |
#font-example-wrapper {padding:1em;border:1px solid #dedede;}
|
13 |
input[type="text"], textarea{width:100%;}
|
14 |
.table-wrapper.customization,
|
15 |
.table-wrapper.install,
|
16 |
+
.table-wrapper.seo,
|
17 |
+
.table-wrapper.custom_css {
|
18 |
display: none;
|
19 |
}
|
20 |
.upload-plugin.comingsoon .wp-upload-form {
|
32 |
|
33 |
.table-wrapper td {
|
34 |
display: block;
|
35 |
+
width: 100%;
|
36 |
max-width: 600px;
|
37 |
margin-bottom: 1em;
|
38 |
}
|
50 |
text-align: left;
|
51 |
}
|
52 |
#delete-logo,#delete-banner{display:none;}
|
53 |
+
|
54 |
+
.social-media {margin-top: 0;}
|
55 |
+
.social-media li {display: inline-block;}
|
56 |
.social-media i {font-size:1.5em;padding:7px;cursor:pointer;}
|
57 |
.social-media i.active {color:#d54e21;}
|
58 |
+
|
59 |
+
.social-inputs li {display: none;width:100%;}
|
60 |
+
.social-inputs li.active {display: inline-block;}
|
61 |
+
.social-inputs p {position: relative;padding-left: 50px;height: 50px;}
|
62 |
+
.social-inputs p i {position: absolute;left: 0;top: 20px;font-size: 30px;width: 30px;cursor: move;}
|
63 |
.social-inputs label,
|
64 |
+
.social-inputs label {padding-left: 100px;}
|
65 |
+
.social-inputs input[type="text"] {margin-left: 100px;width: calc(100% - 100px);}
|
66 |
+
.social-inputs input[type="checkbox"] {position: absolute;width: 26px;height: 26px;top: 23px;left: 65px;}
|
67 |
+
.social-inputs input[type=checkbox]:checked:before {margin: 3px 0 0 1px;}
|
68 |
+
|
69 |
+
|
70 |
+
|
71 |
th label {font-weight: 600;}
|
72 |
#unsplash_img{display: none;}
|
73 |
#unsplash-media{padding-top: 1em;}
|
81 |
.table-wrapper h3 {padding-bottom: .5em;margin-bottom: 0;padding-left:1em;border-bottom:1px solid #dedede;}
|
82 |
.table-wrapper table{padding:1em;}
|
83 |
.logo-wrapper, .banner-wrapper {margin: 1em 0;}
|
84 |
+
.logo-wrapper img {background-color: #efefef;padding:1em;}
|
85 |
.logo-wrapper img, .banner-wrapper img,.thumbnail-holder img {max-width: 100%;}
|
86 |
.thumbnail-holder {display: inline-block;max-width: 250px;padding:1em;margin:1em;text-align: center;border: 1px solid #efefef;}
|
87 |
#font-example-wrapper {padding:1em;border:1px solid #dedede;}
|
languages/coming-soon-default.mo
CHANGED
Binary file
|
languages/coming-soon-default.po
CHANGED
@@ -1,8 +1,8 @@
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
-
"Project-Id-Version: \n"
|
4 |
-
"POT-Creation-Date: 2017-04-13 14:
|
5 |
-
"PO-Revision-Date: 2017-04-13 14:
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
@@ -10,404 +10,576 @@ msgstr ""
|
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.8.12\n"
|
13 |
-
"X-Poedit-Basepath:
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: _e;__\n"
|
16 |
-
"X-Poedit-SearchPath-0:
|
17 |
-
"X-Poedit-SearchPath-1: themes
|
18 |
-
"X-Poedit-SearchPath-2: themes/hardwork\n"
|
19 |
|
20 |
-
#: cmp-options.php:
|
21 |
msgid "<p class=\"cmp-success\">Successfully installed new Theme!</p>"
|
22 |
msgstr ""
|
23 |
|
24 |
-
#: cmp-options.php:
|
25 |
msgid "<p class=\"cmp-error\">There was an error unzipping the file!</p>"
|
26 |
msgstr ""
|
27 |
|
28 |
-
#: cmp-options.php:
|
29 |
msgid "<p class=\"cmp-error\">Error creating Theme subdirectory!</p>"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: cmp-options.php:
|
33 |
msgid ""
|
34 |
"JavaScript appears to be disabled in your browser. For this plugin to work "
|
35 |
"correctly, please enable JavaScript or switch to a more modern browser."
|
36 |
msgstr ""
|
37 |
|
38 |
-
#: cmp-options.php:
|
39 |
msgid "Settings"
|
40 |
msgstr ""
|
41 |
|
42 |
-
#: cmp-
|
|
|
43 |
msgid "Content"
|
44 |
msgstr ""
|
45 |
|
46 |
-
#: cmp-options.php:
|
47 |
msgid "SEO"
|
48 |
msgstr ""
|
49 |
|
50 |
-
#: cmp-options.php:
|
51 |
msgid "Custom CSS"
|
52 |
msgstr ""
|
53 |
|
54 |
-
#: cmp-options.php:
|
55 |
msgid "Preview"
|
56 |
msgstr ""
|
57 |
|
58 |
-
#: cmp-options.php:
|
59 |
msgid "Install New Theme"
|
60 |
msgstr ""
|
61 |
|
62 |
-
#: cmp-options.php:
|
63 |
msgid "General Settings"
|
64 |
msgstr ""
|
65 |
|
66 |
-
#: cmp-
|
|
|
67 |
msgid "Status"
|
68 |
msgstr ""
|
69 |
|
70 |
-
#: cmp-
|
|
|
|
|
|
|
|
|
71 |
msgid "Disabled"
|
72 |
msgstr ""
|
73 |
|
74 |
-
#: cmp-options.php:
|
75 |
msgid ""
|
76 |
"Disable plugin and display standard WordPress page to all users and indexing "
|
77 |
"engines."
|
78 |
msgstr ""
|
79 |
|
80 |
-
#: cmp-options.php:
|
81 |
msgid "Maintanance Mode"
|
82 |
msgstr ""
|
83 |
|
84 |
-
#: cmp-options.php:
|
85 |
msgid ""
|
86 |
"Returns 503 HTTP Service unavailable code to indexing robots. Set this "
|
87 |
"option if your site is down due to maintanance and you want to display "
|
88 |
"Maintanance page."
|
89 |
msgstr ""
|
90 |
|
91 |
-
#: cmp-options.php:
|
92 |
msgid "Coming Soon"
|
93 |
msgstr ""
|
94 |
|
95 |
-
#: cmp-options.php:
|
96 |
msgid ""
|
97 |
"Returns standard 200 HTTP OK response code to indexing robots. Set this "
|
98 |
"option if you want to use our plugin as \"Coming Soon\" page."
|
99 |
msgstr ""
|
100 |
|
101 |
-
#: cmp-options.php:
|
102 |
msgid "Select Theme"
|
103 |
msgstr ""
|
104 |
|
105 |
-
#: cmp-
|
|
|
106 |
msgid "Free Themes"
|
107 |
msgstr ""
|
108 |
|
109 |
-
#: cmp-
|
|
|
110 |
msgid "Premium Themes"
|
111 |
msgstr ""
|
112 |
|
113 |
-
#: cmp-options.php:
|
114 |
msgid "Logo"
|
115 |
msgstr ""
|
116 |
|
117 |
-
#: cmp-options.php:
|
118 |
msgid "Upload or select Logo"
|
119 |
msgstr ""
|
120 |
|
121 |
-
#: cmp-options.php:
|
122 |
msgid "Graphic Banner"
|
123 |
msgstr ""
|
124 |
|
125 |
-
#: cmp-options.php:
|
126 |
msgid "Banner Settings"
|
127 |
msgstr ""
|
128 |
|
129 |
-
#: cmp-options.php:
|
130 |
msgid "Custom Media"
|
131 |
msgstr ""
|
132 |
|
133 |
-
#: cmp-options.php:
|
134 |
msgid "Unsplash library"
|
135 |
msgstr ""
|
136 |
|
137 |
-
#: cmp-options.php:
|
138 |
msgid "Default Media"
|
139 |
msgstr ""
|
140 |
|
141 |
-
#: cmp-options.php:
|
142 |
msgid ""
|
143 |
"Pro Tip! You can select multiple Media from your library by holding CTRL"
|
144 |
"+click (Command+click if you sit on MacOS) while selecting photos."
|
145 |
msgstr ""
|
146 |
|
147 |
-
#: cmp-options.php:
|
148 |
msgid "Choose Unsplash Feed"
|
149 |
msgstr ""
|
150 |
|
151 |
-
#: cmp-options.php:
|
152 |
msgid "Specific Photo"
|
153 |
msgstr ""
|
154 |
|
155 |
-
#: cmp-options.php:
|
156 |
msgid "Random from Category"
|
157 |
msgstr ""
|
158 |
|
159 |
-
#: cmp-options.php:
|
160 |
msgid "Random from Collection"
|
161 |
msgstr ""
|
162 |
|
163 |
-
#: cmp-options.php:
|
164 |
msgid "Random Photo"
|
165 |
msgstr ""
|
166 |
|
167 |
-
#: cmp-options.php:
|
168 |
msgid "Enter Unsplash Photo URL or Photo ID"
|
169 |
msgstr ""
|
170 |
|
171 |
-
#: cmp-options.php:
|
172 |
msgid "Select Category"
|
173 |
msgstr ""
|
174 |
|
175 |
-
#: cmp-options.php:
|
176 |
msgid "Buildings"
|
177 |
msgstr ""
|
178 |
|
179 |
-
#: cmp-options.php:
|
180 |
msgid "Food"
|
181 |
msgstr ""
|
182 |
|
183 |
-
#: cmp-options.php:
|
184 |
msgid "Nature"
|
185 |
msgstr ""
|
186 |
|
187 |
-
#: cmp-options.php:
|
188 |
msgid "People"
|
189 |
msgstr ""
|
190 |
|
191 |
-
#: cmp-options.php:
|
192 |
msgid "Technology"
|
193 |
msgstr ""
|
194 |
|
195 |
-
#: cmp-options.php:
|
196 |
msgid "Objects"
|
197 |
msgstr ""
|
198 |
|
199 |
-
#: cmp-options.php:
|
200 |
msgid "You can limit Category to Specific Keyword"
|
201 |
msgstr ""
|
202 |
|
203 |
-
#: cmp-options.php:
|
204 |
msgid ""
|
205 |
"Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated "
|
206 |
"Collections."
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: cmp-options.php:
|
210 |
msgid "Specify search terms"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: cmp-options.php:
|
214 |
msgid "Limit search only to Featured/Curated Photos"
|
215 |
msgstr ""
|
216 |
|
217 |
-
#: cmp-options.php:
|
218 |
msgid "Customize Fonts"
|
219 |
msgstr ""
|
220 |
|
221 |
-
#: cmp-options.php:
|
222 |
msgid "Headings Font"
|
223 |
msgstr ""
|
224 |
|
225 |
-
#: cmp-
|
|
|
226 |
msgid "Select from predefined Google Fonts or insert Custom font"
|
227 |
msgstr ""
|
228 |
|
229 |
-
#: cmp-options.php:
|
230 |
msgid "Custom font..."
|
231 |
msgstr ""
|
232 |
|
233 |
-
#: cmp-
|
|
|
234 |
msgid "Enter name of "
|
235 |
msgstr ""
|
236 |
|
237 |
-
#: cmp-options.php:
|
238 |
msgid "Content Font"
|
239 |
msgstr ""
|
240 |
|
241 |
-
#: cmp-options.php:
|
242 |
msgid "Custom Font..."
|
243 |
msgstr ""
|
244 |
|
245 |
-
#: cmp-options.php:
|
246 |
msgid "Body Title"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: cmp-options.php:
|
250 |
msgid "Body Message"
|
251 |
msgstr ""
|
252 |
|
253 |
-
#: cmp-options.php:
|
254 |
msgid "Subscribe Form"
|
255 |
msgstr ""
|
256 |
|
257 |
-
#: cmp-options.php:
|
258 |
msgid "Subscribe Form Options"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: cmp-options.php:
|
262 |
msgid "3rd Party Plugin"
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: cmp-options.php:
|
266 |
msgid "Niteo Subscribe"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: cmp-options.php:
|
270 |
msgid "Subscribe Form is disabled."
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: cmp-options.php:
|
274 |
msgid ""
|
275 |
"You can find Shortode in your Contact Form Plugin settings. Should be "
|
276 |
-
"something
|
277 |
msgstr ""
|
278 |
|
279 |
-
#: cmp-options.php:
|
280 |
msgid ""
|
281 |
"Your Subscribe Form should have only one input (type=email) and submit "
|
282 |
"(input=submit). If you have more than one input field, our design will not "
|
283 |
"work and you need to use custom CSS to style your Subscribe form."
|
284 |
msgstr ""
|
285 |
|
286 |
-
#: cmp-options.php:
|
287 |
msgid "Example of Subscribe Form code for "
|
288 |
msgstr ""
|
289 |
|
290 |
-
#: cmp-options.php:
|
291 |
msgid ""
|
292 |
"Default subscribe form will be displayed to visitors. Only export of email "
|
293 |
"addresses to .csv file is supported. Mailing List will be deleted after "
|
294 |
"deletion of CMP plugin."
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: cmp-options.php:
|
298 |
msgid "Total Subscribers: "
|
299 |
msgstr ""
|
300 |
|
301 |
-
#: cmp-options.php:
|
302 |
msgid "Since last export: "
|
303 |
msgstr ""
|
304 |
|
305 |
-
#: cmp-options.php:
|
306 |
msgid "Last Export Date: "
|
307 |
msgstr ""
|
308 |
|
309 |
-
#: cmp-options.php:
|
310 |
msgid "Never exported"
|
311 |
msgstr ""
|
312 |
|
313 |
-
#: cmp-options.php:
|
|
|
|
|
|
|
|
|
314 |
msgid "Social Media"
|
315 |
msgstr ""
|
316 |
|
317 |
-
#: cmp-options.php:
|
318 |
msgid "Social Section Title"
|
319 |
msgstr ""
|
320 |
|
321 |
-
#: cmp-options.php:
|
322 |
msgid "Social Media Icons"
|
323 |
msgstr ""
|
324 |
|
325 |
-
#: cmp-options.php:
|
|
|
|
|
|
|
|
|
326 |
msgid "Footer Content"
|
327 |
msgstr ""
|
328 |
|
329 |
-
#: cmp-options.php:
|
330 |
msgid "Copyright"
|
331 |
msgstr ""
|
332 |
|
333 |
-
#: cmp-options.php:
|
334 |
msgid "SEO Settings"
|
335 |
msgstr ""
|
336 |
|
337 |
-
#: cmp-options.php:
|
338 |
msgid "Header Title"
|
339 |
msgstr ""
|
340 |
|
341 |
-
#: cmp-options.php:
|
342 |
msgid "Description"
|
343 |
msgstr ""
|
344 |
|
345 |
-
#: cmp-options.php:
|
346 |
msgid "Google Analytics Tracking ID"
|
347 |
msgstr ""
|
348 |
|
349 |
-
#: cmp-options.php:
|
350 |
msgid "Enter Custom CSS"
|
351 |
msgstr ""
|
352 |
|
353 |
-
#: cmp-options.php:
|
354 |
msgid "Save Changes"
|
355 |
msgstr ""
|
356 |
|
357 |
-
#: cmp-options.php:
|
358 |
msgid "Install New Coming Soon Theme"
|
359 |
msgstr ""
|
360 |
|
361 |
-
#: niteo-cmp.php:
|
362 |
msgid "Maintenance Mode Active"
|
363 |
msgstr ""
|
364 |
|
365 |
-
#: niteo-cmp.php:
|
366 |
msgid "Coming Soon Mode Active"
|
367 |
msgstr ""
|
368 |
|
369 |
-
#:
|
|
|
370 |
msgid "Thank you, your sign-up request was successful!"
|
371 |
msgstr ""
|
372 |
|
373 |
-
#: niteo-cmp.php:
|
374 |
msgid "This email address has already been on our subscriber list."
|
375 |
msgstr ""
|
376 |
|
377 |
-
#: niteo-cmp.php:
|
378 |
msgid "Please insert valid email."
|
379 |
msgstr ""
|
380 |
|
381 |
-
#: themes/construct/construct-settings.php:37
|
382 |
-
#: themes/hardwork/hardwork-settings.php:52
|
|
|
|
|
|
|
383 |
msgid "Customize Colors"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: themes/construct/construct-settings.php:40
|
|
|
|
|
387 |
msgid "Active Color"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: themes/construct/construct-settings.php:44
|
391 |
msgid "Headings and active elements color (buttons, hover links, etc)."
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: themes/construct/construct-settings.php:49
|
395 |
-
#: themes/hardwork/hardwork-settings.php:56
|
|
|
|
|
|
|
396 |
msgid "Font Color"
|
397 |
msgstr ""
|
398 |
|
399 |
-
#: themes/construct/construct-settings.php:57
|
|
|
400 |
msgid "Background Color"
|
401 |
msgstr ""
|
402 |
|
403 |
-
#: themes/hardwork/hardwork-settings.php:64
|
|
|
|
|
404 |
msgid "Overlay Color"
|
405 |
msgstr ""
|
406 |
|
407 |
-
#: themes/hardwork/hardwork-settings.php:67
|
|
|
408 |
msgid "Enable Overlay Color"
|
409 |
msgstr ""
|
410 |
|
411 |
-
#: themes/hardwork/hardwork-settings.php:73
|
|
|
|
|
412 |
msgid "Overlay Opacity"
|
413 |
msgstr ""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
msgid ""
|
2 |
msgstr ""
|
3 |
+
"Project-Id-Version: cmp\n"
|
4 |
+
"POT-Creation-Date: 2017-04-13 14:38+0200\n"
|
5 |
+
"PO-Revision-Date: 2017-04-13 14:38+0200\n"
|
6 |
"Last-Translator: \n"
|
7 |
"Language-Team: \n"
|
8 |
"Language: en\n"
|
10 |
"Content-Type: text/plain; charset=UTF-8\n"
|
11 |
"Content-Transfer-Encoding: 8bit\n"
|
12 |
"X-Generator: Poedit 1.8.12\n"
|
13 |
+
"X-Poedit-Basepath: ../../../..\n"
|
14 |
"Plural-Forms: nplurals=2; plural=(n != 1);\n"
|
15 |
"X-Poedit-KeywordsList: _e;__\n"
|
16 |
+
"X-Poedit-SearchPath-0: cmp-coming-soon-maintenance/tags/1.4.0\n"
|
17 |
+
"X-Poedit-SearchPath-1: cmp-premium-themes\n"
|
|
|
18 |
|
19 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:272
|
20 |
msgid "<p class=\"cmp-success\">Successfully installed new Theme!</p>"
|
21 |
msgstr ""
|
22 |
|
23 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:275
|
24 |
msgid "<p class=\"cmp-error\">There was an error unzipping the file!</p>"
|
25 |
msgstr ""
|
26 |
|
27 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:279
|
28 |
msgid "<p class=\"cmp-error\">Error creating Theme subdirectory!</p>"
|
29 |
msgstr ""
|
30 |
|
31 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:303
|
32 |
msgid ""
|
33 |
"JavaScript appears to be disabled in your browser. For this plugin to work "
|
34 |
"correctly, please enable JavaScript or switch to a more modern browser."
|
35 |
msgstr ""
|
36 |
|
37 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:318
|
38 |
msgid "Settings"
|
39 |
msgstr ""
|
40 |
|
41 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:319
|
42 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:642
|
43 |
msgid "Content"
|
44 |
msgstr ""
|
45 |
|
46 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:320
|
47 |
msgid "SEO"
|
48 |
msgstr ""
|
49 |
|
50 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:321
|
51 |
msgid "Custom CSS"
|
52 |
msgstr ""
|
53 |
|
54 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:322
|
55 |
msgid "Preview"
|
56 |
msgstr ""
|
57 |
|
58 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:323
|
59 |
msgid "Install New Theme"
|
60 |
msgstr ""
|
61 |
|
62 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:327
|
63 |
msgid "General Settings"
|
64 |
msgstr ""
|
65 |
|
66 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:330
|
67 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:334
|
68 |
msgid "Status"
|
69 |
msgstr ""
|
70 |
|
71 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:337
|
72 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:682
|
73 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:60
|
74 |
+
#: cmp-premium-themes/frame/frame-settings.php:99
|
75 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:58
|
76 |
msgid "Disabled"
|
77 |
msgstr ""
|
78 |
|
79 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:338
|
80 |
msgid ""
|
81 |
"Disable plugin and display standard WordPress page to all users and indexing "
|
82 |
"engines."
|
83 |
msgstr ""
|
84 |
|
85 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:341
|
86 |
msgid "Maintanance Mode"
|
87 |
msgstr ""
|
88 |
|
89 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:342
|
90 |
msgid ""
|
91 |
"Returns 503 HTTP Service unavailable code to indexing robots. Set this "
|
92 |
"option if your site is down due to maintanance and you want to display "
|
93 |
"Maintanance page."
|
94 |
msgstr ""
|
95 |
|
96 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:345
|
97 |
msgid "Coming Soon"
|
98 |
msgstr ""
|
99 |
|
100 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:346
|
101 |
msgid ""
|
102 |
"Returns standard 200 HTTP OK response code to indexing robots. Set this "
|
103 |
"option if you want to use our plugin as \"Coming Soon\" page."
|
104 |
msgstr ""
|
105 |
|
106 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:354
|
107 |
msgid "Select Theme"
|
108 |
msgstr ""
|
109 |
|
110 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:357
|
111 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:361
|
112 |
msgid "Free Themes"
|
113 |
msgstr ""
|
114 |
|
115 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:385
|
116 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:389
|
117 |
msgid "Premium Themes"
|
118 |
msgstr ""
|
119 |
|
120 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:421
|
121 |
msgid "Logo"
|
122 |
msgstr ""
|
123 |
|
124 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:424
|
125 |
msgid "Upload or select Logo"
|
126 |
msgstr ""
|
127 |
|
128 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:445
|
129 |
msgid "Graphic Banner"
|
130 |
msgstr ""
|
131 |
|
132 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:451
|
133 |
msgid "Banner Settings"
|
134 |
msgstr ""
|
135 |
|
136 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:456
|
137 |
msgid "Custom Media"
|
138 |
msgstr ""
|
139 |
|
140 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:462
|
141 |
msgid "Unsplash library"
|
142 |
msgstr ""
|
143 |
|
144 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:468
|
145 |
msgid "Default Media"
|
146 |
msgstr ""
|
147 |
|
148 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:480
|
149 |
msgid ""
|
150 |
"Pro Tip! You can select multiple Media from your library by holding CTRL"
|
151 |
"+click (Command+click if you sit on MacOS) while selecting photos."
|
152 |
msgstr ""
|
153 |
|
154 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:498
|
155 |
msgid "Choose Unsplash Feed"
|
156 |
msgstr ""
|
157 |
|
158 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:500
|
159 |
msgid "Specific Photo"
|
160 |
msgstr ""
|
161 |
|
162 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:501
|
163 |
msgid "Random from Category"
|
164 |
msgstr ""
|
165 |
|
166 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:502
|
167 |
msgid "Random from Collection"
|
168 |
msgstr ""
|
169 |
|
170 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:503
|
171 |
msgid "Random Photo"
|
172 |
msgstr ""
|
173 |
|
174 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:507
|
175 |
msgid "Enter Unsplash Photo URL or Photo ID"
|
176 |
msgstr ""
|
177 |
|
178 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:512
|
179 |
msgid "Select Category"
|
180 |
msgstr ""
|
181 |
|
182 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:514
|
183 |
msgid "Buildings"
|
184 |
msgstr ""
|
185 |
|
186 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:515
|
187 |
msgid "Food"
|
188 |
msgstr ""
|
189 |
|
190 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:516
|
191 |
msgid "Nature"
|
192 |
msgstr ""
|
193 |
|
194 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:517
|
195 |
msgid "People"
|
196 |
msgstr ""
|
197 |
|
198 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:518
|
199 |
msgid "Technology"
|
200 |
msgstr ""
|
201 |
|
202 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:519
|
203 |
msgid "Objects"
|
204 |
msgstr ""
|
205 |
|
206 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:522
|
207 |
msgid "You can limit Category to Specific Keyword"
|
208 |
msgstr ""
|
209 |
|
210 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:527
|
211 |
msgid ""
|
212 |
"Enter Unsplash Collection URL or Collection ID. Doesn`t work for Curated "
|
213 |
"Collections."
|
214 |
msgstr ""
|
215 |
|
216 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:532
|
217 |
msgid "Specify search terms"
|
218 |
msgstr ""
|
219 |
|
220 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:536
|
221 |
msgid "Limit search only to Featured/Curated Photos"
|
222 |
msgstr ""
|
223 |
|
224 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:562
|
225 |
msgid "Customize Fonts"
|
226 |
msgstr ""
|
227 |
|
228 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:566
|
229 |
msgid "Headings Font"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:569
|
233 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:602
|
234 |
msgid "Select from predefined Google Fonts or insert Custom font"
|
235 |
msgstr ""
|
236 |
|
237 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:587
|
238 |
msgid "Custom font..."
|
239 |
msgstr ""
|
240 |
|
241 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:591
|
242 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:625
|
243 |
msgid "Enter name of "
|
244 |
msgstr ""
|
245 |
|
246 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:599
|
247 |
msgid "Content Font"
|
248 |
msgstr ""
|
249 |
|
250 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:620
|
251 |
msgid "Custom Font..."
|
252 |
msgstr ""
|
253 |
|
254 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:645
|
255 |
msgid "Body Title"
|
256 |
msgstr ""
|
257 |
|
258 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:654
|
259 |
msgid "Body Message"
|
260 |
msgstr ""
|
261 |
|
262 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:671
|
263 |
msgid "Subscribe Form"
|
264 |
msgstr ""
|
265 |
|
266 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:677
|
267 |
msgid "Subscribe Form Options"
|
268 |
msgstr ""
|
269 |
|
270 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:688
|
271 |
msgid "3rd Party Plugin"
|
272 |
msgstr ""
|
273 |
|
274 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:694
|
275 |
msgid "Niteo Subscribe"
|
276 |
msgstr ""
|
277 |
|
278 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:702
|
279 |
msgid "Subscribe Form is disabled."
|
280 |
msgstr ""
|
281 |
|
282 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:711
|
283 |
msgid ""
|
284 |
"You can find Shortode in your Contact Form Plugin settings. Should be "
|
285 |
+
"something similar to code below: "
|
286 |
msgstr ""
|
287 |
|
288 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:713
|
289 |
msgid ""
|
290 |
"Your Subscribe Form should have only one input (type=email) and submit "
|
291 |
"(input=submit). If you have more than one input field, our design will not "
|
292 |
"work and you need to use custom CSS to style your Subscribe form."
|
293 |
msgstr ""
|
294 |
|
295 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:714
|
296 |
msgid "Example of Subscribe Form code for "
|
297 |
msgstr ""
|
298 |
|
299 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:726
|
300 |
msgid ""
|
301 |
"Default subscribe form will be displayed to visitors. Only export of email "
|
302 |
"addresses to .csv file is supported. Mailing List will be deleted after "
|
303 |
"deletion of CMP plugin."
|
304 |
msgstr ""
|
305 |
|
306 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:732
|
307 |
msgid "Total Subscribers: "
|
308 |
msgstr ""
|
309 |
|
310 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:733
|
311 |
msgid "Since last export: "
|
312 |
msgstr ""
|
313 |
|
314 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:734
|
315 |
msgid "Last Export Date: "
|
316 |
msgstr ""
|
317 |
|
318 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:734
|
319 |
msgid "Never exported"
|
320 |
msgstr ""
|
321 |
|
322 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:735
|
323 |
+
msgid "Generate CSV"
|
324 |
+
msgstr ""
|
325 |
+
|
326 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:745
|
327 |
msgid "Social Media"
|
328 |
msgstr ""
|
329 |
|
330 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:749
|
331 |
msgid "Social Section Title"
|
332 |
msgstr ""
|
333 |
|
334 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:758
|
335 |
msgid "Social Media Icons"
|
336 |
msgstr ""
|
337 |
|
338 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:802
|
339 |
+
msgid "profile"
|
340 |
+
msgstr ""
|
341 |
+
|
342 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:829
|
343 |
msgid "Footer Content"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:833
|
347 |
msgid "Copyright"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:845
|
351 |
msgid "SEO Settings"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:849
|
355 |
msgid "Header Title"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:858
|
359 |
msgid "Description"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:866
|
363 |
msgid "Google Analytics Tracking ID"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:877
|
367 |
msgid "Enter Custom CSS"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:891
|
371 |
msgid "Save Changes"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/cmp-options.php:901
|
375 |
msgid "Install New Coming Soon Theme"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:244
|
379 |
msgid "Maintenance Mode Active"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:246
|
383 |
msgid "Coming Soon Mode Active"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:436
|
387 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:444
|
388 |
msgid "Thank you, your sign-up request was successful!"
|
389 |
msgstr ""
|
390 |
|
391 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:447
|
392 |
msgid "This email address has already been on our subscriber list."
|
393 |
msgstr ""
|
394 |
|
395 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/niteo-cmp.php:452
|
396 |
msgid "Please insert valid email."
|
397 |
msgstr ""
|
398 |
|
399 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:37
|
400 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:52
|
401 |
+
#: cmp-premium-themes/fifty/fifty-settings.php:37
|
402 |
+
#: cmp-premium-themes/frame/frame-settings.php:141
|
403 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:46
|
404 |
msgid "Customize Colors"
|
405 |
msgstr ""
|
406 |
|
407 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:40
|
408 |
+
#: cmp-premium-themes/fifty/fifty-settings.php:59
|
409 |
+
#: cmp-premium-themes/frame/frame-settings.php:144
|
410 |
msgid "Active Color"
|
411 |
msgstr ""
|
412 |
|
413 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:44
|
414 |
msgid "Headings and active elements color (buttons, hover links, etc)."
|
415 |
msgstr ""
|
416 |
|
417 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:49
|
418 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:56
|
419 |
+
#: cmp-premium-themes/fifty/fifty-settings.php:41
|
420 |
+
#: cmp-premium-themes/frame/frame-settings.php:154
|
421 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:50
|
422 |
msgid "Font Color"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/construct/construct-settings.php:57
|
426 |
+
#: cmp-premium-themes/fifty/fifty-settings.php:50
|
427 |
msgid "Background Color"
|
428 |
msgstr ""
|
429 |
|
430 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:64
|
431 |
+
#: cmp-premium-themes/frame/frame-settings.php:173
|
432 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:58
|
433 |
msgid "Overlay Color"
|
434 |
msgstr ""
|
435 |
|
436 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:67
|
437 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:61
|
438 |
msgid "Enable Overlay Color"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: cmp-coming-soon-maintenance/tags/1.4.0/themes/hardwork/hardwork-settings.php:73
|
442 |
+
#: cmp-premium-themes/frame/frame-settings.php:179
|
443 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-settings.php:67
|
444 |
msgid "Overlay Opacity"
|
445 |
msgstr ""
|
446 |
+
|
447 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:43
|
448 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:41
|
449 |
+
msgid "Slider Setup"
|
450 |
+
msgstr ""
|
451 |
+
|
452 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:49
|
453 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:75
|
454 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:47
|
455 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:73
|
456 |
+
msgid "Slider setup"
|
457 |
+
msgstr ""
|
458 |
+
|
459 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:54
|
460 |
+
#: cmp-premium-themes/frame/frame-settings.php:93
|
461 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:52
|
462 |
+
msgid "Enabled"
|
463 |
+
msgstr ""
|
464 |
+
|
465 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:68
|
466 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:66
|
467 |
+
msgid "Slider is disabled."
|
468 |
+
msgstr ""
|
469 |
+
|
470 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:72
|
471 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:70
|
472 |
+
msgid ""
|
473 |
+
"To display Slider on CMP Landing page make sure you inserted two or more "
|
474 |
+
"Custom Photos from Media Library. Slider is also disabled when Specific "
|
475 |
+
"Unsplash photo or Default Media is selected."
|
476 |
+
msgstr ""
|
477 |
+
|
478 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:80
|
479 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:78
|
480 |
+
msgid "Slide"
|
481 |
+
msgstr ""
|
482 |
+
|
483 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:84
|
484 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:82
|
485 |
+
msgid "Fade"
|
486 |
+
msgstr ""
|
487 |
+
|
488 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:90
|
489 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:88
|
490 |
+
msgid "Slider Autostart"
|
491 |
+
msgstr ""
|
492 |
+
|
493 |
+
#: cmp-premium-themes/fifty/fifty-slider_settings.php:93
|
494 |
+
#: cmp-premium-themes/hardwork_premium/hardwork_premium-slider_settings.php:91
|
495 |
+
msgid "Number of Unplash media Slides"
|
496 |
+
msgstr ""
|
497 |
+
|
498 |
+
#: cmp-premium-themes/fifty/fifty-social_settings.php:20
|
499 |
+
msgid "Social Icons Location"
|
500 |
+
msgstr ""
|
501 |
+
|
502 |
+
#: cmp-premium-themes/fifty/fifty-social_settings.php:24
|
503 |
+
msgid "Below Content (big icons)"
|
504 |
+
msgstr ""
|
505 |
+
|
506 |
+
#: cmp-premium-themes/fifty/fifty-social_settings.php:25
|
507 |
+
msgid "Footer (small icons)"
|
508 |
+
msgstr ""
|
509 |
+
|
510 |
+
#: cmp-premium-themes/fifty/fifty-theme.php:301
|
511 |
+
msgid "Subscribe"
|
512 |
+
msgstr ""
|
513 |
+
|
514 |
+
#: cmp-premium-themes/frame/frame-settings.php:82
|
515 |
+
msgid "Countdown Timer Setup"
|
516 |
+
msgstr ""
|
517 |
+
|
518 |
+
#: cmp-premium-themes/frame/frame-settings.php:88
|
519 |
+
#: cmp-premium-themes/frame/frame-settings.php:114
|
520 |
+
msgid "Counter setup"
|
521 |
+
msgstr ""
|
522 |
+
|
523 |
+
#: cmp-premium-themes/frame/frame-settings.php:107
|
524 |
+
msgid "Countdown Timer is disabled."
|
525 |
+
msgstr ""
|
526 |
+
|
527 |
+
#: cmp-premium-themes/frame/frame-settings.php:111
|
528 |
+
msgid "Click on date input and set a date & time for a Countdown timer."
|
529 |
+
msgstr ""
|
530 |
+
|
531 |
+
#: cmp-premium-themes/frame/frame-settings.php:117
|
532 |
+
msgid "Select Date.."
|
533 |
+
msgstr ""
|
534 |
+
|
535 |
+
#: cmp-premium-themes/frame/frame-settings.php:119
|
536 |
+
msgid "Countdown action:"
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
+
#: cmp-premium-themes/frame/frame-settings.php:121
|
540 |
+
msgid "No action"
|
541 |
+
msgstr ""
|
542 |
+
|
543 |
+
#: cmp-premium-themes/frame/frame-settings.php:122
|
544 |
+
msgid "Display custom text"
|
545 |
+
msgstr ""
|
546 |
+
|
547 |
+
#: cmp-premium-themes/frame/frame-settings.php:123
|
548 |
+
msgid "Disable CMP Plugin Page"
|
549 |
+
msgstr ""
|
550 |
+
|
551 |
+
#: cmp-premium-themes/frame/frame-settings.php:124
|
552 |
+
msgid "URL redirect"
|
553 |
+
msgstr ""
|
554 |
+
|
555 |
+
#: cmp-premium-themes/frame/frame-settings.php:127
|
556 |
+
msgid "Enter custom text"
|
557 |
+
msgstr ""
|
558 |
+
|
559 |
+
#: cmp-premium-themes/frame/frame-settings.php:131
|
560 |
+
msgid "Enter redirect URL"
|
561 |
+
msgstr ""
|
562 |
+
|
563 |
+
#: cmp-premium-themes/frame/frame-settings.php:163
|
564 |
+
msgid "Frame Background Color"
|
565 |
+
msgstr ""
|
566 |
+
|
567 |
+
#: cmp-premium-themes/frame/frame-theme.php:266
|
568 |
+
msgid "DAYS"
|
569 |
+
msgstr ""
|
570 |
+
|
571 |
+
#: cmp-premium-themes/frame/frame-theme.php:272
|
572 |
+
msgid "HOURS"
|
573 |
+
msgstr ""
|
574 |
+
|
575 |
+
#: cmp-premium-themes/frame/frame-theme.php:279
|
576 |
+
msgid "MINUTES"
|
577 |
+
msgstr ""
|
578 |
+
|
579 |
+
#: cmp-premium-themes/frame/frame-theme.php:285
|
580 |
+
msgid "SECONDS"
|
581 |
+
msgstr ""
|
582 |
+
|
583 |
+
#: cmp-premium-themes/frame/frame-theme.php:311
|
584 |
+
msgid "Insert your email address"
|
585 |
+
msgstr ""
|
niteo-cmp.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
-
Version: 1.
|
7 |
Author: NiteoThemes
|
8 |
Author URI: http://www.niteo.cz
|
9 |
Text Domain: cmp
|
@@ -14,7 +14,6 @@
|
|
14 |
|
15 |
class niteo_cmp {
|
16 |
var $installedFolder = '';
|
17 |
-
|
18 |
function __construct() {
|
19 |
$this->installedFolder = basename(dirname(__FILE__));
|
20 |
}
|
@@ -24,15 +23,15 @@ class niteo_cmp {
|
|
24 |
}
|
25 |
|
26 |
function cmp_adminInit() {
|
27 |
-
wp_register_script('cmp_mainjs', plugins_url().'/'.$this->installedFolder.'/comingsoon.min.js');
|
28 |
wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
|
29 |
-
wp_register_style( 'cmp_style', plugins_url().'/'.$this->installedFolder.'/cs_style.css'
|
30 |
wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
|
31 |
}
|
32 |
|
33 |
function cmp_add_admin_style() {
|
34 |
-
wp_register_style( 'cmp_admin_style', plugins_url().'/'.$this->installedFolder.'/cs_admin.css'
|
35 |
-
wp_enqueue_style( 'cmp_admin_style');
|
36 |
}
|
37 |
|
38 |
function cmp_enqueueScripts() {
|
@@ -87,13 +86,18 @@ class niteo_cmp {
|
|
87 |
}
|
88 |
|
89 |
function cmp_admin_options() {
|
|
|
90 |
// get all installed themes [folder names under /themes] and put them to array
|
91 |
$theme_array = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
|
92 |
-
|
93 |
-
|
|
|
|
|
|
|
|
|
94 |
|
95 |
// include default options page
|
96 |
-
|
97 |
|
98 |
}
|
99 |
|
@@ -104,17 +108,26 @@ class niteo_cmp {
|
|
104 |
// for themes preview demos
|
105 |
if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
|
106 |
$theme_preview = $_GET['theme'];
|
107 |
-
|
108 |
-
if (
|
109 |
-
|
110 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
111 |
}
|
112 |
|
113 |
}
|
114 |
|
115 |
// render html theme page
|
116 |
-
if ( file_exists(
|
117 |
-
|
118 |
die();
|
119 |
}
|
120 |
}
|
@@ -155,8 +168,8 @@ class niteo_cmp {
|
|
155 |
}
|
156 |
|
157 |
// render html theme page
|
158 |
-
if ( file_exists(
|
159 |
-
require_once (
|
160 |
die();
|
161 |
}
|
162 |
|
@@ -198,6 +211,28 @@ class niteo_cmp {
|
|
198 |
return get_option('niteoCS_theme');
|
199 |
}
|
200 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
201 |
// display admin notice
|
202 |
function cmp_admin_bar(){
|
203 |
global $wp_admin_bar;
|
@@ -267,8 +302,9 @@ class niteo_cmp {
|
|
267 |
// returns list of premium themes => manually defined
|
268 |
function cmp_plugin_premium() {
|
269 |
$premium_themes = array();
|
270 |
-
array_push($premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10'));
|
271 |
-
array_push($premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance', 'price' => '10'));
|
|
|
272 |
return $premium_themes;
|
273 |
}
|
274 |
|
@@ -324,7 +360,7 @@ class niteo_cmp {
|
|
324 |
$id = $url;
|
325 |
}
|
326 |
|
327 |
-
$unsplash_img = 'https://source.unsplash.com/'.$id.'/WIDTHxHEIGHT
|
328 |
break;
|
329 |
|
330 |
case '1':
|
@@ -462,7 +498,65 @@ class niteo_cmp {
|
|
462 |
|
463 |
return $rgba;
|
464 |
}
|
465 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
466 |
function sanitize_checkbox( $input ) {
|
467 |
return ( ( isset( $input ) && true == $input ) ? true : false );
|
468 |
}
|
@@ -472,6 +566,17 @@ class niteo_cmp {
|
|
472 |
return wp_kses( $html, $allowedposttags );
|
473 |
}
|
474 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
475 |
}
|
476 |
|
477 |
|
3 |
Plugin Name: CMP - Coming Soon & Maintenance Plugin
|
4 |
Plugin URI: https://wordpress.org/plugins/cmp-coming-soon-maintenance/
|
5 |
Description: Display customizable landing page for Coming Soon, Maintenance & Under Construction page.
|
6 |
+
Version: 1.4.0
|
7 |
Author: NiteoThemes
|
8 |
Author URI: http://www.niteo.cz
|
9 |
Text Domain: cmp
|
14 |
|
15 |
class niteo_cmp {
|
16 |
var $installedFolder = '';
|
|
|
17 |
function __construct() {
|
18 |
$this->installedFolder = basename(dirname(__FILE__));
|
19 |
}
|
23 |
}
|
24 |
|
25 |
function cmp_adminInit() {
|
26 |
+
wp_register_script('cmp_mainjs', plugins_url().'/'.$this->installedFolder.'/comingsoon.min.js','','1.4.0');
|
27 |
wp_register_style( 'font_awesome', '//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css' );
|
28 |
+
wp_register_style( 'cmp_style', plugins_url().'/'.$this->installedFolder.'/cs_style.css','','1.4.0');
|
29 |
wp_register_script( 'webfont', 'https://ajax.googleapis.com/ajax/libs/webfont/1.5.18/webfont.js', array(), false, true);
|
30 |
}
|
31 |
|
32 |
function cmp_add_admin_style() {
|
33 |
+
wp_register_style( 'cmp_admin_style', plugins_url().'/'.$this->installedFolder.'/cs_admin.css','','1.4.0');
|
34 |
+
wp_enqueue_style( 'cmp_admin_style' );
|
35 |
}
|
36 |
|
37 |
function cmp_enqueueScripts() {
|
86 |
}
|
87 |
|
88 |
function cmp_admin_options() {
|
89 |
+
|
90 |
// get all installed themes [folder names under /themes] and put them to array
|
91 |
$theme_array = array_map('basename', glob( plugin_dir_path( __FILE__ ) . 'themes/*', GLOB_ONLYDIR));
|
92 |
+
|
93 |
+
// check for installed premium themes
|
94 |
+
if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/') ) {
|
95 |
+
$premium_installed = array_map('basename', glob( plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/*', GLOB_ONLYDIR));
|
96 |
+
$theme_array = array_merge($theme_array, $premium_installed);
|
97 |
+
}
|
98 |
|
99 |
// include default options page
|
100 |
+
require ('cmp-options.php');
|
101 |
|
102 |
}
|
103 |
|
108 |
// for themes preview demos
|
109 |
if ( isset($_GET['theme']) && !empty($_GET['theme']) ) {
|
110 |
$theme_preview = $_GET['theme'];
|
111 |
+
// if premium
|
112 |
+
if ( $this->niteo_in_array_r( $theme_preview, $this->cmp_plugin_premium() ) ) {
|
113 |
+
if ( file_exists(plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
|
114 |
+
require (plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
|
115 |
+
die();
|
116 |
+
}
|
117 |
+
|
118 |
+
} else {
|
119 |
+
if ( file_exists(dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php') ) {
|
120 |
+
require (dirname(__FILE__) . '/themes/'.$theme_preview.'/'.$theme_preview.'-theme.php');
|
121 |
+
die();
|
122 |
+
}
|
123 |
+
|
124 |
}
|
125 |
|
126 |
}
|
127 |
|
128 |
// render html theme page
|
129 |
+
if ( file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
|
130 |
+
require ($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
|
131 |
die();
|
132 |
}
|
133 |
}
|
168 |
}
|
169 |
|
170 |
// render html theme page
|
171 |
+
if ( file_exists($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php') ) {
|
172 |
+
require_once ($this->cmp_themePath().$this->cmp_selectedTheme().'/'.$this->cmp_selectedTheme().'-theme.php');
|
173 |
die();
|
174 |
}
|
175 |
|
211 |
return get_option('niteoCS_theme');
|
212 |
}
|
213 |
|
214 |
+
// return installed theme path
|
215 |
+
function cmp_themePath() {
|
216 |
+
if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
|
217 |
+
return plugin_dir_path( __DIR__ ) . 'cmp-premium-themes/';
|
218 |
+
} else {
|
219 |
+
|
220 |
+
return dirname(__FILE__) . '/themes/';
|
221 |
+
}
|
222 |
+
|
223 |
+
}
|
224 |
+
|
225 |
+
// return installed theme dir
|
226 |
+
function cmp_themeDirPath() {
|
227 |
+
if ( $this->niteo_in_array_r($this->cmp_selectedTheme(), $this->cmp_plugin_premium() ) ) {
|
228 |
+
return WP_PLUGIN_URL . '/cmp-premium-themes/';
|
229 |
+
} else {
|
230 |
+
|
231 |
+
return WP_PLUGIN_URL . '/cmp-coming-soon-maintenance/themes/';
|
232 |
+
}
|
233 |
+
|
234 |
+
}
|
235 |
+
|
236 |
// display admin notice
|
237 |
function cmp_admin_bar(){
|
238 |
global $wp_admin_bar;
|
302 |
// returns list of premium themes => manually defined
|
303 |
function cmp_plugin_premium() {
|
304 |
$premium_themes = array();
|
305 |
+
array_push( $premium_themes, array('name' => 'frame', 'url' => 'https://creativemarket.com/NiteoThemes/1373921-CMP-Frame-Coming-Soon-WP-Theme', 'price' => '10') );
|
306 |
+
array_push( $premium_themes, array('name' => 'hardwork_premium', 'url' => 'https://creativemarket.com/NiteoThemes/1385251-CMP-Hardwork-Premium-Maintenance', 'price' => '10') );
|
307 |
+
array_push( $premium_themes, array('name' => 'fifty', 'url' => 'https://creativemarket.com/NiteoThemes/1395745-CMP-Fifty-Maintenance-Landing-Page', 'price' => '10') );
|
308 |
return $premium_themes;
|
309 |
}
|
310 |
|
360 |
$id = $url;
|
361 |
}
|
362 |
|
363 |
+
$unsplash_img = 'https://source.unsplash.com/'.$id.'/WIDTHxHEIGHT/?';
|
364 |
break;
|
365 |
|
366 |
case '1':
|
498 |
|
499 |
return $rgba;
|
500 |
}
|
501 |
+
|
502 |
+
// convert hex to hsl css
|
503 |
+
function hex2hsl( $hex, $opacity ) {
|
504 |
+
|
505 |
+
if ( $hex[0] != '#' ) {
|
506 |
+
$rgba = explode( ',', $hex);
|
507 |
+
$rgba[3] = str_replace(')', '', $rgba[3]);
|
508 |
+
$rgba[3] = $rgba[3] - ( $opacity / 100 );
|
509 |
+
$rgba = $rgba[0] . ',' . $rgba[1] . ',' . $rgba[2] . ',' . $rgba[3] . ')';
|
510 |
+
return $rgba;
|
511 |
+
}
|
512 |
+
|
513 |
+
list( $red, $green, $blue ) = sscanf( $hex, '#%02x%02x%02x' );
|
514 |
+
|
515 |
+
$r = $red / 255.0;
|
516 |
+
$g = $green / 255.0;
|
517 |
+
$b = $blue / 255.0;
|
518 |
+
$H = 0;
|
519 |
+
$S = 0;
|
520 |
+
$V = 0;
|
521 |
+
|
522 |
+
$min = min( $r, $g, $b );
|
523 |
+
$max = max( $r, $g, $b );
|
524 |
+
$delta = ( $max - $min );
|
525 |
+
|
526 |
+
$L = ( $max + $min ) / 2.0;
|
527 |
+
|
528 |
+
if( $delta == 0 ) {
|
529 |
+
$H = 0;
|
530 |
+
$S = 0;
|
531 |
+
} else {
|
532 |
+
$S = $L > 0.5 ? $delta / ( 2 - $max - $min ) : $delta / ( $max + $min );
|
533 |
+
|
534 |
+
$dR = ( ( ( $max - $r ) / 6) + ( $delta / 2 ) ) / $delta;
|
535 |
+
$dG = ( ( ( $max - $g ) / 6) + ( $delta / 2 ) ) / $delta;
|
536 |
+
$dB = ( ( ( $max - $b ) / 6) + ( $delta / 2 ) ) / $delta;
|
537 |
+
|
538 |
+
if ( $r == $max )
|
539 |
+
$H = $dB - $dG;
|
540 |
+
else if( $g == $max )
|
541 |
+
$H = ( 1/3 ) + $dR - $dB;
|
542 |
+
else
|
543 |
+
$H = ( 2/3 ) + $dG - $dR;
|
544 |
+
|
545 |
+
if ( $H < 0 )
|
546 |
+
$H += 1;
|
547 |
+
if ( $H > 1 )
|
548 |
+
$H -= 1;
|
549 |
+
}
|
550 |
+
$HSL = array( 'hue' => round( ($H*360), 0 ), 'saturation'=> round( ($S*100), 0 ), 'luminosity' => round( ( $L*100 ), 0) );
|
551 |
+
$HSL = 'hsl( '. $HSL['hue'] .', '.( $HSL['saturation']) .'%, '. ( $HSL['luminosity'] - $opacity ) . '%)';
|
552 |
+
return $HSL;
|
553 |
+
|
554 |
+
}
|
555 |
+
|
556 |
+
function isMobile() {
|
557 |
+
return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i", $_SERVER["HTTP_USER_AGENT"]);
|
558 |
+
}
|
559 |
+
|
560 |
function sanitize_checkbox( $input ) {
|
561 |
return ( ( isset( $input ) && true == $input ) ? true : false );
|
562 |
}
|
566 |
return wp_kses( $html, $allowedposttags );
|
567 |
}
|
568 |
|
569 |
+
function sort_social($a, $b){
|
570 |
+
if ( $a['hidden'] == $b['hidden'] ) {
|
571 |
+
if( $a['order'] == $b['order'] ) {
|
572 |
+
return 0;
|
573 |
+
}
|
574 |
+
return $a['order'] < $b['order'] ? -1 : 1;
|
575 |
+
} else {
|
576 |
+
return $a['hidden'] > $b['hidden'] ? 1 : -1;
|
577 |
+
}
|
578 |
+
}
|
579 |
+
|
580 |
}
|
581 |
|
582 |
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=KV2JF
|
|
4 |
Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -15,10 +15,11 @@ Create and customize your own landing page for Coming soon Page or Maintenance m
|
|
15 |
Free plugin to create and customize your own Coming Soon or Maintenance landing page. Setup custom logos, background graphics, texts, subscribe form, your social networks, fonts and colors, and many more.
|
16 |
|
17 |
<h3>Preview</h3>
|
18 |
-
<a href="http://
|
19 |
-
<a href="http://
|
20 |
-
<a href="http://
|
21 |
-
<a href="http://
|
|
|
22 |
|
23 |
<h3>Features</h3>
|
24 |
<ul>
|
@@ -99,6 +100,22 @@ Free plugin to create and customize your own Coming Soon or Maintenance landing
|
|
99 |
|
100 |
|
101 |
== Changelog ==
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
<h4>1.2.0</h4>
|
103 |
<ul>
|
104 |
<li>New premium theme: Hardwork Premium</li>
|
4 |
Tags: under construction, construction page, maintenance mode, landing page, launch page, launching, security, coming soon, customizable, offline, offline page, unavailable, free, unsplash, subscribe form
|
5 |
Requires at least: 3.0
|
6 |
Tested up to: 4.7.2
|
7 |
+
Stable tag: 1.4.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: https://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
15 |
Free plugin to create and customize your own Coming Soon or Maintenance landing page. Setup custom logos, background graphics, texts, subscribe form, your social networks, fonts and colors, and many more.
|
16 |
|
17 |
<h3>Preview</h3>
|
18 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=construct" target="_blank">Click for preview of Construct Theme >></a><br>
|
19 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork" target="_blank">Click for preview of Hardwork Theme >></a>
|
20 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork_premium" target="_blank">Click for preview of Hardwork Premium Theme >></a>
|
21 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=frame" target="_blank">Click for preview of Frame Theme >></a>
|
22 |
+
<a href="http://cmp.niteo.cz/?cmp_preview=true&theme=fifty" target="_blank">Click for preview of Fifty Theme >></a>
|
23 |
|
24 |
<h3>Features</h3>
|
25 |
<ul>
|
100 |
|
101 |
|
102 |
== Changelog ==
|
103 |
+
<h4>1.4.0</h4>
|
104 |
+
<ul>
|
105 |
+
<li>New Feature: It is now possible to drag&drop the social menu icons position and enable/disable it.</li>
|
106 |
+
<li>New Feature: Fifty theme can have two position of social icons: Footer and Body content.</li>
|
107 |
+
<li>Removed bug : Specific Theme options are now always correctly displayed right after Theme selection change.</li>
|
108 |
+
</ul>
|
109 |
+
<h4>1.3.0</h4>
|
110 |
+
<ul>
|
111 |
+
<li>New premium theme: Fifty.</li>
|
112 |
+
<li>Updated CSS styles for all free and premium Themes.</li>
|
113 |
+
<li>Migrated Thumbnails from comingsoon to cmp domain.</li>
|
114 |
+
</ul>
|
115 |
+
<h4>1.2.1</h4>
|
116 |
+
<ul>
|
117 |
+
<li>Resolved issue when plugin update caused deletion of installed Premium themes.</li>
|
118 |
+
</ul>
|
119 |
<h4>1.2.0</h4>
|
120 |
<ul>
|
121 |
<li>New premium theme: Hardwork Premium</li>
|
themes/construct/construct-theme.php
CHANGED
@@ -49,29 +49,51 @@
|
|
49 |
if ( $content_font == 'custom' ) {
|
50 |
$content_font = get_option('niteoCS_font_content_custom');
|
51 |
}
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
$i++;
|
|
|
61 |
}
|
|
|
|
|
|
|
|
|
62 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
63 |
|
64 |
-
|
65 |
if ( get_option( 'blog_public' ) == 0 ) {
|
66 |
echo "<meta name='robots' content='noindex,nofollow' />";
|
67 |
} ?>
|
68 |
|
69 |
<?php
|
70 |
-
if (
|
71 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
72 |
<?php
|
73 |
} ?>
|
74 |
-
<link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'construct/style.css';?>" type="text/css" media="all"></link>
|
75 |
|
76 |
<link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
|
77 |
<?php wp_site_icon();?>
|
@@ -143,7 +165,7 @@
|
|
143 |
|
144 |
} else {
|
145 |
// set construct img
|
146 |
-
$banner_url = plugin_dir_url( dirname( __FILE__ ) ) . '
|
147 |
}
|
148 |
break;
|
149 |
|
@@ -179,7 +201,7 @@
|
|
179 |
|
180 |
case '2':
|
181 |
// default image
|
182 |
-
$banner_url = plugin_dir_url( dirname( __FILE__ ) ) . '
|
183 |
break;
|
184 |
|
185 |
default:
|
@@ -256,7 +278,20 @@
|
|
256 |
</section>
|
257 |
|
258 |
<?php
|
259 |
-
if ( $
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
260 |
|
261 |
<section class="section section-social">
|
262 |
<?php if ( $social_title != '') { ?>
|
@@ -265,13 +300,14 @@
|
|
265 |
|
266 |
<ul class="social-list">
|
267 |
<?php
|
268 |
-
foreach ( $
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
|
|
275 |
}
|
276 |
|
277 |
} //end foreach ?>
|
49 |
if ( $content_font == 'custom' ) {
|
50 |
$content_font = get_option('niteoCS_font_content_custom');
|
51 |
}
|
52 |
+
|
53 |
+
// migrade social media to new option after update 1.4.0
|
54 |
+
if ( !get_option('niteoCS_socialmedia') ) {
|
55 |
+
$social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
|
56 |
+
$i = 0;
|
57 |
+
$new_socials = array();
|
58 |
+
foreach ( $social_media as $social ) {
|
59 |
+
|
60 |
+
$social_field = get_option('niteoCS_'.$social);
|
61 |
+
|
62 |
+
$new_socials[$i]['name'] = $social;
|
63 |
+
$new_socials[$i]['url'] = $social_field;
|
64 |
+
$new_socials[$i]['active'] = '1';
|
65 |
+
$new_socials[$i]['hidden'] = $social_field ? '0' : '1';
|
66 |
+
$new_socials[$i]['order'] = $i;
|
67 |
$i++;
|
68 |
+
|
69 |
}
|
70 |
+
$socialmedia = $new_socials;
|
71 |
+
} else {
|
72 |
+
$socialmedia = stripslashes(get_option('niteoCS_socialmedia'));
|
73 |
+
$socialmedia = json_decode($socialmedia, true);
|
74 |
}
|
75 |
+
|
76 |
+
foreach ($socialmedia as $social) {
|
77 |
+
|
78 |
+
if ( $social['hidden'] == '0' && $social['active'] == '1') {
|
79 |
+
$enable_social = true;
|
80 |
+
break;
|
81 |
+
} else {
|
82 |
+
$enable_social = false;
|
83 |
+
}
|
84 |
+
}
|
85 |
+
|
86 |
|
|
|
87 |
if ( get_option( 'blog_public' ) == 0 ) {
|
88 |
echo "<meta name='robots' content='noindex,nofollow' />";
|
89 |
} ?>
|
90 |
|
91 |
<?php
|
92 |
+
if ( $enable_social === true ) { ?>
|
93 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
94 |
<?php
|
95 |
} ?>
|
96 |
+
<link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'construct/style.css?ver=1.1';?>" type="text/css" media="all"></link>
|
97 |
|
98 |
<link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
|
99 |
<?php wp_site_icon();?>
|
165 |
|
166 |
} else {
|
167 |
// set construct img
|
168 |
+
$banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
|
169 |
}
|
170 |
break;
|
171 |
|
201 |
|
202 |
case '2':
|
203 |
// default image
|
204 |
+
$banner_url = plugin_dir_url( dirname( __FILE__ ) ) . 'construct/img/construct_banner_'.$size.'.jpg';
|
205 |
break;
|
206 |
|
207 |
default:
|
278 |
</section>
|
279 |
|
280 |
<?php
|
281 |
+
if ( $enable_social === true ) {
|
282 |
+
|
283 |
+
//sort array by hidden, then order key
|
284 |
+
function sort_social($a, $b){
|
285 |
+
if ( $a['hidden'] == $b['hidden'] ) {
|
286 |
+
if( $a['order'] == $b['order'] ) {
|
287 |
+
return 0;
|
288 |
+
}
|
289 |
+
return $a['order'] < $b['order'] ? -1 : 1;
|
290 |
+
} else {
|
291 |
+
return $a['hidden'] > $b['hidden'] ? 1 : -1;
|
292 |
+
}
|
293 |
+
}
|
294 |
+
uasort($socialmedia , 'sort_social'); ?>
|
295 |
|
296 |
<section class="section section-social">
|
297 |
<?php if ( $social_title != '') { ?>
|
300 |
|
301 |
<ul class="social-list">
|
302 |
<?php
|
303 |
+
foreach ( $socialmedia as $social ) {
|
304 |
+
if ($social['active'] == '1' && $social['hidden'] == '0') {
|
305 |
+
if ( $social['name'] == 'envelope-o' ) {
|
306 |
+
echo '<li><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
307 |
+
|
308 |
+
} else {
|
309 |
+
echo '<li><a href="'.esc_url($social['url']).'" target="top"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
310 |
+
}
|
311 |
}
|
312 |
|
313 |
} //end foreach ?>
|
themes/construct/img/construct_thumbnail.jpg
CHANGED
Binary file
|
themes/construct/style.css
CHANGED
@@ -1,8 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body{margin:0;}
|
2 |
:focus {outline:none;}
|
3 |
h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
|
4 |
.section {padding: 50px 2em;text-align: center;position: relative;}
|
5 |
-
.section-logo img {width: 500px;
|
6 |
.section-banner{height: 300px;}
|
7 |
.section-body p{width:70%;max-width: 900px;margin:1em auto;}
|
8 |
.section-social{background-color: #f8f8f8;}
|
1 |
+
/*
|
2 |
+
CMP Theme: Construct
|
3 |
+
Preview: http://cmp.niteo.cz/?cmp_preview=true&theme=construct
|
4 |
+
Author: NiteoThemes
|
5 |
+
Author URI: http://niteo.cz/
|
6 |
+
Version: 1.1
|
7 |
+
License: GNU General Public License v2 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
Tags:one-column, custom-header, custom-menu, featured-images, post-formats, translation-ready
|
10 |
+
|
11 |
+
niteo Portfolio is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
|
12 |
+
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
13 |
+
|
14 |
+
Normalizing styles have been helped along thanks to the fine work of
|
15 |
+
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normaalize.css/
|
16 |
+
*/
|
17 |
+
|
18 |
body{margin:0;}
|
19 |
:focus {outline:none;}
|
20 |
h1,h2,h3,h4,h5,h6{font-weight: 400;font-size:2em;}
|
21 |
.section {padding: 50px 2em;text-align: center;position: relative;}
|
22 |
+
.section-logo img {max-width: 500px;}
|
23 |
.section-banner{height: 300px;}
|
24 |
.section-body p{width:70%;max-width: 900px;margin:1em auto;}
|
25 |
.section-social{background-color: #f8f8f8;}
|
themes/fifty_thumbnail.jpg
ADDED
Binary file
|
themes/frame_thumbnail.jpg
CHANGED
Binary file
|
themes/hardwork/hardwork-theme.php
CHANGED
@@ -22,6 +22,7 @@
|
|
22 |
$unplash_feed = get_option('niteoCS_unsplash_feed', '0');
|
23 |
$social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
|
24 |
$body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
|
|
|
25 |
|
26 |
// override options if theme preview isset
|
27 |
if ( isset( $theme_preview ) && $theme_preview == 'hardwork' ) {
|
@@ -30,6 +31,7 @@
|
|
30 |
$logo_id = '8';
|
31 |
$niteoCS_banner = '2';
|
32 |
$body_title = 'We will be back soon!';
|
|
|
33 |
|
34 |
}
|
35 |
|
@@ -41,31 +43,49 @@
|
|
41 |
$content_font = get_option('niteoCS_font_content_custom');
|
42 |
}
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
$
|
52 |
-
|
|
|
|
|
|
|
|
|
|
|
53 |
$i++;
|
|
|
54 |
}
|
|
|
|
|
|
|
|
|
55 |
}
|
|
|
|
|
56 |
|
57 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
58 |
|
59 |
if ( get_option( 'blog_public' ) == 0 ) {
|
60 |
echo "<meta name='robots' content='noindex,nofollow' />";
|
61 |
} ?>
|
62 |
|
63 |
<?php
|
64 |
-
if (
|
65 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
66 |
<?php
|
67 |
} ?>
|
68 |
-
<link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/style.css';?>" type="text/css" media="all"></link>
|
69 |
|
70 |
<link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
|
71 |
|
@@ -215,41 +235,55 @@
|
|
215 |
<?php
|
216 |
}
|
217 |
?>
|
218 |
-
<section class="section section-logo">
|
219 |
-
<?php if ( isset($logo_url[0]) ) { ?>
|
220 |
-
<img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
|
221 |
-
<?php } ?>
|
222 |
-
</section>
|
223 |
|
224 |
<section class="section section-body">
|
|
|
|
|
|
|
|
|
|
|
225 |
<?php if ( $body_title != '' ) { ?>
|
226 |
<h2><?php echo esc_html( $body_title );?></h2>
|
227 |
<?php } ?>
|
228 |
|
229 |
-
<?php echo apply_filters('the_content', stripslashes(
|
230 |
|
231 |
</section>
|
232 |
|
233 |
<?php
|
234 |
-
if (
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
235 |
|
236 |
<section class="section section-social">
|
237 |
-
|
238 |
<ul class="social-list">
|
239 |
<?php
|
240 |
-
foreach ( $
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
|
|
247 |
}
|
248 |
|
249 |
} //end foreach ?>
|
250 |
</ul>
|
251 |
</section>
|
252 |
-
<?php
|
253 |
} ?>
|
254 |
|
255 |
|
22 |
$unplash_feed = get_option('niteoCS_unsplash_feed', '0');
|
23 |
$social_title = get_option('niteoCS_soc_title', 'GET SOCIAL WITH US');
|
24 |
$body_title = get_option('niteoCS_body_title', 'SOMETHING IS HAPPENING!');
|
25 |
+
$body = get_option('niteoCS_body');
|
26 |
|
27 |
// override options if theme preview isset
|
28 |
if ( isset( $theme_preview ) && $theme_preview == 'hardwork' ) {
|
31 |
$logo_id = '8';
|
32 |
$niteoCS_banner = '2';
|
33 |
$body_title = 'We will be back soon!';
|
34 |
+
$body = '<p>Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas. Everti labores cu sea, ea eam choro semper, usu an quot vocibus euripidis. An vis porro insolens, ea graeci vulputate qui. Qui vidisse evertitur et, ea vis habemus fabellas.</p>';
|
35 |
|
36 |
}
|
37 |
|
43 |
$content_font = get_option('niteoCS_font_content_custom');
|
44 |
}
|
45 |
|
46 |
+
// migrade social media to new option after update 1.4.0
|
47 |
+
if ( !get_option('niteoCS_socialmedia') ) {
|
48 |
+
$social_media = array('facebook', 'google-plus', 'twitter', 'instagram', 'skype', '500px', 'deviantart', 'behance', 'dribbble', 'pinterest', 'linkedin', 'tumblr', 'youtube', 'vimeo', 'flickr', 'vk','envelope-o');
|
49 |
+
$i = 0;
|
50 |
+
$new_socials = array();
|
51 |
+
foreach ( $social_media as $social ) {
|
52 |
+
|
53 |
+
$social_field = get_option('niteoCS_'.$social);
|
54 |
+
|
55 |
+
$new_socials[$i]['name'] = $social;
|
56 |
+
$new_socials[$i]['url'] = $social_field;
|
57 |
+
$new_socials[$i]['active'] = '1';
|
58 |
+
$new_socials[$i]['hidden'] = $social_field ? '0' : '1';
|
59 |
+
$new_socials[$i]['order'] = $i;
|
60 |
$i++;
|
61 |
+
|
62 |
}
|
63 |
+
$socialmedia = $new_socials;
|
64 |
+
} else {
|
65 |
+
$socialmedia = stripslashes(get_option('niteoCS_socialmedia'));
|
66 |
+
$socialmedia = json_decode($socialmedia, true);
|
67 |
}
|
68 |
+
|
69 |
+
foreach ($socialmedia as $social) {
|
70 |
|
71 |
+
if ( $social['hidden'] == '0' && $social['active'] == '1') {
|
72 |
+
$enable_social = true;
|
73 |
+
break;
|
74 |
+
} else {
|
75 |
+
$enable_social = false;
|
76 |
+
}
|
77 |
+
}
|
78 |
|
79 |
if ( get_option( 'blog_public' ) == 0 ) {
|
80 |
echo "<meta name='robots' content='noindex,nofollow' />";
|
81 |
} ?>
|
82 |
|
83 |
<?php
|
84 |
+
if ( $enable_social === true ) { ?>
|
85 |
<link rel="stylesheet" href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css">
|
86 |
<?php
|
87 |
} ?>
|
88 |
+
<link rel="stylesheet" href="<?php echo plugin_dir_url( dirname( __FILE__ ) ) . 'hardwork/style.css?ver=1.1';?>" type="text/css" media="all"></link>
|
89 |
|
90 |
<link href="https://fonts.googleapis.com/css?family=<?php echo esc_attr(str_replace(' ', '+', $heading_font));?>|<?php echo esc_attr(str_replace(' ', '+', $content_font));?>:400,400i,700" rel="stylesheet">
|
91 |
|
235 |
<?php
|
236 |
}
|
237 |
?>
|
|
|
|
|
|
|
|
|
|
|
238 |
|
239 |
<section class="section section-body">
|
240 |
+
<div class="logo-wrapper">
|
241 |
+
<?php if ( isset($logo_url[0]) ) { ?>
|
242 |
+
<img src="<?php echo esc_url( $logo_url[0] ); ?>" alt="logo">
|
243 |
+
<?php } ?>
|
244 |
+
</div>
|
245 |
<?php if ( $body_title != '' ) { ?>
|
246 |
<h2><?php echo esc_html( $body_title );?></h2>
|
247 |
<?php } ?>
|
248 |
|
249 |
+
<?php echo apply_filters('the_content', stripslashes($body));?>
|
250 |
|
251 |
</section>
|
252 |
|
253 |
<?php
|
254 |
+
if ( $enable_social === true ) {
|
255 |
+
|
256 |
+
//sort array by hidden, then order key
|
257 |
+
function sort_social($a, $b){
|
258 |
+
if ( $a['hidden'] == $b['hidden'] ) {
|
259 |
+
if( $a['order'] == $b['order'] ) {
|
260 |
+
return 0;
|
261 |
+
}
|
262 |
+
return $a['order'] < $b['order'] ? -1 : 1;
|
263 |
+
} else {
|
264 |
+
return $a['hidden'] > $b['hidden'] ? 1 : -1;
|
265 |
+
}
|
266 |
+
}
|
267 |
+
uasort($socialmedia , 'sort_social'); ?>
|
268 |
|
269 |
<section class="section section-social">
|
270 |
+
|
271 |
<ul class="social-list">
|
272 |
<?php
|
273 |
+
foreach ( $socialmedia as $social ) {
|
274 |
+
if ($social['active'] == '1' && $social['hidden'] == '0') {
|
275 |
+
if ( $social['name'] == 'envelope-o' ) {
|
276 |
+
echo '<li><a href="mailto:'.antispambot(esc_html($social['url'])).'" target="_blank"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
277 |
+
|
278 |
+
} else {
|
279 |
+
echo '<li><a href="'.esc_url($social['url']).'" target="top"><i class="fa fa-'.$social['name'].'" aria-hidden="true"></i></a></li>';
|
280 |
+
}
|
281 |
}
|
282 |
|
283 |
} //end foreach ?>
|
284 |
</ul>
|
285 |
</section>
|
286 |
+
<?php
|
287 |
} ?>
|
288 |
|
289 |
|
themes/hardwork/img/hardwork_thumbnail.jpg
CHANGED
Binary file
|
themes/hardwork/style.css
CHANGED
@@ -1,3 +1,20 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body{
|
2 |
display: flex;
|
3 |
flex-direction: column;
|
@@ -19,19 +36,30 @@ h1,h2,h3,h4,h5,h6{
|
|
19 |
}
|
20 |
|
21 |
.section-body {
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
35 |
max-width: 100%;
|
36 |
}
|
37 |
|
@@ -113,10 +141,15 @@ h1,h2,h3,h4,h5,h6{
|
|
113 |
to {transform:rotate(360deg);}
|
114 |
}
|
115 |
|
|
|
|
|
|
|
|
|
116 |
@media only screen and (max-width : 560px) {
|
117 |
.section {padding: 20px 10px;}
|
118 |
.section-logo { padding-top: 20px;}
|
119 |
h2 {font-size: 2.5em;}
|
120 |
.section-body p {font-size: 1em;}
|
|
|
121 |
|
122 |
}
|
1 |
+
/*
|
2 |
+
CMP Theme: Hardwork
|
3 |
+
Preview: http://cmp.niteo.cz/?cmp_preview=true&theme=hardwork
|
4 |
+
Author: NiteoThemes
|
5 |
+
Author URI: http://niteo.cz/
|
6 |
+
Version: 1.1
|
7 |
+
License: GNU General Public License v2 or later
|
8 |
+
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
9 |
+
Tags:one-column, custom-header, custom-menu, featured-images, post-formats, translation-ready
|
10 |
+
|
11 |
+
niteo Portfolio is based on Underscores http://underscores.me/, (C) 2012-2015 Automattic, Inc.
|
12 |
+
Underscores is distributed under the terms of the GNU GPL v2 or later.
|
13 |
+
|
14 |
+
Normalizing styles have been helped along thanks to the fine work of
|
15 |
+
Nicolas Gallagher and Jonathan Neal http://necolas.github.com/normaalize.css/
|
16 |
+
*/
|
17 |
+
|
18 |
body{
|
19 |
display: flex;
|
20 |
flex-direction: column;
|
36 |
}
|
37 |
|
38 |
.section-body {
|
39 |
+
display: -webkit-flex;
|
40 |
+
display: -moz-flex;
|
41 |
+
display: -ms-flex;
|
42 |
+
display: -o-flex;
|
43 |
+
display: flex;
|
44 |
+
justify-content: center;
|
45 |
+
-moz-justify-content: center;
|
46 |
+
-webkit-justify-content: center;
|
47 |
+
-webkit-flex-direction: column;
|
48 |
+
-moz-flex-direction: column;
|
49 |
+
flex-direction: column;
|
50 |
+
flex-grow: 10;
|
51 |
+
-webkit-flex-grow: 10;
|
52 |
+
-moz-flex-grow: 10;
|
53 |
+
}
|
54 |
+
|
55 |
+
|
56 |
+
.logo-wrapper {
|
57 |
+
padding: 50px 0;
|
58 |
+
max-width: 320px;
|
59 |
+
margin: 0 auto;
|
60 |
+
}
|
61 |
+
|
62 |
+
.logo-wrapper img {
|
63 |
max-width: 100%;
|
64 |
}
|
65 |
|
141 |
to {transform:rotate(360deg);}
|
142 |
}
|
143 |
|
144 |
+
@media only screen and (max-width : 1024px) {
|
145 |
+
.logo-wrapper { padding: 20px 0;}
|
146 |
+
}
|
147 |
+
|
148 |
@media only screen and (max-width : 560px) {
|
149 |
.section {padding: 20px 10px;}
|
150 |
.section-logo { padding-top: 20px;}
|
151 |
h2 {font-size: 2.5em;}
|
152 |
.section-body p {font-size: 1em;}
|
153 |
+
|
154 |
|
155 |
}
|
themes/hardwork_premium_thumbnail.jpg
CHANGED
Binary file
|