Coming soon and Maintenance mode - Version 3.5.5

Version Description

=

  • Fixed issues (sanitized,escaped).

Step by step guide

Logo

  • Show logo - Choose to show or hide your logo.
  • Logo - Click "Upload" button to upload your logo.
  • Logo position - Here you can choose your logo position(Left, Center, Right).
  • Distance from top - Type here your logo distance from top.
  • Logo Animation type - Choose animation type for your logo.
  • Animation waiting time - Type here waiting time for Logo animation(in milliseconds).
  • Logo max width - Type here your website logo maximum width.
  • Logo max height - Type here your website logo maximum height.

Title

  • Show title - Choose to show or hide your Title.
  • Title - Type here the Title.
  • Title color - Select the title color.
  • Title Font Size - Type here title font size.
  • Title Font family - Choose the font family for title.
  • Title position - Choose Title position(Left, Center, Right).
  • Distance from top - Type here Title field distance from top.
  • Title Animation type - Choose animation type for Title.
  • Animation waiting time - Type here Title animation waiting time(in milliseconds).

Message

  • Show Message - Choose to show or hide Message box.
  • Message - Type here message for under construction page(you can use WordPress posts/pages default editor).
  • Message position - Choose position for Message box(Left, Center, Right).
  • Distance from top - Type here Message box distance from top.
  • Message Animation type - Choose animation type for Message box.
  • Animation waiting time - Type here waiting time for Message box animation(in milliseconds).

Countdown

  • Show/hide - Choose to show or hide.
  • Text for Day field - Type here default text for Day field.
  • Text for Hour field - Type here default text for Hour field.
  • Text for Minute field - Type here default text for Minute field.
  • Text for Second field - Type here default text for Second field.
  • Countdown date - Type here the Countdown time(days, hour), then select the Countdown start date.
  • After Countdown expired - Choose what will happens with Under construction page when Countdown expired(Disable coming soon or only hide Countdown).
  • Position - Choose the position(Left, Center, Right).
  • Distance from top - Type here the distance from top.
  • Animation type - Choose animation type.
  • Animation waiting time - Type here waiting time for animation(in milliseconds).
  • Buttons type - Choose the buttons type(button, circle, vertical slider)
  • Text color - Select the text color.
  • Background color - Select the background color.
  • Border radius - Type here the buttons border radius.
  • Size - Select the size.
  • Border width - Select the border width for circle buttons(only appears when you choose Countdown circle buttons).
  • Font-size - Type here the countdown text font-size.
  • Font family - Select the text Font family.

Progress bar

  • Show Progress bar - Choose to show or hide Progress bar.
  • Progress bar percentage - Here you can select Progress bar percentage.
  • Width - Type here Progress bar width.
  • Progress bar position - Choose position for Progress bar(Left, Center, Right).
  • Distance from top - Type here Progress bar distance from top.
  • Progress bar load color - Select progress bar load color.
  • Border color - Select Progress bar border color.
  • Border width - Choose progress bar border width.
  • Border radius - Choose progress bar border radius.
  • Animation type - Choose animation type for Progress bar.
  • Animation waiting time - Type here waiting time for Progress bar animation(in milliseconds).

Subscribe (Mailing list)

  • Show the Form - Choose to show or hide Subscribe Form.
  • User First name text - Type here text for user first name field.
  • User Last name text - Type here text for user last name field.
  • Email field text - Type here text for email field.
  • Send button text - Type here the Send button text.
  • Success email text - Type here the text that will appear after users submit the correct email.
  • Existing email text - Type here the text that will appear after users type already submitted email.
  • Blank email field text - Type here the text that will appear after users submit a blank field.
  • Invalid email text - Type here the text that will appear after users submit invalid email.
  • Subscribe Form position - Choose position for Subscribe Form(Left, Center, Right).
  • Distance from top - Type here Subscribe Form distance from top.
  • Font Size - Type here font size for all texts in Subscribe Form.
  • Email field border radius - Type here border radius for email field.
  • Input max width - Type here max with for input field.
  • Font family - Type here font family for all texts in Subscribe Form.
  • Input field border color - Select the input field border color.
  • Placeholder text color - Select default text color for input fields.
  • Send button bg color - Select the send button background color.
  • Send button text color - Select the send button text color.
  • Input field text color - Select the input field text color.
  • After submit text color - Select color of the text, that will appear after submit.
  • Animation type - Choose animation type for Subscribe Form.
  • Animation waiting time - Type here waiting time for Subscribe Form animation(in milliseconds).

Social buttons

  • Show social buttons - Choose to show or hide social buttons.
  • Facebook url - Type here Facebook url.
  • Facebook img url - Type here Facebook icon url or upload it.
  • Twitter url - Type here Twitter url.
  • Twitter img url - Type here Twitter icon url or upload it.
  • YouTube url - Type here YouTube url.
  • YouTube img url - Type here YouTube icon url or upload it.
  • Instagram url - Type here Instagram url.
  • Instagram img url - Type here Instagram icon url or upload it.
  • Social buttons position - Choose position for Social buttons(Left, Center, Right).
  • Distance from top - Type here Social buttons distance from top.
  • Animation type - Choose animation type for Social buttons.
  • Animation waiting time - Type here waiting time for Social buttons animation(in milliseconds).
  • Social buttons max width - Type here maximum width for Social buttons.
  • Social buttons max height - Type here maximum height for Social buttons.

Link To Admin

  • Show - Choose to show or hide Link To Admin.
  • Link To Admin text - Type here Link To Admin text.
  • Text color - Choose text color.
  • Font Size - Type here text Font Size.
  • Font family - Select Font family for Link To Admin.
  • Link To Admin position - Choose position for Link To Admin(Left, Center, Right).
  • Distance from top - Type here Link To Admin distance from top.
  • Animation type - Choose animation type for Link To Admin.
  • Animation waiting time - Type here waiting time for Link To Admin animation(in milliseconds).

Content

  • Content position - Choose content position(Left top, Left middle, Left bottom, Center top, Center middle, Center bottom, Right top, Right middle, Right bottom).
  • Content bg color - Select content background color.
  • Content transparency - Select transparency for content.
  • Border radius - Type here border radius for content.
  • Content max width - Type here content maximum width.
  • Padding - Type here content padding value(padding properties define the space between the element border and the element content).
  • Margin - Type here content margin value(margin properties define the space around elements).
  • Elements ordering - Choose the order of showing elements(you can move all elements using drop down functionality).

Background

  • Background type - Select the background type you want to use.
  • Set color - Select the background color(option will appear if you choose "Background color" type).
  • Img url - Type the image url or just upload images for background(option will appear if you choose "Background image" type).
  • Slider img urls - Type the image urls or just upload images for Background Slider(option will appear if you choose "Background Slider" type).
  • YouTube video id - Type YouTube video Id, for example if YouTube video full url is "https://www.youtube.com/watch?v=0AqnCSdkjQ0", then you just need to type here "0AqnCSdkjQ0" (option will appear if you choose "YouTube Background" type).
  • Video Sound - Choose mute or unmute background video(option will appear if you choose "YouTube Background" type).

Except pages and IPs

  • Disable the plugin for this ips - You can disable the plugin for this ips, just type the ip and click anywhere, then type the next ip in next field that will appear.
  • Disable the plugin for this urls - You can disable the plugin for this urls, just type the url and click anywhere, then type the next url in next field that will appear.

Search engine and Favicon

  • Title(SEO) - Type here the Title for Search engines(It will be visible for search engines).
  • Favicon - Here you can upload favicon.
  • Enable Search Robots - Here you can enable or disable coming soon page for search robots(If you disable this option then your website will disappear from search engines).
  • Meta Keywords - Type here meta keywords.
  • Meta Description - Type here meta description.

Subscribers page

On this page you can view subscribed users emails. You can copy emails list and send emails using Gmail or other email services. You can remove emails from email list as well.

Send Mail all subscribed Users - Send Mail to all subscribed Users All fields are required - All fields are required

  • Your display Email - Type here the Display Email address, your users will see it when you send them email.
  • Your display Name - Type here name(company or website name) that your users will see when you send them email.
  • Message title - Type here message title.
  • Message - Type here message text.

All fields required, so fill all fields and click on send button, that's all.

Download this release

Release Info

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

Code changes from version 3.5.4 to 3.5.5

Files changed (4) hide show
  1. coming_soon.php +60 -64
  2. includes/admin_menu.php +2090 -2065
  3. includes/front_end.php +18 -18
  4. readme.txt +5 -1
coming_soon.php CHANGED
@@ -1,110 +1,106 @@
1
  <?php
 
2
  /**
3
  * Plugin Name: Coming soon and Maintenance mode WpDevArt
4
  * Plugin URI: https://wpdevart.com/wordpress-coming-soon-plugin/
5
  * Author URI: https://wpdevart.com
6
  * 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.
7
- * Version: 3.5.4
8
  * Author: wpdevart
9
  * License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
10
  */
11
-
12
- // main Class
13
- class coming_soon_main{
14
  // required variables
15
-
16
  private $coming_soon_plugin_url;
17
-
18
  private $coming_soon_plugin_path;
19
-
20
  private $coming_soon_version;
21
-
22
  public $coming_soon_options;
23
-
24
- /*############ Construct function ################*/
25
-
26
- function __construct(){
27
  //Create variables for the class
28
- $this->coming_soon_plugin_url = trailingslashit( plugins_url('', __FILE__ ) );
29
- $this->coming_soon_plugin_path = trailingslashit( plugin_dir_path( __FILE__ ) );
30
- $this->coming_soon_version = 1.0;
31
  $this->call_base_filters(); //Function for the main filters (hooks)
32
  $this->install_databese(); //Database function
33
  $this->create_admin_menu(); //Function for creating the admin menu
34
  $this->coming_soon_front_end(); //Function responsible for front-end
35
-
36
  }
37
 
38
- /*############ Admin menu function ################*/
39
-
40
- public function create_admin_menu(){
41
  //
42
- define("wpdevart_comingsoon_support_url","https://wordpress.org/support/plugin/coming-soon-page");
43
  // Registration of file that is responsible for admin menu
44
- require_once($this->coming_soon_plugin_path.'includes/admin_menu.php');
45
  // Creation of admin menu object type
46
- $coming_soon_admin_menu = new coming_soon_admin_menu(array('menu_name' => 'Coming Soon','databese_parametrs'=>$this->coming_soon_options));
47
  //Hook that should connect admin menu with class
48
- add_action('admin_menu', array($coming_soon_admin_menu,'create_menu'));
49
-
50
  }
51
 
52
- /*############ Install database function ################*/
53
-
54
- public function install_databese(){
55
  //registration of file that is responsible for database
56
- require_once($this->coming_soon_plugin_path.'includes/install_database.php');
57
  //Creation of database object type
58
  $coming_install_database = new install_database();
59
  //Creation of database
60
  $this->coming_soon_options = $coming_install_database->installed_options;
61
-
62
  }
63
-
64
- /*############ Front-end function ################*/
65
-
66
- public function coming_soon_front_end(){
67
  //Registration of file that is responsible for front-end part
68
- require_once($this->coming_soon_plugin_path.'includes/front_end.php');
69
  //Creation of front-end object type
70
- $coming_soon_front_end = new coming_soon_front_end(array('menu_name' => 'Coming Soon Page','databese_parametrs'=>$this->coming_soon_options));
71
  //hook that connect frontend with class
72
- add_action( 'template_redirect', array($coming_soon_front_end,'create_fornt_end') );
73
  }
74
-
75
- /*############ Register Required scripts function ################*/
76
-
77
- public function registr_requeried_scripts(){
78
  //Registration of plugin necessary scripts and styles
79
- wp_register_script('coming-soon-script',$this->coming_soon_plugin_url.'includes/javascript/front_end_js.js');
80
- wp_register_script('angularejs',$this->coming_soon_plugin_url.'includes/javascript/angular.min.js');
81
- wp_register_script('coming-soon-script-admin',$this->coming_soon_plugin_url.'includes/javascript/admin_coming_soon.js');
82
- wp_register_style('jquery-ui-style',$this->coming_soon_plugin_url.'includes/style/jquery-ui-style.css');
83
- wp_register_style('coming-soon-admin-style',$this->coming_soon_plugin_url.'includes/style/admin-style.css');
84
- wp_register_style('coming-soon-style',$this->coming_soon_plugin_url.'includes/style/style.css');
85
-
86
  }
87
-
88
- /*############ Call base filters function ################*/
89
 
90
- public function call_base_filters(){
91
- add_action( 'init', array($this,'registr_requeried_scripts') );
 
 
92
  //for_upgrade
93
- add_filter( 'plugin_action_links_' . plugin_basename(__FILE__), array($this,'plugin_activate_sublink') );
94
  }
95
 
96
- /*############ Sub-link activate function ################*/
97
-
98
- public function plugin_activate_sublink($links){
99
- $plugin_submenu_added_link=array();
100
- $added_link = array(
101
- '<a target="_blank" style="color: #7052fb; font-weight: bold; font-size: 13px;" href="http://wpdevart.com/wordpress-coming-soon-plugin">Upgrade to Pro</a>',
102
- );
103
- $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $added_link );
104
- $plugin_submenu_added_link=array_merge( $plugin_submenu_added_link, $links );
105
  return $plugin_submenu_added_link;
106
  }
107
  }
108
- $cooming_soon = new coming_soon_main(); // main object creation part
109
-
110
- ?>
1
  <?php
2
+
3
  /**
4
  * Plugin Name: Coming soon and Maintenance mode WpDevArt
5
  * Plugin URI: https://wpdevart.com/wordpress-coming-soon-plugin/
6
  * Author URI: https://wpdevart.com
7
  * 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.
8
+ * Version: 3.5.5
9
  * Author: wpdevart
10
  * License: GPLv3 http://www.gnu.org/licenses/gpl-3.0.html
11
  */
12
+
13
+ // main Class
14
+ class coming_soon_main {
15
  // required variables
16
+
17
  private $coming_soon_plugin_url;
18
+
19
  private $coming_soon_plugin_path;
20
+
21
  private $coming_soon_version;
22
+
23
  public $coming_soon_options;
24
+
25
+ /*############ Construct function ################*/
26
+
27
+ function __construct() {
28
  //Create variables for the class
29
+ $this->coming_soon_plugin_url = trailingslashit(plugins_url('', __FILE__));
30
+ $this->coming_soon_plugin_path = trailingslashit(plugin_dir_path(__FILE__));
31
+ $this->coming_soon_version = 1.0;
32
  $this->call_base_filters(); //Function for the main filters (hooks)
33
  $this->install_databese(); //Database function
34
  $this->create_admin_menu(); //Function for creating the admin menu
35
  $this->coming_soon_front_end(); //Function responsible for front-end
36
+
37
  }
38
 
39
+ /*############ Admin menu function ################*/
40
+
41
+ public function create_admin_menu() {
42
  //
43
+ define("wpdevart_comingsoon_support_url", "https://wordpress.org/support/plugin/coming-soon-page");
44
  // Registration of file that is responsible for admin menu
45
+ require_once($this->coming_soon_plugin_path . 'includes/admin_menu.php');
46
  // Creation of admin menu object type
47
+ $coming_soon_admin_menu = new coming_soon_admin_menu(array('menu_name' => 'Coming Soon', 'databese_parametrs' => $this->coming_soon_options));
48
  //Hook that should connect admin menu with class
49
+ add_action('admin_menu', array($coming_soon_admin_menu, 'create_menu'));
 
50
  }
51
 
52
+ /*############ Install database function ################*/
53
+
54
+ public function install_databese() {
55
  //registration of file that is responsible for database
56
+ require_once($this->coming_soon_plugin_path . 'includes/install_database.php');
57
  //Creation of database object type
58
  $coming_install_database = new install_database();
59
  //Creation of database
60
  $this->coming_soon_options = $coming_install_database->installed_options;
 
61
  }
62
+
63
+ /*############ Front-end function ################*/
64
+
65
+ public function coming_soon_front_end() {
66
  //Registration of file that is responsible for front-end part
67
+ require_once($this->coming_soon_plugin_path . 'includes/front_end.php');
68
  //Creation of front-end object type
69
+ $coming_soon_front_end = new coming_soon_front_end(array('menu_name' => 'Coming Soon Page', 'databese_parametrs' => $this->coming_soon_options));
70
  //hook that connect frontend with class
71
+ add_action('template_redirect', array($coming_soon_front_end, 'create_fornt_end'));
72
  }
73
+
74
+ /*############ Register Required scripts function ################*/
75
+
76
+ public function registr_requeried_scripts() {
77
  //Registration of plugin necessary scripts and styles
78
+ wp_register_script('coming-soon-script', $this->coming_soon_plugin_url . 'includes/javascript/front_end_js.js');
79
+ wp_register_script('angularejs', $this->coming_soon_plugin_url . 'includes/javascript/angular.min.js');
80
+ wp_register_script('coming-soon-script-admin', $this->coming_soon_plugin_url . 'includes/javascript/admin_coming_soon.js');
81
+ wp_register_style('jquery-ui-style', $this->coming_soon_plugin_url . 'includes/style/jquery-ui-style.css');
82
+ wp_register_style('coming-soon-admin-style', $this->coming_soon_plugin_url . 'includes/style/admin-style.css');
83
+ wp_register_style('coming-soon-style', $this->coming_soon_plugin_url . 'includes/style/style.css');
 
84
  }
 
 
85
 
86
+ /*############ Call base filters function ################*/
87
+
88
+ public function call_base_filters() {
89
+ add_action('init', array($this, 'registr_requeried_scripts'));
90
  //for_upgrade
91
+ add_filter('plugin_action_links_' . plugin_basename(__FILE__), array($this, 'plugin_activate_sublink'));
92
  }
93
 
94
+ /*############ Sub-link activate function ################*/
95
+
96
+ public function plugin_activate_sublink($links) {
97
+ $plugin_submenu_added_link = array();
98
+ $added_link = array(
99
+ '<a target="_blank" style="color: #7052fb; font-weight: bold; font-size: 13px;" href="http://wpdevart.com/wordpress-coming-soon-plugin">Upgrade to Pro</a>',
100
+ );
101
+ $plugin_submenu_added_link = array_merge($plugin_submenu_added_link, $added_link);
102
+ $plugin_submenu_added_link = array_merge($plugin_submenu_added_link, $links);
103
  return $plugin_submenu_added_link;
104
  }
105
  }
106
+ $cooming_soon = new coming_soon_main(); // main object creation part
 
 
includes/admin_menu.php CHANGED
@@ -1,2323 +1,2348 @@
1
- <?php
2
 
3
  /*############ Admin Menu Class ################*/
4
 
5
- class coming_soon_admin_menu{
6
-
7
  private $menu_name;
8
  private $databese_parametrs;
9
  private $plugin_url;
10
  private $text_parametrs;
11
 
12
- /*############ Construct function ################*/
13
-
14
- function __construct($param){
15
-
16
- $this->text_parametrs=array(
17
- 'parametrs_sucsses_saved'=>'Successfully saved.',
18
- 'error_in_saving'=>'can\'t save "%s" plugin parameter<br>',
19
- 'missing_title'=>'Type Message Title',
20
- 'missing_fromname'=>'Type From Name',
21
- 'missing_frommail'=>'Type From mail',
22
- 'mising_massage'=>'Type Message',
23
- 'sucsses_mailed'=>'Your message was sent successfully.',
24
- 'error_maied'=>'error sending email',
25
  'authorize_problem' => 'Authorization Problem'
26
-
27
- );
28
-
29
- $this->menu_name=$param['menu_name'];
30
- $this->databese_parametrs=$param['databese_parametrs'];
31
- if(isset($params['plugin_url']))
32
- $this->plugin_url=$params['plugin_url'];
33
  else
34
- $this->plugin_url=trailingslashit(dirname(plugins_url('',__FILE__)));
35
 
36
- add_action( 'wp_ajax_coming_soon_page_save', array($this,'save_in_databese') );
37
- add_action( 'wp_ajax_coming_soon_send_mail', array($this,'sending_mail') );
38
  }
39
 
40
- /*############ Create menu function ################*/
41
-
42
- public function create_menu(){
43
  global $submenu;
44
- $sub_men_cap=str_replace( ' ', '-', $this->menu_name);
45
- $main_page = add_menu_page( $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'),$this->plugin_url.'images/menu_icon.png');
46
- $page_coming_soon = add_submenu_page($this->menu_name, $this->menu_name, $this->menu_name, 'manage_options', str_replace( ' ', '-', $this->menu_name), array($this, 'main_menu_function'));
47
- $page_coming_soon = add_submenu_page( str_replace( ' ', '-', $this->menu_name), 'Subscribers', 'Subscribers', 'manage_options', 'mailing-list-subscribers', array($this, 'mailing_list'));
48
- $page_featured = add_submenu_page( str_replace( ' ', '-', $this->menu_name), 'Featured Plugins', 'Featured Plugins', 'manage_options', 'coming-soon-featured-plugins', array($this, 'featured_plugins'));
49
- add_action('admin_print_styles-' .$main_page, array($this,'menu_requeried_scripts'));
50
- add_action('admin_print_styles-' .$page_coming_soon, array($this,'menu_requeried_scripts'));
51
- add_action('admin_print_styles-' .$page_featured, array($this,'menu_requeried_scripts'));
52
- if(isset($submenu[$sub_men_cap]))
53
- add_submenu_page( $sub_men_cap, "Support or Any Ideas?", "<span style='color:#00ff66' >Support or Any Ideas?</span>", 'manage_options',"wpdevart_comingsoon_any_ideas",array($this, 'any_ideas'),155);
54
- if(isset($submenu[$sub_men_cap]))
55
- $submenu[$sub_men_cap][3][2]=wpdevart_comingsoon_support_url;
56
  }
57
- public function any_ideas(){
58
-
59
  }
60
 
61
- /*############ Menu required scripts function ################*/
62
-
63
- public function menu_requeried_scripts(){
64
- wp_enqueue_script('wp-color-picker');
65
- wp_enqueue_style( 'wp-color-picker' );
66
  wp_enqueue_script('jquery-ui-sortable');
67
  wp_enqueue_script('angularejs');
68
- wp_enqueue_script( 'jquery-ui-datepicker' );
69
- wp_enqueue_script( 'coming-soon-script-admin' );
70
  wp_enqueue_style('jquery-ui-style');
71
- wp_enqueue_script( 'jquery-ui-slider' );
72
  wp_enqueue_style('coming-soon-admin-style');
73
-
74
  wp_enqueue_media();
75
  }
76
-
77
- /*############ Function for generating parameters ################*/
78
-
79
- private function generete_parametrs($page_name){
80
- $page_parametrs=array();
81
- if(isset($this->databese_parametrs[$page_name])){
82
- foreach($this->databese_parametrs[$page_name] as $key => $value){
83
- $page_parametrs[$key]=get_option($key,$value);
84
  }
85
  return $page_parametrs;
86
  }
87
  return NULL;
88
-
89
  }
90
-
91
- /*############ Database function ################*/
92
-
93
- public function save_in_databese(){
94
- $kk=1;
95
-
96
- if(isset($_POST['coming_soon_options_nonce']) && wp_verify_nonce( $_POST['coming_soon_options_nonce'],'coming_soon_options_nonce')){
97
  $curent_page = sanitize_text_field($_POST['curent_page']);
98
- foreach($this->databese_parametrs[$_POST['curent_page']] as $key => $value){
99
- if(isset($_POST[$key])){
100
- if(strpos($key, 'message') !== false){
101
  $sanitize_post = wp_kses_post($_POST[$key]);
102
- }else{
103
  $sanitize_post = sanitize_text_field($_POST[$key]);
104
- }
105
- update_option($key,stripslashes_deep($sanitize_post));
106
- }else{
107
- $kk=0;
108
- printf($this->text_parametrs['error_in_saving'],$key);
109
  }
110
- }
111
- }
112
- else{
113
- die($this->text_parametrs['authorize_problem']);
114
  }
115
- if($kk==0){
116
  exit;
117
  }
118
- die($this->text_parametrs['parametrs_sucsses_saved']);
119
  }
120
-
121
- /*############ Main menu function ################*/
122
-
123
- public function main_menu_function(){
124
- $enable_disable=$this->generete_parametrs('general_save_parametr');
125
- $enable_disable=$enable_disable['coming_soon_page_mode'];
126
- ?>
127
- <script>
128
- var coming_soon_ajaxurl="<?php echo admin_url( 'admin-ajax.php'); ?>";
129
- var comig_soon_plugin_url="<?php echo $this->plugin_url; ?>";
130
- var comin_soon_parametrs_sucsses_saved="<?php echo $this->text_parametrs['parametrs_sucsses_saved'] ?>";
131
- var comin_soon_all_parametrs = <?php echo json_encode($this->databese_parametrs); ?>;
132
- </script>
133
  <div class="wpdevart_plugins_header div-for-clear">
134
  <div class="wpdevart_plugins_get_pro div-for-clear">
135
  <div class="wpdevart_plugins_get_pro_info">
136
  <h3>WpDevArt Coming Soon Premium</h3>
137
  <p>Powerful and Customizable Coming Soon</p>
138
  </div>
139
- <a target="blank" href="http://wpdevart.com/wordpress-coming-soon-plugin/" class="wpdevart_upgrade">Upgrade</a>
140
  </div>
141
- <a target="blank" href="<?php echo wpdevart_comingsoon_support_url; ?>" class="wpdevart_support">Have any Questions? Get a quick support!</a>
142
- </div>
143
- <div id="coming_soon_enable" class="field switch">
144
- <label for="radio1" class="cb-enable <?php if($enable_disable=='on') echo 'selected'; ?>"><span>Enable</span></label>
145
- <label for="radio2" class="cb-disable <?php if($enable_disable=='off') echo 'selected'; ?>"><span>Disable</span></label>
146
- <span class="progress_enable_disable_buttons"><span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span><span class="error_massage"></span></span>
147
- <div style="clear:both"> </div>
148
- </div>
149
- <br>
150
-
151
- <div class="wp-table right_margin">
152
- <table class="wp-list-table widefat fixed posts">
153
- <thead>
154
- <tr>
155
- <th>
156
- <h4 class="live_previev">Parameters <a target="_blank" href="<?php echo site_url(); ?>/?special_variable_for_live_previev=sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd" style="color:#7052fb;">(Live Preview)</a></h4>
157
- <span class="save_all_paramss"> <button type="button" id="save_all_parametrs" class="save_all_section_parametrs button button-primary"><span class="save_button_span">Save All Sections</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button></span>
158
- </th>
159
- </tr>
160
- </thead>
161
- <tbody>
162
- <tr>
163
- <td>
164
- <div id="coming_soon_page">
165
- <div class="left_sections">
166
- <?php
167
- $this->generete_logo_section($this->generete_parametrs('coming_logo'));
168
- $this->generete_title_section($this->generete_parametrs('coming_title'));
169
- $this->generete_message_section($this->generete_parametrs('coming_message'));
170
- $this->generete_countdown_section($this->generete_parametrs('coming_countdown'));
171
- $this->generete_progressbar_section($this->generete_parametrs('coming_progressbar'));
172
- $this->generete_subscribe_section($this->generete_parametrs('coming_subscribe'));
173
- $this->generete_social_network_section($this->generete_parametrs('coming_social_networks'));
174
- $this->generete_link_to_tashboard_section($this->generete_parametrs('coming_link_to_dashboard'));
175
- $this->generete_message_footer_section($this->generete_parametrs('coming_message_footer'));
176
- ?>
177
- </div>
178
- <div class="right_sections">
179
- <?php
180
- $this->generete_content_section($this->generete_parametrs('coming_content'));
181
- $this->generete_background_section($this->generete_parametrs('coming_background'));
182
- $this->generete_except_section($this->generete_parametrs('except_page'));
183
- $this->generete_search_engine_section($this->generete_parametrs('search_engine_and_favicon'));
184
- ?>
185
- </div><div style="clear:both"></div>
186
- </td>
187
- </tr>
188
- </tbody>
189
- <tfoot>
190
- <tr>
191
- <th>
192
- <span class="save_all_paramss"><button type="button" id="save_all_parametrs" class="save_all_section_parametrs button button-primary"><span class="save_button_span">Save All Sections</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button></span>
193
- </th>
194
- </tr>
195
- </tfoot>
196
- </table>
197
- </div>
198
- <?php
199
- wp_nonce_field('coming_soon_options_nonce','coming_soon_options_nonce');
 
200
  }
201
-
202
  /*######################### Logo Function #################################*/
203
 
204
- public function generete_logo_section($page_parametrs){
205
 
206
- ?>
207
- <div class="main_parametrs_group_div closed_params " >
208
  <div class="head_panel_div" title="Click to toggle">
209
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/logo.png' ?>"></span>
210
  <span class="title_parametrs_group">Logo</span>
211
  <span class="enabled_or_disabled_parametr"></span>
212
- <span class="open_or_closed"></span>
213
  </div>
214
  <div class="inside_information_div">
215
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
216
- <tbody>
217
- <tr>
218
- <td>
219
- Show the Logo<span title="Use this option to show/hide your logo from Coming soon page." class="desription_class">?</span>
220
- </td>
221
- <td>
222
- <select id="coming_soon_page_logo_enable">
223
- <option <?php selected($page_parametrs['coming_soon_page_logo_enable'],'1') ?> value="1">Show</option>
224
- <option <?php selected($page_parametrs['coming_soon_page_logo_enable'],'0') ?> value="0">Hide</option>
225
- </select>
226
- </td>
227
- </tr>
228
- <tr>
229
- <td>
230
- Logo<span title="Click 'Upload' button to upload coming soon page logo." class="desription_class">?</span>
231
- </td>
232
- <td>
233
- <input type="text" class="upload" id="coming_soon_page_page_logo" name="coming_soon_page_page_logo" value="<?php echo $page_parametrs['coming_soon_page_page_logo'] ?>"/>
234
- <input class="upload-button button" type="button" value="Upload"/>
235
- </td>
236
- </tr>
237
- <tr>
238
- <td>
239
- Logo position<span class="pro_feature"> (pro)</span> <span title="Here you can choose Coming soon page logo position(Left, Center, Right)." class="desription_class">?</span>
240
- </td>
241
- <td>
242
- <select class="pro_select" id="coming_soon_page_logo_in_content_position">
243
- <option value="0">Left</option>
244
- <option selected="selected" value="1">Center</option>
245
- <option value="2">Right</option>
246
- </select>
247
- </td>
248
- </tr>
249
- <tr>
250
- <td>
251
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here your logo distance from the top." class="desription_class">?</span>
252
- </td>
253
- <td>
254
- <input class="pro_input" type="text" name="coming_soon_page_logo_top_distance" id="coming_soon_page_logo_top_distance" value="10">(Px)
255
- </td>
256
- </tr>
257
-
258
- <tr>
259
- <td>
260
- Logo maximum width<span class="pro_feature"> (pro)</span> <span title="Type here coming soon page logo maximum width(px)." class="desription_class">?</span>
261
- </td>
262
- <td>
263
- <input class="pro_input" type="text" name="coming_soon_page_logo_max_width" id="coming_soon_page_logo_max_width" value="">(Px)
264
- </td>
265
- </tr>
266
- <tr>
267
- <td>
268
- Logo maximum height<span class="pro_feature"> (pro)</span> <span title="Type here coming soon page logo maximum height(px)." class="desription_class">?</span>
269
- </td>
270
- <td>
271
- <input class="pro_input" type="text" name="coming_soon_page_logo_max_height" id="coming_soon_page_logo_max_height" value="210">(Px)
272
- </td>
273
- </tr>
274
- <tr>
275
- <td>
276
- Logo Animation type<span class="pro_feature"> (pro)</span> <span title="Select animation type for the coming soon page logo." class="desription_class">?</span>
277
- </td>
278
- <td>
279
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_logo_animation_type','none'); ?>
280
- </td>
281
- </tr>
282
- <tr>
283
- <td>
284
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here the Logo animation(in milliseconds) waiting time." class="desription_class">?</span>
285
- </td>
286
- <td>
287
- <input class="pro_input" type="text" name="coming_soon_page_logo_animation_after_time" id="coming_soon_page_logo_animation_after_time" value="0">(milliseconds)
288
- </td>
289
- </tr>
290
- </tbody>
291
  <tfoot>
292
  <tr>
293
  <th colspan="2" width="100%"><button type="button" id="coming_logo" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
294
  </tr>
295
- </tfoot>
296
  </table>
297
- </div>
298
- </div>
299
- <?php
300
  }
301
-
302
- /*######################### Maintenance page Title Function #################################*/
303
-
304
- public function generete_title_section($page_parametrs){
305
 
306
- ?>
307
- <div class="main_parametrs_group_div closed_params " >
 
 
 
 
308
  <div class="head_panel_div" title="Click to toggle">
309
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/title.png' ?>"></span>
310
  <span class="title_parametrs_group">Title</span>
311
  <span class="enabled_or_disabled_parametr"></span>
312
- <span class="open_or_closed"></span>
313
  </div>
314
  <div class="inside_information_div">
315
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
316
- <tbody>
317
- <tr>
318
- <td>
319
- Show the Title<span title="Use this option to show/hide title from Coming soon page." class="desription_class">?</span>
320
- </td>
321
- <td>
322
- <select id="coming_soon_page_title_enable">
323
- <option <?php selected($page_parametrs['coming_soon_page_title_enable'],'1') ?> value="1">Show</option>
324
- <option <?php selected($page_parametrs['coming_soon_page_title_enable'],'0') ?> value="0">Hide</option>
325
- </select>
326
- </td>
327
- </tr>
328
- <tr>
329
- <td>
330
- Title<span title="Type here coming soon page title." class="desription_class">?</span>
331
- </td>
332
- <td>
333
- <input type="text" name="coming_soon_page_page_title" id="coming_soon_page_page_title" value="<?php echo $page_parametrs['coming_soon_page_page_title'] ?>">
334
- </td>
335
- </tr>
336
- <tr >
337
- <td>
338
- Title color<span class="pro_feature"> (pro)</span> <span title="Select the title color." class="desription_class">?</span>
339
- </td>
340
- <td>
341
- <div class="wp-picker-container disabled_picker">
342
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
343
- </div>
344
- </td>
345
- </tr>
346
- <tr>
347
- <td>
348
- Title Font size<span class="pro_feature"> (pro)</span> <span title="Type here your coming soon page title font size(px)." class="desription_class">?</span>
349
- </td>
350
- <td>
351
- <input type="text" class="pro_input" name="coming_soon_page_page_title_font_size" id="coming_soon_page_page_title_font_size" value="55">(Px)
352
- </td>
353
- </tr>
354
- <tr>
355
- <td>
356
- Title Font-family<span class="pro_feature"> (pro)</span> <span title="Choose title font family." class="desription_class">?</span>
357
- </td>
358
- <td>
359
- <?php $this->create_select_element_for_font('coming_soon_page_page_title_font','Times New Roman,Times,Georgia,serif') ?>
360
- </td>
361
- </tr>
362
- <tr>
363
- <td>
364
- Title position<span class="pro_feature"> (pro)</span> <span title="Choose your coming soon page title position(Left, Center, Right)." class="desription_class">?</span>
365
- </td>
366
- <td>
367
- <select class="pro_select" id="coming_soon_page_title_in_content_position">
368
- <option value="0">Left</option>
369
- <option selected="selected" value="1">Center</option>
370
- <option value="2">Right</option>
371
- </select>
372
- </td>
373
- </tr>
374
- <tr>
375
- <td>
376
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here title field distance from the top." class="desription_class">?</span>
377
- </td>
378
- <td>
379
- <input class="pro_input" type="text" name="coming_soon_page_title_top_distance" id="coming_soon_page_title_top_distance" value="10">(Px)
380
- </td>
381
- </tr>
382
- <tr>
383
- <td>
384
- Title Animation type<span class="pro_feature"> (pro)</span> <span title="Choose title animation type." class="desription_class">?</span>
385
- </td>
386
- <td>
387
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_title_animation_type','none'); ?>
388
- </td>
389
- </tr>
390
- <tr>
391
- <td>
392
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here title animation(in milliseconds) waiting time." class="desription_class">?</span>
393
- </td>
394
- <td>
395
- <input class="pro_input" type="text" name="coming_soon_page_title_animation_after_time" id="coming_soon_page_title_animation_after_time" value="0">(milliseconds)
396
- </td>
397
- </tr>
398
- </tbody>
399
  <tfoot>
400
  <tr>
401
  <th colspan="2" width="100%"><button type="button" id="coming_title" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
402
  </tr>
403
- </tfoot>
404
  </table>
405
- </div>
406
- </div>
407
- <?php
408
  }
409
-
410
- /*######################### Maintenance page Content function #################################*/
411
 
412
- public function generete_message_section($page_parametrs){
413
 
414
- ?>
415
- <div class="main_parametrs_group_div closed_params " >
 
 
416
  <div class="head_panel_div" title="Click to toggle">
417
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/message.png' ?>"></span>
418
  <span class="title_parametrs_group">Message</span>
419
  <span class="enabled_or_disabled_parametr"></span>
420
- <span class="open_or_closed"></span>
421
  </div>
422
  <div class="inside_information_div">
423
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
424
- <tbody>
425
- <tr>
426
- <td>
427
- Show the Message <span title="Use this option to show/hide Message box from Coming soon page." class="desription_class">?</span>
428
- </td>
429
- <td>
430
- <select id="coming_soon_page_message_enable">
431
- <option <?php selected($page_parametrs['coming_soon_page_message_enable'],'1') ?> value="1">Show</option>
432
- <option <?php selected($page_parametrs['coming_soon_page_message_enable'],'0') ?> value="0">Hide</option>
433
- </select>
434
- </td>
435
- </tr>
436
- <tr>
437
- <td colspan="2">
438
- <b>Message</b>
439
- <div style="width:100%"> <?php wp_editor( stripslashes($page_parametrs['coming_soon_page_page_message']), 'coming_soon_page_page_message', $settings = array('media_buttons'=>false,'textarea_rows'=>5) ); ?></div>
440
- </td>
441
-
442
- </tr>
443
- <tr>
444
- <td>
445
- Message position<span class="pro_feature"> (pro)</span> <span title="Choose Message box position(Left, Center, Right)." class="desription_class">?</span>
446
- </td>
447
- <td>
448
- <select class="pro_select" id="coming_soon_page_message_in_content_position">
449
- <option value="0">Left</option>
450
- <option selected="selected" value="1">Center</option>
451
- <option value="2">Right</option>
452
- </select>
453
- </td>
454
- </tr>
455
- <tr>
456
- <td>
457
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Message box distance from the top." class="desription_class">?</span>
458
- </td>
459
- <td>
460
- <input class="pro_input" type="text" name="coming_soon_page_message_top_distance" id="coming_soon_page_message_top_distance" value="10">(Px)
461
- </td>
462
- </tr>
463
- <tr>
464
- <td>
465
- Message Animation type<span class="pro_feature"> (pro)</span> <span title="Choose the Message box animation type." class="desription_class">?</span>
466
- </td>
467
- <td>
468
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_message_animation_type','none'); ?>
469
- </td>
470
- </tr>
471
- <tr>
472
- <td>
473
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Message box animation waiting time(in milliseconds)." class="desription_class">?</span>
474
- </td>
475
- <td>
476
- <input type="text" name="coming_soon_page_message_animation_after_time" id="coming_soon_page_message_animation_after_time" value="0">(milliseconds)
477
- </td>
478
- </tr>
479
- </tbody>
480
  <tfoot>
481
  <tr>
482
  <th colspan="2" width="100%"><button type="button" id="coming_message" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
483
  </tr>
484
- </tfoot>
485
  </table>
486
- </div>
487
- </div>
488
- <?php
489
  }
490
-
491
- /*######################### Countdown Timer Function #################################*/
492
-
493
- public function generete_countdown_section($page_parametrs){
494
 
495
- ?>
496
- <div class="main_parametrs_group_div closed_params " >
 
 
 
 
497
  <div class="head_panel_div" title="Click to toggle">
498
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/timer.png' ?>"></span>
499
  <span class="title_parametrs_group">Countdown Timer <span class="pro_feature_label"> (Pro feature!)</span></span>
500
  <span class="enabled_or_disabled_parametr"></span>
501
- <span class="open_or_closed"></span>
502
  </div>
503
  <div class="inside_information_div">
504
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
505
- <tbody>
506
- <tr>
507
- <td>
508
- Display the Countdown Timer<span class="pro_feature"> (pro)</span> <span title="Show/hide Countdown from Coming soon page." class="desription_class">?</span>
509
- </td>
510
- <td>
511
- <select class="pro_select" id="coming_soon_page_countdown_enable">
512
- <option value="1">Show</option>
513
- <option selected="selected" value="0">Hide</option>
514
- </select>
515
- </td>
516
- </tr>
517
- <tr>
518
- <td>
519
- Text for the day field<span class="pro_feature"> (pro)</span> <span title="Type here Day field text." class="desription_class">?</span>
520
- </td>
521
- <td>
522
- <input class="pro_input" type="text" name="coming_soon_page_countdown_days_text" id="coming_soon_page_countdown_days_text" value="day">
523
- </td>
524
- </tr>
525
- <tr>
526
- <td>
527
- Text for the hour field<span class="pro_feature"> (pro)</span> <span title="Type here Hour field text." class="desription_class">?</span>
528
- </td>
529
- <td>
530
- <input class="pro_input" type="text" name="coming_soon_page_countdown_hourse_text" id="coming_soon_page_countdown_hourse_text" value="hour">
531
- </td>
532
- </tr>
533
- <tr>
534
- <td>
535
- Text for the minute field<span class="pro_feature"> (pro)</span> <span title="Type here Minute field text." class="desription_class">?</span>
536
- </td>
537
- <td>
538
- <input class="pro_input" type="text" name="coming_soon_page_countdown_minuts_text" id="coming_soon_page_countdown_minuts_text" value="minute">
539
- </td>
540
- </tr>
541
- <tr>
542
- <td>
543
- Text for the second field<span class="pro_feature"> (pro)</span> <span title="Type here Second field text." class="desription_class">?</span>
544
- </td>
545
- <td>
546
- <input class="pro_input" type="text" name="coming_soon_page_countdown_seconds_text" id="coming_soon_page_countdown_seconds_text" value="second">
547
- </td>
548
- </tr>
549
- <tr>
550
- <td>
551
- Countdown Timer date<span class="pro_feature"> (pro)</span> <span title="Type here the Countdown time(days, hour), then select the Countdown start date." class="desription_class">?</span>
552
- </td>
553
- <td style="vertical-align: top !important;">
554
-
555
- <span style="display:inline-block; width:45px;">
556
- <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Day" id="coming_soon_page_countdownday" size="2" value=""/>
557
- <small style="display:block">Day</small>
558
- </span>
559
- <span style="display:inline-block; width:65px;">
560
- <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Hour" id="coming_soon_page_countdownhour" size="5" value=""/>
561
- <small>Hour</small>
562
- </span>
563
- <span style="display:inline-block; width:100px;">
564
- <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Start date" id="coming_soon_page_countdownstart_day" size="9" value=""/>
565
- <small style="font-weight:bold;">Start date</small>
566
- </span>
567
- </td>
568
- </tr>
569
- <tr>
570
- <td>
571
- <span style="font-weight:bold;">After Countdown Timer expired</span><span class="pro_feature"> (pro)</span> <span title="Choose the action you need when Countdown timer expired(Disable coming soon or only hide Countdown)." class="desription_class">?</span>
572
- </td>
573
- <td>
574
- <select class="pro_select" id="coming_soon_page_countdownstart_on" >
575
- <option value="on">Disable coming soon</option>
576
- <option selected="selected" value="off">Hide Countdown</option>
577
- </select>
578
- </td>
579
- </tr>
580
- <tr>
581
- <td>
582
- Countdown Timer position<span class="pro_feature"> (pro)</span> <span title="Choose position for countdown(Left, Center, Right)." class="desription_class">?</span>
583
- </td>
584
- <td>
585
- <select class="pro_select" id="coming_soon_page_countdown_in_content_position">
586
- <option value="0">Left</option>
587
- <option selected="selected" value="1">Center</option>
588
- <option value="2">Right</option>
589
- </select>
590
- </td>
591
- </tr>
592
- <tr>
593
- <td>
594
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here countdown distance from the top." class="desription_class">?</span>
595
- </td>
596
- <td>
597
- <input class="pro_input" type="text" name="coming_soon_page_countdown_top_distance" id="coming_soon_page_countdown_top_distance" value="10">(Px)
598
- </td>
599
- </tr>
600
-
601
- <tr>
602
- <td>
603
- Countdown Timer Buttons type<span class="pro_feature"> (pro)</span> <span title="Choose the countdown buttons type(button, circle, vertical slider)" class="desription_class">?</span>
604
- </td>
605
- <td>
606
- <select class="pro_select" id="coming_soon_page_countdown_type" class="coming_set_hiddens">
607
- <option selected="selected" value="button">Button</option>
608
- <option value="circle">Circle</option>
609
- <option value="vertical_slide">Vertical Slider</option>
610
- </select>
611
- </td>
612
- </tr>
613
-
614
- <tr class="tr_button tr_circle tr_vertical_slide">
615
- <td>
616
- Countdown Timer text color<span class="pro_feature"> (pro)</span> <span title="Select the countdown text color." class="desription_class">?</span>
617
- </td>
618
- <td>
619
- <div class="wp-picker-container disabled_picker">
620
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
621
- </div>
622
- </td>
623
- </tr>
624
- <tr class="tr_button tr_circle tr_vertical_slide">
625
- <td>
626
- Countdown Timer background color<span class="pro_feature"> (pro)</span> <span title="Select the countdown background color." class="desription_class">?</span>
627
- </td>
628
- <td>
629
- <div class="wp-picker-container disabled_picker">
630
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
631
- </div>
632
- </td>
633
- </tr>
634
- <tr class="tr_circle">
635
- <td>
636
- Countdown Timer size<span class="pro_feature"> (pro)</span> <span title="Configure the countdown size." class="desription_class">?</span>
637
- </td>
638
- <td>
639
- <input class="pro_input" type="text" name="coming_soon_page_countdown_circle_size" id="coming_soon_page_countdown_circle_size" value="120">(Px)
640
- </td>
641
- </tr>
642
-
643
- <tr class="tr_circle">
644
- <td>
645
- Countdown Timer border width<span class="pro_feature"> (pro)</span> <span title="Select the countdown border width for circle buttons(only apears when you choose Countedown circle buttons)(px)." class="desription_class">?</span>
646
- </td>
647
- <td>
648
- <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_countdown_circle_border" value="3" id="coming_soon_page_countdown_circle_border" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
649
- <div class="slider_div"></div>
650
- </td>
651
- </tr>
652
- <tr class="tr_button">
653
- <td>
654
- Countdown Timer border radius<span class="pro_feature"> (pro)</span> <span title="Type here the countdown buttons border radius(px)." class="desription_class">?</span>
655
- </td>
656
- <td>
657
- <input class="pro_input" type="text" name="countdown_border_radius" id="countdown_border_radius" value="15">(Px)
658
- </td>
659
- </tr>
660
- <tr class="tr_button tr_vertical_slide">
661
- <td>
662
- Countdown Timer font-size<span class="pro_feature"> (pro)</span> <span title="Type here the countedow text font-size(px)." class="desription_class">?</span>
663
- </td>
664
- <td>
665
- <input class="pro_input" type="text" name="countdown_font_size" id="countdown_font_size" value="35">(Px)
666
- </td>
667
- </tr>
668
-
669
- <tr class="tr_button tr_circle tr_vertical_slide">
670
- <td>
671
- Countdown Timer Font-family<span class="pro_feature"> (pro)</span> <span title="Select the countdown text Font family." class="desription_class">?</span>
672
- </td>
673
- <td>
674
- <?php $this->create_select_element_for_font('coming_soon_page_countdown_font_famaly','monospace') ?>
675
- </td>
676
- </tr>
677
- <tr>
678
- <td>
679
- Countdown Timer animation type<span class="pro_feature"> (pro)</span> <span title="Select animation type for countdown." class="desription_class">?</span>
680
- </td>
681
- <td>
682
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_countdown_animation_type','none'); ?>
683
- </td>
684
- </tr>
685
- <tr>
686
- <td>
687
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for countdown animation(in milliseconds)." class="desription_class">?</span>
688
- </td>
689
- <td>
690
- <input type="text" class="pro_input" name="coming_soon_page_countdown_animation_after_time" id="coming_soon_page_countdown_animation_after_time" value="0">(milliseconds)
691
- </td>
692
- </tr>
693
- </tbody>
694
  <tfoot>
695
  <tr>
696
  <th colspan="2" width="100%"><button type="button" id="coming_countdown" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
697
  </tr>
698
- </tfoot>
699
  </table>
700
- </div>
701
- </div>
702
- <?php
703
  }
704
-
705
- /*######################### Maintenance page Progress bar function #################################*/
706
 
707
- public function generete_progressbar_section($page_parametrs){
708
 
709
- ?>
710
- <div class="main_parametrs_group_div closed_params " >
 
 
711
  <div class="head_panel_div" title="Click to toggle">
712
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/progressbar.png' ?>"></span>
713
- <span class="title_parametrs_group">Progress bar<span class="pro_feature_label"> (Pro feature!)</span></span>
714
  <span class="enabled_or_disabled_parametr"></span>
715
- <span class="open_or_closed"></span>
716
  </div>
717
  <div class="inside_information_div">
718
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
719
- <tbody>
720
- <tr>
721
- <td>
722
- Show the Progress bar<span class="pro_feature"> (pro)</span> <span title="Use this option to show/hide the Progress bar from the Coming soon page." class="desription_class">?</span>
723
- </td>
724
- <td>
725
- <select class="pro_select" id="coming_soon_page_progressbar_enable">
726
- <option value="1">Show</option>
727
- <option selected="selected" value="0">Hide</option>
728
- </select>
729
- </td>
730
- </tr>
731
- <tr>
732
- <td>
733
- Progress bar processing percentage<span class="pro_feature"> (pro)</span> <span title="Use this option to select the Progress bar processing percentage." class="desription_class">?</span>
734
- </td>
735
- <td>
736
- <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_progressbar_initial_pracent" value="25" id="coming_soon_page_progressbar_initial_pracent" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
737
- <div class="slider_div"></div>
738
- </td>
739
- </tr>
740
- <tr>
741
- <td>
742
- Progress bar Width<span class="pro_feature"> (pro)</span> <span title="Type here Progress bar width(px)." class="desription_class">?</span>
743
- </td>
744
- <td>
745
- <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_progressbar_width" value="100" id="coming_soon_page_progressbar_width" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
746
- <div class="slider_div"></div>
747
- </td>
748
- </tr>
749
- <tr>
750
- <td>
751
- Progress bar position<span class="pro_feature"> (pro)</span> <span title="Choose position for Progress bar(Left, Center, Right)." class="desription_class">?</span>
752
- </td>
753
- <td>
754
- <select class="pro_select" id="coming_soon_page_progressbar_in_content_position">
755
- <option value="0">Left</option>
756
- <option selected="selected" value="1">Center</option>
757
- <option value="2">Right</option>
758
- </select>
759
- </td>
760
- </tr>
761
- <tr>
762
- <td>
763
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here the Progress bar distance from the top." class="desription_class">?</span>
764
- </td>
765
- <td>
766
- <input class="pro_input" type="text" name="coming_soon_page_progressbar_top_distance" id="coming_soon_page_progressbar_top_distance" value="10">(Px)
767
- </td>
768
- </tr>
769
- <tr>
770
- <td>
771
- Progress bar load color<span class="pro_feature"> (pro)</span> <span title="Select the progress bar load color." class="desription_class">?</span>
772
- </td>
773
- <td>
774
- <div class="wp-picker-container disabled_picker">
775
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
776
- </div>
777
- </td>
778
- </tr>
779
- <tr>
780
- <td>
781
- Border color<span class="pro_feature"> (pro)</span> <span title="Select the Progress bar border color." class="desription_class">?</span>
782
- </td>
783
- <td>
784
- <div class="wp-picker-container disabled_picker">
785
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
786
- </div>
787
- </td>
788
- </tr>
789
- <tr>
790
- <td>
791
- Border width<span class="pro_feature"> (pro)</span> <span title="Set progress bar border width(px)." class="desription_class">?</span>
792
- </td>
793
- <td>
794
- <input class="pro_input" type="text" name="coming_soon_page_progressbar_border_width" id="coming_soon_page_progressbar_border_width" value="3">(Px)
795
- </td>
796
- </tr>
797
- <tr>
798
- <td>
799
- Border radius<span class="pro_feature"> (pro)</span> <span title="Set the progress bar border radius(px)." class="desription_class">?</span>
800
- </td>
801
- <td>
802
- <input class="pro_input" type="text" name="coming_soon_page_progressbar_border_radius" id="coming_soon_page_progressbar_border_radius" value="15">(Px)
803
- </td>
804
- </tr>
805
-
806
- <tr>
807
- <td>
808
- Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Progress bar." class="desription_class">?</span>
809
- </td>
810
- <td>
811
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_progressbar_animation_type','none'); ?>
812
- </td>
813
- </tr>
814
- <tr>
815
- <td>
816
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Progress bar animation(in milliseconds)." class="desription_class">?</span>
817
- </td>
818
- <td>
819
- <input class="pro_input" type="text" name="coming_soon_page_progressbar_animation_after_time" id="coming_soon_page_progressbar_animation_after_time" value="0">(milliseconds)
820
- </td>
821
- </tr>
822
-
823
- </tbody>
824
  <tfoot>
825
  <tr>
826
  <th colspan="2" width="100%"><button type="button" id="coming_progressbar" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
827
  </tr>
828
- </tfoot>
829
  </table>
830
- </div>
831
- </div>
832
- <?php
833
  }
834
-
835
  /*######################### Maintenance page Subscribe function #################################*/
836
-
837
- public function generete_subscribe_section($page_parametrs){
838
 
839
- ?>
840
- <div class="main_parametrs_group_div closed_params " >
 
 
841
  <div class="head_panel_div" title="Click to toggle">
842
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/subscribe.png' ?>"></span>
843
- <span class="title_parametrs_group">Subscribe Form (Mailing list)<span class="pro_feature_label"> (Pro feature!)</span></span>
844
  <span class="enabled_or_disabled_parametr"></span>
845
- <span class="open_or_closed"></span>
846
  </div>
847
  <div class="inside_information_div">
848
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
849
- <tbody>
850
- <tr>
851
- <td>
852
- Show the Subscribe Form<span class="pro_feature"> (pro)</span> <span title="Use this option to show or hide Subscribe Form from Coming soon page." class="desription_class">?</span>
853
- </td>
854
- <td>
855
- <select class="pro_select" id="enable_mailing_list">
856
- <option value="on">Show</option>
857
- <option selected="selected" value="off">Hide</option>
858
- </select>
859
- </td>
860
- </tr>
861
- <tr>
862
- <td>
863
- First name<span class="pro_feature"> (pro)</span> <span title="Type here text for first name field." class="desription_class">?</span>
864
- </td>
865
- <td>
866
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_firstname" id="coming_soon_page_subscribe_firstname" value="First name">
867
- </td>
868
- </tr>
869
- <tr>
870
- <td>
871
- Last name<span class="pro_feature"> (pro)</span> <span title="Type here text for last name field." class="desription_class">?</span>
872
- </td>
873
- <td>
874
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_lastname" id="coming_soon_page_subscribe_lastname" value="Last name">
875
- </td>
876
- </tr>
877
- <tr>
878
- <td>
879
- Text for the email field <span class="pro_feature"> (pro)</span> <span title="Type here text for email field." class="desription_class">?</span>
880
- </td>
881
- <td>
882
- <input class="pro_input" type="text" name="mailing_list_value_of_emptyt" id="mailing_list_value_of_emptyt" value="Email">
883
- </td>
884
- </tr>
885
- <tr>
886
- <td>
887
- Text for the Send button<span class="pro_feature"> (pro)</span> <span title="Type here the Send button text." class="desription_class">?</span>
888
- </td>
889
- <td>
890
- <input class="pro_input" type="text" name="mailing_list_button_value" id="mailing_list_button_value" value="Subscribe">
891
- </td>
892
- </tr>
893
- <tr>
894
- <td>
895
- Success email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit the correct email." class="desription_class">?</span>
896
- </td>
897
- <td>
898
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_sucsess" id="coming_soon_page_subscribe_after_text_sucsess" value="You Have Been Successfully Subscribed!">
899
- </td>
900
- </tr>
901
- <tr>
902
- <td>
903
- Existing email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users type already submitted email." class="desription_class">?</span>
904
- </td>
905
- <td>
906
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_alredy_exsist" id="coming_soon_page_subscribe_after_text_alredy_exsist" value="You're Already Subscribed!">
907
- </td>
908
- </tr>
909
- <tr>
910
- <td>
911
- Blank email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit a blank field. " class="desription_class">?</span>
912
- </td>
913
- <td>
914
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_none" id="coming_soon_page_subscribe_after_text_none" value="Please Type Your Email">
915
- </td>
916
- </tr>
917
- <tr>
918
- <td>
919
- Invalid email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit wrong email." class="desription_class">?</span>
920
- </td>
921
- <td>
922
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_invalid" id="coming_soon_page_subscribe_after_text_invalid" value="Email Doesn't Exist">
923
- </td>
924
- </tr>
925
-
926
- <tr>
927
- <td>
928
- Subscribe Form position<span class="pro_feature"> (pro)</span> <span title="Choose position for Subscribe Form(Left, Center, Right)." class="desription_class">?</span>
929
- </td>
930
- <td>
931
- <select class="pro_select" id="coming_soon_page_subscribe_in_content_position">
932
- <option value="0">Left</option>
933
- <option selected="selected" value="1">Center</option>
934
- <option value="2">Right</option>
935
- </select>
936
- </td>
937
- </tr>
938
- <tr>
939
- <td>
940
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Subscribe Form distance from the top(px). " class="desription_class">?</span>
941
- </td>
942
- <td>
943
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_top_distance" id="coming_soon_page_subscribe_top_distance" value="10">(Px)
944
- </td>
945
- </tr>
946
- </tr>
947
- <tr>
948
- <td>
949
- Font Size<span class="pro_feature"> (pro)</span> <span title="Type here font size for all texts in Subscribe Form(px)." class="desription_class">?</span>
950
- </td>
951
- <td>
952
- <input class="pro_input" type="text" name="sendmail_input_font_size" id="sendmail_input_font_size" value="14">(Px)
953
- </td>
954
- </tr>
955
- <tr>
956
- <td>
957
- Email field border radius<span class="pro_feature"> (pro)</span> <span title="Type here border radius for email field." class="desription_class">?</span>
958
- </td>
959
- <td>
960
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_button_radius" id="coming_soon_page_subscribe_button_radius" value="0">(Px)
961
- </td>
962
- </tr>
963
- <tr>
964
- <td>
965
- Input maximum width<span class="pro_feature"> (pro)</span> <span title="Type here maximum with for input field(px)." class="desription_class">?</span>
966
- </td>
967
- <td>
968
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_input_max_width" id="coming_soon_page_subscribe_input_max_width" value="350">(Px)
969
- </td>
970
- </tr>
971
-
972
- <tr>
973
- <td>
974
- Font family<span class="pro_feature"> (pro)</span> <span title="Type here font family for all texts in Subscribe Form." class="desription_class">?</span>
975
- </td>
976
- <td>
977
- <?php $this->create_select_element_for_font('coming_soon_page_subscribe_font_famely','monospace') ?>
978
- </td>
979
- </tr>
980
- <tr>
981
- <td>
982
- Input field border color<span class="pro_feature"> (pro)</span> <span title="Select the input field border color." class="desription_class">?</span>
983
- </td>
984
- <td>
985
- <div class="wp-picker-container disabled_picker">
986
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
987
- </div>
988
- </td>
989
- </tr>
990
- <tr>
991
- <td>
992
- Placeholder text color<span class="pro_feature"> (pro)</span> <span title="Select default text color for input fields. " class="desription_class">?</span>
993
- </td>
994
- <td>
995
- <div class="wp-picker-container disabled_picker">
996
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
997
- </div>
998
- </td>
999
- </tr>
1000
- <tr>
1001
- <td>
1002
- Send button bg color<span class="pro_feature"> (pro)</span> <span title="Select the send button background color." class="desription_class">?</span>
1003
- </td>
1004
- <td>
1005
- <div class="wp-picker-container disabled_picker">
1006
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1007
- </div>
1008
- </td>
1009
- </tr>
1010
- <tr>
1011
- <td>
1012
- Send button text color<span class="pro_feature"> (pro)</span> <span title="Select the send button text color." class="desription_class">?</span>
1013
- </td>
1014
- <td>
1015
- <div class="wp-picker-container disabled_picker">
1016
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
1017
- </div>
1018
- </td>
1019
- </tr>
1020
-
1021
- <tr>
1022
- <td>
1023
- Input field text color<span class="pro_feature"> (pro)</span> <span title="Choose the input field text color." class="desription_class">?</span>
1024
- </td>
1025
- <td>
1026
- <div class="wp-picker-container disabled_picker">
1027
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
1028
- </div>
1029
- </td>
1030
- </tr>
1031
- <tr>
1032
- <td>
1033
- After submit text color<span class="pro_feature"> (pro)</span> <span title="Select color of the text, that will apear after submit." class="desription_class">?</span>
1034
- </td>
1035
- <td>
1036
- <div class="wp-picker-container disabled_picker">
1037
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1038
- </div>
1039
- </td>
1040
- </tr>
1041
- <tr>
1042
- <td>
1043
- Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Subscribe Form." class="desription_class">?</span>
1044
- </td>
1045
- <td>
1046
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_subscribe_animation_type','none'); ?>
1047
- </td>
1048
- </tr>
1049
- <tr>
1050
- <td>
1051
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Subscribe Form animation waiting time(in milliseconds)." class="desription_class">?</span>
1052
- </td>
1053
- <td>
1054
- <input class="pro_input" type="text" name="coming_soon_page_subscribe_animation_after_time" id="coming_soon_page_subscribe_animation_after_time" value="0">(milliseconds)
1055
- </td>
1056
- </tr>
1057
-
1058
- </tbody>
1059
  <tfoot>
1060
  <tr>
1061
  <th colspan="2" width="100%"><button type="button" id="coming_subscribe" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1062
  </tr>
1063
- </tfoot>
1064
  </table>
1065
- </div>
1066
- </div>
1067
- <?php
1068
  }
1069
- /*######################### Socials Buttons Function #################################*/
1070
- public function generete_social_network_section($page_parametrs){
1071
 
1072
- ?>
1073
- <div class="main_parametrs_group_div closed_params " >
1074
  <div class="head_panel_div" title="Click to toggle">
1075
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/social_network.png' ?>"></span>
1076
  <span class="title_parametrs_group">Socials buttons</span>
1077
  <span class="enabled_or_disabled_parametr"></span>
1078
- <span class="open_or_closed"></span>
1079
  </div>
1080
  <div class="inside_information_div">
1081
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1082
- <tbody>
1083
- <tr>
1084
- <td>
1085
- Show social buttons <span title="Show or hide social buttons on coming soon page." class="desription_class">?</span>
1086
- </td>
1087
- <td>
1088
- <select id="coming_soon_page_socialis_enable">
1089
- <option <?php selected($page_parametrs['coming_soon_page_socialis_enable'],'1') ?> value="1">Show</option>
1090
- <option <?php selected($page_parametrs['coming_soon_page_socialis_enable'],'0') ?> value="0">Hide</option>
1091
- </select>
1092
- </td>
1093
- </tr>
1094
- <tr>
1095
- <td>
1096
- Open in new tab <span title="If you want to open social page in a new tab then enable this option" class="desription_class">?</span>
1097
- </td>
1098
- <td>
1099
- <select id="coming_soon_page_open_new_tabe">
1100
- <option <?php selected($page_parametrs['coming_soon_page_open_new_tabe'],'1') ?> value="1">Enable</option>
1101
- <option <?php selected($page_parametrs['coming_soon_page_open_new_tabe'],'0') ?> value="0">Disable</option>
1102
- </select>
1103
- </td>
1104
- </tr>
1105
- <tr>
1106
- <td>
1107
- Facebook url <span title="Type here Facebook page url." class="desription_class">?</span>
1108
- </td>
1109
- <td>
1110
- <input type="text" name="coming_soon_page_facebook" id="coming_soon_page_facebook" value="<?php echo $page_parametrs['coming_soon_page_facebook'] ?>">
1111
- </td>
1112
- </tr>
1113
- <tr>
1114
- <td>
1115
- Facebook img url<span class="pro_feature"> (pro)</span> <span title="Insert here Facebook icon url or upload it." class="desription_class">?</span>
1116
- </td>
1117
- <td>
1118
- <input class="pro_input" type="text" class="upload" id="social_facbook_bacground_image" name="social_facbook_bacground_image" value=""/>
1119
- <input class="button pro_input" type="button" value="Upload"/>
1120
- </td>
1121
- </tr>
1122
- <tr>
1123
- <td>
1124
- Twitter url <span title="Type here Twitter page url." class="desription_class">?</span>
1125
- </td>
1126
- <td>
1127
- <input type="text" name="coming_soon_page_twitter" id="coming_soon_page_twitter" value="<?php echo $page_parametrs['coming_soon_page_twitter'] ?>">
1128
- </td>
1129
- </tr>
1130
- <tr>
1131
- <td>
1132
- Twitter img url<span class="pro_feature"> (pro)</span> <span title="Insert here Twitter icon url or upload it." class="desription_class">?</span>
1133
- </td>
1134
- <td>
1135
- <input type="text" class="pro_input" class="upload" id="social_twiter_bacground_image" name="social_twiter_bacground_image" value=""/>
1136
- <input class="pro_input button" type="button" value="Upload"/>
1137
- </td>
1138
- </tr>
1139
- <tr>
1140
- <td>
1141
- YouTube url <span title="Type here YouTube page url." class="desription_class">?</span>
1142
- </td>
1143
- <td>
1144
- <input type="text" name="coming_soon_page_youtube" id="coming_soon_page_youtube" value="<?php echo $page_parametrs['coming_soon_page_youtube'] ?>">
1145
- </td>
1146
- </tr>
1147
- <tr>
1148
- <td>
1149
- YouTube img url<span class="pro_feature"> (pro)</span> <span title="Insert here YouTube icon url or upload it." class="desription_class">?</span>
1150
- </td>
1151
- <td>
1152
- <input type="text" class="pro_input" class="upload" id="social_youtobe_bacground_image" name="social_youtobe_bacground_image" value=""/>
1153
- <input class="pro_input button" type="button" value="Upload"/>
1154
- </td>
1155
- </tr>
1156
- <tr>
1157
- <td>
1158
- Instagram url <span title="Type here Instagram page url." class="desription_class">?</span>
1159
- </td>
1160
- <td>
1161
- <input type="text" name="coming_soon_page_instagram" id="coming_soon_page_instagram" value="<?php echo $page_parametrs['coming_soon_page_instagram'] ?>">
1162
- </td>
1163
- </tr>
1164
- <tr>
1165
- <td>
1166
- Instagram img url<span class="pro_feature"> (pro)</span> <span title="Insert here Instagram icon url or upload it." class="desription_class">?</span>
1167
- </td>
1168
- <td>
1169
- <input type="text" class="pro_input" class="upload" id="social_instagram_bacground_image" name="social_instagram_bacground_image" value=""/>
1170
- <input class="pro_input button" type="button" value="Upload"/>
1171
- </td>
1172
- </tr>
1173
- <tr>
1174
- <td>
1175
- Social buttons position<span class="pro_feature"> (pro)</span> <span title="Choose position for Social buttons(Left, Center, Right)." class="desription_class">?</span>
1176
- </td>
1177
- <td>
1178
- <select class="pro_select" id="coming_soon_page_socialis_in_content_position">
1179
- <option value="0">Left</option>
1180
- <option selected="selected" value="1">Center</option>
1181
- <option value="2">Right</option>
1182
- </select>
1183
- </td>
1184
- </tr>
1185
- <tr>
1186
- <td>
1187
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Social buttons distance from the top." class="desription_class">?</span>
1188
- </td>
1189
- <td>
1190
- <input class="pro_input" type="text" name="coming_soon_page_socialis_top_distance" placeholder="Enter Distance" id="coming_soon_page_socialis_top_distance" value="10">(Px)
1191
- </td>
1192
- </tr>
1193
-
1194
- <tr>
1195
- <td>
1196
- Social buttons maximum width<span class="pro_feature"> (pro)</span> <span title="Type here maximum width for Social buttons." class="desription_class">?</span>
1197
- </td>
1198
- <td>
1199
- <input class="pro_input" type="text" name="coming_soon_page_socialis_max_width" id="coming_soon_page_socialis_max_width" value="">(Px)
1200
- </td>
1201
- </tr>
1202
- <tr>
1203
- <td>
1204
- Social buttons maximum height<span class="pro_feature"> (pro)</span> <span title="Type here maximum height for Social buttons." class="desription_class">?</span>
1205
- </td>
1206
- <td>
1207
- <input class="pro_input" type="text" name="coming_soon_page_socialis_max_height" id="coming_soon_page_socialis_max_height" value="">(Px)
1208
- </td>
1209
- </tr>
1210
- <tr>
1211
- <td>
1212
- Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Social buttons." class="desription_class">?</span>
1213
- </td>
1214
- <td>
1215
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_socialis_animation_type','none'); ?>
1216
- </td>
1217
- </tr>
1218
- <tr>
1219
- <td>
1220
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Social buttons animation waiting time(in milliseconds)." class="desription_class">?</span>
1221
- </td>
1222
- <td>
1223
- <input class="pro_input" type="text" name="coming_soon_page_socialis_animation_after_time" id="coming_soon_page_socialis_animation_after_time" value="0">(milliseconds)
1224
- </td>
1225
- </tr>
1226
- </tbody>
1227
  <tfoot>
1228
  <tr>
1229
  <th colspan="2" width="100%"><button type="button" id="coming_social_networks" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1230
  </tr>
1231
- </tfoot>
1232
  </table>
1233
- </div>
1234
- </div>
1235
- <?php
1236
  }
1237
- /*######################### Link To Admin Function #################################*/
1238
- public function generete_link_to_tashboard_section($page_parametrs){
1239
 
1240
- ?>
1241
- <div class="main_parametrs_group_div closed_params " >
1242
  <div class="head_panel_div" title="Click to toggle">
1243
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/link_dashboard.png' ?>"></span>
1244
- <span class="title_parametrs_group">Link to Admin<span class="pro_feature_label"> (Pro feature!)</span></span>
1245
  <span class="enabled_or_disabled_parametr"></span>
1246
- <span class="open_or_closed"></span>
1247
  </div>
1248
  <div class="inside_information_div">
1249
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1250
- <tbody>
1251
- <tr>
1252
- <td>
1253
- Show Link to Admin<span class="pro_feature"> (pro)</span> <span title="Choose to show or hide Link To Admin." class="desription_class">?</span>
1254
- </td>
1255
- <td>
1256
- <select class="pro_select" id="coming_soon_page_link_to_dashboard_enable">
1257
- <option value="1">Show</option>
1258
- <option selected="selected" value="0">Hide</option>
1259
- </select>
1260
- </td>
1261
- </tr>
1262
- <tr>
1263
- <td>
1264
- Link To Admin text<span class="pro_feature"> (pro)</span> <span title="Type here Link To Admin text." class="desription_class">?</span>
1265
- </td>
1266
- <td>
1267
- <input class="pro_input" type="text" name="coming_soon_page_page_link_to_dashboard" placeholder="Enter Link Name" id="coming_soon_page_page_link_to_dashboard" value="Link To Admin">
1268
- </td>
1269
- </tr>
1270
- <tr >
1271
- <td>
1272
- Text color<span class="pro_feature"> (pro)</span> <span title="Choose text color." class="desription_class">?</span>
1273
- </td>
1274
- <td>
1275
- <div class="wp-picker-container disabled_picker">
1276
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1277
- </div>
1278
- </td>
1279
- </tr>
1280
- <tr>
1281
- <td>
1282
- Font Size<span class="pro_feature"> (pro)</span> <span title="Type here text Font Size." class="desription_class">?</span>
1283
- </td>
1284
- <td>
1285
- <input type="text" name="coming_soon_page_page_link_to_dashboard_font_size" id="coming_soon_page_page_link_to_dashboard_font_size" value="55">(Px)
1286
- </td>
1287
- </tr>
1288
- <tr>
1289
- <td>
1290
- Font family<span class="pro_feature"> (pro)</span> <span title="Select Font family for Link To Admin." class="desription_class">?</span>
1291
- </td>
1292
- <td>
1293
- <?php $this->create_select_element_for_font('coming_soon_page_page_link_to_dashboard_font','monospace') ?>
1294
- </td>
1295
- </tr>
1296
- <tr>
1297
- <td>
1298
- Position<span class="pro_feature"> (pro)</span> <span title="Choose position for Link To Admin section(Left, Center, Right)." class="desription_class">?</span>
1299
- </td>
1300
- <td>
1301
- <select id="coming_soon_page_link_to_dashboard_in_content_position">
1302
- <option value="0">Left</option>
1303
- <option selected="selected" value="1">Center</option>
1304
- <option value="2">Right</option>
1305
- </select>
1306
- </td>
1307
- </tr>
1308
- <tr>
1309
- <td>
1310
- Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Link To Admin distance from the top." class="desription_class">?</span>
1311
- </td>
1312
- <td>
1313
- <input type="text" name="coming_soon_page_link_to_dashboard_top_distance" id="coming_soon_page_link_to_dashboard_top_distance" value="10">(Px)
1314
- </td>
1315
- </tr>
1316
- <tr>
1317
- <td>
1318
- Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Link To Admin." class="desription_class">?</span>
1319
- </td>
1320
- <td>
1321
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_link_to_dashboard_animation_type','none'); ?>
1322
- </td>
1323
- </tr>
1324
- <tr>
1325
- <td>
1326
- Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Link To Admin animation(in milliseconds)." class="desription_class">?</span>
1327
- </td>
1328
- <td>
1329
- <input type="text" name="coming_soon_page_link_to_dashboard_animation_after_time" id="coming_soon_page_link_to_dashboard_animation_after_time" value="0">(milliseconds)
1330
- </td>
1331
- </tr>
1332
- </tbody>
1333
  <tfoot>
1334
  <tr>
1335
  <th colspan="2" width="100%"><button type="button" id="coming_link_to_dashboard" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1336
  </tr>
1337
- </tfoot>
1338
  </table>
1339
- </div>
1340
- </div>
1341
- <?php
1342
  }
1343
  /*######################### Footer Message Part #################################*/
1344
- public function generete_message_footer_section($page_parametrs){
1345
 
1346
- ?>
1347
- <div class="main_parametrs_group_div closed_params " >
1348
  <div class="head_panel_div" title="Click to toggle">
1349
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/message.png' ?>"></span>
1350
  <span class="title_parametrs_group">Footer Message</span>
1351
  <span class="enabled_or_disabled_parametr"></span>
1352
- <span class="open_or_closed"></span>
1353
  </div>
1354
  <div class="inside_information_div">
1355
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1356
- <tbody>
1357
- <tr>
1358
- <td>
1359
- Footer Message Section <span title="Choose to show or hide Footer Message box from Coming soon page." class="desription_class">?</span>
1360
- </td>
1361
- <td>
1362
- <select id="coming_soon_page_message_footer_enable">
1363
- <option <?php selected($page_parametrs['coming_soon_page_message_footer_enable'],'1') ?> value="1">Show</option>
1364
- <option <?php selected($page_parametrs['coming_soon_page_message_footer_enable'],'0') ?> value="0">Hide</option>
1365
- </select>
1366
- </td>
1367
- </tr>
1368
- <tr>
1369
- <td colspan="2">
1370
- <b>Footer Message Content</b>
1371
- <div style="width:100%"> <?php wp_editor( stripslashes($page_parametrs['coming_soon_page_page_message_footer']), 'coming_soon_page_page_message_footer', $settings = array('media_buttons'=>false,'textarea_rows'=>5) ); ?></div>
1372
- </td>
1373
-
1374
- </tr>
1375
- <tr>
1376
- <td>
1377
- Footer Message position <span title="Choose position for Footer Message box(Left, Center, Right)." class="desription_class">?</span>
1378
- </td>
1379
- <td>
1380
- <select id="coming_soon_page_message_footer_in_content_position">
1381
- <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'],'0') ?> value="0">Left</option>
1382
- <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'],'1') ?> value="1">Center</option>
1383
- <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'],'2') ?> value="2">Right</option>
1384
- </select>
1385
- </td>
1386
- </tr>
1387
- <tr>
1388
- <td>
1389
- Distance from the top <span title="Type here Footer Message box distance from the top." class="desription_class">?</span>
1390
- </td>
1391
- <td>
1392
- <input type="text" name="coming_soon_page_message_footer_top_distance" id="coming_soon_page_message_footer_top_distance" value="<?php echo $page_parametrs['coming_soon_page_message_footer_top_distance'] ?>">(Px)
1393
- </td>
1394
- </tr>
1395
- <tr>
1396
- <td>
1397
- Animation type of the Footer Message <span class="pro_feature"> (pro)</span> <span title="Choose animation type for Footer Message box." class="desription_class">?</span>
1398
- </td>
1399
- <td>
1400
- <?php $this->create_select_element_for_showing_effect('coming_soon_page_message_footer_animation_type','none'); ?>
1401
- </td>
1402
- </tr>
1403
- <tr>
1404
- <td>
1405
- Waiting time of Animation <span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Footer Message box animation(in milliseconds)." class="desription_class">?</span>
1406
- </td>
1407
- <td>
1408
- <input type="text" name="coming_soon_page_message_footer_animation_after_time" id="coming_soon_page_message_footer_animation_after_time" value="0">(milliseconds)
1409
- </td>
1410
- </tr>
1411
- </tbody>
1412
  <tfoot>
1413
  <tr>
1414
  <th colspan="2" width="100%"><button type="button" id="coming_message_footer" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1415
  </tr>
1416
- </tfoot>
1417
  </table>
1418
- </div>
1419
- </div>
1420
- <?php
1421
  }
1422
- /*######################### Search Engine Optimization Part #################################*/
1423
- public function generete_search_engine_section($page_parametrs){
1424
 
1425
- ?>
1426
- <div class="main_parametrs_group_div closed_params " >
1427
  <div class="head_panel_div" title="Click to toggle">
1428
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/seo.png' ?>"></span>
1429
  <span class="title_parametrs_group">Search engines and Favicon</span>
1430
  <span class="enabled_or_disabled_parametr"></span>
1431
- <span class="open_or_closed"></span>
1432
  </div>
1433
  <div class="inside_information_div">
1434
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1435
- <tbody>
1436
- <tr>
1437
- <td>
1438
- Title(SEO) <span title="Type here the Title for Search engines. 60 max recommended characters(It will be visible for search engines only)." class="desription_class">?</span>
1439
- </td>
1440
- <td>
1441
- <input type="text" name="coming_soon_page_page_seo_title" id="coming_soon_page_page_seo_title" value="<?php echo $page_parametrs['coming_soon_page_page_seo_title'] ?>">
1442
- </td>
1443
- </tr>
1444
- <tr>
1445
- <td>
1446
- Favicon <span class="pro_feature"> (pro)</span> <span title="Here you can upload favicon for coming soon page." class="desription_class">?</span>
1447
- </td>
1448
- <td>
1449
- <input type="text" class="upload pro_input" id="coming_soon_page_page_favicon" name="coming_soon_page_page_favicon" value=""/>
1450
- <input class="pro_input button" type="button" value="Upload"/>
1451
- </td>
1452
- </tr>
1453
- <tr>
1454
- <td>
1455
- Search Robots <span title="Here you can enable or disable coming soon page for search robots. " class="desription_class">?</span>
1456
- </td>
1457
- <td>
1458
- <select id="coming_soon_page_enable_search_robots">
1459
- <option <?php selected($page_parametrs['coming_soon_page_enable_search_robots'],'1') ?> value="1">Enable</option>
1460
- <option <?php selected($page_parametrs['coming_soon_page_enable_search_robots'],'0') ?> value="0">Disable</option>
1461
- </select>
1462
- </td>
1463
- </tr>
1464
- <tr>
1465
- <td>
1466
- Meta Keywords <span title="Type here meta keywords for coming soon page(It will be visible for search engines only)." class="desription_class">?</span>
1467
- </td>
1468
- <td>
1469
- <input type="text" name="coming_soon_page_meta_keywords" placeholder="Enter Meta Keywords" id="coming_soon_page_meta_keywords" value="<?php echo $page_parametrs['coming_soon_page_meta_keywords'] ?>">
1470
- </td>
1471
- </tr>
1472
- <tr>
1473
- <td>
1474
- Meta Description <span title="Type here meta description for coming soon page. 160 max recommended characters(It will be visible for search engines only)." class="desription_class">?</span>
1475
- </td>
1476
- <td>
1477
- <input type="text" name="coming_soon_page_meta_description" placeholder="Enter Meta Description" id="coming_soon_page_meta_description" value="<?php echo $page_parametrs['coming_soon_page_meta_description'] ?>">
1478
- </td>
1479
- </tr>
1480
- </tbody>
1481
  <tfoot>
1482
  <tr>
1483
  <th colspan="2" width="100%"><button type="button" id="search_engine_and_favicon" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1484
  </tr>
1485
- </tfoot>
1486
  </table>
1487
- </div>
1488
- </div>
1489
- <?php
1490
  }
1491
- /*######################### Except Page or IP Part #################################*/
1492
- public function generete_except_section($page_parametrs){
1493
 
1494
- ?>
1495
- <div class="main_parametrs_group_div closed_params " >
1496
  <div class="head_panel_div" title="Click to toggle">
1497
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/except.png' ?>"></span>
1498
  <span class="title_parametrs_group">Except pages and IPs</span>
1499
  <span class="enabled_or_disabled_parametr"></span>
1500
- <span class="open_or_closed"></span>
1501
  </div>
1502
  <div class="inside_information_div">
1503
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1504
- <tbody>
1505
- <tr>
1506
- <td>
1507
- Disable coming soon for these IPs <span title="You can disable coming soon for these IPs, just type the IP and click anywhere, then type the next IP in next field that will appear and so." class="desription_class">?</span>
1508
- </td>
1509
- <td>
1510
- <div id="no_blocked_ips"></div>
1511
- </td>
1512
- </tr>
1513
- <tr>
1514
- <td>
1515
- Disable coming soon for these URLs<span class="pro_feature"> (pro)</span> <span title="You can disable coming soon page for these URLs, just type the URL and click anywhere, then type the next URL in next field that will appear." class="desription_class">?</span>
1516
- </td>
1517
- <td>
1518
- <input type="hidden" value="" id="coming_soon_page_showed_urls" name="coming_soon_page_showed_urls"> <div class="emelent_coming_soon_page_showed_urls"> <input class="pro_input" type="text" placeholder="Type The URL Here" value=""><span class="remove_element remove_element_coming_soon_page_showed_urls"></span> </div>
1519
- </td>
1520
- </tr>
1521
- <tr>
1522
- <td>
1523
- Enable only for Homepage <span title="Disable coming soon for all pages except Homepage" class="desription_class">?</span>
1524
- </td>
1525
- <td>
1526
- <select id="coming_soon_enable_only_for_home">
1527
- <option <?php selected($page_parametrs['coming_soon_enable_only_for_home'],'1') ?> value="1">Enable</option>
1528
- <option <?php selected($page_parametrs['coming_soon_enable_only_for_home'],'0') ?> value="0">Disable</option>
1529
- </select>
1530
- </td>
1531
- </tr>
1532
- </tbody>
 
1533
  <tfoot>
1534
  <tr>
1535
  <th colspan="2" width="100%"><button type="button" id="except_page" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1536
  </tr>
1537
- </tfoot>
1538
  </table>
1539
- <script>
1540
- jQuery(document).ready(function(e) {
1541
- many_inputs.main_element_for_inserting_element='no_blocked_ips';
1542
- many_inputs.element_name_and_id='coming_soon_page_showed_ips';
1543
- many_inputs.placeholder='Type Ip Here';
1544
- many_inputs.value_jsone_encoded='<?php echo stripslashes($page_parametrs['coming_soon_page_showed_ips']) ?>';
1545
- many_inputs.creates_elements();
1546
-
1547
-
1548
- });
1549
- </script>
1550
- </div>
1551
- </div>
1552
- <?php
1553
  }
1554
- /*######################### Background options Part #################################*/
1555
- public function generete_background_section($page_parametrs){
1556
-
1557
- ?>
1558
- <div class="main_parametrs_group_div closed_params " >
1559
  <div class="head_panel_div" title="Click to toggle">
1560
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/background.png' ?>"></span>
1561
  <span class="title_parametrs_group">Background</span>
1562
  <span class="enabled_or_disabled_parametr"></span>
1563
- <span class="open_or_closed"></span>
1564
  </div>
1565
  <div class="inside_information_div">
1566
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1567
- <tbody>
1568
- <tr>
1569
- <td>
1570
- Background type <span title="Select the background type you want to use for your coming soon page." class="desription_class">?</span>
1571
- </td>
1572
- <td>
1573
- <select id="coming_soon_page_radio_backroun" class="coming_set_hiddens">
1574
- <option <?php selected($page_parametrs['coming_soon_page_radio_backroun'],'back_color') ?> value="back_color">Background Color</option>
1575
- <option <?php selected($page_parametrs['coming_soon_page_radio_backroun'],'back_imge') ?> value="back_imge">Background Image</option>
1576
- <option disabled value="back_imge">Background Slider<span class="pro_feature"> (pro)</span></option>
1577
- <option disabled value="back_imge">Video background(not for mobile)<span class="pro_feature"> (pro)</span></option>
1578
- </select>
1579
- </td>
1580
- </tr>
1581
- <tr class="tr_back_color white">
1582
- <td>
1583
- Set the color <span title="Select the background color for coming soon page(option will apear if you choose 'Background color' type)." class="desription_class">?</span>
1584
- </td>
1585
- <td>
1586
- <input type="text" class="color_option" id="coming_soon_page_background_color" name="coming_soon_page_background_color" value="<?php echo $page_parametrs['coming_soon_page_background_color'] ?>"/>
1587
- </td>
1588
- </tr>
1589
- <tr class="tr_back_imge white">
1590
- <td>
1591
- Img url <span title="ype the image url or just upload image for coming soon page background(option will apear if you choose "Background image" type). " class="desription_class">?</span>
1592
- </td>
1593
- <td>
1594
- <input type="text" class="upload" id="coming_soon_page_background_img" name="coming_soon_page_background_img" value="<?php echo $page_parametrs['coming_soon_page_background_img'] ?>"/>
1595
- <input class="upload-button button" type="button" value="Upload"/>
1596
- </td>
1597
- </tr>
1598
- </tbody>
1599
- <tfoot>
1600
- <tr>
1601
- <th colspan="2" width="100%"><button type="button" id="coming_background" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1602
- </tr>
1603
- </tfoot>
1604
- </table>
1605
- </div>
1606
- </div>
1607
- <?php
1608
  }
1609
- /*######################### Content Part #################################*/
1610
- public function generete_content_section($page_parametrs){
1611
 
1612
- ?>
1613
- <div class="main_parametrs_group_div closed_params " >
1614
  <div class="head_panel_div" title="Click to toggle">
1615
- <span class="title_parametrs_image"><img src="<?php echo $this->plugin_url.'images/content.png' ?>"></span>
1616
- <span class="title_parametrs_group">Content <span class="pro_feature_label"> (Pro feature!)</span></span>
1617
  <span class="enabled_or_disabled_parametr"></span>
1618
- <span class="open_or_closed"></span>
1619
  </div>
1620
  <div class="inside_information_div">
1621
- <table class="wp-list-table widefat fixed posts section_parametrs_table">
1622
- <tbody>
1623
- <tr>
1624
- <td>
1625
- Content position<span class="pro_feature"> (pro)</span> <span title="Choose content position on coming soon page." class="desription_class">?</span>
1626
- </td>
1627
- <td>
1628
- <select class="pro_select" id="page_content_position">
1629
- <option value="left-top">Top Left</option>
1630
- <option value="left-middle">Middle Left</option>
1631
- <option value="left-bottom">Bottom Left</option>
1632
- <option value="center-top">Top center</option>
1633
- <option selected="selected" value="center-middle">Middle center</option>
1634
- <option value="center-bottom">Bottom center</option>
1635
- <option value="right-top">Top right</option>
1636
- <option value="right-middle">Middle right</option>
1637
- <option value="right-bottom">Bottom right</option>
1638
- </select>
1639
- </td>
1640
- </tr>
1641
- <tr>
1642
- <td>
1643
- Content background color<span class="pro_feature"> (pro)</span> <span title="Select content background color." class="desription_class">?</span>
1644
- </td>
1645
- <td>
1646
- <div class="wp-picker-container disabled_picker">
1647
- <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1648
- </div>
1649
- </td>
1650
- </tr>
1651
- <tr>
1652
- <td>
1653
- Content transparency<span class="pro_feature"> (pro)</span> <span title="Select transparency for content." class="desription_class">?</span>
1654
- </td>
1655
- <td>
1656
- <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_content_trasparensy" value="55" id="coming_soon_page_content_trasparensy" style="border:0; color:#f6931f; font-weight:bold; width:35px" >%
1657
- <div class="slider_div"></div>
1658
- </td>
1659
- </tr>
1660
- <tr>
1661
- <td>
1662
- Border radius<span class="pro_feature"> (pro)</span> <span title="Type here border radius for content." class="desription_class">?</span>
1663
- </td>
1664
- <td>
1665
- <input class="pro_input" type="text" name="page_content_boreder_radius" id="page_content_boreder_radius" value="8">(Px)
1666
- </td>
1667
- </tr>
1668
- <tr>
1669
- <td>
1670
- Content maximum width<span class="pro_feature"> (pro)</span> <span title="Type here content maximum width." class="desription_class">?</span>
1671
- </td>
1672
- <td>
1673
- <input class="pro_input" type="text" name="coming_soon_page_content_max_width" id="coming_soon_page_content_max_width" value="740">(Px)
1674
- </td>
1675
- </tr>
1676
- <tr>
1677
- <td>
1678
- Padding<span class="pro_feature"> (pro)</span> <span title="Type here content padding value(padding properties define the space between the element border and the element content)." class="desription_class">?</span>
1679
- </td>
1680
- <td>
1681
- <input class="pro_input" type="text" name="coming_soon_page_content_padding" id="coming_soon_page_content_padding" value="10">(Px)
1682
- </td>
1683
- </tr>
1684
- <tr>
1685
- <td>
1686
- Margin<span class="pro_feature"> (pro)</span> <span title="Type here content margin value(margin properties define the space around elements)." class="desription_class">?</span>
1687
- </td>
1688
- <td>
1689
- <input class="pro_input" type="text" name="coming_soon_page_content_margin" id="coming_soon_page_content_margin" value="15">(Px)
1690
- </td>
1691
- </tr>
1692
- <tr>
1693
- <td>
1694
- Elements ordering<span class="pro_feature"> (pro)</span> <span title="Choose the order of showing elements on coming soon page(you can move all elements using drop down functionality)." class="desription_class">?</span>
1695
- </td>
1696
- <td>
1697
-
1698
- <ul id="coming_soon_sortable">
1699
- <li date-value="logo" class="ui-state-default">Logo<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1700
- <li date-value="title" class="ui-state-default">Title<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1701
- <li date-value="message" class="ui-state-default">Message<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1702
- <li date-value="countdown" class="ui-state-default">Countdown<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1703
- <li date-value="subscribe" class="ui-state-default">Subscribe Form<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1704
- <li date-value="loading_animation" class="ui-state-default">Progress bar<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1705
- <li date-value="link_to_dashboard" class="ui-state-default">Link to Admin<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1706
- <li date-value="share_buttons" class="ui-state-default">Social buttons<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1707
- <li date-value="message_footer" class="ui-state-default">Message footer<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1708
- </ul>
1709
- </td>
1710
- </tr>
1711
-
1712
- </tbody>
1713
  <tfoot>
1714
  <tr>
1715
  <th colspan="2" width="100%"><button type="button" id="coming_content" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1716
  </tr>
1717
- </tfoot>
1718
  </table>
1719
- </div>
1720
- </div>
1721
- <?php
1722
  }
1723
-
1724
- /*############ Subscribers table list function ################*/
1725
-
1726
- private function generete_subscriber_table_lists($mailing_lsit_array){
1727
- $generete='';
1728
- if($mailing_lsit_array){
1729
- foreach($mailing_lsit_array as $key=>$value){
1730
- $generete.="{'email':'".$key."','firstname':'".$value['firstname']."','lastname':'".$value['lastname']."'},";
1731
- }
1732
- $generete=rtrim($generete, ",");
1733
  }
1734
- ?>
1735
- <style>
1736
- .description_row:nth-child(odd){
1737
- background-color: #f9f9f9;
1738
  }
 
 
 
 
 
1739
  </style>
1740
- <script>
1741
- // jsone date for angiaulare js
1742
- var my_table_list=<?php echo "[".$generete."]"; ?>
1743
- </script>
1744
  <div>
1745
- <form method="post" action="" id="admin_form" name="admin_form" ng-app="" ng-controller="customersController">
1746
- <div class="tablenav top" style="width:95%">
1747
- <input type="text" placeholder="Search" ng-change="filtering_table();" ng-model="searchText">
1748
- <div class="tablenav-pages"><span class="displaying-num">{{filtering_table().length}} items</span>
1749
- <span ng-show="(numberOfPages()-1)>=1">
1750
- <span class="pagination-links"><a class="first-page" ng-class="{disabled:(curPage < 1 )}" title="Go to the first page" ng-click="curPage=0">«</a>
1751
- <a class="prev-page" title="Go to the previous page" ng-class="{disabled:(curPage < 1 )}" ng-click="curPage=curPage-1; curect()">‹</a>
1752
- <span class="paging-input"><span class="total-pages">{{curPage + 1}}</span> of <span class="total-pages">{{ numberOfPages() }}</span></span>
1753
- <a class="next-page" title="Go to the next page" ng-class="{disabled:(curPage >= (numberOfPages() - 1))}" ng-click=" curPage=curPage+1; curect()">›</a>
1754
- <a class="last-page" title="Go to the last page" ng-class="{disabled:(curPage >= (numberOfPages() - 1))}" ng-click="curPage=numberOfPages()-1">»</a></span></div>
1755
- </span>
1756
- </div>
1757
- <table class="wp-list-table widefat fixed pages" style="width:95%">
1758
- <thead>
1759
- <tr>
1760
- <th data-ng-click="order_by='email'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>Email</span><span class="sorting-indicator"></span></a></th>
1761
- <th data-ng-click="order_by='firstname'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>First name</span><span class="sorting-indicator" ></span></a></th>
1762
- <th data-ng-click="order_by='lastname'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>Last name</span><span class="sorting-indicator"></span></a></th>
1763
- <th style="width:80px">Delete</th>
1764
- </tr>
1765
- </thead>
1766
- <tbody>
1767
- <tr ng-repeat="rows in names | filter:filtering_table" class="description_row">
1768
- <td><a href="#">{{rows.email}}</a></td>
1769
- <td><a href="#">{{rows.firstname}}</a></td>
1770
- <td><a href="#">{{rows.lastname}}</a></td>
1771
- <td><a href="admin.php?page=mailing-list-subscribers&task=remove_user&id={{rows.email}}">Delete</a></td>
1772
-
1773
- </tr>
1774
- </tbody>
1775
- </table>
1776
- </form>
 
1777
  </div>
1778
  <script>
1779
- jQuery(document).ready(function(e) {
1780
- jQuery('a.disabled').click(function(){return false});
1781
- jQuery('form').on("keyup keypress", function(e) {
1782
- var code = e.keyCode || e.which;
1783
- if (code == 13) {
1784
- e.preventDefault();
1785
- return false;
1786
- }
1787
- });
1788
- });
1789
- function customersController($scope,$filter) {
1790
- var orderBy = $filter('orderBy');
1791
- $scope.previsu_search_result='';
1792
- $scope.oredering=new Array();
1793
- $scope.baza = my_table_list;
1794
- $scope.curPage = 0;
1795
- $scope.pageSize = 10;
1796
- $scope.names=$scope.baza.slice( $scope.curPage* $scope.pageSize,( $scope.curPage+1)* $scope.pageSize)
1797
- $scope.numberOfPages = function(){
1798
- return Math.ceil($scope.filtering_table().length / $scope.pageSize);
1799
- };
1800
- $scope.filtering_table=function(){
1801
- var new_searched_date_array=new Array;
1802
- new_searched_date_array=[];
1803
- angular.forEach($scope.baza,function(value,key){
1804
- var catched=0;
1805
- angular.forEach(value,function(value_loc,key_loc){
1806
- if((''+value_loc).indexOf($scope.searchText)!=-1 || $scope.searchText=='' || typeof($scope.searchText) == 'undefined')
1807
- catched=1;
1808
- })
1809
- if(catched)
1810
- new_searched_date_array.push(value);
1811
- })
1812
- if($scope.previsu_search_result != $scope.searchText){
1813
-
1814
- $scope.previsu_search_result=$scope.searchText;
1815
- $scope.ordering($scope.oredering[0],$scope.oredering[1], $scope.oredering[2]);
1816
-
1817
- }
1818
- if(new_searched_date_array.length<=$scope.pageSize)
1819
- $scope.curPage = 0;
1820
- return new_searched_date_array;
1821
- }
1822
- $scope.curect=function(){
1823
- if( $scope.curPage<0){
1824
- $scope.curPage=0;
1825
- }
1826
- if( $scope.curPage> $scope.numberOfPages()-1)
1827
- $scope.curPage=$scope.numberOfPages()-1;
1828
- $scope.names=$scope.filtering_table().slice( $scope.curPage* $scope.pageSize,( $scope.curPage+1)* $scope.pageSize)
1829
- }
1830
-
1831
- $scope.ordering=function($event,order_by,revers){
1832
- if( typeof($event) != 'undefined' && typeof($event.currentTarget) != 'undefined')
1833
- element=$event.currentTarget;
1834
- else
1835
- element=jQuery();
1836
-
1837
- if(revers)
1838
- indicator='asc'
1839
- else
1840
- indicator='desc'
1841
- $scope.oredering[0]=$event;
1842
- $scope.oredering[1]=order_by;
1843
- $scope.oredering[2]=revers;
1844
- jQuery(element).parent().find('.manage-column').removeClass('sortable desc asc sorted');
1845
- jQuery(element).parent().find('.manage-column').not(element).addClass('sortable desc');
1846
- jQuery(element).addClass('sorted '+indicator);
1847
- $scope.names=orderBy($scope.filtering_table(),order_by,revers).slice( $scope.curPage* $scope.pageSize,( $scope.curPage+1)* $scope.pageSize)
1848
- }
1849
- }
1850
- </script>
1851
- <?php
1852
-
 
 
 
1853
  }
1854
- public function mailing_list(){
1855
- $page_parametrs=$this->generete_parametrs('mailing_list');
1856
- $mailing_lists=NULL;
1857
- if($mailing_lists==NULL)
1858
- $mailing_lists=array();
1859
- if(isset($_GET['id']) && isset($_GET['task']) && $_GET['task']=='remove_user'){
1860
  $get_id = intval($_GET['id']);
1861
  unset($mailing_lists[$get_id]);
1862
- update_option('users_mailer',json_encode($mailing_lists));
1863
  }
1864
- ?>
1865
-
1866
  <div class="wpdevart_plugins_header div-for-clear">
1867
  <div class="wpdevart_plugins_get_pro div-for-clear">
1868
  <div class="wpdevart_plugins_get_pro_info">
1869
  <h3>WpDevArt Coming Soon Premium</h3>
1870
  <p>Powerful and Customizable Coming Soon</p>
1871
  </div>
1872
- <a target="blank" href="http://wpdevart.com/wordpress-coming-soon-plugin/" class="wpdevart_upgrade">Upgrade</a>
1873
  </div>
1874
- <a target="blank" href="<?php echo wpdevart_comingsoon_support_url; ?>" class="wpdevart_support">Have any Questions? Get quick support!</a>
1875
  </div>
1876
- <h2>Send Mail to all subscribed Users</h2>
1877
- <p><span style="color:#7052fb;font-weight:bold;">All fields are required</span></p>
1878
-
1879
- <form method="post" id="coming_soon_options_form_send_mail" action="admin.php?page='<?php echo str_replace( ' ', '-', $this->menu_name); ?>'">
1880
- <span class="user_information_inputs">
1881
- <input class="req_fields" type="text" value="" placeholder="Display Email" id="massage_from_mail" /><br />
1882
- <input class="req_fields" type="text" value="" placeholder="Display Name " id="massage_from_name" /><br />
1883
- <input class="req_fields" type="text" value="" placeholder="Message Title" id="massage_title" />
1884
- </span>
1885
- <textarea id="massage_description" placeholder="Message" style="width:400px; height:300px"></textarea><br /><br />
1886
- <button type="button" id="send_mailing" class="save_button button button-primary"><span>Send Mail</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button>
1887
- <br /><br />
1888
- <span class="error_massage mailing_list"></span>
1889
- </form>
1890
- <h2>The list of the subscribed users</h2> <?php
1891
- $this->generete_subscriber_table_lists($mailing_lists);
1892
- ?><h2>The list of the Subscribed users emails</h2><p><span style="color:#7052fb;font-weight:bold;">You can copy the emails list from the below and send emails using Gmail or other email services.</span></p> <?php
1893
- ?><textarea readonly style="min-height:200px;width:95%"><?php foreach($mailing_lists as $key => $value){ echo $key.',';} ?></textarea>
1894
-
1895
-
1896
-
1897
  <script>
1898
  jQuery(document).ready(function(e) {
1899
- jQuery('#send_mailing').click(function(){
1900
  jQuery('#send_mailing').addClass('padding_loading');
1901
  jQuery("#send_mailing").prop('disabled', true);
1902
- jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display','inline-block');
1903
-
1904
  jQuery.ajax({
1905
- type:'POST',
1906
- url: "<?php echo admin_url( 'admin-ajax.php?action=coming_soon_send_mail' ); ?>",
1907
- data: {massage_from_mail:jQuery('#massage_from_mail').val(),massage_from_name:jQuery('#massage_from_name').val(),massage_description:jQuery('#massage_description').val(),massage_title:jQuery('#massage_title').val()},
 
 
 
 
 
1908
  }).done(function(date) {
1909
- switch(date){
1910
- case "<?php echo $this->text_parametrs['sucsses_mailed'] ?>":
1911
- jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display','none');
1912
- jQuery('#coming_soon_options_form_send_mail .sucsses_save').css('display','inline-block');
1913
- setTimeout(function(){jQuery('.sucsses_save').css('display','none');jQuery('#send_mailing').removeClass('padding_loading');jQuery("#send_mailing").prop('disabled', false);},2500);
1914
- break;
1915
- case "<?php echo $this->text_parametrs['mising_massage'] ?>":
1916
- case "<?php echo $this->text_parametrs['missing_fromname'] ?>":
1917
- case "<?php echo $this->text_parametrs['missing_frommail'] ?>":
1918
- jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display','none');
1919
- jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display','inline-block');
1920
- jQuery('#coming_soon_options_form_send_mail .error_massage').css('display','inline-block');
 
 
 
 
1921
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1922
- setTimeout(function(){jQuery('#coming_soon_options_form_send_mail .error_massage').css('display','none');jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display','none');jQuery('#send_mailing').removeClass('padding_loading');jQuery("#send_mailing").prop('disabled', false);},3000);
1923
- break;
1924
- case "<?php echo $this->text_parametrs['missing_title'] ?>":
1925
- jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display','none');
1926
- jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display','inline-block');
1927
- jQuery('#coming_soon_options_form_send_mail .error_massage').css('display','inline-block');
 
 
 
 
 
1928
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1929
- setTimeout(function(){jQuery('#coming_soon_options_form_send_mail .error_massage').css('display','none');jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display','none');jQuery('#send_mailing').removeClass('padding_loading');jQuery("#send_mailing").prop('disabled', false);},3000);
1930
- break;
 
 
 
 
 
1931
  default:
1932
- jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display','none');
1933
- jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display','inline-block');
1934
- jQuery('#coming_soon_options_form_send_mail .error_massage').css('display','inline-block');
1935
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1936
  }
1937
- });
1938
  });
1939
- });
1940
- </script>
1941
-
1942
- <?php
1943
  }
1944
  /*######################################### SUBSCRIBE #######################################*/
1945
- public function sending_mail(){
1946
- $mailing_lists=json_decode(stripslashes(get_option('users_mailer','')), true);
1947
- if($mailing_lists==NULL)
1948
- $mailing_lists=array();
1949
- $not_sending_mails=array();
1950
- $sending_mails=array();
1951
- if(!(isset($_POST['massage_title']) && $_POST['massage_title']!='')){
1952
- echo $this->text_parametrs['missing_title'];
1953
  die();
1954
  }
1955
- if(!(isset($_POST['massage_description']) && $_POST['massage_description']!='')){
1956
- echo $this->text_parametrs['mising_massage'];
1957
  die();
1958
  }
1959
- if(!(isset($_POST['massage_from_name']) && $_POST['massage_from_name']!='')){
1960
- echo $this->text_parametrs['missing_fromname'];
1961
  die();
1962
  }
1963
- if(!(isset($_POST['massage_from_mail']) && $_POST['massage_from_mail']!='')){
1964
- echo $this->text_parametrs['missing_frommail'];
1965
  die();
1966
  }
1967
- $mails_array=array();
1968
- foreach($mailing_lists as $key => $mail){
1969
- array_push($mails_array,$key);
1970
  }
1971
  $headers_from = sanitize_text_field($_POST['massage_from_mail']);
1972
  $message_description = sanitize_text_field($_POST['massage_description']);
1973
  $message_from_name = sanitize_text_field($_POST['massage_from_name']);
1974
  $message_title = sanitize_text_field($_POST['massage_title']);
1975
- $headers='From: '.$message_from_name.' <'.$headers_from.'>' . "\r\n";
1976
- $send=wp_mail( $mails_array, $message_title, $message_description,$headers);
1977
- if(!$send){
1978
- die($this->text_parametrs['error_maied']);
1979
  }
1980
-
1981
-
1982
- die($this->text_parametrs['sucsses_mailed']);
1983
-
1984
  }
1985
  /*################################## FEATURED PLUGINS ADMIN PAGE #########################################*/
1986
- public function featured_plugins(){
1987
- $plugins_array=array(
1988
- 'gallery_album'=>array(
1989
- 'image_url' => $this->plugin_url.'images/featured_plugins/gallery-album-icon.png',
1990
- 'site_url' => 'https://wpdevart.com/wordpress-gallery-plugin',
1991
- 'title' => 'WordPress Gallery plugin',
1992
- 'description' => 'Gallery plugin is an useful tool that will help you to create Galleries and Albums. Try our nice Gallery views and awesome animations.'
1993
- ),
1994
- 'Pricing Table'=>array(
1995
- 'image_url' => $this->plugin_url.'images/featured_plugins/Pricing-table.png',
1996
- 'site_url' => 'https://wpdevart.com/wordpress-pricing-table-plugin/',
1997
- 'title' => 'WordPress Pricing Table',
1998
- 'description' => 'WordPress Pricing Table plugin is a nice tool for creating beautiful pricing tables. Use WpDevArt pricing table themes and create tables just in a few minutes.'
1999
- ),
2000
- 'countdown-extended'=>array(
2001
- 'image_url' => $this->plugin_url.'images/featured_plugins/icon-128x128.png',
2002
- 'site_url' => 'https://wpdevart.com/wordpress-countdown-extended-version/',
2003
- 'title' => 'WordPress Countdown Extended',
2004
- 'description' => 'Countdown extended is an fresh and extended version of countdown timer. You can easily create and add countdown timers to your website.'
2005
- ),
2006
- 'chart'=>array(
2007
- 'image_url' => $this->plugin_url.'images/featured_plugins/chart-featured.png',
2008
- 'site_url' => 'https://wpdevart.com/wordpress-organization-chart-plugin/',
2009
- 'title' => 'WordPress Organization Chart',
2010
- 'description' => 'WordPress organization chart plugin is a great tool for adding organizational charts to your WordPress websites.'
2011
- ),
2012
- 'Contact forms'=>array(
2013
- 'image_url' => $this->plugin_url.'images/featured_plugins/contact_forms.png',
2014
- 'site_url' => 'https://wpdevart.com/wordpress-contact-form-plugin/',
2015
- 'title' => 'Contact Form Builder',
2016
- 'description' => 'Contact Form Builder plugin is an handy tool for creating different types of contact forms on your WordPress websites.'
2017
- ),
2018
- 'Booking Calendar'=>array(
2019
- 'image_url' => $this->plugin_url.'images/featured_plugins/Booking_calendar_featured.png',
2020
- 'site_url' => 'https://wpdevart.com/wordpress-booking-calendar-plugin/',
2021
- 'title' => 'WordPress Booking Calendar',
2022
- 'description' => 'WordPress Booking Calendar plugin is an awesome tool to create a booking system for your website. Create booking calendars in a few minutes.'
2023
- ),
2024
- 'youtube'=>array(
2025
- 'image_url' => $this->plugin_url.'images/featured_plugins/youtube.png',
2026
- 'site_url' => 'https://wpdevart.com/wordpress-youtube-embed-plugin',
2027
- 'title' => 'WordPress YouTube Embed',
2028
- 'description' => 'YouTube Embed plugin is an convenient tool for adding videos to your website. Use YouTube Embed plugin for adding YouTube videos in posts/pages, widgets.'
2029
- ),
2030
- 'facebook-comments'=>array(
2031
- 'image_url' => $this->plugin_url.'images/featured_plugins/facebook-comments-icon.png',
2032
- 'site_url' => 'https://wpdevart.com/wordpress-facebook-comments-plugin/',
2033
- 'title' => 'Wpdevart Social comments',
2034
- 'description' => 'WordPress Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
2035
- ),
2036
- 'countdown'=>array(
2037
- 'image_url' => $this->plugin_url.'images/featured_plugins/countdown.jpg',
2038
- 'site_url' => 'https://wpdevart.com/wordpress-countdown-plugin/',
2039
- 'title' => 'WordPress Countdown plugin',
2040
- 'description' => 'WordPress Countdown plugin is an nice tool for creating countdown timers for your website posts/pages and widgets.'
2041
- ),
2042
- 'lightbox'=>array(
2043
- 'image_url' => $this->plugin_url.'images/featured_plugins/lightbox.png',
2044
- 'site_url' => 'https://wpdevart.com/wordpress-lightbox-plugin',
2045
- 'title' => 'WordPress Lightbox plugin',
2046
- 'description' => 'WordPress Lightbox Popup is an high customizable and responsive plugin for displaying images and videos in popup.'
2047
- ),
2048
- 'facebook'=>array(
2049
- 'image_url' => $this->plugin_url.'images/featured_plugins/facebook.png',
2050
- 'site_url' => 'https://wpdevart.com/wordpress-facebook-like-box-plugin',
2051
- 'title' => 'Social Like Box',
2052
- 'description' => 'Facebook like box plugin will help you to display Facebook like box on your wesite, just add Facebook Like box widget to sidebar or insert it into posts/pages and use it.'
2053
- ),
2054
- 'vertical_menu'=>array(
2055
- 'image_url' => $this->plugin_url.'images/featured_plugins/vertical-menu.png',
2056
- 'site_url' => 'https://wpdevart.com/wordpress-vertical-menu-plugin/',
2057
- 'title' => 'WordPress Vertical Menu',
2058
- 'description' => 'WordPress Vertical Menu is a handy tool for adding nice vertical menus. You can add icons for your website vertical menus using our plugin.'
2059
- ),
2060
- 'poll'=>array(
2061
- 'image_url' => $this->plugin_url.'images/featured_plugins/poll.png',
2062
- 'site_url' => 'https://wpdevart.com/wordpress-polls-plugin',
2063
- 'title' => 'WordPress Polls system',
2064
- 'description' => 'WordPress Polls system is an handy tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
2065
- ),
2066
- 'duplicate_page'=>array(
2067
- 'image_url' => $this->plugin_url.'images/featured_plugins/featured-duplicate.png',
2068
- 'site_url' => 'https://wpdevart.com/wordpress-duplicate-page-plugin-easily-clone-posts-and-pages/',
2069
- 'title' => 'WordPress Duplicate page',
2070
- 'description' => 'Duplicate Page or Post is a great tool that allows duplicating pages and posts. Now you can do it with one click.'
2071
- ),
2072
-
2073
-
2074
- );
2075
- ?>
2076
- <style>
2077
- .featured_plugin_main{
2078
- background-color: #ffffff;
2079
- -webkit-box-sizing: border-box;
2080
- -moz-box-sizing: border-box;
2081
- box-sizing: border-box;
2082
- float: left;
2083
- margin-right: 30px;
2084
- margin-bottom: 30px;
2085
- width: calc((100% - 90px)/3);
2086
- border-radius: 15px;
2087
- box-shadow: 1px 1px 7px rgba(0,0,0,0.04);
2088
- padding: 20px 25px;
2089
- text-align: center;
2090
- -webkit-transition:-webkit-transform 0.3s;
2091
- -moz-transition:-moz-transform 0.3s;
2092
- transition:transform 0.3s;
2093
- -webkit-transform: translateY(0);
2094
- -moz-transform: translateY0);
2095
- transform: translateY(0);
2096
- min-height: 344px;
2097
- }
2098
- .featured_plugin_main:hover{
2099
- -webkit-transform: translateY(-2px);
2100
- -moz-transform: translateY(-2px);
2101
- transform: translateY(-2px);
2102
- }
2103
- .featured_plugin_image{
2104
- max-width: 128px;
2105
- margin: 0 auto;
2106
- }
2107
- .blue_button{
2108
- display: inline-block;
2109
- font-size: 15px;
2110
- text-decoration: none;
2111
- border-radius: 5px;
2112
- color: #ffffff;
2113
- font-weight: 400;
2114
- opacity: 1;
2115
- -webkit-transition: opacity 0.3s;
2116
- -moz-transition: opacity 0.3s;
2117
- transition: opacity 0.3s;
2118
- background-color: #7052fb;
2119
- padding: 10px 22px;
2120
- text-transform: uppercase;
2121
- }
2122
- .blue_button:hover,
2123
- .blue_button:focus {
2124
- color:#ffffff;
2125
- box-shadow: none;
2126
- outline: none;
2127
- }
2128
- .featured_plugin_image img{
2129
- max-width: 100%;
2130
- }
2131
- .featured_plugin_image a{
2132
- display: inline-block;
2133
- }
2134
- .featured_plugin_information{
2135
 
2136
- }
2137
- .featured_plugin_title{
2138
- color: #7052fb;
2139
- font-size: 18px;
2140
- display: inline-block;
2141
- }
2142
- .featured_plugin_title a{
2143
- text-decoration:none;
2144
- font-size: 19px;
2145
- line-height: 22px;
2146
- color: #7052fb;
2147
-
2148
- }
2149
- .featured_plugin_title h4{
2150
- margin: 0px;
2151
- margin-top: 20px;
2152
- min-height: 44px;
2153
- }
2154
- .featured_plugin_description{
2155
- font-size: 14px;
2156
- min-height: 63px;
2157
- }
2158
- @media screen and (max-width: 1460px){
2159
  .featured_plugin_main {
2160
- margin-right: 20px;
2161
- margin-bottom: 20px;
2162
- width: calc((100% - 60px)/3);
2163
- padding: 20px 10px;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2164
  }
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2165
  .featured_plugin_description {
2166
- font-size: 13px;
2167
  min-height: 63px;
2168
  }
2169
- }
2170
- @media screen and (max-width: 1279px){
2171
- .featured_plugin_main {
2172
- width: calc((100% - 60px)/2);
2173
- padding: 20px 20px;
2174
- min-height: 363px;
2175
- }
2176
- }
2177
- @media screen and (max-width: 768px){
2178
- .featured_plugin_main {
2179
- width: calc(100% - 30px);
2180
- padding: 20px 20px;
2181
- min-height: auto;
2182
- margin: 0 auto 20px;
2183
- float: none;
2184
- }
2185
- .featured_plugin_title h4{
2186
- min-height: auto;
2187
- }
2188
- .featured_plugin_description{
2189
- min-height: auto;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2190
  font-size: 14px;
2191
- }
2192
- }
 
2193
 
2194
- </style>
2195
-
2196
  <h1 style="text-align: center;font-size: 50px;font-weight: 700;color: #2b2350;margin: 20px auto 25px;line-height: 1.2;">Featured Plugins</h1>
2197
- <?php foreach($plugins_array as $key=>$plugin) { ?>
2198
- <div class="featured_plugin_main">
2199
- <div class="featured_plugin_image"><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><img src="<?php echo $plugin['image_url'] ?>"></a></div>
2200
- <div class="featured_plugin_information">
2201
- <div class="featured_plugin_title"><h4><a target="_blank" href="<?php echo $plugin['site_url'] ?>"><?php echo $plugin['title'] ?></a></h4></div>
2202
- <p class="featured_plugin_description"><?php echo $plugin['description'] ?></p>
2203
- <a target="_blank" href="<?php echo $plugin['site_url'] ?>" class="blue_button">Check The Plugin</a>
 
 
 
 
2204
  </div>
2205
- <div style="clear:both"></div>
2206
- </div>
2207
- <?php }
2208
-
2209
  }
2210
-
2211
- /*######################### Library functions #############################*/
2212
- private function create_select_element_for_showing_effect($select_id='',$curent_effect='none'){
2213
- ?>
2214
- <select class="pro_select" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
2215
- <option <?php selected('none',$curent_effect); ?> value="none">none</option>
2216
- <option <?php selected('random',$curent_effect); ?> value="random">random</option>
2217
- <optgroup label="Attention Seekers">
2218
- <option <?php selected('bounce',$curent_effect); ?> value="bounce">bounce</option>
2219
- <option <?php selected('flash',$curent_effect); ?> value="flash">flash</option>
2220
- <option <?php selected('pulse',$curent_effect); ?> value="pulse">pulse</option>
2221
- <option <?php selected('rubberBand',$curent_effect); ?> value="rubberBand">rubberBand</option>
2222
- <option <?php selected('shake',$curent_effect); ?> value="shake">shake</option>
2223
- <option <?php selected('swing',$curent_effect); ?> value="swing">swing</option>
2224
- <option <?php selected('tada',$curent_effect); ?> value="tada">tada</option>
2225
- <option <?php selected('wobble',$curent_effect); ?> value="wobble">wobble</option>
2226
- </optgroup>
2227
-
2228
- <optgroup label="Bouncing Entrances">
2229
- <option <?php selected('bounceIn',$curent_effect); ?> value="bounceIn">bounceIn</option>
2230
- <option <?php selected('bounceInDown',$curent_effect); ?> value="bounceInDown">bounceInDown</option>
2231
- <option <?php selected('bounceInLeft',$curent_effect); ?> value="bounceInLeft">bounceInLeft</option>
2232
- <option <?php selected('bounceInRight',$curent_effect); ?> value="bounceInRight">bounceInRight</option>
2233
- <option <?php selected('bounceInUp',$curent_effect); ?> value="bounceInUp">bounceInUp</option>
2234
- </optgroup>
2235
-
2236
- <optgroup label="Fading Entrances">
2237
- <option <?php selected('fadeIn',$curent_effect); ?> value="fadeIn">fadeIn</option>
2238
- <option <?php selected('fadeInDown',$curent_effect); ?> value="fadeInDown">fadeInDown</option>
2239
- <option <?php selected('fadeInDownBig',$curent_effect); ?> value="fadeInDownBig">fadeInDownBig</option>
2240
- <option <?php selected('fadeInLeft',$curent_effect); ?> value="fadeInLeft">fadeInLeft</option>
2241
- <option <?php selected('fadeInLeftBig',$curent_effect); ?> value="fadeInLeftBig">fadeInLeftBig</option>
2242
- <option <?php selected('fadeInRight',$curent_effect); ?> value="fadeInRight">fadeInRight</option>
2243
- <option <?php selected('fadeInRightBig',$curent_effect); ?> value="fadeInRightBig">fadeInRightBig</option>
2244
- <option <?php selected('fadeInUp',$curent_effect); ?> value="fadeInUp">fadeInUp</option>
2245
- <option <?php selected('fadeInUpBig',$curent_effect); ?> value="fadeInUpBig">fadeInUpBig</option>
2246
- </optgroup>
2247
-
2248
- <optgroup label="Flippers">
2249
- <option <?php selected('flip',$curent_effect); ?> value="flip">flip</option>
2250
- <option <?php selected('flipInX',$curent_effect); ?> value="flipInX">flipInX</option>
2251
- <option <?php selected('flipInY',$curent_effect); ?> value="flipInY">flipInY</option>
2252
- </optgroup>
2253
-
2254
- <optgroup label="Lightspeed">
2255
- <option <?php selected('lightSpeedIn',$curent_effect); ?> value="lightSpeedIn">lightSpeedIn</option>
2256
- </optgroup>
2257
-
2258
- <optgroup label="Rotating Entrances">
2259
- <option <?php selected('rotateIn',$curent_effect); ?> value="rotateIn">rotateIn</option>
2260
- <option <?php selected('rotateInDownLeft',$curent_effect); ?> value="rotateInDownLeft">rotateInDownLeft</option>
2261
- <option <?php selected('rotateInDownRight',$curent_effect); ?> value="rotateInDownRight">rotateInDownRight</option>
2262
- <option <?php selected('rotateInUpLeft',$curent_effect); ?> value="rotateInUpLeft">rotateInUpLeft</option>
2263
- <option <?php selected('rotateInUpRight',$curent_effect); ?> value="rotateInUpRight">rotateInUpRight</option>
2264
- </optgroup>
2265
-
2266
- <optgroup label="Specials">
2267
-
2268
- <option <?php selected('rollIn',$curent_effect); ?> value="rollIn">rollIn</option>
2269
- </optgroup>
2270
-
2271
- <optgroup label="Zoom Entrances">
2272
- <option <?php selected('zoomIn',$curent_effect); ?> value="zoomIn">zoomIn</option>
2273
- <option <?php selected('zoomInDown',$curent_effect); ?> value="zoomInDown">zoomInDown</option>
2274
- <option <?php selected('zoomInLeft',$curent_effect); ?> value="zoomInLeft">zoomInLeft</option>
2275
- <option <?php selected('zoomInRight',$curent_effect); ?> value="zoomInRight">zoomInRight</option>
2276
- <option <?php selected('zoomInUp',$curent_effect); ?> value="zoomInUp">zoomInUp</option>
2277
- </optgroup>
2278
- </select>
2279
- <?php
2280
  }
2281
-
2282
- /*############ Fonts function ################*/
2283
-
2284
- private function create_select_element_for_font($select_id='',$curent_font='none'){
2285
  ?>
2286
- <select class="pro_select" id="<?php echo $select_id; ?>" name="<?php echo $select_id; ?>">
2287
-
2288
- <option <?php selected('Arial,Helvetica Neue,Helvetica,sans-serif',$curent_font); ?> value="Arial,Helvetica Neue,Helvetica,sans-serif">Arial *</option>
2289
- <option <?php selected('Arial Black,Arial Bold,Arial,sans-serif',$curent_font); ?> value="Arial Black,Arial Bold,Arial,sans-serif">Arial Black *</option>
2290
- <option <?php selected('Arial Narrow,Arial,Helvetica Neue,Helvetica,sans-serif',$curent_font); ?> value="Arial Narrow,Arial,Helvetica Neue,Helvetica,sans-serif">Arial Narrow *</option>
2291
- <option <?php selected('Courier,Verdana,sans-serif',$curent_font); ?> value="Courier,Verdana,sans-serif">Courier *</option>
2292
- <option <?php selected('Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Georgia,Times New Roman,Times,serif">Georgia *</option>
2293
- <option <?php selected('Times New Roman,Times,Georgia,serif',$curent_font); ?> value="Times New Roman,Times,Georgia,serif">Times New Roman *</option>
2294
- <option <?php selected('Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Arial,sans-serif',$curent_font); ?> value="Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Arial,sans-serif">Trebuchet MS *</option>
2295
- <option <?php selected('Verdana,sans-serif',$curent_font); ?> value="Verdana,sans-serif">Verdana *</option>
2296
- <option <?php selected('American Typewriter,Georgia,serif',$curent_font); ?> value="American Typewriter,Georgia,serif">American Typewriter</option>
2297
- <option <?php selected('Andale Mono,Consolas,Monaco,Courier,Courier New,Verdana,sans-serif',$curent_font); ?> value="Andale Mono,Consolas,Monaco,Courier,Courier New,Verdana,sans-serif">Andale Mono</option>
2298
- <option <?php selected('Baskerville,Times New Roman,Times,serif',$curent_font); ?> value="Baskerville,Times New Roman,Times,serif">Baskerville</option>
2299
- <option <?php selected('Bookman Old Style,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Bookman Old Style,Georgia,Times New Roman,Times,serif">Bookman Old Style</option>
2300
- <option <?php selected('Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif',$curent_font); ?> value="Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif">Calibri</option>
2301
- <option <?php selected('Cambria,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Cambria,Georgia,Times New Roman,Times,serif">Cambria</option>
2302
- <option <?php selected('Candara,Verdana,sans-serif',$curent_font); ?> value="Candara,Verdana,sans-serif">Candara</option>
2303
- <option <?php selected('Century Gothic,Apple Gothic,Verdana,sans-serif',$curent_font); ?> value="Century Gothic,Apple Gothic,Verdana,sans-serif">Century Gothic</option>
2304
- <option <?php selected('Century Schoolbook,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Century Schoolbook,Georgia,Times New Roman,Times,serif">Century Schoolbook</option>
2305
- <option <?php selected('Consolas,Andale Mono,Monaco,Courier,Courier New,Verdana,sans-serif',$curent_font); ?> value="Consolas,Andale Mono,Monaco,Courier,Courier New,Verdana,sans-serif">Consolas</option>
2306
- <option <?php selected('Constantia,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Constantia,Georgia,Times New Roman,Times,serif">Constantia</option>
2307
- <option <?php selected('Corbel,Lucida Grande,Lucida Sans Unicode,Arial,sans-serif',$curent_font); ?> value="Corbel,Lucida Grande,Lucida Sans Unicode,Arial,sans-serif">Corbel</option>
2308
- <option <?php selected('Franklin Gothic Medium,Arial,sans-serif',$curent_font); ?> value="Franklin Gothic Medium,Arial,sans-serif">Franklin Gothic Medium</option>
2309
- <option <?php selected('Garamond,Hoefler Text,Times New Roman,Times,serif',$curent_font); ?> value="Garamond,Hoefler Text,Times New Roman,Times,serif">Garamond</option>
2310
- <option <?php selected('Gill Sans MT,Gill Sans,Calibri,Trebuchet MS,sans-serif',$curent_font); ?> value="Gill Sans MT,Gill Sans,Calibri,Trebuchet MS,sans-serif">Gill Sans MT</option>
2311
- <option <?php selected('Helvetica Neue,Helvetica,Arial,sans-serif',$curent_font); ?> value="Helvetica Neue,Helvetica,Arial,sans-serif">Helvetica Neue</option>
2312
- <option <?php selected('Hoefler Text,Garamond,Times New Roman,Times,sans-serif',$curent_font); ?> value="Hoefler Text,Garamond,Times New Roman,Times,sans-serif">Hoefler Text</option>
2313
- <option <?php selected('Lucida Bright,Cambria,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Lucida Bright,Cambria,Georgia,Times New Roman,Times,serif">Lucida Bright</option>
2314
- <option <?php selected('Lucida Grande,Lucida Sans,Lucida Sans Unicode,sans-serif',$curent_font); ?> value="Lucida Grande,Lucida Sans,Lucida Sans Unicode,sans-serif">Lucida Grande</option>
2315
- <option <?php selected('monospace',$curent_font); ?> value="monospace">monospace</option>
2316
- <option <?php selected('Palatino Linotype,Palatino,Georgia,Times New Roman,Times,serif',$curent_font); ?> value="Palatino Linotype,Palatino,Georgia,Times New Roman,Times,serif">Palatino Linotype</option>
2317
- <option <?php selected('Tahoma,Geneva,Verdana,sans-serif',$curent_font); ?> value="Tahoma,Geneva,Verdana,sans-serif">Tahoma</option>
2318
- <option <?php selected('Rockwell, Arial Black, Arial Bold, Arial, sans-serif',$curent_font); ?> value="Rockwell, Arial Black, Arial Bold, Arial, sans-serif">Rockwell</option>
2319
- </select>
2320
- <?php
2321
  }
2322
-
2323
- }
1
+ <?php
2
 
3
  /*############ Admin Menu Class ################*/
4
 
5
+ class coming_soon_admin_menu {
6
+
7
  private $menu_name;
8
  private $databese_parametrs;
9
  private $plugin_url;
10
  private $text_parametrs;
11
 
12
+ /*############ Construct function ################*/
13
+
14
+ function __construct($param) {
15
+
16
+ $this->text_parametrs = array(
17
+ 'parametrs_sucsses_saved' => 'Successfully saved.',
18
+ 'error_in_saving' => 'can\'t save "%s" plugin parameter<br>',
19
+ 'missing_title' => 'Type Message Title',
20
+ 'missing_fromname' => 'Type From Name',
21
+ 'missing_frommail' => 'Type From mail',
22
+ 'mising_massage' => 'Type Message',
23
+ 'sucsses_mailed' => 'Your message was sent successfully.',
24
+ 'error_maied' => 'error sending email',
25
  'authorize_problem' => 'Authorization Problem'
26
+
27
+ );
28
+
29
+ $this->menu_name = $param['menu_name'];
30
+ $this->databese_parametrs = $param['databese_parametrs'];
31
+ if (isset($params['plugin_url']))
32
+ $this->plugin_url = $params['plugin_url'];
33
  else
34
+ $this->plugin_url = trailingslashit(dirname(plugins_url('', __FILE__)));
35
 
36
+ add_action('wp_ajax_coming_soon_page_save', array($this, 'save_in_databese'));
37
+ add_action('wp_ajax_coming_soon_send_mail', array($this, 'sending_mail'));
38
  }
39
 
40
+ /*############ Create menu function ################*/
41
+
42
+ public function create_menu() {
43
  global $submenu;
44
+ $sub_men_cap = str_replace(' ', '-', $this->menu_name);
45
+ $main_page = add_menu_page('Coming Soon', 'Coming Soon', 'manage_options', 'coming-soon', array($this, 'main_menu_function'), esc_url($this->plugin_url) . 'images/menu_icon.png');
46
+ $page_coming_soon = add_submenu_page('coming-soon', 'Coming Soon', 'Coming Soon', 'manage_options','coming-soon', array($this, 'main_menu_function'));
47
+ $page_coming_soon = add_submenu_page('coming-soon', 'Subscribers', 'Subscribers', 'manage_options', 'mailing-list-subscribers', array($this, 'mailing_list'));
48
+ $page_featured = add_submenu_page('coming-soon', 'Featured Plugins', 'Featured Plugins', 'manage_options', 'coming-soon-featured-plugins', array($this, 'featured_plugins'));
49
+ add_action('admin_print_styles-' . $main_page, array($this, 'menu_requeried_scripts'));
50
+ add_action('admin_print_styles-' . $page_coming_soon, array($this, 'menu_requeried_scripts'));
51
+ add_action('admin_print_styles-' . $page_featured, array($this, 'menu_requeried_scripts'));
52
+ if (isset($submenu[$sub_men_cap]))
53
+ add_submenu_page($sub_men_cap, "Support or Any Ideas?", "<span style='color:#00ff66' >Support or Any Ideas?</span>", 'manage_options', "wpdevart_comingsoon_any_ideas", array($this, 'any_ideas'), 155);
54
+ if (isset($submenu[$sub_men_cap]))
55
+ $submenu[$sub_men_cap][3][2] = esc_url(wpdevart_comingsoon_support_url);
56
  }
57
+ public function any_ideas() {
 
58
  }
59
 
60
+ /*############ Menu required scripts function ################*/
61
+
62
+ public function menu_requeried_scripts() {
63
+ wp_enqueue_script('wp-color-picker');
64
+ wp_enqueue_style('wp-color-picker');
65
  wp_enqueue_script('jquery-ui-sortable');
66
  wp_enqueue_script('angularejs');
67
+ wp_enqueue_script('jquery-ui-datepicker');
68
+ wp_enqueue_script('coming-soon-script-admin');
69
  wp_enqueue_style('jquery-ui-style');
70
+ wp_enqueue_script('jquery-ui-slider');
71
  wp_enqueue_style('coming-soon-admin-style');
 
72
  wp_enqueue_media();
73
  }
74
+
75
+ /*############ Function for generating parameters ################*/
76
+
77
+ private function generete_parametrs($page_name) {
78
+ $page_parametrs = array();
79
+ if (isset($this->databese_parametrs[$page_name])) {
80
+ foreach ($this->databese_parametrs[$page_name] as $key => $value) {
81
+ $page_parametrs[$key] = get_option($key, $value);
82
  }
83
  return $page_parametrs;
84
  }
85
  return NULL;
 
86
  }
87
+
88
+ /*############ Database function ################*/
89
+
90
+ public function save_in_databese() {
91
+ $kk = 1;
92
+ if (isset($_POST['coming_soon_options_nonce']) && wp_verify_nonce($_POST['coming_soon_options_nonce'], 'coming_soon_options_nonce')) {
 
93
  $curent_page = sanitize_text_field($_POST['curent_page']);
94
+ foreach ($this->databese_parametrs[$_POST['curent_page']] as $key => $value) {
95
+ if (isset($_POST[$key])) {
96
+ if (strpos($key, 'message') !== false) {
97
  $sanitize_post = wp_kses_post($_POST[$key]);
98
+ } else {
99
  $sanitize_post = sanitize_text_field($_POST[$key]);
100
+ }
101
+ update_option($key, stripslashes_deep($sanitize_post));
102
+ } else {
103
+ $kk = 0;
104
+ printf($this->text_parametrs['error_in_saving'], $key);
105
  }
106
+ }
107
+ } else {
108
+ die(esc_html($this->text_parametrs['authorize_problem']));
 
109
  }
110
+ if ($kk == 0) {
111
  exit;
112
  }
113
+ die(esc_html($this->text_parametrs['parametrs_sucsses_saved']));
114
  }
115
+
116
+ /*############ Main menu function ################*/
117
+
118
+ public function main_menu_function() {
119
+ $enable_disable = $this->generete_parametrs('general_save_parametr');
120
+ $enable_disable = $enable_disable['coming_soon_page_mode'];
121
+ ?>
122
+ <script>
123
+ var coming_soon_ajaxurl = "<?php echo esc_url(admin_url('admin-ajax.php')); ?>";
124
+ var comig_soon_plugin_url = "<?php echo esc_url($this->plugin_url); ?>";
125
+ var comin_soon_parametrs_sucsses_saved = "<?php echo esc_html($this->text_parametrs['parametrs_sucsses_saved']); ?>";
126
+ var comin_soon_all_parametrs = <?php echo wp_json_encode($this->databese_parametrs); ?>;
127
+ </script>
128
  <div class="wpdevart_plugins_header div-for-clear">
129
  <div class="wpdevart_plugins_get_pro div-for-clear">
130
  <div class="wpdevart_plugins_get_pro_info">
131
  <h3>WpDevArt Coming Soon Premium</h3>
132
  <p>Powerful and Customizable Coming Soon</p>
133
  </div>
134
+ <a target="blank" href="http://wpdevart.com/wordpress-coming-soon-plugin/" class="wpdevart_upgrade">Upgrade</a>
135
  </div>
136
+ <a target="blank" href="<?php echo esc_url(wpdevart_comingsoon_support_url); ?>" class="wpdevart_support">Have any Questions? Get a quick support!</a>
137
+ </div>
138
+ <div id="coming_soon_enable" class="field switch">
139
+ <label for="radio1" class="cb-enable <?php if ($enable_disable == 'on') echo 'selected'; ?>"><span>Enable</span></label>
140
+ <label for="radio2" class="cb-disable <?php if ($enable_disable == 'off') echo 'selected'; ?>"><span>Disable</span></label>
141
+ <span class="progress_enable_disable_buttons"><span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span><span class="error_massage"></span></span>
142
+ <div style="clear:both"> </div>
143
+ </div>
144
+ <br>
145
+
146
+ <div class="wp-table right_margin">
147
+ <table class="wp-list-table widefat fixed posts">
148
+ <thead>
149
+ <tr>
150
+ <th>
151
+ <h4 class="live_previev">Parameters <a target="_blank" href="<?php echo esc_url(site_url()); ?>/?special_variable_for_live_previev=sdfg564sfdh645fds4ghs515vsr5g48strh846sd6g41513btsd" style="color:#7052fb;">(Live Preview)</a></h4>
152
+ <span class="save_all_paramss"> <button type="button" id="save_all_parametrs" class="save_all_section_parametrs button button-primary"><span class="save_button_span">Save All Sections</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button></span>
153
+ </th>
154
+ </tr>
155
+ </thead>
156
+ <tbody>
157
+ <tr>
158
+ <td>
159
+ <div id="coming_soon_page">
160
+ <div class="left_sections">
161
+ <?php
162
+ $this->generete_logo_section($this->generete_parametrs('coming_logo'));
163
+ $this->generete_title_section($this->generete_parametrs('coming_title'));
164
+ $this->generete_message_section($this->generete_parametrs('coming_message'));
165
+ $this->generete_countdown_section($this->generete_parametrs('coming_countdown'));
166
+ $this->generete_progressbar_section($this->generete_parametrs('coming_progressbar'));
167
+ $this->generete_subscribe_section($this->generete_parametrs('coming_subscribe'));
168
+ $this->generete_social_network_section($this->generete_parametrs('coming_social_networks'));
169
+ $this->generete_link_to_tashboard_section($this->generete_parametrs('coming_link_to_dashboard'));
170
+ $this->generete_message_footer_section($this->generete_parametrs('coming_message_footer'));
171
+ ?>
172
+ </div>
173
+ <div class="right_sections">
174
+ <?php
175
+ $this->generete_content_section($this->generete_parametrs('coming_content'));
176
+ $this->generete_background_section($this->generete_parametrs('coming_background'));
177
+ $this->generete_except_section($this->generete_parametrs('except_page'));
178
+ $this->generete_search_engine_section($this->generete_parametrs('search_engine_and_favicon'));
179
+ ?>
180
+ </div>
181
+ <div style="clear:both"></div>
182
+ </td>
183
+ </tr>
184
+ </tbody>
185
+ <tfoot>
186
+ <tr>
187
+ <th>
188
+ <span class="save_all_paramss"><button type="button" id="save_all_parametrs" class="save_all_section_parametrs button button-primary"><span class="save_button_span">Save All Sections</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button></span>
189
+ </th>
190
+ </tr>
191
+ </tfoot>
192
+ </table>
193
+ </div>
194
+ <?php
195
+ wp_nonce_field('coming_soon_options_nonce', 'coming_soon_options_nonce');
196
  }
197
+
198
  /*######################### Logo Function #################################*/
199
 
200
+ public function generete_logo_section($page_parametrs) {
201
 
202
+ ?>
203
+ <div class="main_parametrs_group_div closed_params ">
204
  <div class="head_panel_div" title="Click to toggle">
205
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/logo.png' ?>"></span>
206
  <span class="title_parametrs_group">Logo</span>
207
  <span class="enabled_or_disabled_parametr"></span>
208
+ <span class="open_or_closed"></span>
209
  </div>
210
  <div class="inside_information_div">
211
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
212
+ <tbody>
213
+ <tr>
214
+ <td>
215
+ Show the Logo<span title="Use this option to show/hide your logo from Coming soon page." class="desription_class">?</span>
216
+ </td>
217
+ <td>
218
+ <select id="coming_soon_page_logo_enable">
219
+ <option <?php selected($page_parametrs['coming_soon_page_logo_enable'], '1') ?> value="1">Show</option>
220
+ <option <?php selected($page_parametrs['coming_soon_page_logo_enable'], '0') ?> value="0">Hide</option>
221
+ </select>
222
+ </td>
223
+ </tr>
224
+ <tr>
225
+ <td>
226
+ Logo<span title="Click 'Upload' button to upload coming soon page logo." class="desription_class">?</span>
227
+ </td>
228
+ <td>
229
+ <input type="text" class="upload" id="coming_soon_page_page_logo" name="coming_soon_page_page_logo" value="<?php echo esc_html($page_parametrs['coming_soon_page_page_logo']); ?>" />
230
+ <input class="upload-button button" type="button" value="Upload" />
231
+ </td>
232
+ </tr>
233
+ <tr>
234
+ <td>
235
+ Logo position<span class="pro_feature"> (pro)</span> <span title="Here you can choose Coming soon page logo position(Left, Center, Right)." class="desription_class">?</span>
236
+ </td>
237
+ <td>
238
+ <select class="pro_select" id="coming_soon_page_logo_in_content_position">
239
+ <option value="0">Left</option>
240
+ <option selected="selected" value="1">Center</option>
241
+ <option value="2">Right</option>
242
+ </select>
243
+ </td>
244
+ </tr>
245
+ <tr>
246
+ <td>
247
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here your logo distance from the top." class="desription_class">?</span>
248
+ </td>
249
+ <td>
250
+ <input class="pro_input" type="text" name="coming_soon_page_logo_top_distance" id="coming_soon_page_logo_top_distance" value="10">(Px)
251
+ </td>
252
+ </tr>
253
+
254
+ <tr>
255
+ <td>
256
+ Logo maximum width<span class="pro_feature"> (pro)</span> <span title="Type here coming soon page logo maximum width(px)." class="desription_class">?</span>
257
+ </td>
258
+ <td>
259
+ <input class="pro_input" type="text" name="coming_soon_page_logo_max_width" id="coming_soon_page_logo_max_width" value="">(Px)
260
+ </td>
261
+ </tr>
262
+ <tr>
263
+ <td>
264
+ Logo maximum height<span class="pro_feature"> (pro)</span> <span title="Type here coming soon page logo maximum height(px)." class="desription_class">?</span>
265
+ </td>
266
+ <td>
267
+ <input class="pro_input" type="text" name="coming_soon_page_logo_max_height" id="coming_soon_page_logo_max_height" value="210">(Px)
268
+ </td>
269
+ </tr>
270
+ <tr>
271
+ <td>
272
+ Logo Animation type<span class="pro_feature"> (pro)</span> <span title="Select animation type for the coming soon page logo." class="desription_class">?</span>
273
+ </td>
274
+ <td>
275
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_logo_animation_type', 'none'); ?>
276
+ </td>
277
+ </tr>
278
+ <tr>
279
+ <td>
280
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here the Logo animation(in milliseconds) waiting time." class="desription_class">?</span>
281
+ </td>
282
+ <td>
283
+ <input class="pro_input" type="text" name="coming_soon_page_logo_animation_after_time" id="coming_soon_page_logo_animation_after_time" value="0">(milliseconds)
284
+ </td>
285
+ </tr>
286
+ </tbody>
287
  <tfoot>
288
  <tr>
289
  <th colspan="2" width="100%"><button type="button" id="coming_logo" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
290
  </tr>
291
+ </tfoot>
292
  </table>
293
+ </div>
294
+ </div>
295
+ <?php
296
  }
 
 
 
 
297
 
298
+ /*######################### Maintenance page Title Function #################################*/
299
+
300
+ public function generete_title_section($page_parametrs) {
301
+
302
+ ?>
303
+ <div class="main_parametrs_group_div closed_params ">
304
  <div class="head_panel_div" title="Click to toggle">
305
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/title.png' ?>"></span>
306
  <span class="title_parametrs_group">Title</span>
307
  <span class="enabled_or_disabled_parametr"></span>
308
+ <span class="open_or_closed"></span>
309
  </div>
310
  <div class="inside_information_div">
311
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
312
+ <tbody>
313
+ <tr>
314
+ <td>
315
+ Show the Title<span title="Use this option to show/hide title from Coming soon page." class="desription_class">?</span>
316
+ </td>
317
+ <td>
318
+ <select id="coming_soon_page_title_enable">
319
+ <option <?php selected($page_parametrs['coming_soon_page_title_enable'], '1') ?> value="1">Show</option>
320
+ <option <?php selected($page_parametrs['coming_soon_page_title_enable'], '0') ?> value="0">Hide</option>
321
+ </select>
322
+ </td>
323
+ </tr>
324
+ <tr>
325
+ <td>
326
+ Title<span title="Type here coming soon page title." class="desription_class">?</span>
327
+ </td>
328
+ <td>
329
+ <input type="text" name="coming_soon_page_page_title" id="coming_soon_page_page_title" value="<?php echo esc_html($page_parametrs['coming_soon_page_page_title']); ?>">
330
+ </td>
331
+ </tr>
332
+ <tr>
333
+ <td>
334
+ Title color<span class="pro_feature"> (pro)</span> <span title="Select the title color." class="desription_class">?</span>
335
+ </td>
336
+ <td>
337
+ <div class="wp-picker-container disabled_picker">
338
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
339
+ </div>
340
+ </td>
341
+ </tr>
342
+ <tr>
343
+ <td>
344
+ Title Font size<span class="pro_feature"> (pro)</span> <span title="Type here your coming soon page title font size(px)." class="desription_class">?</span>
345
+ </td>
346
+ <td>
347
+ <input type="text" class="pro_input" name="coming_soon_page_page_title_font_size" id="coming_soon_page_page_title_font_size" value="55">(Px)
348
+ </td>
349
+ </tr>
350
+ <tr>
351
+ <td>
352
+ Title Font-family<span class="pro_feature"> (pro)</span> <span title="Choose title font family." class="desription_class">?</span>
353
+ </td>
354
+ <td>
355
+ <?php $this->create_select_element_for_font('coming_soon_page_page_title_font', 'Times New Roman,Times,Georgia,serif') ?>
356
+ </td>
357
+ </tr>
358
+ <tr>
359
+ <td>
360
+ Title position<span class="pro_feature"> (pro)</span> <span title="Choose your coming soon page title position(Left, Center, Right)." class="desription_class">?</span>
361
+ </td>
362
+ <td>
363
+ <select class="pro_select" id="coming_soon_page_title_in_content_position">
364
+ <option value="0">Left</option>
365
+ <option selected="selected" value="1">Center</option>
366
+ <option value="2">Right</option>
367
+ </select>
368
+ </td>
369
+ </tr>
370
+ <tr>
371
+ <td>
372
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here title field distance from the top." class="desription_class">?</span>
373
+ </td>
374
+ <td>
375
+ <input class="pro_input" type="text" name="coming_soon_page_title_top_distance" id="coming_soon_page_title_top_distance" value="10">(Px)
376
+ </td>
377
+ </tr>
378
+ <tr>
379
+ <td>
380
+ Title Animation type<span class="pro_feature"> (pro)</span> <span title="Choose title animation type." class="desription_class">?</span>
381
+ </td>
382
+ <td>
383
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_title_animation_type', 'none'); ?>
384
+ </td>
385
+ </tr>
386
+ <tr>
387
+ <td>
388
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here title animation(in milliseconds) waiting time." class="desription_class">?</span>
389
+ </td>
390
+ <td>
391
+ <input class="pro_input" type="text" name="coming_soon_page_title_animation_after_time" id="coming_soon_page_title_animation_after_time" value="0">(milliseconds)
392
+ </td>
393
+ </tr>
394
+ </tbody>
395
  <tfoot>
396
  <tr>
397
  <th colspan="2" width="100%"><button type="button" id="coming_title" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
398
  </tr>
399
+ </tfoot>
400
  </table>
401
+ </div>
402
+ </div>
403
+ <?php
404
  }
 
 
405
 
406
+ /*######################### Maintenance page Content function #################################*/
407
 
408
+ public function generete_message_section($page_parametrs) {
409
+
410
+ ?>
411
+ <div class="main_parametrs_group_div closed_params ">
412
  <div class="head_panel_div" title="Click to toggle">
413
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/message.png' ?>"></span>
414
  <span class="title_parametrs_group">Message</span>
415
  <span class="enabled_or_disabled_parametr"></span>
416
+ <span class="open_or_closed"></span>
417
  </div>
418
  <div class="inside_information_div">
419
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
420
+ <tbody>
421
+ <tr>
422
+ <td>
423
+ Show the Message <span title="Use this option to show/hide Message box from Coming soon page." class="desription_class">?</span>
424
+ </td>
425
+ <td>
426
+ <select id="coming_soon_page_message_enable">
427
+ <option <?php selected($page_parametrs['coming_soon_page_message_enable'], '1') ?> value="1">Show</option>
428
+ <option <?php selected($page_parametrs['coming_soon_page_message_enable'], '0') ?> value="0">Hide</option>
429
+ </select>
430
+ </td>
431
+ </tr>
432
+ <tr>
433
+ <td colspan="2">
434
+ <b>Message</b>
435
+ <div style="width:100%"> <?php wp_editor(wp_filter_post_kses(stripslashes($page_parametrs['coming_soon_page_page_message'])), 'coming_soon_page_page_message', $settings = array('media_buttons' => false, 'textarea_rows' => 5)); ?></div>
436
+ </td>
437
+
438
+ </tr>
439
+ <tr>
440
+ <td>
441
+ Message position<span class="pro_feature"> (pro)</span> <span title="Choose Message box position(Left, Center, Right)." class="desription_class">?</span>
442
+ </td>
443
+ <td>
444
+ <select class="pro_select" id="coming_soon_page_message_in_content_position">
445
+ <option value="0">Left</option>
446
+ <option selected="selected" value="1">Center</option>
447
+ <option value="2">Right</option>
448
+ </select>
449
+ </td>
450
+ </tr>
451
+ <tr>
452
+ <td>
453
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Message box distance from the top." class="desription_class">?</span>
454
+ </td>
455
+ <td>
456
+ <input class="pro_input" type="text" name="coming_soon_page_message_top_distance" id="coming_soon_page_message_top_distance" value="10">(Px)
457
+ </td>
458
+ </tr>
459
+ <tr>
460
+ <td>
461
+ Message Animation type<span class="pro_feature"> (pro)</span> <span title="Choose the Message box animation type." class="desription_class">?</span>
462
+ </td>
463
+ <td>
464
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_message_animation_type', 'none'); ?>
465
+ </td>
466
+ </tr>
467
+ <tr>
468
+ <td>
469
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Message box animation waiting time(in milliseconds)." class="desription_class">?</span>
470
+ </td>
471
+ <td>
472
+ <input type="text" name="coming_soon_page_message_animation_after_time" id="coming_soon_page_message_animation_after_time" value="0">(milliseconds)
473
+ </td>
474
+ </tr>
475
+ </tbody>
476
  <tfoot>
477
  <tr>
478
  <th colspan="2" width="100%"><button type="button" id="coming_message" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
479
  </tr>
480
+ </tfoot>
481
  </table>
482
+ </div>
483
+ </div>
484
+ <?php
485
  }
 
 
 
 
486
 
487
+ /*######################### Countdown Timer Function #################################*/
488
+
489
+ public function generete_countdown_section($page_parametrs) {
490
+
491
+ ?>
492
+ <div class="main_parametrs_group_div closed_params ">
493
  <div class="head_panel_div" title="Click to toggle">
494
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/timer.png' ?>"></span>
495
  <span class="title_parametrs_group">Countdown Timer <span class="pro_feature_label"> (Pro feature!)</span></span>
496
  <span class="enabled_or_disabled_parametr"></span>
497
+ <span class="open_or_closed"></span>
498
  </div>
499
  <div class="inside_information_div">
500
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
501
+ <tbody>
502
+ <tr>
503
+ <td>
504
+ Display the Countdown Timer<span class="pro_feature"> (pro)</span> <span title="Show/hide Countdown from Coming soon page." class="desription_class">?</span>
505
+ </td>
506
+ <td>
507
+ <select class="pro_select" id="coming_soon_page_countdown_enable">
508
+ <option value="1">Show</option>
509
+ <option selected="selected" value="0">Hide</option>
510
+ </select>
511
+ </td>
512
+ </tr>
513
+ <tr>
514
+ <td>
515
+ Text for the day field<span class="pro_feature"> (pro)</span> <span title="Type here Day field text." class="desription_class">?</span>
516
+ </td>
517
+ <td>
518
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_days_text" id="coming_soon_page_countdown_days_text" value="day">
519
+ </td>
520
+ </tr>
521
+ <tr>
522
+ <td>
523
+ Text for the hour field<span class="pro_feature"> (pro)</span> <span title="Type here Hour field text." class="desription_class">?</span>
524
+ </td>
525
+ <td>
526
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_hourse_text" id="coming_soon_page_countdown_hourse_text" value="hour">
527
+ </td>
528
+ </tr>
529
+ <tr>
530
+ <td>
531
+ Text for the minute field<span class="pro_feature"> (pro)</span> <span title="Type here Minute field text." class="desription_class">?</span>
532
+ </td>
533
+ <td>
534
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_minuts_text" id="coming_soon_page_countdown_minuts_text" value="minute">
535
+ </td>
536
+ </tr>
537
+ <tr>
538
+ <td>
539
+ Text for the second field<span class="pro_feature"> (pro)</span> <span title="Type here Second field text." class="desription_class">?</span>
540
+ </td>
541
+ <td>
542
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_seconds_text" id="coming_soon_page_countdown_seconds_text" value="second">
543
+ </td>
544
+ </tr>
545
+ <tr>
546
+ <td>
547
+ Countdown Timer date<span class="pro_feature"> (pro)</span> <span title="Type here the Countdown time(days, hour), then select the Countdown start date." class="desription_class">?</span>
548
+ </td>
549
+ <td style="vertical-align: top !important;">
550
+
551
+ <span style="display:inline-block; width:45px;">
552
+ <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Day" id="coming_soon_page_countdownday" size="2" value="" />
553
+ <small style="display:block">Day</small>
554
+ </span>
555
+ <span style="display:inline-block; width:65px;">
556
+ <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Hour" id="coming_soon_page_countdownhour" size="5" value="" />
557
+ <small>Hour</small>
558
+ </span>
559
+ <span style="display:inline-block; width:100px;">
560
+ <input class="pro_input" type="text" onchange="refresh_countdown()" placeholder="Start date" id="coming_soon_page_countdownstart_day" size="9" value="" />
561
+ <small style="font-weight:bold;">Start date</small>
562
+ </span>
563
+ </td>
564
+ </tr>
565
+ <tr>
566
+ <td>
567
+ <span style="font-weight:bold;">After Countdown Timer expired</span><span class="pro_feature"> (pro)</span> <span title="Choose the action you need when Countdown timer expired(Disable coming soon or only hide Countdown)." class="desription_class">?</span>
568
+ </td>
569
+ <td>
570
+ <select class="pro_select" id="coming_soon_page_countdownstart_on">
571
+ <option value="on">Disable coming soon</option>
572
+ <option selected="selected" value="off">Hide Countdown</option>
573
+ </select>
574
+ </td>
575
+ </tr>
576
+ <tr>
577
+ <td>
578
+ Countdown Timer position<span class="pro_feature"> (pro)</span> <span title="Choose position for countdown(Left, Center, Right)." class="desription_class">?</span>
579
+ </td>
580
+ <td>
581
+ <select class="pro_select" id="coming_soon_page_countdown_in_content_position">
582
+ <option value="0">Left</option>
583
+ <option selected="selected" value="1">Center</option>
584
+ <option value="2">Right</option>
585
+ </select>
586
+ </td>
587
+ </tr>
588
+ <tr>
589
+ <td>
590
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here countdown distance from the top." class="desription_class">?</span>
591
+ </td>
592
+ <td>
593
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_top_distance" id="coming_soon_page_countdown_top_distance" value="10">(Px)
594
+ </td>
595
+ </tr>
596
+
597
+ <tr>
598
+ <td>
599
+ Countdown Timer Buttons type<span class="pro_feature"> (pro)</span> <span title="Choose the countdown buttons type(button, circle, vertical slider)" class="desription_class">?</span>
600
+ </td>
601
+ <td>
602
+ <select class="pro_select" id="coming_soon_page_countdown_type" class="coming_set_hiddens">
603
+ <option selected="selected" value="button">Button</option>
604
+ <option value="circle">Circle</option>
605
+ <option value="vertical_slide">Vertical Slider</option>
606
+ </select>
607
+ </td>
608
+ </tr>
609
+
610
+ <tr class="tr_button tr_circle tr_vertical_slide">
611
+ <td>
612
+ Countdown Timer text color<span class="pro_feature"> (pro)</span> <span title="Select the countdown text color." class="desription_class">?</span>
613
+ </td>
614
+ <td>
615
+ <div class="wp-picker-container disabled_picker">
616
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
617
+ </div>
618
+ </td>
619
+ </tr>
620
+ <tr class="tr_button tr_circle tr_vertical_slide">
621
+ <td>
622
+ Countdown Timer background color<span class="pro_feature"> (pro)</span> <span title="Select the countdown background color." class="desription_class">?</span>
623
+ </td>
624
+ <td>
625
+ <div class="wp-picker-container disabled_picker">
626
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
627
+ </div>
628
+ </td>
629
+ </tr>
630
+ <tr class="tr_circle">
631
+ <td>
632
+ Countdown Timer size<span class="pro_feature"> (pro)</span> <span title="Configure the countdown size." class="desription_class">?</span>
633
+ </td>
634
+ <td>
635
+ <input class="pro_input" type="text" name="coming_soon_page_countdown_circle_size" id="coming_soon_page_countdown_circle_size" value="120">(Px)
636
+ </td>
637
+ </tr>
638
+
639
+ <tr class="tr_circle">
640
+ <td>
641
+ Countdown Timer border width<span class="pro_feature"> (pro)</span> <span title="Select the countdown border width for circle buttons(only apears when you choose Countedown circle buttons)(px)." class="desription_class">?</span>
642
+ </td>
643
+ <td>
644
+ <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_countdown_circle_border" value="3" id="coming_soon_page_countdown_circle_border" style="border:0; color:#f6931f; font-weight:bold; width:35px">%
645
+ <div class="slider_div"></div>
646
+ </td>
647
+ </tr>
648
+ <tr class="tr_button">
649
+ <td>
650
+ Countdown Timer border radius<span class="pro_feature"> (pro)</span> <span title="Type here the countdown buttons border radius(px)." class="desription_class">?</span>
651
+ </td>
652
+ <td>
653
+ <input class="pro_input" type="text" name="countdown_border_radius" id="countdown_border_radius" value="15">(Px)
654
+ </td>
655
+ </tr>
656
+ <tr class="tr_button tr_vertical_slide">
657
+ <td>
658
+ Countdown Timer font-size<span class="pro_feature"> (pro)</span> <span title="Type here the countedow text font-size(px)." class="desription_class">?</span>
659
+ </td>
660
+ <td>
661
+ <input class="pro_input" type="text" name="countdown_font_size" id="countdown_font_size" value="35">(Px)
662
+ </td>
663
+ </tr>
664
+
665
+ <tr class="tr_button tr_circle tr_vertical_slide">
666
+ <td>
667
+ Countdown Timer Font-family<span class="pro_feature"> (pro)</span> <span title="Select the countdown text Font family." class="desription_class">?</span>
668
+ </td>
669
+ <td>
670
+ <?php $this->create_select_element_for_font('coming_soon_page_countdown_font_famaly', 'monospace') ?>
671
+ </td>
672
+ </tr>
673
+ <tr>
674
+ <td>
675
+ Countdown Timer animation type<span class="pro_feature"> (pro)</span> <span title="Select animation type for countdown." class="desription_class">?</span>
676
+ </td>
677
+ <td>
678
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_countdown_animation_type', 'none'); ?>
679
+ </td>
680
+ </tr>
681
+ <tr>
682
+ <td>
683
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for countdown animation(in milliseconds)." class="desription_class">?</span>
684
+ </td>
685
+ <td>
686
+ <input type="text" class="pro_input" name="coming_soon_page_countdown_animation_after_time" id="coming_soon_page_countdown_animation_after_time" value="0">(milliseconds)
687
+ </td>
688
+ </tr>
689
+ </tbody>
690
  <tfoot>
691
  <tr>
692
  <th colspan="2" width="100%"><button type="button" id="coming_countdown" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
693
  </tr>
694
+ </tfoot>
695
  </table>
696
+ </div>
697
+ </div>
698
+ <?php
699
  }
 
 
700
 
701
+ /*######################### Maintenance page Progress bar function #################################*/
702
 
703
+ public function generete_progressbar_section($page_parametrs) {
704
+
705
+ ?>
706
+ <div class="main_parametrs_group_div closed_params ">
707
  <div class="head_panel_div" title="Click to toggle">
708
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/progressbar.png' ?>"></span>
709
+ <span class="title_parametrs_group">Progress bar<span class="pro_feature_label"> (Pro feature!)</span></span>
710
  <span class="enabled_or_disabled_parametr"></span>
711
+ <span class="open_or_closed"></span>
712
  </div>
713
  <div class="inside_information_div">
714
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
715
+ <tbody>
716
+ <tr>
717
+ <td>
718
+ Show the Progress bar<span class="pro_feature"> (pro)</span> <span title="Use this option to show/hide the Progress bar from the Coming soon page." class="desription_class">?</span>
719
+ </td>
720
+ <td>
721
+ <select class="pro_select" id="coming_soon_page_progressbar_enable">
722
+ <option value="1">Show</option>
723
+ <option selected="selected" value="0">Hide</option>
724
+ </select>
725
+ </td>
726
+ </tr>
727
+ <tr>
728
+ <td>
729
+ Progress bar processing percentage<span class="pro_feature"> (pro)</span> <span title="Use this option to select the Progress bar processing percentage." class="desription_class">?</span>
730
+ </td>
731
+ <td>
732
+ <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_progressbar_initial_pracent" value="25" id="coming_soon_page_progressbar_initial_pracent" style="border:0; color:#f6931f; font-weight:bold; width:35px">%
733
+ <div class="slider_div"></div>
734
+ </td>
735
+ </tr>
736
+ <tr>
737
+ <td>
738
+ Progress bar Width<span class="pro_feature"> (pro)</span> <span title="Type here Progress bar width(px)." class="desription_class">?</span>
739
+ </td>
740
+ <td>
741
+ <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_progressbar_width" value="100" id="coming_soon_page_progressbar_width" style="border:0; color:#f6931f; font-weight:bold; width:35px">%
742
+ <div class="slider_div"></div>
743
+ </td>
744
+ </tr>
745
+ <tr>
746
+ <td>
747
+ Progress bar position<span class="pro_feature"> (pro)</span> <span title="Choose position for Progress bar(Left, Center, Right)." class="desription_class">?</span>
748
+ </td>
749
+ <td>
750
+ <select class="pro_select" id="coming_soon_page_progressbar_in_content_position">
751
+ <option value="0">Left</option>
752
+ <option selected="selected" value="1">Center</option>
753
+ <option value="2">Right</option>
754
+ </select>
755
+ </td>
756
+ </tr>
757
+ <tr>
758
+ <td>
759
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here the Progress bar distance from the top." class="desription_class">?</span>
760
+ </td>
761
+ <td>
762
+ <input class="pro_input" type="text" name="coming_soon_page_progressbar_top_distance" id="coming_soon_page_progressbar_top_distance" value="10">(Px)
763
+ </td>
764
+ </tr>
765
+ <tr>
766
+ <td>
767
+ Progress bar load color<span class="pro_feature"> (pro)</span> <span title="Select the progress bar load color." class="desription_class">?</span>
768
+ </td>
769
+ <td>
770
+ <div class="wp-picker-container disabled_picker">
771
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
772
+ </div>
773
+ </td>
774
+ </tr>
775
+ <tr>
776
+ <td>
777
+ Border color<span class="pro_feature"> (pro)</span> <span title="Select the Progress bar border color." class="desription_class">?</span>
778
+ </td>
779
+ <td>
780
+ <div class="wp-picker-container disabled_picker">
781
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
782
+ </div>
783
+ </td>
784
+ </tr>
785
+ <tr>
786
+ <td>
787
+ Border width<span class="pro_feature"> (pro)</span> <span title="Set progress bar border width(px)." class="desription_class">?</span>
788
+ </td>
789
+ <td>
790
+ <input class="pro_input" type="text" name="coming_soon_page_progressbar_border_width" id="coming_soon_page_progressbar_border_width" value="3">(Px)
791
+ </td>
792
+ </tr>
793
+ <tr>
794
+ <td>
795
+ Border radius<span class="pro_feature"> (pro)</span> <span title="Set the progress bar border radius(px)." class="desription_class">?</span>
796
+ </td>
797
+ <td>
798
+ <input class="pro_input" type="text" name="coming_soon_page_progressbar_border_radius" id="coming_soon_page_progressbar_border_radius" value="15">(Px)
799
+ </td>
800
+ </tr>
801
+
802
+ <tr>
803
+ <td>
804
+ Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Progress bar." class="desription_class">?</span>
805
+ </td>
806
+ <td>
807
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_progressbar_animation_type', 'none'); ?>
808
+ </td>
809
+ </tr>
810
+ <tr>
811
+ <td>
812
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Progress bar animation(in milliseconds)." class="desription_class">?</span>
813
+ </td>
814
+ <td>
815
+ <input class="pro_input" type="text" name="coming_soon_page_progressbar_animation_after_time" id="coming_soon_page_progressbar_animation_after_time" value="0">(milliseconds)
816
+ </td>
817
+ </tr>
818
+
819
+ </tbody>
820
  <tfoot>
821
  <tr>
822
  <th colspan="2" width="100%"><button type="button" id="coming_progressbar" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
823
  </tr>
824
+ </tfoot>
825
  </table>
826
+ </div>
827
+ </div>
828
+ <?php
829
  }
830
+
831
  /*######################### Maintenance page Subscribe function #################################*/
 
 
832
 
833
+ public function generete_subscribe_section($page_parametrs) {
834
+
835
+ ?>
836
+ <div class="main_parametrs_group_div closed_params ">
837
  <div class="head_panel_div" title="Click to toggle">
838
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/subscribe.png' ?>"></span>
839
+ <span class="title_parametrs_group">Subscribe Form (Mailing list)<span class="pro_feature_label"> (Pro feature!)</span></span>
840
  <span class="enabled_or_disabled_parametr"></span>
841
+ <span class="open_or_closed"></span>
842
  </div>
843
  <div class="inside_information_div">
844
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
845
+ <tbody>
846
+ <tr>
847
+ <td>
848
+ Show the Subscribe Form<span class="pro_feature"> (pro)</span> <span title="Use this option to show or hide Subscribe Form from Coming soon page." class="desription_class">?</span>
849
+ </td>
850
+ <td>
851
+ <select class="pro_select" id="enable_mailing_list">
852
+ <option value="on">Show</option>
853
+ <option selected="selected" value="off">Hide</option>
854
+ </select>
855
+ </td>
856
+ </tr>
857
+ <tr>
858
+ <td>
859
+ First name<span class="pro_feature"> (pro)</span> <span title="Type here text for first name field." class="desription_class">?</span>
860
+ </td>
861
+ <td>
862
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_firstname" id="coming_soon_page_subscribe_firstname" value="First name">
863
+ </td>
864
+ </tr>
865
+ <tr>
866
+ <td>
867
+ Last name<span class="pro_feature"> (pro)</span> <span title="Type here text for last name field." class="desription_class">?</span>
868
+ </td>
869
+ <td>
870
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_lastname" id="coming_soon_page_subscribe_lastname" value="Last name">
871
+ </td>
872
+ </tr>
873
+ <tr>
874
+ <td>
875
+ Text for the email field <span class="pro_feature"> (pro)</span> <span title="Type here text for email field." class="desription_class">?</span>
876
+ </td>
877
+ <td>
878
+ <input class="pro_input" type="text" name="mailing_list_value_of_emptyt" id="mailing_list_value_of_emptyt" value="Email">
879
+ </td>
880
+ </tr>
881
+ <tr>
882
+ <td>
883
+ Text for the Send button<span class="pro_feature"> (pro)</span> <span title="Type here the Send button text." class="desription_class">?</span>
884
+ </td>
885
+ <td>
886
+ <input class="pro_input" type="text" name="mailing_list_button_value" id="mailing_list_button_value" value="Subscribe">
887
+ </td>
888
+ </tr>
889
+ <tr>
890
+ <td>
891
+ Success email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit the correct email." class="desription_class">?</span>
892
+ </td>
893
+ <td>
894
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_sucsess" id="coming_soon_page_subscribe_after_text_sucsess" value="You Have Been Successfully Subscribed!">
895
+ </td>
896
+ </tr>
897
+ <tr>
898
+ <td>
899
+ Existing email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users type already submitted email." class="desription_class">?</span>
900
+ </td>
901
+ <td>
902
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_alredy_exsist" id="coming_soon_page_subscribe_after_text_alredy_exsist" value="You're Already Subscribed!">
903
+ </td>
904
+ </tr>
905
+ <tr>
906
+ <td>
907
+ Blank email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit a blank field. " class="desription_class">?</span>
908
+ </td>
909
+ <td>
910
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_none" id="coming_soon_page_subscribe_after_text_none" value="Please Type Your Email">
911
+ </td>
912
+ </tr>
913
+ <tr>
914
+ <td>
915
+ Invalid email text<span class="pro_feature"> (pro)</span> <span title="Type here message that will appear after users submit wrong email." class="desription_class">?</span>
916
+ </td>
917
+ <td>
918
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_after_text_invalid" id="coming_soon_page_subscribe_after_text_invalid" value="Email Doesn't Exist">
919
+ </td>
920
+ </tr>
921
+
922
+ <tr>
923
+ <td>
924
+ Subscribe Form position<span class="pro_feature"> (pro)</span> <span title="Choose position for Subscribe Form(Left, Center, Right)." class="desription_class">?</span>
925
+ </td>
926
+ <td>
927
+ <select class="pro_select" id="coming_soon_page_subscribe_in_content_position">
928
+ <option value="0">Left</option>
929
+ <option selected="selected" value="1">Center</option>
930
+ <option value="2">Right</option>
931
+ </select>
932
+ </td>
933
+ </tr>
934
+ <tr>
935
+ <td>
936
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Subscribe Form distance from the top(px). " class="desription_class">?</span>
937
+ </td>
938
+ <td>
939
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_top_distance" id="coming_soon_page_subscribe_top_distance" value="10">(Px)
940
+ </td>
941
+ </tr>
942
+ </tr>
943
+ <tr>
944
+ <td>
945
+ Font Size<span class="pro_feature"> (pro)</span> <span title="Type here font size for all texts in Subscribe Form(px)." class="desription_class">?</span>
946
+ </td>
947
+ <td>
948
+ <input class="pro_input" type="text" name="sendmail_input_font_size" id="sendmail_input_font_size" value="14">(Px)
949
+ </td>
950
+ </tr>
951
+ <tr>
952
+ <td>
953
+ Email field border radius<span class="pro_feature"> (pro)</span> <span title="Type here border radius for email field." class="desription_class">?</span>
954
+ </td>
955
+ <td>
956
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_button_radius" id="coming_soon_page_subscribe_button_radius" value="0">(Px)
957
+ </td>
958
+ </tr>
959
+ <tr>
960
+ <td>
961
+ Input maximum width<span class="pro_feature"> (pro)</span> <span title="Type here maximum with for input field(px)." class="desription_class">?</span>
962
+ </td>
963
+ <td>
964
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_input_max_width" id="coming_soon_page_subscribe_input_max_width" value="350">(Px)
965
+ </td>
966
+ </tr>
967
+
968
+ <tr>
969
+ <td>
970
+ Font family<span class="pro_feature"> (pro)</span> <span title="Type here font family for all texts in Subscribe Form." class="desription_class">?</span>
971
+ </td>
972
+ <td>
973
+ <?php $this->create_select_element_for_font('coming_soon_page_subscribe_font_famely', 'monospace') ?>
974
+ </td>
975
+ </tr>
976
+ <tr>
977
+ <td>
978
+ Input field border color<span class="pro_feature"> (pro)</span> <span title="Select the input field border color." class="desription_class">?</span>
979
+ </td>
980
+ <td>
981
+ <div class="wp-picker-container disabled_picker">
982
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
983
+ </div>
984
+ </td>
985
+ </tr>
986
+ <tr>
987
+ <td>
988
+ Placeholder text color<span class="pro_feature"> (pro)</span> <span title="Select default text color for input fields. " class="desription_class">?</span>
989
+ </td>
990
+ <td>
991
+ <div class="wp-picker-container disabled_picker">
992
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
993
+ </div>
994
+ </td>
995
+ </tr>
996
+ <tr>
997
+ <td>
998
+ Send button bg color<span class="pro_feature"> (pro)</span> <span title="Select the send button background color." class="desription_class">?</span>
999
+ </td>
1000
+ <td>
1001
+ <div class="wp-picker-container disabled_picker">
1002
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1003
+ </div>
1004
+ </td>
1005
+ </tr>
1006
+ <tr>
1007
+ <td>
1008
+ Send button text color<span class="pro_feature"> (pro)</span> <span title="Select the send button text color." class="desription_class">?</span>
1009
+ </td>
1010
+ <td>
1011
+ <div class="wp-picker-container disabled_picker">
1012
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
1013
+ </div>
1014
+ </td>
1015
+ </tr>
1016
+
1017
+ <tr>
1018
+ <td>
1019
+ Input field text color<span class="pro_feature"> (pro)</span> <span title="Choose the input field text color." class="desription_class">?</span>
1020
+ </td>
1021
+ <td>
1022
+ <div class="wp-picker-container disabled_picker">
1023
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(255, 255, 255);"><span class="wp-color-result-text">Select Color</span></button>
1024
+ </div>
1025
+ </td>
1026
+ </tr>
1027
+ <tr>
1028
+ <td>
1029
+ After submit text color<span class="pro_feature"> (pro)</span> <span title="Select color of the text, that will apear after submit." class="desription_class">?</span>
1030
+ </td>
1031
+ <td>
1032
+ <div class="wp-picker-container disabled_picker">
1033
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1034
+ </div>
1035
+ </td>
1036
+ </tr>
1037
+ <tr>
1038
+ <td>
1039
+ Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Subscribe Form." class="desription_class">?</span>
1040
+ </td>
1041
+ <td>
1042
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_subscribe_animation_type', 'none'); ?>
1043
+ </td>
1044
+ </tr>
1045
+ <tr>
1046
+ <td>
1047
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Subscribe Form animation waiting time(in milliseconds)." class="desription_class">?</span>
1048
+ </td>
1049
+ <td>
1050
+ <input class="pro_input" type="text" name="coming_soon_page_subscribe_animation_after_time" id="coming_soon_page_subscribe_animation_after_time" value="0">(milliseconds)
1051
+ </td>
1052
+ </tr>
1053
+
1054
+ </tbody>
1055
  <tfoot>
1056
  <tr>
1057
  <th colspan="2" width="100%"><button type="button" id="coming_subscribe" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1058
  </tr>
1059
+ </tfoot>
1060
  </table>
1061
+ </div>
1062
+ </div>
1063
+ <?php
1064
  }
1065
+ /*######################### Socials Buttons Function #################################*/
1066
+ public function generete_social_network_section($page_parametrs) {
1067
 
1068
+ ?>
1069
+ <div class="main_parametrs_group_div closed_params ">
1070
  <div class="head_panel_div" title="Click to toggle">
1071
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/social_network.png' ?>"></span>
1072
  <span class="title_parametrs_group">Socials buttons</span>
1073
  <span class="enabled_or_disabled_parametr"></span>
1074
+ <span class="open_or_closed"></span>
1075
  </div>
1076
  <div class="inside_information_div">
1077
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1078
+ <tbody>
1079
+ <tr>
1080
+ <td>
1081
+ Show social buttons <span title="Show or hide social buttons on coming soon page." class="desription_class">?</span>
1082
+ </td>
1083
+ <td>
1084
+ <select id="coming_soon_page_socialis_enable">
1085
+ <option <?php selected($page_parametrs['coming_soon_page_socialis_enable'], '1') ?> value="1">Show</option>
1086
+ <option <?php selected($page_parametrs['coming_soon_page_socialis_enable'], '0') ?> value="0">Hide</option>
1087
+ </select>
1088
+ </td>
1089
+ </tr>
1090
+ <tr>
1091
+ <td>
1092
+ Open in new tab <span title="If you want to open social page in a new tab then enable this option" class="desription_class">?</span>
1093
+ </td>
1094
+ <td>
1095
+ <select id="coming_soon_page_open_new_tabe">
1096
+ <option <?php selected($page_parametrs['coming_soon_page_open_new_tabe'], '1') ?> value="1">Enable</option>
1097
+ <option <?php selected($page_parametrs['coming_soon_page_open_new_tabe'], '0') ?> value="0">Disable</option>
1098
+ </select>
1099
+ </td>
1100
+ </tr>
1101
+ <tr>
1102
+ <td>
1103
+ Facebook url <span title="Type here Facebook page url." class="desription_class">?</span>
1104
+ </td>
1105
+ <td>
1106
+ <input type="text" name="coming_soon_page_facebook" id="coming_soon_page_facebook" value="<?php echo esc_html($page_parametrs['coming_soon_page_facebook']); ?>">
1107
+ </td>
1108
+ </tr>
1109
+ <tr>
1110
+ <td>
1111
+ Facebook img url<span class="pro_feature"> (pro)</span> <span title="Insert here Facebook icon url or upload it." class="desription_class">?</span>
1112
+ </td>
1113
+ <td>
1114
+ <input class="pro_input" type="text" class="upload" id="social_facbook_bacground_image" name="social_facbook_bacground_image" value="" />
1115
+ <input class="button pro_input" type="button" value="Upload" />
1116
+ </td>
1117
+ </tr>
1118
+ <tr>
1119
+ <td>
1120
+ Twitter url <span title="Type here Twitter page url." class="desription_class">?</span>
1121
+ </td>
1122
+ <td>
1123
+ <input type="text" name="coming_soon_page_twitter" id="coming_soon_page_twitter" value="<?php echo esc_html($page_parametrs['coming_soon_page_twitter']); ?>">
1124
+ </td>
1125
+ </tr>
1126
+ <tr>
1127
+ <td>
1128
+ Twitter img url<span class="pro_feature"> (pro)</span> <span title="Insert here Twitter icon url or upload it." class="desription_class">?</span>
1129
+ </td>
1130
+ <td>
1131
+ <input type="text" class="pro_input" class="upload" id="social_twiter_bacground_image" name="social_twiter_bacground_image" value="" />
1132
+ <input class="pro_input button" type="button" value="Upload" />
1133
+ </td>
1134
+ </tr>
1135
+ <tr>
1136
+ <td>
1137
+ YouTube url <span title="Type here YouTube page url." class="desription_class">?</span>
1138
+ </td>
1139
+ <td>
1140
+ <input type="text" name="coming_soon_page_youtube" id="coming_soon_page_youtube" value="<?php echo esc_html($page_parametrs['coming_soon_page_youtube']) ?>">
1141
+ </td>
1142
+ </tr>
1143
+ <tr>
1144
+ <td>
1145
+ YouTube img url<span class="pro_feature"> (pro)</span> <span title="Insert here YouTube icon url or upload it." class="desription_class">?</span>
1146
+ </td>
1147
+ <td>
1148
+ <input type="text" class="pro_input" class="upload" id="social_youtobe_bacground_image" name="social_youtobe_bacground_image" value="" />
1149
+ <input class="pro_input button" type="button" value="Upload" />
1150
+ </td>
1151
+ </tr>
1152
+ <tr>
1153
+ <td>
1154
+ Instagram url <span title="Type here Instagram page url." class="desription_class">?</span>
1155
+ </td>
1156
+ <td>
1157
+ <input type="text" name="coming_soon_page_instagram" id="coming_soon_page_instagram" value="<?php echo esc_html($page_parametrs['coming_soon_page_instagram']); ?>">
1158
+ </td>
1159
+ </tr>
1160
+ <tr>
1161
+ <td>
1162
+ Instagram img url<span class="pro_feature"> (pro)</span> <span title="Insert here Instagram icon url or upload it." class="desription_class">?</span>
1163
+ </td>
1164
+ <td>
1165
+ <input type="text" class="pro_input" class="upload" id="social_instagram_bacground_image" name="social_instagram_bacground_image" value="" />
1166
+ <input class="pro_input button" type="button" value="Upload" />
1167
+ </td>
1168
+ </tr>
1169
+ <tr>
1170
+ <td>
1171
+ Social buttons position<span class="pro_feature"> (pro)</span> <span title="Choose position for Social buttons(Left, Center, Right)." class="desription_class">?</span>
1172
+ </td>
1173
+ <td>
1174
+ <select class="pro_select" id="coming_soon_page_socialis_in_content_position">
1175
+ <option value="0">Left</option>
1176
+ <option selected="selected" value="1">Center</option>
1177
+ <option value="2">Right</option>
1178
+ </select>
1179
+ </td>
1180
+ </tr>
1181
+ <tr>
1182
+ <td>
1183
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Social buttons distance from the top." class="desription_class">?</span>
1184
+ </td>
1185
+ <td>
1186
+ <input class="pro_input" type="text" name="coming_soon_page_socialis_top_distance" placeholder="Enter Distance" id="coming_soon_page_socialis_top_distance" value="10">(Px)
1187
+ </td>
1188
+ </tr>
1189
+
1190
+ <tr>
1191
+ <td>
1192
+ Social buttons maximum width<span class="pro_feature"> (pro)</span> <span title="Type here maximum width for Social buttons." class="desription_class">?</span>
1193
+ </td>
1194
+ <td>
1195
+ <input class="pro_input" type="text" name="coming_soon_page_socialis_max_width" id="coming_soon_page_socialis_max_width" value="">(Px)
1196
+ </td>
1197
+ </tr>
1198
+ <tr>
1199
+ <td>
1200
+ Social buttons maximum height<span class="pro_feature"> (pro)</span> <span title="Type here maximum height for Social buttons." class="desription_class">?</span>
1201
+ </td>
1202
+ <td>
1203
+ <input class="pro_input" type="text" name="coming_soon_page_socialis_max_height" id="coming_soon_page_socialis_max_height" value="">(Px)
1204
+ </td>
1205
+ </tr>
1206
+ <tr>
1207
+ <td>
1208
+ Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Social buttons." class="desription_class">?</span>
1209
+ </td>
1210
+ <td>
1211
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_socialis_animation_type', 'none'); ?>
1212
+ </td>
1213
+ </tr>
1214
+ <tr>
1215
+ <td>
1216
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here Social buttons animation waiting time(in milliseconds)." class="desription_class">?</span>
1217
+ </td>
1218
+ <td>
1219
+ <input class="pro_input" type="text" name="coming_soon_page_socialis_animation_after_time" id="coming_soon_page_socialis_animation_after_time" value="0">(milliseconds)
1220
+ </td>
1221
+ </tr>
1222
+ </tbody>
1223
  <tfoot>
1224
  <tr>
1225
  <th colspan="2" width="100%"><button type="button" id="coming_social_networks" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1226
  </tr>
1227
+ </tfoot>
1228
  </table>
1229
+ </div>
1230
+ </div>
1231
+ <?php
1232
  }
1233
+ /*######################### Link To Admin Function #################################*/
1234
+ public function generete_link_to_tashboard_section($page_parametrs) {
1235
 
1236
+ ?>
1237
+ <div class="main_parametrs_group_div closed_params ">
1238
  <div class="head_panel_div" title="Click to toggle">
1239
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/link_dashboard.png' ?>"></span>
1240
+ <span class="title_parametrs_group">Link to Admin<span class="pro_feature_label"> (Pro feature!)</span></span>
1241
  <span class="enabled_or_disabled_parametr"></span>
1242
+ <span class="open_or_closed"></span>
1243
  </div>
1244
  <div class="inside_information_div">
1245
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1246
+ <tbody>
1247
+ <tr>
1248
+ <td>
1249
+ Show Link to Admin<span class="pro_feature"> (pro)</span> <span title="Choose to show or hide Link To Admin." class="desription_class">?</span>
1250
+ </td>
1251
+ <td>
1252
+ <select class="pro_select" id="coming_soon_page_link_to_dashboard_enable">
1253
+ <option value="1">Show</option>
1254
+ <option selected="selected" value="0">Hide</option>
1255
+ </select>
1256
+ </td>
1257
+ </tr>
1258
+ <tr>
1259
+ <td>
1260
+ Link To Admin text<span class="pro_feature"> (pro)</span> <span title="Type here Link To Admin text." class="desription_class">?</span>
1261
+ </td>
1262
+ <td>
1263
+ <input class="pro_input" type="text" name="coming_soon_page_page_link_to_dashboard" placeholder="Enter Link Name" id="coming_soon_page_page_link_to_dashboard" value="Link To Admin">
1264
+ </td>
1265
+ </tr>
1266
+ <tr>
1267
+ <td>
1268
+ Text color<span class="pro_feature"> (pro)</span> <span title="Choose text color." class="desription_class">?</span>
1269
+ </td>
1270
+ <td>
1271
+ <div class="wp-picker-container disabled_picker">
1272
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1273
+ </div>
1274
+ </td>
1275
+ </tr>
1276
+ <tr>
1277
+ <td>
1278
+ Font Size<span class="pro_feature"> (pro)</span> <span title="Type here text Font Size." class="desription_class">?</span>
1279
+ </td>
1280
+ <td>
1281
+ <input type="text" name="coming_soon_page_page_link_to_dashboard_font_size" id="coming_soon_page_page_link_to_dashboard_font_size" value="55">(Px)
1282
+ </td>
1283
+ </tr>
1284
+ <tr>
1285
+ <td>
1286
+ Font family<span class="pro_feature"> (pro)</span> <span title="Select Font family for Link To Admin." class="desription_class">?</span>
1287
+ </td>
1288
+ <td>
1289
+ <?php $this->create_select_element_for_font('coming_soon_page_page_link_to_dashboard_font', 'monospace') ?>
1290
+ </td>
1291
+ </tr>
1292
+ <tr>
1293
+ <td>
1294
+ Position<span class="pro_feature"> (pro)</span> <span title="Choose position for Link To Admin section(Left, Center, Right)." class="desription_class">?</span>
1295
+ </td>
1296
+ <td>
1297
+ <select id="coming_soon_page_link_to_dashboard_in_content_position">
1298
+ <option value="0">Left</option>
1299
+ <option selected="selected" value="1">Center</option>
1300
+ <option value="2">Right</option>
1301
+ </select>
1302
+ </td>
1303
+ </tr>
1304
+ <tr>
1305
+ <td>
1306
+ Distance from the top<span class="pro_feature"> (pro)</span> <span title="Type here Link To Admin distance from the top." class="desription_class">?</span>
1307
+ </td>
1308
+ <td>
1309
+ <input type="text" name="coming_soon_page_link_to_dashboard_top_distance" id="coming_soon_page_link_to_dashboard_top_distance" value="10">(Px)
1310
+ </td>
1311
+ </tr>
1312
+ <tr>
1313
+ <td>
1314
+ Animation type<span class="pro_feature"> (pro)</span> <span title="Choose animation type for Link To Admin." class="desription_class">?</span>
1315
+ </td>
1316
+ <td>
1317
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_link_to_dashboard_animation_type', 'none'); ?>
1318
+ </td>
1319
+ </tr>
1320
+ <tr>
1321
+ <td>
1322
+ Animation waiting time<span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Link To Admin animation(in milliseconds)." class="desription_class">?</span>
1323
+ </td>
1324
+ <td>
1325
+ <input type="text" name="coming_soon_page_link_to_dashboard_animation_after_time" id="coming_soon_page_link_to_dashboard_animation_after_time" value="0">(milliseconds)
1326
+ </td>
1327
+ </tr>
1328
+ </tbody>
1329
  <tfoot>
1330
  <tr>
1331
  <th colspan="2" width="100%"><button type="button" id="coming_link_to_dashboard" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1332
  </tr>
1333
+ </tfoot>
1334
  </table>
1335
+ </div>
1336
+ </div>
1337
+ <?php
1338
  }
1339
  /*######################### Footer Message Part #################################*/
1340
+ public function generete_message_footer_section($page_parametrs) {
1341
 
1342
+ ?>
1343
+ <div class="main_parametrs_group_div closed_params ">
1344
  <div class="head_panel_div" title="Click to toggle">
1345
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/message.png' ?>"></span>
1346
  <span class="title_parametrs_group">Footer Message</span>
1347
  <span class="enabled_or_disabled_parametr"></span>
1348
+ <span class="open_or_closed"></span>
1349
  </div>
1350
  <div class="inside_information_div">
1351
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1352
+ <tbody>
1353
+ <tr>
1354
+ <td>
1355
+ Footer Message Section <span title="Choose to show or hide Footer Message box from Coming soon page." class="desription_class">?</span>
1356
+ </td>
1357
+ <td>
1358
+ <select id="coming_soon_page_message_footer_enable">
1359
+ <option <?php selected($page_parametrs['coming_soon_page_message_footer_enable'], '1') ?> value="1">Show</option>
1360
+ <option <?php selected($page_parametrs['coming_soon_page_message_footer_enable'], '0') ?> value="0">Hide</option>
1361
+ </select>
1362
+ </td>
1363
+ </tr>
1364
+ <tr>
1365
+ <td colspan="2">
1366
+ <b>Footer Message Content</b>
1367
+ <div style="width:100%"> <?php wp_editor(wp_filter_post_kses(stripslashes($page_parametrs['coming_soon_page_page_message_footer'])), 'coming_soon_page_page_message_footer', $settings = array('media_buttons' => false, 'textarea_rows' => 5)); ?></div>
1368
+ </td>
1369
+
1370
+ </tr>
1371
+ <tr>
1372
+ <td>
1373
+ Footer Message position <span title="Choose position for Footer Message box(Left, Center, Right)." class="desription_class">?</span>
1374
+ </td>
1375
+ <td>
1376
+ <select id="coming_soon_page_message_footer_in_content_position">
1377
+ <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'], '0') ?> value="0">Left</option>
1378
+ <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'], '1') ?> value="1">Center</option>
1379
+ <option <?php selected($page_parametrs['coming_soon_page_message_footer_in_content_position'], '2') ?> value="2">Right</option>
1380
+ </select>
1381
+ </td>
1382
+ </tr>
1383
+ <tr>
1384
+ <td>
1385
+ Distance from the top <span title="Type here Footer Message box distance from the top." class="desription_class">?</span>
1386
+ </td>
1387
+ <td>
1388
+ <input type="text" name="coming_soon_page_message_footer_top_distance" id="coming_soon_page_message_footer_top_distance" value="<?php echo esc_html($page_parametrs['coming_soon_page_message_footer_top_distance']); ?>">(Px)
1389
+ </td>
1390
+ </tr>
1391
+ <tr>
1392
+ <td>
1393
+ Animation type of the Footer Message <span class="pro_feature"> (pro)</span> <span title="Choose animation type for Footer Message box." class="desription_class">?</span>
1394
+ </td>
1395
+ <td>
1396
+ <?php $this->create_select_element_for_showing_effect('coming_soon_page_message_footer_animation_type', 'none'); ?>
1397
+ </td>
1398
+ </tr>
1399
+ <tr>
1400
+ <td>
1401
+ Waiting time of Animation <span class="pro_feature"> (pro)</span> <span title="Type here waiting time for Footer Message box animation(in milliseconds)." class="desription_class">?</span>
1402
+ </td>
1403
+ <td>
1404
+ <input type="text" name="coming_soon_page_message_footer_animation_after_time" id="coming_soon_page_message_footer_animation_after_time" value="0">(milliseconds)
1405
+ </td>
1406
+ </tr>
1407
+ </tbody>
1408
  <tfoot>
1409
  <tr>
1410
  <th colspan="2" width="100%"><button type="button" id="coming_message_footer" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1411
  </tr>
1412
+ </tfoot>
1413
  </table>
1414
+ </div>
1415
+ </div>
1416
+ <?php
1417
  }
1418
+ /*######################### Search Engine Optimization Part #################################*/
1419
+ public function generete_search_engine_section($page_parametrs) {
1420
 
1421
+ ?>
1422
+ <div class="main_parametrs_group_div closed_params ">
1423
  <div class="head_panel_div" title="Click to toggle">
1424
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/seo.png' ?>"></span>
1425
  <span class="title_parametrs_group">Search engines and Favicon</span>
1426
  <span class="enabled_or_disabled_parametr"></span>
1427
+ <span class="open_or_closed"></span>
1428
  </div>
1429
  <div class="inside_information_div">
1430
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1431
+ <tbody>
1432
+ <tr>
1433
+ <td>
1434
+ Title(SEO) <span title="Type here the Title for Search engines. 60 max recommended characters(It will be visible for search engines only)." class="desription_class">?</span>
1435
+ </td>
1436
+ <td>
1437
+ <input type="text" name="coming_soon_page_page_seo_title" id="coming_soon_page_page_seo_title" value="<?php echo esc_html($page_parametrs['coming_soon_page_page_seo_title']); ?>">
1438
+ </td>
1439
+ </tr>
1440
+ <tr>
1441
+ <td>
1442
+ Favicon <span class="pro_feature"> (pro)</span> <span title="Here you can upload favicon for coming soon page." class="desription_class">?</span>
1443
+ </td>
1444
+ <td>
1445
+ <input type="text" class="upload pro_input" id="coming_soon_page_page_favicon" name="coming_soon_page_page_favicon" value="" />
1446
+ <input class="pro_input button" type="button" value="Upload" />
1447
+ </td>
1448
+ </tr>
1449
+ <tr>
1450
+ <td>
1451
+ Search Robots <span title="Here you can enable or disable coming soon page for search robots. " class="desription_class">?</span>
1452
+ </td>
1453
+ <td>
1454
+ <select id="coming_soon_page_enable_search_robots">
1455
+ <option <?php selected($page_parametrs['coming_soon_page_enable_search_robots'], '1') ?> value="1">Enable</option>
1456
+ <option <?php selected($page_parametrs['coming_soon_page_enable_search_robots'], '0') ?> value="0">Disable</option>
1457
+ </select>
1458
+ </td>
1459
+ </tr>
1460
+ <tr>
1461
+ <td>
1462
+ Meta Keywords <span title="Type here meta keywords for coming soon page(It will be visible for search engines only)." class="desription_class">?</span>
1463
+ </td>
1464
+ <td>
1465
+ <input type="text" name="coming_soon_page_meta_keywords" placeholder="Enter Meta Keywords" id="coming_soon_page_meta_keywords" value="<?php echo esc_html($page_parametrs['coming_soon_page_meta_keywords']); ?>">
1466
+ </td>
1467
+ </tr>
1468
+ <tr>
1469
+ <td>
1470
+ Meta Description <span title="Type here meta description for coming soon page. 160 max recommended characters(It will be visible for search engines only)." class="desription_class">?</span>
1471
+ </td>
1472
+ <td>
1473
+ <input type="text" name="coming_soon_page_meta_description" placeholder="Enter Meta Description" id="coming_soon_page_meta_description" value="<?php echo esc_html($page_parametrs['coming_soon_page_meta_description']) ?>">
1474
+ </td>
1475
+ </tr>
1476
+ </tbody>
1477
  <tfoot>
1478
  <tr>
1479
  <th colspan="2" width="100%"><button type="button" id="search_engine_and_favicon" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1480
  </tr>
1481
+ </tfoot>
1482
  </table>
1483
+ </div>
1484
+ </div>
1485
+ <?php
1486
  }
1487
+ /*######################### Except Page or IP Part #################################*/
1488
+ public function generete_except_section($page_parametrs) {
1489
 
1490
+ ?>
1491
+ <div class="main_parametrs_group_div closed_params ">
1492
  <div class="head_panel_div" title="Click to toggle">
1493
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/except.png' ?>"></span>
1494
  <span class="title_parametrs_group">Except pages and IPs</span>
1495
  <span class="enabled_or_disabled_parametr"></span>
1496
+ <span class="open_or_closed"></span>
1497
  </div>
1498
  <div class="inside_information_div">
1499
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1500
+ <tbody>
1501
+ <tr>
1502
+ <td>
1503
+ Disable coming soon for these IPs <span title="You can disable coming soon for these IPs, just type the IP and click anywhere, then type the next IP in next field that will appear and so." class="desription_class">?</span>
1504
+ </td>
1505
+ <td>
1506
+ <div id="no_blocked_ips"></div>
1507
+ </td>
1508
+ </tr>
1509
+ <tr>
1510
+ <td>
1511
+ Disable coming soon for these URLs<span class="pro_feature"> (pro)</span> <span title="You can disable coming soon page for these URLs, just type the URL and click anywhere, then type the next URL in next field that will appear." class="desription_class">?</span>
1512
+ </td>
1513
+ <td>
1514
+ <input type="hidden" value="" id="coming_soon_page_showed_urls" name="coming_soon_page_showed_urls">
1515
+ <div class="emelent_coming_soon_page_showed_urls"> <input class="pro_input" type="text" placeholder="Type The URL Here" value=""><span class="remove_element remove_element_coming_soon_page_showed_urls"></span> </div>
1516
+ </td>
1517
+ </tr>
1518
+ <tr>
1519
+ <td>
1520
+ Enable only for Homepage <span title="Disable coming soon for all pages except Homepage" class="desription_class">?</span>
1521
+ </td>
1522
+ <td>
1523
+ <select id="coming_soon_enable_only_for_home">
1524
+ <option <?php selected($page_parametrs['coming_soon_enable_only_for_home'], '1') ?> value="1">Enable</option>
1525
+ <option <?php selected($page_parametrs['coming_soon_enable_only_for_home'], '0') ?> value="0">Disable</option>
1526
+ </select>
1527
+ </td>
1528
+ </tr>
1529
+ </tbody>
1530
  <tfoot>
1531
  <tr>
1532
  <th colspan="2" width="100%"><button type="button" id="except_page" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1533
  </tr>
1534
+ </tfoot>
1535
  </table>
1536
+ <script>
1537
+ jQuery(document).ready(function(e) {
1538
+ many_inputs.main_element_for_inserting_element = 'no_blocked_ips';
1539
+ many_inputs.element_name_and_id = 'coming_soon_page_showed_ips';
1540
+ many_inputs.placeholder = 'Type Ip Here';
1541
+ many_inputs.value_jsone_encoded = '<?php echo esc_js(stripslashes($page_parametrs['coming_soon_page_showed_ips'])); ?>';
1542
+ many_inputs.creates_elements();
1543
+ });
1544
+ </script>
1545
+ </div>
1546
+ </div>
1547
+ <?php
 
 
1548
  }
1549
+ /*######################### Background options Part #################################*/
1550
+ public function generete_background_section($page_parametrs) {
1551
+ ?>
1552
+ <div class="main_parametrs_group_div closed_params ">
 
1553
  <div class="head_panel_div" title="Click to toggle">
1554
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/background.png' ?>"></span>
1555
  <span class="title_parametrs_group">Background</span>
1556
  <span class="enabled_or_disabled_parametr"></span>
1557
+ <span class="open_or_closed"></span>
1558
  </div>
1559
  <div class="inside_information_div">
1560
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1561
+ <tbody>
1562
+ <tr>
1563
+ <td>
1564
+ Background type <span title="Select the background type you want to use for your coming soon page." class="desription_class">?</span>
1565
+ </td>
1566
+ <td>
1567
+ <select id="coming_soon_page_radio_backroun" class="coming_set_hiddens">
1568
+ <option <?php selected($page_parametrs['coming_soon_page_radio_backroun'], 'back_color') ?> value="back_color">Background Color</option>
1569
+ <option <?php selected($page_parametrs['coming_soon_page_radio_backroun'], 'back_imge') ?> value="back_imge">Background Image</option>
1570
+ <option disabled value="back_imge">Background Slider<span class="pro_feature"> (pro)</span></option>
1571
+ <option disabled value="back_imge">Video background(not for mobile)<span class="pro_feature"> (pro)</span></option>
1572
+ </select>
1573
+ </td>
1574
+ </tr>
1575
+ <tr class="tr_back_color white">
1576
+ <td>
1577
+ Set the color <span title="Select the background color for coming soon page(option will apear if you choose 'Background color' type)." class="desription_class">?</span>
1578
+ </td>
1579
+ <td>
1580
+ <input type="text" class="color_option" id="coming_soon_page_background_color" name="coming_soon_page_background_color" value="<?php echo esc_html($page_parametrs['coming_soon_page_background_color']); ?>" />
1581
+ </td>
1582
+ </tr>
1583
+ <tr class="tr_back_imge white">
1584
+ <td>
1585
+ Img url <span title="ype the image url or just upload image for coming soon page background(option will apear if you choose " Background image" type). " class=" desription_class">?</span>
1586
+ </td>
1587
+ <td>
1588
+ <input type="text" class="upload" id="coming_soon_page_background_img" name="coming_soon_page_background_img" value="<?php echo esc_html($page_parametrs['coming_soon_page_background_img']); ?>" />
1589
+ <input class="upload-button button" type="button" value="Upload" />
1590
+ </td>
1591
+ </tr>
1592
+ </tbody>
1593
+ <tfoot>
1594
+ <tr>
1595
+ <th colspan="2" width="100%"><button type="button" id="coming_background" class="save_section_parametrs button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1596
+ </tr>
1597
+ </tfoot>
1598
+ </table>
1599
+ </div>
1600
+ </div>
1601
+ <?php
1602
  }
1603
+ /*######################### Content Part #################################*/
1604
+ public function generete_content_section($page_parametrs) {
1605
 
1606
+ ?>
1607
+ <div class="main_parametrs_group_div closed_params ">
1608
  <div class="head_panel_div" title="Click to toggle">
1609
+ <span class="title_parametrs_image"><img src="<?php echo esc_url($this->plugin_url) . 'images/content.png' ?>"></span>
1610
+ <span class="title_parametrs_group">Content <span class="pro_feature_label"> (Pro feature!)</span></span>
1611
  <span class="enabled_or_disabled_parametr"></span>
1612
+ <span class="open_or_closed"></span>
1613
  </div>
1614
  <div class="inside_information_div">
1615
+ <table class="wp-list-table widefat fixed posts section_parametrs_table">
1616
+ <tbody>
1617
+ <tr>
1618
+ <td>
1619
+ Content position<span class="pro_feature"> (pro)</span> <span title="Choose content position on coming soon page." class="desription_class">?</span>
1620
+ </td>
1621
+ <td>
1622
+ <select class="pro_select" id="page_content_position">
1623
+ <option value="left-top">Top Left</option>
1624
+ <option value="left-middle">Middle Left</option>
1625
+ <option value="left-bottom">Bottom Left</option>
1626
+ <option value="center-top">Top center</option>
1627
+ <option selected="selected" value="center-middle">Middle center</option>
1628
+ <option value="center-bottom">Bottom center</option>
1629
+ <option value="right-top">Top right</option>
1630
+ <option value="right-middle">Middle right</option>
1631
+ <option value="right-bottom">Bottom right</option>
1632
+ </select>
1633
+ </td>
1634
+ </tr>
1635
+ <tr>
1636
+ <td>
1637
+ Content background color<span class="pro_feature"> (pro)</span> <span title="Select content background color." class="desription_class">?</span>
1638
+ </td>
1639
+ <td>
1640
+ <div class="wp-picker-container disabled_picker">
1641
+ <button type="button" class="button wp-color-result" aria-expanded="false" style="background-color: rgb(0, 0, 0);"><span class="wp-color-result-text">Select Color</span></button>
1642
+ </div>
1643
+ </td>
1644
+ </tr>
1645
+ <tr>
1646
+ <td>
1647
+ Content transparency<span class="pro_feature"> (pro)</span> <span title="Select transparency for content." class="desription_class">?</span>
1648
+ </td>
1649
+ <td>
1650
+ <input type="text" size="3" class="coming_number_slider pro_input" data-max-val="100" data-min-val="0" name="coming_soon_page_content_trasparensy" value="55" id="coming_soon_page_content_trasparensy" style="border:0; color:#f6931f; font-weight:bold; width:35px">%
1651
+ <div class="slider_div"></div>
1652
+ </td>
1653
+ </tr>
1654
+ <tr>
1655
+ <td>
1656
+ Border radius<span class="pro_feature"> (pro)</span> <span title="Type here border radius for content." class="desription_class">?</span>
1657
+ </td>
1658
+ <td>
1659
+ <input class="pro_input" type="text" name="page_content_boreder_radius" id="page_content_boreder_radius" value="8">(Px)
1660
+ </td>
1661
+ </tr>
1662
+ <tr>
1663
+ <td>
1664
+ Content maximum width<span class="pro_feature"> (pro)</span> <span title="Type here content maximum width." class="desription_class">?</span>
1665
+ </td>
1666
+ <td>
1667
+ <input class="pro_input" type="text" name="coming_soon_page_content_max_width" id="coming_soon_page_content_max_width" value="740">(Px)
1668
+ </td>
1669
+ </tr>
1670
+ <tr>
1671
+ <td>
1672
+ Padding<span class="pro_feature"> (pro)</span> <span title="Type here content padding value(padding properties define the space between the element border and the element content)." class="desription_class">?</span>
1673
+ </td>
1674
+ <td>
1675
+ <input class="pro_input" type="text" name="coming_soon_page_content_padding" id="coming_soon_page_content_padding" value="10">(Px)
1676
+ </td>
1677
+ </tr>
1678
+ <tr>
1679
+ <td>
1680
+ Margin<span class="pro_feature"> (pro)</span> <span title="Type here content margin value(margin properties define the space around elements)." class="desription_class">?</span>
1681
+ </td>
1682
+ <td>
1683
+ <input class="pro_input" type="text" name="coming_soon_page_content_margin" id="coming_soon_page_content_margin" value="15">(Px)
1684
+ </td>
1685
+ </tr>
1686
+ <tr>
1687
+ <td>
1688
+ Elements ordering<span class="pro_feature"> (pro)</span> <span title="Choose the order of showing elements on coming soon page(you can move all elements using drop down functionality)." class="desription_class">?</span>
1689
+ </td>
1690
+ <td>
1691
+
1692
+ <ul id="coming_soon_sortable">
1693
+ <li date-value="logo" class="ui-state-default">Logo<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1694
+ <li date-value="title" class="ui-state-default">Title<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1695
+ <li date-value="message" class="ui-state-default">Message<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1696
+ <li date-value="countdown" class="ui-state-default">Countdown<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1697
+ <li date-value="subscribe" class="ui-state-default">Subscribe Form<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1698
+ <li date-value="loading_animation" class="ui-state-default">Progress bar<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1699
+ <li date-value="link_to_dashboard" class="ui-state-default">Link to Admin<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1700
+ <li date-value="share_buttons" class="ui-state-default">Social buttons<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1701
+ <li date-value="message_footer" class="ui-state-default">Message footer<span class="ui-icon ui-icon-arrowthick-2-n-s"></span></li>
1702
+ </ul>
1703
+ </td>
1704
+ </tr>
1705
+
1706
+ </tbody>
1707
  <tfoot>
1708
  <tr>
1709
  <th colspan="2" width="100%"><button type="button" id="coming_content" class="pro_input button button-primary"><span class="save_button_span">Save Section</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button><span class="error_massage"> </span></th>
1710
  </tr>
1711
+ </tfoot>
1712
  </table>
1713
+ </div>
1714
+ </div>
1715
+ <?php
1716
  }
1717
+
1718
+ /*############ Subscribers table list function ################*/
1719
+
1720
+ private function generete_subscriber_table_lists($mailing_lsit_array) {
1721
+ $generete = '';
1722
+ if ($mailing_lsit_array) {
1723
+ foreach ($mailing_lsit_array as $key => $value) {
1724
+ $generete .= "{'email':'" . $key . "','firstname':'" . $value['firstname'] . "','lastname':'" . $value['lastname'] . "'},";
 
 
1725
  }
1726
+ $generete = rtrim($generete, ",");
 
 
 
1727
  }
1728
+ ?>
1729
+ <style>
1730
+ .description_row:nth-child(odd) {
1731
+ background-color: #f9f9f9;
1732
+ }
1733
  </style>
1734
+ <script>
1735
+ // jsone date for angiaulare js
1736
+ var my_table_list = <?php echo esc_js("[" . $generete . "]"); ?>
1737
+ </script>
1738
  <div>
1739
+ <form method="post" action="" id="admin_form" name="admin_form" ng-app="" ng-controller="customersController">
1740
+ <div class="tablenav top" style="width:95%">
1741
+ <input type="text" placeholder="Search" ng-change="filtering_table();" ng-model="searchText">
1742
+ <div class="tablenav-pages"><span class="displaying-num">{{filtering_table().length}} items</span>
1743
+ <span ng-show="(numberOfPages()-1)>=1">
1744
+ <span class="pagination-links"><a class="first-page" ng-class="{disabled:(curPage < 1 )}" title="Go to the first page" ng-click="curPage=0">«</a>
1745
+ <a class="prev-page" title="Go to the previous page" ng-class="{disabled:(curPage < 1 )}" ng-click="curPage=curPage-1; curect()">‹</a>
1746
+ <span class="paging-input"><span class="total-pages">{{curPage + 1}}</span> of <span class="total-pages">{{ numberOfPages() }}</span></span>
1747
+ <a class="next-page" title="Go to the next page" ng-class="{disabled:(curPage >= (numberOfPages() - 1))}" ng-click=" curPage=curPage+1; curect()">›</a>
1748
+ <a class="last-page" title="Go to the last page" ng-class="{disabled:(curPage >= (numberOfPages() - 1))}" ng-click="curPage=numberOfPages()-1">»</a></span>
1749
+ </div>
1750
+ </span>
1751
+ </div>
1752
+ <table class="wp-list-table widefat fixed pages" style="width:95%">
1753
+ <thead>
1754
+ <tr>
1755
+ <th data-ng-click="order_by='email'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>Email</span><span class="sorting-indicator"></span></a></th>
1756
+ <th data-ng-click="order_by='firstname'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>First name</span><span class="sorting-indicator"></span></a></th>
1757
+ <th data-ng-click="order_by='lastname'; reverse=!reverse; ordering($event,order_by,reverse)" class="manage-column sortable desc"><a><span>Last name</span><span class="sorting-indicator"></span></a></th>
1758
+ <th style="width:80px">Delete</th>
1759
+ </tr>
1760
+ </thead>
1761
+ <tbody>
1762
+ <tr ng-repeat="rows in names | filter:filtering_table" class="description_row">
1763
+ <td><a href="#">{{rows.email}}</a></td>
1764
+ <td><a href="#">{{rows.firstname}}</a></td>
1765
+ <td><a href="#">{{rows.lastname}}</a></td>
1766
+ <td><a href="admin.php?page=mailing-list-subscribers&task=remove_user&id={{rows.email}}">Delete</a></td>
1767
+
1768
+ </tr>
1769
+ </tbody>
1770
+ </table>
1771
+ </form>
1772
  </div>
1773
  <script>
1774
+ jQuery(document).ready(function(e) {
1775
+ jQuery('a.disabled').click(function() {
1776
+ return false
1777
+ });
1778
+ jQuery('form').on("keyup keypress", function(e) {
1779
+ var code = e.keyCode || e.which;
1780
+ if (code == 13) {
1781
+ e.preventDefault();
1782
+ return false;
1783
+ }
1784
+ });
1785
+ });
1786
+
1787
+ function customersController($scope, $filter) {
1788
+ var orderBy = $filter('orderBy');
1789
+ $scope.previsu_search_result = '';
1790
+ $scope.oredering = new Array();
1791
+ $scope.baza = my_table_list;
1792
+ $scope.curPage = 0;
1793
+ $scope.pageSize = 10;
1794
+ $scope.names = $scope.baza.slice($scope.curPage * $scope.pageSize, ($scope.curPage + 1) * $scope.pageSize)
1795
+ $scope.numberOfPages = function() {
1796
+ return Math.ceil($scope.filtering_table().length / $scope.pageSize);
1797
+ };
1798
+ $scope.filtering_table = function() {
1799
+ var new_searched_date_array = new Array;
1800
+ new_searched_date_array = [];
1801
+ angular.forEach($scope.baza, function(value, key) {
1802
+ var catched = 0;
1803
+ angular.forEach(value, function(value_loc, key_loc) {
1804
+ if (('' + value_loc).indexOf($scope.searchText) != -1 || $scope.searchText == '' || typeof($scope.searchText) == 'undefined')
1805
+ catched = 1;
1806
+ })
1807
+ if (catched)
1808
+ new_searched_date_array.push(value);
1809
+ })
1810
+ if ($scope.previsu_search_result != $scope.searchText) {
1811
+
1812
+ $scope.previsu_search_result = $scope.searchText;
1813
+ $scope.ordering($scope.oredering[0], $scope.oredering[1], $scope.oredering[2]);
1814
+
1815
+ }
1816
+ if (new_searched_date_array.length <= $scope.pageSize)
1817
+ $scope.curPage = 0;
1818
+ return new_searched_date_array;
1819
+ }
1820
+ $scope.curect = function() {
1821
+ if ($scope.curPage < 0) {
1822
+ $scope.curPage = 0;
1823
+ }
1824
+ if ($scope.curPage > $scope.numberOfPages() - 1)
1825
+ $scope.curPage = $scope.numberOfPages() - 1;
1826
+ $scope.names = $scope.filtering_table().slice($scope.curPage * $scope.pageSize, ($scope.curPage + 1) * $scope.pageSize)
1827
+ }
1828
+
1829
+ $scope.ordering = function($event, order_by, revers) {
1830
+ if (typeof($event) != 'undefined' && typeof($event.currentTarget) != 'undefined')
1831
+ element = $event.currentTarget;
1832
+ else
1833
+ element = jQuery();
1834
+
1835
+ if (revers)
1836
+ indicator = 'asc'
1837
+ else
1838
+ indicator = 'desc'
1839
+ $scope.oredering[0] = $event;
1840
+ $scope.oredering[1] = order_by;
1841
+ $scope.oredering[2] = revers;
1842
+ jQuery(element).parent().find('.manage-column').removeClass('sortable desc asc sorted');
1843
+ jQuery(element).parent().find('.manage-column').not(element).addClass('sortable desc');
1844
+ jQuery(element).addClass('sorted ' + indicator);
1845
+ $scope.names = orderBy($scope.filtering_table(), order_by, revers).slice($scope.curPage * $scope.pageSize, ($scope.curPage + 1) * $scope.pageSize)
1846
+ }
1847
+ }
1848
+ </script>
1849
+ <?php
1850
+
1851
  }
1852
+ public function mailing_list() {
1853
+ $page_parametrs = $this->generete_parametrs('mailing_list');
1854
+ $mailing_lists = NULL;
1855
+ if ($mailing_lists == NULL)
1856
+ $mailing_lists = array();
1857
+ if (isset($_GET['id']) && isset($_GET['task']) && $_GET['task'] == 'remove_user') {
1858
  $get_id = intval($_GET['id']);
1859
  unset($mailing_lists[$get_id]);
1860
+ update_option('users_mailer', json_encode($mailing_lists));
1861
  }
1862
+ ?>
1863
+
1864
  <div class="wpdevart_plugins_header div-for-clear">
1865
  <div class="wpdevart_plugins_get_pro div-for-clear">
1866
  <div class="wpdevart_plugins_get_pro_info">
1867
  <h3>WpDevArt Coming Soon Premium</h3>
1868
  <p>Powerful and Customizable Coming Soon</p>
1869
  </div>
1870
+ <a target="blank" href="http://wpdevart.com/wordpress-coming-soon-plugin/" class="wpdevart_upgrade">Upgrade</a>
1871
  </div>
1872
+ <a target="blank" href="<?php echo esc_url(wpdevart_comingsoon_support_url); ?>" class="wpdevart_support">Have any Questions? Get quick support!</a>
1873
  </div>
1874
+ <h2>Send Mail to all subscribed Users</h2>
1875
+ <p><span style="color:#7052fb;font-weight:bold;">All fields are required</span></p>
1876
+
1877
+ <form method="post" id="coming_soon_options_form_send_mail" action="admin.php?page='<?php echo 'coming-soon' ?>'">
1878
+ <span class="user_information_inputs">
1879
+ <input class="req_fields" type="text" value="" placeholder="Display Email" id="massage_from_mail" /><br />
1880
+ <input class="req_fields" type="text" value="" placeholder="Display Name " id="massage_from_name" /><br />
1881
+ <input class="req_fields" type="text" value="" placeholder="Message Title" id="massage_title" />
1882
+ </span>
1883
+ <textarea id="massage_description" placeholder="Message" style="width:400px; height:300px"></textarea><br /><br />
1884
+ <button type="button" id="send_mailing" class="save_button button button-primary"><span>Send Mail</span> <span class="saving_in_progress"> </span><span class="sucsses_save"> </span><span class="error_in_saving"> </span></button>
1885
+ <br /><br />
1886
+ <span class="error_massage mailing_list"></span>
1887
+ </form>
1888
+ <h2>The list of the subscribed users</h2> <?php $this->generete_subscriber_table_lists($mailing_lists); ?><h2>The list of the Subscribed users emails</h2><p><span style="color:#7052fb;font-weight:bold;">You can copy the emails list from the below and send emails using Gmail or other email services.</span></p><textarea readonly style="min-height:200px;width:95%">
1889
+ <?php foreach ($mailing_lists as $key => $value) {
1890
+ echo esc_html($key) . ',';
1891
+ } ?></textarea>
 
 
 
1892
  <script>
1893
  jQuery(document).ready(function(e) {
1894
+ jQuery('#send_mailing').click(function() {
1895
  jQuery('#send_mailing').addClass('padding_loading');
1896
  jQuery("#send_mailing").prop('disabled', true);
1897
+ jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display', 'inline-block');
1898
+
1899
  jQuery.ajax({
1900
+ type: 'POST',
1901
+ url: "<?php echo esc_url(admin_url('admin-ajax.php?action=coming_soon_send_mail')); ?>",
1902
+ data: {
1903
+ massage_from_mail: jQuery('#massage_from_mail').val(),
1904
+ massage_from_name: jQuery('#massage_from_name').val(),
1905
+ massage_description: jQuery('#massage_description').val(),
1906
+ massage_title: jQuery('#massage_title').val()
1907
+ },
1908
  }).done(function(date) {
1909
+ switch (date) {
1910
+ case "<?php echo esc_html($this->text_parametrs['sucsses_mailed']); ?>":
1911
+ jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display', 'none');
1912
+ jQuery('#coming_soon_options_form_send_mail .sucsses_save').css('display', 'inline-block');
1913
+ setTimeout(function() {
1914
+ jQuery('.sucsses_save').css('display', 'none');
1915
+ jQuery('#send_mailing').removeClass('padding_loading');
1916
+ jQuery("#send_mailing").prop('disabled', false);
1917
+ }, 2500);
1918
+ break;
1919
+ case "<?php echo esc_html($this->text_parametrs['mising_massage']); ?>":
1920
+ case "<?php echo esc_html($this->text_parametrs['missing_fromname']); ?>":
1921
+ case "<?php echo esc_html($this->text_parametrs['missing_frommail']); ?>":
1922
+ jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display', 'none');
1923
+ jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display', 'inline-block');
1924
+ jQuery('#coming_soon_options_form_send_mail .error_massage').css('display', 'inline-block');
1925
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1926
+ setTimeout(function() {
1927
+ jQuery('#coming_soon_options_form_send_mail .error_massage').css('display', 'none');
1928
+ jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display', 'none');
1929
+ jQuery('#send_mailing').removeClass('padding_loading');
1930
+ jQuery("#send_mailing").prop('disabled', false);
1931
+ }, 3000);
1932
+ break;
1933
+ case "<?php echo esc_html($this->text_parametrs['missing_title']); ?>":
1934
+ jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display', 'none');
1935
+ jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display', 'inline-block');
1936
+ jQuery('#coming_soon_options_form_send_mail .error_massage').css('display', 'inline-block');
1937
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1938
+ setTimeout(function() {
1939
+ jQuery('#coming_soon_options_form_send_mail .error_massage').css('display', 'none');
1940
+ jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display', 'none');
1941
+ jQuery('#send_mailing').removeClass('padding_loading');
1942
+ jQuery("#send_mailing").prop('disabled', false);
1943
+ }, 3000);
1944
+ break;
1945
  default:
1946
+ jQuery('#coming_soon_options_form_send_mail .saving_in_progress').css('display', 'none');
1947
+ jQuery('#coming_soon_options_form_send_mail .error_in_saving').css('display', 'inline-block');
1948
+ jQuery('#coming_soon_options_form_send_mail .error_massage').css('display', 'inline-block');
1949
  jQuery('#coming_soon_options_form_send_mail .error_massage').html(date);
1950
  }
1951
+ });
1952
  });
1953
+ });
1954
+ </script>
1955
+
1956
+ <?php
1957
  }
1958
  /*######################################### SUBSCRIBE #######################################*/
1959
+ public function sending_mail() {
1960
+ $mailing_lists = json_decode(stripslashes(get_option('users_mailer', '')), true);
1961
+ if ($mailing_lists == NULL)
1962
+ $mailing_lists = array();
1963
+ $not_sending_mails = array();
1964
+ $sending_mails = array();
1965
+ if (!(isset($_POST['massage_title']) && $_POST['massage_title'] != '')) {
1966
+ echo esc_html($this->text_parametrs['missing_title']);
1967
  die();
1968
  }
1969
+ if (!(isset($_POST['massage_description']) && $_POST['massage_description'] != '')) {
1970
+ echo esc_html($this->text_parametrs['mising_massage']);
1971
  die();
1972
  }
1973
+ if (!(isset($_POST['massage_from_name']) && $_POST['massage_from_name'] != '')) {
1974
+ echo esc_html($this->text_parametrs['missing_fromname']);
1975
  die();
1976
  }
1977
+ if (!(isset($_POST['massage_from_mail']) && $_POST['massage_from_mail'] != '')) {
1978
+ echo esc_js($this->text_parametrs['missing_frommail']);
1979
  die();
1980
  }
1981
+ $mails_array = array();
1982
+ foreach ($mailing_lists as $key => $mail) {
1983
+ array_push($mails_array, $key);
1984
  }
1985
  $headers_from = sanitize_text_field($_POST['massage_from_mail']);
1986
  $message_description = sanitize_text_field($_POST['massage_description']);
1987
  $message_from_name = sanitize_text_field($_POST['massage_from_name']);
1988
  $message_title = sanitize_text_field($_POST['massage_title']);
1989
+ $headers = 'From: ' . $message_from_name . ' <' . $headers_from . '>' . "\r\n";
1990
+ $send = wp_mail($mails_array, $message_title, $message_description, $headers);
1991
+ if (!$send) {
1992
+ die(esc_html($this->text_parametrs['error_maied']));
1993
  }
1994
+ die(esc_html($this->text_parametrs['sucsses_mailed']));
 
 
 
1995
  }
1996
  /*################################## FEATURED PLUGINS ADMIN PAGE #########################################*/
1997
+ public function featured_plugins() {
1998
+ $plugins_array = array(
1999
+ 'gallery_album' => array(
2000
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/gallery-album-icon.png',
2001
+ 'site_url' => 'https://wpdevart.com/wordpress-gallery-plugin',
2002
+ 'title' => 'WordPress Gallery plugin',
2003
+ 'description' => 'Gallery plugin is an useful tool that will help you to create Galleries and Albums. Try our nice Gallery views and awesome animations.'
2004
+ ),
2005
+ 'Pricing Table' => array(
2006
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/Pricing-table.png',
2007
+ 'site_url' => 'https://wpdevart.com/wordpress-pricing-table-plugin/',
2008
+ 'title' => 'WordPress Pricing Table',
2009
+ 'description' => 'WordPress Pricing Table plugin is a nice tool for creating beautiful pricing tables. Use WpDevArt pricing table themes and create tables just in a few minutes.'
2010
+ ),
2011
+ 'countdown-extended' => array(
2012
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/icon-128x128.png',
2013
+ 'site_url' => 'https://wpdevart.com/wordpress-countdown-extended-version/',
2014
+ 'title' => 'WordPress Countdown Extended',
2015
+ 'description' => 'Countdown extended is an fresh and extended version of countdown timer. You can easily create and add countdown timers to your website.'
2016
+ ),
2017
+ 'chart' => array(
2018
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/chart-featured.png',
2019
+ 'site_url' => 'https://wpdevart.com/wordpress-organization-chart-plugin/',
2020
+ 'title' => 'WordPress Organization Chart',
2021
+ 'description' => 'WordPress organization chart plugin is a great tool for adding organizational charts to your WordPress websites.'
2022
+ ),
2023
+ 'Contact forms' => array(
2024
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/contact_forms.png',
2025
+ 'site_url' => 'https://wpdevart.com/wordpress-contact-form-plugin/',
2026
+ 'title' => 'Contact Form Builder',
2027
+ 'description' => 'Contact Form Builder plugin is an handy tool for creating different types of contact forms on your WordPress websites.'
2028
+ ),
2029
+ 'Booking Calendar' => array(
2030
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/Booking_calendar_featured.png',
2031
+ 'site_url' => 'https://wpdevart.com/wordpress-booking-calendar-plugin/',
2032
+ 'title' => 'WordPress Booking Calendar',
2033
+ 'description' => 'WordPress Booking Calendar plugin is an awesome tool to create a booking system for your website. Create booking calendars in a few minutes.'
2034
+ ),
2035
+ 'youtube' => array(
2036
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/youtube.png',
2037
+ 'site_url' => 'https://wpdevart.com/wordpress-youtube-embed-plugin',
2038
+ 'title' => 'WordPress YouTube Embed',
2039
+ 'description' => 'YouTube Embed plugin is an convenient tool for adding videos to your website. Use YouTube Embed plugin for adding YouTube videos in posts/pages, widgets.'
2040
+ ),
2041
+ 'facebook-comments' => array(
2042
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/facebook-comments-icon.png',
2043
+ 'site_url' => 'https://wpdevart.com/wordpress-facebook-comments-plugin/',
2044
+ 'title' => 'Wpdevart Social comments',
2045
+ 'description' => 'WordPress Facebook comments plugin will help you to display Facebook Comments on your website. You can use Facebook Comments on your pages/posts.'
2046
+ ),
2047
+ 'countdown' => array(
2048
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/countdown.jpg',
2049
+ 'site_url' => 'https://wpdevart.com/wordpress-countdown-plugin/',
2050
+ 'title' => 'WordPress Countdown plugin',
2051
+ 'description' => 'WordPress Countdown plugin is an nice tool for creating countdown timers for your website posts/pages and widgets.'
2052
+ ),
2053
+ 'lightbox' => array(
2054
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/lightbox.png',
2055
+ 'site_url' => 'https://wpdevart.com/wordpress-lightbox-plugin',
2056
+ 'title' => 'WordPress Lightbox plugin',
2057
+ 'description' => 'WordPress Lightbox Popup is an high customizable and responsive plugin for displaying images and videos in popup.'
2058
+ ),
2059
+ 'facebook' => array(
2060
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/facebook.png',
2061
+ 'site_url' => 'https://wpdevart.com/wordpress-facebook-like-box-plugin',
2062
+ 'title' => 'Social Like Box',
2063
+ 'description' => 'Facebook like box plugin will help you to display Facebook like box on your wesite, just add Facebook Like box widget to sidebar or insert it into posts/pages and use it.'
2064
+ ),
2065
+ 'vertical_menu' => array(
2066
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/vertical-menu.png',
2067
+ 'site_url' => 'https://wpdevart.com/wordpress-vertical-menu-plugin/',
2068
+ 'title' => 'WordPress Vertical Menu',
2069
+ 'description' => 'WordPress Vertical Menu is a handy tool for adding nice vertical menus. You can add icons for your website vertical menus using our plugin.'
2070
+ ),
2071
+ 'poll' => array(
2072
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/poll.png',
2073
+ 'site_url' => 'https://wpdevart.com/wordpress-polls-plugin',
2074
+ 'title' => 'WordPress Polls system',
2075
+ 'description' => 'WordPress Polls system is an handy tool for creating polls and survey forms for your visitors. You can use our polls on widgets, posts and pages.'
2076
+ ),
2077
+ 'duplicate_page' => array(
2078
+ 'image_url' => $this->plugin_url . 'images/featured_plugins/featured-duplicate.png',
2079
+ 'site_url' => 'https://wpdevart.com/wordpress-duplicate-page-plugin-easily-clone-posts-and-pages/',
2080
+ 'title' => 'WordPress Duplicate page',
2081
+ 'description' => 'Duplicate Page or Post is a great tool that allows duplicating pages and posts. Now you can do it with one click.'
2082
+ ),
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2083
 
2084
+
2085
+ );
2086
+ ?>
2087
+ <style>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2088
  .featured_plugin_main {
2089
+ background-color: #ffffff;
2090
+ -webkit-box-sizing: border-box;
2091
+ -moz-box-sizing: border-box;
2092
+ box-sizing: border-box;
2093
+ float: left;
2094
+ margin-right: 30px;
2095
+ margin-bottom: 30px;
2096
+ width: calc((100% - 90px)/3);
2097
+ border-radius: 15px;
2098
+ box-shadow: 1px 1px 7px rgba(0, 0, 0, 0.04);
2099
+ padding: 20px 25px;
2100
+ text-align: center;
2101
+ -webkit-transition: -webkit-transform 0.3s;
2102
+ -moz-transition: -moz-transform 0.3s;
2103
+ transition: transform 0.3s;
2104
+ -webkit-transform: translateY(0);
2105
+ -moz-transform: translateY0);
2106
+ transform: translateY(0);
2107
+ min-height: 344px;
2108
+ }
2109
+
2110
+ .featured_plugin_main:hover {
2111
+ -webkit-transform: translateY(-2px);
2112
+ -moz-transform: translateY(-2px);
2113
+ transform: translateY(-2px);
2114
+ }
2115
+
2116
+ .featured_plugin_image {
2117
+ max-width: 128px;
2118
+ margin: 0 auto;
2119
+ }
2120
+
2121
+ .blue_button {
2122
+ display: inline-block;
2123
+ font-size: 15px;
2124
+ text-decoration: none;
2125
+ border-radius: 5px;
2126
+ color: #ffffff;
2127
+ font-weight: 400;
2128
+ opacity: 1;
2129
+ -webkit-transition: opacity 0.3s;
2130
+ -moz-transition: opacity 0.3s;
2131
+ transition: opacity 0.3s;
2132
+ background-color: #7052fb;
2133
+ padding: 10px 22px;
2134
+ text-transform: uppercase;
2135
+ }
2136
+
2137
+ .blue_button:hover,
2138
+ .blue_button:focus {
2139
+ color: #ffffff;
2140
+ box-shadow: none;
2141
+ outline: none;
2142
+ }
2143
+
2144
+ .featured_plugin_image img {
2145
+ max-width: 100%;
2146
  }
2147
+
2148
+ .featured_plugin_image a {
2149
+ display: inline-block;
2150
+ }
2151
+
2152
+ .featured_plugin_information {}
2153
+
2154
+ .featured_plugin_title {
2155
+ color: #7052fb;
2156
+ font-size: 18px;
2157
+ display: inline-block;
2158
+ }
2159
+
2160
+ .featured_plugin_title a {
2161
+ text-decoration: none;
2162
+ font-size: 19px;
2163
+ line-height: 22px;
2164
+ color: #7052fb;
2165
+
2166
+ }
2167
+
2168
+ .featured_plugin_title h4 {
2169
+ margin: 0px;
2170
+ margin-top: 20px;
2171
+ min-height: 44px;
2172
+ }
2173
+
2174
  .featured_plugin_description {
2175
+ font-size: 14px;
2176
  min-height: 63px;
2177
  }
2178
+
2179
+ @media screen and (max-width: 1460px) {
2180
+ .featured_plugin_main {
2181
+ margin-right: 20px;
2182
+ margin-bottom: 20px;
2183
+ width: calc((100% - 60px)/3);
2184
+ padding: 20px 10px;
2185
+ }
2186
+
2187
+ .featured_plugin_description {
2188
+ font-size: 13px;
2189
+ min-height: 63px;
2190
+ }
2191
+ }
2192
+
2193
+ @media screen and (max-width: 1279px) {
2194
+ .featured_plugin_main {
2195
+ width: calc((100% - 60px)/2);
2196
+ padding: 20px 20px;
2197
+ min-height: 363px;
2198
+ }
2199
+ }
2200
+
2201
+ @media screen and (max-width: 768px) {
2202
+ .featured_plugin_main {
2203
+ width: calc(100% - 30px);
2204
+ padding: 20px 20px;
2205
+ min-height: auto;
2206
+ margin: 0 auto 20px;
2207
+ float: none;
2208
+ }
2209
+
2210
+ .featured_plugin_title h4 {
2211
+ min-height: auto;
2212
+ }
2213
+
2214
+ .featured_plugin_description {
2215
+ min-height: auto;
2216
  font-size: 14px;
2217
+ }
2218
+ }
2219
+ </style>
2220
 
 
 
2221
  <h1 style="text-align: center;font-size: 50px;font-weight: 700;color: #2b2350;margin: 20px auto 25px;line-height: 1.2;">Featured Plugins</h1>
2222
+ <?php foreach ($plugins_array as $key => $plugin) { ?>
2223
+ <div class="featured_plugin_main">
2224
+ <div class="featured_plugin_image"><a target="_blank" href="<?php echo esc_url($plugin['site_url']); ?>"><img src="<?php echo esc_url($plugin['image_url']); ?>"></a></div>
2225
+ <div class="featured_plugin_information">
2226
+ <div class="featured_plugin_title">
2227
+ <h4><a target="_blank" href="<?php echo esc_url($plugin['site_url']); ?>"><?php echo esc_html($plugin['title']); ?></a></h4>
2228
+ </div>
2229
+ <p class="featured_plugin_description"><?php echo esc_html($plugin['description']) ?></p>
2230
+ <a target="_blank" href="<?php echo esc_url($plugin['site_url']) ?>" class="blue_button">Check The Plugin</a>
2231
+ </div>
2232
+ <div style="clear:both"></div>
2233
  </div>
2234
+ <?php }
 
 
 
2235
  }
2236
+
2237
+ /*######################### Library functions #############################*/
2238
+ private function create_select_element_for_showing_effect($select_id = '', $curent_effect = 'none') {
2239
+ ?>
2240
+ <select class="pro_select" id="<?php echo esc_html($select_id); ?>" name="<?php echo esc_html($select_id); ?>">
2241
+ <option <?php selected('none', $curent_effect); ?> value="none">none</option>
2242
+ <option <?php selected('random', $curent_effect); ?> value="random">random</option>
2243
+ <optgroup label="Attention Seekers">
2244
+ <option <?php selected('bounce', $curent_effect); ?> value="bounce">bounce</option>
2245
+ <option <?php selected('flash', $curent_effect); ?> value="flash">flash</option>
2246
+ <option <?php selected('pulse', $curent_effect); ?> value="pulse">pulse</option>
2247
+ <option <?php selected('rubberBand', $curent_effect); ?> value="rubberBand">rubberBand</option>
2248
+ <option <?php selected('shake', $curent_effect); ?> value="shake">shake</option>
2249
+ <option <?php selected('swing', $curent_effect); ?> value="swing">swing</option>
2250
+ <option <?php selected('tada', $curent_effect); ?> value="tada">tada</option>
2251
+ <option <?php selected('wobble', $curent_effect); ?> value="wobble">wobble</option>
2252
+ </optgroup>
2253
+
2254
+ <optgroup label="Bouncing Entrances">
2255
+ <option <?php selected('bounceIn', $curent_effect); ?> value="bounceIn">bounceIn</option>
2256
+ <option <?php selected('bounceInDown', $curent_effect); ?> value="bounceInDown">bounceInDown</option>
2257
+ <option <?php selected('bounceInLeft', $curent_effect); ?> value="bounceInLeft">bounceInLeft</option>
2258
+ <option <?php selected('bounceInRight', $curent_effect); ?> value="bounceInRight">bounceInRight</option>
2259
+ <option <?php selected('bounceInUp', $curent_effect); ?> value="bounceInUp">bounceInUp</option>
2260
+ </optgroup>
2261
+
2262
+ <optgroup label="Fading Entrances">
2263
+ <option <?php selected('fadeIn', $curent_effect); ?> value="fadeIn">fadeIn</option>
2264
+ <option <?php selected('fadeInDown', $curent_effect); ?> value="fadeInDown">fadeInDown</option>
2265
+ <option <?php selected('fadeInDownBig', $curent_effect); ?> value="fadeInDownBig">fadeInDownBig</option>
2266
+ <option <?php selected('fadeInLeft', $curent_effect); ?> value="fadeInLeft">fadeInLeft</option>
2267
+ <option <?php selected('fadeInLeftBig', $curent_effect); ?> value="fadeInLeftBig">fadeInLeftBig</option>
2268
+ <option <?php selected('fadeInRight', $curent_effect); ?> value="fadeInRight">fadeInRight</option>
2269
+ <option <?php selected('fadeInRightBig', $curent_effect); ?> value="fadeInRightBig">fadeInRightBig</option>
2270
+ <option <?php selected('fadeInUp', $curent_effect); ?> value="fadeInUp">fadeInUp</option>
2271
+ <option <?php selected('fadeInUpBig', $curent_effect); ?> value="fadeInUpBig">fadeInUpBig</option>
2272
+ </optgroup>
2273
+
2274
+ <optgroup label="Flippers">
2275
+ <option <?php selected('flip', $curent_effect); ?> value="flip">flip</option>
2276
+ <option <?php selected('flipInX', $curent_effect); ?> value="flipInX">flipInX</option>
2277
+ <option <?php selected('flipInY', $curent_effect); ?> value="flipInY">flipInY</option>
2278
+ </optgroup>
2279
+
2280
+ <optgroup label="Lightspeed">
2281
+ <option <?php selected('lightSpeedIn', $curent_effect); ?> value="lightSpeedIn">lightSpeedIn</option>
2282
+ </optgroup>
2283
+
2284
+ <optgroup label="Rotating Entrances">
2285
+ <option <?php selected('rotateIn', $curent_effect); ?> value="rotateIn">rotateIn</option>
2286
+ <option <?php selected('rotateInDownLeft', $curent_effect); ?> value="rotateInDownLeft">rotateInDownLeft</option>
2287
+ <option <?php selected('rotateInDownRight', $curent_effect); ?> value="rotateInDownRight">rotateInDownRight</option>
2288
+ <option <?php selected('rotateInUpLeft', $curent_effect); ?> value="rotateInUpLeft">rotateInUpLeft</option>
2289
+ <option <?php selected('rotateInUpRight', $curent_effect); ?> value="rotateInUpRight">rotateInUpRight</option>
2290
+ </optgroup>
2291
+
2292
+ <optgroup label="Specials">
2293
+
2294
+ <option <?php selected('rollIn', $curent_effect); ?> value="rollIn">rollIn</option>
2295
+ </optgroup>
2296
+
2297
+ <optgroup label="Zoom Entrances">
2298
+ <option <?php selected('zoomIn', $curent_effect); ?> value="zoomIn">zoomIn</option>
2299
+ <option <?php selected('zoomInDown', $curent_effect); ?> value="zoomInDown">zoomInDown</option>
2300
+ <option <?php selected('zoomInLeft', $curent_effect); ?> value="zoomInLeft">zoomInLeft</option>
2301
+ <option <?php selected('zoomInRight', $curent_effect); ?> value="zoomInRight">zoomInRight</option>
2302
+ <option <?php selected('zoomInUp', $curent_effect); ?> value="zoomInUp">zoomInUp</option>
2303
+ </optgroup>
2304
+ </select>
2305
+ <?php
2306
  }
2307
+
2308
+ /*############ Fonts function ################*/
2309
+
2310
+ private function create_select_element_for_font($select_id = '', $curent_font = 'none') {
2311
  ?>
2312
+ <select class="pro_select" id="<?php echo esc_html($select_id); ?>" name="<?php echo esc_html($select_id); ?>">
2313
+
2314
+ <option <?php selected('Arial,Helvetica Neue,Helvetica,sans-serif', $curent_font); ?> value="Arial,Helvetica Neue,Helvetica,sans-serif">Arial *</option>
2315
+ <option <?php selected('Arial Black,Arial Bold,Arial,sans-serif', $curent_font); ?> value="Arial Black,Arial Bold,Arial,sans-serif">Arial Black *</option>
2316
+ <option <?php selected('Arial Narrow,Arial,Helvetica Neue,Helvetica,sans-serif', $curent_font); ?> value="Arial Narrow,Arial,Helvetica Neue,Helvetica,sans-serif">Arial Narrow *</option>
2317
+ <option <?php selected('Courier,Verdana,sans-serif', $curent_font); ?> value="Courier,Verdana,sans-serif">Courier *</option>
2318
+ <option <?php selected('Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Georgia,Times New Roman,Times,serif">Georgia *</option>
2319
+ <option <?php selected('Times New Roman,Times,Georgia,serif', $curent_font); ?> value="Times New Roman,Times,Georgia,serif">Times New Roman *</option>
2320
+ <option <?php selected('Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Arial,sans-serif', $curent_font); ?> value="Trebuchet MS,Lucida Grande,Lucida Sans Unicode,Lucida Sans,Arial,sans-serif">Trebuchet MS *</option>
2321
+ <option <?php selected('Verdana,sans-serif', $curent_font); ?> value="Verdana,sans-serif">Verdana *</option>
2322
+ <option <?php selected('American Typewriter,Georgia,serif', $curent_font); ?> value="American Typewriter,Georgia,serif">American Typewriter</option>
2323
+ <option <?php selected('Andale Mono,Consolas,Monaco,Courier,Courier New,Verdana,sans-serif', $curent_font); ?> value="Andale Mono,Consolas,Monaco,Courier,Courier New,Verdana,sans-serif">Andale Mono</option>
2324
+ <option <?php selected('Baskerville,Times New Roman,Times,serif', $curent_font); ?> value="Baskerville,Times New Roman,Times,serif">Baskerville</option>
2325
+ <option <?php selected('Bookman Old Style,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Bookman Old Style,Georgia,Times New Roman,Times,serif">Bookman Old Style</option>
2326
+ <option <?php selected('Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif', $curent_font); ?> value="Calibri,Helvetica Neue,Helvetica,Arial,Verdana,sans-serif">Calibri</option>
2327
+ <option <?php selected('Cambria,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Cambria,Georgia,Times New Roman,Times,serif">Cambria</option>
2328
+ <option <?php selected('Candara,Verdana,sans-serif', $curent_font); ?> value="Candara,Verdana,sans-serif">Candara</option>
2329
+ <option <?php selected('Century Gothic,Apple Gothic,Verdana,sans-serif', $curent_font); ?> value="Century Gothic,Apple Gothic,Verdana,sans-serif">Century Gothic</option>
2330
+ <option <?php selected('Century Schoolbook,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Century Schoolbook,Georgia,Times New Roman,Times,serif">Century Schoolbook</option>
2331
+ <option <?php selected('Consolas,Andale Mono,Monaco,Courier,Courier New,Verdana,sans-serif', $curent_font); ?> value="Consolas,Andale Mono,Monaco,Courier,Courier New,Verdana,sans-serif">Consolas</option>
2332
+ <option <?php selected('Constantia,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Constantia,Georgia,Times New Roman,Times,serif">Constantia</option>
2333
+ <option <?php selected('Corbel,Lucida Grande,Lucida Sans Unicode,Arial,sans-serif', $curent_font); ?> value="Corbel,Lucida Grande,Lucida Sans Unicode,Arial,sans-serif">Corbel</option>
2334
+ <option <?php selected('Franklin Gothic Medium,Arial,sans-serif', $curent_font); ?> value="Franklin Gothic Medium,Arial,sans-serif">Franklin Gothic Medium</option>
2335
+ <option <?php selected('Garamond,Hoefler Text,Times New Roman,Times,serif', $curent_font); ?> value="Garamond,Hoefler Text,Times New Roman,Times,serif">Garamond</option>
2336
+ <option <?php selected('Gill Sans MT,Gill Sans,Calibri,Trebuchet MS,sans-serif', $curent_font); ?> value="Gill Sans MT,Gill Sans,Calibri,Trebuchet MS,sans-serif">Gill Sans MT</option>
2337
+ <option <?php selected('Helvetica Neue,Helvetica,Arial,sans-serif', $curent_font); ?> value="Helvetica Neue,Helvetica,Arial,sans-serif">Helvetica Neue</option>
2338
+ <option <?php selected('Hoefler Text,Garamond,Times New Roman,Times,sans-serif', $curent_font); ?> value="Hoefler Text,Garamond,Times New Roman,Times,sans-serif">Hoefler Text</option>
2339
+ <option <?php selected('Lucida Bright,Cambria,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Lucida Bright,Cambria,Georgia,Times New Roman,Times,serif">Lucida Bright</option>
2340
+ <option <?php selected('Lucida Grande,Lucida Sans,Lucida Sans Unicode,sans-serif', $curent_font); ?> value="Lucida Grande,Lucida Sans,Lucida Sans Unicode,sans-serif">Lucida Grande</option>
2341
+ <option <?php selected('monospace', $curent_font); ?> value="monospace">monospace</option>
2342
+ <option <?php selected('Palatino Linotype,Palatino,Georgia,Times New Roman,Times,serif', $curent_font); ?> value="Palatino Linotype,Palatino,Georgia,Times New Roman,Times,serif">Palatino Linotype</option>
2343
+ <option <?php selected('Tahoma,Geneva,Verdana,sans-serif', $curent_font); ?> value="Tahoma,Geneva,Verdana,sans-serif">Tahoma</option>
2344
+ <option <?php selected('Rockwell, Arial Black, Arial Bold, Arial, sans-serif', $curent_font); ?> value="Rockwell, Arial Black, Arial Bold, Arial, sans-serif">Rockwell</option>
2345
+ </select>
2346
+ <?php
2347
  }
2348
+ }
 
includes/front_end.php CHANGED
@@ -76,13 +76,13 @@ class coming_soon_front_end {
76
 
77
  <head>
78
  <meta charset="utf-8">
79
- <title><?php echo $this->params['coming_soon_page_page_seo_title']; ?></title>
80
  <meta name="viewport" content="width=device-width" />
81
  <meta name="viewport" content="initial-scale=1.0" />
82
  <meta name="robots" content="<?php if ((int)$this->params['coming_soon_page_enable_search_robots']) echo "index, follow";
83
  else echo "noindex, nofollow"; ?>" />
84
- <meta name="description" content="<?php echo $this->params['coming_soon_page_meta_description']; ?>">
85
- <meta name="keywords" content="<?php echo $this->params['coming_soon_page_meta_keywords']; ?>">
86
  <?php
87
  wp_print_scripts('jquery');
88
  wp_print_scripts('coming-soon-script');
@@ -104,9 +104,9 @@ class coming_soon_front_end {
104
  private function generete_front_javascript() {
105
  ?>
106
  <script type="text/javascript">
107
- var loading_gif_url = "<?php echo $this->plugin_url . 'images/loading.gif' ?>";
108
- var coming_soon_ajax_mail_url = "<?php echo admin_url('admin-ajax.php?action=coming_soon_page_save_user_mail'); ?>";
109
- var curen_site_home_page = "<?php echo site_url(); ?>";
110
  var animation_parametrs = []
111
  </script>
112
  <?php
@@ -174,10 +174,10 @@ class coming_soon_front_end {
174
  private function background_css() {
175
  switch ($this->params['coming_soon_page_radio_backroun']) {
176
  case 'back_color':
177
- echo 'body{ background-color:' . $this->params['coming_soon_page_background_color'] . '; }';
178
  break;
179
  case 'back_imge':
180
- echo 'body{ background:url("' . $this->params['coming_soon_page_background_img'] . '") no-repeat center center fixed; }';
181
  break;
182
  }
183
  }
@@ -202,7 +202,7 @@ class coming_soon_front_end {
202
  private function content_css() {
203
  $aligment_position = 'text-align:center; vertical-align:middle;';
204
  echo ".information{ background: rgba(255,255,255,0.55); border-radius:8px; max-width:740px; padding-right:10px;padding-left:10px;padding-bottom:10px; }\r\n";
205
- echo ".aligment{" . $aligment_position . ";}\r\n";
206
  echo "#main_inform_div{padding:15px;}\r\n";
207
  }
208
 
@@ -214,7 +214,7 @@ class coming_soon_front_end {
214
  private function create_logo_html() {
215
  if ($this->params['coming_soon_page_logo_enable']) {
216
  ?><div id="logo">
217
- <img id="logo_img" src="<?php echo stripslashes($this->params['coming_soon_page_page_logo']); ?>" />
218
  </div>
219
  <?php }
220
  }
@@ -232,7 +232,7 @@ class coming_soon_front_end {
232
  if ($this->params['coming_soon_page_title_enable']) {
233
  ?>
234
  <div id="title_style">
235
- <h1 id="title_h1"><?php echo stripslashes($this->params['coming_soon_page_page_title']) ?></h1>
236
  </div>
237
  <?php
238
  }
@@ -254,7 +254,7 @@ class coming_soon_front_end {
254
  if ($this->params['coming_soon_page_message_enable']) {
255
  ?>
256
  <div id="descrip">
257
- <?php echo stripslashes($this->params['coming_soon_page_page_message']) ?>
258
  </div>
259
 
260
  <?php
@@ -270,7 +270,7 @@ class coming_soon_front_end {
270
  if ($this->params['coming_soon_page_message_footer_enable'] == '1') {
271
  ?>
272
  <div id="descrip_footer">
273
- <?php echo stripslashes($this->params['coming_soon_page_page_message_footer']) ?>
274
  </div>
275
 
276
  <?php
@@ -280,7 +280,7 @@ class coming_soon_front_end {
280
  /*############# Footer message function ################*/
281
 
282
  private function generete_message_footer_css() {
283
- echo '#descrip_footer{margin-top:' . $this->params['coming_soon_page_message_footer_top_distance'] . 'px;text-align:' . $this->text_align($this->params['coming_soon_page_message_footer_in_content_position']) . ';}';
284
  }
285
 
286
  /*############# Footer JS function ################*/
@@ -297,22 +297,22 @@ class coming_soon_front_end {
297
  <div id="soc_icons" class="soc_icon_coneiner">
298
  <?php if ($this->params['coming_soon_page_facebook']) { ?>
299
  <span class="soc_icon">
300
- <a href="<?php echo $this->params['coming_soon_page_facebook']; ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo $this->plugin_url . 'images/template1/facebook.png'; ?>" /></a>
301
  </span>
302
  <?php } ?>
303
  <?php if ($this->params['coming_soon_page_twitter']) { ?>
304
  <span class="soc_icon">
305
- <a href="<?php echo $this->params['coming_soon_page_twitter']; ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo $this->plugin_url . 'images/template1/twiter.png'; ?>" /></a>
306
  </span>
307
  <?php } ?>
308
  <?php if ($this->params['coming_soon_page_youtube']) { ?>
309
  <span class="soc_icon">
310
- <a href="<?php echo $this->params['coming_soon_page_youtube']; ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo $this->plugin_url . 'images/template1/youtobe.png'; ?>" /></a>
311
  </span>
312
  <?php } ?>
313
  <?php if ($this->params['coming_soon_page_instagram']) { ?>
314
  <span class="soc_icon">
315
- <a href="<?php echo $this->params['coming_soon_page_instagram']; ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo $this->plugin_url . 'images/template1/instagram.png'; ?>" /></a>
316
  </span>
317
  <?php } ?>
318
  </div>
76
 
77
  <head>
78
  <meta charset="utf-8">
79
+ <title><?php echo esc_html($this->params['coming_soon_page_page_seo_title']); ?></title>
80
  <meta name="viewport" content="width=device-width" />
81
  <meta name="viewport" content="initial-scale=1.0" />
82
  <meta name="robots" content="<?php if ((int)$this->params['coming_soon_page_enable_search_robots']) echo "index, follow";
83
  else echo "noindex, nofollow"; ?>" />
84
+ <meta name="description" content="<?php echo esc_html($this->params['coming_soon_page_meta_description']); ?>">
85
+ <meta name="keywords" content="<?php echo esc_html($this->params['coming_soon_page_meta_keywords']); ?>">
86
  <?php
87
  wp_print_scripts('jquery');
88
  wp_print_scripts('coming-soon-script');
104
  private function generete_front_javascript() {
105
  ?>
106
  <script type="text/javascript">
107
+ var loading_gif_url = "<?php echo esc_url($this->plugin_url) . 'images/loading.gif' ?>";
108
+ var coming_soon_ajax_mail_url = "<?php echo esc_url(admin_url('admin-ajax.php?action=coming_soon_page_save_user_mail')); ?>";
109
+ var curen_site_home_page = "<?php echo esc_url(site_url()); ?>";
110
  var animation_parametrs = []
111
  </script>
112
  <?php
174
  private function background_css() {
175
  switch ($this->params['coming_soon_page_radio_backroun']) {
176
  case 'back_color':
177
+ echo 'body{ background-color:' . esc_html($this->params['coming_soon_page_background_color']) . '; }';
178
  break;
179
  case 'back_imge':
180
+ echo 'body{ background:url("' . esc_html($this->params['coming_soon_page_background_img']) . '") no-repeat center center fixed; }';
181
  break;
182
  }
183
  }
202
  private function content_css() {
203
  $aligment_position = 'text-align:center; vertical-align:middle;';
204
  echo ".information{ background: rgba(255,255,255,0.55); border-radius:8px; max-width:740px; padding-right:10px;padding-left:10px;padding-bottom:10px; }\r\n";
205
+ echo ".aligment{" . esc_html($aligment_position) . ";}\r\n";
206
  echo "#main_inform_div{padding:15px;}\r\n";
207
  }
208
 
214
  private function create_logo_html() {
215
  if ($this->params['coming_soon_page_logo_enable']) {
216
  ?><div id="logo">
217
+ <img id="logo_img" src="<?php echo stripslashes(esc_url($this->params['coming_soon_page_page_logo'])); ?>" />
218
  </div>
219
  <?php }
220
  }
232
  if ($this->params['coming_soon_page_title_enable']) {
233
  ?>
234
  <div id="title_style">
235
+ <h1 id="title_h1"><?php echo esc_html(stripslashes($this->params['coming_soon_page_page_title'])); ?></h1>
236
  </div>
237
  <?php
238
  }
254
  if ($this->params['coming_soon_page_message_enable']) {
255
  ?>
256
  <div id="descrip">
257
+ <?php echo stripslashes(wp_filter_post_kses($this->params['coming_soon_page_page_message'])); ?>
258
  </div>
259
 
260
  <?php
270
  if ($this->params['coming_soon_page_message_footer_enable'] == '1') {
271
  ?>
272
  <div id="descrip_footer">
273
+ <?php echo stripslashes(wp_filter_post_kses($this->params['coming_soon_page_page_message_footer'])); ?>
274
  </div>
275
 
276
  <?php
280
  /*############# Footer message function ################*/
281
 
282
  private function generete_message_footer_css() {
283
+ echo '#descrip_footer{margin-top:' . esc_html($this->params['coming_soon_page_message_footer_top_distance']) . 'px;text-align:' . esc_html($this->text_align($this->params['coming_soon_page_message_footer_in_content_position'])) . ';}';
284
  }
285
 
286
  /*############# Footer JS function ################*/
297
  <div id="soc_icons" class="soc_icon_coneiner">
298
  <?php if ($this->params['coming_soon_page_facebook']) { ?>
299
  <span class="soc_icon">
300
+ <a href="<?php echo esc_html($this->params['coming_soon_page_facebook']); ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo esc_url($this->plugin_url) . 'images/template1/facebook.png'; ?>" /></a>
301
  </span>
302
  <?php } ?>
303
  <?php if ($this->params['coming_soon_page_twitter']) { ?>
304
  <span class="soc_icon">
305
+ <a href="<?php echo esc_html($this->params['coming_soon_page_twitter']); ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo esc_url($this->plugin_url) . 'images/template1/twiter.png'; ?>" /></a>
306
  </span>
307
  <?php } ?>
308
  <?php if ($this->params['coming_soon_page_youtube']) { ?>
309
  <span class="soc_icon">
310
+ <a href="<?php echo esc_html($this->params['coming_soon_page_youtube']); ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo esc_url($this->plugin_url) . 'images/template1/youtobe.png'; ?>" /></a>
311
  </span>
312
  <?php } ?>
313
  <?php if ($this->params['coming_soon_page_instagram']) { ?>
314
  <span class="soc_icon">
315
+ <a href="<?php echo esc_html($this->params['coming_soon_page_instagram']); ?>" <?php echo $this->params['coming_soon_page_open_new_tabe'] ? ' target="_blank" ' : ''; ?>><img src="<?php echo esc_url($this->plugin_url) . 'images/template1/instagram.png'; ?>" /></a>
316
  </span>
317
  <?php } ?>
318
  </div>
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link: https://wpdevart.com/wordpress-coming-soon-plugin/
4
  Tags: coming soon, wordpress coming soon, maintenance, maintenance mode, under construction
5
  Requires at least: 3.4.0
6
  Tested up to: 5.8.1
7
- Stable tag: 3.5.4
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
@@ -728,6 +728,10 @@ No dear users, you need to pay only once for pro version.
728
 
729
  * Bug fixed - exclude IP.
730
 
 
 
 
 
731
  ==Step by step guide==
732
 
733
  ### Logo
4
  Tags: coming soon, wordpress coming soon, maintenance, maintenance mode, under construction
5
  Requires at least: 3.4.0
6
  Tested up to: 5.8.1
7
+ Stable tag: 3.5.5
8
  License: GPLv3
9
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
10
 
728
 
729
  * Bug fixed - exclude IP.
730
 
731
+ = 3.5.5 ==
732
+
733
+ * Fixed issues (sanitized,escaped).
734
+
735
  ==Step by step guide==
736
 
737
  ### Logo