a3 Lazy Load - Version 1.8.4

Version Description

Maintenance Update. This version updates the Plugin Framework to v 2.0.2, adds full compatibility with a3rev dashboard and WordPress v 4.9.4

Download this release

Release Info

Developer a3rev
Plugin Icon 128x128 a3 Lazy Load
Version 1.8.4
Comparing to
See all releases

Code changes from version 1.8.3 to 1.8.4

a3-lazy-load.php CHANGED
@@ -2,11 +2,11 @@
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
- Version: 1.8.3
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
9
- Tested up to: 4.9.2
10
  Text Domain: a3-lazy-load
11
  Domain Path: /languages
12
  License: GPLv2 or later
@@ -19,7 +19,6 @@ License: GPLv2 or later
19
  */
20
  ?>
21
  <?php
22
- define('A3_LAZY_VERSION', '1.8.3');
23
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
24
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
25
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
@@ -30,6 +29,9 @@ define('A3_LAZY_LOAD_JS_URL', A3_LAZY_LOAD_URL . '/assets/js');
30
  define('A3_LAZY_LOAD_CSS_URL', A3_LAZY_LOAD_URL . '/assets/css');
31
  define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
32
 
 
 
 
33
  /**
34
  * Load Localisation files.
35
  *
2
  /*
3
  Plugin Name: a3 Lazy Load
4
  Description: Speed up your site and enhance frontend user's visual experience in PC's, Tablets and mobile with a3 Lazy Load.
5
+ Version: 1.8.4
6
  Author: a3rev Software
7
  Author URI: https://a3rev.com/
8
  Requires at least: 4.0
9
+ Tested up to: 4.9.4
10
  Text Domain: a3-lazy-load
11
  Domain Path: /languages
12
  License: GPLv2 or later
19
  */
20
  ?>
21
  <?php
 
22
  define('A3_LAZY_LOAD_FILE_PATH', dirname(__FILE__));
23
  define('A3_LAZY_LOAD_DIR_NAME', basename(A3_LAZY_LOAD_FILE_PATH));
24
  define('A3_LAZY_LOAD_FOLDER', dirname(plugin_basename(__FILE__)));
29
  define('A3_LAZY_LOAD_CSS_URL', A3_LAZY_LOAD_URL . '/assets/css');
30
  define('A3_LAZY_LOAD_IMAGES_URL', A3_LAZY_LOAD_URL . '/assets/images');
31
 
32
+ define( 'A3_LAZY_LOAD_KEY', 'a3_lazy_load' );
33
+ define( 'A3_LAZY_VERSION', '1.8.4' );
34
+
35
  /**
36
  * Load Localisation files.
37
  *
admin/a3-lazy-load-admin.php CHANGED
@@ -1,5 +1,4 @@
1
  <?php
2
- update_option('a3rev_lazy_load_plugin', 'a3_lazy_load' );
3
 
4
  function a3_lazy_load_activated(){
5
  update_option('a3_lazy_load_version', A3_LAZY_VERSION );
1
  <?php
 
2
 
3
  function a3_lazy_load_activated(){
4
  update_option('a3_lazy_load_version', A3_LAZY_VERSION );
admin/admin-init.php CHANGED
@@ -225,6 +225,7 @@ class A3_Lazy_Load_Admin_Init extends A3_Lazy_Load_Admin_UI
225
  echo 'nav-tab-active';
226
  $tab_data = $tab;
227
  }
 
228
  echo '">' . $tab['label'] . '</a>';
229
  }
230
 
225
  echo 'nav-tab-active';
226
  $tab_data = $tab;
227
  }
228
+ echo ' ' . esc_attr( sanitize_title( $tab['name'] ) );
229
  echo '">' . $tab['label'] . '</a>';
230
  }
231
 
admin/admin-interface.php CHANGED
@@ -102,19 +102,21 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
102
  $rtl = is_rtl() ? '.rtl' : '';
103
 
104
  wp_register_script( 'chosen', $this->admin_plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), true, false );
105
- wp_register_script( 'a3rev-chosen-new', $this->admin_plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), true, false );
106
- wp_register_script( 'a3rev-style-checkboxes', $this->admin_plugin_url() . '/assets/js/iphone-style-checkboxes' . $rtl . '.js', array('jquery'), true, false );
107
  wp_register_script( 'jquery-ui-slider-rtl', $this->admin_plugin_url() . '/assets/js/ui-slider/jquery.ui.slider.rtl' . $suffix . '.js', array('jquery'), true, true );
108
 
109
- wp_register_script( 'a3rev-admin-ui-script', $this->admin_plugin_url() . '/assets/js/admin-ui-script.js', array('jquery'), true, true );
110
- wp_register_script( 'a3rev-typography-preview', $this->admin_plugin_url() . '/assets/js/a3rev-typography-preview.js', array('jquery'), false, true );
111
- wp_register_script( 'a3rev-settings-preview', $this->admin_plugin_url() . '/assets/js/a3rev-settings-preview.js', array('jquery'), false, true );
112
  wp_register_script( 'jquery-tiptip', $this->admin_plugin_url() . '/assets/js/tipTip/jquery.tipTip' . $suffix . '.js', array( 'jquery' ), true, true );
113
- wp_register_script( 'a3rev-metabox-ui', $this->admin_plugin_url() . '/assets/js/data-meta-boxes.js', array( 'jquery' ), true, true );
114
  wp_register_script( 'jquery-rwd-image-maps', $this->admin_plugin_url() . '/assets/js/rwdImageMaps/jquery.rwdImageMaps.min.js', array( 'jquery' ), true, true );
 
115
 
116
  wp_enqueue_script( 'jquery' );
117
  wp_enqueue_script( 'wp-color-picker' );
 
118
  if ( is_rtl() ) {
119
  wp_enqueue_script( 'jquery-ui-slider-rtl' );
120
  } else {
@@ -176,9 +178,6 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
176
  delete_transient( $transient_name );
177
 
178
  $new_version = '';
179
- if ( class_exists( 'A3_Lazy_Load_Upgrade' ) ) {
180
- $new_version = A3_Lazy_Load_Upgrade::get_version_info();
181
- }
182
 
183
  $version_message = $this->get_version_message();
184
  $has_new_version = 1;
@@ -186,20 +185,19 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
186
  $version_message = __( 'Great! You have the latest version installed.', 'a3-lazy-load' );
187
  $has_new_version = 0;
188
  } else {
189
- delete_option('a3_lazy_load_clean_on_deletion');
190
  if ( is_array( $new_version ) && 'valid' == $new_version['is_valid_key'] ) {
191
  $current_update_plugins = get_site_transient( 'update_plugins' );
192
  if ( isset( $current_update_plugins->response ) ) {
193
- $plugin_name = A3_LAZY_LOAD_NAME;
194
- if ( empty( $current_update_plugins->response[$plugin_name] ) ) {
195
- $current_update_plugins->response[$plugin_name] = new stdClass();
196
  }
197
- $current_update_plugins->response[$plugin_name]->url = "http://www.a3rev.com";
198
- $current_update_plugins->response[$plugin_name]->slug = get_option( $this->plugin_option_key );
199
- $current_update_plugins->response[$plugin_name]->package = $new_version["url"];
200
- $current_update_plugins->response[$plugin_name]->new_version = $new_version['version'];
201
- $current_update_plugins->response[$plugin_name]->upgrade_notice = $new_version['upgrade_notice'];
202
- $current_update_plugins->response[$plugin_name]->id = "0";
203
  set_site_transient( 'update_plugins', $current_update_plugins );
204
  }
205
  }
@@ -222,20 +220,25 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
222
  /* admin_css_load */
223
  /*-----------------------------------------------------------------------------------*/
224
 
225
- public function admin_css_load () {
 
 
226
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
227
 
228
- wp_enqueue_style( 'a3rev-admin-ui-style', $this->admin_plugin_url() . '/assets/css/admin-ui-style' . $suffix . '.css' );
229
 
230
- wp_enqueue_style( 'a3rev-admin-flat-ui-style', $this->admin_plugin_url() . '/assets/css/admin-flat-ui-style' . $suffix . '.css' );
 
 
231
  wp_enqueue_style( 'wp-color-picker' );
232
- wp_enqueue_style( 'a3rev-chosen-new-style', $this->admin_plugin_url() . '/assets/js/chosen/chosen' . $suffix . '.css' );
 
233
  wp_enqueue_style( 'a3rev-tiptip-style', $this->admin_plugin_url() . '/assets/js/tipTip/tipTip.css' );
234
- wp_enqueue_style( 'a3rev-metabox-ui-style', $this->admin_plugin_url() . '/assets/css/a3_admin_metabox.css' );
235
 
236
  if ( is_rtl() ) {
237
- wp_enqueue_style( 'a3rev-admin-ui-style-rtl', $this->admin_plugin_url() . '/assets/css/admin-ui-style.rtl' . $suffix . '.css' );
238
- wp_enqueue_style( 'a3rev-metabox-ui-style-rtl', $this->admin_plugin_url() . '/assets/css/a3_admin_metabox.rtl' . $suffix . '.css' );
239
  }
240
 
241
  } // End admin_css_load()
@@ -321,7 +324,7 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
321
 
322
  foreach ( $options as $value ) {
323
  if ( ! isset( $value['type'] ) ) continue;
324
- if ( in_array( $value['type'], array( 'heading' ) ) ) continue;
325
  if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
326
  if ( ! isset( $value['default'] ) ) $value['default'] = '';
327
 
@@ -692,6 +695,11 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
692
  }
693
  }
694
  }
 
 
 
 
 
695
 
696
  if ( strstr( $text_field['id'], '[' ) ) {
697
  // Set keys and value
@@ -800,6 +808,12 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
800
  }
801
 
802
  if ( !in_array( $value['type'], array( 'array_textfields' ) ) ) {
 
 
 
 
 
 
803
  if ( strstr( $value['id'], '[' ) ) {
804
  // Set keys and value
805
  $key = key( $option_array[ $id_attribute ] );
@@ -1107,9 +1121,10 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
1107
  * @return void
1108
  * ========================================================================
1109
  * Option Array Structure :
1110
- * type => row | column | heading | ajax_submit | ajax_multi_submit | google_api_key | onoff_toggle_box | text | email | number | password | color | bg_color | textarea | select | multiselect | radio | onoff_radio | checkbox | onoff_checkbox
 
1111
  * | switcher_checkbox | image_size | single_select_page | typography | border | border_styles | border_corner | box_shadow
1112
- * | slider | upload | wp_editor | array_textfields |
1113
  *
1114
  * id => text
1115
  * name => text
@@ -1120,6 +1135,7 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
1120
  * array( 'enable' => 1, 'color' => '#515151' ) : apply bg_color only
1121
  * array( 'width' => '125', 'height' => '125', 'crop' => 1 ) : apply image_size only
1122
  * array( 'size' => '9px', line_height => '1.4em', 'face' => 'Arial', 'style' => 'normal', 'color' => '#515151' ) : apply for typography only
 
1123
  * array( 'width' => '1px', 'style' => 'normal', 'color' => '#515151', 'corner' => 'rounded' | 'square' , 'top_left_corner' => 3,
1124
  * 'top_right_corner' => 3, 'bottom_left_corner' => 3, 'bottom_right_corner' => 3 ) : apply for border only
1125
  * array( 'width' => '1px', 'style' => 'normal', 'color' => '#515151' ) : apply for border_styles only
@@ -1227,6 +1243,13 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
1227
  * ),
1228
  * ...
1229
  * )
 
 
 
 
 
 
 
1230
  *
1231
  */
1232
 
@@ -1789,30 +1812,29 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
1789
 
1790
  // Manual Check New Version when click on the button instead of wait for daily
1791
  case 'manual_check_version':
1792
- $version_message = $this->get_version_message();
1793
- $new_version_class = '';
1794
- if ( '' != trim( $version_message ) ) {
1795
- $new_version_class = 'a3rev-ui-new-version-message';
1796
- }
1797
 
1798
- ?><tr valign="top">
1799
- <th scope="row" class="titledesc">
1800
- <?php echo $tip; ?>
1801
- <label><?php echo __( 'Check New Version', 'a3-lazy-load' ); ?></label>
1802
- </th>
1803
- <td class="forminp forminp-manual_check_version">
1804
- <?php echo $description; ?>
1805
 
1806
- <input
1807
- data-transient-name="<?php echo $this->version_transient; ?>"
1808
- name="<?php echo $this->plugin_name . '-check-version'; ?>"
1809
- id="<?php echo $this->plugin_name . '-check-version'; ?>"
1810
- class="button button-primary a3rev-ui-manual_check_version"
1811
- type="button"
1812
- value="<?php echo __( 'Check Now', 'a3-lazy-load' ); ?>"
1813
- /> <span class="a3rev-ui-version-checking"> </span>
1814
- <p class="a3rev-ui-check-version-message <?php echo $new_version_class; ?>"><?php echo $version_message; ?></p>
 
 
 
 
 
 
 
1815
 
 
 
 
1816
  </td>
1817
  </tr><?php
1818
 
@@ -3301,6 +3323,34 @@ class A3_Lazy_Load_Admin_Interface extends A3_Lazy_Load_Admin_UI
3301
  </tr><?php
3302
 
3303
  break;
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3304
 
3305
  // Default: run an action
3306
  default:
102
  $rtl = is_rtl() ? '.rtl' : '';
103
 
104
  wp_register_script( 'chosen', $this->admin_plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), true, false );
105
+ wp_register_script( 'a3rev-chosen-new', $this->admin_plugin_url() . '/assets/js/chosen/chosen.jquery' . $suffix . '.js', array( 'jquery' ), $this->framework_version, false );
106
+ wp_register_script( 'a3rev-style-checkboxes', $this->admin_plugin_url() . '/assets/js/iphone-style-checkboxes' . $rtl . '.js', array('jquery'), $this->framework_version, false );
107
  wp_register_script( 'jquery-ui-slider-rtl', $this->admin_plugin_url() . '/assets/js/ui-slider/jquery.ui.slider.rtl' . $suffix . '.js', array('jquery'), true, true );
108
 
109
+ wp_register_script( 'a3rev-admin-ui-script', $this->admin_plugin_url() . '/assets/js/admin-ui-script.js', array('jquery'), $this->framework_version, true );
110
+ wp_register_script( 'a3rev-typography-preview', $this->admin_plugin_url() . '/assets/js/a3rev-typography-preview.js', array('jquery'), $this->framework_version, true );
111
+ wp_register_script( 'a3rev-settings-preview', $this->admin_plugin_url() . '/assets/js/a3rev-settings-preview.js', array('jquery'), $this->framework_version, true );
112
  wp_register_script( 'jquery-tiptip', $this->admin_plugin_url() . '/assets/js/tipTip/jquery.tipTip' . $suffix . '.js', array( 'jquery' ), true, true );
113
+ wp_register_script( 'a3rev-metabox-ui', $this->admin_plugin_url() . '/assets/js/data-meta-boxes.js', array( 'jquery' ), $this->framework_version, true );
114
  wp_register_script( 'jquery-rwd-image-maps', $this->admin_plugin_url() . '/assets/js/rwdImageMaps/jquery.rwdImageMaps.min.js', array( 'jquery' ), true, true );
115
+ wp_register_script( 'jquery-datetime-picker', $this->admin_plugin_url() . '/assets/js/datetimepicker/jquery.datetimepicker.js', array( 'jquery' ), true, true );
116
 
117
  wp_enqueue_script( 'jquery' );
118
  wp_enqueue_script( 'wp-color-picker' );
119
+ wp_enqueue_script( 'jquery-datetime-picker' );
120
  if ( is_rtl() ) {
121
  wp_enqueue_script( 'jquery-ui-slider-rtl' );
122
  } else {
178
  delete_transient( $transient_name );
179
 
180
  $new_version = '';
 
 
 
181
 
182
  $version_message = $this->get_version_message();
183
  $has_new_version = 1;
185
  $version_message = __( 'Great! You have the latest version installed.', 'a3-lazy-load' );
186
  $has_new_version = 0;
187
  } else {
188
+ delete_option( $this->plugin_name . '_clean_on_deletion');
189
  if ( is_array( $new_version ) && 'valid' == $new_version['is_valid_key'] ) {
190
  $current_update_plugins = get_site_transient( 'update_plugins' );
191
  if ( isset( $current_update_plugins->response ) ) {
192
+ if ( empty( $current_update_plugins->response[$this->plugin_path] ) ) {
193
+ $current_update_plugins->response[$this->plugin_path] = new stdClass();
 
194
  }
195
+ $current_update_plugins->response[$this->plugin_path]->url = "http://www.a3rev.com";
196
+ $current_update_plugins->response[$this->plugin_path]->slug = $this->plugin_name;
197
+ $current_update_plugins->response[$this->plugin_path]->package = $new_version["url"];
198
+ $current_update_plugins->response[$this->plugin_path]->new_version = $new_version['version'];
199
+ $current_update_plugins->response[$this->plugin_path]->upgrade_notice = $new_version['upgrade_notice'];
200
+ $current_update_plugins->response[$this->plugin_path]->id = "0";
201
  set_site_transient( 'update_plugins', $current_update_plugins );
202
  }
203
  }
220
  /* admin_css_load */
221
  /*-----------------------------------------------------------------------------------*/
222
 
223
+ public function admin_css_load () {
224
+ global $wp_version;
225
+
226
  $suffix = defined('SCRIPT_DEBUG') && SCRIPT_DEBUG ? '' : '.min';
227
 
228
+ wp_enqueue_style( 'a3rev-admin-ui-style', $this->admin_plugin_url() . '/assets/css/admin-ui-style' . $suffix . '.css', array(), $this->framework_version );
229
 
230
+ if ( version_compare( $wp_version, '3.8', '>=' ) ) {
231
+ wp_enqueue_style( 'a3rev-admin-flat-ui-style', $this->admin_plugin_url() . '/assets/css/admin-flat-ui-style' . $suffix . '.css', array(), $this->framework_version );
232
+ }
233
  wp_enqueue_style( 'wp-color-picker' );
234
+ wp_enqueue_style( 'jquery-datetime-picker', $this->admin_plugin_url() . '/assets/css/jquery.datetimepicker.css' );
235
+ wp_enqueue_style( 'a3rev-chosen-new-style', $this->admin_plugin_url() . '/assets/js/chosen/chosen' . $suffix . '.css', array(), $this->framework_version );
236
  wp_enqueue_style( 'a3rev-tiptip-style', $this->admin_plugin_url() . '/assets/js/tipTip/tipTip.css' );
237
+ wp_enqueue_style( 'a3rev-metabox-ui-style', $this->admin_plugin_url() . '/assets/css/a3_admin_metabox.css', array(), $this->framework_version );
238
 
239
  if ( is_rtl() ) {
240
+ wp_enqueue_style( 'a3rev-admin-ui-style-rtl', $this->admin_plugin_url() . '/assets/css/admin-ui-style.rtl' . $suffix . '.css', array(), $this->framework_version );
241
+ wp_enqueue_style( 'a3rev-metabox-ui-style-rtl', $this->admin_plugin_url() . '/assets/css/a3_admin_metabox.rtl' . $suffix . '.css', array(), $this->framework_version );
242
  }
243
 
244
  } // End admin_css_load()
324
 
325
  foreach ( $options as $value ) {
326
  if ( ! isset( $value['type'] ) ) continue;
327
+ if ( in_array( $value['type'], array( 'row', 'column', 'heading', 'ajax_submit', 'ajax_multi_submit' ) ) ) continue;
328
  if ( ! isset( $value['id'] ) || trim( $value['id'] ) == '' ) continue;
329
  if ( ! isset( $value['default'] ) ) $value['default'] = '';
330
 
695
  }
696
  }
697
  }
698
+
699
+ // Set Default value if this field is required and has default value and option value is empty
700
+ if ( isset ( $text_field['required'] ) && $text_field['required'] && empty( $option_value ) && ! empty( $text_field['default'] ) ) {
701
+ $option_value = $text_field['default'];
702
+ }
703
 
704
  if ( strstr( $text_field['id'], '[' ) ) {
705
  // Set keys and value
808
  }
809
 
810
  if ( !in_array( $value['type'], array( 'array_textfields' ) ) ) {
811
+
812
+ // Set Default value if this field is required and has default value and option value is empty
813
+ if ( isset ( $value['required'] ) && $value['required'] && empty( $option_value ) && ! empty( $value['default'] ) ) {
814
+ $option_value = $value['default'];
815
+ }
816
+
817
  if ( strstr( $value['id'], '[' ) ) {
818
  // Set keys and value
819
  $key = key( $option_array[ $id_attribute ] );
1121
  * @return void
1122
  * ========================================================================
1123
  * Option Array Structure :
1124
+ * type => row | column | heading | ajax_submit | ajax_multi_submit | google_api_key | onoff_toggle_box
1125
+ * | text | email | number | password | color | bg_color | textarea | select | multiselect | radio | onoff_radio | checkbox | onoff_checkbox
1126
  * | switcher_checkbox | image_size | single_select_page | typography | border | border_styles | border_corner | box_shadow
1127
+ * | slider | upload | wp_editor | array_textfields | time_picker
1128
  *
1129
  * id => text
1130
  * name => text
1135
  * array( 'enable' => 1, 'color' => '#515151' ) : apply bg_color only
1136
  * array( 'width' => '125', 'height' => '125', 'crop' => 1 ) : apply image_size only
1137
  * array( 'size' => '9px', line_height => '1.4em', 'face' => 'Arial', 'style' => 'normal', 'color' => '#515151' ) : apply for typography only
1138
+ * required => true | false : apply for all types
1139
  * array( 'width' => '1px', 'style' => 'normal', 'color' => '#515151', 'corner' => 'rounded' | 'square' , 'top_left_corner' => 3,
1140
  * 'top_right_corner' => 3, 'bottom_left_corner' => 3, 'bottom_right_corner' => 3 ) : apply for border only
1141
  * array( 'width' => '1px', 'style' => 'normal', 'color' => '#515151' ) : apply for border_styles only
1243
  * ),
1244
  * ...
1245
  * )
1246
+ *
1247
+ * time_step => number : apply for time_picker only
1248
+ * time_min => text : apply for time_picker only
1249
+ * time_max => text : apply for time_picker only
1250
+ * time_allow => text : apply for time_picker only
1251
+ * ---------------- example ---------------------
1252
+ * [ '9:00', '11:00', '12:00', '21:00' ]
1253
  *
1254
  */
1255
 
1812
 
1813
  // Manual Check New Version when click on the button instead of wait for daily
1814
  case 'manual_check_version':
 
 
 
 
 
1815
 
1816
+ $check_version_class = 'a3rev-ui-new-version-message';
 
 
 
 
 
 
1817
 
1818
+ if ( is_multisite() ) {
1819
+ $version_message = __( 'Sorry, this feature just for Network Admin.', 'a3-lazy-load' );
1820
+ } else {
1821
+ global $a3_dashboard_plugin_requirement;
1822
+
1823
+ if ( ! $a3_dashboard_plugin_requirement->is_installed() ) {
1824
+ $version_message = sprintf( __( 'You need to install and activate the <a title="" href="%s" target="_parent">a3rev Dashboard plugin</a> for manage version and get auto upgrade to latest version.', 'a3-lazy-load' ), $a3_dashboard_plugin_requirement->install_url() );
1825
+ } elseif ( ! $a3_dashboard_plugin_requirement->is_activated() ) {
1826
+ $version_message = sprintf( __( 'You need to activate the <a title="" href="%s" target="_parent">a3rev Dashboard plugin</a> for manage version and get auto upgrade to latest version.', 'a3-lazy-load' ), $a3_dashboard_plugin_requirement->activate_url() );
1827
+ } elseif ( function_exists( 'is_a3_club_membership' ) && ! is_a3_club_membership() ) {
1828
+ $version_message = sprintf( __( 'You need to go to <a title="" href="%s">a3 Dashboard Main page</a> for login before check for Update. Use your account creds on <a href="https://a3rev.com" target="_parent">a3rev.com</a> to login.', 'a3-lazy-load' ), self_admin_url( 'admin.php?page=a3rev-dashboard' ) );
1829
+ } else {
1830
+ $check_version_class = 'a3rev-ui-latest-version-message';
1831
+ $version_message = sprintf( __( 'Go to <a href="%s">a3 Dashboard Main page</a> and hit on <strong>CHECK NOW</strong> button to manual check for Update.', 'a3-lazy-load' ), self_admin_url( 'admin.php?page=a3rev-dashboard' ) );
1832
+ }
1833
+ }
1834
 
1835
+ ?><tr valign="top">
1836
+ <td colspan="2">
1837
+ <p class="a3rev-ui-check-version-message <?php echo $check_version_class; ?>"><?php echo $version_message; ?></p>
1838
  </td>
1839
  </tr><?php
1840
 
3323
  </tr><?php
3324
 
3325
  break;
3326
+
3327
+ // Time Picker Control
3328
+ case 'time_picker':
3329
+
3330
+ $class = 'a3rev-ui-' . sanitize_title( $value['type'] ) . ' ' . esc_attr( $value['class'] );
3331
+
3332
+ ?><tr valign="top">
3333
+ <th scope="row" class="titledesc">
3334
+ <?php echo $tip; ?>
3335
+ <label for="<?php echo $id_attribute; ?>"><?php echo esc_html( $value['name'] ); ?></label>
3336
+ </th>
3337
+ <td class="forminp forminp-<?php echo sanitize_title( $value['type'] ) ?>">
3338
+ <input
3339
+ readonly="readonly"
3340
+ name="<?php echo $name_attribute; ?>"
3341
+ id="<?php echo $id_attribute; ?>"
3342
+ type="text"
3343
+ value="<?php echo esc_attr( $option_value ); ?>"
3344
+ class="<?php echo $class; ?>"
3345
+ <?php if ( ! empty( $value['time_step'] ) ) { ?>data-time_step="<?php echo esc_attr( $value['time_step'] ); ?>"<?php } ?>
3346
+ <?php if ( ! empty( $value['time_min'] ) ) { ?>data-time_min="<?php echo esc_attr( $value['time_min'] ); ?>"<?php } ?>
3347
+ <?php if ( ! empty( $value['time_max'] ) ) { ?>data-time_max="<?php echo esc_attr( $value['time_max'] ); ?>"<?php } ?>
3348
+ <?php if ( ! empty( $value['time_allow'] ) ) { ?>data-time_max="<?php echo esc_attr( $value['time_allow'] ); ?>"<?php } ?>
3349
+ /> <?php echo $description; ?>
3350
+ </td>
3351
+ </tr><?php
3352
+
3353
+ break;
3354
 
3355
  // Default: run an action
3356
  default:
admin/admin-ui.php CHANGED
@@ -30,19 +30,16 @@ class A3_Lazy_Load_Admin_UI
30
  * @var string
31
  * You must change to correct plugin name that you are working
32
  */
33
- public $plugin_name = 'a3_lazy_load';
34
 
35
- public $google_api_key_option = 'a3_lz_google_api_key';
36
-
37
- public $toggle_box_open_option = 'a3_lz_toggle_box_open';
38
-
39
- public $is_free_plugin = true;
40
-
41
- public $version_transient = 'a3_lazy_load_update_info';
42
-
43
- public $plugin_option_key = 'a3rev_lazy_load_plugin';
44
-
45
- public $support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
46
 
47
 
48
  /**
@@ -55,7 +52,7 @@ class A3_Lazy_Load_Admin_UI
55
  * @var string
56
  * You must change to correct pro plugin page url on a3rev site
57
  */
58
- public $pro_plugin_page_url = 'http://a3rev.com/shop/a3-lazy-load/';
59
 
60
  /**
61
  * @var string
@@ -323,11 +320,11 @@ class A3_Lazy_Load_Admin_UI
323
  if ( FALSE !== stristr( $version_transient, '||' )
324
  && is_array( $version_info )
325
  && isset( $version_info[1] ) && $version_info[1] == 'valid'
326
- && version_compare( get_option('a3_lazy_load_version') , $version_info[0], '<' ) ) {
327
 
328
  $version_message = sprintf( __( 'There is a new version <span class="a3rev-ui-new-plugin-version">%s</span> available, <a href="%s" target="_blank">update now</a> or download direct from <a href="%s" target="_blank">My Account</a> on a3rev.com', 'a3-lazy-load' ),
329
  $version_info[0],
330
- wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . A3_LAZY_LOAD_NAME ), 'upgrade-plugin_' . A3_LAZY_LOAD_NAME ),
331
  'https://a3rev.com/my-account/downloads/'
332
  );
333
  }
30
  * @var string
31
  * You must change to correct plugin name that you are working
32
  */
 
33
 
34
+ public $framework_version = '2.0.2';
35
+ public $plugin_name = A3_LAZY_LOAD_KEY;
36
+ public $plugin_path = A3_LAZY_LOAD_NAME;
37
+ public $google_api_key_option = A3_LAZY_LOAD_KEY . '_google_api_key';
38
+ public $toggle_box_open_option = A3_LAZY_LOAD_KEY . '_toggle_box_open';
39
+ public $version_transient = A3_LAZY_LOAD_KEY . '_licinfo';
40
+ public $is_free_plugin = true;
41
+
42
+ public $support_url = 'https://wordpress.org/support/plugin/a3-lazy-load/';
 
 
43
 
44
 
45
  /**
52
  * @var string
53
  * You must change to correct pro plugin page url on a3rev site
54
  */
55
+ public $pro_plugin_page_url = 'https://a3rev.com/shop/a3-lazy-load/';
56
 
57
  /**
58
  * @var string
320
  if ( FALSE !== stristr( $version_transient, '||' )
321
  && is_array( $version_info )
322
  && isset( $version_info[1] ) && $version_info[1] == 'valid'
323
+ && version_compare( A3_LAZY_VERSION , $version_info[0], '<' ) ) {
324
 
325
  $version_message = sprintf( __( 'There is a new version <span class="a3rev-ui-new-plugin-version">%s</span> available, <a href="%s" target="_blank">update now</a> or download direct from <a href="%s" target="_blank">My Account</a> on a3rev.com', 'a3-lazy-load' ),
326
  $version_info[0],
327
+ wp_nonce_url( self_admin_url( 'update.php?action=upgrade-plugin&plugin=' . $this->plugin_path ), 'upgrade-plugin_' . $this->plugin_path ),
328
  'https://a3rev.com/my-account/downloads/'
329
  );
330
  }
admin/assets/css/admin-ui-style.css CHANGED
@@ -766,6 +766,9 @@
766
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
767
  }
768
 
 
 
 
769
  /* Help Tip */
770
  .a3rev_panel_container table.form-table th img.help_tip {
771
  float: right;
766
  text-shadow: 0px 0px 2px rgba(0, 0, 0, 0.6);
767
  }
768
 
769
+ /* Time Picker Control */
770
+ .a3rev_panel_container .a3rev-ui-time_picker { width: 76px; text-align: center; cursor: pointer; }
771
+
772
  /* Help Tip */
773
  .a3rev_panel_container table.form-table th img.help_tip {
774
  float: right;
admin/assets/css/admin-ui-style.min.css CHANGED
@@ -1,15 +1,14 @@
1
  @charset "UTF-8";
2
- @font-face{font-family:"a3-plugin-framework";src:url("../fonts/a3-plugin-framework.eot");src:url("../fonts/a3-plugin-framework.eot?#iefix") format("embedded-opentype"),url("../fonts/a3-plugin-framework.woff") format("woff"),url("../fonts/a3-plugin-framework.ttf") format("truetype"),url("../fonts/a3-plugin-framework.svg#a3-plugin-framework") format("svg");font-weight:normal;font-style:normal}
3
- @-webkit-keyframes progress-bar{
4
- from{background-position:0 0}
5
- to{background-position:24px 40px}
6
  }
7
- @keyframes progress-bar{
8
- from{background-position:0 0}
9
- to{background-position:24px 40px}
10
  }
11
- [class^="a3-plugin-ui-"]:before,
12
- [class*=" a3-plugin-ui-"]:before{font-family:"a3-plugin-framework"!important;font-style:normal!important;font-weight:normal!important;font-variant:normal!important;text-transform:none!important;speak:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
13
  .a3-plugin-ui-a3-plugins-icon:before{content:"a"}
14
  .a3-plugin-ui-a3-rev-logo:before{content:"b"}
15
  .a3-plugin-ui-a3-thumb-icon:before{content:"c"}
@@ -27,7 +26,7 @@
27
  .a3rev_panel_container .a3rev_panel_column{display:table-cell;width:50%;box-sizing:border-box;padding:0 10px;position:relative;vertical-align:top}
28
  .a3rev_panel_container .a3rev_panel_column:last-child{padding-right:0}
29
  .a3rev_panel_container .a3rev_panel_column:first-child{padding-left:0;padding-right:10px}
30
- .a3rev_panel_container .a3rev_panel_box{position:relative;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.06);box-shadow:0 1px 1px rgba(0,0,0,0.06);background:#fff;margin-bottom:20px;border-radius:0px}
31
  .a3rev_panel_container .a3rev_panel_box .a3rev_panel_box{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1)}
32
  .a3rev_panel_container .a3rev_panel_box_handle{padding:8px 12px 8px 38px;position:relative}
33
  .a3rev_panel_container .a3rev_panel_box_handle .pro_feature_top_message{text-align:left;margin:5px 0 0}
@@ -46,231 +45,186 @@
46
  .a3rev_panel_container .a3rev_panel_inner{clear:both;display:block;padding-bottom:10px}
47
  .a3rev_panel_container .a3rev_panel_inner h3{margin-bottom:0}
48
  .a3rev_panel_container .a3rev_panel_inner .form-table{margin-bottom:0}
49
- .icon32-a3rev-ui-settings{background:url("../images/a3-plugins.png") no-repeat left top}
50
  .a3_subsubsub_section{float:left;width:100%}
51
- .a3rev_panel_container input[type="text"],
52
- .a3rev_panel_container input[type="email"],
53
- .a3rev_panel_container input[type="number"],
54
- .a3rev_panel_container input[type="password"]{height:24px}
55
  .a3rev_panel_container .a3rev-ui-typography-size{width:80px}
56
  .a3rev_panel_container .a3rev-ui-typography-line_height{width:80px}
57
  .a3rev_panel_container .a3rev-ui-typography-face{width:160px}
58
  .a3rev_panel_container .a3rev-ui-typography-style{width:100px}
59
  .a3rev_panel_container .a3rev-ui-typography-preview{display:inline-block}
60
- .a3rev_panel_container .typography-preview-container .preview_remove{background:#EEEEEE;border:1px solid #DDDDDD;border-radius:2px 2px 2px 2px;-webkit-border-radius:2px 2px 2px 2px;-moz-border-radius:2px 2px 2px 2px;cursor:pointer;height:10px;padding:2px;position:absolute;right:-10px;top:-10px;width:10px;z-index:99;text-decoration:none!important}
61
- .a3rev_panel_container .a3rev-ui-typography-preview-button{float:left;margin:0px;padding-top:0px;height:24px;line-height:24px}
62
  .a3rev_panel_container .typography-preview-container{clear:both;position:relative;width:50%;margin-top:10px}
63
- .a3rev_panel_container .typography-preview{word-wrap:break-word;clear:both;padding:20px;border:1px solid #CCCCCC;background:#FDFDFD;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}
64
  .a3rev_panel_container .wp-picker-holder{position:absolute;z-index:10000}
65
  .a3rev_panel_container input.wp-picker-default{height:24px!important}
66
- .a3rev_panel_container .wp-color-result{top:0px}
67
  .a3rev_panel_container .a3rev-ui-text{width:300px;max-width:70%}
68
  .a3rev_panel_container .a3rev-ui-email{width:300px;max-width:70%}
69
  .a3rev_panel_container .a3rev-ui-number{width:40px;max-width:70%}
70
  .a3rev_panel_container .a3rev-ui-password{width:300px;max-width:70%}
71
  .a3rev_panel_container .a3rev-ui-google_api_key{width:350px;max-width:100%}
72
  .a3rev_panel_container .a3rev-ui-google-api-key-inside{margin-top:10px}
73
- .a3rev_panel_container .a3rev-ui-google-valid-key-message,
74
- .a3rev_panel_container .a3rev-ui-google-unvalid-key-message{display:none}
75
- .a3rev_panel_container .a3rev-ui-google-valid-key,
76
- .a3rev_panel_container .a3rev-ui-google-unvalid-key{padding:10px;box-shadow:0 1px 1px rgba(0,0,0,0.1)}
77
  .a3rev_panel_container .a3rev-ui-google-valid-key{background-color:#dff0d8;border:1px solid #468847;color:#468847}
78
  .a3rev_panel_container .a3rev-ui-google-unvalid-key{background-color:#ffebe8;border:1px solid #dd3d36;color:#dd3d36}
79
- .a3rev_panel_container .a3rev-ui-google-valid-key .a3rev-ui-google-valid-key-message,
80
- .a3rev_panel_container .a3rev-ui-google-unvalid-key .a3rev-ui-google-unvalid-key-message{display:block}
81
- .a3rev_panel_container .a3rev-ui-version-checking{display:none;margin-top:6px;background-image:url('../images/loading-bottom.gif');background-repeat:no-repeat;background-size:100% auto;width:16px;height:16px}
82
  .a3rev_panel_container .a3rev-ui-check-version-message{font-size:13px}
83
- .a3rev_panel_container .a3rev-ui-new-version-message,
84
- .a3rev_panel_container .a3rev-ui-latest-version-message{padding:8px 10px;box-shadow:0 1px 1px rgba(0,0,0,0.1);margin-top:8px}
85
  .a3rev_panel_container .a3rev-ui-latest-version-message{background-color:#dff0d8;border:1px solid #468847;color:#468847}
86
  .a3rev_panel_container .a3rev-ui-new-version-message{background-color:#ffebe8;border:1px solid #dd3d36;color:#dd3d36}
87
- .a3rev_panel_container .a3rev-ui-ajax_submit-control,
88
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control{margin-bottom:6px}
89
- .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button,
90
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button{border-radius:5px;border:none;background:#2186fa;color:#fff;font-size:16px;padding:8px 15px;transition:all 0.5s ease 0.1s;cursor:pointer;height:40px;box-sizing:border-box;margin-bottom:5px}
91
- .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button:hover,
92
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button:hover{background:#f4741b}
93
- .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button.disabled,
94
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button.disabled{background:#999;cursor:default}
95
- .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-successed,
96
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-successed{display:none;color:#46b450;font-size:14px;transition:all 1.5s ease 0.1s;height:40px;box-sizing:border-box}
97
- .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-errors,
98
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-errors{display:none;color:#dc3232;font-size:14px;transition:all 1.5s ease 0.1s}
99
  .a3rev_panel_container .a3rev-ui-progress-bar-wrap{background:rgba(0,0,0,0.6) none repeat scroll 0 0;border-radius:6px;box-shadow:0 1px 5px rgba(0,0,0,0.6) inset;display:none;padding:3px;width:100%;max-width:600px;position:relative}
100
- .a3rev_panel_container .a3rev-ui-progress-inner{animation:progress-bar 1s infinite linear;-ms-animation:progress-bar 1s infinite linear;-moz-animation:progress-bar 1s infinite linear;-webkit-animation:progress-bar 1s infinite linear;background:rgba(0,0,0,0) repeating-linear-gradient(-45deg,#0077ff,#0077ff 10px,#c3defd 10px,#c3defd 24px) repeat scroll 0 0 / 68px 68px;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,0.75);height:34px;overflow:hidden;transition:width 2s ease 0.1s;width:0px}
101
- .a3rev_panel_container .a3rev-ui-progressing-text,
102
- .a3rev_panel_container .a3rev-ui-completed-text{box-sizing:border-box;color:#fff;display:block;font-size:16px;left:0;top:0;padding:0px 10px;position:absolute;text-align:center;text-shadow:0px 0px 2px #000;width:100%;height:100%;line-height:40px;z-index:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
103
  .a3rev_panel_container .a3rev-ui-completed-text{display:none}
104
- .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button{margin-bottom:0px}
105
  .a3rev_panel_container .a3rev-ui-statistics-wrap{float:left;width:100%;max-width:600px;margin-top:20px}
106
  .a3rev_panel_container .a3rev-ui-statistic-item{float:left;width:100%;box-sizing:border-box;margin-bottom:30px}
107
- .a3rev_panel_container .a3rev-ui-pie-wrap{height:80px;width:80px;margin:0 auto 5px auto;position:relative}
108
  .a3rev_panel_container .a3rev-ui-pie-shadow{border:10px solid #ddd;border-radius:100%;height:100%;width:100%;box-sizing:border-box}
109
  .a3rev_panel_container .a3rev-ui-pie{clip:rect(0px,80px,80px,40px);height:100%;width:100%;position:absolute;left:0;top:0}
110
  .a3rev_panel_container .a3rev-ui-pie.pie-more-50{clip:rect(auto,auto,auto,auto)}
111
  .a3rev_panel_container .a3rev-ui-pie-half-circle{clip:rect(0px,40px,80px,0px);border:10px solid #3498db;border-radius:100%;height:100%;width:100%;position:absolute;left:0;top:0;box-sizing:border-box}
112
  .a3rev_panel_container .a3rev-ui-statistic-text{text-align:center;text-transform:uppercase;color:#777}
113
- .a3rev_panel_container .a3rev-ui-statistic-separate,
114
- .a3rev_panel_container .a3rev-ui-statistic-current-item,
115
- .a3rev_panel_container .a3rev-ui-statistic-total-item{color:#000;font-size:25px;margin:0px}
116
  .a3rev_panel_container .a3rev-ui-textarea{width:600px;max-width:70%}
117
  .a3rev_panel_container .a3rev-ui-select{width:160px;max-width:70%}
118
  .a3rev_panel_container .a3rev-ui-multiselect{width:300px;max-width:70%}
119
  .a3rev_panel_container .forminp-radio ul{margin:0}
120
  .a3rev_panel_container .a3rev-ui-image_size-width{width:40px}
121
  .a3rev_panel_container .a3rev-ui-image_size-height{width:40px}
122
- .a3rev_panel_container .a3rev-ui-image_size-crop{}
123
  .a3rev_panel_container .a3rev-ui-single_select_page{width:300px;max-width:70%}
124
  .a3rev_panel_container .a3rev-ui-settings-preview{display:inline-block}
125
  .a3rev_panel_container .settings-apply-preview{padding:10px;background:#FF0}
126
- .a3rev_panel_container .settings-preview-container .preview_remove{background:#EEEEEE;border:1px solid #DDDDDD;border-radius:2px 2px 2px 2px;-webkit-border-radius:2px 2px 2px 2px;-moz-border-radius:2px 2px 2px 2px;cursor:pointer;height:10px;padding:2px;position:absolute;right:-10px;top:-10px;width:10px;z-index:99;text-decoration:none!important}
127
- .a3rev_panel_container .a3rev-ui-settings-preview-button{float:left;margin:0px;padding-top:0px;height:24px;line-height:24px}
128
  .a3rev_panel_container .settings-preview-container{clear:both;position:relative;margin-top:12px;width:50%}
129
- .a3rev_panel_container .settings-preview{word-wrap:break-word;clear:both;padding:30px;border:1px solid #CCCCCC;background:#FDFDFD;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}
130
  .a3rev_panel_container .a3rev-ui-border_styles-width{width:80px}
131
  .a3rev_panel_container .a3rev-ui-border_styles-style{width:80px}
132
  .a3rev_panel_container .forminp-border_corner .desc{margin-bottom:10px!important}
133
  .a3rev_panel_container .forminp-border_corner .iPhoneCheckContainer{margin-right:30px}
134
  .a3rev_panel_container .a3rev-ui-border-corner-value-container{float:left;width:100%}
135
- .a3rev_panel_container .a3rev-ui-border_corner-top_left,
136
- .a3rev_panel_container .a3rev-ui-border_corner-top_right,
137
- .a3rev_panel_container .a3rev-ui-border_corner-bottom_left,
138
- .a3rev_panel_container .a3rev-ui-border_corner-bottom_right{float:left;width:100%;clear:both;padding-top:5px}
139
  .a3rev_panel_container .a3rev-ui-border_corner-span{float:left;width:140px;margin-bottom:8px}
140
  .a3rev_panel_container .a3rev-ui-border_corner-px{float:left;margin-right:10px}
141
  .a3rev_panel_container .forminp-border_corner .settings-apply-preview{border:1px solid #515151}
142
- .a3rev_panel_container .forminp-border_corner .iPhoneCheckContainer .iPhoneCheckLabelOff,
143
- .a3rev_panel_container .forminp-border_corner .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;color:#FFFFFF;text-shadow:0px 0px 2px rgba(0,0,0,0.6)}
144
  .a3rev_panel_container .a3rev-ui-bg_color-enable-container{margin-top:10px}
145
  .a3rev_panel_container .a3rev-ui-box_shadow-h_shadow{width:80px}
146
  .a3rev_panel_container .a3rev-ui-box_shadow-v_shadow{width:80px}
147
  .a3rev_panel_container .a3rev-ui-box_shadow-blur{width:80px}
148
  .a3rev_panel_container .a3rev-ui-box_shadow-spread{width:80px}
149
  .a3rev_panel_container .a3rev-ui-box_shadow-enable-container{margin-top:10px}
150
- .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iPhoneCheckContainer,
151
- .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iOSCheckContainer{float:none;display:inline-block;margin-top:0;top:-12px;margin-right:0px}
152
- .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iPhoneCheckContainer .iPhoneCheckLabelOff,
153
- .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;color:#FFFFFF;text-shadow:0px 0px 2px rgba(0,0,0,0.6)}
154
  .a3rev_panel_container .a3rev-ui-upload{width:300px;height:24px}
155
  .a3rev_panel_container .a3rev-ui-slide-container{white-space:nowrap;float:left}
156
  .a3rev_panel_container .a3rev-ui-slide-container-start{padding-left:12px;margin-bottom:15px;margin-right:20px;float:left}
157
  .a3rev_panel_container .a3rev-ui-slide-result-container{float:left;white-space:nowrap}
158
- .a3rev_panel_container .a3rev-ui-slide{background:#ededed;background:-moz-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#ededed),color-stop(50%,#ededed),color-stop(52%,#f7f6f6),color-stop(100%,#ffffff));background:-webkit-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-o-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-ms-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:linear-gradient(#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc',endColorstr='#ffffff',GradientType=0);border:1px solid #d0d0d9;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px 3px 3px 3px;height:10px;width:220px;position:relative;float:left;margin-top:4px}
159
- .a3rev_panel_container .a3rev-ui-slide .ui-slider-handle{background:#569aef;background:-moz-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#bcbcbc),color-stop(50%,#d5d5d5),color-stop(52%,#d8d8d8),color-stop(100%,#efefef));background:-webkit-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-o-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-ms-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:linear-gradient(#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bcbcbc',endColorstr='#efefef',GradientType=0);box-shadow:0 1px 0px 0px #FFFFFF inset;-webkit-box-shadow:0 1px 0px 0px #FFFFFF inset;border:1px solid #999999;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px 3px 3px 3px;position:absolute;z-index:2;width:22px;height:23px;cursor:pointer;font-weight:bold;color:#1C94C4;outline:none;top:-8px;margin-left:-11px}
160
- .a3rev_panel_container .a3rev-ui-slide .ui-slider-range{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #255399;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px 3px 3px 3px;position:absolute;top:-1px;height:100%}
161
  .a3rev_panel_container .a3rev-ui-slider{float:left;width:50px;padding:3px;margin-top:-1px}
162
  .a3rev_panel_container .a3rev-ui-array_textfields{width:40px}
163
  .a3rev_panel_container .forminp-onoff_radio ul{float:left;width:100%;margin:0}
164
  .a3rev_panel_container .forminp-onoff_radio li{float:left;width:100%;padding-top:10px}
165
- .a3rev_panel_container .forminp-onoff_radio .iPhoneCheckDisabled,
166
- .a3rev_panel_container .forminp-onoff_radio .iOSCheckDisabled{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}
167
- .a3rev_panel_container .iPhoneCheckContainer,
168
- .a3rev_panel_container .iOSCheckContainer{position:relative;height:25px;cursor:pointer;margin-right:10px;float:left;margin-top:-3px}
169
- .a3rev_panel_container .iPhoneCheckContainer input,
170
- .a3rev_panel_container .iOSCheckContainer input{display:none}
171
- .a3rev_panel_container .iPhoneCheckContainer label,
172
- .a3rev_panel_container .iOSCheckContainer label{white-space:nowrap;font-size:14px;line-height:24px;font-weight:bold;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;cursor:pointer;display:block;position:absolute;width:auto;top:0;overflow:hidden;user-select:none;-moz-user-select:none;-khtml-user-select:none}
173
- .a3rev_panel_container label.iPhoneCheckLabelOff,
174
- .a3rev_panel_container label.iOSCheckLabelOff{background:#ededed;background:-moz-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#ededed),color-stop(50%,#ededed),color-stop(52%,#f7f6f6),color-stop(100%,#ffffff));background:-webkit-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-o-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:-ms-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);background:linear-gradient(#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#ffffff 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc',endColorstr='#ffffff',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #999999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;height:23px;color:#8b8b8b;text-shadow:0px 0px 2px rgba(255,255,255,0.6);text-align:right;right:0}
175
- .a3rev_panel_container label.iPhoneCheckLabelOff span,
176
- .a3rev_panel_container label.iOSCheckLabelOff span{padding-right:10px;padding-left:0px;display:inline-block;text-transform:uppercase}
177
- .a3rev_panel_container label.iPhoneCheckLabelOn,
178
- .a3rev_panel_container label.iOSCheckLabelOn{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #999999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;height:23px;text-align:left;color:#FFFFFF;text-shadow:0px 0px 2px rgba(0,0,0,0.6);left:0}
179
- .a3rev_panel_container label.iPhoneCheckLabelOn span,
180
- .a3rev_panel_container label.iOSCheckLabelOn span{padding-left:10px;display:inline-block;text-transform:uppercase}
181
- .a3rev_panel_container .iPhoneCheckHandle,
182
- .a3rev_panel_container .iOSCheckHandle{background:#569aef;background:-moz-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#bcbcbc),color-stop(50%,#d5d5d5),color-stop(52%,#d8d8d8),color-stop(100%,#efefef));background:-webkit-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-o-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-ms-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:linear-gradient(#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bcbcbc',endColorstr='#efefef',GradientType=0);box-shadow:0 1px 0px 0px #FFFFFF inset;-webkit-box-shadow:0 1px 0px 0px #FFFFFF inset;border:1px solid #999999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;display:block;cursor:pointer;position:absolute;top:0px;left:-1px;width:35px;height:23px}
183
- .a3rev_panel_container .iPhoneCheckDisabled,
184
- .a3rev_panel_container .iOSCheckDisabled{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);opacity:0.5}
185
- .a3rev_panel_container .forminp-switcher_checkbox .iPhoneCheckContainer .iPhoneCheckLabelOff,
186
- .a3rev_panel_container .forminp-switcher_checkbox .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px 5px 5px 5px;color:#FFFFFF;text-shadow:0px 0px 2px rgba(0,0,0,0.6)}
187
  .a3rev_panel_container table.form-table th img.help_tip{float:right;margin:0 -12px 0 0}
188
  .a3rev_panel_container table.form-table img.help_tip{cursor:help;line-height:1;margin:-4px 0 0 5px;padding:0;vertical-align:middle}
189
  .subsubsub{white-space:normal}
190
  .subsubsub li{white-space:nowrap}
191
- .a3-view-docs-button{background-color:#FFFFE0!important;border:1px solid #E6DB55!important;display:inline-block!important;font-weight:normal!important;margin:5px 10px 0!important;text-shadow:none!important}
192
  #a3_plugin_premium_video_container{margin-top:10px}
193
- #a3_plugin_premium_video_container .a3rev_panel_box{margin-bottom:0px}
194
  #a3_plugin_premium_video_container .a3-plugin-ui-panel-box{color:#006799;cursor:default}
195
  #a3_plugin_premium_video_container .a3-plugin-ui-panel-box::before{color:#006799;content:"f"}
196
  #a3_plugin_premium_video_container .a3rev_panel_video_box{border-top:1px solid #eee;overflow:hidden;padding:0;position:relative}
197
- #a3_plugin_premium_video_container .a3rev_panel_box_left_inside,
198
- #a3_plugin_premium_video_container .a3rev_panel_box_right_inside{width:calc(50% - 1px);padding:12px 12px 30px 12px;box-sizing:border-box;float:left}
199
  #a3_plugin_premium_video_container .a3rev_panel_box_separate{width:1px;height:100%;background-color:#eee;position:absolute;top:0;left:50%;margin-left:-2px}
200
  #a3_plugin_premium_video_container .a3-plugin-premium-image{position:relative;float:left;width:50%;margin-right:15px}
201
  #a3_plugin_premium_video_container .a3-plugin-premium-image img{height:auto;width:100%;float:left}
202
- #a3_plugin_premium_video_container .a3-plugin-premium-video-play{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url('../images/play_video.png');background-repeat:no-repeat;background-position:center center;background-size:80px auto;background-color:rgba(0,0,0,0.2)}
203
  #a3_plugin_premium_video_container .a3-plugin-video-play:hover{background-color:rgba(0,0,0,0.6)}
204
  #a3_plugin_panel_container{position:relative;margin-top:10px;float:left;width:100%}
205
  #a3_plugin_panel_fields{padding-right:280px}
206
  #a3_plugin_panel_upgrade_area{float:right;padding-left:20px;width:260px;margin-top:10px}
207
- #a3_plugin_panel_extensions .a3_plugin_panel_extension_box{border:1px solid #E6DB55;color:#555555;margin-bottom:17px;padding:5px 10px;background:#fff}
208
  #a3_plugin_panel_extensions img{width:auto;max-width:100%}
209
  .pro_feature_top_message{font-size:11px;text-align:center;margin:10px 0}
210
  .pro_feature_fields{position:relative;border:2px solid #E6DB55;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;border-radius:10px}
211
  .pro_feature_hidden{display:none!important}
212
- .a3rev_blue_message_box{margin:0!important;background-color:#F0F8FF;border-color:#CEE1EF;padding:5px 10px;border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px 3px 3px 3px;border-style:solid;border-width:1px}
213
- .a3rev_blue_message_box a{color:#F00}
214
  .a3rev_panel_container .chosen-container{margin-bottom:5px;margin-right:2px}
215
  .a3-plugin-ui-delete-icon:before{vertical-align:top}
216
  .a3-plugin-ui-icon{color:#46719d;overflow:hidden}
217
  .a3-plugin-ui-a3-rev-logo{font-size:170px;height:125px;margin-top:-30px}
218
  .a3-plugin-ui-help-icon{color:#777;float:right;margin-right:-15px;width:14px;height:14px;cursor:pointer;font-size:12px;margin-top:5px}
219
  .a3-plugin-ui-preview-icon{color:#000;display:block;width:14px;height:16px}
220
- .a3rev_panel_container .a3rev-ui-typography-preview-button span:before,
221
- .a3rev_panel_container .a3rev-ui-settings-preview-button span:before{font-family:"a3-plugin-framework"!important;font-style:normal!important;font-weight:normal!important;font-variant:normal!important;text-transform:none!important;speak:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"g";width:14px;height:16px;font-size:12px}
222
- .a3rev_panel_container .a3rev-ui-typography-preview-button span.refresh:before,
223
- .a3rev_panel_container .a3rev-ui-settings-preview-button span.refresh:before{content:"h"!important}
224
- .wf-loading .a3rev_panel_container .typography-preview.current:before,
225
- .wf-loading .a3rev_panel_container .settings-preview.current:before{content:"k"!important}
226
  .a3-plugin-ui-delete-icon{font-size:10px;color:#C00}
227
- @media screen and (max-width:1100px){
228
- .a3rev_panel_column .form-table th,
229
- .a3rev_panel_column .form-table td{display:block;vertical-align:middle;width:auto}
230
- .a3rev_panel_column .form-table th{border-bottom:0;padding-bottom:0;padding-top:10px}
231
- .a3rev_panel_column .form-table td{margin-bottom:0;padding-bottom:6px;padding-left:0;padding-top:4px}
232
  }
233
- @media screen and (min-width:783px){
234
- .a3rev_panel_container .chosen-container-multi{min-width:300px}
235
  }
236
- @media screen and (max-width:782px){
237
- #a3_plugin_panel_fields{width:100%}
238
- #a3_plugin_panel_upgrade_area{display:none}
239
- .a3rev_panel_container .pro_feature_fields{margin-right:0px}
240
- .a3rev_panel_container input[type="text"],
241
- .a3rev_panel_container input[type="email"],
242
- .a3rev_panel_container input[type="number"],
243
- .a3rev_panel_container input[type="password"]{min-width:50px;width:100%}
244
- .a3rev_panel_container .a3rev-ui-text{max-width:none;width:100%}
245
- .a3rev_panel_container .a3rev-ui-textarea{max-width:none!important;width:100%!important}
246
- .a3rev_panel_container .a3rev-ui-slider{width:50px!important}
247
- .a3rev_panel_container .typography-preview-container,
248
- .a3rev_panel_container .settings-preview-container{width:90%}
249
- .a3rev_panel_container .a3rev-ui-typography-preview-button:active,
250
- .a3rev_panel_container .a3rev-ui-settings-preview-button:active{padding-top:inherit!important}
251
- .a3rev_panel_container .wp-picker-container input.wp-color-picker[type="text"]{width:75px!important;padding:3px 10px!important}
252
- .wp-core-ui .button.wp-picker-default{padding:0 8px 1px}
253
- .a3rev_panel_container input.a3rev-color-picker{margin-top:1px!important}
254
- .a3rev_panel_container input.wp-picker-default{margin-top:1px!important;padding:2px 8px!important}
255
- .a3rev_panel_container .chosen-container-multi{width:100%!important}
256
- .a3rev_blue_message_box_container{width:100%!important}
257
- .a3-plugin-ui-help-icon{margin-right:0px}
258
- .a3rev_panel_container .a3rev-ui-statistic-item{width:100%!important}
259
  }
260
- @media screen and (max-width:640px){
261
- .a3rev_panel_container .a3rev_panel_row{display:block}
262
- .a3rev_panel_container .a3rev_panel_column{display:block;width:100%;padding:0}
263
- .a3rev_panel_container .a3rev_panel_column:first-child,
264
- .a3rev_panel_container .a3rev_panel_column:last-child{padding:0}
265
  }
266
- @media screen and (max-width:600px){
267
- #a3_plugin_premium_video_container .a3rev_panel_box_left_inside,
268
- #a3_plugin_premium_video_container .a3rev_panel_box_right_inside{width:100%;float:left}
269
- #a3_plugin_premium_video_container .a3rev_panel_box_separate{width:100%;height:1px;position:relative;margin-left:0;float:left;left:auto;top:auto}
270
  }
271
- @media screen and (max-width:480px){
272
- .a3rev_panel_container .a3rev-ui-slide-container-start{margin-top:5px}
273
- .a3_subsubsub_section .subsubsub{text-align:left}
274
- .a3rev_panel_container .chosen-container-single{max-width:300px!important}
275
- #a3_plugin_premium_video_container .a3-plugin-premium-image{width:100%;margin-right:0px;margin-bottom:10px}
276
  }
1
  @charset "UTF-8";
2
+ @font-face{font-family:"a3-plugin-framework";src:url(../fonts/a3-plugin-framework.eot);src:url(../fonts/a3-plugin-framework.eot?#iefix) format("embedded-opentype"),url(../fonts/a3-plugin-framework.woff) format("woff"),url(../fonts/a3-plugin-framework.ttf) format("truetype"),url(../fonts/a3-plugin-framework.svg#a3-plugin-framework) format("svg");font-weight:400;font-style:normal}
3
+ @-webkit-keyframes progress-bar {
4
+ from{background-position:0 0}
5
+ to{background-position:24px 40px}
6
  }
7
+ @keyframes progress-bar {
8
+ from{background-position:0 0}
9
+ to{background-position:24px 40px}
10
  }
11
+ [class^="a3-plugin-ui-"]:before,[class*=" a3-plugin-ui-"]:before{font-family:"a3-plugin-framework"!important;font-style:normal!important;font-weight:400!important;font-variant:normal!important;text-transform:none!important;speak:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
 
12
  .a3-plugin-ui-a3-plugins-icon:before{content:"a"}
13
  .a3-plugin-ui-a3-rev-logo:before{content:"b"}
14
  .a3-plugin-ui-a3-thumb-icon:before{content:"c"}
26
  .a3rev_panel_container .a3rev_panel_column{display:table-cell;width:50%;box-sizing:border-box;padding:0 10px;position:relative;vertical-align:top}
27
  .a3rev_panel_container .a3rev_panel_column:last-child{padding-right:0}
28
  .a3rev_panel_container .a3rev_panel_column:first-child{padding-left:0;padding-right:10px}
29
+ .a3rev_panel_container .a3rev_panel_box{position:relative;border:1px solid #e5e5e5;-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.06);box-shadow:0 1px 1px rgba(0,0,0,0.06);background:#fff;margin-bottom:20px;border-radius:0}
30
  .a3rev_panel_container .a3rev_panel_box .a3rev_panel_box{-webkit-box-shadow:0 1px 1px rgba(0,0,0,0.1);box-shadow:0 1px 1px rgba(0,0,0,0.1)}
31
  .a3rev_panel_container .a3rev_panel_box_handle{padding:8px 12px 8px 38px;position:relative}
32
  .a3rev_panel_container .a3rev_panel_box_handle .pro_feature_top_message{text-align:left;margin:5px 0 0}
45
  .a3rev_panel_container .a3rev_panel_inner{clear:both;display:block;padding-bottom:10px}
46
  .a3rev_panel_container .a3rev_panel_inner h3{margin-bottom:0}
47
  .a3rev_panel_container .a3rev_panel_inner .form-table{margin-bottom:0}
48
+ .icon32-a3rev-ui-settings{background:url(../images/a3-plugins.png) no-repeat left top}
49
  .a3_subsubsub_section{float:left;width:100%}
50
+ .a3rev_panel_container input[type="text"],.a3rev_panel_container input[type="email"],.a3rev_panel_container input[type="number"],.a3rev_panel_container input[type="password"]{height:24px}
 
 
 
51
  .a3rev_panel_container .a3rev-ui-typography-size{width:80px}
52
  .a3rev_panel_container .a3rev-ui-typography-line_height{width:80px}
53
  .a3rev_panel_container .a3rev-ui-typography-face{width:160px}
54
  .a3rev_panel_container .a3rev-ui-typography-style{width:100px}
55
  .a3rev_panel_container .a3rev-ui-typography-preview{display:inline-block}
56
+ .a3rev_panel_container .typography-preview-container .preview_remove{background:#EEE;border:1px solid #DDD;border-radius:2px 2px 2px 2px;-webkit-border-radius:2px 2px 2px 2px;-moz-border-radius:2px;cursor:pointer;height:10px;padding:2px;position:absolute;right:-10px;top:-10px;width:10px;z-index:99;text-decoration:none!important}
57
+ .a3rev_panel_container .a3rev-ui-typography-preview-button{float:left;margin:0;padding-top:0;height:24px;line-height:24px}
58
  .a3rev_panel_container .typography-preview-container{clear:both;position:relative;width:50%;margin-top:10px}
59
+ .a3rev_panel_container .typography-preview{word-wrap:break-word;clear:both;padding:20px;border:1px solid #CCC;background:#FDFDFD;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}
60
  .a3rev_panel_container .wp-picker-holder{position:absolute;z-index:10000}
61
  .a3rev_panel_container input.wp-picker-default{height:24px!important}
62
+ .a3rev_panel_container .wp-color-result{top:0}
63
  .a3rev_panel_container .a3rev-ui-text{width:300px;max-width:70%}
64
  .a3rev_panel_container .a3rev-ui-email{width:300px;max-width:70%}
65
  .a3rev_panel_container .a3rev-ui-number{width:40px;max-width:70%}
66
  .a3rev_panel_container .a3rev-ui-password{width:300px;max-width:70%}
67
  .a3rev_panel_container .a3rev-ui-google_api_key{width:350px;max-width:100%}
68
  .a3rev_panel_container .a3rev-ui-google-api-key-inside{margin-top:10px}
69
+ .a3rev_panel_container .a3rev-ui-google-valid-key-message,.a3rev_panel_container .a3rev-ui-google-unvalid-key-message{display:none}
70
+ .a3rev_panel_container .a3rev-ui-google-valid-key,.a3rev_panel_container .a3rev-ui-google-unvalid-key{padding:10px;box-shadow:0 1px 1px rgba(0,0,0,0.1)}
 
 
71
  .a3rev_panel_container .a3rev-ui-google-valid-key{background-color:#dff0d8;border:1px solid #468847;color:#468847}
72
  .a3rev_panel_container .a3rev-ui-google-unvalid-key{background-color:#ffebe8;border:1px solid #dd3d36;color:#dd3d36}
73
+ .a3rev_panel_container .a3rev-ui-google-valid-key .a3rev-ui-google-valid-key-message,.a3rev_panel_container .a3rev-ui-google-unvalid-key .a3rev-ui-google-unvalid-key-message{display:block}
74
+ .a3rev_panel_container .a3rev-ui-version-checking{display:none;margin-top:6px;background-image:url(../images/loading-bottom.gif);background-repeat:no-repeat;background-size:100% auto;width:16px;height:16px}
 
75
  .a3rev_panel_container .a3rev-ui-check-version-message{font-size:13px}
76
+ .a3rev_panel_container .a3rev-ui-new-version-message,.a3rev_panel_container .a3rev-ui-latest-version-message{padding:8px 10px;box-shadow:0 1px 1px rgba(0,0,0,0.1);margin-top:8px}
 
77
  .a3rev_panel_container .a3rev-ui-latest-version-message{background-color:#dff0d8;border:1px solid #468847;color:#468847}
78
  .a3rev_panel_container .a3rev-ui-new-version-message{background-color:#ffebe8;border:1px solid #dd3d36;color:#dd3d36}
79
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control{margin-bottom:6px}
80
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button{border-radius:5px;border:none;background:#2186fa;color:#fff;font-size:16px;padding:8px 15px;transition:all .5s ease .1s;cursor:pointer;height:40px;box-sizing:border-box;margin-bottom:5px}
81
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button:hover,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button:hover{background:#f4741b}
82
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-button.disabled,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button.disabled{background:#999;cursor:default}
83
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-successed,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-successed{display:none;color:#46b450;font-size:14px;transition:all 1.5s ease .1s;height:40px;box-sizing:border-box}
84
+ .a3rev_panel_container .a3rev-ui-ajax_submit-control .a3rev-ui-ajax_submit-errors,.a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-errors{display:none;color:#dc3232;font-size:14px;transition:all 1.5s ease .1s}
 
 
 
 
 
 
85
  .a3rev_panel_container .a3rev-ui-progress-bar-wrap{background:rgba(0,0,0,0.6) none repeat scroll 0 0;border-radius:6px;box-shadow:0 1px 5px rgba(0,0,0,0.6) inset;display:none;padding:3px;width:100%;max-width:600px;position:relative}
86
+ .a3rev_panel_container .a3rev-ui-progress-inner{animation:progress-bar 1s infinite linear;-ms-animation:progress-bar 1s infinite linear;-moz-animation:progress-bar 1s infinite linear;-webkit-animation:progress-bar 1s infinite linear;background:rgba(0,0,0,0) repeating-linear-gradient(-45deg,#07f,#07f 10px,#c3defd 10px,#c3defd 24px) repeat scroll 0 0 / 68px 68px;border-radius:4px;box-shadow:0 1px 0 rgba(0,0,0,0.75);height:34px;overflow:hidden;transition:width 2s ease .1s;width:0}
87
+ .a3rev_panel_container .a3rev-ui-progressing-text,.a3rev_panel_container .a3rev-ui-completed-text{box-sizing:border-box;color:#fff;display:block;font-size:16px;left:0;top:0;padding:0 10px;position:absolute;text-align:center;text-shadow:0 0 2px #000;width:100%;height:100%;line-height:40px;z-index:1;white-space:nowrap;text-overflow:ellipsis;overflow:hidden}
 
88
  .a3rev_panel_container .a3rev-ui-completed-text{display:none}
89
+ .a3rev_panel_container .a3rev-ui-ajax_multi_submit-control .a3rev-ui-ajax_multi_submit-button{margin-bottom:0}
90
  .a3rev_panel_container .a3rev-ui-statistics-wrap{float:left;width:100%;max-width:600px;margin-top:20px}
91
  .a3rev_panel_container .a3rev-ui-statistic-item{float:left;width:100%;box-sizing:border-box;margin-bottom:30px}
92
+ .a3rev_panel_container .a3rev-ui-pie-wrap{height:80px;width:80px;margin:0 auto 5px;position:relative}
93
  .a3rev_panel_container .a3rev-ui-pie-shadow{border:10px solid #ddd;border-radius:100%;height:100%;width:100%;box-sizing:border-box}
94
  .a3rev_panel_container .a3rev-ui-pie{clip:rect(0px,80px,80px,40px);height:100%;width:100%;position:absolute;left:0;top:0}
95
  .a3rev_panel_container .a3rev-ui-pie.pie-more-50{clip:rect(auto,auto,auto,auto)}
96
  .a3rev_panel_container .a3rev-ui-pie-half-circle{clip:rect(0px,40px,80px,0px);border:10px solid #3498db;border-radius:100%;height:100%;width:100%;position:absolute;left:0;top:0;box-sizing:border-box}
97
  .a3rev_panel_container .a3rev-ui-statistic-text{text-align:center;text-transform:uppercase;color:#777}
98
+ .a3rev_panel_container .a3rev-ui-statistic-separate,.a3rev_panel_container .a3rev-ui-statistic-current-item,.a3rev_panel_container .a3rev-ui-statistic-total-item{color:#000;font-size:25px;margin:0}
 
 
99
  .a3rev_panel_container .a3rev-ui-textarea{width:600px;max-width:70%}
100
  .a3rev_panel_container .a3rev-ui-select{width:160px;max-width:70%}
101
  .a3rev_panel_container .a3rev-ui-multiselect{width:300px;max-width:70%}
102
  .a3rev_panel_container .forminp-radio ul{margin:0}
103
  .a3rev_panel_container .a3rev-ui-image_size-width{width:40px}
104
  .a3rev_panel_container .a3rev-ui-image_size-height{width:40px}
 
105
  .a3rev_panel_container .a3rev-ui-single_select_page{width:300px;max-width:70%}
106
  .a3rev_panel_container .a3rev-ui-settings-preview{display:inline-block}
107
  .a3rev_panel_container .settings-apply-preview{padding:10px;background:#FF0}
108
+ .a3rev_panel_container .settings-preview-container .preview_remove{background:#EEE;border:1px solid #DDD;border-radius:2px 2px 2px 2px;-webkit-border-radius:2px 2px 2px 2px;-moz-border-radius:2px;cursor:pointer;height:10px;padding:2px;position:absolute;right:-10px;top:-10px;width:10px;z-index:99;text-decoration:none!important}
109
+ .a3rev_panel_container .a3rev-ui-settings-preview-button{float:left;margin:0;padding-top:0;height:24px;line-height:24px}
110
  .a3rev_panel_container .settings-preview-container{clear:both;position:relative;margin-top:12px;width:50%}
111
+ .a3rev_panel_container .settings-preview{word-wrap:break-word;clear:both;padding:30px;border:1px solid #CCC;background:#FDFDFD;border-radius:3px;-moz-border-radius:3px;-webkit-border-radius:3px}
112
  .a3rev_panel_container .a3rev-ui-border_styles-width{width:80px}
113
  .a3rev_panel_container .a3rev-ui-border_styles-style{width:80px}
114
  .a3rev_panel_container .forminp-border_corner .desc{margin-bottom:10px!important}
115
  .a3rev_panel_container .forminp-border_corner .iPhoneCheckContainer{margin-right:30px}
116
  .a3rev_panel_container .a3rev-ui-border-corner-value-container{float:left;width:100%}
117
+ .a3rev_panel_container .a3rev-ui-border_corner-top_left,.a3rev_panel_container .a3rev-ui-border_corner-top_right,.a3rev_panel_container .a3rev-ui-border_corner-bottom_left,.a3rev_panel_container .a3rev-ui-border_corner-bottom_right{float:left;width:100%;clear:both;padding-top:5px}
 
 
 
118
  .a3rev_panel_container .a3rev-ui-border_corner-span{float:left;width:140px;margin-bottom:8px}
119
  .a3rev_panel_container .a3rev-ui-border_corner-px{float:left;margin-right:10px}
120
  .a3rev_panel_container .forminp-border_corner .settings-apply-preview{border:1px solid #515151}
121
+ .a3rev_panel_container .forminp-border_corner .iPhoneCheckContainer .iPhoneCheckLabelOff,.a3rev_panel_container .forminp-border_corner .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.6)}
 
122
  .a3rev_panel_container .a3rev-ui-bg_color-enable-container{margin-top:10px}
123
  .a3rev_panel_container .a3rev-ui-box_shadow-h_shadow{width:80px}
124
  .a3rev_panel_container .a3rev-ui-box_shadow-v_shadow{width:80px}
125
  .a3rev_panel_container .a3rev-ui-box_shadow-blur{width:80px}
126
  .a3rev_panel_container .a3rev-ui-box_shadow-spread{width:80px}
127
  .a3rev_panel_container .a3rev-ui-box_shadow-enable-container{margin-top:10px}
128
+ .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iPhoneCheckContainer,.a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iOSCheckContainer{float:none;display:inline-block;margin-top:0;top:-12px;margin-right:0}
129
+ .a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iPhoneCheckContainer .iPhoneCheckLabelOff,.a3rev_panel_container .forminp-box_shadow .a3rev-ui-settings-control .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.6)}
 
 
130
  .a3rev_panel_container .a3rev-ui-upload{width:300px;height:24px}
131
  .a3rev_panel_container .a3rev-ui-slide-container{white-space:nowrap;float:left}
132
  .a3rev_panel_container .a3rev-ui-slide-container-start{padding-left:12px;margin-bottom:15px;margin-right:20px;float:left}
133
  .a3rev_panel_container .a3rev-ui-slide-result-container{float:left;white-space:nowrap}
134
+ .a3rev_panel_container .a3rev-ui-slide{background:#ededed;background:-moz-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#ededed),color-stop(50%,#ededed),color-stop(52%,#f7f6f6),color-stop(100%,#fff));background:-webkit-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-o-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-ms-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:linear-gradient(#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc',endColorstr='#ffffff',GradientType=0);border:1px solid #d0d0d9;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px;height:10px;width:220px;position:relative;float:left;margin-top:4px}
135
+ .a3rev_panel_container .a3rev-ui-slide .ui-slider-handle{background:#569aef;background:-moz-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#bcbcbc),color-stop(50%,#d5d5d5),color-stop(52%,#d8d8d8),color-stop(100%,#efefef));background:-webkit-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-o-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-ms-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:linear-gradient(#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bcbcbc',endColorstr='#efefef',GradientType=0);box-shadow:0 1px 0 0 #FFF inset;-webkit-box-shadow:0 1px 0 0 #FFF inset;border:1px solid #999;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px;position:absolute;z-index:2;width:22px;height:23px;cursor:pointer;font-weight:700;color:#1C94C4;outline:none;top:-8px;margin-left:-11px}
136
+ .a3rev_panel_container .a3rev-ui-slide .ui-slider-range{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #255399;border-radius:3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px;position:absolute;top:-1px;height:100%}
137
  .a3rev_panel_container .a3rev-ui-slider{float:left;width:50px;padding:3px;margin-top:-1px}
138
  .a3rev_panel_container .a3rev-ui-array_textfields{width:40px}
139
  .a3rev_panel_container .forminp-onoff_radio ul{float:left;width:100%;margin:0}
140
  .a3rev_panel_container .forminp-onoff_radio li{float:left;width:100%;padding-top:10px}
141
+ .a3rev_panel_container .forminp-onoff_radio .iPhoneCheckDisabled,.a3rev_panel_container .forminp-onoff_radio .iOSCheckDisabled{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=100);opacity:1}
142
+ .a3rev_panel_container .iPhoneCheckContainer,.a3rev_panel_container .iOSCheckContainer{position:relative;height:25px;cursor:pointer;margin-right:10px;float:left;margin-top:-3px}
143
+ .a3rev_panel_container .iPhoneCheckContainer input,.a3rev_panel_container .iOSCheckContainer input{display:none}
144
+ .a3rev_panel_container .iPhoneCheckContainer label,.a3rev_panel_container .iOSCheckContainer label{white-space:nowrap;font-size:14px;line-height:24px;font-weight:700;font-family:"Helvetica Neue",Arial,Helvetica,sans-serif;cursor:pointer;display:block;position:absolute;width:auto;top:0;overflow:hidden;user-select:none;-moz-user-select:none;-khtml-user-select:none}
145
+ .a3rev_panel_container label.iPhoneCheckLabelOff,.a3rev_panel_container label.iOSCheckLabelOff{background:#ededed;background:-moz-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#ededed),color-stop(50%,#ededed),color-stop(52%,#f7f6f6),color-stop(100%,#fff));background:-webkit-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-o-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:-ms-linear-gradient(top,#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);background:linear-gradient(#dcdcdc 20%,#ededed 50%,#f7f6f6 52%,#fff 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#dcdcdc',endColorstr='#ffffff',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;height:23px;color:#8b8b8b;text-shadow:0 0 2px rgba(255,255,255,0.6);text-align:right;right:0}
146
+ .a3rev_panel_container label.iPhoneCheckLabelOff span,.a3rev_panel_container label.iOSCheckLabelOff span{padding-right:10px;padding-left:0;display:inline-block;text-transform:uppercase}
147
+ .a3rev_panel_container label.iPhoneCheckLabelOn,.a3rev_panel_container label.iOSCheckLabelOn{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;height:23px;text-align:left;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.6);left:0}
148
+ .a3rev_panel_container label.iPhoneCheckLabelOn span,.a3rev_panel_container label.iOSCheckLabelOn span{padding-left:10px;display:inline-block;text-transform:uppercase}
149
+ .a3rev_panel_container .iPhoneCheckHandle,.a3rev_panel_container .iOSCheckHandle{background:#569aef;background:-moz-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#bcbcbc),color-stop(50%,#d5d5d5),color-stop(52%,#d8d8d8),color-stop(100%,#efefef));background:-webkit-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-o-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:-ms-linear-gradient(top,#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);background:linear-gradient(#bcbcbc 20%,#d5d5d5 50%,#d8d8d8 52%,#efefef 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#bcbcbc',endColorstr='#efefef',GradientType=0);box-shadow:0 1px 0 0 #FFF inset;-webkit-box-shadow:0 1px 0 0 #FFF inset;border:1px solid #999;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;display:block;cursor:pointer;position:absolute;top:0;left:-1px;width:35px;height:23px}
150
+ .a3rev_panel_container .iPhoneCheckDisabled,.a3rev_panel_container .iOSCheckDisabled{filter:progid:DXImageTransform.Microsoft.Alpha(Opacity=50);opacity:.5}
151
+ .a3rev_panel_container .forminp-switcher_checkbox .iPhoneCheckContainer .iPhoneCheckLabelOff,.a3rev_panel_container .forminp-switcher_checkbox .iOSCheckContainer .iOSCheckLabelOff{background:#569aef;background:-moz-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-webkit-gradient(linear,0 0,0 100%,color-stop(20%,#468be0),color-stop(50%,#569aef),color-stop(52%,#6aa7f6),color-stop(100%,#82b3f5));background:-webkit-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-o-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:-ms-linear-gradient(top,#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);background:linear-gradient(#468be0 20%,#569aef 50%,#6aa7f6 52%,#82b3f5 100%);filter:progid:DXImageTransform.Microsoft.gradient(startColorstr='#468be0',endColorstr='#82b3f5',GradientType=0);box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);-webkit-box-shadow:0 1px 2px 0 rgba(0,0,0,0.5) inset,0 1px 0 0 rgba(250,250,250,0.5);border:1px solid #666;border-radius:5px;-webkit-border-radius:5px 5px 5px 5px;-moz-border-radius:5px;color:#FFF;text-shadow:0 0 2px rgba(0,0,0,0.6)}
152
+ .a3rev_panel_container .a3rev-ui-time_picker{width:76px;text-align:center;cursor:pointer}
 
 
 
 
 
 
 
 
 
 
153
  .a3rev_panel_container table.form-table th img.help_tip{float:right;margin:0 -12px 0 0}
154
  .a3rev_panel_container table.form-table img.help_tip{cursor:help;line-height:1;margin:-4px 0 0 5px;padding:0;vertical-align:middle}
155
  .subsubsub{white-space:normal}
156
  .subsubsub li{white-space:nowrap}
157
+ .a3-view-docs-button{background-color:#FFFFE0!important;border:1px solid #E6DB55!important;display:inline-block!important;font-weight:400!important;margin:5px 10px 0!important;text-shadow:none!important}
158
  #a3_plugin_premium_video_container{margin-top:10px}
159
+ #a3_plugin_premium_video_container .a3rev_panel_box{margin-bottom:0}
160
  #a3_plugin_premium_video_container .a3-plugin-ui-panel-box{color:#006799;cursor:default}
161
  #a3_plugin_premium_video_container .a3-plugin-ui-panel-box::before{color:#006799;content:"f"}
162
  #a3_plugin_premium_video_container .a3rev_panel_video_box{border-top:1px solid #eee;overflow:hidden;padding:0;position:relative}
163
+ #a3_plugin_premium_video_container .a3rev_panel_box_left_inside,#a3_plugin_premium_video_container .a3rev_panel_box_right_inside{width:calc(50% - 1px);padding:12px 12px 30px;box-sizing:border-box;float:left}
 
164
  #a3_plugin_premium_video_container .a3rev_panel_box_separate{width:1px;height:100%;background-color:#eee;position:absolute;top:0;left:50%;margin-left:-2px}
165
  #a3_plugin_premium_video_container .a3-plugin-premium-image{position:relative;float:left;width:50%;margin-right:15px}
166
  #a3_plugin_premium_video_container .a3-plugin-premium-image img{height:auto;width:100%;float:left}
167
+ #a3_plugin_premium_video_container .a3-plugin-premium-video-play{position:absolute;top:0;left:0;width:100%;height:100%;background-image:url(../images/play_video.png);background-repeat:no-repeat;background-position:center center;background-size:80px auto;background-color:rgba(0,0,0,0.2)}
168
  #a3_plugin_premium_video_container .a3-plugin-video-play:hover{background-color:rgba(0,0,0,0.6)}
169
  #a3_plugin_panel_container{position:relative;margin-top:10px;float:left;width:100%}
170
  #a3_plugin_panel_fields{padding-right:280px}
171
  #a3_plugin_panel_upgrade_area{float:right;padding-left:20px;width:260px;margin-top:10px}
172
+ #a3_plugin_panel_extensions .a3_plugin_panel_extension_box{border:1px solid #E6DB55;color:#555;margin-bottom:17px;padding:5px 10px;background:#fff}
173
  #a3_plugin_panel_extensions img{width:auto;max-width:100%}
174
  .pro_feature_top_message{font-size:11px;text-align:center;margin:10px 0}
175
  .pro_feature_fields{position:relative;border:2px solid #E6DB55;-webkit-border-radius:10px;-moz-border-radius:10px;-o-border-radius:10px;border-radius:10px}
176
  .pro_feature_hidden{display:none!important}
177
+ .a3rev_blue_message_box{margin:0!important;background-color:#F0F8FF;border-color:#CEE1EF;padding:5px 10px;border-radius:3px 3px 3px 3px;-webkit-border-radius:3px 3px 3px 3px;-moz-border-radius:3px;border-style:solid;border-width:1px}
178
+ .a3rev_blue_message_box a{color:red}
179
  .a3rev_panel_container .chosen-container{margin-bottom:5px;margin-right:2px}
180
  .a3-plugin-ui-delete-icon:before{vertical-align:top}
181
  .a3-plugin-ui-icon{color:#46719d;overflow:hidden}
182
  .a3-plugin-ui-a3-rev-logo{font-size:170px;height:125px;margin-top:-30px}
183
  .a3-plugin-ui-help-icon{color:#777;float:right;margin-right:-15px;width:14px;height:14px;cursor:pointer;font-size:12px;margin-top:5px}
184
  .a3-plugin-ui-preview-icon{color:#000;display:block;width:14px;height:16px}
185
+ .a3rev_panel_container .a3rev-ui-typography-preview-button span:before,.a3rev_panel_container .a3rev-ui-settings-preview-button span:before{font-family:"a3-plugin-framework"!important;font-style:normal!important;font-weight:400!important;font-variant:normal!important;text-transform:none!important;speak:none;line-height:1;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;content:"g";width:14px;height:16px;font-size:12px}
186
+ .a3rev_panel_container .a3rev-ui-typography-preview-button span.refresh:before,.a3rev_panel_container .a3rev-ui-settings-preview-button span.refresh:before{content:"h"!important}
187
+ .wf-loading .a3rev_panel_container .typography-preview.current:before,.wf-loading .a3rev_panel_container .settings-preview.current:before{content:"k"!important}
 
 
 
188
  .a3-plugin-ui-delete-icon{font-size:10px;color:#C00}
189
+ @media screen and ( max-width: 1100px ) {
190
+ .a3rev_panel_column .form-table th,.a3rev_panel_column .form-table td{display:block;vertical-align:middle;width:auto}
191
+ .a3rev_panel_column .form-table th{border-bottom:0;padding-bottom:0;padding-top:10px}
192
+ .a3rev_panel_column .form-table td{margin-bottom:0;padding-bottom:6px;padding-left:0;padding-top:4px}
 
193
  }
194
+ @media screen and ( min-width: 783px ) {
195
+ .a3rev_panel_container .chosen-container-multi{min-width:300px}
196
  }
197
+ @media screen and ( max-width: 782px ) {
198
+ #a3_plugin_panel_fields{width:100%}
199
+ #a3_plugin_panel_upgrade_area{display:none}
200
+ .a3rev_panel_container .pro_feature_fields{margin-right:0}
201
+ .a3rev_panel_container input[type="text"],.a3rev_panel_container input[type="email"],.a3rev_panel_container input[type="number"],.a3rev_panel_container input[type="password"]{min-width:50px;width:100%}
202
+ .a3rev_panel_container .a3rev-ui-text{max-width:none;width:100%}
203
+ .a3rev_panel_container .a3rev-ui-textarea{max-width:none!important;width:100%!important}
204
+ .a3rev_panel_container .a3rev-ui-slider{width:50px!important}
205
+ .a3rev_panel_container .typography-preview-container,.a3rev_panel_container .settings-preview-container{width:90%}
206
+ .a3rev_panel_container .a3rev-ui-typography-preview-button:active,.a3rev_panel_container .a3rev-ui-settings-preview-button:active{padding-top:inherit!important}
207
+ .a3rev_panel_container .wp-picker-container input.wp-color-picker[type="text"]{width:75px!important;padding:3px 10px!important}
208
+ .wp-core-ui .button.wp-picker-default{padding:0 8px 1px}
209
+ .a3rev_panel_container input.a3rev-color-picker{margin-top:1px!important}
210
+ .a3rev_panel_container input.wp-picker-default{margin-top:1px!important;padding:2px 8px!important}
211
+ .a3rev_panel_container .chosen-container-multi{width:100%!important}
212
+ .a3rev_blue_message_box_container{width:100%!important}
213
+ .a3-plugin-ui-help-icon{margin-right:0}
214
+ .a3rev_panel_container .a3rev-ui-statistic-item{width:100%!important}
 
 
 
 
 
215
  }
216
+ @media screen and ( max-width: 640px ) {
217
+ .a3rev_panel_container .a3rev_panel_row{display:block}
218
+ .a3rev_panel_container .a3rev_panel_column{display:block;width:100%;padding:0}
219
+ .a3rev_panel_container .a3rev_panel_column:first-child,.a3rev_panel_container .a3rev_panel_column:last-child{padding:0}
 
220
  }
221
+ @media screen and ( max-width: 600px ) {
222
+ #a3_plugin_premium_video_container .a3rev_panel_box_left_inside,#a3_plugin_premium_video_container .a3rev_panel_box_right_inside{width:100%;float:left}
223
+ #a3_plugin_premium_video_container .a3rev_panel_box_separate{width:100%;height:1px;position:relative;margin-left:0;float:left;left:auto;top:auto}
 
224
  }
225
+ @media screen and ( max-width: 480px ) {
226
+ .a3rev_panel_container .a3rev-ui-slide-container-start{margin-top:5px}
227
+ .a3_subsubsub_section .subsubsub{text-align:left}
228
+ .a3rev_panel_container .chosen-container-single{max-width:300px!important}
229
+ #a3_plugin_premium_video_container .a3-plugin-premium-image{width:100%;margin-right:0;margin-bottom:10px}
230
  }
admin/assets/css/jquery.datetimepicker.css ADDED
@@ -0,0 +1,418 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .xdsoft_datetimepicker{
2
+ box-shadow: 0px 5px 15px -5px rgba(0, 0, 0, 0.506);
3
+ background: #FFFFFF;
4
+ border-bottom: 1px solid #BBBBBB;
5
+ border-left: 1px solid #CCCCCC;
6
+ border-right: 1px solid #CCCCCC;
7
+ border-top: 1px solid #CCCCCC;
8
+ color: #333333;
9
+ font-family: "Helvetica Neue", "Helvetica", "Arial", sans-serif;
10
+ padding: 8px;
11
+ padding-left: 0px;
12
+ padding-top: 2px;
13
+ position: absolute;
14
+ z-index: 9999;
15
+ -moz-box-sizing: border-box;
16
+ box-sizing: border-box;
17
+ display:none;
18
+ }
19
+
20
+ .xdsoft_datetimepicker iframe {
21
+ position: absolute;
22
+ left: 0;
23
+ top: 0;
24
+ width: 75px;
25
+ height: 210px;
26
+ background: transparent;
27
+ border:none;
28
+ }
29
+ /*For IE8 or lower*/
30
+ .xdsoft_datetimepicker button {
31
+ border:none !important;
32
+ }
33
+
34
+ .xdsoft_noselect{
35
+ -webkit-touch-callout: none;
36
+ -webkit-user-select: none;
37
+ -khtml-user-select: none;
38
+ -moz-user-select: none;
39
+ -ms-user-select: none;
40
+ -o-user-select: none;
41
+ user-select: none;
42
+ }
43
+ .xdsoft_noselect::selection { background: transparent; }
44
+ .xdsoft_noselect::-moz-selection { background: transparent; }
45
+ .xdsoft_datetimepicker.xdsoft_inline{
46
+ display: inline-block;
47
+ position: static;
48
+ box-shadow: none;
49
+ }
50
+ .xdsoft_datetimepicker *{
51
+ -moz-box-sizing: border-box;
52
+ box-sizing: border-box;
53
+ padding:0px;
54
+ margin:0px;
55
+ }
56
+ .xdsoft_datetimepicker .xdsoft_datepicker, .xdsoft_datetimepicker .xdsoft_timepicker{
57
+ display:none;
58
+ }
59
+ .xdsoft_datetimepicker .xdsoft_datepicker.active, .xdsoft_datetimepicker .xdsoft_timepicker.active{
60
+ display:block;
61
+ }
62
+ .xdsoft_datetimepicker .xdsoft_datepicker{
63
+ width: 224px;
64
+ float:left;
65
+ margin-left:8px;
66
+ }
67
+ .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_datepicker{
68
+ width: 256px;
69
+ }
70
+ .xdsoft_datetimepicker .xdsoft_timepicker{
71
+ width: 58px;
72
+ float:left;
73
+ text-align:center;
74
+ margin-left:8px;
75
+ margin-top:0px;
76
+ }
77
+ .xdsoft_datetimepicker .xdsoft_datepicker.active+.xdsoft_timepicker{
78
+ margin-top:8px;
79
+ margin-bottom:3px
80
+ }
81
+ .xdsoft_datetimepicker .xdsoft_mounthpicker{
82
+ position: relative;
83
+ text-align: center;
84
+ }
85
+
86
+ .xdsoft_datetimepicker .xdsoft_label i,
87
+ .xdsoft_datetimepicker .xdsoft_prev,
88
+ .xdsoft_datetimepicker .xdsoft_next,
89
+ .xdsoft_datetimepicker .xdsoft_today_button{
90
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6Q0NBRjI1NjM0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6Q0NBRjI1NjQ0M0UwMTFFNDk4NkFGMzJFQkQzQjEwRUIiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpDQ0FGMjU2MTQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpDQ0FGMjU2MjQzRTAxMUU0OTg2QUYzMkVCRDNCMTBFQiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/PoNEP54AAAIOSURBVHja7Jq9TsMwEMcxrZD4WpBYeKUCe+kTMCACHZh4BFfHO/AAIHZGFhYkBBsSEqxsLCAgXKhbXYOTxh9pfJVP+qutnZ5s/5Lz2Y5I03QhWji2GIcgAokWgfCxNvcOCCGKqiSqhUp0laHOne05vdEyGMfkdxJDVjgwDlEQgYQBgx+ULJaWSXXS6r/ER5FBVR8VfGftTKcITNs+a1XpcFoExREIDF14AVIFxgQUS+h520cdud6wNkC0UBw6BCO/HoCYwBhD8QCkQ/x1mwDyD4plh4D6DDV0TAGyo4HcawLIBBSLDkHeH0Mg2yVP3l4TQMZQDDsEOl/MgHQqhMNuE0D+oBh0CIr8MAKyazBH9WyBuKxDWgbXfjNf32TZ1KWm/Ap1oSk/R53UtQ5xTh3LUlMmT8gt6g51Q9p+SobxgJQ/qmsfZhWywGFSl0yBjCLJCMgXail3b7+rumdVJ2YRss4cN+r6qAHDkPWjPjdJCF4n9RmAD/V9A/Wp4NQassDjwlB6XBiCxcJQWmZZb8THFilfy/lfrTvLghq2TqTHrRMTKNJ0sIhdo15RT+RpyWwFdY96UZ/LdQKBGjcXpcc1AlSFEfLmouD+1knuxBDUVrvOBmoOC/rEcN7OQxKVeJTCiAdUzUJhA2Oez9QTkp72OTVcxDcXY8iKNkxGAJXmJCOQwOa6dhyXsOa6XwEGAKdeb5ET3rQdAAAAAElFTkSuQmCC);
91
+ }
92
+
93
+ .xdsoft_datetimepicker .xdsoft_label i{
94
+ opacity:0.5;
95
+ background-position:-92px -19px;
96
+ display: inline-block;
97
+ width: 9px;
98
+ height: 20px;
99
+ vertical-align: middle;
100
+ }
101
+
102
+ .xdsoft_datetimepicker .xdsoft_prev{
103
+ float: left;
104
+ background-position:-20px 0px;
105
+ }
106
+ .xdsoft_datetimepicker .xdsoft_today_button{
107
+ float: left;
108
+ background-position:-70px 0px;
109
+ margin-left:5px;
110
+ }
111
+
112
+ .xdsoft_datetimepicker .xdsoft_next{
113
+ float: right;
114
+ background-position:0px 0px;
115
+ }
116
+
117
+ .xdsoft_datetimepicker .xdsoft_next,
118
+ .xdsoft_datetimepicker .xdsoft_prev ,
119
+ .xdsoft_datetimepicker .xdsoft_today_button{
120
+ background-color: transparent;
121
+ background-repeat: no-repeat;
122
+ border: 0px none currentColor;
123
+ cursor: pointer;
124
+ display: block;
125
+ height: 30px;
126
+ opacity: 0.5;
127
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
128
+ outline: medium none currentColor;
129
+ overflow: hidden;
130
+ padding: 0px;
131
+ position: relative;
132
+ text-indent: 100%;
133
+ white-space: nowrap;
134
+ width: 20px;
135
+ }
136
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev,
137
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_next{
138
+ float:none;
139
+ background-position:-40px -15px;
140
+ height: 15px;
141
+ width: 30px;
142
+ display: block;
143
+ margin-left:14px;
144
+ margin-top:7px;
145
+ }
146
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_prev{
147
+ background-position:-40px 0px;
148
+ margin-bottom:7px;
149
+ margin-top:0px;
150
+ }
151
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box{
152
+ height:151px;
153
+ overflow:hidden;
154
+ border-bottom:1px solid #DDDDDD;
155
+ }
156
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div{
157
+ background: #F5F5F5;
158
+ border-top:1px solid #DDDDDD;
159
+ color: #666666;
160
+ font-size: 12px;
161
+ text-align: center;
162
+ border-collapse:collapse;
163
+ cursor:pointer;
164
+ border-bottom-width:0px;
165
+ height:25px;
166
+ line-height:25px;
167
+ }
168
+
169
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div > div:first-child{
170
+ border-top-width:0px;
171
+ }
172
+ .xdsoft_datetimepicker .xdsoft_today_button:hover,
173
+ .xdsoft_datetimepicker .xdsoft_next:hover,
174
+ .xdsoft_datetimepicker .xdsoft_prev:hover {
175
+ opacity: 1;
176
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=100)";
177
+ }
178
+ .xdsoft_datetimepicker .xdsoft_label{
179
+ display: inline;
180
+ position: relative;
181
+ z-index: 9999;
182
+ margin: 0;
183
+ padding: 5px 3px;
184
+ font-size: 14px;
185
+ line-height: 20px;
186
+ font-weight: bold;
187
+ background-color: #fff;
188
+ float:left;
189
+ width:182px;
190
+ text-align:center;
191
+ cursor:pointer;
192
+ }
193
+ .xdsoft_datetimepicker .xdsoft_label:hover>span{
194
+ text-decoration:underline;
195
+ }
196
+ .xdsoft_datetimepicker .xdsoft_label:hover i{
197
+ opacity:1.0;
198
+ }
199
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select{
200
+ border:1px solid #ccc;
201
+ position:absolute;
202
+ right:0px;
203
+ top:30px;
204
+ z-index:101;
205
+ display:none;
206
+ background:#fff;
207
+ max-height:160px;
208
+ overflow-y:hidden;
209
+ }
210
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_monthselect{right:-7px;}
211
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select.xdsoft_yearselect{right:2px;}
212
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
213
+ color: #fff;
214
+ background: #ff8000;
215
+ }
216
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option{
217
+ padding:2px 10px 2px 5px;
218
+ text-decoration:none !important;
219
+ }
220
+ .xdsoft_datetimepicker .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
221
+ background: #33AAFF;
222
+ box-shadow: #178FE5 0px 1px 3px 0px inset;
223
+ color:#fff;
224
+ font-weight: 700;
225
+ }
226
+ .xdsoft_datetimepicker .xdsoft_month{
227
+ width:100px;
228
+ text-align:right;
229
+ }
230
+ .xdsoft_datetimepicker .xdsoft_calendar{
231
+ clear:both;
232
+ }
233
+ .xdsoft_datetimepicker .xdsoft_year{
234
+ width: 48px;
235
+ margin-left: 5px;
236
+ }
237
+ .xdsoft_datetimepicker .xdsoft_calendar table{
238
+ border-collapse:collapse;
239
+ width:100%;
240
+
241
+ }
242
+ .xdsoft_datetimepicker .xdsoft_calendar td > div{
243
+ padding-right:5px;
244
+ }
245
+ .xdsoft_datetimepicker .xdsoft_calendar th{
246
+ height: 25px;
247
+ }
248
+ .xdsoft_datetimepicker .xdsoft_calendar td,.xdsoft_datetimepicker .xdsoft_calendar th{
249
+ width:14.2857142%;
250
+ background: #F5F5F5;
251
+ border:1px solid #DDDDDD;
252
+ color: #666666;
253
+ font-size: 12px;
254
+ text-align: right;
255
+ vertical-align: middle;
256
+ padding:0px;
257
+ border-collapse:collapse;
258
+ cursor:pointer;
259
+ height: 25px;
260
+ }
261
+ .xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar td,.xdsoft_datetimepicker.xdsoft_showweeks .xdsoft_calendar th{
262
+ width:12.5%;
263
+ }
264
+ .xdsoft_datetimepicker .xdsoft_calendar th{
265
+ background: #F1F1F1;
266
+ }
267
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_today{
268
+ color:#33AAFF;
269
+ }
270
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_default,
271
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_current,
272
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
273
+ background: #33AAFF;
274
+ box-shadow: #178FE5 0px 1px 3px 0px inset;
275
+ color:#fff;
276
+ font-weight: 700;
277
+ }
278
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month,
279
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled,
280
+ .xdsoft_datetimepicker .xdsoft_time_box >div >div.xdsoft_disabled{
281
+ opacity:0.5;
282
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=50)";
283
+ }
284
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_other_month.xdsoft_disabled{
285
+ opacity:0.2;
286
+ -ms-filter: "progid:DXImageTransform.Microsoft.Alpha(Opacity=20)";
287
+ }
288
+ .xdsoft_datetimepicker .xdsoft_calendar td:hover,
289
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
290
+ color: #fff !important;
291
+ background: #ff8000 !important;
292
+ box-shadow: none !important;
293
+ }
294
+ .xdsoft_datetimepicker .xdsoft_calendar td.xdsoft_disabled:hover,
295
+ .xdsoft_datetimepicker .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_disabled:hover{
296
+ color: inherit !important;
297
+ background: inherit !important;
298
+ box-shadow: inherit !important;
299
+ }
300
+ .xdsoft_datetimepicker .xdsoft_calendar th{
301
+ font-weight: 700;
302
+ text-align: center;
303
+ color: #999;
304
+ cursor:default;
305
+ }
306
+ .xdsoft_datetimepicker .xdsoft_copyright{ color:#ccc !important; font-size:10px;clear:both;float:none;margin-left:8px;}
307
+ .xdsoft_datetimepicker .xdsoft_copyright a{ color:#eee !important;}
308
+ .xdsoft_datetimepicker .xdsoft_copyright a:hover{ color:#aaa !important;}
309
+
310
+
311
+ .xdsoft_time_box{
312
+ position:relative;
313
+ border:1px solid #ccc;
314
+ }
315
+ .xdsoft_scrollbar >.xdsoft_scroller{
316
+ background:#ccc !important;
317
+ height:20px;
318
+ border-radius:3px;
319
+ }
320
+ .xdsoft_scrollbar{
321
+ position:absolute;
322
+ width:7px;
323
+ right:0px;
324
+ top:0px;
325
+ bottom:0px;
326
+ cursor:pointer;
327
+ }
328
+ .xdsoft_scroller_box{
329
+ position:relative;
330
+ }
331
+
332
+
333
+ .xdsoft_datetimepicker.xdsoft_dark{
334
+ box-shadow: 0px 5px 15px -5px rgba(255, 255, 255, 0.506);
335
+ background: #000000;
336
+ border-bottom: 1px solid #444444;
337
+ border-left: 1px solid #333333;
338
+ border-right: 1px solid #333333;
339
+ border-top: 1px solid #333333;
340
+ color: #cccccc;
341
+ }
342
+
343
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box{
344
+ border-bottom:1px solid #222222;
345
+ }
346
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div{
347
+ background: #0a0a0a;
348
+ border-top:1px solid #222222;
349
+ color: #999999;
350
+ }
351
+
352
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label{
353
+ background-color: #000;
354
+ }
355
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select{
356
+ border:1px solid #333;
357
+ background:#000;
358
+ }
359
+
360
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option:hover{
361
+ color: #000;
362
+ background: #007fff;
363
+ }
364
+
365
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label > .xdsoft_select > div > .xdsoft_option.xdsoft_current{
366
+ background: #cc5500;
367
+ box-shadow: #b03e00 0px 1px 3px 0px inset;
368
+ color:#000;
369
+ }
370
+
371
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_label i,
372
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_prev,
373
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_next,
374
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_today_button{
375
+ background-image: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAGQAAAAeCAYAAADaW7vzAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAAyJpVFh0WE1MOmNvbS5hZG9iZS54bXAAAAAAADw/eHBhY2tldCBiZWdpbj0i77u/IiBpZD0iVzVNME1wQ2VoaUh6cmVTek5UY3prYzlkIj8+IDx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IkFkb2JlIFhNUCBDb3JlIDUuMy1jMDExIDY2LjE0NTY2MSwgMjAxMi8wMi8wNi0xNDo1NjoyNyAgICAgICAgIj4gPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyLzIyLXJkZi1zeW50YXgtbnMjIj4gPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIgeG1sbnM6eG1wPSJodHRwOi8vbnMuYWRvYmUuY29tL3hhcC8xLjAvIiB4bWxuczp4bXBNTT0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wL21tLyIgeG1sbnM6c3RSZWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20veGFwLzEuMC9zVHlwZS9SZXNvdXJjZVJlZiMiIHhtcDpDcmVhdG9yVG9vbD0iQWRvYmUgUGhvdG9zaG9wIENTNiAoV2luZG93cykiIHhtcE1NOkluc3RhbmNlSUQ9InhtcC5paWQ6QUExQUUzOTA0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiIHhtcE1NOkRvY3VtZW50SUQ9InhtcC5kaWQ6QUExQUUzOTE0M0UyMTFFNDlBM0FFQTJENTExRDVBODYiPiA8eG1wTU06RGVyaXZlZEZyb20gc3RSZWY6aW5zdGFuY2VJRD0ieG1wLmlpZDpBQTFBRTM4RTQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIgc3RSZWY6ZG9jdW1lbnRJRD0ieG1wLmRpZDpBQTFBRTM4RjQzRTIxMUU0OUEzQUVBMkQ1MTFENUE4NiIvPiA8L3JkZjpEZXNjcmlwdGlvbj4gPC9yZGY6UkRGPiA8L3g6eG1wbWV0YT4gPD94cGFja2V0IGVuZD0iciI/Pp0VxGEAAAIASURBVHja7JrNSgMxEMebtgh+3MSLr1T1Xn2CHoSKB08+QmR8Bx9A8e7RixdB9CKCoNdexIugxFlJa7rNZneTbLIpM/CnNLsdMvNjM8l0mRCiQ9Ye61IKCAgZAUnH+mU3MMZaHYChBnJUDzWOFZdVfc5+ZFLbrWDeXPwbxIqrLLfaeS0hEBVGIRQCEiZoHQwtlGSByCCdYBl8g8egTTAWoKQMRBRBcZxYlhzhKegqMOageErsCHVkk3hXIFooDgHB1KkHIHVgzKB4ADJQ/A1jAFmAYhkQqA5TOBtocrKrgXwQA8gcFIuAIO8sQSA7hidvPwaQGZSaAYHOUWJABhWWw2EMIH9QagQERU4SArJXo0ZZL18uvaxejXt/Em8xjVBXmvFr1KVm/AJ10tRe2XnraNqaJvKE3KHuUbfK1E+VHB0q40/y3sdQSxY4FHWeKJCunP8UyDdqJZenT3ntVV5jIYCAh20vT7ioP8tpf6E2lfEMwERe+whV1MHjwZB7PBiCxcGQWwKZKD62lfGNnP/1poFAA60T7rF1UgcKd2id3KDeUS+oLWV8DfWAepOfq00CgQabi9zjcgJVYVD7PVzQUAUGAQkbNJTBICDhgwYTjDYD6XeW08ZKh+A4pYkzenOxXUbvZcWz7E8ykRMnIHGX1XPl+1m2vPYpL+2qdb8CDAARlKFEz/ZVkAAAAABJRU5ErkJggg==);
376
+ }
377
+
378
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td,
379
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
380
+ background: #0a0a0a;
381
+ border:1px solid #222222;
382
+ color: #999999;
383
+ }
384
+
385
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
386
+ background: #0e0e0e;
387
+ }
388
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_today{
389
+ color:#cc5500;
390
+ }
391
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_default,
392
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td.xdsoft_current,
393
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div.xdsoft_current{
394
+ background: #cc5500;
395
+ box-shadow: #b03e00 0px 1px 3px 0px inset;
396
+ color:#000;
397
+ }
398
+
399
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar td:hover,
400
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_timepicker .xdsoft_time_box >div >div:hover{
401
+ color: #000 !important;
402
+ background: #007fff !important;
403
+ }
404
+
405
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_calendar th{
406
+ color: #666;
407
+ }
408
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright{ color:#333 !important;}
409
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a{ color:#111 !important;}
410
+ .xdsoft_datetimepicker.xdsoft_dark .xdsoft_copyright a:hover{ color:#555 !important;}
411
+
412
+
413
+ .xdsoft_dark .xdsoft_time_box{
414
+ border:1px solid #333;
415
+ }
416
+ .xdsoft_dark .xdsoft_scrollbar >.xdsoft_scroller{
417
+ background:#333 !important;
418
+ }
admin/assets/js/admin-ui-script.js CHANGED
@@ -195,6 +195,39 @@
195
  "fadeOut" : 50
196
  });
197
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
198
  /* Apply Sub tab selected script */
199
  $('div.a3_subsubsub_section ul.subsubsub li a:eq(0)').addClass('current');
200
  $('div.a3_subsubsub_section .section:gt(0)').hide();
195
  "fadeOut" : 50
196
  });
197
 
198
+ /* Apply Time Picker */
199
+ $('.a3rev_panel_container input.a3rev-ui-time_picker').each(function(i){
200
+ current_value = $(this).val();
201
+ step = 60;
202
+ time_min = false;
203
+ time_max = false;
204
+ time_allow = [];
205
+
206
+ if( typeof $(this).data('time_step') != undefined ) {
207
+ step = $(this).data('time_step');
208
+ }
209
+ if( typeof $(this).data('time_min') != undefined ) {
210
+ time_min = $(this).data('time_min');
211
+ }
212
+ if( typeof $(this).data('time_max') != undefined ) {
213
+ time_max = $(this).data('time_max');
214
+ }
215
+ if( typeof $(this).data('time_allow') != undefined ) {
216
+ time_allow = $(this).data('time_allow');
217
+ }
218
+
219
+ $(this).datetimepicker({
220
+ datepicker: false,
221
+ format: 'H:i',
222
+ value: current_value,
223
+ step: step,
224
+ minTime: time_min,
225
+ maxTime: time_max,
226
+ allowTimes: time_allow
227
+ });
228
+
229
+ });
230
+
231
  /* Apply Sub tab selected script */
232
  $('div.a3_subsubsub_section ul.subsubsub li a:eq(0)').addClass('current');
233
  $('div.a3_subsubsub_section .section:gt(0)').hide();
admin/assets/js/datetimepicker/jquery.datetimepicker.js ADDED
@@ -0,0 +1,1642 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ /**
2
+ * @preserve jQuery DateTimePicker plugin v2.3.8
3
+ * @homepage http://xdsoft.net/jqplugins/datetimepicker/
4
+ * (c) 2014, Chupurnov Valeriy.
5
+ */
6
+ (function ($) {
7
+ 'use strict';
8
+ var default_options = {
9
+ i18n: {
10
+ ar: { // Arabic
11
+ months: [
12
+ "كانون الثاني", "شباط", "آذار", "نيسان", "مايو", "حزيران", "تموز", "آب", "أيلول", "تشرين الأول", "تشرين الثاني", "كانون الأول"
13
+ ],
14
+ dayOfWeek: [
15
+ "ن", "ث", "ع", "خ", "ج", "س", "ح"
16
+ ]
17
+ },
18
+ ro: { // Romanian
19
+ months: [
20
+ "ianuarie", "februarie", "martie", "aprilie", "mai", "iunie", "iulie", "august", "septembrie", "octombrie", "noiembrie", "decembrie"
21
+ ],
22
+ dayOfWeek: [
23
+ "l", "ma", "mi", "j", "v", "s", "d"
24
+ ]
25
+ },
26
+ id: { // Indonesian
27
+ months: [
28
+ "Januari", "Februari", "Maret", "April", "Mei", "Juni", "Juli", "Agustus", "September", "Oktober", "November", "Desember"
29
+ ],
30
+ dayOfWeek: [
31
+ "Sen", "Sel", "Rab", "Kam", "Jum", "Sab", "Min"
32
+ ]
33
+ },
34
+ bg: { // Bulgarian
35
+ months: [
36
+ "Януари", "Февруари", "Март", "Април", "Май", "Юни", "Юли", "Август", "Септември", "Октомври", "Ноември", "Декември"
37
+ ],
38
+ dayOfWeek: [
39
+ "Нд", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
40
+ ]
41
+ },
42
+ fa: { // Persian/Farsi
43
+ months: [
44
+ 'فروردین', 'اردیبهشت', 'خرداد', 'تیر', 'مرداد', 'شهریور', 'مهر', 'آبان', 'آذر', 'دی', 'بهمن', 'اسفند'
45
+ ],
46
+ dayOfWeek: [
47
+ 'یکشنبه', 'دوشنبه', 'سه شنبه', 'چهارشنبه', 'پنجشنبه', 'جمعه', 'شنبه'
48
+ ]
49
+ },
50
+ ru: { // Russian
51
+ months: [
52
+ 'Январь', 'Февраль', 'Март', 'Апрель', 'Май', 'Июнь', 'Июль', 'Август', 'Сентябрь', 'Октябрь', 'Ноябрь', 'Декабрь'
53
+ ],
54
+ dayOfWeek: [
55
+ "Вск", "Пн", "Вт", "Ср", "Чт", "Пт", "Сб"
56
+ ]
57
+ },
58
+ uk: { // Ukrainian
59
+ months: [
60
+ 'Січень', 'Лютий', 'Березень', 'Квітень', 'Травень', 'Червень', 'Липень', 'Серпень', 'Вересень', 'Жовтень', 'Листопад', 'Грудень'
61
+ ],
62
+ dayOfWeek: [
63
+ "Ндл", "Пнд", "Втр", "Срд", "Чтв", "Птн", "Сбт"
64
+ ]
65
+ },
66
+ en: { // English
67
+ months: [
68
+ "January", "February", "March", "April", "May", "June", "July", "August", "September", "October", "November", "December"
69
+ ],
70
+ dayOfWeek: [
71
+ "Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"
72
+ ]
73
+ },
74
+ el: { // Ελληνικά
75
+ months: [
76
+ "Ιανουάριος", "Φεβρουάριος", "Μάρτιος", "Απρίλιος", "Μάιος", "Ιούνιος", "Ιούλιος", "Αύγουστος", "Σεπτέμβριος", "Οκτώβριος", "Νοέμβριος", "Δεκέμβριος"
77
+ ],
78
+ dayOfWeek: [
79
+ "Κυρ", "Δευ", "Τρι", "Τετ", "Πεμ", "Παρ", "Σαβ"
80
+ ]
81
+ },
82
+ de: { // German
83
+ months: [
84
+ 'Januar', 'Februar', 'März', 'April', 'Mai', 'Juni', 'Juli', 'August', 'September', 'Oktober', 'November', 'Dezember'
85
+ ],
86
+ dayOfWeek: [
87
+ "So", "Mo", "Di", "Mi", "Do", "Fr", "Sa"
88
+ ]
89
+ },
90
+ nl: { // Dutch
91
+ months: [
92
+ "januari", "februari", "maart", "april", "mei", "juni", "juli", "augustus", "september", "oktober", "november", "december"
93
+ ],
94
+ dayOfWeek: [
95
+ "zo", "ma", "di", "wo", "do", "vr", "za"
96
+ ]
97
+ },
98
+ tr: { // Turkish
99
+ months: [
100
+ "Ocak", "Şubat", "Mart", "Nisan", "Mayıs", "Haziran", "Temmuz", "Ağustos", "Eylül", "Ekim", "Kasım", "Aralık"
101
+ ],
102
+ dayOfWeek: [
103
+ "Paz", "Pts", "Sal", "Çar", "Per", "Cum", "Cts"
104
+ ]
105
+ },
106
+ fr: { //French
107
+ months: [
108
+ "Janvier", "Février", "Mars", "Avril", "Mai", "Juin", "Juillet", "Août", "Septembre", "Octobre", "Novembre", "Décembre"
109
+ ],
110
+ dayOfWeek: [
111
+ "Dim", "Lun", "Mar", "Mer", "Jeu", "Ven", "Sam"
112
+ ]
113
+ },
114
+ es: { // Spanish
115
+ months: [
116
+ "Enero", "Febrero", "Marzo", "Abril", "Mayo", "Junio", "Julio", "Agosto", "Septiembre", "Octubre", "Noviembre", "Diciembre"
117
+ ],
118
+ dayOfWeek: [
119
+ "Dom", "Lun", "Mar", "Mié", "Jue", "Vie", "Sáb"
120
+ ]
121
+ },
122
+ th: { // Thai
123
+ months: [
124
+ 'มกราคม', 'กุมภาพันธ์', 'มีนาคม', 'เมษายน', 'พฤษภาคม', 'มิถุนายน', 'กรกฎาคม', 'สิงหาคม', 'กันยายน', 'ตุลาคม', 'พฤศจิกายน', 'ธันวาคม'
125
+ ],
126
+ dayOfWeek: [
127
+ 'อา.', 'จ.', 'อ.', 'พ.', 'พฤ.', 'ศ.', 'ส.'
128
+ ]
129
+ },
130
+ pl: { // Polish
131
+ months: [
132
+ "styczeń", "luty", "marzec", "kwiecień", "maj", "czerwiec", "lipiec", "sierpień", "wrzesień", "październik", "listopad", "grudzień"
133
+ ],
134
+ dayOfWeek: [
135
+ "nd", "pn", "wt", "śr", "cz", "pt", "sb"
136
+ ]
137
+ },
138
+ pt: { // Portuguese
139
+ months: [
140
+ "Janeiro", "Fevereiro", "Março", "Abril", "Maio", "Junho", "Julho", "Agosto", "Setembro", "Outubro", "Novembro", "Dezembro"
141
+ ],
142
+ dayOfWeek: [
143
+ "Dom", "Seg", "Ter", "Qua", "Qui", "Sex", "Sab"
144
+ ]
145
+ },
146
+ ch: { // Simplified Chinese
147
+ months: [
148
+ "一月", "二月", "三月", "四月", "五月", "六月", "七月", "八月", "九月", "十月", "十一月", "十二月"
149
+ ],
150
+ dayOfWeek: [
151
+ "日", "一", "二", "三", "四", "五", "六"
152
+ ]
153
+ },
154
+ se: { // Swedish
155
+ months: [
156
+ "Januari", "Februari", "Mars", "April", "Maj", "Juni", "Juli", "Augusti", "September", "Oktober", "November", "December"
157
+ ],
158
+ dayOfWeek: [
159
+ "Sön", "Mån", "Tis", "Ons", "Tor", "Fre", "Lör"
160
+ ]
161
+ },
162
+ kr: { // Korean
163
+ months: [
164
+ "1월", "2월", "3월", "4월", "5월", "6월", "7월", "8월", "9월", "10월", "11월", "12월"
165
+ ],
166
+ dayOfWeek: [
167
+ "일", "월", "화", "수", "목", "금", "토"
168
+ ]
169
+ },
170
+ it: { // Italian
171
+ months: [
172
+ "Gennaio", "Febbraio", "Marzo", "Aprile", "Maggio", "Giugno", "Luglio", "Agosto", "Settembre", "Ottobre", "Novembre", "Dicembre"
173
+ ],
174
+ dayOfWeek: [
175
+ "Dom", "Lun", "Mar", "Mer", "Gio", "Ven", "Sab"
176
+ ]
177
+ },
178
+ da: { // Dansk
179
+ months: [
180
+ "January", "Februar", "Marts", "April", "Maj", "Juni", "July", "August", "September", "Oktober", "November", "December"
181
+ ],
182
+ dayOfWeek: [
183
+ "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
184
+ ]
185
+ },
186
+ no: { // Norwegian
187
+ months: [
188
+ "Januar", "Februar", "Mars", "April", "Mai", "Juni", "Juli", "August", "September", "Oktober", "November", "Desember"
189
+ ],
190
+ dayOfWeek: [
191
+ "Søn", "Man", "Tir", "Ons", "Tor", "Fre", "Lør"
192
+ ]
193
+ },
194
+ ja: { // Japanese
195
+ months: [
196
+ "1月", "2月", "3月", "4月", "5月", "6月", "7月", "8月", "9月", "10月", "11月", "12月"
197
+ ],
198
+ dayOfWeek: [
199
+ "日", "月", "火", "水", "木", "金", "土"
200
+ ]
201
+ },
202
+ vi: { // Vietnamese
203
+ months: [
204
+ "Tháng 1", "Tháng 2", "Tháng 3", "Tháng 4", "Tháng 5", "Tháng 6", "Tháng 7", "Tháng 8", "Tháng 9", "Tháng 10", "Tháng 11", "Tháng 12"
205
+ ],
206
+ dayOfWeek: [
207
+ "CN", "T2", "T3", "T4", "T5", "T6", "T7"
208
+ ]
209
+ },
210
+ sl: { // Slovenščina
211
+ months: [
212
+ "Januar", "Februar", "Marec", "April", "Maj", "Junij", "Julij", "Avgust", "September", "Oktober", "November", "December"
213
+ ],
214
+ dayOfWeek: [
215
+ "Ned", "Pon", "Tor", "Sre", "Čet", "Pet", "Sob"
216
+ ]
217
+ },
218
+ cs: { // Čeština
219
+ months: [
220
+ "Leden", "Únor", "Březen", "Duben", "Květen", "Červen", "Červenec", "Srpen", "Září", "Říjen", "Listopad", "Prosinec"
221
+ ],
222
+ dayOfWeek: [
223
+ "Ne", "Po", "Út", "St", "Čt", "Pá", "So"
224
+ ]
225
+ },
226
+ hu: { // Hungarian
227
+ months: [
228
+ "Január", "Február", "Március", "Április", "Május", "Június", "Július", "Augusztus", "Szeptember", "Október", "November", "December"
229
+ ],
230
+ dayOfWeek: [
231
+ "Va", "Hé", "Ke", "Sze", "Cs", "Pé", "Szo"
232
+ ]
233
+ }
234
+ },
235
+ value: '',
236
+ lang: 'en',
237
+
238
+ format: 'Y/m/d H:i',
239
+ formatTime: 'H:i',
240
+ formatDate: 'Y/m/d',
241
+
242
+ startDate: false, // new Date(), '1986/12/08', '-1970/01/05','-1970/01/05',
243
+ step: 60,
244
+ monthChangeSpinner: true,
245
+
246
+ closeOnDateSelect: false,
247
+ closeOnWithoutClick: true,
248
+ closeOnInputClick: true,
249
+
250
+ timepicker: true,
251
+ datepicker: true,
252
+ weeks: false,
253
+
254
+ defaultTime: false, // use formatTime format (ex. '10:00' for formatTime: 'H:i')
255
+ defaultDate: false, // use formatDate format (ex new Date() or '1986/12/08' or '-1970/01/05' or '-1970/01/05')
256
+
257
+ minDate: false,
258
+ maxDate: false,
259
+ minTime: false,
260
+ maxTime: false,
261
+
262
+ allowTimes: [],
263
+ opened: false,
264
+ initTime: true,
265
+ inline: false,
266
+ theme: '',
267
+
268
+ onSelectDate: function () {},
269
+ onSelectTime: function () {},
270
+ onChangeMonth: function () {},
271
+ onChangeYear: function () {},
272
+ onChangeDateTime: function () {},
273
+ onShow: function () {},
274
+ onClose: function () {},
275
+ onGenerate: function () {},
276
+
277
+ withoutCopyright: true,
278
+ inverseButton: false,
279
+ hours12: false,
280
+ next: 'xdsoft_next',
281
+ prev : 'xdsoft_prev',
282
+ dayOfWeekStart: 0,
283
+ parentID: 'body',
284
+ timeHeightInTimePicker: 25,
285
+ timepickerScrollbar: true,
286
+ todayButton: true,
287
+ defaultSelect: true,
288
+
289
+ scrollMonth: true,
290
+ scrollTime: true,
291
+ scrollInput: true,
292
+
293
+ lazyInit: false,
294
+ mask: false,
295
+ validateOnBlur: true,
296
+ allowBlank: true,
297
+ yearStart: 1950,
298
+ yearEnd: 2050,
299
+ style: '',
300
+ id: '',
301
+ fixed: false,
302
+ roundTime: 'round', // ceil, floor
303
+ className: '',
304
+ weekends: [],
305
+ yearOffset: 0,
306
+ beforeShowDay: null
307
+ };
308
+ // fix for ie8
309
+ if (!Array.prototype.indexOf) {
310
+ Array.prototype.indexOf = function (obj, start) {
311
+ var i, j;
312
+ for (i = (start || 0), j = this.length; i < j; i += 1) {
313
+ if (this[i] === obj) { return i; }
314
+ }
315
+ return -1;
316
+ };
317
+ }
318
+ Date.prototype.countDaysInMonth = function () {
319
+ return new Date(this.getFullYear(), this.getMonth() + 1, 0).getDate();
320
+ };
321
+ $.fn.xdsoftScroller = function (percent) {
322
+ return this.each(function () {
323
+ var timeboxparent = $(this),
324
+ pointerEventToXY = function (e) {
325
+ var out = {x: 0, y: 0},
326
+ touch;
327
+ if (e.type === 'touchstart' || e.type === 'touchmove' || e.type === 'touchend' || e.type === 'touchcancel') {
328
+ touch = e.originalEvent.touches[0] || e.originalEvent.changedTouches[0];
329
+ out.x = touch.clientX;
330
+ out.y = touch.clientY;
331
+ } else if (e.type === 'mousedown' || e.type === 'mouseup' || e.type === 'mousemove' || e.type === 'mouseover' || e.type === 'mouseout' || e.type === 'mouseenter' || e.type === 'mouseleave') {
332
+ out.x = e.clientX;
333
+ out.y = e.clientY;
334
+ }
335
+ return out;
336
+ },
337
+ move = 0,
338
+ timebox,
339
+ parentHeight,
340
+ height,
341
+ scrollbar,
342
+ scroller,
343
+ maximumOffset = 100,
344
+ start = false,
345
+ startY = 0,
346
+ startTop = 0,
347
+ h1 = 0,
348
+ touchStart = false,
349
+ startTopScroll = 0,
350
+ calcOffset = function () {};
351
+
352
+ if (!$(this).hasClass('xdsoft_scroller_box')) {
353
+ timebox = timeboxparent.children().eq(0);
354
+ parentHeight = timeboxparent[0].clientHeight;
355
+ height = timebox[0].offsetHeight;
356
+ scrollbar = $('<div class="xdsoft_scrollbar"></div>');
357
+ scroller = $('<div class="xdsoft_scroller"></div>');
358
+ scrollbar.append(scroller);
359
+
360
+ timeboxparent.addClass('xdsoft_scroller_box').append(scrollbar);
361
+ calcOffset = function calcOffset(event) {
362
+ var offset = pointerEventToXY(event).y - startY + startTopScroll;
363
+ if (offset < 0) {
364
+ offset = 0;
365
+ }
366
+ if (offset + scroller[0].offsetHeight > h1) {
367
+ offset = h1 - scroller[0].offsetHeight;
368
+ }
369
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [maximumOffset ? offset / maximumOffset : 0]);
370
+ };
371
+
372
+ scroller
373
+ .on('touchstart.xdsoft_scroller mousedown.xdsoft_scroller', function (event) {
374
+ if (!parentHeight) {
375
+ timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
376
+ }
377
+
378
+ startY = pointerEventToXY(event).y;
379
+ startTopScroll = parseInt(scroller.css('margin-top'), 10);
380
+ h1 = scrollbar[0].offsetHeight;
381
+
382
+ if (event.type === 'mousedown') {
383
+ if (document) {
384
+ $(document.body).addClass('xdsoft_noselect');
385
+ }
386
+ $([document.body, window]).on('mouseup.xdsoft_scroller', function arguments_callee() {
387
+ $([document.body, window]).off('mouseup.xdsoft_scroller', arguments_callee)
388
+ .off('mousemove.xdsoft_scroller', calcOffset)
389
+ .removeClass('xdsoft_noselect');
390
+ });
391
+ $(document.body).on('mousemove.xdsoft_scroller', calcOffset);
392
+ } else {
393
+ touchStart = true;
394
+ event.stopPropagation();
395
+ event.preventDefault();
396
+ }
397
+ })
398
+ .on('touchmove', function (event) {
399
+ if (touchStart) {
400
+ event.preventDefault();
401
+ calcOffset(event);
402
+ }
403
+ })
404
+ .on('touchend touchcancel', function (event) {
405
+ touchStart = false;
406
+ startTopScroll = 0;
407
+ });
408
+
409
+ timeboxparent
410
+ .on('scroll_element.xdsoft_scroller', function (event, percentage) {
411
+ if (!parentHeight) {
412
+ timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percentage, true]);
413
+ }
414
+ percentage = percentage > 1 ? 1 : (percentage < 0 || isNaN(percentage)) ? 0 : percentage;
415
+
416
+ scroller.css('margin-top', maximumOffset * percentage);
417
+
418
+ setTimeout(function () {
419
+ timebox.css('marginTop', -parseInt((timebox[0].offsetHeight - parentHeight) * percentage, 10));
420
+ }, 10);
421
+ })
422
+ .on('resize_scroll.xdsoft_scroller', function (event, percentage, noTriggerScroll) {
423
+ var percent, sh;
424
+ parentHeight = timeboxparent[0].clientHeight;
425
+ height = timebox[0].offsetHeight;
426
+ percent = parentHeight / height;
427
+ sh = percent * scrollbar[0].offsetHeight;
428
+ if (percent > 1) {
429
+ scroller.hide();
430
+ } else {
431
+ scroller.show();
432
+ scroller.css('height', parseInt(sh > 10 ? sh : 10, 10));
433
+ maximumOffset = scrollbar[0].offsetHeight - scroller[0].offsetHeight;
434
+ if (noTriggerScroll !== true) {
435
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [percentage || Math.abs(parseInt(timebox.css('marginTop'), 10)) / (height - parentHeight)]);
436
+ }
437
+ }
438
+ });
439
+
440
+ timeboxparent.on('mousewheel', function (event) {
441
+ var top = Math.abs(parseInt(timebox.css('marginTop'), 10));
442
+
443
+ top = top - (event.deltaY * 20);
444
+ if (top < 0) {
445
+ top = 0;
446
+ }
447
+
448
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [top / (height - parentHeight)]);
449
+ event.stopPropagation();
450
+ return false;
451
+ });
452
+
453
+ timeboxparent.on('touchstart', function (event) {
454
+ start = pointerEventToXY(event);
455
+ startTop = Math.abs(parseInt(timebox.css('marginTop'), 10));
456
+ });
457
+
458
+ timeboxparent.on('touchmove', function (event) {
459
+ if (start) {
460
+ event.preventDefault();
461
+ var coord = pointerEventToXY(event);
462
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [(startTop - (coord.y - start.y)) / (height - parentHeight)]);
463
+ }
464
+ });
465
+
466
+ timeboxparent.on('touchend touchcancel', function (event) {
467
+ start = false;
468
+ startTop = 0;
469
+ });
470
+ }
471
+ timeboxparent.trigger('resize_scroll.xdsoft_scroller', [percent]);
472
+ });
473
+ };
474
+
475
+ $.fn.datetimepicker = function (opt) {
476
+ var KEY0 = 48,
477
+ KEY9 = 57,
478
+ _KEY0 = 96,
479
+ _KEY9 = 105,
480
+ CTRLKEY = 17,
481
+ DEL = 46,
482
+ ENTER = 13,
483
+ ESC = 27,
484
+ BACKSPACE = 8,
485
+ ARROWLEFT = 37,
486
+ ARROWUP = 38,
487
+ ARROWRIGHT = 39,
488
+ ARROWDOWN = 40,
489
+ TAB = 9,
490
+ F5 = 116,
491
+ AKEY = 65,
492
+ CKEY = 67,
493
+ VKEY = 86,
494
+ ZKEY = 90,
495
+ YKEY = 89,
496
+ ctrlDown = false,
497
+ options = ($.isPlainObject(opt) || !opt) ? $.extend(true, {}, default_options, opt) : $.extend(true, {}, default_options),
498
+
499
+ lazyInitTimer = 0,
500
+ createDateTimePicker,
501
+ destroyDateTimePicker,
502
+ _xdsoft_datetime,
503
+
504
+ lazyInit = function (input) {
505
+ input
506
+ .on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function initOnActionCallback(event) {
507
+ if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible') || input.data('xdsoft_datetimepicker')) {
508
+ return;
509
+ }
510
+ clearTimeout(lazyInitTimer);
511
+ lazyInitTimer = setTimeout(function () {
512
+
513
+ if (!input.data('xdsoft_datetimepicker')) {
514
+ createDateTimePicker(input);
515
+ }
516
+ input
517
+ .off('open.xdsoft focusin.xdsoft mousedown.xdsoft', initOnActionCallback)
518
+ .trigger('open.xdsoft');
519
+ }, 100);
520
+ });
521
+ };
522
+
523
+ createDateTimePicker = function (input) {
524
+ var datetimepicker = $('<div ' + (options.id ? 'id="' + options.id + '"' : '') + ' ' + (options.style ? 'style="' + options.style + '"' : '') + ' class="xdsoft_datetimepicker xdsoft_' + options.theme + ' xdsoft_noselect ' + (options.weeks ? ' xdsoft_showweeks' : '') + options.className + '"></div>'),
525
+ xdsoft_copyright = $('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),
526
+ datepicker = $('<div class="xdsoft_datepicker active"></div>'),
527
+ mounth_picker = $('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button>' +
528
+ '<div class="xdsoft_label xdsoft_month"><span></span><i></i></div>' +
529
+ '<div class="xdsoft_label xdsoft_year"><span></span><i></i></div>' +
530
+ '<button type="button" class="xdsoft_next"></button></div>'),
531
+ calendar = $('<div class="xdsoft_calendar"></div>'),
532
+ timepicker = $('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),
533
+ timeboxparent = timepicker.find('.xdsoft_time_box').eq(0),
534
+ timebox = $('<div class="xdsoft_time_variant"></div>'),
535
+ scrollbar = $('<div class="xdsoft_scrollbar"></div>'),
536
+ scroller = $('<div class="xdsoft_scroller"></div>'),
537
+ monthselect = $('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),
538
+ yearselect = $('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),
539
+ triggerAfterOpen = false,
540
+ XDSoft_datetime,
541
+ //scroll_element,
542
+ xchangeTimer,
543
+ timerclick,
544
+ current_time_index,
545
+ setPos,
546
+ timer = 0,
547
+ timer1 = 0;
548
+
549
+ mounth_picker
550
+ .find('.xdsoft_month span')
551
+ .after(monthselect);
552
+ mounth_picker
553
+ .find('.xdsoft_year span')
554
+ .after(yearselect);
555
+
556
+ mounth_picker
557
+ .find('.xdsoft_month,.xdsoft_year')
558
+ .on('mousedown.xdsoft', function (event) {
559
+ var select = $(this).find('.xdsoft_select').eq(0),
560
+ val = 0,
561
+ top = 0,
562
+ visible = select.is(':visible'),
563
+ items,
564
+ i;
565
+
566
+ mounth_picker
567
+ .find('.xdsoft_select')
568
+ .hide();
569
+ if (_xdsoft_datetime.currentTime) {
570
+ val = _xdsoft_datetime.currentTime[$(this).hasClass('xdsoft_month') ? 'getMonth' : 'getFullYear']();
571
+ }
572
+
573
+ select[visible ? 'hide' : 'show']();
574
+ for (items = select.find('div.xdsoft_option'), i = 0; i < items.length; i += 1) {
575
+ if (items.eq(i).data('value') === val) {
576
+ break;
577
+ } else {
578
+ top += items[0].offsetHeight;
579
+ }
580
+ }
581
+
582
+ select.xdsoftScroller(top / (select.children()[0].offsetHeight - (select[0].clientHeight)));
583
+ event.stopPropagation();
584
+ return false;
585
+ });
586
+
587
+ mounth_picker
588
+ .find('.xdsoft_select')
589
+ .xdsoftScroller()
590
+ .on('mousedown.xdsoft', function (event) {
591
+ event.stopPropagation();
592
+ event.preventDefault();
593
+ })
594
+ .on('mousedown.xdsoft', '.xdsoft_option', function (event) {
595
+ var year = _xdsoft_datetime.currentTime.getFullYear();
596
+ if (_xdsoft_datetime && _xdsoft_datetime.currentTime) {
597
+ _xdsoft_datetime.currentTime[$(this).parent().parent().hasClass('xdsoft_monthselect') ? 'setMonth' : 'setFullYear']($(this).data('value'));
598
+ }
599
+
600
+ $(this).parent().parent().hide();
601
+
602
+ datetimepicker.trigger('xchange.xdsoft');
603
+ if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
604
+ options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
605
+ }
606
+
607
+ if (year !== _xdsoft_datetime.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
608
+ options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
609
+ }
610
+ });
611
+
612
+ datetimepicker.setOptions = function (_options) {
613
+ options = $.extend(true, {}, options, _options);
614
+
615
+ if (_options.allowTimes && $.isArray(_options.allowTimes) && _options.allowTimes.length) {
616
+ options.allowTimes = $.extend(true, [], _options.allowTimes);
617
+ }
618
+
619
+ if (_options.weekends && $.isArray(_options.weekends) && _options.weekends.length) {
620
+ options.weekends = $.extend(true, [], _options.weekends);
621
+ }
622
+
623
+ if ((options.open || options.opened) && (!options.inline)) {
624
+ input.trigger('open.xdsoft');
625
+ }
626
+
627
+ if (options.inline) {
628
+ triggerAfterOpen = true;
629
+ datetimepicker.addClass('xdsoft_inline');
630
+ input.after(datetimepicker).hide();
631
+ }
632
+
633
+ if (options.inverseButton) {
634
+ options.next = 'xdsoft_prev';
635
+ options.prev = 'xdsoft_next';
636
+ }
637
+
638
+ if (options.datepicker) {
639
+ datepicker.addClass('active');
640
+ } else {
641
+ datepicker.removeClass('active');
642
+ }
643
+
644
+ if (options.timepicker) {
645
+ timepicker.addClass('active');
646
+ } else {
647
+ timepicker.removeClass('active');
648
+ }
649
+
650
+ if (options.value) {
651
+ if (input && input.val) {
652
+ input.val(options.value);
653
+ }
654
+ _xdsoft_datetime.setCurrentTime(options.value);
655
+ }
656
+
657
+ if (isNaN(options.dayOfWeekStart)) {
658
+ options.dayOfWeekStart = 0;
659
+ } else {
660
+ options.dayOfWeekStart = parseInt(options.dayOfWeekStart, 10) % 7;
661
+ }
662
+
663
+ if (!options.timepickerScrollbar) {
664
+ scrollbar.hide();
665
+ }
666
+
667
+ if (options.minDate && /^-(.*)$/.test(options.minDate)) {
668
+ options.minDate = _xdsoft_datetime.strToDateTime(options.minDate).dateFormat(options.formatDate);
669
+ }
670
+
671
+ if (options.maxDate && /^\+(.*)$/.test(options.maxDate)) {
672
+ options.maxDate = _xdsoft_datetime.strToDateTime(options.maxDate).dateFormat(options.formatDate);
673
+ }
674
+
675
+ mounth_picker
676
+ .find('.xdsoft_today_button')
677
+ .css('visibility', !options.todayButton ? 'hidden' : 'visible');
678
+
679
+ if (options.mask) {
680
+ var e,
681
+ getCaretPos = function (input) {
682
+ try {
683
+ if (document.selection && document.selection.createRange) {
684
+ var range = document.selection.createRange();
685
+ return range.getBookmark().charCodeAt(2) - 2;
686
+ }
687
+ if (input.setSelectionRange) {
688
+ return input.selectionStart;
689
+ }
690
+ } catch (e) {
691
+ return 0;
692
+ }
693
+ },
694
+ setCaretPos = function (node, pos) {
695
+ node = (typeof node === "string" || node instanceof String) ? document.getElementById(node) : node;
696
+ if (!node) {
697
+ return false;
698
+ }
699
+ if (node.createTextRange) {
700
+ var textRange = node.createTextRange();
701
+ textRange.collapse(true);
702
+ textRange.moveEnd('character', pos);
703
+ textRange.moveStart('character', pos);
704
+ textRange.select();
705
+ return true;
706
+ }
707
+ if (node.setSelectionRange) {
708
+ node.setSelectionRange(pos, pos);
709
+ return true;
710
+ }
711
+ return false;
712
+ },
713
+ isValidValue = function (mask, value) {
714
+ var reg = mask
715
+ .replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g, '\\$1')
716
+ .replace(/_/g, '{digit+}')
717
+ .replace(/([0-9]{1})/g, '{digit$1}')
718
+ .replace(/\{digit([0-9]{1})\}/g, '[0-$1_]{1}')
719
+ .replace(/\{digit[\+]\}/g, '[0-9_]{1}');
720
+ return (new RegExp(reg)).test(value);
721
+ };
722
+ input.off('keydown.xdsoft');
723
+
724
+ if (options.mask === true) {
725
+ options.mask = options.format
726
+ .replace(/Y/g, '9999')
727
+ .replace(/F/g, '9999')
728
+ .replace(/m/g, '19')
729
+ .replace(/d/g, '39')
730
+ .replace(/H/g, '29')
731
+ .replace(/i/g, '59')
732
+ .replace(/s/g, '59');
733
+ }
734
+
735
+ if ($.type(options.mask) === 'string') {
736
+ if (!isValidValue(options.mask, input.val())) {
737
+ input.val(options.mask.replace(/[0-9]/g, '_'));
738
+ }
739
+
740
+ input.on('keydown.xdsoft', function (event) {
741
+ var val = this.value,
742
+ key = event.which,
743
+ pos,
744
+ digit;
745
+
746
+ if (((key >= KEY0 && key <= KEY9) || (key >= _KEY0 && key <= _KEY9)) || (key === BACKSPACE || key === DEL)) {
747
+ pos = getCaretPos(this);
748
+ digit = (key !== BACKSPACE && key !== DEL) ? String.fromCharCode((_KEY0 <= key && key <= _KEY9) ? key - KEY0 : key) : '_';
749
+
750
+ if ((key === BACKSPACE || key === DEL) && pos) {
751
+ pos -= 1;
752
+ digit = '_';
753
+ }
754
+
755
+ while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
756
+ pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
757
+ }
758
+
759
+ val = val.substr(0, pos) + digit + val.substr(pos + 1);
760
+ if ($.trim(val) === '') {
761
+ val = options.mask.replace(/[0-9]/g, '_');
762
+ } else {
763
+ if (pos === options.mask.length) {
764
+ event.preventDefault();
765
+ return false;
766
+ }
767
+ }
768
+
769
+ pos += (key === BACKSPACE || key === DEL) ? 0 : 1;
770
+ while (/[^0-9_]/.test(options.mask.substr(pos, 1)) && pos < options.mask.length && pos > 0) {
771
+ pos += (key === BACKSPACE || key === DEL) ? -1 : 1;
772
+ }
773
+
774
+ if (isValidValue(options.mask, val)) {
775
+ this.value = val;
776
+ setCaretPos(this, pos);
777
+ } else if ($.trim(val) === '') {
778
+ this.value = options.mask.replace(/[0-9]/g, '_');
779
+ } else {
780
+ input.trigger('error_input.xdsoft');
781
+ }
782
+ } else {
783
+ if (([AKEY, CKEY, VKEY, ZKEY, YKEY].indexOf(key) !== -1 && ctrlDown) || [ESC, ARROWUP, ARROWDOWN, ARROWLEFT, ARROWRIGHT, F5, CTRLKEY, TAB, ENTER].indexOf(key) !== -1) {
784
+ return true;
785
+ }
786
+ }
787
+
788
+ event.preventDefault();
789
+ return false;
790
+ });
791
+ }
792
+ }
793
+ if (options.validateOnBlur) {
794
+ input
795
+ .off('blur.xdsoft')
796
+ .on('blur.xdsoft', function () {
797
+ if (options.allowBlank && !$.trim($(this).val()).length) {
798
+ $(this).val(null);
799
+ datetimepicker.data('xdsoft_datetime').empty();
800
+ } else if (!Date.parseDate($(this).val(), options.format)) {
801
+ $(this).val((_xdsoft_datetime.now()).dateFormat(options.format));
802
+ datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
803
+ } else {
804
+ datetimepicker.data('xdsoft_datetime').setCurrentTime($(this).val());
805
+ }
806
+ datetimepicker.trigger('changedatetime.xdsoft');
807
+ });
808
+ }
809
+ options.dayOfWeekStartPrev = (options.dayOfWeekStart === 0) ? 6 : options.dayOfWeekStart - 1;
810
+
811
+ datetimepicker
812
+ .trigger('xchange.xdsoft')
813
+ .trigger('afterOpen.xdsoft');
814
+ };
815
+
816
+ datetimepicker
817
+ .data('options', options)
818
+ .on('mousedown.xdsoft', function (event) {
819
+ event.stopPropagation();
820
+ event.preventDefault();
821
+ yearselect.hide();
822
+ monthselect.hide();
823
+ return false;
824
+ });
825
+
826
+ //scroll_element = timepicker.find('.xdsoft_time_box');
827
+ timeboxparent.append(timebox);
828
+ timeboxparent.xdsoftScroller();
829
+
830
+ datetimepicker.on('afterOpen.xdsoft', function () {
831
+ timeboxparent.xdsoftScroller();
832
+ });
833
+
834
+ datetimepicker
835
+ .append(datepicker)
836
+ .append(timepicker);
837
+
838
+ if (options.withoutCopyright !== true) {
839
+ datetimepicker
840
+ .append(xdsoft_copyright);
841
+ }
842
+
843
+ datepicker
844
+ .append(mounth_picker)
845
+ .append(calendar);
846
+
847
+ $(options.parentID)
848
+ .append(datetimepicker);
849
+
850
+ XDSoft_datetime = function () {
851
+ var _this = this;
852
+ _this.now = function (norecursion) {
853
+ var d = new Date(),
854
+ date,
855
+ time;
856
+
857
+ if (!norecursion && options.defaultDate) {
858
+ date = _this.strToDate(options.defaultDate);
859
+ d.setFullYear(date.getFullYear());
860
+ d.setMonth(date.getMonth());
861
+ d.setDate(date.getDate());
862
+ }
863
+
864
+ if (options.yearOffset) {
865
+ d.setFullYear(d.getFullYear() + options.yearOffset);
866
+ }
867
+
868
+ if (!norecursion && options.defaultTime) {
869
+ time = _this.strtotime(options.defaultTime);
870
+ d.setHours(time.getHours());
871
+ d.setMinutes(time.getMinutes());
872
+ }
873
+
874
+ return d;
875
+ };
876
+
877
+ _this.isValidDate = function (d) {
878
+ if (Object.prototype.toString.call(d) !== "[object Date]") {
879
+ return false;
880
+ }
881
+ return !isNaN(d.getTime());
882
+ };
883
+
884
+ _this.setCurrentTime = function (dTime) {
885
+ _this.currentTime = (typeof dTime === 'string') ? _this.strToDateTime(dTime) : _this.isValidDate(dTime) ? dTime : _this.now();
886
+ datetimepicker.trigger('xchange.xdsoft');
887
+ };
888
+
889
+ _this.empty = function () {
890
+ _this.currentTime = null;
891
+ };
892
+
893
+ _this.getCurrentTime = function (dTime) {
894
+ return _this.currentTime;
895
+ };
896
+
897
+ _this.nextMonth = function () {
898
+ var month = _this.currentTime.getMonth() + 1,
899
+ year;
900
+ if (month === 12) {
901
+ _this.currentTime.setFullYear(_this.currentTime.getFullYear() + 1);
902
+ month = 0;
903
+ }
904
+
905
+ year = _this.currentTime.getFullYear();
906
+
907
+ _this.currentTime.setDate(
908
+ Math.min(
909
+ new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
910
+ _this.currentTime.getDate()
911
+ )
912
+ );
913
+ _this.currentTime.setMonth(month);
914
+
915
+ if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
916
+ options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
917
+ }
918
+
919
+ if (year !== _this.currentTime.getFullYear() && $.isFunction(options.onChangeYear)) {
920
+ options.onChangeYear.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
921
+ }
922
+
923
+ datetimepicker.trigger('xchange.xdsoft');
924
+ return month;
925
+ };
926
+
927
+ _this.prevMonth = function () {
928
+ var month = _this.currentTime.getMonth() - 1;
929
+ if (month === -1) {
930
+ _this.currentTime.setFullYear(_this.currentTime.getFullYear() - 1);
931
+ month = 11;
932
+ }
933
+ _this.currentTime.setDate(
934
+ Math.min(
935
+ new Date(_this.currentTime.getFullYear(), month + 1, 0).getDate(),
936
+ _this.currentTime.getDate()
937
+ )
938
+ );
939
+ _this.currentTime.setMonth(month);
940
+ if (options.onChangeMonth && $.isFunction(options.onChangeMonth)) {
941
+ options.onChangeMonth.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
942
+ }
943
+ datetimepicker.trigger('xchange.xdsoft');
944
+ return month;
945
+ };
946
+
947
+ _this.getWeekOfYear = function (datetime) {
948
+ var onejan = new Date(datetime.getFullYear(), 0, 1);
949
+ return Math.ceil((((datetime - onejan) / 86400000) + onejan.getDay() + 1) / 7);
950
+ };
951
+
952
+ _this.strToDateTime = function (sDateTime) {
953
+ var tmpDate = [], timeOffset, currentTime;
954
+
955
+ if (sDateTime && sDateTime instanceof Date && _this.isValidDate(sDateTime)) {
956
+ return sDateTime;
957
+ }
958
+
959
+ tmpDate = /^(\+|\-)(.*)$/.exec(sDateTime);
960
+ if (tmpDate) {
961
+ tmpDate[2] = Date.parseDate(tmpDate[2], options.formatDate);
962
+ }
963
+ if (tmpDate && tmpDate[2]) {
964
+ timeOffset = tmpDate[2].getTime() - (tmpDate[2].getTimezoneOffset()) * 60000;
965
+ currentTime = new Date((_xdsoft_datetime.now()).getTime() + parseInt(tmpDate[1] + '1', 10) * timeOffset);
966
+ } else {
967
+ currentTime = sDateTime ? Date.parseDate(sDateTime, options.format) : _this.now();
968
+ }
969
+
970
+ if (!_this.isValidDate(currentTime)) {
971
+ currentTime = _this.now();
972
+ }
973
+
974
+ return currentTime;
975
+ };
976
+
977
+ _this.strToDate = function (sDate) {
978
+ if (sDate && sDate instanceof Date && _this.isValidDate(sDate)) {
979
+ return sDate;
980
+ }
981
+
982
+ var currentTime = sDate ? Date.parseDate(sDate, options.formatDate) : _this.now(true);
983
+ if (!_this.isValidDate(currentTime)) {
984
+ currentTime = _this.now(true);
985
+ }
986
+ return currentTime;
987
+ };
988
+
989
+ _this.strtotime = function (sTime) {
990
+ if (sTime && sTime instanceof Date && _this.isValidDate(sTime)) {
991
+ return sTime;
992
+ }
993
+ var currentTime = sTime ? Date.parseDate(sTime, options.formatTime) : _this.now(true);
994
+ if (!_this.isValidDate(currentTime)) {
995
+ currentTime = _this.now(true);
996
+ }
997
+ return currentTime;
998
+ };
999
+
1000
+ _this.str = function () {
1001
+ return _this.currentTime.dateFormat(options.format);
1002
+ };
1003
+ _this.currentTime = this.now();
1004
+ };
1005
+
1006
+ _xdsoft_datetime = new XDSoft_datetime();
1007
+
1008
+ mounth_picker
1009
+ .find('.xdsoft_today_button')
1010
+ .on('mousedown.xdsoft', function () {
1011
+ datetimepicker.data('changed', true);
1012
+ _xdsoft_datetime.setCurrentTime(0);
1013
+ datetimepicker.trigger('afterOpen.xdsoft');
1014
+ }).on('dblclick.xdsoft', function () {
1015
+ input.val(_xdsoft_datetime.str());
1016
+ datetimepicker.trigger('close.xdsoft');
1017
+ });
1018
+ mounth_picker
1019
+ .find('.xdsoft_prev,.xdsoft_next')
1020
+ .on('mousedown.xdsoft', function () {
1021
+ var $this = $(this),
1022
+ timer = 0,
1023
+ stop = false;
1024
+
1025
+ (function arguments_callee1(v) {
1026
+ var month = _xdsoft_datetime.currentTime.getMonth();
1027
+ if ($this.hasClass(options.next)) {
1028
+ _xdsoft_datetime.nextMonth();
1029
+ } else if ($this.hasClass(options.prev)) {
1030
+ _xdsoft_datetime.prevMonth();
1031
+ }
1032
+ if (options.monthChangeSpinner) {
1033
+ if (!stop) {
1034
+ timer = setTimeout(arguments_callee1, v || 100);
1035
+ }
1036
+ }
1037
+ }(500));
1038
+
1039
+ $([document.body, window]).on('mouseup.xdsoft', function arguments_callee2() {
1040
+ clearTimeout(timer);
1041
+ stop = true;
1042
+ $([document.body, window]).off('mouseup.xdsoft', arguments_callee2);
1043
+ });
1044
+ });
1045
+
1046
+ timepicker
1047
+ .find('.xdsoft_prev,.xdsoft_next')
1048
+ .on('mousedown.xdsoft', function () {
1049
+ var $this = $(this),
1050
+ timer = 0,
1051
+ stop = false,
1052
+ period = 110;
1053
+ (function arguments_callee4(v) {
1054
+ var pheight = timeboxparent[0].clientHeight,
1055
+ height = timebox[0].offsetHeight,
1056
+ top = Math.abs(parseInt(timebox.css('marginTop'), 10));
1057
+ if ($this.hasClass(options.next) && (height - pheight) - options.timeHeightInTimePicker >= top) {
1058
+ timebox.css('marginTop', '-' + (top + options.timeHeightInTimePicker) + 'px');
1059
+ } else if ($this.hasClass(options.prev) && top - options.timeHeightInTimePicker >= 0) {
1060
+ timebox.css('marginTop', '-' + (top - options.timeHeightInTimePicker) + 'px');
1061
+ }
1062
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [Math.abs(parseInt(timebox.css('marginTop'), 10) / (height - pheight))]);
1063
+ period = (period > 10) ? 10 : period - 10;
1064
+ if (!stop) {
1065
+ timer = setTimeout(arguments_callee4, v || period);
1066
+ }
1067
+ }(500));
1068
+ $([document.body, window]).on('mouseup.xdsoft', function arguments_callee5() {
1069
+ clearTimeout(timer);
1070
+ stop = true;
1071
+ $([document.body, window])
1072
+ .off('mouseup.xdsoft', arguments_callee5);
1073
+ });
1074
+ });
1075
+
1076
+ xchangeTimer = 0;
1077
+ // base handler - generating a calendar and timepicker
1078
+ datetimepicker
1079
+ .on('xchange.xdsoft', function (event) {
1080
+ clearTimeout(xchangeTimer);
1081
+ xchangeTimer = setTimeout(function () {
1082
+ var table = '',
1083
+ start = new Date(_xdsoft_datetime.currentTime.getFullYear(), _xdsoft_datetime.currentTime.getMonth(), 1, 12, 0, 0),
1084
+ i = 0,
1085
+ j,
1086
+ today = _xdsoft_datetime.now(),
1087
+ maxDate = false,
1088
+ minDate = false,
1089
+ d,
1090
+ y,
1091
+ m,
1092
+ w,
1093
+ classes = [],
1094
+ customDateSettings,
1095
+ newRow = true,
1096
+ time = '',
1097
+ h = '',
1098
+ line_time;
1099
+
1100
+ while (start.getDay() !== options.dayOfWeekStart) {
1101
+ start.setDate(start.getDate() - 1);
1102
+ }
1103
+
1104
+ table += '<table><thead><tr>';
1105
+
1106
+ if (options.weeks) {
1107
+ table += '<th></th>';
1108
+ }
1109
+
1110
+ for (j = 0; j < 7; j += 1) {
1111
+ table += '<th>' + options.i18n[options.lang].dayOfWeek[(j + options.dayOfWeekStart) % 7] + '</th>';
1112
+ }
1113
+
1114
+ table += '</tr></thead>';
1115
+ table += '<tbody>';
1116
+
1117
+ if (options.maxDate !== false) {
1118
+ maxDate = _xdsoft_datetime.strToDate(options.maxDate);
1119
+ maxDate = new Date(maxDate.getFullYear(), maxDate.getMonth(), maxDate.getDate(), 23, 59, 59, 999);
1120
+ }
1121
+
1122
+ if (options.minDate !== false) {
1123
+ minDate = _xdsoft_datetime.strToDate(options.minDate);
1124
+ minDate = new Date(minDate.getFullYear(), minDate.getMonth(), minDate.getDate());
1125
+ }
1126
+
1127
+ while (i < _xdsoft_datetime.currentTime.countDaysInMonth() || start.getDay() !== options.dayOfWeekStart || _xdsoft_datetime.currentTime.getMonth() === start.getMonth()) {
1128
+ classes = [];
1129
+ i += 1;
1130
+
1131
+ d = start.getDate();
1132
+ y = start.getFullYear();
1133
+ m = start.getMonth();
1134
+ w = _xdsoft_datetime.getWeekOfYear(start);
1135
+
1136
+ classes.push('xdsoft_date');
1137
+
1138
+ if (options.beforeShowDay && $.isFunction(options.beforeShowDay.call)) {
1139
+ customDateSettings = options.beforeShowDay.call(datetimepicker, start);
1140
+ } else {
1141
+ customDateSettings = null;
1142
+ }
1143
+
1144
+ if ((maxDate !== false && start > maxDate) || (minDate !== false && start < minDate) || (customDateSettings && customDateSettings[0] === false)) {
1145
+ classes.push('xdsoft_disabled');
1146
+ }
1147
+
1148
+ if (customDateSettings && customDateSettings[1] !== "") {
1149
+ classes.push(customDateSettings[1]);
1150
+ }
1151
+
1152
+ if (_xdsoft_datetime.currentTime.getMonth() !== m) {
1153
+ classes.push('xdsoft_other_month');
1154
+ }
1155
+
1156
+ if ((options.defaultSelect || datetimepicker.data('changed')) && _xdsoft_datetime.currentTime.dateFormat(options.formatDate) === start.dateFormat(options.formatDate)) {
1157
+ classes.push('xdsoft_current');
1158
+ }
1159
+
1160
+ if (today.dateFormat(options.formatDate) === start.dateFormat(options.formatDate)) {
1161
+ classes.push('xdsoft_today');
1162
+ }
1163
+
1164
+ if (start.getDay() === 0 || start.getDay() === 6 || options.weekends.indexOf(start.dateFormat(options.formatDate)) === -1) {
1165
+ classes.push('xdsoft_weekend');
1166
+ }
1167
+
1168
+ if (options.beforeShowDay && $.isFunction(options.beforeShowDay)) {
1169
+ classes.push(options.beforeShowDay(start));
1170
+ }
1171
+
1172
+ if (newRow) {
1173
+ table += '<tr>';
1174
+ newRow = false;
1175
+ if (options.weeks) {
1176
+ table += '<th>' + w + '</th>';
1177
+ }
1178
+ }
1179
+
1180
+ table += '<td data-date="' + d + '" data-month="' + m + '" data-year="' + y + '"' + ' class="xdsoft_date xdsoft_day_of_week' + start.getDay() + ' ' + classes.join(' ') + '">' +
1181
+ '<div>' + d + '</div>' +
1182
+ '</td>';
1183
+
1184
+ if (start.getDay() === options.dayOfWeekStartPrev) {
1185
+ table += '</tr>';
1186
+ newRow = true;
1187
+ }
1188
+
1189
+ start.setDate(d + 1);
1190
+ }
1191
+ table += '</tbody></table>';
1192
+
1193
+ calendar.html(table);
1194
+
1195
+ mounth_picker.find('.xdsoft_label span').eq(0).text(options.i18n[options.lang].months[_xdsoft_datetime.currentTime.getMonth()]);
1196
+ mounth_picker.find('.xdsoft_label span').eq(1).text(_xdsoft_datetime.currentTime.getFullYear());
1197
+
1198
+ // generate timebox
1199
+ time = '';
1200
+ h = '';
1201
+ m = '';
1202
+ line_time = function line_time(h, m) {
1203
+ var now = _xdsoft_datetime.now();
1204
+ now.setHours(h);
1205
+ h = parseInt(now.getHours(), 10);
1206
+ now.setMinutes(m);
1207
+ m = parseInt(now.getMinutes(), 10);
1208
+
1209
+ classes = [];
1210
+ if ((options.maxTime !== false && _xdsoft_datetime.strtotime(options.maxTime).getTime() < now.getTime()) || (options.minTime !== false && _xdsoft_datetime.strtotime(options.minTime).getTime() > now.getTime())) {
1211
+ classes.push('xdsoft_disabled');
1212
+ }
1213
+ if ((options.initTime || options.defaultSelect || datetimepicker.data('changed')) && parseInt(_xdsoft_datetime.currentTime.getHours(), 10) === parseInt(h, 10) && (options.step > 59 || Math[options.roundTime](_xdsoft_datetime.currentTime.getMinutes() / options.step) * options.step === parseInt(m, 10))) {
1214
+ if (options.defaultSelect || datetimepicker.data('changed')) {
1215
+ classes.push('xdsoft_current');
1216
+ } else if (options.initTime) {
1217
+ classes.push('xdsoft_init_time');
1218
+ }
1219
+ }
1220
+ if (parseInt(today.getHours(), 10) === parseInt(h, 10) && parseInt(today.getMinutes(), 10) === parseInt(m, 10)) {
1221
+ classes.push('xdsoft_today');
1222
+ }
1223
+ time += '<div class="xdsoft_time ' + classes.join(' ') + '" data-hour="' + h + '" data-minute="' + m + '">' + now.dateFormat(options.formatTime) + '</div>';
1224
+ };
1225
+
1226
+ if (!options.allowTimes || !$.isArray(options.allowTimes) || !options.allowTimes.length) {
1227
+ for (i = 0, j = 0; i < (options.hours12 ? 12 : 24); i += 1) {
1228
+ for (j = 0; j < 60; j += options.step) {
1229
+ h = (i < 10 ? '0' : '') + i;
1230
+ m = (j < 10 ? '0' : '') + j;
1231
+ line_time(h, m);
1232
+ }
1233
+ }
1234
+ } else {
1235
+ for (i = 0; i < options.allowTimes.length; i += 1) {
1236
+ h = _xdsoft_datetime.strtotime(options.allowTimes[i]).getHours();
1237
+ m = _xdsoft_datetime.strtotime(options.allowTimes[i]).getMinutes();
1238
+ line_time(h, m);
1239
+ }
1240
+ }
1241
+
1242
+ timebox.html(time);
1243
+
1244
+ opt = '';
1245
+ i = 0;
1246
+
1247
+ for (i = parseInt(options.yearStart, 10) + options.yearOffset; i <= parseInt(options.yearEnd, 10) + options.yearOffset; i += 1) {
1248
+ opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getFullYear() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + i + '</div>';
1249
+ }
1250
+ yearselect.children().eq(0)
1251
+ .html(opt);
1252
+
1253
+ for (i = 0, opt = ''; i <= 11; i += 1) {
1254
+ opt += '<div class="xdsoft_option ' + (_xdsoft_datetime.currentTime.getMonth() === i ? 'xdsoft_current' : '') + '" data-value="' + i + '">' + options.i18n[options.lang].months[i] + '</div>';
1255
+ }
1256
+ monthselect.children().eq(0).html(opt);
1257
+ $(datetimepicker)
1258
+ .trigger('generate.xdsoft');
1259
+ }, 10);
1260
+ event.stopPropagation();
1261
+ })
1262
+ .on('afterOpen.xdsoft', function () {
1263
+ if (options.timepicker) {
1264
+ var classType, pheight, height, top;
1265
+ if (timebox.find('.xdsoft_current').length) {
1266
+ classType = '.xdsoft_current';
1267
+ } else if (timebox.find('.xdsoft_init_time').length) {
1268
+ classType = '.xdsoft_init_time';
1269
+ }
1270
+ if (classType) {
1271
+ pheight = timeboxparent[0].clientHeight;
1272
+ height = timebox[0].offsetHeight;
1273
+ top = timebox.find(classType).index() * options.timeHeightInTimePicker + 1;
1274
+ if ((height - pheight) < top) {
1275
+ top = height - pheight;
1276
+ }
1277
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [parseInt(top, 10) / (height - pheight)]);
1278
+ } else {
1279
+ timeboxparent.trigger('scroll_element.xdsoft_scroller', [0]);
1280
+ }
1281
+ }
1282
+ });
1283
+
1284
+ timerclick = 0;
1285
+ calendar
1286
+ .on('click.xdsoft', 'td', function (xdevent) {
1287
+ xdevent.stopPropagation(); // Prevents closing of Pop-ups, Modals and Flyouts in Bootstrap
1288
+ timerclick += 1;
1289
+ var $this = $(this),
1290
+ currentTime = _xdsoft_datetime.currentTime;
1291
+
1292
+ if (currentTime === undefined || currentTime === null) {
1293
+ _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
1294
+ currentTime = _xdsoft_datetime.currentTime;
1295
+ }
1296
+
1297
+ if ($this.hasClass('xdsoft_disabled')) {
1298
+ return false;
1299
+ }
1300
+
1301
+ currentTime.setDate(1);
1302
+ currentTime.setFullYear($this.data('year'));
1303
+ currentTime.setMonth($this.data('month'));
1304
+ currentTime.setDate($this.data('date'));
1305
+
1306
+ datetimepicker.trigger('select.xdsoft', [currentTime]);
1307
+
1308
+ input.val(_xdsoft_datetime.str());
1309
+ if ((timerclick > 1 || (options.closeOnDateSelect === true || (options.closeOnDateSelect === 0 && !options.timepicker))) && !options.inline) {
1310
+ datetimepicker.trigger('close.xdsoft');
1311
+ }
1312
+
1313
+ if (options.onSelectDate && $.isFunction(options.onSelectDate)) {
1314
+ options.onSelectDate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
1315
+ }
1316
+
1317
+ datetimepicker.data('changed', true);
1318
+ datetimepicker.trigger('xchange.xdsoft');
1319
+ datetimepicker.trigger('changedatetime.xdsoft');
1320
+ setTimeout(function () {
1321
+ timerclick = 0;
1322
+ }, 200);
1323
+ });
1324
+
1325
+ timebox
1326
+ .on('click.xdsoft', 'div', function (xdevent) {
1327
+ xdevent.stopPropagation();
1328
+ var $this = $(this),
1329
+ currentTime = _xdsoft_datetime.currentTime;
1330
+
1331
+ if (currentTime === undefined || currentTime === null) {
1332
+ _xdsoft_datetime.currentTime = _xdsoft_datetime.now();
1333
+ currentTime = _xdsoft_datetime.currentTime;
1334
+ }
1335
+
1336
+ if ($this.hasClass('xdsoft_disabled')) {
1337
+ return false;
1338
+ }
1339
+ currentTime.setHours($this.data('hour'));
1340
+ currentTime.setMinutes($this.data('minute'));
1341
+ datetimepicker.trigger('select.xdsoft', [currentTime]);
1342
+
1343
+ datetimepicker.data('input').val(_xdsoft_datetime.str());
1344
+ if (!options.inline) {
1345
+ datetimepicker.trigger('close.xdsoft');
1346
+ }
1347
+
1348
+ if (options.onSelectTime && $.isFunction(options.onSelectTime)) {
1349
+ options.onSelectTime.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), xdevent);
1350
+ }
1351
+ datetimepicker.data('changed', true);
1352
+ datetimepicker.trigger('xchange.xdsoft');
1353
+ datetimepicker.trigger('changedatetime.xdsoft');
1354
+ });
1355
+
1356
+
1357
+ datepicker
1358
+ .on('mousewheel.xdsoft', function (event) {
1359
+ if (!options.scrollMonth) {
1360
+ return true;
1361
+ }
1362
+ if (event.deltaY < 0) {
1363
+ _xdsoft_datetime.nextMonth();
1364
+ } else {
1365
+ _xdsoft_datetime.prevMonth();
1366
+ }
1367
+ return false;
1368
+ });
1369
+
1370
+ input
1371
+ .on('mousewheel.xdsoft', function (event) {
1372
+ if (!options.scrollInput) {
1373
+ return true;
1374
+ }
1375
+ if (!options.datepicker && options.timepicker) {
1376
+ current_time_index = timebox.find('.xdsoft_current').length ? timebox.find('.xdsoft_current').eq(0).index() : 0;
1377
+ if (current_time_index + event.deltaY >= 0 && current_time_index + event.deltaY < timebox.children().length) {
1378
+ current_time_index += event.deltaY;
1379
+ }
1380
+ if (timebox.children().eq(current_time_index).length) {
1381
+ timebox.children().eq(current_time_index).trigger('mousedown');
1382
+ }
1383
+ return false;
1384
+ }
1385
+ if (options.datepicker && !options.timepicker) {
1386
+ datepicker.trigger(event, [event.deltaY, event.deltaX, event.deltaY]);
1387
+ if (input.val) {
1388
+ input.val(_xdsoft_datetime.str());
1389
+ }
1390
+ datetimepicker.trigger('changedatetime.xdsoft');
1391
+ return false;
1392
+ }
1393
+ });
1394
+
1395
+ datetimepicker
1396
+ .on('changedatetime.xdsoft', function (event) {
1397
+ if (options.onChangeDateTime && $.isFunction(options.onChangeDateTime)) {
1398
+ var $input = datetimepicker.data('input');
1399
+ options.onChangeDateTime.call(datetimepicker, _xdsoft_datetime.currentTime, $input, event);
1400
+ delete options.value;
1401
+ $input.trigger('change');
1402
+ }
1403
+ })
1404
+ .on('generate.xdsoft', function () {
1405
+ if (options.onGenerate && $.isFunction(options.onGenerate)) {
1406
+ options.onGenerate.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'));
1407
+ }
1408
+ if (triggerAfterOpen) {
1409
+ datetimepicker.trigger('afterOpen.xdsoft');
1410
+ triggerAfterOpen = false;
1411
+ }
1412
+ })
1413
+ .on('click.xdsoft', function (xdevent) {
1414
+ xdevent.stopPropagation();
1415
+ });
1416
+
1417
+ current_time_index = 0;
1418
+
1419
+ setPos = function () {
1420
+ var offset = datetimepicker.data('input').offset(), top = offset.top + datetimepicker.data('input')[0].offsetHeight - 1, left = offset.left, position = "absolute";
1421
+ if (options.fixed) {
1422
+ top -= $(window).scrollTop();
1423
+ left -= $(window).scrollLeft();
1424
+ position = "fixed";
1425
+ } else {
1426
+ if (top + datetimepicker[0].offsetHeight > $(window).height() + $(window).scrollTop()) {
1427
+ top = offset.top - datetimepicker[0].offsetHeight + 1;
1428
+ }
1429
+ if (top < 0) {
1430
+ top = 0;
1431
+ }
1432
+ if (left + datetimepicker[0].offsetWidth > $(window).width()) {
1433
+ left = $(window).width() - datetimepicker[0].offsetWidth;
1434
+ }
1435
+ }
1436
+ datetimepicker.css({
1437
+ left: left,
1438
+ top: top,
1439
+ position: position
1440
+ });
1441
+ };
1442
+ datetimepicker
1443
+ .on('open.xdsoft', function (event) {
1444
+ var onShow = true;
1445
+ if (options.onShow && $.isFunction(options.onShow)) {
1446
+ onShow = options.onShow.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
1447
+ }
1448
+ if (onShow !== false) {
1449
+ datetimepicker.show();
1450
+ setPos();
1451
+ $(window)
1452
+ .off('resize.xdsoft', setPos)
1453
+ .on('resize.xdsoft', setPos);
1454
+
1455
+ if (options.closeOnWithoutClick) {
1456
+ $([document.body, window]).on('mousedown.xdsoft', function arguments_callee6() {
1457
+ datetimepicker.trigger('close.xdsoft');
1458
+ $([document.body, window]).off('mousedown.xdsoft', arguments_callee6);
1459
+ });
1460
+ }
1461
+ }
1462
+ })
1463
+ .on('close.xdsoft', function (event) {
1464
+ var onClose = true;
1465
+ mounth_picker
1466
+ .find('.xdsoft_month,.xdsoft_year')
1467
+ .find('.xdsoft_select')
1468
+ .hide();
1469
+ if (options.onClose && $.isFunction(options.onClose)) {
1470
+ onClose = options.onClose.call(datetimepicker, _xdsoft_datetime.currentTime, datetimepicker.data('input'), event);
1471
+ }
1472
+ if (onClose !== false && !options.opened && !options.inline) {
1473
+ datetimepicker.hide();
1474
+ }
1475
+ event.stopPropagation();
1476
+ })
1477
+ .data('input', input);
1478
+
1479
+ timer = 0;
1480
+ timer1 = 0;
1481
+
1482
+ datetimepicker.data('xdsoft_datetime', _xdsoft_datetime);
1483
+ datetimepicker.setOptions(options);
1484
+
1485
+ function getCurrentValue() {
1486
+
1487
+ var ct = false, time;
1488
+
1489
+ if (options.startDate) {
1490
+ ct = _xdsoft_datetime.strToDate(options.startDate);
1491
+ } else {
1492
+ ct = options.value || ((input && input.val && input.val()) ? input.val() : '');
1493
+ if (ct) {
1494
+ ct = _xdsoft_datetime.strToDateTime(ct);
1495
+ } else if (options.defaultDate) {
1496
+ ct = _xdsoft_datetime.strToDate(options.defaultDate);
1497
+ if (options.defaultTime) {
1498
+ time = _xdsoft_datetime.strtotime(options.defaultTime);
1499
+ ct.setHours(time.getHours());
1500
+ ct.setMinutes(time.getMinutes());
1501
+ }
1502
+ }
1503
+ }
1504
+
1505
+ if (ct && _xdsoft_datetime.isValidDate(ct)) {
1506
+ datetimepicker.data('changed', true);
1507
+ } else {
1508
+ ct = '';
1509
+ }
1510
+
1511
+ return ct || 0;
1512
+ }
1513
+
1514
+ _xdsoft_datetime.setCurrentTime(getCurrentValue());
1515
+
1516
+ input
1517
+ .data('xdsoft_datetimepicker', datetimepicker)
1518
+ .on('open.xdsoft focusin.xdsoft mousedown.xdsoft', function (event) {
1519
+ if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible') || (input.data('xdsoft_datetimepicker').is(':visible') && options.closeOnInputClick)) {
1520
+ return;
1521
+ }
1522
+ clearTimeout(timer);
1523
+ timer = setTimeout(function () {
1524
+ if (input.is(':disabled') || input.is(':hidden') || !input.is(':visible')) {
1525
+ return;
1526
+ }
1527
+
1528
+ triggerAfterOpen = true;
1529
+ _xdsoft_datetime.setCurrentTime(getCurrentValue());
1530
+
1531
+ datetimepicker.trigger('open.xdsoft');
1532
+ }, 100);
1533
+ })
1534
+ .on('keydown.xdsoft', function (event) {
1535
+ var val = this.value, elementSelector,
1536
+ key = event.which;
1537
+ if ([ENTER].indexOf(key) !== -1) {
1538
+ elementSelector = $("input:visible,textarea:visible");
1539
+ datetimepicker.trigger('close.xdsoft');
1540
+ elementSelector.eq(elementSelector.index(this) + 1).focus();
1541
+ return false;
1542
+ }
1543
+ if ([TAB].indexOf(key) !== -1) {
1544
+ datetimepicker.trigger('close.xdsoft');
1545
+ return true;
1546
+ }
1547
+ });
1548
+ };
1549
+ destroyDateTimePicker = function (input) {
1550
+ var datetimepicker = input.data('xdsoft_datetimepicker');
1551
+ if (datetimepicker) {
1552
+ datetimepicker.data('xdsoft_datetime', null);
1553
+ datetimepicker.remove();
1554
+ input
1555
+ .data('xdsoft_datetimepicker', null)
1556
+ .off('.xdsoft');
1557
+ $(window).off('resize.xdsoft');
1558
+ $([window, document.body]).off('mousedown.xdsoft');
1559
+ if (input.unmousewheel) {
1560
+ input.unmousewheel();
1561
+ }
1562
+ }
1563
+ };
1564
+ $(document)
1565
+ .off('keydown.xdsoftctrl keyup.xdsoftctrl')
1566
+ .on('keydown.xdsoftctrl', function (e) {
1567
+ if (e.keyCode === CTRLKEY) {
1568
+ ctrlDown = true;
1569
+ }
1570
+ })
1571
+ .on('keyup.xdsoftctrl', function (e) {
1572
+ if (e.keyCode === CTRLKEY) {
1573
+ ctrlDown = false;
1574
+ }
1575
+ });
1576
+ return this.each(function () {
1577
+ var datetimepicker = $(this).data('xdsoft_datetimepicker');
1578
+ if (datetimepicker) {
1579
+ if ($.type(opt) === 'string') {
1580
+ switch (opt) {
1581
+ case 'show':
1582
+ $(this).select().focus();
1583
+ datetimepicker.trigger('open.xdsoft');
1584
+ break;
1585
+ case 'hide':
1586
+ datetimepicker.trigger('close.xdsoft');
1587
+ break;
1588
+ case 'destroy':
1589
+ destroyDateTimePicker($(this));
1590
+ break;
1591
+ case 'reset':
1592
+ this.value = this.defaultValue;
1593
+ if (!this.value || !datetimepicker.data('xdsoft_datetime').isValidDate(Date.parseDate(this.value, options.format))) {
1594
+ datetimepicker.data('changed', false);
1595
+ }
1596
+ datetimepicker.data('xdsoft_datetime').setCurrentTime(this.value);
1597
+ break;
1598
+ }
1599
+ } else {
1600
+ datetimepicker
1601
+ .setOptions(opt);
1602
+ }
1603
+ return 0;
1604
+ }
1605
+ if ($.type(opt) !== 'string') {
1606
+ if (!options.lazyInit || options.open || options.inline) {
1607
+ createDateTimePicker($(this));
1608
+ } else {
1609
+ lazyInit($(this));
1610
+ }
1611
+ }
1612
+ });
1613
+ };
1614
+ $.fn.datetimepicker.defaults = default_options;
1615
+ }(jQuery));
1616
+ (function () {
1617
+
1618
+ /*! Copyright (c) 2013 Brandon Aaron (http://brandon.aaron.sh)
1619
+ * Licensed under the MIT License (LICENSE.txt).
1620
+ *
1621
+ * Version: 3.1.12
1622
+ *
1623
+ * Requires: jQuery 1.2.2+
1624
+ */
1625
+ !function(a){"function"==typeof define&&define.amd?define(["jquery"],a):"object"==typeof exports?module.exports=a:a(jQuery)}(function(a){function b(b){var g=b||window.event,h=i.call(arguments,1),j=0,l=0,m=0,n=0,o=0,p=0;if(b=a.event.fix(g),b.type="mousewheel","detail"in g&&(m=-1*g.detail),"wheelDelta"in g&&(m=g.wheelDelta),"wheelDeltaY"in g&&(m=g.wheelDeltaY),"wheelDeltaX"in g&&(l=-1*g.wheelDeltaX),"axis"in g&&g.axis===g.HORIZONTAL_AXIS&&(l=-1*m,m=0),j=0===m?l:m,"deltaY"in g&&(m=-1*g.deltaY,j=m),"deltaX"in g&&(l=g.deltaX,0===m&&(j=-1*l)),0!==m||0!==l){if(1===g.deltaMode){var q=a.data(this,"mousewheel-line-height");j*=q,m*=q,l*=q}else if(2===g.deltaMode){var r=a.data(this,"mousewheel-page-height");j*=r,m*=r,l*=r}if(n=Math.max(Math.abs(m),Math.abs(l)),(!f||f>n)&&(f=n,d(g,n)&&(f/=40)),d(g,n)&&(j/=40,l/=40,m/=40),j=Math[j>=1?"floor":"ceil"](j/f),l=Math[l>=1?"floor":"ceil"](l/f),m=Math[m>=1?"floor":"ceil"](m/f),k.settings.normalizeOffset&&this.getBoundingClientRect){var s=this.getBoundingClientRect();o=b.clientX-s.left,p=b.clientY-s.top}return b.deltaX=l,b.deltaY=m,b.deltaFactor=f,b.offsetX=o,b.offsetY=p,b.deltaMode=0,h.unshift(b,j,l,m),e&&clearTimeout(e),e=setTimeout(c,200),(a.event.dispatch||a.event.handle).apply(this,h)}}function c(){f=null}function d(a,b){return k.settings.adjustOldDeltas&&"mousewheel"===a.type&&b%120===0}var e,f,g=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],h="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],i=Array.prototype.slice;if(a.event.fixHooks)for(var j=g.length;j;)a.event.fixHooks[g[--j]]=a.event.mouseHooks;var k=a.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var c=h.length;c;)this.addEventListener(h[--c],b,!1);else this.onmousewheel=b;a.data(this,"mousewheel-line-height",k.getLineHeight(this)),a.data(this,"mousewheel-page-height",k.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var c=h.length;c;)this.removeEventListener(h[--c],b,!1);else this.onmousewheel=null;a.removeData(this,"mousewheel-line-height"),a.removeData(this,"mousewheel-page-height")},getLineHeight:function(b){var c=a(b),d=c["offsetParent"in a.fn?"offsetParent":"parent"]();return d.length||(d=a("body")),parseInt(d.css("fontSize"),10)||parseInt(c.css("fontSize"),10)||16},getPageHeight:function(b){return a(b).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};a.fn.extend({mousewheel:function(a){return a?this.bind("mousewheel",a):this.trigger("mousewheel")},unmousewheel:function(a){return this.unbind("mousewheel",a)}})});
1626
+
1627
+ // Parse and Format Library
1628
+ //http://www.xaprb.com/blog/2005/12/12/javascript-closures-for-runtime-efficiency/
1629
+ /*
1630
+ * Copyright (C) 2004 Baron Schwartz <baron at sequent dot org>
1631
+ *
1632
+ * This program is free software; you can redistribute it and/or modify it
1633
+ * under the terms of the GNU Lesser General Public License as published by the
1634
+ * Free Software Foundation, version 2.1.
1635
+ *
1636
+ * This program is distributed in the hope that it will be useful, but WITHOUT
1637
+ * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
1638
+ * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
1639
+ * details.
1640
+ */
1641
+ Date.parseFunctions={count:0};Date.parseRegexes=[];Date.formatFunctions={count:0};Date.prototype.dateFormat=function(b){if(b=="unixtime"){return parseInt(this.getTime()/1000);}if(Date.formatFunctions[b]==null){Date.createNewFormat(b);}var a=Date.formatFunctions[b];return this[a]();};Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;var code="Date.prototype."+funcName+" = function() {return ";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;code+="'"+String.escape(ch)+"' + ";}else{code+=Date.getFormatCode(ch);}}}eval(code.substring(0,code.length-3)+";}");};Date.getFormatCode=function(a){switch(a){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(a)+"' + ";}};Date.parseDate=function(a,c){if(c=="unixtime"){return new Date(!isNaN(parseInt(a))?parseInt(a)*1000:0);}if(Date.parseFunctions[c]==null){Date.createParser(c);}var b=Date.parseFunctions[c];return Date[b](a);};Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++;var regexNum=Date.parseRegexes.length;var currentGroup=1;Date.parseFunctions[format]=funcName;var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {";var regex="";var special=false;var ch="";for(var i=0;i<format.length;++i){ch=format.charAt(i);if(!special&&ch=="\\"){special=true;}else{if(special){special=false;regex+=String.escape(ch);}else{obj=Date.formatCodeToRegex(ch,currentGroup);currentGroup+=obj.g;regex+=obj.s;if(obj.g&&obj.c){code+=obj.c;}}}}code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}";code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}";Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$");eval(code);};Date.formatCodeToRegex=function(b,a){switch(b){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+a+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+a+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+a+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+a+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+a+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+a+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+a+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+a+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+a+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(b)};}};Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3");};Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0");};Date.prototype.getDayOfYear=function(){var a=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var b=0;b<this.getMonth();++b){a+=Date.daysInMonth[b];}return a+this.getDate();};Date.prototype.getWeekOfYear=function(){var b=this.getDayOfYear()+(4-this.getDay());var a=new Date(this.getFullYear(),0,1);var c=(7-a.getDay()+4);return String.leftPad(Math.ceil((b-c)/7)+1,2,"0");};Date.prototype.isLeapYear=function(){var a=this.getFullYear();return((a&3)==0&&(a%100||(a%400==0&&a)));};Date.prototype.getFirstDayOfMonth=function(){var a=(this.getDay()-(this.getDate()-1))%7;return(a<0)?(a+7):a;};Date.prototype.getLastDayOfMonth=function(){var a=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return(a<0)?(a+7):a;};Date.prototype.getDaysInMonth=function(){Date.daysInMonth[1]=this.isLeapYear()?29:28;return Date.daysInMonth[this.getMonth()];};Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th";}};String.escape=function(a){return a.replace(/('|\\)/g,"\\$1");};String.leftPad=function(d,b,c){var a=new String(d);if(c==null){c=" ";}while(a.length<b){a=c+a;}return a;};Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31];Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];Date.y2kYear=50;Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11};Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"};
1642
+ }());
admin/includes/uploader/class-uploader.php CHANGED
@@ -57,7 +57,7 @@ class A3_Lazy_Load_Uploader extends A3_Lazy_Load_Admin_UI
57
  /* Include Uploader Script */
58
  /*-----------------------------------------------------------------------------------*/
59
  public function uploader_js () {
60
- wp_enqueue_script( 'a3-uploader-script', $this->admin_uploader_url() . '/uploader-script.js', array( 'jquery', 'thickbox' ) );
61
  if ( function_exists( 'wp_enqueue_media' ) ) {
62
  wp_enqueue_media();
63
  } else {
@@ -70,9 +70,9 @@ class A3_Lazy_Load_Uploader extends A3_Lazy_Load_Admin_UI
70
  /*-----------------------------------------------------------------------------------*/
71
  public function uploader_style () {
72
  wp_enqueue_style( 'thickbox' );
73
- wp_enqueue_style( 'a3-uploader-style', $this->admin_uploader_url() . '/uploader.css' );
74
  if ( is_rtl() ) {
75
- wp_enqueue_style( 'a3-uploader-style-rtl', $this->admin_uploader_url() . '/uploader.rtl.css' );
76
  }
77
  }
78
 
57
  /* Include Uploader Script */
58
  /*-----------------------------------------------------------------------------------*/
59
  public function uploader_js () {
60
+ wp_enqueue_script( 'a3-uploader-script', $this->admin_uploader_url() . '/uploader-script.js', array( 'jquery', 'thickbox' ), $this->framework_version );
61
  if ( function_exists( 'wp_enqueue_media' ) ) {
62
  wp_enqueue_media();
63
  } else {
70
  /*-----------------------------------------------------------------------------------*/
71
  public function uploader_style () {
72
  wp_enqueue_style( 'thickbox' );
73
+ wp_enqueue_style( 'a3-uploader-style', $this->admin_uploader_url() . '/uploader.css', array(), $this->framework_version );
74
  if ( is_rtl() ) {
75
+ wp_enqueue_style( 'a3-uploader-style-rtl', $this->admin_uploader_url() . '/uploader.rtl.css', array(), $this->framework_version );
76
  }
77
  }
78
 
admin/less/sass.php CHANGED
@@ -5,11 +5,11 @@ if (!defined('ABSPATH'))
5
 
6
  class A3_Lazy_Load_Less
7
  {
8
- public $plugin_name = 'a3_lazy_load';
9
- public $css_file_name = 'a3_lazy_load';
10
- public $plugin_folder = A3_LAZY_LOAD_FOLDER;
11
- public $plugin_dir = A3_LAZY_LOAD_DIR;
12
-
13
  /*-----------------------------------------------------------------------------------*/
14
  /* Constructor */
15
  /*-----------------------------------------------------------------------------------*/
5
 
6
  class A3_Lazy_Load_Less
7
  {
8
+ public $plugin_name = A3_LAZY_LOAD_KEY;
9
+ public $css_file_name = 'a3_lazy_load';
10
+ public $plugin_folder = A3_LAZY_LOAD_FOLDER;
11
+ public $plugin_dir = A3_LAZY_LOAD_DIR;
12
+
13
  /*-----------------------------------------------------------------------------------*/
14
  /* Constructor */
15
  /*-----------------------------------------------------------------------------------*/
admin/settings/template-settings/global-settings.php CHANGED
@@ -118,9 +118,9 @@ class A3_Lazy_Load_Global_Settings extends A3_Lazy_Load_Admin_UI
118
  /* Process when clean on deletion option is un selected */
119
  /*-----------------------------------------------------------------------------------*/
120
  public function after_save_settings() {
121
- if ( ( isset( $_POST['bt_save_settings'] ) || isset( $_POST['bt_reset_settings'] ) ) && get_option( 'a3_lazy_load_clean_on_deletion' ) == 0 ) {
122
  $uninstallable_plugins = (array) get_option('uninstall_plugins');
123
- unset($uninstallable_plugins[A3_LAZY_LOAD_NAME]);
124
  update_option('uninstall_plugins', $uninstallable_plugins);
125
  }
126
  }
@@ -214,7 +214,7 @@ class A3_Lazy_Load_Global_Settings extends A3_Lazy_Load_Admin_UI
214
  array(
215
  'name' => __( 'Clean up on Deletion', 'a3-lazy-load' ),
216
  'desc' => __( 'On deletion (not deactivate) the plugin will completely remove all tables and data it created, leaving no trace it was ever here.', 'a3-lazy-load' ),
217
- 'id' => 'a3_lazy_load_clean_on_deletion',
218
  'type' => 'onoff_checkbox',
219
  'default' => '0',
220
  'separate_option' => true,
118
  /* Process when clean on deletion option is un selected */
119
  /*-----------------------------------------------------------------------------------*/
120
  public function after_save_settings() {
121
+ if ( ( isset( $_POST['bt_save_settings'] ) || isset( $_POST['bt_reset_settings'] ) ) && get_option( $this->plugin_name . '_clean_on_deletion' ) == 0 ) {
122
  $uninstallable_plugins = (array) get_option('uninstall_plugins');
123
+ unset($uninstallable_plugins[ $this->plugin_path ]);
124
  update_option('uninstall_plugins', $uninstallable_plugins);
125
  }
126
  }
214
  array(
215
  'name' => __( 'Clean up on Deletion', 'a3-lazy-load' ),
216
  'desc' => __( 'On deletion (not deactivate) the plugin will completely remove all tables and data it created, leaving no trace it was ever here.', 'a3-lazy-load' ),
217
+ 'id' => $this->plugin_name . '_clean_on_deletion',
218
  'type' => 'onoff_checkbox',
219
  'default' => '0',
220
  'separate_option' => true,
languages/a3-lazy-load.mo CHANGED
Binary file
languages/a3-lazy-load.po CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: a3 Lazy Load\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-03-01 15:57+0700\n"
6
- "PO-Revision-Date: 2017-06-02 17:32+0700\n"
7
  "Last-Translator: Nguyen Cong Tuan <mr.nguyencongtuan@gmail.com>\n"
8
  "Language-Team: a3rev\n"
9
  "Language: en\n"
3
  "Project-Id-Version: a3 Lazy Load\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-03-01 15:57+0700\n"
6
+ "PO-Revision-Date: 2016-03-01 15:57+0700\n"
7
  "Last-Translator: Nguyen Cong Tuan <mr.nguyencongtuan@gmail.com>\n"
8
  "Language-Team: a3rev\n"
9
  "Language: en\n"
languages/a3-lazy-load.pot CHANGED
@@ -3,7 +3,7 @@ msgstr ""
3
  "Project-Id-Version: a3 Lazy Load\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-03-01 15:57+0700\n"
6
- "PO-Revision-Date: 2017-06-02 17:32+0700\n"
7
  "Last-Translator: Nguyen Cong Tuan <mr.nguyencongtuan@gmail.com>\n"
8
  "Language-Team: a3rev\n"
9
  "Language: en\n"
3
  "Project-Id-Version: a3 Lazy Load\n"
4
  "Report-Msgid-Bugs-To: \n"
5
  "POT-Creation-Date: 2016-03-01 15:57+0700\n"
6
+ "PO-Revision-Date: 2016-03-01 15:58+0700\n"
7
  "Last-Translator: Nguyen Cong Tuan <mr.nguyencongtuan@gmail.com>\n"
8
  "Language-Team: a3rev\n"
9
  "Language: en\n"
readme.txt CHANGED
@@ -2,8 +2,8 @@
2
  Contributors: a3rev, a3rev Software, nguyencongtuan
3
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
4
  Requires at least: 4.5
5
- Tested up to: 4.9.2
6
- Stable tag: 1.8.3
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
@@ -115,9 +115,9 @@ Want to add a new language to a3 Lazy Load? Great! You can contribute via [trans
115
 
116
  = Minimum Requirements =
117
 
118
- * WordPress 4.5
119
- * PHP version 5.5.0 or greater
120
- * MySQL version 5.5.0 or greater
121
 
122
  == SCREENSHOTS ==
123
 
@@ -136,6 +136,13 @@ Want to add a new language to a3 Lazy Load? Great! You can contribute via [trans
136
 
137
  == Changelog ==
138
 
 
 
 
 
 
 
 
139
  = 1.8.3 - 2018/01/19 =
140
  * Tweak - Tested for compatibility with WordPress 4.9.2
141
  * Fix - Remove redirect to plugins admin panel when activate the plugin for the first time with WordPress 4.9.2
@@ -286,6 +293,9 @@ Want to add a new language to a3 Lazy Load? Great! You can contribute via [trans
286
 
287
  == Upgrade Notice ==
288
 
 
 
 
289
  = 1.8.3 =
290
  Maintenance Update. 1 redirect Bug fix on first activate on site with WordPress v4.9.2
291
 
2
  Contributors: a3rev, a3rev Software, nguyencongtuan
3
  Tags: a3 lazy load, Lazy Loading , image lazy load, lazyload
4
  Requires at least: 4.5
5
+ Tested up to: 4.9.4
6
+ Stable tag: 1.8.4
7
  License: GPLv3
8
  License URI: http://www.gnu.org/licenses/gpl-3.0.html
9
 
115
 
116
  = Minimum Requirements =
117
 
118
+ * WordPress 4.6 or greater
119
+ * PHP version 5.6.0 or greater
120
+ * MySQL version 5.6 or greater OR MariaDB version 10.0 or greater
121
 
122
  == SCREENSHOTS ==
123
 
136
 
137
  == Changelog ==
138
 
139
+ = 1.8.4 - 2018/02/13 =
140
+ * Maintenance Update. Under the bonnet tweaks to keep your plugin running smoothly and is the foundation for new features to be developed this year
141
+ * Framework - Update a3rev Plugin Framework to version 2.0.2
142
+ * Framework - Add Framework version for all style and script files
143
+ * Tweak - Update for full compatibility with a3rev Dashboard plugin
144
+ * Tweak - Test for compatibility with WordPress 4.9.4
145
+
146
  = 1.8.3 - 2018/01/19 =
147
  * Tweak - Tested for compatibility with WordPress 4.9.2
148
  * Fix - Remove redirect to plugins admin panel when activate the plugin for the first time with WordPress 4.9.2
293
 
294
  == Upgrade Notice ==
295
 
296
+ = 1.8.4 =
297
+ Maintenance Update. This version updates the Plugin Framework to v 2.0.2, adds full compatibility with a3rev dashboard and WordPress v 4.9.4
298
+
299
  = 1.8.3 =
300
  Maintenance Update. 1 redirect Bug fix on first activate on site with WordPress v4.9.2
301
 
uninstall.php CHANGED
@@ -5,24 +5,25 @@
5
  * Uninstalling deletes options, tables, and pages.
6
  *
7
  */
8
- if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
9
  exit();
10
 
11
  global $wpdb;
 
12
 
13
  // Delete Google Font
14
- delete_option('a3_lz_google_api_key');
15
- delete_option('a3_lz_google_api_key' . '_enable');
16
- delete_transient('a3_lz_google_api_key' . '_status');
17
- delete_option('a3_lazy_load' . '_google_font_list');
18
 
19
- if ( get_option('a3_lazy_load_clean_on_deletion') == 1 ) {
20
- delete_option('a3_lz_toggle_box_open');
21
- delete_option('a3_lazy_load' . '-custom-boxes');
 
22
 
23
- delete_metadata( 'user', 0, 'a3_lazy_load' . '-' . 'plugin_framework_global_box' . '-' . 'opened', '', true );
24
 
25
  delete_option( 'a3_lazy_load_global_settings' );
26
 
27
- delete_option( 'a3_lazy_load_clean_on_deletion' );
28
  }
5
  * Uninstalling deletes options, tables, and pages.
6
  *
7
  */
8
+ if( ! defined( 'WP_UNINSTALL_PLUGIN' ) )
9
  exit();
10
 
11
  global $wpdb;
12
+ $plugin_key = 'a3_lazy_load';
13
 
14
  // Delete Google Font
15
+ delete_option( $plugin_key . '_google_api_key' . '_enable' );
16
+ delete_transient( $plugin_key . '_google_api_key' . '_status' );
17
+ delete_option( $plugin_key . '_google_font_list' );
 
18
 
19
+ if ( get_option( $plugin_key . '_clean_on_deletion' ) == 1 ) {
20
+ delete_option( $plugin_key . '_google_api_key' );
21
+ delete_option( $plugin_key . '_toggle_box_open' );
22
+ delete_option( $plugin_key . '-custom-boxes' );
23
 
24
+ delete_metadata( 'user', 0, $plugin_key . '-' . 'plugin_framework_global_box' . '-' . 'opened', '', true );
25
 
26
  delete_option( 'a3_lazy_load_global_settings' );
27
 
28
+ delete_option( $plugin_key . '_clean_on_deletion' );
29
  }