Coming soon and Maintenance mode - Version 1.0.1

Version Description

Download this release

Release Info

Developer wpdevart
Plugin Icon 128x128 Coming soon and Maintenance mode
Version 1.0.1
Comparing to
See all releases

Code changes from version 1.0.0 to 1.0.1

coming_soon.php CHANGED
@@ -1,10 +1,10 @@
1
  <?php
2
  /**
3
- * Plugin Name: Coming Soon wpdevart
4
  * Plugin URI: http://wpdevart.com/wordpress-coming-soon-plugin
5
- * Description: Coming soon page plugin is awesome tool to show your users that you are working on your website to make it better. Our coming soon plugin is the best way to create better coming soon page.
6
- * Version: 1.0.0
7
- * Author: wpdevart
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
 
@@ -63,9 +63,11 @@ class coming_soon_main{
63
  }
64
 
65
  public function registr_requeried_scripts(){
 
66
  wp_register_script('background_coming',$this->coming_soon_plugin_url.'includes/javascript/background.js');
67
  wp_register_style('jquery-ui-style',$this->coming_soon_plugin_url.'includes/style/jquery-ui-style.css');
68
  wp_register_style('coming-soon-admin-style',$this->coming_soon_plugin_url.'includes/style/admin-style.css');
 
69
  }
70
 
71
  public function call_base_filters(){
1
  <?php
2
  /**
3
+ * Plugin Name: Coming soon and Maintenance mode WpDevArt
4
  * Plugin URI: http://wpdevart.com/wordpress-coming-soon-plugin
5
+ * Description: Coming soon and Maintenance mode plugin is awesome tool to show your users that you are working on your website to make it better. Our coming soon plugin is the best way to create better coming soon page.
6
+ * Version: 1.0.1
7
+ * Author: maintenance mode GG, wpdevart, big ben keeper
8
  * License: GNU/GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
9
  */
10
 
63
  }
64
 
65
  public function registr_requeried_scripts(){
66
+ wp_register_script('coming-soon-script',$this->coming_soon_plugin_url.'includes/javascript/front_end_js.js');
67
  wp_register_script('background_coming',$this->coming_soon_plugin_url.'includes/javascript/background.js');
68
  wp_register_style('jquery-ui-style',$this->coming_soon_plugin_url.'includes/style/jquery-ui-style.css');
69
  wp_register_style('coming-soon-admin-style',$this->coming_soon_plugin_url.'includes/style/admin-style.css');
70
+ wp_register_style('coming-soon-style',$this->coming_soon_plugin_url.'includes/style/style.css');
71
  }
72
 
73
  public function call_base_filters(){
images/success.png ADDED
Binary file
includes/admin_menu.php CHANGED
@@ -7,15 +7,30 @@ class coming_soon_admin_menu{
7
  private $menu_name;
8
  private $databese_parametrs;
9
  private $plugin_url;
 
10
 
11
  function __construct($param){
12
- $this->menu_name=$param['menu_name'];
13
- $this->databese_parametrs=$param['databese_parametrs'];
 
 
 
 
 
 
 
 
 
 
 
 
14
  if(isset($params['plugin_url']))
15
  $this->plugin_url=$params['plugin_url'];
16
  else
17
  $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
18
 
 
 
19
  add_action( 'wp_ajax_coming_soon_page_save', array($this,'save_in_databese') );
20
  add_action( 'wp_ajax_coming_soon_send_mail', array($this,'sending_mail') );
21
  }
@@ -47,44 +62,6 @@ class coming_soon_admin_menu{
47
  }
48
  return NULL;
49
 
50
- }
51
- public function sending_mail(){
52
- $mailing_lists=json_decode(stripslashes(get_option('users_mailer','')), true);
53
- if($mailing_lists==NULL)
54
- $mailing_lists=array();
55
- $not_sending_mails=array();
56
- $sending_mails=array();
57
- if(!(isset($_POST['massage_title']) && $_POST['massage_title']!='')){
58
- echo 'Type Message Title';
59
- die();
60
- }
61
- if(!(isset($_POST['massage_description']) && $_POST['massage_description']!='')){
62
- echo 'Type Message';
63
- die();
64
- }
65
- foreach($mailing_lists as $key => $mail){
66
- $send=wp_mail( $mail, $_POST['massage_title'], $_POST['massage_description']);
67
- if(!$send){
68
- array_push($not_sending_mails,$mail);
69
- }
70
- else
71
- {
72
- array_push($sending_mails,$key);
73
- }
74
- }
75
- foreach($sending_mails as $key){
76
- unset($mailing_lists[$key]);
77
- }
78
- update_option('users_mailer',json_encode($mailing_lists));
79
- if(count($not_sending_mails)){
80
- foreach($not_sending_mails as $errors){
81
- echo $errors.',';
82
- }
83
- echo " Mails Not sended";
84
- exit;
85
- }
86
- die('Your message was sent successfully.');
87
-
88
  }
89
  public function save_in_databese(){
90
  $kk=1;
@@ -94,12 +71,14 @@ class coming_soon_admin_menu{
94
  update_option($key,$_POST[$key]);
95
  else{
96
  $kk=0;
97
- echo 'parametr'.$key.' ERROR NOT SAVE';
98
  }
99
  }
100
  }
101
- if($kk){ echo "Changes have been saved";}
102
- die();
 
 
103
  }
104
 
105
  public function main_menu_function(){
@@ -126,8 +105,9 @@ class coming_soon_admin_menu{
126
  }
127
  </style>
128
  <script>
 
129
  jQuery(document).ready(function() {
130
- var link_my_plugin="http://wpdevart.com/wordpress-coming-soon-plugin/"
131
  if (typeof(localStorage) != 'undefined' ) {
132
  active_tab = localStorage.getItem("active_tab");
133
  if(active_tab==link_my_plugin)
@@ -215,9 +195,9 @@ class coming_soon_admin_menu{
215
  <h2 class="nav-tab-wrapper in-page-tab">
216
  <a id="options-group-1-tab" class="nav-tab" title="SEO" href="#options-group-1">General Settings</a>
217
  <a id="options-group-2-tab" class="nav-tab" title="Layout Editor" href="#options-group-2">Design Option</a>
218
- <a id="options-group-3-tab" class="nav-tab" title="General" href="#options-group-3">Mailing List</a>
219
  <a id="options-group-4-tab" class="nav-tab" title="Homepage" href="#options-group-4">Liev Preview</a>
220
- <a id="options-group-4-tab" class="nav-tab" title="Homepage" href="http://wpdevart.com/wordpress-coming-soon-plugin/"><span style="color: rgba(216, 19, 19, 1); font-weight: bold; font-size: 21px;">Upgrade to Pro Version</span></a>
221
 
222
  </h2>
223
  <div id="optionsframework-metabox" class="metabox-holder">
@@ -226,7 +206,7 @@ class coming_soon_admin_menu{
226
  <div id="options-group-1" class="group general_settings" style="display: none;"><h3>General Settings</h3> <?php $this->generete_general_settings_page($this->generete_parametrs('general')); ?></div>
227
  <div id="options-group-2" class="group design_settings" style="display: none;"><h3>Design Options</h3> <?php $this->generete_design_options_page($this->generete_parametrs('design')); ?></div>
228
  <div id="options-group-3" class="group templates" style="display: none;"><h3>Mailing List</h3><?php $this->generete_mailing_list_options_page($this->generete_parametrs('mailing_list')); ?></div>
229
- <div id="options-group-4" class="group Homepage" style="display: none;"><h3><span style="color:red"> Please refresh this page to see changes(F5).</span></h3><?php $this->generete_mailing_live_previev_page($this->generete_parametrs('mailing_list')); ?></div>
230
 
231
  </div>
232
  </div>
@@ -250,24 +230,25 @@ class coming_soon_admin_menu{
250
 
251
  <input type="hidden" class="insert_value_this" name="coming_soon_page_mode" id="coming_soon_page_mode" value="<?php echo $page_parametrs['coming_soon_page_mode'] ?>" />
252
  </div>
253
- <div class="option_group">
254
- <h4 class="option_title">Mailing List </h4>
255
-
 
256
  <label for="enable_mailing_liston">Enable Mailing List</label>
257
- <input type="radio" onchange="generete_radio_input_hidden(this)" name="enable_mailing_listradio" id="enable_mailing_liston" value="on" <?php checked($page_parametrs['enable_mailing_list'], "on"); ?> />
258
  <br /><br />
259
  <label for="enable_mailing_listoff">Disable Mailing List</label>
260
- <input type="radio" onchange="generete_radio_input_hidden(this)" name="enable_mailing_listradio" id="enable_mailing_listoff" value="off" <?php checked($page_parametrs['enable_mailing_list'], "off"); ?>/>
261
-
262
- <input type="hidden" class="insert_value_this" name="enable_mailing_list" id="enable_mailing_list" value="<?php echo $page_parametrs['enable_mailing_list'] ?>" />
263
  </div>
 
264
  <div class="option_group">
265
- <h4 class="option_title">Mailing list input text</h4>
266
- <input type="text" size="60" value="<?php echo htmlspecialchars(stripslashes($page_parametrs['mailing_list_value_of_emptyt'])) ?>" id="mailing_list_value_of_emptyt" name="mailing_list_value_of_emptyt" />
267
  </div>
 
268
  <div class="option_group">
269
- <h4 class="option_title">Mailing list send button text</h4>
270
- <input type="text" size="60" value="<?php echo htmlspecialchars(stripslashes($page_parametrs['mailing_list_button_value'])) ?>" id="mailing_list_button_value" name="mailing_list_button_value" />
271
  </div>
272
  <div class="option_group">
273
  <h4 class="option_title">Logo</h4>
@@ -295,13 +276,13 @@ class coming_soon_admin_menu{
295
  </div>
296
 
297
  <div class="option_group">
298
- <h4 class="option_title">Countdown(Timer)</h4><br />
299
  <?php $countdown= json_decode(stripslashes($page_parametrs['coming_soon_page_countdown']), true); ?>
300
- <input type="text" onchange="refresh_countdown()" placeholder="day" id="coming_soon_page_countdownday" size="6" value="<?php if(isset($countdown['days'])) echo $countdown['days']; ?>"/>
301
- <input type="text" onchange="refresh_countdown()" placeholder="housrse" id="coming_soon_page_countdownhour" size="6" value="<?php if(isset($countdown['hours'])) echo $countdown['hours']; ?>"/>
302
- <input type="text" onchange="refresh_countdown()" placeholder="Start Date" id="coming_soon_page_countdownstart_day" size="12" value="<?php if(isset($countdown['start_day'])) echo $countdown['start_day']; ?>"/>
303
- <h4 style="margin-top: 26px;" class="option_title">Continue showing Coming soon page after ending date.</h4>
304
- <input type="checkbox" onchange="refresh_countdown()" <?php checked($countdown['countedown_on'], "on"); ?> value="on" id="coming_soon_page_countdownstart_on"/>
305
 
306
  <input type="hidden" value='<?php echo stripslashes($page_parametrs['coming_soon_page_countdown']) ?>' id="coming_soon_page_countdown" name="coming_soon_page_countdown" />
307
 
@@ -312,7 +293,7 @@ class coming_soon_admin_menu{
312
  </div>
313
  </div>
314
  <div class="option_group" >
315
- <h4 class="option_title">Disable coming soon page for this urls <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
316
  <div class="emelent_coming_soon_page_showed_urls">
317
  <input onclick="alert(text_of_upgrate_version); return false" type="text" placeholder="Type Ip URl" value="">
318
  <span class="remove_element remove_element_coming_soon_page_showed_urls"></span>
@@ -339,16 +320,18 @@ class coming_soon_admin_menu{
339
  <h4 class="option_title">Instagram</h4><br />
340
  <input type="text" class="upload" id="coming_soon_page_instagram" name="coming_soon_page_instagram" size="60" value="<?php echo $page_parametrs['coming_soon_page_instagram'] ?>"/>
341
  </div>
342
- <button type="button" id="save_button" class="save_button button button-primary">Save General Settings</button>
 
 
343
  <?php wp_nonce_field('coming_soon_options_nonce','coming_soon_options_nonce'); ?>
344
  </form>
345
-
346
  <script>
347
 
348
 
349
  /////////////// ///////////////
350
  /////////////// MANY INPUTS ///////////////
351
  /////////////// ///////////////
 
352
  var many_inputs={
353
  main_element_for_inserting_element:'no_blocked_ips',
354
  element_name_and_id:'coming_soon_page_showed_ips',
@@ -470,16 +453,30 @@ class coming_soon_admin_menu{
470
  tinymce.get( 'coming_soon_page_page_title').save();
471
  if(tinymce.get( 'coming_soon_page_page_message')!=null)
472
  tinymce.get( 'coming_soon_page_page_message').save()
473
- jQuery('body').prepend('<div id="saving_soon"><span id="loading_text"><img src="<?php echo $this->plugin_url.'images/loading_big.gif' ?>" /></span></div>');
474
- jQuery('#saving_soon').height(jQuery(window).height());
475
- //jQuery('#saving_soon').click(function(){jQuery('#saving_soon').remove()})
 
 
476
  jQuery.ajax({
477
  type:'POST',
478
  url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save' ); ?>",
479
  data: {curent_page:'general',coming_soon_options_nonce:jQuery('#coming_soon_options_nonce').val()<?php foreach($page_parametrs as $key => $value){echo ','.$key.':jQuery("#'.$key.'").val()';} ?>},
480
  }).done(function(date) {
481
- alert(date)
482
- jQuery('#saving_soon').remove();
 
 
 
 
 
 
 
 
 
 
 
 
483
  });
484
  });
485
 
@@ -487,6 +484,7 @@ class coming_soon_admin_menu{
487
  /// for upload
488
  /* set uploader size in resizing*/
489
  jQuery('.upload-button').click(function () {
 
490
  window.parent.uploadID = jQuery(this).prev('input');
491
  /*grab the specific input*/
492
  formfield = jQuery('.upload').attr('name');
@@ -516,7 +514,7 @@ class coming_soon_admin_menu{
516
  jQuery(element).parent().find('.insert_value_this').val(jQuery(element).parent().find('input[type=radio]:checked').val())
517
 
518
  }
519
- var text_of_upgrate_version='If you want to use this feature upgrade to Coming soon Pro';
520
  </script>
521
  <?php
522
 
@@ -533,7 +531,7 @@ class coming_soon_admin_menu{
533
  <label for="coming_soon_page_radio_backroundimage">Background Image</label>
534
  <input type="radio" onchange="generete_radio_input(this)" name="coming_soon_page_radio_backroundradio" id="coming_soon_page_radio_backroundimage" value="back_imge" <?php checked($page_parametrs['coming_soon_page_radio_backroun'], "back_imge"); ?> />
535
 
536
- <label for="coming_soon_page_radio_backroundslider">Background Slider <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></label>
537
  <input type="radio" onclick="alert(text_of_upgrate_version); return false" name="coming_soon_page_radio_backroundradio" />
538
  <input type="hidden" class="insert_design_value_this" name="coming_soon_page_radio_backroun" id="coming_soon_page_radio_backroun" value="<?php echo $page_parametrs['coming_soon_page_radio_backroun'] ?>" />
539
  </div>
@@ -577,21 +575,21 @@ class coming_soon_admin_menu{
577
  </div>
578
 
579
  <div class="option_group">
580
- <h4 class="option_title">Title Font Size</h4>
581
  <div id="upload_image">
582
- <input type="text" class="upload" id="coming_soon_page_page_title_font_size" name="coming_soon_page_page_title_font_size" size="3" value="<?php echo $page_parametrs['coming_soon_page_page_title_font_size'] ?>"/>Px
583
  </div>
584
  </div>
585
 
586
  <div class="option_group">
587
- <h4 class="option_title">Title Color</h4>
588
- <div id="upload_image">
589
- <input type="text" class="upload" id="coming_soon_page_page_title_color" name="coming_soon_page_page_title_color" size="60" value="<?php echo $page_parametrs['coming_soon_page_page_title_color'] ?>"/>
590
- </div>
591
  </div>
592
 
593
  <div class="option_group">
594
- <h4 class="option_title">Content position <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
595
 
596
  <table class="bws_position_table">
597
  <tbody>
@@ -616,51 +614,51 @@ class coming_soon_admin_menu{
616
  </div>
617
 
618
  <div class="option_group">
619
- <h4 class="option_title">Coming soon Content background color</h4>
620
- <div >
621
- <input type="text" id="coming_soon_page_content_bg_color" name="coming_soon_page_content_bg_color" size="60" value="<?php echo $page_parametrs['coming_soon_page_content_bg_color'] ?>"/>
622
- </div>
623
  </div>
624
 
625
  <div class="option_group">
626
- <h4 class="option_title">Coming page Content background transparency</h4>
627
- <input type="text" size="3" name="coming_soon_page_content_trasparensy" value="50" id="coming_soon_page_content_trasparensy" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
628
- <div style="width:240px" id="slider-coming_soon_page_content_trasparensy" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
629
  <span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0" style="left: 0%;"></span>
630
  </div>
631
  </div>
632
 
633
  <div class="option_group">
634
- <h4 class="option_title">Content border radius</h4>
635
  <div>
636
- <input type="text" id="page_content_boreder_radius" name="page_content_boreder_radius" size="3" value="<?php echo $page_parametrs['page_content_boreder_radius'] ?>"/>Px
637
  </div>
638
  </div>
639
 
640
 
641
 
642
  <div class="option_group">
643
- <h4 class="option_title">Countdown button background color <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
644
  <div class='disabled_for_pro'>
645
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(61, 168, 204);"></a></div>
646
  </div>
647
  </div>
648
 
649
  <div class="option_group">
650
- <h4 class="option_title">Countdown text color <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
651
  <div class='disabled_for_pro'>
652
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
653
  </div>
654
  </div>
655
  <div class="option_group">
656
- <h4 class="option_title">Countdown border radius <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
657
  <div>
658
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="8"/>Px
659
  </div>
660
  </div>
661
 
662
  <div class="option_group">
663
- <h4 class="option_title">Countdown font-size <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
664
  <div>
665
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="30"/>Px
666
  </div>
@@ -670,31 +668,31 @@ class coming_soon_admin_menu{
670
 
671
 
672
  <div class="option_group">
673
- <h4 class="option_title">Mailing list button background color <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
674
  <div class='disabled_for_pro'>
675
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(61, 168, 204);"></a></div>
676
  </div>
677
  </div>
678
  <div class="option_group">
679
- <h4 class="option_title">Mailing list button text color <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
680
  <div class='disabled_for_pro'>
681
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
682
  </div>
683
  </div>
684
  <div class="option_group">
685
- <h4 class="option_title">Mailing list input text color <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
686
  <div class='disabled_for_pro'>
687
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
688
  </div>
689
  </div>
690
  <div class="option_group">
691
- <h4 class="option_title">Mailing list button and input font-size <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
692
  <div>
693
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="25"/>Px
694
  </div>
695
  </div>
696
  <div class="option_group">
697
- <h4 class="option_title">Text color that will appear after sending Email. <span style="color:rgba(216, 19, 19, 1);">Pro feature!</span></h4>
698
  <div class='disabled_for_pro'>
699
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(255, 255, 255);"></a></div>
700
  </div>
@@ -703,46 +701,48 @@ class coming_soon_admin_menu{
703
 
704
 
705
  <div class="option_group">
706
- <h4 class="option_title">Facebook button background image</h4>
707
  <div id="upload_image">
708
- <input type="text" class="upload" id="social_facbook_bacground_image" name="social_facbook_bacground_image" size="60" value="<?php echo $page_parametrs['social_facbook_bacground_image'] ?>"/>
709
- <input class="upload-button" type="button" value="Upload Image"/>
710
  </div>
711
  </div>
712
 
713
  <div class="option_group">
714
- <h4 class="option_title">Twitter button background image</h4>
715
  <div id="upload_image">
716
- <input type="text" class="upload" id="social_twiter_bacground_image" name="social_twiter_bacground_image" size="60" value="<?php echo $page_parametrs['social_twiter_bacground_image'] ?>"/>
717
- <input class="upload-button" type="button" value="Upload Image"/>
718
  </div>
719
  </div>
720
 
721
  <div class="option_group">
722
- <h4 class="option_title">Google+ button background image</h4>
723
  <div id="upload_image">
724
- <input type="text" class="upload" id="social_google_bacground_image" name="social_google_bacground_image" size="60" value="<?php echo $page_parametrs['social_google_bacground_image'] ?>"/>
725
- <input class="upload-button" type="button" value="Upload Image"/>
726
  </div>
727
  </div>
728
 
729
  <div class="option_group">
730
- <h4 class="option_title">YouTube button background image</h4>
731
  <div id="upload_image">
732
- <input type="text" class="upload" id="social_youtobe_bacground_image" name="social_youtobe_bacground_image" size="60" value="<?php echo $page_parametrs['social_youtobe_bacground_image'] ?>"/>
733
- <input class="upload-button" type="button" value="Upload Image"/>
734
  </div>
735
  </div>
736
 
737
  <div class="option_group">
738
- <h4 class="option_title">Instagram button background image</h4>
739
  <div id="upload_image">
740
- <input type="text" class="upload" id="social_instagram_bacground_image" name="social_instagram_bacground_image" size="60" value="<?php echo $page_parametrs['social_instagram_bacground_image'] ?>"/>
741
- <input class="upload-button" type="button" value="Upload Image"/>
742
  </div>
743
  </div>
744
 
745
- <button type="button" id="save_button_design" class="save_button button button-primary">Save Design Settings</button>
 
 
746
  <?php wp_nonce_field('coming_soon_options_nonce','coming_soon_options_nonce'); ?>
747
  </form>
748
  <script>
@@ -750,6 +750,7 @@ class coming_soon_admin_menu{
750
 
751
 
752
  jQuery('.add_upload_image_button').click(function(){
 
753
  jQuery('.slider_images_div').eq(jQuery('.slider_images_div').length-1).after(jQuery('<div class="slider_images_div"><br><input type="text" class="upload_many_images" size="60" value=""/><input class="upload-button button button-primary" type="button" value="Upload Image"/><input class="remove_upload_image" type="button" value="Remove"/></div>'))
754
  initial_last_element_functions(this);
755
  })
@@ -772,9 +773,11 @@ class coming_soon_admin_menu{
772
  })
773
  generete_radio_input(jQuery('#coming_soon_page_radio_backroundcolor'));
774
  jQuery('#save_button_design').click(function(){
775
- jQuery('body').prepend('<div id="saving_soon"><span id="loading_text"><img src="<?php echo $this->plugin_url.'images/loading_big.gif' ?>" /></span></div>');
776
- jQuery('#saving_soon').height(jQuery(window).height());
777
- //jQuery('#saving_soon').click(function(){jQuery('#saving_soon').remove()});
 
 
778
  generete_slider_images();
779
  generete_radio_input_hidden(jQuery('#page_content_position'));
780
  jQuery.ajax({
@@ -782,21 +785,35 @@ class coming_soon_admin_menu{
782
  url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save' ); ?>",
783
  data: {curent_page:'design',coming_soon_options_nonce:jQuery('#coming_soon_options_nonce').val()<?php foreach($page_parametrs as $key => $value){echo ','.$key.':jQuery("#'.$key.'").val()';} ?>},
784
  }).done(function(date) {
785
- alert(date)
786
- jQuery('#saving_soon').remove();
 
 
 
 
 
 
 
 
 
 
 
 
 
787
  });
788
  });
789
 
790
  jQuery( "#slider-coming_soon_page_content_trasparensy" ).slider({
791
  orientation: "horizontal",
792
  range: "min",
793
- value: <?php echo $page_parametrs['coming_soon_page_content_trasparensy'] ?>,
794
  min: 0,
795
  max: 100,
796
  slide: function( event, ui ) {
797
  jQuery( "#coming_soon_page_content_trasparensy" ).val( ui.value );
798
  }
799
  });
 
800
  jQuery( "#coming_soon_page_content_trasparensy" ).val(jQuery( "#slider-coming_soon_page_content_trasparensy" ).slider( "value" ) );
801
  });
802
  function initial_last_element_functions(element_of_add){
@@ -855,18 +872,20 @@ class coming_soon_admin_menu{
855
  vertical-align: top;
856
  font-family: arial,sans-serif;
857
  }
858
-
859
- </style>
860
- <?php
861
- $mailing_lists=json_decode(stripslashes($page_parametrs['users_mailer']),true);
862
- if($mailing_lists==null)
863
- $mailing_lists=array();
864
- foreach($mailing_lists as $email){
865
- echo "<span class='mail_user'>".$email."</span>";
866
  }
867
- ?><br /><br />
 
 
 
 
 
 
868
  <form method="post" id="coming_soon_options_form_send_mail" action="admin.php?page='<?php echo str_replace( ' ', '-', $this->menu_name); ?>'">
869
- <input type="text" value="" placeholder="Message Title" style="width:400px;" id="massage_title" /><br />
870
  <textarea id="massage_description" placeholder="Message" style="width:400px; height:300px"></textarea><br /><br /><br />
871
  <button type="button" id="send_mailing" class="save_button button button-primary">Send Mail</button>
872
  </form>
@@ -874,16 +893,7 @@ class coming_soon_admin_menu{
874
  <script>
875
  jQuery(document).ready(function(e) {
876
  jQuery('#send_mailing').click(function(){
877
- jQuery('body').prepend('<div id="saving_soon"><span id="loading_text"><img src="<?php echo $this->plugin_url.'images/loading_big.gif' ?>" /></span></div>');
878
- jQuery('#saving_soon').height(jQuery(window).height());
879
- jQuery.ajax({
880
- type:'POST',
881
- url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_send_mail' ); ?>",
882
- data: {massage_description:jQuery('#massage_description').val(),massage_title:jQuery('#massage_title').val()},
883
- }).done(function(date) {
884
- alert(date)
885
- jQuery('#saving_soon').remove();
886
- });
887
  });
888
  });
889
  </script>
@@ -893,7 +903,7 @@ class coming_soon_admin_menu{
893
  public function generete_mailing_live_previev_page(){
894
 
895
  ?>
896
- <iframe src="<?php echo site_url(); ?>/?special_variable_for_live_previev=sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd" width="100%" height="900px"></iframe>
897
  <?php
898
  }
899
 
7
  private $menu_name;
8
  private $databese_parametrs;
9
  private $plugin_url;
10
+ private $text_parametrs;
11
 
12
  function __construct($param){
13
+
14
+ $this->text_parametrs=array(
15
+ 'parametrs_sucsses_saved'=>'Your message was sent successfully.',
16
+ 'error_in_saving'=>'can\'t save "%s" plugin parameter<br>',
17
+ 'get_pro_vrsion_javascript_alert' =>'If you want to use this feature upgrade to Coming soon Pro',
18
+ 'get_pro_version_subtitle' => 'Pro feature!',
19
+
20
+ );
21
+
22
+ $this->menu_name=$param['menu_name']; //get menu name
23
+ $this->databese_parametrs=$param['databese_parametrs']; //databese parametrs
24
+
25
+
26
+ // et plugin url
27
  if(isset($params['plugin_url']))
28
  $this->plugin_url=$params['plugin_url'];
29
  else
30
  $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
31
 
32
+
33
+ //hooks for ajax
34
  add_action( 'wp_ajax_coming_soon_page_save', array($this,'save_in_databese') );
35
  add_action( 'wp_ajax_coming_soon_send_mail', array($this,'sending_mail') );
36
  }
62
  }
63
  return NULL;
64
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
65
  }
66
  public function save_in_databese(){
67
  $kk=1;
71
  update_option($key,$_POST[$key]);
72
  else{
73
  $kk=0;
74
+ printf($this->text_parametrs['error_in_saving'],$key);
75
  }
76
  }
77
  }
78
+ if($kk==0){
79
+ exit;
80
+ }
81
+ die($this->text_parametrs['parametrs_sucsses_saved']);
82
  }
83
 
84
  public function main_menu_function(){
105
  }
106
  </style>
107
  <script>
108
+ var text_of_upgrate_version='<?php echo $this->text_parametrs['get_pro_vrsion_javascript_alert'] ?>';
109
  jQuery(document).ready(function() {
110
+ var link_my_plugin="http://wpdevart.com/wordpress-coming-soon-plugin/"
111
  if (typeof(localStorage) != 'undefined' ) {
112
  active_tab = localStorage.getItem("active_tab");
113
  if(active_tab==link_my_plugin)
195
  <h2 class="nav-tab-wrapper in-page-tab">
196
  <a id="options-group-1-tab" class="nav-tab" title="SEO" href="#options-group-1">General Settings</a>
197
  <a id="options-group-2-tab" class="nav-tab" title="Layout Editor" href="#options-group-2">Design Option</a>
198
+ <a id="options-group-3-tab" class="nav-tab" title="General" href="#options-group-3">Mailing List <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></a>
199
  <a id="options-group-4-tab" class="nav-tab" title="Homepage" href="#options-group-4">Liev Preview</a>
200
+ <a id="options-group-4-tab" class="nav-tab" title="Homepage" href="http://wpdevart.com/wordpress-coming-soon-plugin/"><span style="color: rgba(10, 154, 62, 1); font-weight: bold; font-size: 21px;">Upgrade to Pro Version</span></a>
201
 
202
  </h2>
203
  <div id="optionsframework-metabox" class="metabox-holder">
206
  <div id="options-group-1" class="group general_settings" style="display: none;"><h3>General Settings</h3> <?php $this->generete_general_settings_page($this->generete_parametrs('general')); ?></div>
207
  <div id="options-group-2" class="group design_settings" style="display: none;"><h3>Design Options</h3> <?php $this->generete_design_options_page($this->generete_parametrs('design')); ?></div>
208
  <div id="options-group-3" class="group templates" style="display: none;"><h3>Mailing List</h3><?php $this->generete_mailing_list_options_page($this->generete_parametrs('mailing_list')); ?></div>
209
+ <div id="options-group-4" class="group Homepage" style="display: none;"><h3><span class='pro_subtitle_span'> Please refresh this page to see changes(F5).</span></h3><?php $this->generete_mailing_live_previev_page($this->generete_parametrs('mailing_list')); ?></div>
210
 
211
  </div>
212
  </div>
230
 
231
  <input type="hidden" class="insert_value_this" name="coming_soon_page_mode" id="coming_soon_page_mode" value="<?php echo $page_parametrs['coming_soon_page_mode'] ?>" />
232
  </div>
233
+
234
+ <div class="option_group">
235
+
236
+ <h4 class="option_title">Mailing List <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
237
  <label for="enable_mailing_liston">Enable Mailing List</label>
238
+ <input type="radio" onclick="alert(text_of_upgrate_version); return false;" name="enable_mailing_listradio" id="enable_mailing_liston" value="on" />
239
  <br /><br />
240
  <label for="enable_mailing_listoff">Disable Mailing List</label>
241
+ <input type="radio" onclick="alert(text_of_upgrate_version); return false;" name="enable_mailing_listradio" id="enable_mailing_listoff" value="off" checked="checked"/>
 
 
242
  </div>
243
+
244
  <div class="option_group">
245
+ <h4 class="option_title">Mailing list input text <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
246
+ <input type="text" size="60" onclick="alert(text_of_upgrate_version); return false;" value="Email" id="mailing_list_value_of_emptyt" name="mailing_list_value_of_emptyt" />
247
  </div>
248
+
249
  <div class="option_group">
250
+ <h4 class="option_title">Mailing list send button text <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
251
+ <input type="text" size="60" onclick="alert(text_of_upgrate_version); return false;" value="Send" id="mailing_list_button_value" name="mailing_list_button_value" />
252
  </div>
253
  <div class="option_group">
254
  <h4 class="option_title">Logo</h4>
276
  </div>
277
 
278
  <div class="option_group">
279
+ <h4 class="option_title">Countdown(Timer) <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4><br />
280
  <?php $countdown= json_decode(stripslashes($page_parametrs['coming_soon_page_countdown']), true); ?>
281
+ <input type="text" onclick="alert(text_of_upgrate_version); return false;" placeholder="day" id="coming_soon_page_countdownday" size="6" />
282
+ <input type="text" onclick="alert(text_of_upgrate_version); return false;" placeholder="housrse" id="coming_soon_page_countdownhour" size="6" />
283
+ <input type="text" onclick="alert(text_of_upgrate_version); return false;" placeholder="Start Date" id="coming_soon_page_countdownstart_day" size="12"/>
284
+ <h4 style="margin-top: 26px;" class="option_title">Continue showing Coming soon page after ending date. <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
285
+ <input type="checkbox" onclick="alert(text_of_upgrate_version); return false;" <?php checked($countdown['countedown_on'], "on"); ?> value="on" id="coming_soon_page_countdownstart_on"/>
286
 
287
  <input type="hidden" value='<?php echo stripslashes($page_parametrs['coming_soon_page_countdown']) ?>' id="coming_soon_page_countdown" name="coming_soon_page_countdown" />
288
 
293
  </div>
294
  </div>
295
  <div class="option_group" >
296
+ <h4 class="option_title">Disable coming soon page for this urls <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
297
  <div class="emelent_coming_soon_page_showed_urls">
298
  <input onclick="alert(text_of_upgrate_version); return false" type="text" placeholder="Type Ip URl" value="">
299
  <span class="remove_element remove_element_coming_soon_page_showed_urls"></span>
320
  <h4 class="option_title">Instagram</h4><br />
321
  <input type="text" class="upload" id="coming_soon_page_instagram" name="coming_soon_page_instagram" size="60" value="<?php echo $page_parametrs['coming_soon_page_instagram'] ?>"/>
322
  </div>
323
+ <button type="button" id="save_button" class="save_button button button-primary"><span>Save General Settings</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button>
324
+ <br /><br />
325
+ <span class="error_massage"></span>
326
  <?php wp_nonce_field('coming_soon_options_nonce','coming_soon_options_nonce'); ?>
327
  </form>
 
328
  <script>
329
 
330
 
331
  /////////////// ///////////////
332
  /////////////// MANY INPUTS ///////////////
333
  /////////////// ///////////////
334
+ disablede=false;
335
  var many_inputs={
336
  main_element_for_inserting_element:'no_blocked_ips',
337
  element_name_and_id:'coming_soon_page_showed_ips',
453
  tinymce.get( 'coming_soon_page_page_title').save();
454
  if(tinymce.get( 'coming_soon_page_page_message')!=null)
455
  tinymce.get( 'coming_soon_page_page_message').save()
456
+
457
+ jQuery('#save_button').addClass('padding_loading');
458
+ jQuery("#save_button").prop('disabled', true);
459
+ jQuery('.saving_in_progress').css('display','inline-block');
460
+
461
  jQuery.ajax({
462
  type:'POST',
463
  url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save' ); ?>",
464
  data: {curent_page:'general',coming_soon_options_nonce:jQuery('#coming_soon_options_nonce').val()<?php foreach($page_parametrs as $key => $value){echo ','.$key.':jQuery("#'.$key.'").val()';} ?>},
465
  }).done(function(date) {
466
+ jQuery('.saving_in_progress').css('display','none');
467
+ if(date=='<?php echo $this->text_parametrs['parametrs_sucsses_saved'] ?>'){
468
+ if(jQuery('#live_prev').length){
469
+ jQuery('#live_prev').attr('src',jQuery('#live_prev').attr('src')+'&'+Math.floor((Math.random() * 100000) + 1)+'='+Math.floor((Math.random() * 100000) + 1));
470
+ }
471
+ jQuery('.sucsses_save').css('display','inline-block');
472
+ setTimeout(function(){jQuery('.sucsses_save').css('display','none');jQuery('#save_button').removeClass('padding_loading');jQuery("#save_button").prop('disabled', false);},2500);
473
+
474
+ }
475
+ else{
476
+ jQuery('.error_in_saving').css('display','inline-block');
477
+ jQuery('.error_massage').html(date);
478
+
479
+ }
480
  });
481
  });
482
 
484
  /// for upload
485
  /* set uploader size in resizing*/
486
  jQuery('.upload-button').click(function () {
487
+ if(disablede){disablede=false; alert(text_of_upgrate_version); return false;}
488
  window.parent.uploadID = jQuery(this).prev('input');
489
  /*grab the specific input*/
490
  formfield = jQuery('.upload').attr('name');
514
  jQuery(element).parent().find('.insert_value_this').val(jQuery(element).parent().find('input[type=radio]:checked').val())
515
 
516
  }
517
+
518
  </script>
519
  <?php
520
 
531
  <label for="coming_soon_page_radio_backroundimage">Background Image</label>
532
  <input type="radio" onchange="generete_radio_input(this)" name="coming_soon_page_radio_backroundradio" id="coming_soon_page_radio_backroundimage" value="back_imge" <?php checked($page_parametrs['coming_soon_page_radio_backroun'], "back_imge"); ?> />
533
 
534
+ <label for="coming_soon_page_radio_backroundslider">Background Slider <span style="color:rgba(10, 154, 62, 1); font-weight:bold;">Pro feature!</span></label>
535
  <input type="radio" onclick="alert(text_of_upgrate_version); return false" name="coming_soon_page_radio_backroundradio" />
536
  <input type="hidden" class="insert_design_value_this" name="coming_soon_page_radio_backroun" id="coming_soon_page_radio_backroun" value="<?php echo $page_parametrs['coming_soon_page_radio_backroun'] ?>" />
537
  </div>
575
  </div>
576
 
577
  <div class="option_group">
578
+ <h4 class="option_title">Title Font Size <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
579
  <div id="upload_image">
580
+ <input type="text" onclick="alert(text_of_upgrate_version); return false" class="upload" id="coming_soon_page_page_title_font_size" name="coming_soon_page_page_title_font_size" size="3" value="<?php echo $page_parametrs['coming_soon_page_page_title_font_size'] ?>"/>Px
581
  </div>
582
  </div>
583
 
584
  <div class="option_group">
585
+ <h4 class="option_title">Title Color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
586
+ <div class='disabled_for_pro'>
587
+ <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
588
+ </div>
589
  </div>
590
 
591
  <div class="option_group">
592
+ <h4 class="option_title">Content position <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
593
 
594
  <table class="bws_position_table">
595
  <tbody>
614
  </div>
615
 
616
  <div class="option_group">
617
+ <h4 class="option_title">Coming soon Content background color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
618
+ <div class='disabled_for_pro'>
619
+ <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(255, 255, 255);"></a></div>
620
+ </div>
621
  </div>
622
 
623
  <div class="option_group">
624
+ <h4 class="option_title">Coming page Content background transparency <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
625
+ <input type="text" size="3" name="coming_soon_page_content_trasparensy" onclick="alert(text_of_upgrate_version); return false" value="50" id="coming_soon_page_content_trasparensy" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
626
+ <div style="width:240px" id="slider-coming_soon_page_content_trasparensy" onclick="alert(text_of_upgrate_version); return false" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
627
  <span class="ui-slider-handle ui-state-default ui-corner-all" tabindex="0" style="left: 0%;"></span>
628
  </div>
629
  </div>
630
 
631
  <div class="option_group">
632
+ <h4 class="option_title">Content border radius <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
633
  <div>
634
+ <input type="text" id="page_content_boreder_radius" onclick="alert(text_of_upgrate_version); return false" name="page_content_boreder_radius" size="3" value="8"/>Px
635
  </div>
636
  </div>
637
 
638
 
639
 
640
  <div class="option_group">
641
+ <h4 class="option_title">Countdown button background color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
642
  <div class='disabled_for_pro'>
643
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(61, 168, 204);"></a></div>
644
  </div>
645
  </div>
646
 
647
  <div class="option_group">
648
+ <h4 class="option_title">Countdown text color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
649
  <div class='disabled_for_pro'>
650
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
651
  </div>
652
  </div>
653
  <div class="option_group">
654
+ <h4 class="option_title">Countdown border radius <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
655
  <div>
656
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="8"/>Px
657
  </div>
658
  </div>
659
 
660
  <div class="option_group">
661
+ <h4 class="option_title">Countdown font-size <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
662
  <div>
663
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="30"/>Px
664
  </div>
668
 
669
 
670
  <div class="option_group">
671
+ <h4 class="option_title">Mailing list button background color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
672
  <div class='disabled_for_pro'>
673
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(61, 168, 204);"></a></div>
674
  </div>
675
  </div>
676
  <div class="option_group">
677
+ <h4 class="option_title">Mailing list button text color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
678
  <div class='disabled_for_pro'>
679
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
680
  </div>
681
  </div>
682
  <div class="option_group">
683
+ <h4 class="option_title">Mailing list input text color <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
684
  <div class='disabled_for_pro'>
685
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(0, 0, 0);"></a></div>
686
  </div>
687
  </div>
688
  <div class="option_group">
689
+ <h4 class="option_title">Mailing list button and input font-size <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
690
  <div>
691
  <input type="text" onclick="alert(text_of_upgrate_version); return false" size="3" value="25"/>Px
692
  </div>
693
  </div>
694
  <div class="option_group">
695
+ <h4 class="option_title">Text color that will appear after sending Email. <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
696
  <div class='disabled_for_pro'>
697
  <div class="wp-picker-container"><a tabindex="0" class="wp-color-result" title="Select Color" data-current="Current Color" style="background-color: rgb(255, 255, 255);"></a></div>
698
  </div>
701
 
702
 
703
  <div class="option_group">
704
+ <h4 class="option_title">Facebook button background image <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
705
  <div id="upload_image">
706
+ <input type="text" class="upload" onclick="alert(text_of_upgrate_version); return false" id="social_facbook_bacground_image" name="social_facbook_bacground_image" size="60" value="<?php echo $this->plugin_url.'images/template1/facebook.png' ?>"/>
707
+ <input class="upload-button" onclick="disablede=true;" type="button" value="Upload Image"/>
708
  </div>
709
  </div>
710
 
711
  <div class="option_group">
712
+ <h4 class="option_title">Twitter button background image <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
713
  <div id="upload_image">
714
+ <input type="text" class="upload" onclick="alert(text_of_upgrate_version); return false" id="social_twiter_bacground_image" name="social_twiter_bacground_image" size="60" value="<?php echo $this->plugin_url.'images/template1/twiter.png' ?>"/>
715
+ <input class="upload-button" onclick="disablede=true; " type="button" value="Upload Image"/>
716
  </div>
717
  </div>
718
 
719
  <div class="option_group">
720
+ <h4 class="option_title">Google+ button background image <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
721
  <div id="upload_image">
722
+ <input type="text" class="upload" onclick="alert(text_of_upgrate_version); return false" id="social_google_bacground_image" name="social_google_bacground_image" size="60" value="<?php echo $this->plugin_url.'images/template1/gmail.png' ?>"/>
723
+ <input class="upload-button" onclick="disablede=true;" type="button" value="Upload Image"/>
724
  </div>
725
  </div>
726
 
727
  <div class="option_group">
728
+ <h4 class="option_title">YouTube button background image <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
729
  <div id="upload_image">
730
+ <input type="text" class="upload" onclick="alert(text_of_upgrate_version); return false" id="social_youtobe_bacground_image" name="social_youtobe_bacground_image" size="60" value="<?php echo $this->plugin_url.'images/template1/youtobe.png' ?>"/>
731
+ <input class="upload-button" onclick="disablede=true; return false" type="button" value="Upload Image"/>
732
  </div>
733
  </div>
734
 
735
  <div class="option_group">
736
+ <h4 class="option_title">Instagram button background image <span class='pro_subtitle_span'><?php echo $this->text_parametrs['get_pro_version_subtitle'] ?></span></h4>
737
  <div id="upload_image">
738
+ <input type="text" class="upload" onclick="alert(text_of_upgrate_version); return false;" id="social_instagram_bacground_image" name="social_instagram_bacground_image" size="60" value="<?php echo $this->plugin_url.'images/template1/instagram.png' ?>"/>
739
+ <input class="upload-button" type="button" onclick="disablede=true; return false" value="Upload Image"/>
740
  </div>
741
  </div>
742
 
743
+ <button type="button" id="save_button_design" class="save_button button button-primary"><span>Save Design Settings</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button>
744
+ <br /><br />
745
+ <span class="error_massage"></span>
746
  <?php wp_nonce_field('coming_soon_options_nonce','coming_soon_options_nonce'); ?>
747
  </form>
748
  <script>
750
 
751
 
752
  jQuery('.add_upload_image_button').click(function(){
753
+
754
  jQuery('.slider_images_div').eq(jQuery('.slider_images_div').length-1).after(jQuery('<div class="slider_images_div"><br><input type="text" class="upload_many_images" size="60" value=""/><input class="upload-button button button-primary" type="button" value="Upload Image"/><input class="remove_upload_image" type="button" value="Remove"/></div>'))
755
  initial_last_element_functions(this);
756
  })
773
  })
774
  generete_radio_input(jQuery('#coming_soon_page_radio_backroundcolor'));
775
  jQuery('#save_button_design').click(function(){
776
+
777
+ jQuery('#save_button_design').addClass('padding_loading');
778
+ jQuery("#save_button_design").prop('disabled', true);
779
+ jQuery('.saving_in_progress').css('display','inline-block');
780
+
781
  generete_slider_images();
782
  generete_radio_input_hidden(jQuery('#page_content_position'));
783
  jQuery.ajax({
785
  url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save' ); ?>",
786
  data: {curent_page:'design',coming_soon_options_nonce:jQuery('#coming_soon_options_nonce').val()<?php foreach($page_parametrs as $key => $value){echo ','.$key.':jQuery("#'.$key.'").val()';} ?>},
787
  }).done(function(date) {
788
+ if(jQuery('#live_prev').length){
789
+ jQuery('#live_prev').attr('src',jQuery('#live_prev').attr('src')+'&'+Math.floor((Math.random() * 100000) + 1)+'='+Math.floor((Math.random() * 100000) + 1));
790
+ }
791
+ if(date=='<?php echo $this->text_parametrs['parametrs_sucsses_saved'] ?>'){
792
+ jQuery('.saving_in_progress').css('display','none');
793
+ jQuery('.sucsses_save').css('display','inline-block');
794
+ setTimeout(function(){jQuery('.sucsses_save').css('display','none');jQuery('#save_button_design').removeClass('padding_loading');jQuery("#save_button_design").prop('disabled', false);},2500);
795
+ }else{
796
+ jQuery('.saving_in_progress').css('display','none');
797
+ jQuery('#coming_soon_options_form .error_in_saving').css('display','inline-block');
798
+ jQuery('#coming_soon_options_form .error_massage').css('display','inline-block');
799
+ jQuery('#coming_soon_options_form .error_massage').html(date);
800
+ setTimeout(function(){jQuery('#coming_soon_options_form .error_massage').css('display','none');jQuery('#coming_soon_options_form .error_in_saving').css('display','none');jQuery('#save_button_design').removeClass('padding_loading');jQuery("#save_button_design").prop('disabled', false);},5000);
801
+ }
802
+
803
  });
804
  });
805
 
806
  jQuery( "#slider-coming_soon_page_content_trasparensy" ).slider({
807
  orientation: "horizontal",
808
  range: "min",
809
+ value: 55,
810
  min: 0,
811
  max: 100,
812
  slide: function( event, ui ) {
813
  jQuery( "#coming_soon_page_content_trasparensy" ).val( ui.value );
814
  }
815
  });
816
+
817
  jQuery( "#coming_soon_page_content_trasparensy" ).val(jQuery( "#slider-coming_soon_page_content_trasparensy" ).slider( "value" ) );
818
  });
819
  function initial_last_element_functions(element_of_add){
872
  vertical-align: top;
873
  font-family: arial,sans-serif;
874
  }
875
+
876
+ .maili_upgarete{
877
+ display:block;
878
+ text-decoration:none;
 
 
 
 
879
  }
880
+ </style>
881
+
882
+
883
+ </style>
884
+ <br /><br />
885
+ <a class='maili_upgarete' href="http://wpdevart.com/wordpress-coming-soon-plugin/"><span style="color: rgba(10, 154, 62, 1); font-weight: bold; font-size: 21px;">Upgrade to Pro Version</span></a>
886
+ <br />
887
  <form method="post" id="coming_soon_options_form_send_mail" action="admin.php?page='<?php echo str_replace( ' ', '-', $this->menu_name); ?>'">
888
+ <input type="text" value="" placeholder="Message Title" style="width:400px;" id="massage_title" /><br /><br />
889
  <textarea id="massage_description" placeholder="Message" style="width:400px; height:300px"></textarea><br /><br /><br />
890
  <button type="button" id="send_mailing" class="save_button button button-primary">Send Mail</button>
891
  </form>
893
  <script>
894
  jQuery(document).ready(function(e) {
895
  jQuery('#send_mailing').click(function(){
896
+ alert(text_of_upgrate_version);
 
 
 
 
 
 
 
 
 
897
  });
898
  });
899
  </script>
903
  public function generete_mailing_live_previev_page(){
904
 
905
  ?>
906
+ <iframe id="live_prev" src="<?php echo site_url(); ?>/?special_variable_for_live_previev=sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd" width="100%" height="900px"></iframe>
907
  <?php
908
  }
909
 
includes/front_end.php CHANGED
@@ -28,15 +28,8 @@ class coming_soon_front_end{
28
  $param_name='design';
29
  foreach($this->databese_parametrs[$param_name] as $key => $value){
30
  $front_end_parametrs[$key]=get_option($key,$value);
31
- }
32
- $param_name='mailing_list';
33
- foreach($this->databese_parametrs[$param_name] as $key => $value){
34
- $front_end_parametrs[$key]=get_option($key,$value);
35
- }
36
-
37
  return $front_end_parametrs;
38
-
39
-
40
 
41
  }
42
  public function save_mailing_list(){
@@ -68,55 +61,6 @@ class coming_soon_front_end{
68
  }
69
  die();
70
  }
71
- private function get_real_ip() {
72
- if (!empty($_SERVER['HTTP_CLIENT_IP'])) //check ip from share internet
73
- {
74
- $ip=$_SERVER['HTTP_CLIENT_IP'];
75
- }
76
- elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) //to check ip is pass from proxy
77
- {
78
- $ip=$_SERVER['HTTP_X_FORWARDED_FOR'];
79
- }
80
- else
81
- {
82
- $ip=$_SERVER['REMOTE_ADDR'];
83
- }
84
- return $ip;
85
- }
86
- private function getCurrentURL(){
87
- $currentURL = (@$_SERVER["HTTPS"] == "on") ? "https://" : "http://";
88
- $currentURL .= $_SERVER["SERVER_NAME"];
89
-
90
- if($_SERVER["SERVER_PORT"] != "80" && $_SERVER["SERVER_PORT"] != "443")
91
- {
92
- $currentURL .= ":".$_SERVER["SERVER_PORT"];
93
- }
94
-
95
- $currentURL .= $_SERVER["REQUEST_URI"];
96
- return $currentURL;
97
- }
98
- private function if_time_is_pass(){
99
-
100
- $countdown= json_decode(stripslashes($this->params['coming_soon_page_countdown']), true);
101
- if($countdown['countedown_on']=='on'){
102
- if((isset($countdown['hours']) && isset($countdown['days']) && isset($countdown['start_day'])) && (($countdown['hours'] || $countdown['days']) && $countdown['start_day'])){
103
- $start_time=explode('/',$countdown['start_day']);
104
- $time_diferent=mktime(0,0,0, $start_time[1],$start_time[0],$start_time[2])+$countdown['days']*3600*24+$countdown['hours']*3600-mktime(date("H"), date('i'), date("s"), date("n"), date("j"), date("Y"));
105
- $day_left=(int)($time_diferent/(3600*24));
106
- $hourse_left=(int)(($time_diferent-$day_left*24*3600)/(3600));
107
- $minuts_left=(int)(($time_diferent-$day_left*24*3600-$hourse_left*3600)/(60));
108
- $seconds_left=(int)(($time_diferent-$day_left*24*3600-$hourse_left*3600 - $minuts_left*60));
109
- }
110
- else{
111
- return false;
112
- }
113
- if(($day_left<=0 && $hourse_left<=0 && $minuts_left<=0 && $seconds_left<=0)){
114
- return false;
115
- }
116
- }
117
- return true;
118
-
119
- }
120
  public function create_fornt_end(){
121
  if($this->params['coming_soon_page_mode']=='on'){
122
  if(!is_feed())
@@ -125,9 +69,9 @@ class coming_soon_front_end{
125
  $ips=json_decode(stripslashes($this->params['coming_soon_page_showed_ips']), true);
126
  if(!$ips)
127
  $ips=array();
128
- $in_range= in_array($this->get_real_ip(), $ips);
129
 
130
- if ( (!is_user_logged_in() && !$in_range && $this->if_time_is_pass()) || (isset($_GET['special_variable_for_live_previev']) && $_GET['special_variable_for_live_previev']=='sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd') )
 
131
  {
132
 
133
  //get path of our coming soon display page and redirecting
@@ -143,346 +87,110 @@ class coming_soon_front_end{
143
  }
144
 
145
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
146
 
147
  public function generete_front_end_html(){
148
  ?>
149
- <!DOCTYPE html>
150
- <html lang="en">
151
- <head>
152
- <meta charset="utf-8">
153
- <title><?php bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); ?> </title>
154
- <meta name="viewport" content="width=device-width" />
155
- <meta name="viewport" content="initial-scale=1.0" />
156
- <meta name="description" content="<?php echo $this->params['coming_soon_page_meta_description']; ?>">
157
- <meta name="keywords" content="<?php echo $this->params['coming_soon_page_meta_keywords']; ?>">
158
-
159
- <?php wp_print_scripts('jquery'); ?>
160
-
161
- <style>
162
- #title_style h1{
163
- font-size:<?php echo $this->params['coming_soon_page_page_title_font_size']; ?>px;
164
- color:<?php echo $this->params['coming_soon_page_page_title_color']; ?>;
165
- font-size: 55px;
166
- padding: 0px;
167
- margin: 5px 0px 5px 0px;
168
- }
169
- #descrip{
170
- margin: 5px 0px 5px 0px;
171
- }
172
- .soc_icon_coneiner{
173
- display:inline-block;
174
- margin-top:2%;
175
- width: 100%;
176
- }
177
- .soc_icon_coneiner .soc_icon{
178
- width: 7%;
179
- display: inline-block;
180
- margin-left: 3%;
181
- margin-right: 3%;
182
- }
183
-
184
- .soc_icon_coneiner .soc_icon img{
185
- width:100%;
186
- max-height:82px;
187
- }
188
- .countdown > div{
189
- margin-top:2%;
190
- float:left;
191
- color:#fff;
192
- font-size:48px;
193
- font-weight:bold;
194
- }
195
- .element_conteiner{
196
- width:150px;
197
- margin-left:4.3%;
198
- display: inline-block;
199
-
200
- }
201
- .time_left{
202
- border:none;
203
- border-radius:8px;
204
- background-color:#3DA8CC;
205
- font-size:30px;
206
- color:#000000;
207
- padding-bottom: 4%;
208
- padding-top: 5%;
209
- padding-left: 25%;
210
- padding-right: 25%;
211
- font-weight:bold;
212
- font-family: monospace;
213
-
214
- }
215
- .time_description{
216
- margin-top:6px;
217
- margin-bottom:6px;
218
- font-size:25px;
219
- color:#000000;
220
- font-weight:bold;
221
- font-family: monospace;
222
- }
223
- .information{
224
- background: rgba(<?php echo hexdec(substr($this->params['coming_soon_page_content_bg_color'],1, 2)); ?>,<?php echo hexdec(substr($this->params['coming_soon_page_content_bg_color'],3, 2)); ?>,<?php echo hexdec(substr($this->params['coming_soon_page_content_bg_color'],5, 2)); ?>,<?php echo 1-($this->params['coming_soon_page_content_trasparensy']/100) ?>);
225
- border-radius:<?php echo $this->params['page_content_boreder_radius'] ?>px;
226
- width: 51%;
227
- /*height:71.5%;*/
228
- display:inline-block;
229
- z-index:999999;
230
- max-width:750px;
231
- width:100%;
232
- }
233
-
234
- .information #logo img{
235
- max-height:210px;
236
- }
237
- body{
238
-
239
- <?php switch($this->params['coming_soon_page_radio_backroun']){
240
-
241
- case 'back_color' :
242
- echo 'background-color:'.$this->params['coming_soon_page_background_color'];
243
- break;
244
- case 'back_imge' :
245
- echo 'background:url("'.$this->params['coming_soon_page_background_img'].'") no-repeat center center fixed;';
246
- break;
247
- case 'back_slider' :
248
- break;
249
- } ?>
250
-
251
- -webkit-background-size: cover;
252
- -moz-background-size: cover;
253
- -o-background-size: cover;
254
- background-size: cover;
255
-
256
-
257
- }
258
- <?php
259
- -
260
- $aligment_position='text-align:center;
261
- vertical-align:middle;';
262
- ?>
263
- #main_inform_div{
264
- display:table;
265
- padding:10px;
266
- }
267
- .aligment{
268
- display:table-cell;
269
- <?php echo $aligment_position; ?>
270
- width: 10%;
271
- }
272
- .user_mail_options{
273
-
274
- }
275
- #user_email{
276
- font-size:25px;
277
- border-radius:8px;
278
- color:#000000;
279
- width: 90%;
280
- max-width: 350px;
281
- padding-left:8px;
282
- padding-top: 6px;
283
- padding-bottom: 3px;
284
- font-family: monospace;
285
- }
286
- .information_user{
287
- margin-top:10px;
288
- color:#FFFFFF;
289
- font-size:25px;
290
- font-weight:bold;
291
- }
292
- #Send_mail_button{
293
- cursor:pointer;
294
- margin-top:8px;
295
- border:none;
296
- border-radius:8px;
297
- background-color:#3DA8CC;
298
- font-size:25px;
299
- color:#000000;
300
- padding-bottom: 5px;
301
- padding-top: 7px;
302
- padding-left: 12px;
303
- padding-right: 12px;
304
- font-weight:bold;
305
- font-family: monospace;
306
- }
307
-
308
- #slider{
309
- left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 680px; width: 1903px; z-index: -999999; position: fixed;
310
- }
311
- </style>
312
- </head>
313
- <body>
314
-
315
- <div id="main_inform_div">
316
  <span class="aligment">
317
- <div class="information">
318
- <center>
319
- <div id="logo" >
320
- <img src="<?php echo stripslashes($this->params['coming_soon_page_page_logo']); ?>" />
321
- </div>
322
- <?php if($this->params['coming_soon_page_page_title']){ ?>
323
  <div id="title_style" >
324
- <h1><?php echo stripslashes($this->params['coming_soon_page_page_title']) ?></h1>
325
  </div>
 
 
 
 
 
 
 
 
 
 
 
326
  <?php } ?>
327
- <div id="descrip" >
328
- <?php echo stripslashes($this->params['coming_soon_page_page_message']) ?>
329
- </div>
330
- <?php $countdown= json_decode(stripslashes($this->params['coming_soon_page_countdown']), true);
331
- if((isset($countdown['hours']) && isset($countdown['days']) && isset($countdown['start_day'])) && (($countdown['hours'] || $countdown['days']) && $countdown['start_day'])){
332
- $start_time=explode('/',$countdown['start_day']);
333
- $time_diferent=mktime(0,0,0, $start_time[1],$start_time[0],$start_time[2])+$countdown['days']*3600*24+$countdown['hours']*3600-mktime(date("H"), date('i'), date("s"), date("n"), date("j"), date("Y"));
334
- $day_left=(int)($time_diferent/(3600*24));
335
- $hourse_left=(int)(($time_diferent-$day_left*24*3600)/(3600));
336
- $minuts_left=(int)(($time_diferent-$day_left*24*3600-$hourse_left*3600)/(60));
337
- $seconds_left=(int)(($time_diferent-$day_left*24*3600-$hourse_left*3600 - $minuts_left*60));
338
-
339
- if(!($day_left<=0 && $hourse_left<=0 && $minuts_left<=0 && $seconds_left<=0)){
340
- ?>
341
-
342
- <div class="countdown">
343
- <span class="element_conteiner"><button disabled id="days" class="time_left"><?php echo $day_left; ?></button><div class="time_description">Days</div></span>
344
- <span class="element_conteiner"><button disabled id="hourse" class="time_left"><?php echo $hourse_left; ?></button><div class="time_description">Hours</div></span>
345
- <span class="element_conteiner"><button disabled id="minutes" class="time_left"><?php echo $minuts_left; ?></button><div class="time_description">Minutes</div></span>
346
- <span class="element_conteiner"><button disabled id="secondes" class="time_left"><?php echo $seconds_left; ?></button><div class="time_description">Seconds</div></span>
347
- </div>
348
-
349
- <?php } } ?>
350
- <div style="clear:both"></div>
351
-
352
- <?php if($this->params['enable_mailing_list']=='on') { ?>
353
- <div class="user_mail">
354
-
355
- <div class="user_mail_options">
356
- <input type="text" placeholder="<?php echo $this->params['mailing_list_value_of_emptyt'] ?>" name="email" id="user_email">
357
- <button type="button" id="Send_mail_button" class="Send_mail_button button button-primary"><?php echo $this->params['mailing_list_button_value'] ?></button>
358
- <div id="user_loading_and_saving"></div>
359
- </div>
360
-
361
-
362
- </div><?php } ?>
363
- <div style="clear:both"></div>
364
-
365
- <div class="soc_icon_coneiner">
366
- <?php if($this->params['coming_soon_page_facebook']){ ?>
367
- <span class="soc_icon">
368
- <a href="<?php $this->params['coming_soon_page_facebook']; ?>"><img src="<?php echo $this->params['social_facbook_bacground_image']; ?>" /></a>
369
- </span>
370
- <?php } ?>
371
- <?php if($this->params['coming_soon_page_twitter']){ ?>
372
- <span class="soc_icon">
373
- <a href="<?php $this->params['coming_soon_page_twitter']; ?>"><img src="<?php echo $this->params['social_twiter_bacground_image']; ?>" /></a>
374
- </span>
375
- <?php } ?>
376
- <?php if($this->params['coming_soon_page_google_plus']){ ?>
377
- <span class="soc_icon">
378
- <a href="<?php $this->params['coming_soon_page_google_plus']; ?>"><img src="<?php echo $this->params['social_google_bacground_image']; ?>" /></a>
379
- </span>
380
- <?php } ?>
381
- <?php if($this->params['coming_soon_page_youtube']){ ?>
382
- <span class="soc_icon">
383
- <a href="<?php $this->params['coming_soon_page_youtube']; ?>"><img src="<?php echo $this->params['social_youtobe_bacground_image']; ?>" /></a>
384
- </span>
385
- <?php } ?>
386
- <?php if($this->params['coming_soon_page_instagram']){ ?>
387
- <span class="soc_icon">
388
- <a href="<?php $this->params['coming_soon_page_instagram']; ?>"><img src="<?php echo $this->params['social_instagram_bacground_image']; ?>" /></a>
389
- </span>
390
- <?php } ?>
391
-
392
-
393
-
394
-
395
- </div>
396
- </center>
397
  </div>
398
- </span>
399
- </div>
400
- </div>
401
-
402
- <script type="text/javascript">
403
-
404
- function backgroun_custom_sizes(){
405
- /*with_of_window=jQuery(window).width()
406
- heigth_of_window=jQuery(window).height()
407
- if((with_of_window*1920/1080)<heigth_of_window){
408
- jQuery('body').css('background-size', with_of_window+'px'+' auto')
409
- }else{
410
- jQuery('body').css('background-size','auto '+ heigth_of_window+'px')
411
- } */
412
- }
413
-
414
- jQuery(window).resize(function(){
415
- jQuery('#main_inform_div').css('height',jQuery(window).height()-28);
416
- jQuery('#main_inform_div').width(jQuery(window).width()-28);
417
- /* jQuery('body *').each(function(index, element) {
418
- initial_width=1920;
419
- curent_width=jQuery(window).width();
420
- kaifcent=curent_width/initial_width;
421
- jQuery(this).css("font-size", "")
422
- if(parseInt(jQuery(this).css('font-size'))){
423
- jQuery(this).css('font-size',parseInt(jQuery(this).css('font-size'))*kaifcent+'px')
424
- }
425
- }); */
426
- backgroun_custom_sizes();
427
-
428
-
429
- });
430
-
431
-
432
- jQuery(document).ready(function(e) {
433
- backgroun_custom_sizes();
434
- if(jQuery('#days').length>=1){
435
- setInterval(timer_coming_soon,1000)
436
- }
437
- /*jQuery('body *').each(function(index, element) {
438
- initial_width=1920;
439
- curent_width=jQuery(window).width();
440
- kaifcent=curent_width/initial_width;
441
- jQuery(this).css("font-size", "")
442
- if(parseInt(jQuery(this).css('font-size'))){
443
- jQuery(this).css('font-size',parseInt(jQuery(this).css('font-size'))*kaifcent+'px')
444
- }
445
- });*/
446
- jQuery('#main_inform_div').css('height',jQuery(window).height()-28);
447
- jQuery('#main_inform_div').width(jQuery(window).width()-28);
448
- main_inform_div
449
- jQuery('#Send_mail_button').click(function(){
450
- jQuery('#user_loading_and_saving').html('<img width="35px" src="<?php echo $this->plugin_url.'images/loading.gif' ?>" />')
451
- jQuery.ajax({
452
- type:'POST',
453
- url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_page_save_user_mail' ); ?>",
454
- data: {user_email:jQuery('#user_email').val()}
455
- }).done(function(date) {
456
- jQuery('#user_loading_and_saving').html(date);
457
- jQuery('#saving_soon').remove();
458
- });
459
- })
460
- });
461
- function timer_coming_soon(){
462
- var days_left=parseInt(jQuery('#days').text());
463
- var hours_left=parseInt(jQuery('#hourse').text());;
464
- var minutes_left=parseInt(jQuery('#minutes').text());;
465
- var secondes_left=parseInt(jQuery('#secondes').text());;
466
- var all_time=days_left*24*3600+hours_left*3600+minutes_left*60+secondes_left;
467
- all_time--;
468
- days_left=parseInt(all_time/(3600*24));
469
- hours_left=parseInt((all_time-days_left*3600*24)/(3600));
470
- minutes_left=parseInt((all_time-days_left*3600*24-hours_left*3600)/(60));
471
- secondes_left=parseInt((all_time-days_left*3600*24-hours_left*3600-minutes_left*60));
472
- jQuery('#days').html(days_left);
473
- jQuery('#hourse').html(hours_left);
474
- jQuery('#minutes').html(minutes_left);
475
- jQuery('#secondes').html(secondes_left);
476
- if(days_left<=0 && hours_left<=0 && minutes_left<=0 && secondes_left<=0){
477
- window.location="<?php echo site_url(); ?>"
478
- }
479
- }
480
-
481
-
482
-
483
- </script>
484
- </body>
485
- </html>
486
  <?php
487
 
488
  }
28
  $param_name='design';
29
  foreach($this->databese_parametrs[$param_name] as $key => $value){
30
  $front_end_parametrs[$key]=get_option($key,$value);
31
+ }
 
 
 
 
 
32
  return $front_end_parametrs;
 
 
33
 
34
  }
35
  public function save_mailing_list(){
61
  }
62
  die();
63
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
64
  public function create_fornt_end(){
65
  if($this->params['coming_soon_page_mode']=='on'){
66
  if(!is_feed())
69
  $ips=json_decode(stripslashes($this->params['coming_soon_page_showed_ips']), true);
70
  if(!$ips)
71
  $ips=array();
 
72
 
73
+
74
+ if ( (!is_user_logged_in()) || (isset($_GET['special_variable_for_live_previev']) && $_GET['special_variable_for_live_previev']=='sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd') )
75
  {
76
 
77
  //get path of our coming soon display page and redirecting
87
  }
88
 
89
  }
90
+
91
+ // generet front end dinamic style
92
+
93
+ private function generete_front_styles(){
94
+ ?>
95
+ <style>
96
+ #title_style h1{
97
+ font-size:<?php echo $this->params['coming_soon_page_page_title_font_size']; ?>px;
98
+ color:<?php echo $this->params['coming_soon_page_page_title_color']; ?>;
99
+ }
100
+ body{
101
+ <?php switch($this->params['coming_soon_page_radio_backroun']){
102
+
103
+ case 'back_color' :
104
+ echo 'background-color:'.$this->params['coming_soon_page_background_color'];
105
+ break;
106
+ case 'back_imge' :
107
+ echo 'background:url("'.$this->params['coming_soon_page_background_img'].'") no-repeat center center fixed;';
108
+ break;
109
+ case 'back_slider' :
110
+ break;
111
+ } ?>;
112
+ }
113
+ <?php
114
+ $aligment_position='text-align:center;
115
+ vertical-align:middle;';
116
+ ?>
117
+ .aligment{
118
+ <?php echo $aligment_position; ?>
119
+ }
120
+ </style>
121
+ <?php
122
+ }
123
 
124
  public function generete_front_end_html(){
125
  ?>
126
+ <!DOCTYPE html>
127
+ <html lang="en">
128
+ <head>
129
+ <meta charset="utf-8">
130
+ <title><?php bloginfo( 'name' ); $site_description = get_bloginfo( 'description' ); ?> </title>
131
+ <meta name="viewport" content="width=device-width" />
132
+ <meta name="viewport" content="initial-scale=1.0" />
133
+ <meta name="description" content="<?php echo $this->params['coming_soon_page_meta_description']; ?>">
134
+ <meta name="keywords" content="<?php echo $this->params['coming_soon_page_meta_keywords']; ?>">
135
+ <?php wp_print_scripts('jquery');
136
+ wp_print_scripts('coming-soon-script');
137
+ wp_print_styles('coming-soon-style');
138
+ $this->generete_front_styles();
139
+ ?>
140
+
141
+ </head>
142
+ <body>
143
+ <div id="main_inform_div">
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
144
  <span class="aligment">
145
+ <div class="information">
146
+ <center>
147
+ <div id="logo" >
148
+ <img src="<?php echo stripslashes($this->params['coming_soon_page_page_logo']); ?>" />
149
+ </div>
150
+ <?php if($this->params['coming_soon_page_page_title']){ ?>
151
  <div id="title_style" >
152
+ <h1><?php echo stripslashes($this->params['coming_soon_page_page_title']) ?></h1>
153
  </div>
154
+ <?php } ?>
155
+ <div id="descrip" >
156
+ <?php echo stripslashes($this->params['coming_soon_page_page_message']) ?>
157
+ </div>
158
+ <div style="clear:both"></div>
159
+
160
+ <div class="soc_icon_coneiner">
161
+ <?php if($this->params['coming_soon_page_facebook']){ ?>
162
+ <span class="soc_icon">
163
+ <a href="<?php echo $this->params['coming_soon_page_facebook']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/facebook.png' ?>" /></a>
164
+ </span>
165
  <?php } ?>
166
+ <?php if($this->params['coming_soon_page_twitter']){ ?>
167
+ <span class="soc_icon">
168
+ <a href="<?php echo $this->params['coming_soon_page_twitter']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/twiter.png'; ?>" /></a>
169
+ </span>
170
+ <?php } ?>
171
+ <?php if($this->params['coming_soon_page_google_plus']){ ?>
172
+ <span class="soc_icon">
173
+ <a href="<?php echo $this->params['coming_soon_page_google_plus']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/gmail.png'; ?>" /></a>
174
+ </span>
175
+ <?php } ?>
176
+ <?php if($this->params['coming_soon_page_youtube']){ ?>
177
+ <span class="soc_icon">
178
+ <a href="<?php echo $this->params['coming_soon_page_youtube']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/youtobe.png'; ?>" /></a>
179
+ </span>
180
+ <?php } ?>
181
+ <?php if($this->params['coming_soon_page_instagram']){ ?>
182
+ <span class="soc_icon">
183
+ <a href="<?php echo $this->params['coming_soon_page_instagram']; ?>"><img src="<?php echo $this->plugin_url.'images/template1/instagram.png'; ?>" /></a>
184
+ </span>
185
+ <?php } ?>
186
+ </div>
187
+ </center>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
188
  </div>
189
+ </span>
190
+ </div>
191
+ </div>
192
+ </body>
193
+ </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
194
  <?php
195
 
196
  }
includes/install_database.php CHANGED
@@ -18,15 +18,11 @@ class install_database{
18
  $this->installed_options=array(
19
  "general"=>array(
20
  "coming_soon_page_mode" => "off",
21
- "enable_mailing_list" => "on",
22
- "mailing_list_value_of_emptyt" => "Email",
23
- "mailing_list_button_value" => "Send",
24
  "coming_soon_page_page_logo" => $this->plugin_url.'images/template1/logo.png',
25
  "coming_soon_page_page_title" => "Coming Soon Page",
26
  "coming_soon_page_page_message" => "<span style=\"font-size: 30px;\">We will be back soon. View some useful information on our coming soon page, share it with friends</span><br><br>",
27
  "coming_soon_page_meta_keywords" => "",
28
  "coming_soon_page_meta_description" => "",
29
- "coming_soon_page_countdown" => '{"days":"99","hours":"10","start_day":"22/10/2014","countedown_on":"on"}',
30
  "coming_soon_page_showed_ips" => "",
31
  "coming_soon_page_facebook" => "",
32
  "coming_soon_page_twitter" => "",
@@ -39,22 +35,7 @@ class install_database{
39
  "coming_soon_page_radio_backroun" => "back_imge",
40
  "coming_soon_page_background_img" => $this->plugin_url.'images/template1/background.jpg',
41
  "coming_soon_page_background_color" => "#cacaca",
42
- "coming_soon_page_page_title_color" => "#000000",
43
- "coming_soon_page_page_title_font_size" => "55",
44
-
45
- "coming_soon_page_content_trasparensy" => "55",
46
- "coming_soon_page_content_bg_color" => "#FFFFFF",
47
- "page_content_position" => "center-middle",
48
- "page_content_boreder_radius" => "8",
49
-
50
-
51
-
52
-
53
- "social_facbook_bacground_image" => $this->plugin_url.'images/template1/facebook.png',
54
- "social_twiter_bacground_image" => $this->plugin_url.'images/template1/twiter.png',
55
- "social_google_bacground_image" => $this->plugin_url.'images/template1/gmail.png',
56
- "social_youtobe_bacground_image" => $this->plugin_url.'images/template1/youtobe.png',
57
- "social_instagram_bacground_image" => $this->plugin_url.'images/template1/instagram.png',
58
  ),
59
  "mailing_list"=>array(
60
  "users_mailer" => "",
18
  $this->installed_options=array(
19
  "general"=>array(
20
  "coming_soon_page_mode" => "off",
 
 
 
21
  "coming_soon_page_page_logo" => $this->plugin_url.'images/template1/logo.png',
22
  "coming_soon_page_page_title" => "Coming Soon Page",
23
  "coming_soon_page_page_message" => "<span style=\"font-size: 30px;\">We will be back soon. View some useful information on our coming soon page, share it with friends</span><br><br>",
24
  "coming_soon_page_meta_keywords" => "",
25
  "coming_soon_page_meta_description" => "",
 
26
  "coming_soon_page_showed_ips" => "",
27
  "coming_soon_page_facebook" => "",
28
  "coming_soon_page_twitter" => "",
35
  "coming_soon_page_radio_backroun" => "back_imge",
36
  "coming_soon_page_background_img" => $this->plugin_url.'images/template1/background.jpg',
37
  "coming_soon_page_background_color" => "#cacaca",
38
+
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
39
  ),
40
  "mailing_list"=>array(
41
  "users_mailer" => "",
includes/javascript/front_end_js.js ADDED
@@ -0,0 +1,17 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ jQuery(window).resize(function(){
2
+ jQuery('#main_inform_div').css('height',jQuery(window).height()-28);
3
+ jQuery('body').css('height',jQuery(window).height()-28);
4
+ jQuery('#main_inform_div').width(jQuery(window).width()-28);
5
+ });
6
+ jQuery(document).ready(function(e) {
7
+ jQuery('#main_inform_div').css('height',jQuery(window).height()-28);
8
+ jQuery('body').css('height',jQuery(window).height()-28);
9
+ jQuery('#main_inform_div').width(jQuery(window).width()-28);
10
+
11
+ if(jQuery('#days').length>=1){
12
+ setInterval(timer_coming_soon,1000)
13
+ }
14
+
15
+ jQuery('#main_inform_div').css('height',jQuery(window).height()-28);
16
+ jQuery('#main_inform_div').width(jQuery(window).width()-28);
17
+ });
includes/style/admin-style.css CHANGED
@@ -31,20 +31,23 @@
31
  margin-left: -20px;
32
  }
33
  #save_button,#send_mailing{
34
- margin-left:20px;
35
- font-size:25px;
36
- font-weight:bold;
37
- padding-top:12px;
38
- padding-bottom:12px;
39
- height:auto;
 
 
 
40
  }
41
  #save_button_design{
42
- margin-left:20px;
43
- font-size:25px;
44
- font-weight:bold;
45
- padding-top:12px;
46
- padding-bottom:12px;
47
- height:auto;
48
  }
49
  .emelent_coming_soon_page_showed_urls input{
50
  width:600px;
@@ -54,4 +57,69 @@
54
  }
55
  .remove_upload_image{
56
  margin-left:5px !important;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
57
  }
31
  margin-left: -20px;
32
  }
33
  #save_button,#send_mailing{
34
+ margin-left: 20px;
35
+ font-size: 18px;
36
+ font-weight: bold;
37
+ padding-top: 8px;
38
+ padding-bottom: 8px;
39
+ height: auto;
40
+ }
41
+ #send_mailing{
42
+ margin-left:0px;
43
  }
44
  #save_button_design{
45
+ margin-left: 20px;
46
+ font-size: 18px;
47
+ font-weight: bold;
48
+ padding-top: 8px;
49
+ padding-bottom: 8px;
50
+ height: auto;
51
  }
52
  .emelent_coming_soon_page_showed_urls input{
53
  width:600px;
57
  }
58
  .remove_upload_image{
59
  margin-left:5px !important;
60
+ }
61
+ .pro_subtitle_span{
62
+ color:rgba(10, 154, 62, 1);
63
+ }
64
+
65
+
66
+ /*********Ssve Button***********/
67
+
68
+ button{
69
+ webkit-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
70
+ -moz-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
71
+ -ms-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
72
+ -o-transition: 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
73
+ transition:0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) all !important;
74
+ }
75
+ #save_button,#save_button_design{
76
+ width: 210px;
77
+ text-align: left;
78
+ overflow:hidden;
79
+ }
80
+ #save_button_design{
81
+ width: 200px;
82
+ }
83
+ .padding_loading{
84
+ width: 250px !important;
85
+ }
86
+ #save_button_design.padding_loading{
87
+ width: 240px !important;
88
+
89
+ }
90
+ .saving_in_progress{
91
+ position: relative;
92
+ display:none;
93
+ width: 20px;
94
+ height: 20px;
95
+ margin-left: 12px;
96
+ top: 4px;
97
+ background-image: url(../../images/loading.gif);
98
+ background-size:100% 100%;
99
+ }
100
+ .sucsses_save{
101
+ position: relative;
102
+ display:none;
103
+ width: 20px;
104
+ height: 20px;
105
+ margin-left: 12px;
106
+ top: 4px;
107
+ background-image: url(../../images/success.png);
108
+ background-size:100% 100%;
109
+ }
110
+ .error_in_saving{
111
+ position: relative;
112
+ display:none;
113
+ width: 20px;
114
+ height: 20px;
115
+ margin-left: 12px;
116
+ top: 4px;
117
+ background-image: url(../../images/remove_element.png);
118
+ background-size:100% 100%;
119
+ }
120
+ .error_massage{
121
+ color: #BB1E1E;
122
+ font-size: 18px;
123
+ font-weight: bold;
124
+ padding-left: 21px;
125
  }
includes/style/style.css CHANGED
@@ -1,284 +1,127 @@
1
- html, body, div, span, applet, object, iframe,
2
- h1, h2, h3, h4, h5, h6, p, blockquote, pre,
3
- a, abbr, acronym, address, big, cite, code,
4
- del, dfn, em, font, img, ins, kbd, q, s, samp,
5
- small, strike, strong, sub, sup, tt, var,
6
- dl, dt, dd, ol, ul, li,
7
- fieldset, form, label, legend,
8
- table, caption, tbody, tfoot, thead, tr, th, td {
9
- margin:0;
10
- padding:0;
11
- border:0;
12
- outline:0;
13
- font-weight:inherit;
14
- font-style:inherit;
15
- font-size:100%;
16
- font-family:inherit;
17
- vertical-align:baseline;
18
- }
19
- body {
20
- line-height:1 !important;
21
- color:black;
22
- background:white;
23
- }
24
- table {
25
- border-collapse:separate;
26
- border-spacing:0;
27
- }
28
- caption, th, td {
29
- text-align:left;
30
- font-weight:normal;
31
- }
32
- blockquote:before, blockquote:after,
33
- q:before, q:after {
34
- content:"";
35
- }
36
- blockquote, q {
37
- quotes:"" "";
38
- }
39
- /* HTML5 tags */
40
- header, section, footer,
41
- aside, nav, article, figure {
42
- display: block;
43
- }
44
-
45
- /*===================*/
46
- /*=== Main Styles ===*/
47
- /*===================*/
48
- body {
49
- font:14px/1.6 Georgia, Palatino, Palatino Linotype, Times, Times New Roman, serif;
50
- color:#333;
51
- background:#eee;
52
- }
53
-
54
- a, a:visited {
55
- color:blue;
56
- text-decoration:none;
57
- }
58
- a:hover, a:active {
59
- color:#000;
60
- text-decoration:none;
61
- }
62
-
63
- #dev7link {
64
- position:absolute;
65
- top:0;
66
- left:50px;
67
- background:url(images/dev7logo.png) no-repeat;
68
- width:60px;
69
- height:67px;
70
- border:0;
71
- display:block;
72
- text-indent:-9999px;
73
- }
74
-
75
- .slider-wrapper {
76
- width: 100%;
77
- height:100%;
78
- }
79
-
80
- /*====================*/
81
- /*=== Other Styles ===*/
82
- /*====================*/
83
- .clear {
84
- clear:both;
85
- }
86
- .nivoSlider {
87
- position:relative;
88
- width:100%;
89
- height:auto;
90
- overflow: hidden;
91
- }
92
- .nivoSlider img {
93
- position:absolute;
94
- top:0px;
95
- left:0px;
96
- max-width: none;
97
  }
98
- .nivo-main-image {
99
- display: block !important;
100
- position: relative !important;
101
- width: 100% !important;
102
  }
103
 
104
- /* If an image is wrapped in a link */
105
- .nivoSlider a.nivo-imageLink {
106
- position:absolute;
107
- top:0px;
108
- left:0px;
109
- width:100%;
110
- height:100%;
111
- border:0;
112
- padding:0;
113
- margin:0;
114
- z-index:6;
115
- display:none;
116
- background:white;
117
- filter:alpha(opacity=0);
118
- opacity:0;
119
  }
120
- /* The slices and boxes in the Slider */
121
- .nivo-slice {
122
- display:block;
123
- position:absolute;
124
- z-index:5;
125
- height:100%;
126
- top:0;
127
- }
128
- .nivo-box {
129
- display:block;
130
- position:absolute;
131
- z-index:5;
132
- overflow:hidden;
133
- }
134
- .nivo-box img { display:block; }
135
-
136
- /* Caption styles */
137
- .nivo-caption {
138
- position:absolute;
139
- left:0px;
140
- bottom:0px;
141
- background:#000;
142
  color:#fff;
143
- width:100%;
144
- z-index:8;
145
- opacity: 0.8;
146
- overflow: hidden;
147
- display: none;
148
- -moz-opacity: 0.8;
149
- filter:alpha(opacity=8);
150
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
151
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
152
- box-sizing: border-box; /* Opera/IE 8+ */
153
- }
154
- .nivo-caption p {
155
- padding:5px;
156
- margin:0;
157
- }
158
- .nivo-caption a {
159
- display:inline !important;
160
- }
161
- .nivo-html-caption {
162
- display:none;
163
- }
164
- /* Direction nav styles (e.g. Next & Prev) */
165
- .nivo-directionNav a {
166
- position:absolute;
167
- top:45%;
168
- z-index:9;
169
- cursor:pointer;
170
- }
171
- .nivo-prevNav {
172
- left:0px;
173
- }
174
- .nivo-nextNav {
175
- right:0px;
176
- }
177
- /* Control nav styles (e.g. 1,2,3...) */
178
- .nivo-controlNav {
179
- text-align:center;
180
- padding: 15px 0;
181
- }
182
- .nivo-controlNav a {
183
- cursor:pointer;
184
- }
185
- .nivo-controlNav a.active {
186
  font-weight:bold;
187
- }.theme-default .nivoSlider {
188
- position:relative;
189
  }
190
- .theme-default .nivoSlider img {
191
- position:absolute;
192
- top:0px;
193
- left:0px;
194
- display:none;
 
 
 
 
 
 
 
 
 
 
 
 
195
  }
196
- .theme-default .nivoSlider a {
197
- border:0;
198
- display:block;
 
 
 
 
199
  }
 
 
 
 
 
200
 
201
- .theme-default .nivo-controlNav {
202
- text-align: center;
203
- }
204
- .theme-default .nivo-controlNav a {
205
  display:inline-block;
206
- width:22px;
207
- height:22px;
208
- background:url(bullets.png) no-repeat;
209
- text-indent:-9999px;
210
- border:0;
211
- margin: 0 2px;
212
- }
213
- .theme-default .nivo-controlNav a.active {
214
- background-position:0 -22px;
215
  }
216
 
217
- .theme-default .nivo-directionNav a {
218
- display:block;
219
- text-indent:-9999px;
220
- border:0;
221
  }
222
 
223
- .nivo-prevNav{
224
- background: url(Arrow-left.png);
225
- background-repeat: no-repeat;
226
- width: 50px;
227
- height: 75px;
228
- }
229
- .nivo-nextNav{
230
- background: url(Arrow-right.png);
231
- background-repeat: no-repeat;
232
- width: 31px;
233
- height: 75px;
234
- }
235
- .theme-default a.nivo-prevNav {
236
- left:15px;
237
- }
238
- .theme-default .nivo-caption {
239
- font-family: Helvetica, Arial, sans-serif;
240
  }
241
- .theme-default .nivo-caption a {
242
- color:#fff;
243
- border-bottom:1px dotted #fff;
 
 
244
  }
245
- .theme-default .nivo-caption a:hover {
246
- color:#fff;
 
 
 
 
 
 
 
 
 
 
 
 
247
  }
248
 
249
- .theme-default .nivo-controlNav.nivo-thumbs-enabled {
250
- width: 100%;
251
- }
252
- .theme-default .nivo-controlNav.nivo-thumbs-enabled a {
253
- width: auto;
254
- height: auto;
255
- background: none;
256
- margin-bottom: 5px;
257
- }
258
- .theme-default .nivo-controlNav.nivo-thumbs-enabled img {
259
- display: block;
260
- width: 120px;
261
- height: auto;
262
- }
263
- .hero-unit{
264
- position:absolute;
265
- z-index:9999;
266
- width:100%;
267
-
268
- }
269
- #user_loading_and_saving{
270
- padding-top:10px;
271
-
272
- }
273
- .information_user{
274
- font-size: 25px;
275
- font-style: italic;
276
- min-height:37px;
277
- }
278
- .error{
279
- color: #C72B2B;
280
- font-size: 25px;
281
- font-style: italic;
282
- font-weight: bold;
283
  }
284
-
 
 
 
1
+ body{
2
+ margin:0px;
3
+ -webkit-background-size: cover;
4
+ -moz-background-size: cover;
5
+ -o-background-size: cover;
6
+ background-size: cover;
7
+ }
8
+ #title_style h1{
9
+ font-size: 55px;
10
+ padding: 0px;
11
+ margin: 5px 0px 5px 0px;
12
+ }
13
+ #descrip{
14
+ margin: 5px 0px 5px 0px;
15
+ }
16
+ .soc_icon_coneiner{
17
+ display:inline-block;
18
+ margin-top:2%;
19
+ width: 100%;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
20
  }
21
+ .soc_icon_coneiner .soc_icon{
22
+ display: inline-block;
23
+ margin-left: 3%;
24
+ margin-right: 3%;
25
  }
26
 
27
+ .soc_icon_coneiner .soc_icon img{
28
+ width:100%;
29
+ max-height:82px;
 
 
 
 
 
 
 
 
 
 
 
 
30
  }
31
+ .countdown > div{
32
+ margin-top:2%;
33
+ float:left;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
34
  color:#fff;
35
+ font-size:48px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
  font-weight:bold;
 
 
37
  }
38
+ .element_conteiner{
39
+ width:150px;
40
+ display: inline-block;
41
+ }
42
+ .time_left{
43
+ border:none;
44
+ border-radius:8px;
45
+ background-color:#3DA8CC;
46
+ font-size:30px;
47
+ color:#000000;
48
+ padding-bottom: 4%;
49
+ padding-top: 5%;
50
+ padding-left: 25%;
51
+ padding-right: 25%;
52
+ font-weight:bold;
53
+ font-family: monospace;
54
+
55
  }
56
+ .time_description{
57
+ margin-top:6px;
58
+ margin-bottom:6px;
59
+ font-size:25px;
60
+ color:#000000;
61
+ font-weight:bold;
62
+ font-family: monospace;
63
  }
64
+ .information{
65
+ padding-bottom: 20px;
66
+ margin-bottom: -20px;
67
+ padding-top: 20px;
68
+ margin-top: -20px;
69
 
70
+ background: rgba(255,255,255,0.55);
71
+ border-radius:8px;
72
+ width: 51%;
73
+ /*height:71.5%;*/
74
  display:inline-block;
75
+ z-index:999999;
76
+ max-width:750px;
77
+ width:100%;
 
 
 
 
 
 
78
  }
79
 
80
+ .information #logo img{
81
+ max-height:210px;
 
 
82
  }
83
 
84
+ #main_inform_div{
85
+ display:table;
86
+ padding:10px;
87
+ }
88
+ #user_email{
89
+ font-size:25px;
90
+ border-radius:8px;
91
+ color:#000000;
92
+ width: 90%;
93
+ max-width: 350px;
94
+ padding-left:8px;
95
+ padding-top: 6px;
96
+ padding-bottom: 3px;
97
+ font-family: monospace;
 
 
 
98
  }
99
+ .information_user{
100
+ margin-top:10px;
101
+ color:#FFFFFF;
102
+ font-size:25px;
103
+ font-weight:bold;
104
  }
105
+ #Send_mail_button{
106
+ cursor:pointer;
107
+ margin-top:8px;
108
+ border:none;
109
+ border-radius:8px;
110
+ background-color:#3DA8CC;
111
+ font-size:25px;
112
+ color:#000000;
113
+ padding-bottom: 5px;
114
+ padding-top: 7px;
115
+ padding-left: 12px;
116
+ padding-right: 12px;
117
+ font-weight:bold;
118
+ font-family: monospace;
119
  }
120
 
121
+ #slider{
122
+ left: 0px; top: 0px; overflow: hidden; margin: 0px; padding: 0px; height: 680px; width: 1903px; z-index: -999999; position: fixed;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
123
  }
124
+ .aligment{
125
+ display:table-cell;
126
+ width: 10%;
127
+ }
readme.txt CHANGED
@@ -1,21 +1,21 @@
1
- === Coming soon ===
2
- Contributors: wpdevart
3
  Donate link: http://wpdevart.com/wordpress-coming-soon-plugin/
4
- Tags: widget, Post , plugin, admin, twitter, page, coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, landing page, underconstruction, squeeze page, countdown, maintenance page, site offline, wordpress maintenance plugin, seo
5
  Requires at least: 3.4.0
6
  Tested up to: 4.0
7
- Stable tag: 1.0.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
- Coming soon plugin is awesome tool to show your users that you are working on your website to make it better.
12
 
13
  == Description ==
14
 
15
- It's not easy to create coming soon page for WordPress without coding knowledge. That's why our team do his best to help WordPress users to create coming soon pages easily and quickly.Our coming soon plugin is the best way to create better coming soon page.
16
- Coming soon plugin will add some great features to your coming soon page.
17
 
18
- ### Features of Coming Soon plugin
19
 
20
  * **Easy install and use**
21
  * **Works perfectly with all versions of WordPress**
@@ -23,77 +23,89 @@ Coming soon plugin will add some great features to your coming soon page.
23
  * **Highly customizable Coming Soon page**
24
  * **Ability to change Coming Soon page background color**
25
  * **Ability to set Coming Soon page background image**
26
- * **Ability to set Coming Soon page Title color**
27
- * **Ability to set Coming Soon page Title font size**
28
  * **Ability to use WordPress post toolbar for Coming soon page Content**
29
- * **Ability to set Coming soon page Content background color**
30
- * **Ability to set Coming soon page Content background transparency**
31
- * **Ability to set Coming soon page Content background border radius**
32
  * **SEO friendly Coming Soon page**
33
  * **Set Meta description for your Coming Soon page**
34
  * **Set Meta keywords for your Coming Soon page**
35
  * **Full browser background option**
36
- * **Ability to add Countdown to your Coming Soon page**
37
  * **Ability to set full browser background image for you Coming Soon page**
38
  * **Ability to control access by IP to Coming Soon page**
39
  * **Custom Logo for Coming Soon page**
40
- * **Email notifications**
41
  * **Social Media Ready**
42
  * **Facebook**
43
- * **Ability to change Facebook button background image**
44
  * **Twitter**
45
- * **Ability to change Twitter button background image**
46
  * **Google Plus**
47
- * **Ability to change Google Plus button background image**
48
  * **YouTube**
49
- * **Ability to change YouTube button background image**
50
  * **Instagram**
51
- * **Ability to change Instagram button background image**
52
  * **Uses CSS3**
53
- * **User friendly back-end for Coming Soon page**
54
  * **Tested on popular WordPress themes**
55
  * **Coming soon page visible only non logged in users**
56
 
57
- You can upgrade Coming Soon plugin to [WordPress Coming Soon Pro](http://wpdevart.com/wordpress-coming-soon-plugin) to add some features.
58
 
59
- ### The features of Coming Soon Pro
60
 
61
  * **Awesome Background Slider for your Coming Soon page**
62
  * **Ability to set Coming soon page content position**
63
  * **Ability to exclude specific pages, posts from displaying Coming Soon page**
 
 
 
 
 
 
64
  * **Ability to set Coming Soon page Mailing list button background color**
65
  * **Ability to set Coming Soon page Mailing list button text color**
66
  * **Ability to set Coming Soon page Mailing list input text color**
67
  * **Ability to set Coming Soon page Mailing list button and input font-size**
 
68
  * **Ability to set Coming Soon page Countdown button background color**
69
  * **Ability to set Coming Soon page Countdown button border radius**
70
  * **Ability to set Coming Soon page Countdown text color**
71
  * **Ability to set Coming Soon page Countdown font-size**
 
 
 
 
 
 
 
 
 
 
72
 
73
- ### View our Coming Soon plugin Demo page - [Coming soon Demo](http://democomingsoon.wpdevart.com/)
74
 
75
- ### If you found any bug in our [WordPress Coming soon](http://wpdevart.com/wordpress-coming-soon-plugin) plugin or have a question contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
 
 
 
 
 
76
 
77
  == Installation ==
78
 
79
- ### First download the Coming Soon plugin ZIP file.
80
- Installing the WordPress **Coming Soon** plugin
81
 
82
  1. Log in to your website administration panel.
83
  2. Go to Plugins page Add New > Upload Plugin .
84
- 3. Click "Choose file" then select the Coming Soon plugin zip file.
85
- 4. Then Install and activate the plugin.
 
 
 
86
 
87
- That's all, now you can build your Coming soon page. If any problem occurs, contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
88
 
89
  == Screenshots ==
90
 
91
- 1. **WordPress Coming** soon page Front-end
92
- 2. **WordPress Coming** soon page Back-end(General settings)
93
- 3. **WordPress Coming** soon page Back-end(General settings)
94
- 4. **WordPress Coming** soon page Back-end(Design Options)
95
- 5. **WordPress Coming** soon page Mailing list
96
- 6. **WordPress Coming** soon page Live preview
97
 
98
  == Changelog ==
99
 
@@ -113,21 +125,21 @@ That's all, now you can build your Coming soon page. If any problem occurs, cont
113
  * Massage - Here you can type the massage that will appear on your coming soon page.
114
  * Keywords - Type your Coming Soon page meta keywords.
115
  * Description - Type your Coming Soon page meta description.
116
- * Countdown - Type the time to activate the countdown.
117
  * Disable coming soon page after countdown end - If you choose this option, then your coming soon page will be Enabled after countdown end.
118
  * Disable coming soon page for this ips - Just type here users ip's who can access to you website.
119
  * Disable coming soon page for this urls - You can exclude specific url's from displaying Coming Soon page.
120
- * Facebook - Type here your Facebook page url.
121
- * Twitter - Type here your Twitter page url.
122
- * Google Plus - Type here your Google Plus page url.
123
- * YouTube - Type here your YouTube page url.
124
- * Instagram - Type here your Instagram page url.
125
 
126
  The second option page is "Design Options" . On this page you can change your Coming Soon page design.
127
 
128
  ### Coming Soon page design options
129
 
130
- * Coming soon page backround type - Select Coming Soon plugin backround mode. There are tree background types, the first type is simple background color, second type is backround with image and the last type is background Slider.
131
  * Background Color - Select Coming Soon page background color.
132
  * Background image - Upload Coming Soon page background image.
133
  * Backround slider - Upload Coming Soon page background slider images.
@@ -153,4 +165,6 @@ The second option page is "Design Options" . On this page you can change your Co
153
  * Instagram button background image - Upload your button for Instagram or just use our default Instagram button.
154
 
155
  The third option page is "Mailing list" . On this page you can type Sendmail Message text and send Message to users.
156
- The last option page is "Live Preview" . Here you can see your Coming soon page live preview.
 
 
1
+ === Coming soon and Maintenance mode ===
2
+ Contributors: maintenance mode GG, wpdevart, big ben keeper
3
  Donate link: http://wpdevart.com/wordpress-coming-soon-plugin/
4
+ Tags: widget, Post , plugin, admin, twitter, page, coming soon, coming soon page, construction, landing page, launch, launch page, maintenance, maintenance mode, newsletter, offline, unavailable, under construction, wordpress coming soon, wordpress maintenance mode, wordpress under construction, landing page, underconstruction, squeeze page, countdown, maintenance page, site offline, wordpress maintenance plugin, wordpress maintenance mode. wordpress under constructio, email, gmail, message, notify, preview, subscriber, user, meta, under maintenance, site maintenance, schedule maintenance, admin maintenance, Maintenance Checklist, mode, custom maintenence mode
5
  Requires at least: 3.4.0
6
  Tested up to: 4.0
7
+ Stable tag: 1.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
11
+ Coming soon and Maintenance mode plugin is awesome tool to show your users that you are working on your website to make it better.
12
 
13
  == Description ==
14
 
15
+ It's not easy to create coming soon page for WordPress without coding knowledge. That's why our team do his best to help WordPress users to create coming soon pages easily and quickly.Our coming soon and Maintenance mode plugin is the best way to create better coming soon page.
16
+ Coming soon and Maintenance mode plugin will add some great features to your coming soon page.
17
 
18
+ ### Features of Coming soon and Maintenance mode plugin
19
 
20
  * **Easy install and use**
21
  * **Works perfectly with all versions of WordPress**
23
  * **Highly customizable Coming Soon page**
24
  * **Ability to change Coming Soon page background color**
25
  * **Ability to set Coming Soon page background image**
 
 
26
  * **Ability to use WordPress post toolbar for Coming soon page Content**
 
 
 
27
  * **SEO friendly Coming Soon page**
28
  * **Set Meta description for your Coming Soon page**
29
  * **Set Meta keywords for your Coming Soon page**
30
  * **Full browser background option**
 
31
  * **Ability to set full browser background image for you Coming Soon page**
32
  * **Ability to control access by IP to Coming Soon page**
33
  * **Custom Logo for Coming Soon page**
 
34
  * **Social Media Ready**
35
  * **Facebook**
 
36
  * **Twitter**
 
37
  * **Google Plus**
 
38
  * **YouTube**
 
39
  * **Instagram**
 
40
  * **Uses CSS3**
41
+ * **User friendly back-end for Coming Soon and Maintenance mode plugin**
42
  * **Tested on popular WordPress themes**
43
  * **Coming soon page visible only non logged in users**
44
 
45
+ You can upgrade WordPress Coming Soon and Maintenance mode plugin to [Coming soon and Maintenance mode Pro](http://wpdevart.com/wordpress-coming-soon-plugin) to add some features.
46
 
47
+ ### The features of Coming soon and Maintenance mode Pro
48
 
49
  * **Awesome Background Slider for your Coming Soon page**
50
  * **Ability to set Coming soon page content position**
51
  * **Ability to exclude specific pages, posts from displaying Coming Soon page**
52
+ * **Ability to set Coming Soon page Title color**
53
+ * **Ability to set Coming Soon page Title font size**
54
+ * **Ability to set Coming soon page Content background color**
55
+ * **Ability to set Coming soon page Content background transparency**
56
+ * **Ability to set Coming soon page Content background border radius**
57
+ * **Email notifications**
58
  * **Ability to set Coming Soon page Mailing list button background color**
59
  * **Ability to set Coming Soon page Mailing list button text color**
60
  * **Ability to set Coming Soon page Mailing list input text color**
61
  * **Ability to set Coming Soon page Mailing list button and input font-size**
62
+ * **Ability to add Countdown to your Coming Soon page**
63
  * **Ability to set Coming Soon page Countdown button background color**
64
  * **Ability to set Coming Soon page Countdown button border radius**
65
  * **Ability to set Coming Soon page Countdown text color**
66
  * **Ability to set Coming Soon page Countdown font-size**
67
+ * **Ability to change Facebook button background image**
68
+ * **Ability to change Twitter button background image**
69
+ * **Ability to change Google Plus button background image**
70
+ * **Ability to change YouTube button background image**
71
+ * **Ability to change Instagram button background image**
72
+
73
+
74
+ ### View our Coming Soon and Maintenance mode plugin Demo page - [Coming soon and Maintenance mode Demo](http://democomingsoon.wpdevart.com/)
75
+
76
+ ### If you found any bug in our [WordPress Coming soon and Maintenance mode](http://wpdevart.com/wordpress-coming-soon-plugin) plugin or have a question contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
77
 
 
78
 
79
+ The Coming Soon and Maintenance mode plugin allows you to create Coming Soon page for your website simply and quickly. You just need to enable the Coming Soon Mode to change your website to Maintenance mode.
80
+
81
+ The Coming Soon and Maintenance mode plugin plugin works without any problem with all popular WordPress themes that we tested, so you can use our Coming Soon and Maintenance mode plugin on any theme you like, if something goes wrong just let us know about it.
82
+ Logged out users of your website will see the Maintenance mode while logged-in users will have access to your website. Maintenance mode is ideal solution for web developers who want to show their clients that website is in Maintenance mode while they working on the website.
83
+
84
+ We recommend you to take a look for this useful plugins - [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box/) .
85
 
86
  == Installation ==
87
 
88
+ ### First download the Coming Soon and Maintenance mode plugin ZIP file.
89
+ Installing the WordPress **Coming Soon and Maintenance mode** plugin
90
 
91
  1. Log in to your website administration panel.
92
  2. Go to Plugins page Add New > Upload Plugin .
93
+ 3. Click "Choose file" then select the [WordPress Coming Soon](https://wordpress.org/plugins/coming-soon-page/) and Maintenance mode plugin zip file.
94
+ 4. Then Install and activate our [WordPress Maintenance mode](https://wordpress.org/plugins/coming-soon-page/) plugin.
95
+ 5. Then, from the left panel of Dashboard, click on the gear icon - Coming Soon link to fully customize the plugin
96
+
97
+ That's all, now you can build your Coming soon page and run website to Maintenance mode. If any problem occurs, contact us at [support@wpdevart.com](mailto:support@wpdevart.com).
98
 
99
+ We recommend you to take a look for this useful plugins - [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box/) .
100
 
101
  == Screenshots ==
102
 
103
+ 1. **[WordPress Maintenance mode](https://wordpress.org/plugins/coming-soon-page/) and Coming soon** Front-end
104
+ 2. **[WordPress Coming soon](https://wordpress.org/plugins/coming-soon-page/) and Maintenance mode** Back-end(General settings)
105
+ 3. **WordPress Coming soon and Maintenance mode** Back-end(General settings)
106
+ 4. **WordPress Coming soon and Maintenance mode** Back-end(Design Options)
107
+ 5. **WordPress Coming soon and Maintenance mode** Mailing list
108
+ 6. **WordPress Coming soon and Maintenance mode** Live preview
109
 
110
  == Changelog ==
111
 
125
  * Massage - Here you can type the massage that will appear on your coming soon page.
126
  * Keywords - Type your Coming Soon page meta keywords.
127
  * Description - Type your Coming Soon page meta description.
128
+ * Countdown - Type the time to activate the countdown for Maintenance mode.
129
  * Disable coming soon page after countdown end - If you choose this option, then your coming soon page will be Enabled after countdown end.
130
  * Disable coming soon page for this ips - Just type here users ip's who can access to you website.
131
  * Disable coming soon page for this urls - You can exclude specific url's from displaying Coming Soon page.
132
+ * Facebook - Type here your Facebook page url, when website is on Maintenance mode.
133
+ * Twitter - Type here your Twitter page url, when website is on Maintenance mode.
134
+ * Google Plus - Type here your Google Plus page url, when website is on Maintenance mode.
135
+ * YouTube - Type here your YouTube page url, when website is on Maintenance mode.
136
+ * Instagram - Type here your Instagram page url, when website is on Maintenance mode.
137
 
138
  The second option page is "Design Options" . On this page you can change your Coming Soon page design.
139
 
140
  ### Coming Soon page design options
141
 
142
+ * Coming soon page backround type - Select [WordPress Coming soon](https://wordpress.org/plugins/coming-soon-page/) plugin backround mode. There are tree background types, the first type is simple background color, second type is backround with image and the last type is background Slider.
143
  * Background Color - Select Coming Soon page background color.
144
  * Background image - Upload Coming Soon page background image.
145
  * Backround slider - Upload Coming Soon page background slider images.
165
  * Instagram button background image - Upload your button for Instagram or just use our default Instagram button.
166
 
167
  The third option page is "Mailing list" . On this page you can type Sendmail Message text and send Message to users.
168
+ The last option page of our [WordPress Maintenance mode](https://wordpress.org/plugins/coming-soon-page/) plugin is "Live Preview" . Here you can see your Coming soon page live preview.
169
+
170
+ We recommend you to take a look for this useful plugins - [WordPress Poll plugin](https://wordpress.org/plugins/polls-widget/), [WordPress Facebook like box](https://wordpress.org/plugins/like-box/) .