Maintenance - Version 2.1

Version Description

  • New option Login on/off
  • New option Google Analytics field
  • Responsive bug fix
Download this release

Release Info

Developer fruitfulcode
Plugin Icon 128x128 Maintenance
Version 2.1
Comparing to
See all releases

Code changes from version 2.0.1 to 2.1

css/admin.css CHANGED
@@ -12,7 +12,7 @@
12
  .tzCheckBox.checked .tzCBPart{background-position:top right;left:auto;right:-14px;}
13
  .img-container {float:left; display:block; width: 300px;}
14
  .upload_logo, .upload_background { float:right; }
15
- .box-logo {max-width:298px; max-height:148px; height:148px; }
16
  .box-bg {max-width:298px; max-height:298px; height:298px; background-size:cover;}
17
  .box-logo, .box-bg {background-position: center center; background-repeat:no-repeat; position:relative; float:left; border:1px dashed #DFDFDF; width:100%; padding:0; margin:0;}
18
  .img-container .boxes input.button.remove {position:absolute; display:none !important; right:10px; top:10px; }
@@ -33,6 +33,7 @@
33
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-2 {float: right; width: 28%; min-width:300px;}
34
  #maintenance-options.wrap form p.submit {clear:both;}
35
 
 
36
  @media screen and (max-width: 1024px) {
37
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-1 {float: left; width: 100%;}
38
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-2 {float: left; width: 100%;}
12
  .tzCheckBox.checked .tzCBPart{background-position:top right;left:auto;right:-14px;}
13
  .img-container {float:left; display:block; width: 300px;}
14
  .upload_logo, .upload_background { float:right; }
15
+ .box-logo {max-width: 298px; max-height: 148px; height: 148px; background-size: 50% auto;}
16
  .box-bg {max-width:298px; max-height:298px; height:298px; background-size:cover;}
17
  .box-logo, .box-bg {background-position: center center; background-repeat:no-repeat; position:relative; float:left; border:1px dashed #DFDFDF; width:100%; padding:0; margin:0;}
18
  .img-container .boxes input.button.remove {position:absolute; display:none !important; right:10px; top:10px; }
33
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-2 {float: right; width: 28%; min-width:300px;}
34
  #maintenance-options.wrap form p.submit {clear:both;}
35
 
36
+
37
  @media screen and (max-width: 1024px) {
38
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-1 {float: left; width: 100%;}
39
  #maintenance-options #poststuff .metabox-holder .postbox-container.column-2 {float: left; width: 100%;}
includes/functions.php CHANGED
@@ -14,13 +14,13 @@
14
  return $options;
15
  }
16
 
17
- function generate_input_filed($title, $id, $name, $value) {
18
  $out_filed = '';
19
  $out_filed .= '<tr valign="top">';
20
  $out_filed .= '<th scope="row">' . esc_attr($title) .'</th>';
21
  $out_filed .= '<td>';
22
  $out_filed .= '<filedset>';
23
- $out_filed .= '<input type="text" id="'.esc_attr($id).'" name="lib_options['.$name.']" value="'. wp_kses_post(stripslashes($value)) .'" />';
24
  $out_filed .= '</filedset>';
25
  $out_filed .= '</td>';
26
  $out_filed .= '</tr>';
@@ -102,11 +102,21 @@
102
  function maintenance_page_create_meta_boxes() {
103
  global $maintenance_variable;
104
  add_meta_box( 'maintenance-general', __( 'General Settings', 'maintenance' ), 'add_data_fields', $maintenance_variable->options_page, 'normal', 'default');
105
- add_meta_box( 'promo-extended', __( 'Pro version', 'maintenance' ), 'maintenanace_extended_version', $maintenance_variable->options_page, 'side', 'default' );
106
- add_meta_box( 'promo-content', __( 'Support', 'maintenance' ), 'maintenanace_contact_support', $maintenance_variable->options_page, 'side', 'default' );
107
  }
108
  add_action('add_meta_boxes', 'maintenance_page_create_meta_boxes', 10);
109
 
 
 
 
 
 
 
 
 
 
 
 
 
110
  function add_data_fields ($object, $box) {
111
  $mt_option = mt_get_plugin_options(true);
112
  echo '<table class="form-table">';
@@ -119,8 +129,10 @@
119
  do_action('maintenance_color_fields');
120
  generate_check_filed(__('Admin bar', 'maintenance'), __('Show admin bar', 'maintenance'), 'admin_bar_enabled', 'admin_bar_enabled', isset($mt_option['admin_bar_enabled']));
121
  generate_check_filed(__('503', 'maintenance'), __('Service temporarily unavailable', 'maintenance'), '503_enabled', '503_enabled', isset($mt_option['503_enabled']));
 
122
  generate_input_filed(__('Blur intensity', 'maintenance'), 'blur_intensity', 'blur_intensity', intval($mt_option['blur_intensity']));
123
  generate_check_filed(__('Background blur', 'maintenance'), __('Apply a blur', 'maintenance'), 'is_blur', 'is_blur', isset($mt_option['is_blur']));
 
124
  echo '</tbody>';
125
  echo '</table>';
126
  }
@@ -190,7 +202,8 @@
190
  }
191
  }
192
  }
193
-
 
194
  function maintenance_metaboxes_scripts() {
195
  global $maintenance_variable;
196
  ?>
@@ -220,7 +233,7 @@
220
  }
221
 
222
 
223
- function hex2rgb($hex) {
224
  $hex = str_replace("#", "", $hex);
225
 
226
  if(strlen($hex) == 3) {
@@ -249,6 +262,9 @@
249
  'is_blur' => false,
250
  'blur_intensity' => 5,
251
  'admin_bar_enabled' => true,
252
- '503_enabled' => true
 
 
 
253
  );
254
  }
14
  return $options;
15
  }
16
 
17
+ function generate_input_filed($title, $id, $name, $value, $placeholder = '') {
18
  $out_filed = '';
19
  $out_filed .= '<tr valign="top">';
20
  $out_filed .= '<th scope="row">' . esc_attr($title) .'</th>';
21
  $out_filed .= '<td>';
22
  $out_filed .= '<filedset>';
23
+ $out_filed .= '<input type="text" id="'.esc_attr($id).'" name="lib_options['.$name.']" value="'. wp_kses_post(stripslashes($value)) .'" placeholder="'.$placeholder.'"/>';
24
  $out_filed .= '</filedset>';
25
  $out_filed .= '</td>';
26
  $out_filed .= '</tr>';
102
  function maintenance_page_create_meta_boxes() {
103
  global $maintenance_variable;
104
  add_meta_box( 'maintenance-general', __( 'General Settings', 'maintenance' ), 'add_data_fields', $maintenance_variable->options_page, 'normal', 'default');
 
 
105
  }
106
  add_action('add_meta_boxes', 'maintenance_page_create_meta_boxes', 10);
107
 
108
+ function maintenance_page_create_meta_boxes_widget_pro() {
109
+ global $maintenance_variable;
110
+ add_meta_box( 'promo-extended', __( 'Pro version', 'maintenance' ), 'maintenanace_extended_version', $maintenance_variable->options_page, 'side', 'default' );
111
+ }
112
+ add_action('add_meta_boxes', 'maintenance_page_create_meta_boxes_widget_pro', 11);
113
+
114
+ function maintenance_page_create_meta_boxes_widget_support() {
115
+ global $maintenance_variable;
116
+ add_meta_box( 'promo-content', __( 'Support', 'maintenance' ), 'maintenanace_contact_support', $maintenance_variable->options_page, 'side', 'default' );
117
+ }
118
+ add_action('add_meta_boxes', 'maintenance_page_create_meta_boxes_widget_support', 12);
119
+
120
  function add_data_fields ($object, $box) {
121
  $mt_option = mt_get_plugin_options(true);
122
  echo '<table class="form-table">';
129
  do_action('maintenance_color_fields');
130
  generate_check_filed(__('Admin bar', 'maintenance'), __('Show admin bar', 'maintenance'), 'admin_bar_enabled', 'admin_bar_enabled', isset($mt_option['admin_bar_enabled']));
131
  generate_check_filed(__('503', 'maintenance'), __('Service temporarily unavailable', 'maintenance'), '503_enabled', '503_enabled', isset($mt_option['503_enabled']));
132
+ generate_input_filed(__('Google Analytics ID', 'maintenance'), 'gg_analytics_id', 'gg_analytics_id', esc_attr($mt_option['gg_analytics_id']), __('UA-XXXXX-X', 'maintenance'));
133
  generate_input_filed(__('Blur intensity', 'maintenance'), 'blur_intensity', 'blur_intensity', intval($mt_option['blur_intensity']));
134
  generate_check_filed(__('Background blur', 'maintenance'), __('Apply a blur', 'maintenance'), 'is_blur', 'is_blur', isset($mt_option['is_blur']));
135
+ generate_check_filed(__('Login On / Off', 'maintenance'), __('', 'maintenance'), 'is_login', 'is_login', isset($mt_option['is_login']));
136
  echo '</tbody>';
137
  echo '</table>';
138
  }
202
  }
203
  }
204
  }
205
+
206
+
207
  function maintenance_metaboxes_scripts() {
208
  global $maintenance_variable;
209
  ?>
233
  }
234
 
235
 
236
+ function maintenance_hex2rgb($hex) {
237
  $hex = str_replace("#", "", $hex);
238
 
239
  if(strlen($hex) == 3) {
262
  'is_blur' => false,
263
  'blur_intensity' => 5,
264
  'admin_bar_enabled' => true,
265
+ '503_enabled' => true,
266
+ 'gg_analytics_id' => '',
267
+ 'is_login' => true
268
+
269
  );
270
  }
js/init.js CHANGED
@@ -42,5 +42,21 @@ jQuery(window).ready(function(){
42
  jQuery('#body_bg_color, #font_color, #body_bg_blur_color').wpColorPicker(vColorPickerOptions);
43
 
44
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
45
 
46
  });
42
  jQuery('#body_bg_color, #font_color, #body_bg_blur_color').wpColorPicker(vColorPickerOptions);
43
 
44
 
45
+ if (jQuery('#503_enabled').length > 0) {
46
+ if (jQuery('#503_enabled').prop("checked")) {
47
+ jQuery('#gg_analytics_id').prop('disabled', true);
48
+ } else {
49
+ jQuery('#gg_analytics_id').prop('disabled', false);
50
+ }
51
+ }
52
+
53
+ jQuery('#503_enabled').on('change', function() {
54
+ if (jQuery(this).prop("checked")) {
55
+ jQuery('#gg_analytics_id').prop('disabled', true);
56
+ } else {
57
+ jQuery('#gg_analytics_id').prop('disabled', false);
58
+ }
59
+
60
+ });
61
 
62
  });
js/init.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(window).ready(function(){jQuery.fn.tzCheckbox=function(options){options=jQuery.extend({labels:["ON","OFF"]},options);return this.each(function(){var originalCheckBox=jQuery(this),labels=[];if(originalCheckBox.data("on")){labels[0]=originalCheckBox.data("on");labels[1]=originalCheckBox.data("off")}else labels=options.labels;var checkBox=jQuery("<span>");checkBox.addClass(this.checked?" tzCheckBox checked":"tzCheckBox");checkBox.prepend('<span class="tzCBContent">'+labels[this.checked?0:1]+'</span><span class="tzCBPart"></span>'); checkBox.insertAfter(originalCheckBox.hide());checkBox.click(function(){checkBox.toggleClass("checked");var isChecked=checkBox.hasClass("checked");originalCheckBox.attr("checked",isChecked);checkBox.find(".tzCBContent").html(labels[isChecked?0:1])});originalCheckBox.bind("change",function(){checkBox.click()})})};jQuery("#state").tzCheckbox({labels:["On","Off"]});var vColorPickerOptions={defaultColor:false,change:function(event,ui){},clear:function(){},hide:true,palettes:true};jQuery("#body_bg_color, #font_color, #body_bg_blur_color").wpColorPicker(vColorPickerOptions)});
1
+ jQuery(window).ready(function(){jQuery.fn.tzCheckbox=function(e){e=jQuery.extend({labels:["ON","OFF"]},e);return this.each(function(){var t=jQuery(this),n=[];if(t.data("on")){n[0]=t.data("on");n[1]=t.data("off")}else n=e.labels;var r=jQuery("<span>");r.addClass(this.checked?" tzCheckBox checked":"tzCheckBox");r.prepend('<span class="tzCBContent">'+n[this.checked?0:1]+'</span><span class="tzCBPart"></span>');r.insertAfter(t.hide());r.click(function(){r.toggleClass("checked");var e=r.hasClass("checked");t.attr("checked",e);r.find(".tzCBContent").html(n[e?0:1])});t.bind("change",function(){r.click()})})};jQuery("#state").tzCheckbox({labels:["On","Off"]});var e={defaultColor:false,change:function(e,t){},clear:function(){},hide:true,palettes:true};jQuery("#body_bg_color, #font_color, #body_bg_blur_color").wpColorPicker(e);if(jQuery("#503_enabled").length>0){if(jQuery("#503_enabled").prop("checked")){jQuery("#gg_analytics_id").prop("disabled",true)}else{jQuery("#gg_analytics_id").prop("disabled",false)}}jQuery("#503_enabled").on("change",function(){if(jQuery(this).prop("checked")){jQuery("#gg_analytics_id").prop("disabled",true)}else{jQuery("#gg_analytics_id").prop("disabled",false)}})})
languages/maintenance-es_ES.mo DELETED
Binary file
languages/maintenance-es_ES.po DELETED
@@ -1,189 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: maintenance\n"
4
- "POT-Creation-Date: 2013-12-06 14:52+0200\n"
5
- "PO-Revision-Date: 2014-01-02 00:15+0100\n"
6
- "Last-Translator: David <david@closemarketing.es>\n"
7
- "Language-Team: Closemarketing <david@closemarketing.es>\n"
8
- "Language: es\n"
9
- "MIME-Version: 1.0\n"
10
- "Content-Type: text/plain; charset=UTF-8\n"
11
- "Content-Transfer-Encoding: 8bit\n"
12
- "X-Generator: Poedit 1.6.3\n"
13
- "X-Poedit-KeywordsList: _;gettext;gettext_noop;__;_e\n"
14
- "X-Poedit-Basepath: C:\\wamp\\www\\yakovlev\\wr_browser\\wp-content\\plugins"
15
- "\\maintenance\n"
16
- "X-Poedit-SourceCharset: UTF-8\n"
17
- "X-Poedit-SearchPath-0: C:\\wamp\\www\\yakovlev\\wr_browser\\wp-content"
18
- "\\plugins\\maintenance\\lib\n"
19
-
20
- #: includes/admin.php:84
21
- msgid "Save changes"
22
- msgstr "Guardar Cambios"
23
-
24
- #: includes/functions.php:104
25
- msgid "General Settings"
26
- msgstr "Opciones Generales"
27
-
28
- #: includes/functions.php:105 includes/functions.php:157
29
- msgid "Extended version"
30
- msgstr "Versión Extendida"
31
-
32
- #: includes/functions.php:106 includes/functions.php:145
33
- msgid "Contact support"
34
- msgstr "Contacta a Soporte"
35
-
36
- #: includes/functions.php:114
37
- msgid "Page title"
38
- msgstr "Título de Página"
39
-
40
- #: includes/functions.php:115
41
- msgid "Headline"
42
- msgstr "Cabecera"
43
-
44
- #: includes/functions.php:116
45
- msgid "Description"
46
- msgstr "Descripción"
47
-
48
- #: includes/functions.php:117
49
- msgid "Logo"
50
- msgstr "Logo"
51
-
52
- #: includes/functions.php:117
53
- msgid "Upload Logo"
54
- msgstr "Subir Logo"
55
-
56
- #: includes/functions.php:120
57
- msgid "Admin bar"
58
- msgstr "Barra de Administración"
59
-
60
- #: includes/functions.php:120
61
- msgid "Show admin bar"
62
- msgstr "Mostrar Barra Administración"
63
-
64
- #: includes/functions.php:121
65
- msgid "503"
66
- msgstr "503"
67
-
68
- #: includes/functions.php:121
69
- msgid "Service temporarily unavailable"
70
- msgstr "Servicio indisponible temporalmente"
71
-
72
- #: includes/functions.php:122
73
- msgid "Blur intensity"
74
- msgstr "Intensidad difuminado"
75
-
76
- #: includes/functions.php:123
77
- msgid "Background blur"
78
- msgstr "Fondo difuminado"
79
-
80
- #: includes/functions.php:123
81
- msgid "Apply a blur"
82
- msgstr "Aplicar Difuminado"
83
-
84
- #: includes/functions.php:130
85
- msgid "Background image"
86
- msgstr "Imagen de Fondo"
87
-
88
- #: includes/functions.php:130
89
- msgid "Upload Background"
90
- msgstr "Subir Imagen de Fondo"
91
-
92
- #: includes/functions.php:136
93
- msgid "Background color"
94
- msgstr "Color de Fondo"
95
-
96
- #: includes/functions.php:137
97
- msgid "Font color"
98
- msgstr "Color de Fuente"
99
-
100
- #: includes/functions.php:146
101
- #, php-format
102
- msgid ""
103
- "If you faced with any problems, have a question or suggestion you always can "
104
- "contact us with any request on our website <a href=\"%1$s\" title=\"%2$s\">"
105
- "%2$s</a>"
106
- msgstr ""
107
-
108
- #: includes/functions.php:158
109
- #, php-format
110
- msgid ""
111
- "If you like our plugin please rate it, %1$s <a title=\"leave feedback\" href="
112
- "\"%2$s\" target=\"_blank\">leave feedback</a> or purchase extended version "
113
- "%1$s with more other features."
114
- msgstr ""
115
-
116
- #: includes/functions.php:162
117
- msgid "Purchase"
118
- msgstr "Comprar"
119
-
120
- #: includes/functions.php:219
121
- msgid "Maintenace"
122
- msgstr "Mantenimiento"
123
-
124
- #: includes/functions.php:242
125
- msgid "Website is under construction"
126
- msgstr "La Página Web está en construcción"
127
-
128
- #: includes/functions.php:243
129
- msgid "Maintenance mode is on"
130
- msgstr "Modo Mantenimiento está activado"
131
-
132
- #: includes/functions.php:244
133
- msgid "Website will be available soon"
134
- msgstr "La Página Web estará disponible en breve"
135
-
136
- #: load/functions.php:37
137
- msgid "Permission access denied!"
138
- msgstr "¡Permiso de Acceso Denegado!"
139
-
140
- #: load/functions.php:45
141
- msgid "You entered your login are incorrect!"
142
- msgstr "¡Introduciste las credenciales incorrectamente!"
143
-
144
- #: load/functions.php:49
145
- msgid "You entered your password are incorrect!"
146
- msgstr "¡Introduciste la contraseña incorrecta!"
147
-
148
- #: load/functions.php:52
149
- msgid "You entered your login and password are incorrect!"
150
- msgstr "¡Introduciste el usuario y contraseña incorrecta!"
151
-
152
- #: load/functions.php:215
153
- msgid "Username"
154
- msgstr "Usuario"
155
-
156
- #: load/functions.php:216
157
- msgid "Password"
158
- msgstr "Contraseña"
159
-
160
- #: load/functions.php:217
161
- msgid "Sign In"
162
- msgstr "Iniciar Sesión"
163
-
164
- msgid "We have time until launch"
165
- msgstr "Tenemos tiempo hasta la comida"
166
-
167
- msgid "Be first of your friends who will know when the website goes live."
168
- msgstr "Se el primero de tus amigos que sabrá cuando la web estará en vivo."
169
-
170
- msgid "User roles"
171
- msgstr "Roles de Usuario"
172
-
173
- msgid "Choose users access permissions in maintenance mode."
174
- msgstr "Elige los permisos de acceso de usuarios en modo mantenimiento."
175
-
176
- #~ msgid "Premium version"
177
- #~ msgstr "Premium версия"
178
-
179
- #~ msgid "Check out our extended version of plugin with new features"
180
- #~ msgstr "Узнайте возможности расширенной версии"
181
-
182
- #~ msgid "Your session has expired."
183
- #~ msgstr "Ваша сессия истеклаю"
184
-
185
- #~ msgid "Customer login"
186
- #~ msgstr "Вход для администратора"
187
-
188
- #~ msgid "Please login to see website"
189
- #~ msgstr "Пожалуйста, войдите, чтобы сайт стал доступным"
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
languages/maintenance-fr_FR.mo DELETED
Binary file
languages/maintenance-fr_FR.po DELETED
@@ -1,187 +0,0 @@
1
- msgid ""
2
- msgstr ""
3
- "Project-Id-Version: maintenance\n"
4
- "POT-Creation-Date: 2013-12-06 14:52+0200\n"
5
- "PO-Revision-Date: 2014-01-06 15:32+0100\n"
6
- "Last-Translator: Kreatix.Studio <kreatix.Studio>\n"
7
- "Language-Team: fruitfulcode\n"
8
- "MIME-Version: 1.0\n"
9
- "Content-Type: text/plain; charset=UTF-8\n"
10
- "Content-Transfer-Encoding: 8bit\n"
11
- "X-Generator: Poedit 1.6.3\n"
12
- "X-Poedit-KeywordsList: _;_e;__;_x\n"
13
- "X-Poedit-Basepath: .\n"
14
- "X-Poedit-SourceCharset: UTF-8\n"
15
- "Language: fr_FR\n"
16
-
17
- #: includes/admin.php:84
18
- msgid "Save changes"
19
- msgstr "Sauvegarder les modifications"
20
-
21
- #: includes/functions.php:104
22
- msgid "General Settings"
23
- msgstr "Paramètres généraux"
24
-
25
- #: includes/functions.php:105 includes/functions.php:157
26
- msgid "Extended version"
27
- msgstr "Version Pro"
28
-
29
- #: includes/functions.php:106 includes/functions.php:145
30
- msgid "Contact support"
31
- msgstr "Contact support"
32
-
33
- #: includes/functions.php:114
34
- msgid "Page title"
35
- msgstr "Titre de page"
36
-
37
- #: includes/functions.php:115
38
- msgid "Headline"
39
- msgstr "Titre d'en-tête"
40
-
41
- #: includes/functions.php:116
42
- msgid "Description"
43
- msgstr "Description"
44
-
45
- #: includes/functions.php:117
46
- msgid "Logo"
47
- msgstr "Logo"
48
-
49
- #: includes/functions.php:117
50
- msgid "Upload Logo"
51
- msgstr "Upload logo"
52
-
53
- #: includes/functions.php:120
54
- msgid "Admin bar"
55
- msgstr "Barre Administrateur"
56
-
57
- #: includes/functions.php:120
58
- msgid "Show admin bar"
59
- msgstr "Afficher la barre d'admin"
60
-
61
- #: includes/functions.php:121
62
- msgid "503"
63
- msgstr "503"
64
-
65
- #: includes/functions.php:121
66
- msgid "Service temporarily unavailable"
67
- msgstr "Service momentanément indisponible"
68
-
69
- #: includes/functions.php:122
70
- msgid "Blur intensity"
71
- msgstr "Intensité du flou"
72
-
73
- #: includes/functions.php:123
74
- msgid "Background blur"
75
- msgstr "Flou du fond d'écran"
76
-
77
- #: includes/functions.php:123
78
- msgid "Apply a blur"
79
- msgstr "Appliquer un flou"
80
-
81
- #: includes/functions.php:130
82
- msgid "Background image"
83
- msgstr "Image Fond d'écran"
84
-
85
- #: includes/functions.php:130
86
- msgid "Upload Background"
87
- msgstr "Téléchargez Fond d'écran"
88
-
89
- #: includes/functions.php:136
90
- msgid "Background color"
91
- msgstr "Couleur fond d'écran"
92
-
93
- #: includes/functions.php:137
94
- msgid "Font color"
95
- msgstr "Couleur fonte"
96
-
97
- #: includes/functions.php:146
98
- #, php-format
99
- msgid ""
100
- "If you faced with any problems, have a question or suggestion you always can "
101
- "contact us with any request on our website <a href=\"%1$s\" title=\"%2$s\">"
102
- "%2$s</a>"
103
- msgstr ""
104
-
105
- #: includes/functions.php:158
106
- #, php-format
107
- msgid ""
108
- "If you like our plugin please rate it, %1$s <a title=\"leave feedback\" href="
109
- "\"%2$s\" target=\"_blank\">leave feedback</a> or purchase extended version "
110
- "%1$s with more other features."
111
- msgstr ""
112
-
113
- #: includes/functions.php:162
114
- msgid "Purchase"
115
- msgstr "Acheter"
116
-
117
- #: includes/functions.php:219
118
- msgid "Maintenace"
119
- msgstr "Mainetenace"
120
-
121
- #: includes/functions.php:242
122
- msgid "Website is under construction"
123
- msgstr "Site est en construction"
124
-
125
- #: includes/functions.php:243
126
- msgid "Maintenance mode is on"
127
- msgstr "Mode Maintenance Actif"
128
-
129
- #: includes/functions.php:244
130
- msgid "Website will be available soon"
131
- msgstr "Site sera bientôt disponible"
132
-
133
- #: load/functions.php:37
134
- msgid "Permission access denied!"
135
- msgstr "Permission refusée!"
136
-
137
- #: load/functions.php:45
138
- msgid "You entered your login are incorrect!"
139
- msgstr "Le login que vous avez entré est incorrect!"
140
-
141
- #: load/functions.php:49
142
- msgid "You entered your password are incorrect!"
143
- msgstr "Le mot de passe que vous avez entré est incorrect!"
144
-
145
- #: load/functions.php:52
146
- msgid "You entered your login and password are incorrect!"
147
- msgstr "Vous avez entré un login et mot de passe incorrect!"
148
-
149
- #: load/functions.php:215
150
- msgid "Username"
151
- msgstr "Identifiant"
152
-
153
- #: load/functions.php:216
154
- msgid "Password"
155
- msgstr "Password"
156
-
157
- #: load/functions.php:217
158
- msgid "Sign In"
159
- msgstr "Identifiez-vous"
160
-
161
- #~ msgid "We have time until launch"
162
- #~ msgstr "Осталось времени до запуска"
163
-
164
- #~ msgid "Be first of your friends who will know when the website goes live."
165
- #~ msgstr "Будь первым из твоих друзей, кто узнает о запуске сайта."
166
-
167
- #~ msgid "Premium version"
168
- #~ msgstr "Премиум версия"
169
-
170
- #~ msgid "Check out our extended version of plugin with new features"
171
- #~ msgstr "Проверьте возможности расширенной версии плагина"
172
-
173
- #~ msgid "Your session has expired."
174
- #~ msgstr "Ваша сессия истекла."
175
-
176
- #~ msgid "Customer login"
177
- #~ msgstr "Вход для клиентов"
178
-
179
- #~ msgid "Please login to see website"
180
- #~ msgstr "Пожалуйста авторезируйтесь"
181
-
182
- #~ msgid "User roles"
183
- #~ msgstr "Роли пользователей"
184
-
185
- #~ msgid "Choose users access permissions in maintenance mode."
186
- #~ msgstr "Выберите права доступа пользователей в режиме обслуживания."
187
-
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
load/functions.php CHANGED
@@ -74,6 +74,8 @@ function get_custom_login_code() {
74
  wp_register_style('_style', MAINTENANCE_URI .'load/style.css');
75
  $wp_styles->do_items('_iconstyle');
76
  $wp_styles->do_items('_opensans');
 
 
77
  $wp_styles->do_items('_style');
78
  }
79
 
@@ -114,13 +116,15 @@ function get_custom_login_code() {
114
  function get_options_style() {
115
  $mt_options = mt_get_plugin_options(true);
116
  $options_style = '';
117
- $options_style = '<style type="text/css">';
118
-
119
  if ( !empty($mt_options['body_bg_color']) ) {
120
  $options_style .= 'body {background-color: '. esc_attr($mt_options['body_bg_color']) .'}';
121
  $options_style .= '.preloader {background-color: '. esc_attr($mt_options['body_bg_color']) .'}';
122
  }
123
 
 
 
 
 
124
  if ( !empty($mt_options['font_color']) ) {
125
  $font_color = esc_attr($mt_options['font_color']);
126
  $options_style .= '.site-title {color: '. $font_color .'} ';
@@ -131,10 +135,10 @@ function get_custom_login_code() {
131
  $options_style .= 'footer {color: '. $font_color .'} ';
132
  $options_style .= '.ie7 .company-name {color: '. $font_color .'} ';
133
  }
134
- $options_style .= '</style>';
135
- echo $options_style;
136
  }
137
- add_action('options_style', 'get_options_style', 10);
138
 
139
  function get_logo_box() {
140
  $mt_options = mt_get_plugin_options(true);
@@ -209,17 +213,22 @@ function get_custom_login_code() {
209
  add_action('footer_section', 'get_footer_section', 10);
210
 
211
  function do_login_form($user_login, $class_login, $class_password) {
 
212
  $out_login_form = $form_error = '';
213
  if (($class_login == 'error') || ($class_password == 'error')) {
214
  $form_error = ' active error';
215
  }
 
216
  $out_login_form .= '<form name="login-form" id="login-form" class="login-form'.$form_error.'" method="post">';
217
  $out_login_form .= '<span class="licon '.$class_login.'"><input type="text" name="log" id="log" value="'. $user_login .'" size="20" class="input username" placeholder="'. __('Username', 'maintenance') .'"/></span>';
218
  $out_login_form .= '<span class="picon '.$class_password.'"><input type="password" name="pwd" id="login_password" value="" size="20" class="input password" placeholder="'. __('Password', 'maintenance') .'" /></span>';
219
  $out_login_form .= '<input type="submit" class="button" name="submit" id="submit" value="'.__('Sign In','maintenance') .'" tabindex="4" />';
220
  $out_login_form .= '<input type="hidden" name="is_custom_login" value="1" />';
221
  $out_login_form .= '</form>';
222
- echo $out_login_form;
 
 
 
223
  }
224
 
225
  function get_preloader_element() {
@@ -239,11 +248,33 @@ function get_custom_login_code() {
239
  if ($browser_an == true) { $browser = 'android'; }
240
  if ($browser_ipad == true) { $browser = 'ipad'; }
241
 
242
- if($browser == 'iphone') { /*echo '<meta name="viewport" content="width=480px, initial-scale=0.4">'; */ }
243
  if($browser == 'android') { echo '<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width" />'; }
244
  if($browser == 'ipad') { echo '<meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />'; }
245
  }
246
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
247
  function get_headers_503() {
248
  $mt_options = mt_get_plugin_options(true);
249
  nocache_headers();
74
  wp_register_style('_style', MAINTENANCE_URI .'load/style.css');
75
  $wp_styles->do_items('_iconstyle');
76
  $wp_styles->do_items('_opensans');
77
+ /*Add inline custom style*/
78
+ get_options_style();
79
  $wp_styles->do_items('_style');
80
  }
81
 
116
  function get_options_style() {
117
  $mt_options = mt_get_plugin_options(true);
118
  $options_style = '';
 
 
119
  if ( !empty($mt_options['body_bg_color']) ) {
120
  $options_style .= 'body {background-color: '. esc_attr($mt_options['body_bg_color']) .'}';
121
  $options_style .= '.preloader {background-color: '. esc_attr($mt_options['body_bg_color']) .'}';
122
  }
123
 
124
+ if (!isset($mt_options['is_login'])) {
125
+ $options_style .= '.logo { display: block; float: none; margin: 0; text-align: center; width: 100%;} ';
126
+ }
127
+
128
  if ( !empty($mt_options['font_color']) ) {
129
  $font_color = esc_attr($mt_options['font_color']);
130
  $options_style .= '.site-title {color: '. $font_color .'} ';
135
  $options_style .= 'footer {color: '. $font_color .'} ';
136
  $options_style .= '.ie7 .company-name {color: '. $font_color .'} ';
137
  }
138
+
139
+ wp_add_inline_style( '_style', $options_style );
140
  }
141
+ //add_action('options_style', 'get_options_style', 10);
142
 
143
  function get_logo_box() {
144
  $mt_options = mt_get_plugin_options(true);
213
  add_action('footer_section', 'get_footer_section', 10);
214
 
215
  function do_login_form($user_login, $class_login, $class_password) {
216
+ $mt_options = mt_get_plugin_options(true);
217
  $out_login_form = $form_error = '';
218
  if (($class_login == 'error') || ($class_password == 'error')) {
219
  $form_error = ' active error';
220
  }
221
+
222
  $out_login_form .= '<form name="login-form" id="login-form" class="login-form'.$form_error.'" method="post">';
223
  $out_login_form .= '<span class="licon '.$class_login.'"><input type="text" name="log" id="log" value="'. $user_login .'" size="20" class="input username" placeholder="'. __('Username', 'maintenance') .'"/></span>';
224
  $out_login_form .= '<span class="picon '.$class_password.'"><input type="password" name="pwd" id="login_password" value="" size="20" class="input password" placeholder="'. __('Password', 'maintenance') .'" /></span>';
225
  $out_login_form .= '<input type="submit" class="button" name="submit" id="submit" value="'.__('Sign In','maintenance') .'" tabindex="4" />';
226
  $out_login_form .= '<input type="hidden" name="is_custom_login" value="1" />';
227
  $out_login_form .= '</form>';
228
+
229
+ if (isset($mt_options['is_login'])) {
230
+ echo $out_login_form;
231
+ }
232
  }
233
 
234
  function get_preloader_element() {
248
  if ($browser_an == true) { $browser = 'android'; }
249
  if ($browser_ipad == true) { $browser = 'ipad'; }
250
 
251
+ if($browser == 'iphone') { echo '<meta name="viewport" content="width=device-width, initial-scale=1.0" />'; }
252
  if($browser == 'android') { echo '<meta name="viewport" content="target-densitydpi=device-dpi, width=device-width" />'; }
253
  if($browser == 'ipad') { echo '<meta name="viewport" content="width=768px, minimum-scale=1.0, maximum-scale=1.0" />'; }
254
  }
255
 
256
+ function maintenance_gg_analytics_code() {
257
+ $mt_options = mt_get_plugin_options(true);
258
+ if (!isset($mt_options['503_enabled']) && (isset($mt_options['gg_analytics_id']))) {
259
+ ?>
260
+
261
+ <script type="text/javascript">
262
+ var _gaq = _gaq || [];
263
+ _gaq.push(['_setAccount', '<?php echo esc_attr($mt_options['gg_analytics_id']); ?>']);
264
+
265
+ (function() {
266
+ var ga = document.createElement('script');
267
+ ga.type = 'text/javascript';
268
+ ga.async = true;
269
+ ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
270
+ var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
271
+ })();
272
+ </script>
273
+ <?php
274
+ }
275
+ }
276
+ add_action('add_gg_analytics_code', 'maintenance_gg_analytics_code');
277
+
278
  function get_headers_503() {
279
  $mt_options = mt_get_plugin_options(true);
280
  nocache_headers();
load/index.php CHANGED
@@ -14,13 +14,14 @@
14
  <!--<![endif]-->
15
  <head>
16
  <meta charset="<?php bloginfo( 'charset' ); ?>" />
17
- <?php maintenance_fruitful_metadevice(); ?>
18
  <?php get_page_title(esc_attr($mess_arr[0])); ?>
 
19
  <link rel="profile" href="http://gmpg.org/xfn/11" />
20
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
21
  <?php do_action('load_custom_scripts'); ?>
22
  <?php do_action('options_style'); ?>
23
  <?php do_action('add_single_backstretch_background'); ?>
 
24
  </head>
25
  <body>
26
  <?php do_action('before_content_section'); ?>
14
  <!--<![endif]-->
15
  <head>
16
  <meta charset="<?php bloginfo( 'charset' ); ?>" />
 
17
  <?php get_page_title(esc_attr($mess_arr[0])); ?>
18
+ <?php maintenance_fruitful_metadevice(); ?>
19
  <link rel="profile" href="http://gmpg.org/xfn/11" />
20
  <link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
21
  <?php do_action('load_custom_scripts'); ?>
22
  <?php do_action('options_style'); ?>
23
  <?php do_action('add_single_backstretch_background'); ?>
24
+ <?php do_action('add_gg_analytics_code'); ?>
25
  </head>
26
  <body>
27
  <?php do_action('before_content_section'); ?>
load/js/jquery.blur.min.js CHANGED
@@ -2,4 +2,4 @@
2
  "Webkit","O","ms","Khtml"];for(var i in prefixes)if(typeof e.style[prefixes[i]+property]!=="undefined"){cssPrefixString[property]=prefixes[i];return prefixes[i]+property}return property.toLowerCase()};var cssfilters=function(){var el=document.createElement("div");el.style.cssText=browserPrefixes.join("filter"+":blur(2px); ");return!!el.style.length&&(document.documentMode===undefined||document.documentMode>9)}();var svgfilters=function(){var result=false;try{result=typeof SVGFEColorMatrixElement!==
3
  undefined&&SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE==2}catch(e){}return result}();var appendSVGFilter=function(){var filterMarkup="<svg id='vague-svg-blur'>"+"<filter id='blur-effect-id-"+cache.filterId+"'>"+"<feGaussianBlur stdDeviation='"+options.intensity+"' />"+"</filter>"+"</svg>";$("body").append(filterMarkup)};this.init=function(){if(svgfilters)appendSVGFilter();this.$elm.data("vague-filter-id",cache.filterId);cache.filterId++};this.blur=function(){var filterValue,filterId=this.$elm.data("vague-filter-id"),
4
  cssProp={};if(cssfilters)filterValue="blur("+options.intensity+"px)";else if(svgfilters)filterValue="url(#blur-effect-id-"+filterId+")";else filterValue="progid:DXImageTransform.Microsoft.Blur(pixelradius="+options.intensity+")";cssProp[cssPrefix("Filter")]=filterValue;this.$elm.css(cssProp);blurred=true};this.unblur=function(){var cssProp={};cssProp[cssPrefix("Filter")]="none";this.$elm.css(cssProp);blurred=false};this.toggleblur=function(){if(blurred)this.unblur();else this.blur()};this.destroy=
5
- function(){if(svgfilters)$("filter#blur-effect-id-"+this.$elm.data("vague-filter-id")).parent().remove();this.unblur()};return this.init()};$.fn.Vague=function(options){return new Vague(this,options)};window.Vague=Vague})(window,document,jQuery);
2
  "Webkit","O","ms","Khtml"];for(var i in prefixes)if(typeof e.style[prefixes[i]+property]!=="undefined"){cssPrefixString[property]=prefixes[i];return prefixes[i]+property}return property.toLowerCase()};var cssfilters=function(){var el=document.createElement("div");el.style.cssText=browserPrefixes.join("filter"+":blur(2px); ");return!!el.style.length&&(document.documentMode===undefined||document.documentMode>9)}();var svgfilters=function(){var result=false;try{result=typeof SVGFEColorMatrixElement!==
3
  undefined&&SVGFEColorMatrixElement.SVG_FECOLORMATRIX_TYPE_SATURATE==2}catch(e){}return result}();var appendSVGFilter=function(){var filterMarkup="<svg id='vague-svg-blur'>"+"<filter id='blur-effect-id-"+cache.filterId+"'>"+"<feGaussianBlur stdDeviation='"+options.intensity+"' />"+"</filter>"+"</svg>";$("body").append(filterMarkup)};this.init=function(){if(svgfilters)appendSVGFilter();this.$elm.data("vague-filter-id",cache.filterId);cache.filterId++};this.blur=function(){var filterValue,filterId=this.$elm.data("vague-filter-id"),
4
  cssProp={};if(cssfilters)filterValue="blur("+options.intensity+"px)";else if(svgfilters)filterValue="url(#blur-effect-id-"+filterId+")";else filterValue="progid:DXImageTransform.Microsoft.Blur(pixelradius="+options.intensity+")";cssProp[cssPrefix("Filter")]=filterValue;this.$elm.css(cssProp);blurred=true};this.unblur=function(){var cssProp={};cssProp[cssPrefix("Filter")]="none";this.$elm.css(cssProp);blurred=false};this.toggleblur=function(){if(blurred)this.unblur();else this.blur()};this.destroy=
5
+ function(){if(svgfilters)$("filter#blur-effect-id-"+this.$elm.data("vague-filter-id")).parent().remove();this.unblur()};return this.init()};$.fn.Vague=function(options){return new Vague(this,options)};window.Vague=Vague})(window,document,jQuery);
load/js/jquery.frontend.js CHANGED
@@ -1,3 +1,9 @@
 
 
 
 
 
 
1
  jQuery(document).ready(function() {
2
  jQuery('input[placeholder], textarea[placeholder]').placeholder();
3
  jQuery('#login-form').submit(function() {
@@ -23,7 +29,13 @@ jQuery(document).ready(function() {
23
  });
24
 
25
  jQuery(window).load(function() {
26
- jQuery('#content').center();
 
 
 
 
 
 
27
  jQuery('body > div:not(".preloader")').each(function() {
28
  jQuery(this).css({'visibility': 'visible'});
29
  });
@@ -43,11 +55,16 @@ jQuery(window).resize(function() {
43
  }
44
  }
45
 
46
- jQuery('#content').center();
 
 
 
 
 
47
  });
48
 
49
  jQuery.fn.center = function () {
50
  this.css("position","absolute");
51
- this.css("top", Math.max(0, ((jQuery(window).height() - jQuery(this).outerHeight()) / 2) + jQuery(window).scrollTop()) + "px");
52
  return this;
53
  }
1
+ /**
2
+  * jQuery.browser.mobile (http://detectmobilebrowser.com/)
3
+  * jQuery.browser.mobile will be true if the browser is a mobile device
4
+  **/
5
+ (function(a){jQuery.browser.mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(a)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(a.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);
6
+
7
  jQuery(document).ready(function() {
8
  jQuery('input[placeholder], textarea[placeholder]').placeholder();
9
  jQuery('#login-form').submit(function() {
29
  });
30
 
31
  jQuery(window).load(function() {
32
+ var isiPhone = /iphone/i.test(navigator.userAgent.toLowerCase());
33
+ var isiPad = /ipad/i.test(navigator.userAgent.toLowerCase());
34
+
35
+ if (!isiPhone && !isiPad) {
36
+ jQuery('#content').center();
37
+ }
38
+
39
  jQuery('body > div:not(".preloader")').each(function() {
40
  jQuery(this).css({'visibility': 'visible'});
41
  });
55
  }
56
  }
57
 
58
+ var isiPhone = /iphone/i.test(navigator.userAgent.toLowerCase());
59
+ var isiPad = /ipad/i.test(navigator.userAgent.toLowerCase());
60
+
61
+ if (!isiPhone && !isiPad) {
62
+ jQuery('#content').center();
63
+ }
64
  });
65
 
66
  jQuery.fn.center = function () {
67
  this.css("position","absolute");
68
+ this.css("top", Math.max(0, ((jQuery(window).height() - jQuery(this).outerHeight()) / 2) + jQuery(window).scrollTop() + 45) + "px");
69
  return this;
70
  }
load/js/jquery.frontend.min.js CHANGED
@@ -1 +1 @@
1
- jQuery(document).ready(function(){jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery("#login-form").submit(function(){if(!jQuery(this).hasClass("active")){jQuery(this).find("span.licon").fadeIn(300);jQuery(this).find("span.picon").fadeIn(300);jQuery(this).addClass("active");jQuery(this).find('input[type="text"]').focus();return false}});if(jQuery("#login-form").hasClass("error")){jQuery("#login-form").find("span.licon").fadeIn(100);jQuery("#login-form").find("span.picon").fadeIn(100); jQuery("#login-form").find('input[type="text"]').focus()}jQuery(window).resize();jQuery('body > div:not(".preloader")').each(function(){jQuery(this).css({"visibility":"hidden"})})});jQuery(window).load(function(){jQuery("#content").center();jQuery('body > div:not(".preloader")').each(function(){jQuery(this).css({"visibility":"visible"})});setInterval(function(){jQuery("body > .preloader").fadeOut(300)},1E3)}); jQuery(window).resize(function(){if(jQuery(window).width()<1025||jQuery(window).width()<769){jQuery("#login-form").find("span.licon").fadeIn(300);jQuery("#login-form").find("span.picon").fadeIn(300);jQuery("#login-form").addClass("active")}else if(!jQuery("#login-form").hasClass("error")){jQuery("#login-form").find("span.licon").fadeOut(300);jQuery("#login-form").find("span.picon").fadeOut(300);jQuery("#login-form").removeClass("active")}jQuery("#content").center()}); jQuery.fn.center=function(){this.css("position","absolute");this.css("top",Math.max(0,(jQuery(window).height()-jQuery(this).outerHeight())/2+jQuery(window).scrollTop())+"px");return this};
1
+ (function(e){jQuery.browser.mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(e.substr(0,4))})(navigator.userAgent||navigator.vendor||window.opera);jQuery(document).ready(function(){jQuery("input[placeholder], textarea[placeholder]").placeholder();jQuery("#login-form").submit(function(){if(!jQuery(this).hasClass("active")){jQuery(this).find("span.licon").fadeIn(300);jQuery(this).find("span.picon").fadeIn(300);jQuery(this).addClass("active");jQuery(this).find('input[type="text"]').focus();return false}});if(jQuery("#login-form").hasClass("error")){jQuery("#login-form").find("span.licon").fadeIn(100);jQuery("#login-form").find("span.picon").fadeIn(100);jQuery("#login-form").find('input[type="text"]').focus()}jQuery(window).resize();jQuery('body > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"hidden"})})});jQuery(window).load(function(){var e=/iphone/i.test(navigator.userAgent.toLowerCase());var t=/ipad/i.test(navigator.userAgent.toLowerCase());if(!e&&!t){jQuery("#content").center()}jQuery('body > div:not(".preloader")').each(function(){jQuery(this).css({visibility:"visible"})});setInterval(function(){jQuery("body > .preloader").fadeOut(300)},1e3)});jQuery(window).resize(function(){if(jQuery(window).width()<1025||jQuery(window).width()<769){jQuery("#login-form").find("span.licon").fadeIn(300);jQuery("#login-form").find("span.picon").fadeIn(300);jQuery("#login-form").addClass("active")}else{if(!jQuery("#login-form").hasClass("error")){jQuery("#login-form").find("span.licon").fadeOut(300);jQuery("#login-form").find("span.picon").fadeOut(300);jQuery("#login-form").removeClass("active")}}var e=/iphone/i.test(navigator.userAgent.toLowerCase());var t=/ipad/i.test(navigator.userAgent.toLowerCase());if(!e&&!t){jQuery("#content").center()}});jQuery.fn.center=function(){this.css("position","absolute");this.css("top",Math.max(0,(jQuery(window).height()-jQuery(this).outerHeight())/2+jQuery(window).scrollTop()+50)+"px");return this}
load/style.css CHANGED
@@ -17,8 +17,7 @@ body {
17
 
18
  body > #wrapper {height: auto; min-height: 100%; width:100%;}
19
 
20
- .center {
21
- clear: both;
22
  content: "";
23
  display: block;
24
  margin: 0 auto;
@@ -363,8 +362,11 @@ footer {
363
  opacity:1;
364
  }
365
 
366
-
367
-
 
 
 
368
 
369
  @media screen and (max-width: 768px) {
370
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
@@ -372,22 +374,87 @@ footer {
372
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
373
  }
374
 
375
- @media only screen
376
- and (min-device-width : 320px)
377
- and (max-device-width : 568px) {
378
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
 
379
  header {padding:25px 0;}
380
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
381
  }
382
 
383
- @media only screen
384
- and (min-device-width : 768px)
385
- and (max-device-width : 1024px) {
386
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
387
  header {padding:25px 0;}
388
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
389
- }
390
-
391
- @media screen and (max-device-width: 640px), screen and (-webkit-min-device-pixel-ratio: 2) and (orientation:portrait) {
392
- .logo img {height: auto; width: auto; margin-top:40px;}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
393
  }
17
 
18
  body > #wrapper {height: auto; min-height: 100%; width:100%;}
19
 
20
+ .center {clear: both;
 
21
  content: "";
22
  display: block;
23
  margin: 0 auto;
362
  opacity:1;
363
  }
364
 
365
+ #vague-svg-blur {
366
+ width:0;
367
+ height:0;
368
+ display:inline;
369
+ }
370
 
371
  @media screen and (max-width: 768px) {
372
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
374
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
375
  }
376
 
377
+ @media only screen and (min-device-width : 320px) and (max-device-width : 568px) {
 
 
378
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
379
+ .logo img {float:left; max-width:200px; max-height:200px;}
380
  header {padding:25px 0;}
381
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
382
  }
383
 
384
+ @media only screen and (min-device-width : 768px) and (max-device-width : 1024px) {
 
 
385
  .logo {width:100%; text-align:center; margin:0 0 20px 0;}
386
  header {padding:25px 0;}
387
  .login-form { margin:0 auto; float:none; width:100%; max-width:430px;}
388
+
389
+ html { overflow: auto;}
390
+ #wrapper { min-width: 100%; }
391
+ .center { min-width:100%; }
392
+ .site-content { margin: 30px 0; position: inherit !important; top: 0 !important; }
393
+ header {width: 100%;}
394
+ footer {margin:0;}
395
+ footer .company-name {margin: 0 0 10px 0;}
396
+ .user-content {padding:0 15px; width:auto;}
397
+ }
398
+
399
+ @media screen and (max-width: 480px) {
400
+ html { overflow: auto;}
401
+ body > #wrapper { min-width: 0; min-height: 0;}
402
+ .center { min-width:0 }
403
+ .site-content { margin: 30px 0; position: inherit !important; top: 0 !important; }
404
+ .social { width:auto !important; margin:0 0 20px 0 !important; padding: 0 5px;}
405
+ .social .socialicon {margin: 0 0 10px 20px;}
406
+ .site-content h2, .site-content h3 { display: block; padding: 0 5px; width: auto; }
407
+ #countdown {max-width:298px;}
408
+ #countdown .countDevider { height: 192px; }
409
+ header {width: 100%;}
410
+ footer {margin:0;}
411
+ footer .company-name {margin: 0 0 10px 0;}
412
+ .site-content h2.heading { font-size: 32px; }
413
+ .site-content h3.description { font-size: 26px; }
414
+ #mailchimp-box h3 { font-size: 16px; }
415
+ .login-form { display: block; margin: 0 auto; max-width: 328px;}
416
+ .login-form input[type="submit"] { margin: 15px 118px 0; }
417
+ #mailchimp-box form {width:304px;}
418
+ #mailchimp-box form input[type="email"] { max-width: 242px; }
419
+ #mailchimp-box form input[type="submit"] { margin: 5px 85px 0; }
420
+ .login-form input[type="password"] { margin:0; }
421
+ .user-content {padding:0 5px; width:auto;}
422
+ #countdown .countDevider.countDiv1 {width:1px;}
423
+ }
424
+
425
+
426
+ @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : portrait) {
427
+ html { overflow: auto; }
428
+ body > #wrapper { min-width: 0; min-height: 0;}
429
+ .center { min-width:0 }
430
+ .site-content { margin: 30px 0; position: inherit !important; top: 0 !important; }
431
+ .social { width:auto !important; margin:0 0 20px 0 !important; padding: 0 5px;}
432
+ .social .socialicon {margin: 0 0 10px 20px;}
433
+ .site-content h2, .site-content h3 { display: block; padding: 0 5px; width: auto; }
434
+ #countdown {max-width:298px;}
435
+ header {width: 100%;}
436
+ footer {margin:0;}
437
+ footer .company-name {margin: 0 0 10px 0; float:left; display:block;}
438
+ .site-content h2.heading { font-size: 26px; }
439
+ .site-content h3.description { font-size: 20px; }
440
+ #mailchimp-box h3 { font-size: 16px; }
441
+ .login-form { display: block; margin: 0 auto; max-width: 310px;}
442
+ .login-form input[type="submit"] { margin: 15px 118px 0; }
443
+ #mailchimp-box form input[type="email"] { max-width: 242px; }
444
+ #mailchimp-box form input[type="submit"] { margin: 5px 85px 0; }
445
+ .login-form input[type="text"], .login-form input[type="password"] { max-width: 90px; width: 90px; }
446
+ .login-form input[type="password"] { margin:0; }
447
+ .user-content {padding:0 5px; width:auto;}
448
+ #countdown .countDevider.countDiv1 {width:1px;}
449
+ }
450
+
451
+ @media only screen and (min-device-width : 320px) and (max-device-width : 568px) and (orientation : landscape) {
452
+ .site-content h2.heading { font-size: 36px; }
453
+ .site-content h3.description { font-size: 28px; }
454
+ }
455
+
456
+ @media screen and (max-height: 768px) {
457
+ html { overflow: auto; }
458
+ .site-content { margin: 30px 0; position: inherit !important; top: 0 !important; }
459
+ footer {margin:0;}
460
  }
maintenance.php CHANGED
@@ -1,9 +1,9 @@
1
  <?php
2
  /*
3
  Plugin Name: Maintenance
4
- Plugin URI: http://wordpress.org/plugins/maintenance/
5
- Description: Maintenance - easy configure and customize coming soon, under construction page when site have updates or changes.
6
- Version: 2.0.1
7
  Author: fruitfulcode
8
  Author URI: http://fruitfulcode.com
9
  License: GPL2
1
  <?php
2
  /*
3
  Plugin Name: Maintenance
4
+ Plugin URI: http://wordpress.org/extend/plugins/maintenance/
5
+ Description: Take your website for maintenance away from public view. Use maintenance plugin if your website is in development or you need to change a few things, run an upgrade. Make it only accessible by login and password. Plugin has a options to add a logo, background, headline, message, colors, login, etc. Extended PRO with more features version is available for purchase.
6
+ Version: 2.1
7
  Author: fruitfulcode
8
  Author URI: http://fruitfulcode.com
9
  License: GPL2
readme.txt CHANGED
@@ -3,8 +3,8 @@ Contributors: fruitfulcode
3
  Donate link: http://fruitfulcode.com/
4
  Tags: maintenance, coming soon, under-construction, 503 error, administration, login, customize page, background, fullscreen, blur
5
  Requires at least: 3.0
6
- Tested up to: 3.8
7
- Stable tag: 2.0.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -25,6 +25,8 @@ Maintenance plugin allow WordPress site administrator close the website for main
25
  <li>User login with validation</li>
26
  <li>Admin bar: show/hide</li>
27
  <li>503 error on/off</li>
 
 
28
 
29
  </ul>
30
 
@@ -51,8 +53,6 @@ Maintenance plugin allow WordPress site administrator close the website for main
51
  <h3>Translation</h3>
52
 
53
  <ul>
54
- <li>Spanish (es_ES) (thanks to <a href="http://profiles.wordpress.org/closemarketing/">David Perez</a>)</li>
55
- <li>French (fr_FR) (thanks to Jean Yves LE GALL)</li>
56
  <li>Russian (ru_RU)</li>
57
  <li>Brazilian Portuguese (pt_BR) (thanks to Luiz Felipe Silva Cristofari)</li>
58
  </ul>
@@ -103,19 +103,20 @@ No, it will be display error on current maintenance page, without redirect to wp
103
  You can check <a href="http://wordpress.org/support/plugin/maintenance">support forum</a> or <a class="send-mail" target="_blank" href="mailto:mail@fruitfulcode.com?subject=Maintenance%20Plugin">send email to us</a>
104
 
105
 
106
- == Changelog ==
107
 
108
- = 2.0.1 = (21.12.2013)
 
 
 
109
 
110
- * Wordpress 3.8 support
111
  * New translation Brazilian Portuguese
112
  * Bug fix in title
113
  * Bug fix blur background image scroll
114
 
115
 
116
-
117
- = 2.0 = (17.12.2013)
118
-
119
  * New features
120
  * New PRO version
121
  * New design
@@ -125,14 +126,12 @@ You can check <a href="http://wordpress.org/support/plugin/maintenance">support
125
  * Blur background effect
126
  * 503 error switcher
127
 
128
- = 1.2.3 = (28.08.2013)
129
-
130
  * Wordpress 3.6 support
131
  * Bug fix
132
  * Warning Messages, open_basedir conflict - resolved.
133
 
134
- = 1.2.2 = (12.07.2013)
135
-
136
  * Re-directed user to the root of the doman (not to subdirectory).
137
  * Bugfix, Notice in dasboard with debug mode.
138
 
@@ -147,11 +146,9 @@ You can check <a href="http://wordpress.org/support/plugin/maintenance">support
147
  * Css fixes for WP 3.5
148
 
149
  = 1.1.1 =
150
-
151
- Css fixes
152
 
153
  = 1.1 =
154
-
155
  * Any logo images will be in center of page
156
  * Lastpass fields corrected width
157
  * Bug fixes
3
  Donate link: http://fruitfulcode.com/
4
  Tags: maintenance, coming soon, under-construction, 503 error, administration, login, customize page, background, fullscreen, blur
5
  Requires at least: 3.0
6
+ Tested up to: 3.8.1
7
+ Stable tag: 2.1
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
25
  <li>User login with validation</li>
26
  <li>Admin bar: show/hide</li>
27
  <li>503 error on/off</li>
28
+ <li>Google analytics field</li>
29
+ <li>Login on/off</li>
30
 
31
  </ul>
32
 
53
  <h3>Translation</h3>
54
 
55
  <ul>
 
 
56
  <li>Russian (ru_RU)</li>
57
  <li>Brazilian Portuguese (pt_BR) (thanks to Luiz Felipe Silva Cristofari)</li>
58
  </ul>
103
  You can check <a href="http://wordpress.org/support/plugin/maintenance">support forum</a> or <a class="send-mail" target="_blank" href="mailto:mail@fruitfulcode.com?subject=Maintenance%20Plugin">send email to us</a>
104
 
105
 
106
+ == Change log ==
107
 
108
+ = 2.1 =
109
+ * New option Login on/off
110
+ * New option Google Analytics field
111
+ * Responsive bug fix
112
 
113
+ = 2.0.1 =
114
  * New translation Brazilian Portuguese
115
  * Bug fix in title
116
  * Bug fix blur background image scroll
117
 
118
 
119
+ = 2.0 =
 
 
120
  * New features
121
  * New PRO version
122
  * New design
126
  * Blur background effect
127
  * 503 error switcher
128
 
129
+ = 1.2.3 =
 
130
  * Wordpress 3.6 support
131
  * Bug fix
132
  * Warning Messages, open_basedir conflict - resolved.
133
 
134
+ = 1.2.2 =
 
135
  * Re-directed user to the root of the doman (not to subdirectory).
136
  * Bugfix, Notice in dasboard with debug mode.
137
 
146
  * Css fixes for WP 3.5
147
 
148
  = 1.1.1 =
149
+ *Css fixes
 
150
 
151
  = 1.1 =
 
152
  * Any logo images will be in center of page
153
  * Lastpass fields corrected width
154
  * Bug fixes
screenshot-1.png DELETED
Binary file