Version Description
- Fixed: minor bug when using quick select with woocommerce
Download this release
Release Info
Developer | intoxstudio |
Plugin | Content Aware Sidebars – Unlimited Widget Areas |
Version | 3.10.1 |
Comparing to | |
See all releases |
Code changes from version 3.9 to 3.10.1
- admin/admin.php +185 -36
- admin/quick_select.php +97 -55
- admin/screen_widgets.php +9 -31
- admin/sidebar-edit.php +54 -175
- admin/sidebar-list-table.php +3 -0
- admin/sidebar-overview.php +62 -48
- app.php +1 -1
- {css → assets/css}/flatpickr.dark.min.css +0 -0
- {css → assets/css}/icon.png +0 -0
- {css → assets/css}/index.php +0 -0
- assets/css/style.css +6 -0
- changelog.txt +50 -5
- content-aware-sidebars.php +1 -1
- css/style.css +0 -6
- gulpfile.js +0 -67
- js/cas_admin.min.js +1 -1
- js/flatpickr.js +2 -0
- js/flatpickr.min.js +1 -1
- js/general.min.js +1 -1
- js/widgets.min.js +1 -1
- lang/content-aware-sidebars-es_ES.mo +0 -0
- lang/content-aware-sidebars-es_ES.po +0 -1016
- lib/wp-content-aware-engine/assets/css/condition_groups.css +1 -1
- lib/wp-content-aware-engine/bootstrap.php +1 -1
- package.json +0 -24
- readme.txt +24 -53
- sidebar.php +8 -8
- view/meta_box_design.php +160 -86
admin/admin.php
CHANGED
@@ -10,7 +10,6 @@ defined('ABSPATH') || exit;
|
|
10 |
|
11 |
abstract class CAS_Admin
|
12 |
{
|
13 |
-
|
14 |
const NONCE_PREFIX_1CLICK = '1click';
|
15 |
|
16 |
/**
|
@@ -22,17 +21,22 @@ abstract class CAS_Admin
|
|
22 |
public function __construct()
|
23 |
{
|
24 |
if (is_admin()) {
|
25 |
-
add_action(
|
26 |
-
|
27 |
-
array($this,'add_menu'),
|
28 |
-
99
|
29 |
-
);
|
30 |
$this->admin_hooks();
|
31 |
-
} else {
|
32 |
-
$this->frontend_hooks();
|
33 |
}
|
34 |
}
|
35 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* Set up screen and menu if necessary
|
38 |
*
|
@@ -41,10 +45,7 @@ abstract class CAS_Admin
|
|
41 |
public function add_menu()
|
42 |
{
|
43 |
$this->_screen = $this->get_screen();
|
44 |
-
add_action(
|
45 |
-
'load-'.$this->_screen,
|
46 |
-
array($this,'load_screen')
|
47 |
-
);
|
48 |
}
|
49 |
|
50 |
/**
|
@@ -56,14 +57,6 @@ abstract class CAS_Admin
|
|
56 |
*/
|
57 |
abstract public function admin_hooks();
|
58 |
|
59 |
-
/**
|
60 |
-
* Add filters and actions for frontend
|
61 |
-
*
|
62 |
-
* @since 3.5
|
63 |
-
* @return void
|
64 |
-
*/
|
65 |
-
abstract public function frontend_hooks();
|
66 |
-
|
67 |
/**
|
68 |
* Get current screen
|
69 |
*
|
@@ -75,7 +68,8 @@ abstract class CAS_Admin
|
|
75 |
/**
|
76 |
* Prepare screen load
|
77 |
*
|
78 |
-
* @since
|
|
|
79 |
* @return void
|
80 |
*/
|
81 |
abstract public function prepare_screen();
|
@@ -83,8 +77,9 @@ abstract class CAS_Admin
|
|
83 |
/**
|
84 |
* Authorize user for screen
|
85 |
*
|
86 |
-
* @since
|
87 |
-
*
|
|
|
88 |
*/
|
89 |
abstract public function authorize_user();
|
90 |
|
@@ -111,21 +106,72 @@ abstract class CAS_Admin
|
|
111 |
);
|
112 |
}
|
113 |
$this->prepare_screen();
|
114 |
-
add_action(
|
115 |
-
'admin_enqueue_scripts',
|
116 |
-
array($this,'add_scripts_styles'),
|
117 |
-
11
|
118 |
-
);
|
119 |
if (!cas_fs()->can_use_premium_code()) {
|
|
|
|
|
120 |
add_thickbox();
|
121 |
-
//enqueue scripts here
|
122 |
-
add_action(
|
123 |
-
'admin_footer',
|
124 |
-
array($this,'render_upgrade_modal')
|
125 |
-
);
|
126 |
}
|
127 |
}
|
128 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
129 |
/**
|
130 |
* Render plugin upgrade modal
|
131 |
*
|
@@ -148,7 +194,7 @@ abstract class CAS_Admin
|
|
148 |
);
|
149 |
echo '<a style="display:none;" class="thickbox js-cas-pro-popup" href="#TB_inline?width=600&height=350&inlineId=pro-popup-notice" title="'.__('Content Aware Sidebars Pro', 'content-aware-sidebars').'"></a>';
|
150 |
echo '<div id="pro-popup-notice" style="display:none;">';
|
151 |
-
echo '<img style="margin-top:15px;" class="alignright" src="'.plugins_url('
|
152 |
echo '
|
153 |
<h2>'.__('Get All Features With Content Aware Sidebars Pro', 'content-aware-sidebars').'</h2>';
|
154 |
echo '<ul>';
|
@@ -161,6 +207,109 @@ abstract class CAS_Admin
|
|
161 |
echo '<p><a class="button-primary" target="_blank" href="'.esc_url(cas_fs()->get_upgrade_url()).'">'.__('Upgrade Now', 'content-aware-sidebars').'</a> <a href="" class="button-secondary js-cas-pro-read-more" target="_blank" href="">'.__('Read More', 'content-aware-sidebars').'</a></p>';
|
162 |
echo '</div>';
|
163 |
}
|
164 |
-
}
|
165 |
|
166 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
10 |
|
11 |
abstract class CAS_Admin
|
12 |
{
|
|
|
13 |
const NONCE_PREFIX_1CLICK = '1click';
|
14 |
|
15 |
/**
|
21 |
public function __construct()
|
22 |
{
|
23 |
if (is_admin()) {
|
24 |
+
$this->add_action('admin_menu', 'add_menu', 99);
|
25 |
+
$this->add_action('wp_ajax_cas_dismiss_review_notice', 'ajax_review_clicked');
|
|
|
|
|
|
|
26 |
$this->admin_hooks();
|
|
|
|
|
27 |
}
|
28 |
}
|
29 |
|
30 |
+
/**
|
31 |
+
* @since 3.10
|
32 |
+
*
|
33 |
+
* @return WP_Post_Type
|
34 |
+
*/
|
35 |
+
protected function get_sidebar_type()
|
36 |
+
{
|
37 |
+
return get_post_type_object(CAS_App::TYPE_SIDEBAR);
|
38 |
+
}
|
39 |
+
|
40 |
/**
|
41 |
* Set up screen and menu if necessary
|
42 |
*
|
45 |
public function add_menu()
|
46 |
{
|
47 |
$this->_screen = $this->get_screen();
|
48 |
+
$this->add_action('load-'.$this->_screen, 'load_screen');
|
|
|
|
|
|
|
49 |
}
|
50 |
|
51 |
/**
|
57 |
*/
|
58 |
abstract public function admin_hooks();
|
59 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
/**
|
61 |
* Get current screen
|
62 |
*
|
68 |
/**
|
69 |
* Prepare screen load
|
70 |
*
|
71 |
+
* @since 3.4
|
72 |
+
*
|
73 |
* @return void
|
74 |
*/
|
75 |
abstract public function prepare_screen();
|
77 |
/**
|
78 |
* Authorize user for screen
|
79 |
*
|
80 |
+
* @since 3.5
|
81 |
+
*
|
82 |
+
* @return bool
|
83 |
*/
|
84 |
abstract public function authorize_user();
|
85 |
|
106 |
);
|
107 |
}
|
108 |
$this->prepare_screen();
|
109 |
+
$this->add_action('admin_enqueue_scripts', 'add_general_scripts_styles', 11);
|
|
|
|
|
|
|
|
|
110 |
if (!cas_fs()->can_use_premium_code()) {
|
111 |
+
$this->add_action('all_admin_notices', 'admin_notice_review');
|
112 |
+
$this->add_action('admin_footer', 'render_upgrade_modal');
|
113 |
add_thickbox();
|
|
|
|
|
|
|
|
|
|
|
114 |
}
|
115 |
}
|
116 |
|
117 |
+
/**
|
118 |
+
* Add general scripts to admin screens
|
119 |
+
*
|
120 |
+
* @since 3.4.1
|
121 |
+
*/
|
122 |
+
public function add_general_scripts_styles()
|
123 |
+
{
|
124 |
+
$this->enqueue_script('cas/admin/general', 'general', array('jquery'), '', true);
|
125 |
+
wp_localize_script('cas/admin/general', 'CAS', array(
|
126 |
+
'showPopups' => !cas_fs()->can_use_premium_code(),
|
127 |
+
'enableConfirm' => __('This sidebar is already scheduled to be activated. Do you want to activate it now?', 'content-aware-sidebars')
|
128 |
+
));
|
129 |
+
$this->enqueue_style('cas/admin/style', 'style');
|
130 |
+
$this->add_scripts_styles();
|
131 |
+
}
|
132 |
+
|
133 |
+
|
134 |
+
/**
|
135 |
+
* Admin notice for Plugin Review
|
136 |
+
*
|
137 |
+
* @since 3.1
|
138 |
+
* @return void
|
139 |
+
*/
|
140 |
+
public function admin_notice_review()
|
141 |
+
{
|
142 |
+
$has_reviewed = get_user_option(CAS_App::META_PREFIX.'cas_review');
|
143 |
+
|
144 |
+
if ($has_reviewed !== false) {
|
145 |
+
return;
|
146 |
+
}
|
147 |
+
|
148 |
+
$tour_manager = new WP_Pointer_Tour(CAS_App::META_PREFIX.'cas_tour');
|
149 |
+
$tour_taken = (int) $tour_manager->get_user_option();
|
150 |
+
if ($tour_taken && (time() - $tour_taken) >= WEEK_IN_SECONDS) {
|
151 |
+
$path = plugin_dir_path(dirname(__FILE__)).'view/';
|
152 |
+
$view = WPCAView::make($path.'notice_review.php', array(
|
153 |
+
'current_user' => wp_get_current_user()
|
154 |
+
))->render();
|
155 |
+
}
|
156 |
+
}
|
157 |
+
|
158 |
+
/**
|
159 |
+
* Set review flag for user
|
160 |
+
*
|
161 |
+
* @since 3.1
|
162 |
+
* @return void
|
163 |
+
*/
|
164 |
+
public function ajax_review_clicked()
|
165 |
+
{
|
166 |
+
$dismiss = isset($_POST['dismiss']) ? (int)$_POST['dismiss'] : 0;
|
167 |
+
if (!$dismiss) {
|
168 |
+
$dismiss = time();
|
169 |
+
}
|
170 |
+
|
171 |
+
echo json_encode(update_user_option(get_current_user_id(), CAS_App::META_PREFIX.'cas_review', $dismiss));
|
172 |
+
die();
|
173 |
+
}
|
174 |
+
|
175 |
/**
|
176 |
* Render plugin upgrade modal
|
177 |
*
|
194 |
);
|
195 |
echo '<a style="display:none;" class="thickbox js-cas-pro-popup" href="#TB_inline?width=600&height=350&inlineId=pro-popup-notice" title="'.__('Content Aware Sidebars Pro', 'content-aware-sidebars').'"></a>';
|
196 |
echo '<div id="pro-popup-notice" style="display:none;">';
|
197 |
+
echo '<img style="margin-top:15px;" class="alignright" src="'.plugins_url('assets/css/icon.png', dirname(__FILE__)).'" width="128" height="128" />';
|
198 |
echo '
|
199 |
<h2>'.__('Get All Features With Content Aware Sidebars Pro', 'content-aware-sidebars').'</h2>';
|
200 |
echo '<ul>';
|
207 |
echo '<p><a class="button-primary" target="_blank" href="'.esc_url(cas_fs()->get_upgrade_url()).'">'.__('Upgrade Now', 'content-aware-sidebars').'</a> <a href="" class="button-secondary js-cas-pro-read-more" target="_blank" href="">'.__('Read More', 'content-aware-sidebars').'</a></p>';
|
208 |
echo '</div>';
|
209 |
}
|
|
|
210 |
|
211 |
+
/**
|
212 |
+
* @since 3.10
|
213 |
+
* @param string $tag
|
214 |
+
* @param string $callback
|
215 |
+
* @param int $priority
|
216 |
+
* @param int $accepted_args
|
217 |
+
*
|
218 |
+
* @return void
|
219 |
+
*/
|
220 |
+
protected function add_action($tag, $callback, $priority = 10, $accepted_args = 1)
|
221 |
+
{
|
222 |
+
if (is_string($callback)) {
|
223 |
+
$callback = array($this, $callback);
|
224 |
+
}
|
225 |
+
add_action($tag, $callback, $priority, $accepted_args);
|
226 |
+
}
|
227 |
+
|
228 |
+
/**
|
229 |
+
* @since 3.10
|
230 |
+
* @param string $tag
|
231 |
+
* @param string $callback
|
232 |
+
* @param int $priority
|
233 |
+
* @param int $accepted_args
|
234 |
+
*
|
235 |
+
* @return void
|
236 |
+
*/
|
237 |
+
protected function add_filter($tag, $callback, $priority = 10, $accepted_args = 1)
|
238 |
+
{
|
239 |
+
if (is_string($callback)) {
|
240 |
+
$callback = array($this, $callback);
|
241 |
+
}
|
242 |
+
add_filter($tag, $callback, $priority, $accepted_args);
|
243 |
+
}
|
244 |
+
|
245 |
+
/**
|
246 |
+
* @since 3.10
|
247 |
+
* @param string $handle
|
248 |
+
* @param string $filename
|
249 |
+
* @param array $deps
|
250 |
+
* @param bool $in_footer
|
251 |
+
* @param string $ver
|
252 |
+
*
|
253 |
+
* @return void
|
254 |
+
*/
|
255 |
+
protected function enqueue_script($handle, $filename, $deps = array(), $ver = '', $in_footer = false)
|
256 |
+
{
|
257 |
+
$this->register_script($handle, $filename, $deps, $ver, $in_footer);
|
258 |
+
wp_enqueue_script($handle);
|
259 |
+
}
|
260 |
+
|
261 |
+
/**
|
262 |
+
* @since 3.10
|
263 |
+
* @param string $handle
|
264 |
+
* @param string $filename
|
265 |
+
* @param array $deps
|
266 |
+
* @param bool $in_footer
|
267 |
+
* @param string $ver
|
268 |
+
*
|
269 |
+
* @return void
|
270 |
+
*/
|
271 |
+
protected function register_script($handle, $filename, $deps = array(), $ver = '', $in_footer = false)
|
272 |
+
{
|
273 |
+
$suffix = '.min.js';
|
274 |
+
if (defined('WP_DEBUG') && WP_DEBUG) {
|
275 |
+
$suffix = '.js';
|
276 |
+
}
|
277 |
+
if ($ver === '') {
|
278 |
+
$ver = CAS_App::PLUGIN_VERSION;
|
279 |
+
}
|
280 |
+
wp_register_script($handle, plugins_url('js/'.$filename.$suffix, dirname(__FILE__)), $deps, $ver, $in_footer);
|
281 |
+
}
|
282 |
+
|
283 |
+
/**
|
284 |
+
* @since 3.10
|
285 |
+
* @param string $handle
|
286 |
+
* @param string $filename
|
287 |
+
* @param array $deps
|
288 |
+
* @param string $ver
|
289 |
+
*
|
290 |
+
* @return void
|
291 |
+
*/
|
292 |
+
protected function enqueue_style($handle, $filename, $deps = array(), $ver = '')
|
293 |
+
{
|
294 |
+
$this->register_style($handle, $filename, $deps, $ver);
|
295 |
+
wp_enqueue_style($handle);
|
296 |
+
}
|
297 |
+
|
298 |
+
/**
|
299 |
+
* @since 3.10
|
300 |
+
* @param string $handle
|
301 |
+
* @param string $filename
|
302 |
+
* @param array $deps
|
303 |
+
* @param string $ver
|
304 |
+
*
|
305 |
+
* @return void
|
306 |
+
*/
|
307 |
+
protected function register_style($handle, $filename, $deps = array(), $ver = '')
|
308 |
+
{
|
309 |
+
$suffix = '.css';
|
310 |
+
if ($ver === '') {
|
311 |
+
$ver = CAS_App::PLUGIN_VERSION;
|
312 |
+
}
|
313 |
+
wp_enqueue_style($handle, plugins_url('assets/css/'.$filename.$suffix, dirname(__FILE__)), $deps, $ver);
|
314 |
+
}
|
315 |
+
}
|
admin/quick_select.php
CHANGED
@@ -11,13 +11,17 @@ defined('ABSPATH') || exit;
|
|
11 |
class CAS_Quick_Select
|
12 |
{
|
13 |
const MODULE_NAME = 'post_type';
|
14 |
-
const NONCE
|
15 |
|
16 |
protected static $_theme_sidebars = array();
|
17 |
|
18 |
public function __construct()
|
19 |
{
|
20 |
new CAS_Post_Type_Sidebar();
|
|
|
|
|
|
|
|
|
21 |
}
|
22 |
|
23 |
/**
|
@@ -29,35 +33,56 @@ class CAS_Quick_Select
|
|
29 |
*/
|
30 |
public static function load_screen($screen)
|
31 |
{
|
32 |
-
|
33 |
//We are on the post edit screen
|
34 |
if ($screen->base == 'post' && $screen->post_type) {
|
35 |
$module = WPCACore::types()->get(CAS_App::TYPE_SIDEBAR)->get(self::MODULE_NAME);
|
36 |
-
if (
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
61 |
}
|
62 |
}
|
63 |
}
|
@@ -77,7 +102,7 @@ class CAS_Quick_Select
|
|
77 |
foreach ($wp_registered_sidebars as $sidebar) {
|
78 |
if (!isset($cas_sidebars[$sidebar['id']])) {
|
79 |
self::$_theme_sidebars[$sidebar['id']] = array(
|
80 |
-
'label'
|
81 |
'options' => array()
|
82 |
);
|
83 |
}
|
@@ -94,6 +119,10 @@ class CAS_Quick_Select
|
|
94 |
*/
|
95 |
public static function save_post_sidebars($post_id, $post)
|
96 |
{
|
|
|
|
|
|
|
|
|
97 |
if (!(isset($_POST[self::NONCE])
|
98 |
&& wp_verify_nonce($_POST[self::NONCE], self::NONCE.$post_id))) {
|
99 |
return;
|
@@ -147,13 +176,13 @@ class CAS_Quick_Select
|
|
147 |
//Add post to group with other posts
|
148 |
$id = intval($sidebar_id);
|
149 |
$condition_groups = get_posts(array(
|
150 |
-
'posts_per_page'
|
151 |
-
'meta_key'
|
152 |
-
'meta_value'
|
153 |
-
'meta_compare'
|
154 |
-
'post_parent'
|
155 |
-
'post_type'
|
156 |
-
'post_status'
|
157 |
));
|
158 |
if ($condition_groups) {
|
159 |
$condition_group_id = $condition_groups[0]->ID;
|
@@ -202,6 +231,10 @@ class CAS_Quick_Select
|
|
202 |
*/
|
203 |
public static function create_meta_boxes($post)
|
204 |
{
|
|
|
|
|
|
|
|
|
205 |
$post_sidebars = self::_get_content_sidebars($post);
|
206 |
|
207 |
$manager = CAS_App::instance()->manager();
|
@@ -210,7 +243,7 @@ class CAS_Quick_Select
|
|
210 |
$host_id = $host_meta->get_data($sidebar->ID);
|
211 |
if (isset(self::$_theme_sidebars[$host_id])) {
|
212 |
self::$_theme_sidebars[$host_id]['options'][$sidebar->ID] = array(
|
213 |
-
'id'
|
214 |
'text' => $sidebar->post_title.self::sidebar_states($sidebar)
|
215 |
);
|
216 |
if (isset($post_sidebars[$sidebar->ID])) {
|
@@ -237,7 +270,7 @@ class CAS_Quick_Select
|
|
237 |
}
|
238 |
$content[] = __('Archive Page', 'content-aware-sidebars');
|
239 |
|
240 |
-
$path = plugin_dir_path(__FILE__).'
|
241 |
$view = WPCAView::make($path.'sidebars_quick_select.php', array(
|
242 |
'post' => $post,
|
243 |
'sidebars' => self::$_theme_sidebars,
|
@@ -292,12 +325,12 @@ class CAS_Quick_Select
|
|
292 |
{
|
293 |
wp_register_script(
|
294 |
'select2',
|
295 |
-
plugins_url('
|
296 |
array('jquery'),
|
297 |
'4.0.3',
|
298 |
false
|
299 |
);
|
300 |
-
wp_register_script('cas/sidebars/suggest', plugins_url('
|
301 |
}
|
302 |
|
303 |
/**
|
@@ -325,6 +358,25 @@ class CAS_Quick_Select
|
|
325 |
wp_localize_script('cas/sidebars/suggest', 'CAS', $labels);
|
326 |
}
|
327 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
/**
|
329 |
* Get sidebars for select post types
|
330 |
*
|
@@ -360,30 +412,20 @@ class CAS_Quick_Select
|
|
360 |
}
|
361 |
|
362 |
/**
|
363 |
-
*
|
|
|
|
|
|
|
|
|
364 |
*/
|
365 |
class CAS_Post_Type_Sidebar
|
366 |
{
|
367 |
public function __construct()
|
368 |
{
|
369 |
-
add_action(
|
370 |
-
'admin_init',
|
371 |
-
array(__CLASS__,'initiate')
|
372 |
-
);
|
373 |
}
|
374 |
|
375 |
-
/**
|
376 |
-
* Backwards compat for users disabling quick select
|
377 |
-
* with remove_action('admin_init',...)
|
378 |
-
*
|
379 |
-
* @since 3.7
|
380 |
-
* @return void
|
381 |
-
*/
|
382 |
public static function initiate()
|
383 |
{
|
384 |
-
add_action(
|
385 |
-
'current_screen',
|
386 |
-
array('CAS_Quick_Select','load_screen')
|
387 |
-
);
|
388 |
}
|
389 |
}
|
11 |
class CAS_Quick_Select
|
12 |
{
|
13 |
const MODULE_NAME = 'post_type';
|
14 |
+
const NONCE = '_cas_nonce';
|
15 |
|
16 |
protected static $_theme_sidebars = array();
|
17 |
|
18 |
public function __construct()
|
19 |
{
|
20 |
new CAS_Post_Type_Sidebar();
|
21 |
+
add_action(
|
22 |
+
'current_screen',
|
23 |
+
array(__CLASS__,'load_screen')
|
24 |
+
);
|
25 |
}
|
26 |
|
27 |
/**
|
33 |
*/
|
34 |
public static function load_screen($screen)
|
35 |
{
|
|
|
36 |
//We are on the post edit screen
|
37 |
if ($screen->base == 'post' && $screen->post_type) {
|
38 |
$module = WPCACore::types()->get(CAS_App::TYPE_SIDEBAR)->get(self::MODULE_NAME);
|
39 |
+
if (!$module) {
|
40 |
+
return;
|
41 |
+
}
|
42 |
+
|
43 |
+
$legacy_removal = !has_action('admin_init', array('CAS_Post_Type_Sidebar','initiate'));
|
44 |
+
|
45 |
+
if ($legacy_removal) {
|
46 |
+
_deprecated_hook(
|
47 |
+
"remove_action('admin_init', array('CAS_Post_Type_Sidebar', 'initiate'))",
|
48 |
+
'3.7',
|
49 |
+
"add_filter('cas/module/quick_select', '__return_false')"
|
50 |
+
);
|
51 |
+
}
|
52 |
+
|
53 |
+
$enable = apply_filters(
|
54 |
+
'cas/module/quick_select',
|
55 |
+
!$legacy_removal,
|
56 |
+
$screen->post_type
|
57 |
+
);
|
58 |
+
|
59 |
+
if (!$enable) {
|
60 |
+
return;
|
61 |
+
}
|
62 |
+
|
63 |
+
$post_types = $module->post_types();
|
64 |
+
self::get_theme_sidebars();
|
65 |
+
if (isset($post_types[$screen->post_type]) && self::$_theme_sidebars) {
|
66 |
+
add_action(
|
67 |
+
'add_meta_boxes_'.$screen->post_type,
|
68 |
+
array(__CLASS__,'create_meta_boxes')
|
69 |
+
);
|
70 |
+
add_action(
|
71 |
+
'save_post_'.$screen->post_type,
|
72 |
+
array(__CLASS__,'save_post_sidebars'),
|
73 |
+
10,
|
74 |
+
2
|
75 |
+
);
|
76 |
+
add_action(
|
77 |
+
'admin_enqueue_scripts',
|
78 |
+
array(__CLASS__,'register_scripts'),
|
79 |
+
8
|
80 |
+
);
|
81 |
+
add_action(
|
82 |
+
'admin_enqueue_scripts',
|
83 |
+
array(__CLASS__,'enqueue_scripts'),
|
84 |
+
11
|
85 |
+
);
|
86 |
}
|
87 |
}
|
88 |
}
|
102 |
foreach ($wp_registered_sidebars as $sidebar) {
|
103 |
if (!isset($cas_sidebars[$sidebar['id']])) {
|
104 |
self::$_theme_sidebars[$sidebar['id']] = array(
|
105 |
+
'label' => $sidebar['name'],
|
106 |
'options' => array()
|
107 |
);
|
108 |
}
|
119 |
*/
|
120 |
public static function save_post_sidebars($post_id, $post)
|
121 |
{
|
122 |
+
if (in_array($post_id, self::get_special_post_ids())) {
|
123 |
+
return;
|
124 |
+
}
|
125 |
+
|
126 |
if (!(isset($_POST[self::NONCE])
|
127 |
&& wp_verify_nonce($_POST[self::NONCE], self::NONCE.$post_id))) {
|
128 |
return;
|
176 |
//Add post to group with other posts
|
177 |
$id = intval($sidebar_id);
|
178 |
$condition_groups = get_posts(array(
|
179 |
+
'posts_per_page' => 1,
|
180 |
+
'meta_key' => $meta_key,
|
181 |
+
'meta_value' => $post->post_type,
|
182 |
+
'meta_compare' => '!=',
|
183 |
+
'post_parent' => $id,
|
184 |
+
'post_type' => WPCACore::TYPE_CONDITION_GROUP,
|
185 |
+
'post_status' => WPCACore::STATUS_PUBLISHED
|
186 |
));
|
187 |
if ($condition_groups) {
|
188 |
$condition_group_id = $condition_groups[0]->ID;
|
231 |
*/
|
232 |
public static function create_meta_boxes($post)
|
233 |
{
|
234 |
+
if (in_array($post->ID, self::get_special_post_ids())) {
|
235 |
+
return;
|
236 |
+
}
|
237 |
+
|
238 |
$post_sidebars = self::_get_content_sidebars($post);
|
239 |
|
240 |
$manager = CAS_App::instance()->manager();
|
243 |
$host_id = $host_meta->get_data($sidebar->ID);
|
244 |
if (isset(self::$_theme_sidebars[$host_id])) {
|
245 |
self::$_theme_sidebars[$host_id]['options'][$sidebar->ID] = array(
|
246 |
+
'id' => $sidebar->ID,
|
247 |
'text' => $sidebar->post_title.self::sidebar_states($sidebar)
|
248 |
);
|
249 |
if (isset($post_sidebars[$sidebar->ID])) {
|
270 |
}
|
271 |
$content[] = __('Archive Page', 'content-aware-sidebars');
|
272 |
|
273 |
+
$path = plugin_dir_path(dirname(__FILE__)).'view/';
|
274 |
$view = WPCAView::make($path.'sidebars_quick_select.php', array(
|
275 |
'post' => $post,
|
276 |
'sidebars' => self::$_theme_sidebars,
|
325 |
{
|
326 |
wp_register_script(
|
327 |
'select2',
|
328 |
+
plugins_url('lib/wp-content-aware-engine/assets/js/select2.min.js', dirname(__FILE__)),
|
329 |
array('jquery'),
|
330 |
'4.0.3',
|
331 |
false
|
332 |
);
|
333 |
+
wp_register_script('cas/sidebars/suggest', plugins_url('js/suggest-sidebars.min.js', dirname(__FILE__)), array('select2'), CAS_App::PLUGIN_VERSION, true);
|
334 |
}
|
335 |
|
336 |
/**
|
358 |
wp_localize_script('cas/sidebars/suggest', 'CAS', $labels);
|
359 |
}
|
360 |
|
361 |
+
/**
|
362 |
+
* @since 3.10.1
|
363 |
+
*
|
364 |
+
* @return array
|
365 |
+
*/
|
366 |
+
protected static function get_special_post_ids()
|
367 |
+
{
|
368 |
+
$special_post_ids = array(
|
369 |
+
get_option('page_on_front'),
|
370 |
+
get_option('page_for_posts'),
|
371 |
+
);
|
372 |
+
|
373 |
+
if (defined('WC_VERSION')) {
|
374 |
+
$special_post_ids[] = get_option('woocommerce_shop_page_id');
|
375 |
+
}
|
376 |
+
|
377 |
+
return $special_post_ids;
|
378 |
+
}
|
379 |
+
|
380 |
/**
|
381 |
* Get sidebars for select post types
|
382 |
*
|
412 |
}
|
413 |
|
414 |
/**
|
415 |
+
* Backwards compat for users disabling quick select
|
416 |
+
* with remove_action('admin_init', array('CAS_Post_Type_Sidebar', 'initiate'))
|
417 |
+
*
|
418 |
+
* @deprecated 3.7
|
419 |
+
* @see add_filter('cas/module/quick_select', ...)
|
420 |
*/
|
421 |
class CAS_Post_Type_Sidebar
|
422 |
{
|
423 |
public function __construct()
|
424 |
{
|
425 |
+
add_action('admin_init', array(__CLASS__,'initiate'));
|
|
|
|
|
|
|
426 |
}
|
427 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
428 |
public static function initiate()
|
429 |
{
|
|
|
|
|
|
|
|
|
430 |
}
|
431 |
}
|
admin/screen_widgets.php
CHANGED
@@ -41,21 +41,15 @@ class CAS_Admin_Screen_Widgets extends CAS_Admin
|
|
41 |
*/
|
42 |
public function prepare_screen()
|
43 |
{
|
44 |
-
add_action(
|
45 |
-
|
46 |
-
array($this,'render_sidebar_controls')
|
47 |
-
);
|
48 |
-
add_filter(
|
49 |
-
'admin_body_class',
|
50 |
-
array($this,'widget_manager_class')
|
51 |
-
);
|
52 |
|
53 |
global $wp_registered_sidebars;
|
54 |
|
55 |
$manager = CAS_App::instance()->manager();
|
56 |
$manager->populate_metadata();
|
57 |
|
58 |
-
$has_host = array(0=>1,1=>1,3=>1);
|
59 |
|
60 |
foreach ($manager->sidebars as $id => $post) {
|
61 |
$handle_meta = $manager->metadata()->get('handle');
|
@@ -65,7 +59,7 @@ class CAS_Admin_Screen_Widgets extends CAS_Admin
|
|
65 |
|
66 |
if (isset($has_host[$handle_meta->get_data($post->ID)])) {
|
67 |
$host = $manager->metadata()->get('host')->get_list_data($post->ID, false);
|
68 |
-
$args['description'] .= ': ' . ($host ? $host : __('
|
69 |
}
|
70 |
|
71 |
$wp_registered_sidebars[$id] = array_merge($wp_registered_sidebars[$id], $args);
|
@@ -81,20 +75,7 @@ class CAS_Admin_Screen_Widgets extends CAS_Admin
|
|
81 |
*/
|
82 |
public function admin_hooks()
|
83 |
{
|
84 |
-
add_action(
|
85 |
-
'wp_ajax_cas_sidebar_status',
|
86 |
-
array($this,'ajax_set_sidebar_status')
|
87 |
-
);
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* Add filters and actions for frontend
|
92 |
-
*
|
93 |
-
* @since 3.5
|
94 |
-
* @return void
|
95 |
-
*/
|
96 |
-
public function frontend_hooks()
|
97 |
-
{
|
98 |
}
|
99 |
|
100 |
/**
|
@@ -154,7 +135,8 @@ class CAS_Admin_Screen_Widgets extends CAS_Admin
|
|
154 |
*/
|
155 |
public function widget_manager_class($classes)
|
156 |
{
|
157 |
-
|
|
|
158 |
$classes .= ' cas-widget-manager ';
|
159 |
}
|
160 |
return $classes;
|
@@ -213,13 +195,9 @@ class CAS_Admin_Screen_Widgets extends CAS_Admin
|
|
213 |
*/
|
214 |
public function add_scripts_styles()
|
215 |
{
|
216 |
-
|
217 |
-
|
218 |
-
$sidebar = get_post_type_object(CAS_App::TYPE_SIDEBAR);
|
219 |
-
|
220 |
-
wp_enqueue_script('cas/admin/widgets', plugins_url('../js/widgets.min.js', __FILE__), array('jquery'), CAS_App::PLUGIN_VERSION, true);
|
221 |
wp_localize_script('cas/admin/widgets', 'CASAdmin', array(
|
222 |
-
'addNew' => $
|
223 |
'collapse' => __('Collapse', 'content-aware-sidebars'),
|
224 |
'expand' => __('Expand', 'content-aware-sidebars'),
|
225 |
'filterSidebars' => __('Search Sidebars', 'content-aware-sidebars'),
|
41 |
*/
|
42 |
public function prepare_screen()
|
43 |
{
|
44 |
+
$this->add_action('dynamic_sidebar_before', 'render_sidebar_controls');
|
45 |
+
$this->add_filter('admin_body_class', 'widget_manager_class');
|
|
|
|
|
|
|
|
|
|
|
|
|
46 |
|
47 |
global $wp_registered_sidebars;
|
48 |
|
49 |
$manager = CAS_App::instance()->manager();
|
50 |
$manager->populate_metadata();
|
51 |
|
52 |
+
$has_host = array(0 => 1,1 => 1,3 => 1);
|
53 |
|
54 |
foreach ($manager->sidebars as $id => $post) {
|
55 |
$handle_meta = $manager->metadata()->get('handle');
|
59 |
|
60 |
if (isset($has_host[$handle_meta->get_data($post->ID)])) {
|
61 |
$host = $manager->metadata()->get('host')->get_list_data($post->ID, false);
|
62 |
+
$args['description'] .= ': ' . ($host ? $host : __('Target not found', 'content-aware-sidebars'));
|
63 |
}
|
64 |
|
65 |
$wp_registered_sidebars[$id] = array_merge($wp_registered_sidebars[$id], $args);
|
75 |
*/
|
76 |
public function admin_hooks()
|
77 |
{
|
78 |
+
$this->add_action('wp_ajax_cas_sidebar_status', 'ajax_set_sidebar_status');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
79 |
}
|
80 |
|
81 |
/**
|
135 |
*/
|
136 |
public function widget_manager_class($classes)
|
137 |
{
|
138 |
+
$enhanced_enabled = apply_filters('cas/module/widget_manager', true);
|
139 |
+
if ($enhanced_enabled && version_compare(get_bloginfo('version'), '4.7', '>=')) {
|
140 |
$classes .= ' cas-widget-manager ';
|
141 |
}
|
142 |
return $classes;
|
195 |
*/
|
196 |
public function add_scripts_styles()
|
197 |
{
|
198 |
+
$this->enqueue_script('cas/admin/widgets', 'widgets', array('jquery'), '', true);
|
|
|
|
|
|
|
|
|
199 |
wp_localize_script('cas/admin/widgets', 'CASAdmin', array(
|
200 |
+
'addNew' => $this->get_sidebar_type()->labels->add_new_item,
|
201 |
'collapse' => __('Collapse', 'content-aware-sidebars'),
|
202 |
'expand' => __('Expand', 'content-aware-sidebars'),
|
203 |
'filterSidebars' => __('Search Sidebars', 'content-aware-sidebars'),
|
admin/sidebar-edit.php
CHANGED
@@ -28,68 +28,18 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
28 |
{
|
29 |
$this->_tour_manager = new WP_Pointer_Tour(CAS_App::META_PREFIX.'cas_tour');
|
30 |
|
31 |
-
add_action(
|
32 |
-
|
33 |
-
array($this,'remove_sidebar_widgets')
|
34 |
-
);
|
35 |
-
add_action(
|
36 |
-
'save_post_'.CAS_App::TYPE_SIDEBAR,
|
37 |
-
array($this,'save_post'),
|
38 |
-
10,
|
39 |
-
2
|
40 |
-
);
|
41 |
-
|
42 |
-
add_filter(
|
43 |
-
'wp_insert_post_data',
|
44 |
-
array($this,'add_duplicate_title_suffix'),
|
45 |
-
99,
|
46 |
-
2
|
47 |
-
);
|
48 |
-
add_filter(
|
49 |
-
'get_edit_post_link',
|
50 |
-
array($this,'get_edit_post_link'),
|
51 |
-
10,
|
52 |
-
3
|
53 |
-
);
|
54 |
-
add_filter(
|
55 |
-
'get_delete_post_link',
|
56 |
-
array($this,'get_delete_post_link'),
|
57 |
-
10,
|
58 |
-
3
|
59 |
-
);
|
60 |
-
|
61 |
-
add_action(
|
62 |
-
'admin_enqueue_scripts',
|
63 |
-
array($this,'add_general_scripts_styles')
|
64 |
-
);
|
65 |
|
|
|
|
|
|
|
66 |
|
67 |
if (!cas_fs()->can_use_premium_code()) {
|
68 |
-
add_action(
|
69 |
-
'wp_ajax_cas_dismiss_review_notice',
|
70 |
-
array($this,'ajax_review_clicked')
|
71 |
-
);
|
72 |
-
add_action(
|
73 |
-
'all_admin_notices',
|
74 |
-
array($this,'admin_notice_review')
|
75 |
-
);
|
76 |
-
add_action(
|
77 |
-
'wpca/modules/init',
|
78 |
-
array($this,'add_modules')
|
79 |
-
);
|
80 |
}
|
81 |
}
|
82 |
|
83 |
-
/**
|
84 |
-
* Add filters and actions for frontend
|
85 |
-
*
|
86 |
-
* @since 3.5
|
87 |
-
* @return void
|
88 |
-
*/
|
89 |
-
public function frontend_hooks()
|
90 |
-
{
|
91 |
-
}
|
92 |
-
|
93 |
/**
|
94 |
* Set up admin menu and get current screen
|
95 |
*
|
@@ -98,7 +48,7 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
98 |
*/
|
99 |
public function get_screen()
|
100 |
{
|
101 |
-
$post_type_object =
|
102 |
return add_submenu_page(
|
103 |
CAS_App::BASE_SCREEN,
|
104 |
$post_type_object->labels->add_new_item,
|
@@ -110,10 +60,9 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
110 |
}
|
111 |
|
112 |
/**
|
113 |
-
*
|
114 |
*
|
115 |
-
* @
|
116 |
-
* @return boolean
|
117 |
*/
|
118 |
public function authorize_user()
|
119 |
{
|
@@ -121,31 +70,26 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
121 |
}
|
122 |
|
123 |
/**
|
124 |
-
*
|
125 |
*
|
126 |
-
* @since 3.4
|
127 |
* @return void
|
128 |
*/
|
129 |
public function prepare_screen()
|
130 |
{
|
131 |
-
add_action(
|
132 |
-
'cas/admin/add_meta_boxes',
|
133 |
-
array($this,'create_meta_boxes')
|
134 |
-
);
|
135 |
|
136 |
global $nav_tabs, $post, $title, $active_post_lock;
|
137 |
|
138 |
$post_type = CAS_App::TYPE_SIDEBAR;
|
139 |
-
$post_type_object =
|
140 |
$post_id = isset($_REQUEST['sidebar_id']) ? $_REQUEST['sidebar_id'] : 0;
|
141 |
|
142 |
-
//process actions
|
143 |
-
$this->process_actions($post_id);
|
144 |
-
|
145 |
/**
|
146 |
* Edit mode
|
147 |
*/
|
148 |
if ($post_id) {
|
|
|
|
|
149 |
$post = get_post($post_id, OBJECT, 'edit');
|
150 |
|
151 |
if (! $post) {
|
@@ -216,9 +160,9 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
216 |
|
217 |
$pro_label = '(Pro)';
|
218 |
$type = $types->get(CAS_App::TYPE_SIDEBAR);
|
219 |
-
$path = plugin_dir_path(__FILE__);
|
220 |
|
221 |
-
require($path.'
|
222 |
|
223 |
$module = new CASConditionPlaceholder('cas_url', __('URLs', 'content-aware-sidebars').' '.$pro_label);
|
224 |
$type->add($module, 'cas_url');
|
@@ -767,7 +711,7 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
767 |
{
|
768 |
$this->create_pointers();
|
769 |
CAS_App::instance()->manager()->populate_metadata();
|
770 |
-
$path = plugin_dir_path(__FILE__).'
|
771 |
|
772 |
$cas_fs = cas_fs();
|
773 |
|
@@ -780,59 +724,48 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
780 |
'priority' => 'high'
|
781 |
);
|
782 |
$boxes[] = array(
|
783 |
-
'id'
|
784 |
-
'title'
|
785 |
-
'view'
|
786 |
-
'context'
|
787 |
-
'priority' => 'default'
|
788 |
);
|
789 |
$boxes[] = array(
|
790 |
-
'id'
|
791 |
-
'title'
|
792 |
-
'view'
|
793 |
-
'context'
|
794 |
-
'priority' => 'default'
|
795 |
);
|
796 |
$boxes[] = array(
|
797 |
-
'id'
|
798 |
-
'title'
|
799 |
-
'view'
|
800 |
-
'context'
|
801 |
-
'priority' => 'default'
|
802 |
);
|
803 |
$boxes[] = array(
|
804 |
-
'id'
|
805 |
-
'title'
|
806 |
-
'view'
|
807 |
-
'context'
|
808 |
-
'priority' => 'default'
|
809 |
);
|
810 |
$boxes[] = array(
|
811 |
-
'id'
|
812 |
-
'title'
|
813 |
-
'view'
|
814 |
-
'context'
|
815 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
);
|
817 |
|
818 |
-
if (!$cas_fs->can_use_premium_code()) {
|
819 |
-
$boxes[] = array(
|
820 |
-
'id' => 'cas-schedule',
|
821 |
-
'title' => __('Time Schedule', 'content-aware-sidebars').' <span class="cas-pro-label">'.__('Pro', 'content-aware-sidebars').'</span>',
|
822 |
-
'view' => 'schedule',
|
823 |
-
'context' => 'section-schedule',
|
824 |
-
'priority' => 'default'
|
825 |
-
);
|
826 |
-
$boxes[] = array(
|
827 |
-
'id' => 'cas-design',
|
828 |
-
'title' => __('Design', 'content-aware-sidebars').' <span class="cas-pro-label">'.__('Pro', 'content-aware-sidebars').'</span>',
|
829 |
-
'view' => 'design',
|
830 |
-
'context' => 'section-design',
|
831 |
-
'priority' => 'default'
|
832 |
-
);
|
833 |
-
}
|
834 |
-
|
835 |
-
//Add meta boxes
|
836 |
foreach ($boxes as $box) {
|
837 |
$view = WPCAView::make($path.'meta_box_'.$box['view'].'.php', array(
|
838 |
'post' => $post
|
@@ -844,7 +777,7 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
844 |
array($view,'render'),
|
845 |
CAS_App::BASE_SCREEN.'-edit',
|
846 |
$box['context'],
|
847 |
-
$box['priority']
|
848 |
);
|
849 |
}
|
850 |
|
@@ -855,41 +788,6 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
855 |
}
|
856 |
}
|
857 |
|
858 |
-
/**
|
859 |
-
* Admin notice for Plugin Review
|
860 |
-
*
|
861 |
-
* @since 3.1
|
862 |
-
* @return void
|
863 |
-
*/
|
864 |
-
public function admin_notice_review()
|
865 |
-
{
|
866 |
-
$has_reviewed = get_user_option(CAS_App::META_PREFIX.'cas_review');
|
867 |
-
$tour_taken = (int) $this->_tour_manager->get_user_option();
|
868 |
-
if ($has_reviewed === false && $tour_taken && (time() - $tour_taken) >= WEEK_IN_SECONDS) {
|
869 |
-
$path = plugin_dir_path(__FILE__).'../view/';
|
870 |
-
$view = WPCAView::make($path.'notice_review.php', array(
|
871 |
-
'current_user' => wp_get_current_user()
|
872 |
-
))->render();
|
873 |
-
}
|
874 |
-
}
|
875 |
-
|
876 |
-
/**
|
877 |
-
* Set review flag for user
|
878 |
-
*
|
879 |
-
* @since 3.1
|
880 |
-
* @return void
|
881 |
-
*/
|
882 |
-
public function ajax_review_clicked()
|
883 |
-
{
|
884 |
-
$dismiss = isset($_POST['dismiss']) ? (int)$_POST['dismiss'] : 0;
|
885 |
-
if (!$dismiss) {
|
886 |
-
$dismiss = time();
|
887 |
-
}
|
888 |
-
|
889 |
-
echo json_encode(update_user_option(get_current_user_id(), CAS_App::META_PREFIX.'cas_review', $dismiss));
|
890 |
-
die();
|
891 |
-
}
|
892 |
-
|
893 |
/**
|
894 |
* Create form field for metadata
|
895 |
* @global object $post
|
@@ -1090,21 +988,6 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
1090 |
return $link;
|
1091 |
}
|
1092 |
|
1093 |
-
/**
|
1094 |
-
* Add general scripts to admin screens
|
1095 |
-
*
|
1096 |
-
* @since 3.4.1
|
1097 |
-
*/
|
1098 |
-
public function add_general_scripts_styles()
|
1099 |
-
{
|
1100 |
-
wp_register_script('cas/admin/general', plugins_url('../js/general.min.js', __FILE__), array('jquery'), CAS_App::PLUGIN_VERSION, true);
|
1101 |
-
wp_enqueue_script('cas/admin/general');
|
1102 |
-
wp_localize_script('cas/admin/general', 'CAS', array(
|
1103 |
-
'showPopups' => !cas_fs()->can_use_premium_code(),
|
1104 |
-
'enableConfirm' => __('This sidebar is already scheduled to be activated. Do you want to activate it now?', 'content-aware-sidebars')
|
1105 |
-
));
|
1106 |
-
}
|
1107 |
-
|
1108 |
/**
|
1109 |
* Register and enqueue scripts styles
|
1110 |
* for screen
|
@@ -1128,18 +1011,16 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
1128 |
wp_enqueue_script('jquery-touch-punch');
|
1129 |
}
|
1130 |
|
1131 |
-
|
1132 |
// Add the local autosave notice HTML
|
1133 |
//add_action( 'admin_footer', '_local_storage_notice' );
|
1134 |
|
1135 |
WPCACore::enqueue_scripts_styles('');
|
1136 |
|
1137 |
-
|
1138 |
-
|
1139 |
-
wp_register_script('cas/admin/edit', plugins_url('../js/cas_admin.min.js', __FILE__), array('jquery','flatpickr','wp-color-picker'), CAS_App::PLUGIN_VERSION, false);
|
1140 |
|
1141 |
-
|
1142 |
-
|
1143 |
|
1144 |
$visibility = array();
|
1145 |
foreach (CAS_App::instance()->_manager->metadata()->get('visibility')->get_input_list() as $category_key => $category) {
|
@@ -1192,8 +1073,6 @@ final class CAS_Sidebar_Edit extends CAS_Admin
|
|
1192 |
'dateFormat' => __('F j, Y') //default long date
|
1193 |
));
|
1194 |
|
1195 |
-
wp_enqueue_style('cas/admin/style');
|
1196 |
-
|
1197 |
//badgeos compat
|
1198 |
//todo: check that developers respond with a fix soon
|
1199 |
wp_register_script('badgeos-select2', '');
|
28 |
{
|
29 |
$this->_tour_manager = new WP_Pointer_Tour(CAS_App::META_PREFIX.'cas_tour');
|
30 |
|
31 |
+
$this->add_action('delete_post', 'remove_sidebar_widgets');
|
32 |
+
$this->add_action('save_post_'.CAS_App::TYPE_SIDEBAR, 'save_post', 10, 2);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
$this->add_filter('wp_insert_post_data', 'add_duplicate_title_suffix', 99, 2);
|
35 |
+
$this->add_filter('get_edit_post_link', 'get_edit_post_link', 10, 3);
|
36 |
+
$this->add_filter('get_delete_post_link', 'get_delete_post_link', 10, 3);
|
37 |
|
38 |
if (!cas_fs()->can_use_premium_code()) {
|
39 |
+
$this->add_action('wpca/modules/init', 'add_modules');
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
40 |
}
|
41 |
}
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
/**
|
44 |
* Set up admin menu and get current screen
|
45 |
*
|
48 |
*/
|
49 |
public function get_screen()
|
50 |
{
|
51 |
+
$post_type_object = $this->get_sidebar_type();
|
52 |
return add_submenu_page(
|
53 |
CAS_App::BASE_SCREEN,
|
54 |
$post_type_object->labels->add_new_item,
|
60 |
}
|
61 |
|
62 |
/**
|
63 |
+
* @since 3.5
|
64 |
*
|
65 |
+
* @return bool
|
|
|
66 |
*/
|
67 |
public function authorize_user()
|
68 |
{
|
70 |
}
|
71 |
|
72 |
/**
|
73 |
+
* @since 3.4
|
74 |
*
|
|
|
75 |
* @return void
|
76 |
*/
|
77 |
public function prepare_screen()
|
78 |
{
|
79 |
+
$this->add_action('cas/admin/add_meta_boxes', 'create_meta_boxes');
|
|
|
|
|
|
|
80 |
|
81 |
global $nav_tabs, $post, $title, $active_post_lock;
|
82 |
|
83 |
$post_type = CAS_App::TYPE_SIDEBAR;
|
84 |
+
$post_type_object = $this->get_sidebar_type();
|
85 |
$post_id = isset($_REQUEST['sidebar_id']) ? $_REQUEST['sidebar_id'] : 0;
|
86 |
|
|
|
|
|
|
|
87 |
/**
|
88 |
* Edit mode
|
89 |
*/
|
90 |
if ($post_id) {
|
91 |
+
$this->process_actions($post_id);
|
92 |
+
|
93 |
$post = get_post($post_id, OBJECT, 'edit');
|
94 |
|
95 |
if (! $post) {
|
160 |
|
161 |
$pro_label = '(Pro)';
|
162 |
$type = $types->get(CAS_App::TYPE_SIDEBAR);
|
163 |
+
$path = plugin_dir_path(dirname(__FILE__));
|
164 |
|
165 |
+
require($path.'conditions/placeholder.php');
|
166 |
|
167 |
$module = new CASConditionPlaceholder('cas_url', __('URLs', 'content-aware-sidebars').' '.$pro_label);
|
168 |
$type->add($module, 'cas_url');
|
711 |
{
|
712 |
$this->create_pointers();
|
713 |
CAS_App::instance()->manager()->populate_metadata();
|
714 |
+
$path = plugin_dir_path(dirname(__FILE__)).'view/';
|
715 |
|
716 |
$cas_fs = cas_fs();
|
717 |
|
724 |
'priority' => 'high'
|
725 |
);
|
726 |
$boxes[] = array(
|
727 |
+
'id' => 'cas-options',
|
728 |
+
'title' => __('How to display', 'content-aware-sidebars'),
|
729 |
+
'view' => 'action',
|
730 |
+
'context' => 'section-action',
|
|
|
731 |
);
|
732 |
$boxes[] = array(
|
733 |
+
'id' => 'cas-status',
|
734 |
+
'title' => __('Status', 'content-aware-sidebars'),
|
735 |
+
'view' => 'status',
|
736 |
+
'context' => 'section-schedule',
|
|
|
737 |
);
|
738 |
$boxes[] = array(
|
739 |
+
'id' => 'cas-widget-html',
|
740 |
+
'title' => __('Styles', 'content-aware-sidebars'),
|
741 |
+
'view' => 'html',
|
742 |
+
'context' => 'section-design',
|
|
|
743 |
);
|
744 |
$boxes[] = array(
|
745 |
+
'id' => 'cas-advanced',
|
746 |
+
'title' => __('Options', 'content-aware-sidebars'),
|
747 |
+
'view' => 'advanced',
|
748 |
+
'context' => 'section-advanced',
|
|
|
749 |
);
|
750 |
$boxes[] = array(
|
751 |
+
'id' => 'cas-plugin-links',
|
752 |
+
'title' => __('Recommendations', 'content-aware-sidebars'),
|
753 |
+
'view' => 'support',
|
754 |
+
'context' => 'side',
|
755 |
+
);
|
756 |
+
$boxes[] = array(
|
757 |
+
'id' => 'cas-schedule',
|
758 |
+
'title' => __('Time Schedule', 'content-aware-sidebars').' <span class="cas-pro-label">'.__('Pro', 'content-aware-sidebars').'</span>',
|
759 |
+
'view' => 'schedule',
|
760 |
+
'context' => 'section-schedule',
|
761 |
+
);
|
762 |
+
$boxes[] = array(
|
763 |
+
'id' => 'cas-design',
|
764 |
+
'title' => __('Design', 'content-aware-sidebars').' <span class="cas-pro-label">'.__('Pro', 'content-aware-sidebars').'</span>',
|
765 |
+
'view' => 'design',
|
766 |
+
'context' => 'section-design',
|
767 |
);
|
768 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
769 |
foreach ($boxes as $box) {
|
770 |
$view = WPCAView::make($path.'meta_box_'.$box['view'].'.php', array(
|
771 |
'post' => $post
|
777 |
array($view,'render'),
|
778 |
CAS_App::BASE_SCREEN.'-edit',
|
779 |
$box['context'],
|
780 |
+
isset($box['priority']) ? $box['priority'] : 'default'
|
781 |
);
|
782 |
}
|
783 |
|
788 |
}
|
789 |
}
|
790 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
791 |
/**
|
792 |
* Create form field for metadata
|
793 |
* @global object $post
|
988 |
return $link;
|
989 |
}
|
990 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
991 |
/**
|
992 |
* Register and enqueue scripts styles
|
993 |
* for screen
|
1011 |
wp_enqueue_script('jquery-touch-punch');
|
1012 |
}
|
1013 |
|
|
|
1014 |
// Add the local autosave notice HTML
|
1015 |
//add_action( 'admin_footer', '_local_storage_notice' );
|
1016 |
|
1017 |
WPCACore::enqueue_scripts_styles('');
|
1018 |
|
1019 |
+
$this->register_script('flatpickr', 'flatpickr', array(), '3.0.6');
|
1020 |
+
$this->register_script('cas/admin/edit', 'cas_admin', array('jquery','flatpickr','wp-color-picker'));
|
|
|
1021 |
|
1022 |
+
$this->enqueue_style('flatpickr', 'flatpickr.dark.min', array(), '3.0.6');
|
1023 |
+
wp_enqueue_style('wp-color-picker');
|
1024 |
|
1025 |
$visibility = array();
|
1026 |
foreach (CAS_App::instance()->_manager->metadata()->get('visibility')->get_input_list() as $category_key => $category) {
|
1073 |
'dateFormat' => __('F j, Y') //default long date
|
1074 |
));
|
1075 |
|
|
|
|
|
1076 |
//badgeos compat
|
1077 |
//todo: check that developers respond with a fix soon
|
1078 |
wp_register_script('badgeos-select2', '');
|
admin/sidebar-list-table.php
CHANGED
@@ -259,6 +259,9 @@ class CAS_Sidebar_List_Table extends WP_List_Table
|
|
259 |
if (current_user_can($post_type_obj->cap->edit_posts)) {
|
260 |
if ($this->is_trash) {
|
261 |
$actions['untrash'] = __('Restore');
|
|
|
|
|
|
|
262 |
}
|
263 |
}
|
264 |
|
259 |
if (current_user_can($post_type_obj->cap->edit_posts)) {
|
260 |
if ($this->is_trash) {
|
261 |
$actions['untrash'] = __('Restore');
|
262 |
+
} else {
|
263 |
+
$actions['activate'] = __('Activate');
|
264 |
+
$actions['deactivate'] = __('Deactivate');
|
265 |
}
|
266 |
}
|
267 |
|
admin/sidebar-overview.php
CHANGED
@@ -26,22 +26,7 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
26 |
*/
|
27 |
public function admin_hooks()
|
28 |
{
|
29 |
-
add_filter(
|
30 |
-
'set-screen-option',
|
31 |
-
array($this,'set_screen_option'),
|
32 |
-
10,
|
33 |
-
3
|
34 |
-
);
|
35 |
-
}
|
36 |
-
|
37 |
-
/**
|
38 |
-
* Add filters and actions for frontend
|
39 |
-
*
|
40 |
-
* @since 3.5
|
41 |
-
* @return void
|
42 |
-
*/
|
43 |
-
public function frontend_hooks()
|
44 |
-
{
|
45 |
}
|
46 |
|
47 |
/**
|
@@ -76,23 +61,19 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
76 |
);
|
77 |
}
|
78 |
|
79 |
-
|
80 |
/**
|
81 |
-
*
|
82 |
*
|
83 |
-
* @
|
84 |
-
* @return boolean
|
85 |
*/
|
86 |
public function authorize_user()
|
87 |
{
|
88 |
-
|
89 |
-
return current_user_can($post_type_object->cap->edit_posts);
|
90 |
}
|
91 |
|
92 |
/**
|
93 |
-
*
|
94 |
*
|
95 |
-
* @since 3.4
|
96 |
* @return void
|
97 |
*/
|
98 |
public function prepare_screen()
|
@@ -176,8 +157,7 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
176 |
|
177 |
$pagenum = $this->table->get_pagenum();
|
178 |
|
179 |
-
$sendback = remove_query_arg(array('trashed', 'untrashed', 'deleted', 'locked', 'ids'), wp_get_referer());
|
180 |
-
|
181 |
$sendback = add_query_arg('paged', $pagenum, $sendback);
|
182 |
|
183 |
if ('delete_all' == $doaction) {
|
@@ -196,11 +176,50 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
196 |
exit;
|
197 |
}
|
198 |
|
|
|
|
|
|
|
199 |
switch ($doaction) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
200 |
case 'trash':
|
201 |
-
$
|
202 |
|
203 |
-
foreach (
|
204 |
if (!current_user_can('delete_post', $post_id)) {
|
205 |
wp_die(__('You are not allowed to move this item to the Trash.'));
|
206 |
}
|
@@ -214,14 +233,13 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
214 |
wp_die(__('Error in moving to Trash.'));
|
215 |
}
|
216 |
|
217 |
-
$
|
218 |
}
|
219 |
|
220 |
-
$sendback = add_query_arg(array('trashed' => $
|
221 |
break;
|
222 |
case 'untrash':
|
223 |
-
$
|
224 |
-
foreach ((array) $post_ids as $post_id) {
|
225 |
if (!current_user_can('delete_post', $post_id)) {
|
226 |
wp_die(__('You are not allowed to restore this item from the Trash.'));
|
227 |
}
|
@@ -230,13 +248,12 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
230 |
wp_die(__('Error in restoring from Trash.'));
|
231 |
}
|
232 |
|
233 |
-
$
|
234 |
}
|
235 |
-
$sendback = add_query_arg('untrashed', $
|
236 |
break;
|
237 |
case 'delete':
|
238 |
-
$
|
239 |
-
foreach ((array) $post_ids as $post_id) {
|
240 |
$post_del = get_post($post_id);
|
241 |
|
242 |
if (!current_user_can('delete_post', $post_id)) {
|
@@ -246,10 +263,9 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
246 |
if (!wp_delete_post($post_id)) {
|
247 |
wp_die(__('Error in deleting.'));
|
248 |
}
|
249 |
-
|
250 |
-
$deleted++;
|
251 |
}
|
252 |
-
$sendback = add_query_arg('deleted', $
|
253 |
break;
|
254 |
}
|
255 |
|
@@ -283,13 +299,14 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
283 |
public function bulk_messages()
|
284 |
{
|
285 |
$manage_widgets = sprintf(' <a href="%1$s">%2$s</a>', 'widgets.php', __('Manage widgets', 'content-aware-sidebars'));
|
286 |
-
|
287 |
$bulk_messages = array(
|
288 |
-
'updated'
|
289 |
-
'locked'
|
290 |
-
'
|
291 |
-
'
|
292 |
-
'
|
|
|
|
|
293 |
);
|
294 |
$bulk_messages = apply_filters('cas/admin/bulk_messages', $bulk_messages);
|
295 |
|
@@ -324,8 +341,5 @@ final class CAS_Sidebar_Overview extends CAS_Admin
|
|
324 |
*/
|
325 |
public function add_scripts_styles()
|
326 |
{
|
327 |
-
wp_register_style('cas/admin/style', plugins_url('../css/style.css', __FILE__), array(), CAS_App::PLUGIN_VERSION);
|
328 |
-
|
329 |
-
wp_enqueue_style('cas/admin/style');
|
330 |
}
|
331 |
}
|
26 |
*/
|
27 |
public function admin_hooks()
|
28 |
{
|
29 |
+
$this->add_filter('set-screen-option', 'set_screen_option', 10, 3);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
30 |
}
|
31 |
|
32 |
/**
|
61 |
);
|
62 |
}
|
63 |
|
|
|
64 |
/**
|
65 |
+
* @since 3.5
|
66 |
*
|
67 |
+
* @return bool
|
|
|
68 |
*/
|
69 |
public function authorize_user()
|
70 |
{
|
71 |
+
return current_user_can($this->get_sidebar_type()->cap->edit_posts);
|
|
|
72 |
}
|
73 |
|
74 |
/**
|
75 |
+
* @since 3.4
|
76 |
*
|
|
|
77 |
* @return void
|
78 |
*/
|
79 |
public function prepare_screen()
|
157 |
|
158 |
$pagenum = $this->table->get_pagenum();
|
159 |
|
160 |
+
$sendback = remove_query_arg(array('activated','deactivated','trashed', 'untrashed', 'deleted', 'locked', 'ids'), wp_get_referer());
|
|
|
161 |
$sendback = add_query_arg('paged', $pagenum, $sendback);
|
162 |
|
163 |
if ('delete_all' == $doaction) {
|
176 |
exit;
|
177 |
}
|
178 |
|
179 |
+
$post_ids = (array)$post_ids;
|
180 |
+
$handled = 0;
|
181 |
+
|
182 |
switch ($doaction) {
|
183 |
+
case 'activate':
|
184 |
+
case 'deactivate':
|
185 |
+
$locked = 0;
|
186 |
+
|
187 |
+
foreach ($post_ids as $post_id) {
|
188 |
+
if (!current_user_can('edit_post', $post_id)) {
|
189 |
+
wp_die(__('You are not allowed to update this item.'));
|
190 |
+
}
|
191 |
+
|
192 |
+
if (wp_check_post_lock($post_id)) {
|
193 |
+
$locked++;
|
194 |
+
continue;
|
195 |
+
}
|
196 |
+
|
197 |
+
if ($doaction == 'activate') {
|
198 |
+
$data = array(
|
199 |
+
'ID' => $post_id,
|
200 |
+
'post_status' => CAS_App::STATUS_ACTIVE,
|
201 |
+
'post_date' => current_time('mysql'),
|
202 |
+
'post_date_gmt' => current_time('mysql', true)
|
203 |
+
);
|
204 |
+
} else {
|
205 |
+
$data = array(
|
206 |
+
'ID' => $post_id,
|
207 |
+
'post_status' => CAS_App::STATUS_INACTIVE
|
208 |
+
);
|
209 |
+
}
|
210 |
+
|
211 |
+
if (!wp_update_post($data)) {
|
212 |
+
wp_die(__('Error in updating status.'));
|
213 |
+
}
|
214 |
+
|
215 |
+
$handled++;
|
216 |
+
}
|
217 |
+
$sendback = add_query_arg(array($doaction.'d' => $handled, 'ids' => join(',', $post_ids), 'locked' => $locked ), $sendback);
|
218 |
+
break;
|
219 |
case 'trash':
|
220 |
+
$locked = 0;
|
221 |
|
222 |
+
foreach ($post_ids as $post_id) {
|
223 |
if (!current_user_can('delete_post', $post_id)) {
|
224 |
wp_die(__('You are not allowed to move this item to the Trash.'));
|
225 |
}
|
233 |
wp_die(__('Error in moving to Trash.'));
|
234 |
}
|
235 |
|
236 |
+
$handled++;
|
237 |
}
|
238 |
|
239 |
+
$sendback = add_query_arg(array('trashed' => $handled, 'ids' => join(',', $post_ids), 'locked' => $locked ), $sendback);
|
240 |
break;
|
241 |
case 'untrash':
|
242 |
+
foreach ($post_ids as $post_id) {
|
|
|
243 |
if (!current_user_can('delete_post', $post_id)) {
|
244 |
wp_die(__('You are not allowed to restore this item from the Trash.'));
|
245 |
}
|
248 |
wp_die(__('Error in restoring from Trash.'));
|
249 |
}
|
250 |
|
251 |
+
$handled++;
|
252 |
}
|
253 |
+
$sendback = add_query_arg('untrashed', $handled, $sendback);
|
254 |
break;
|
255 |
case 'delete':
|
256 |
+
foreach ($post_ids as $post_id) {
|
|
|
257 |
$post_del = get_post($post_id);
|
258 |
|
259 |
if (!current_user_can('delete_post', $post_id)) {
|
263 |
if (!wp_delete_post($post_id)) {
|
264 |
wp_die(__('Error in deleting.'));
|
265 |
}
|
266 |
+
$handled++;
|
|
|
267 |
}
|
268 |
+
$sendback = add_query_arg('deleted', $handled, $sendback);
|
269 |
break;
|
270 |
}
|
271 |
|
299 |
public function bulk_messages()
|
300 |
{
|
301 |
$manage_widgets = sprintf(' <a href="%1$s">%2$s</a>', 'widgets.php', __('Manage widgets', 'content-aware-sidebars'));
|
|
|
302 |
$bulk_messages = array(
|
303 |
+
'updated' => _n_noop('%s sidebar updated.', '%s sidebars updated.', 'content-aware-sidebars'),
|
304 |
+
'locked' => _n_noop('%s sidebar not updated, somebody is editing it.', '%s sidebars not updated, somebody is editing them.', 'content-aware-sidebars'),
|
305 |
+
'activated' => _n_noop('%s sidebar activated.', '%s sidebars activated.', 'content-aware-sidebars'),
|
306 |
+
'deactivated' => _n_noop('%s sidebar deactivated.', '%s sidebars deactivated.', 'content-aware-sidebars'),
|
307 |
+
'deleted' => _n_noop('%s sidebar permanently deleted.', '%s sidebars permanently deleted.', 'content-aware-sidebars'),
|
308 |
+
'trashed' => _n_noop('%s sidebar moved to the Trash.', '%s sidebars moved to the Trash.', 'content-aware-sidebars'),
|
309 |
+
'untrashed' => _n_noop('%s sidebar restored from the Trash.', '%s sidebars restored from the Trash.', 'content-aware-sidebars'),
|
310 |
);
|
311 |
$bulk_messages = apply_filters('cas/admin/bulk_messages', $bulk_messages);
|
312 |
|
341 |
*/
|
342 |
public function add_scripts_styles()
|
343 |
{
|
|
|
|
|
|
|
344 |
}
|
345 |
}
|
app.php
CHANGED
@@ -11,7 +11,7 @@ defined('ABSPATH') || exit;
|
|
11 |
final class CAS_App
|
12 |
{
|
13 |
const PLUGIN_VERSION_KEY = 'cas_db_version';
|
14 |
-
const PLUGIN_VERSION = '3.
|
15 |
|
16 |
/**
|
17 |
* Prefix for sidebar id
|
11 |
final class CAS_App
|
12 |
{
|
13 |
const PLUGIN_VERSION_KEY = 'cas_db_version';
|
14 |
+
const PLUGIN_VERSION = '3.10.1';
|
15 |
|
16 |
/**
|
17 |
* Prefix for sidebar id
|
{css → assets/css}/flatpickr.dark.min.css
RENAMED
File without changes
|
{css → assets/css}/icon.png
RENAMED
File without changes
|
{css → assets/css}/index.php
RENAMED
File without changes
|
assets/css/style.css
ADDED
@@ -0,0 +1,6 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*!
|
2 |
+
* @package Content Aware Sidebars
|
3 |
+
* @author Joachim Jensen <joachim@dev.institute>
|
4 |
+
* @license GPLv3
|
5 |
+
* @copyright 2019 by Joachim Jensen
|
6 |
+
*/#cas-rules .cas-heart{color:#ac170a}.cas-section,.js-cas-action{display:none}.nav-tab-wrapper.js-cas-tabs .nav-tab{position:relative}.nav-tab-active:focus{box-shadow:none}.cas-input-inline{display:inline-block}.cas-input-sm{max-width:80px;font-size:.8em;vertical-align:middle}.cas-metabox-holder .hndle{cursor:auto!important}.cas-metabox-holder .handlediv{display:none!important}#submitdiv .handlediv,#submitdiv .hndle{display:none}#submitdiv .cas-save{background:#f5f5f5;border-bottom:1px solid #ddd;overflow:hidden;padding:7px 10px}#submitdiv .cas-overview-actions{padding:0 10px}#submitdiv .cas-overview-actions .dashicons{color:#82878c}#submitdiv .cas-overview-actions>li{margin:0}#submitdiv .cas-overview-actions>li:not(:last-of-type){padding:0 0 10px;margin:0 0 10px;border-bottom:1px solid #eee}.cas-pro-label{font-size:.8em;background-color:#31c455;border-radius:5px;color:#fff;padding:2px 6px;text-transform:uppercase;vertical-align:baseline;white-space:nowrap;font-weight:700}.button.button-cas-delete{color:#fff;text-decoration:none;background-color:#a00;border:1px solid #000}.button.button-cas-delete:hover{color:#fff;background-color:red}a.cas-delete{color:#a00;text-decoration:none}a.cas-delete:hover{color:red}.cas-schedule-slide.ui-slider{position:relative;margin:12px;border-radius:4px;background:#c5c5c5;color:#333}.cas-schedule-slide.ui-slider .ui-slider-handle{position:absolute;z-index:2;height:24px;width:24px;touch-action:none;text-align:center;border-radius:12px;transition:background .2s}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-default{border:1px solid #c5c5c5;background:#fff;box-shadow:0 0 0 9px #fff inset,0 1px 2px rgba(0,0,0,.15)}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-active{background:#7ad03a;border-color:#999}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-focus:focus{outline:0}.cas-schedule-slide.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#7ad03a}.cas-schedule-slide.ui-slider.ui-state-disabled{opacity:.35;cursor:default!important;pointer-events:none}.cas-schedule-slide.ui-slider.ui-slider-horizontal{height:4px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-handle{margin-left:-12px;top:-12px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-max{right:0}.button.button-cas-upgrade{background:#dd1d0c;color:#fff;border-color:#ac170a;font-weight:700;box-shadow:0 0 0 1px rgba(255,255,255,.3) inset,0 1px 0 #ac170a}.button.button-cas-upgrade:hover{color:#fff;border-color:#ac170a;background:#eb5c50}.button.button-cas-upgrade:active,.button.button-cas-upgrade:focus{color:#fff;background:#dd1d0c;border-color:#ac170a;box-shadow:inset 0 2px 0 #ac170a;vertical-align:top}#cas-plugin-links.postbox{background-color:#ddecf4;border-color:#9fcadf;box-shadow:0 0 0 1px #fff inset,0 1px 1px rgba(0,0,0,.04)}#cas-plugin-links .hndle{border-bottom-color:#9fcadf;box-shadow:0 -1px #fff inset}.wp-list-table.fixed.striped>tbody>:nth-child(2n+1){background-color:#f9f9f9}.wp-list-table.fixed .column-visibility{width:20%}.wp-list-table.fixed .column-handler{width:25%}.wp-list-table.fixed .column-status,.wp-list-table.fixed .column-widgets{width:80px}.wp-list-table.fixed .column-status .dashicons{color:#999}.wp-list-table.fixed .column-status .sidebar-status{display:inline-block;margin-right:6px}.sidebar-status{margin:2px 0 0;position:relative;width:28px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;box-sizing:border-box}.sidebar-status .sidebar-status-input{display:none}.sidebar-status .sidebar-status-label{display:block;overflow:hidden;cursor:pointer;height:16px;padding:0;line-height:16px;border-radius:16px;background-color:#dc3232;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}.sidebar-status .sidebar-status-label:before{content:"";display:block;width:12px;height:12px;margin:0;background:#fff;position:absolute;top:2px;bottom:0;right:14px;border-radius:16px;transition:right .2s ease-in;box-shadow:0 1px 2px rgba(0,0,0,.2)}.sidebar-status .sidebar-status-input:checked+.sidebar-status-label{background-color:#7ad03a}.sidebar-status .sidebar-status-input:checked+.sidebar-status-label:before{right:2px}.sidebar-status .sidebar-status-input.sidebar-status-future:not(:checked)+.sidebar-status-label{background-color:#ffb900}.sidebar-status .sidebar-status-input:disabled+.sidebar-status-label{cursor:auto}.widget-liquid-right .widgets-holder-wrap .sidebar-name h2,.widget-liquid-right .widgets-holder-wrap .sidebar-name h3{text-overflow:ellipsis}.widget-liquid-right .widgets-holder-wrap .cas-settings{border-top:1px solid #dfdfdf;border-bottom:1px solid #dfdfdf;background-color:#f7f7f7;margin-left:-8px;margin-right:-8px;margin-bottom:10px;overflow:hidden}.widget-liquid-right .widgets-holder-wrap .sidebar-status{float:right;margin:10px 10px 0}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link{display:inline-block;border-right:1px solid #dfdfdf;padding:8px 10px;color:#888;text-decoration:none;transition:.4s;box-shadow:none}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link:hover{background-color:#fff;color:#222}.widget-liquid-right .widgets-holder-wrap.closed .cas-settings{display:none}.widget-liquid-right .widgets-holder-wrap div[id^=ca-sidebar]{box-shadow:inset 0 4px 0 #75d7ef}.cas-form-table{width:97%;margin:0 auto}.cas-form-table tr td:first-child{min-width:30%}.cas-form-table tr td{border-bottom:1px solid #eee}.cas-schedule-days{text-transform:uppercase;overflow:hidden;display:inline-block;border:1px solid #dfdfdf;margin:0;border-radius:3px}.cas-schedule-days li{float:left;margin:0}.cas-schedule-days input{display:none}.cas-schedule-days label{transition:background .2s;background:#0085ba;display:block;padding:8px 12px;color:#fff}.cas-schedule-days label:hover{background:#007aab}.cas-schedule-days input:checked+label{color:inherit;background:#f1f1f1}.cas-schedule-days input:checked+label:hover{background:#e9e9e9}.cas-filter-sidebar{max-width:calc(900px + 2%);margin:10px 0;vertical-align:middle}.cas-filter-sidebar .sidebars-toggle{margin:16px 0 0 10px;display:inline-block}.cas-filter-sidebar .sidebars-toggle a{outline:0;box-shadow:none}.cas-filter-sidebar .button{margin:10px 0}.cas-filter-sidebar input{float:right}input.cas-filter{margin:10px 0}.wp-header-end{visibility:visible;margin:14px -20px 0;clear:both}@media (min-width:783px){.cas-widget-manager:not(.widgets_access) #screen-meta{z-index:20}.cas-widget-manager:not(.widgets_access) .widget-liquid-left{position:absolute;top:50px}.cas-widget-manager:not(.widgets_access) .wrap .error,.cas-widget-manager:not(.widgets_access) .wrap .notice,.cas-widget-manager:not(.widgets_access) .wrap .postbox,.cas-widget-manager:not(.widgets_access) .wrap .updated,.cas-widget-manager:not(.widgets_access) .wrap h1{margin:0 0 0 calc(38% + 56px)}.cas-widget-manager:not(.widgets_access) .update-nag{margin-left:calc(38% + 50px)}.cas-widget-manager:not(.widgets_access) #available-widgets{z-index:1;position:fixed;top:32px;padding:0 10px;background:#fafafa;box-shadow:0 0 4px 0 rgba(0,0,0,.1);width:32%;border-color:#dfdfdf;border-style:solid;border-width:0 1px 1px 0;left:160px}.cas-widget-manager:not(.widgets_access) #available-widgets input.cas-filter{width:100%}.cas-widget-manager:not(.widgets_access) #available-widgets .widget{padding-bottom:10px}.cas-widget-manager:not(.widgets_access) #available-widgets #widget-list{border-top:1px solid #dfdfdf;padding:3px;margin:0 -10px;background:#fff}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed){min-height:600px;bottom:0;border-bottom-width:0}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name{position:static}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{display:block;bottom:auto;right:10px}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .toggle-indicator{display:block}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #removing-widget{box-sizing:border-box;padding:10px 0 0;color:#c00;z-index:2;text-align:center;position:absolute;background-color:rgba(255,255,255,.6);border:4px dashed #c00;top:0;left:0;right:0;height:100%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .description{display:none}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{position:fixed;top:120px;padding:12px 10px;overflow-y:auto;overflow-x:hidden;width:calc(32% - 1px);bottom:0}.cas-widget-manager:not(.widgets_access).folded #available-widgets{left:36px;width:37.5%}.cas-widget-manager:not(.widgets_access).folded #available-widgets:not(.closed) #widget-list{width:calc(37.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl .wrap .error,.cas-widget-manager:not(.widgets_access).rtl .wrap .notice,.cas-widget-manager:not(.widgets_access).rtl .wrap .postbox,.cas-widget-manager:not(.widgets_access).rtl .wrap .update-nag,.cas-widget-manager:not(.widgets_access).rtl .wrap .updated,.cas-widget-manager:not(.widgets_access).rtl .wrap h1{margin:0 calc(38% + 56px) 0 0}.cas-widget-manager:not(.widgets_access).rtl .update-nag{margin-right:calc(38% + 50px)}.cas-widget-manager:not(.widgets_access).rtl #available-widgets{box-shadow:0 0 5px 0 rgba(0,0,0,.1);right:160px;left:auto;border-width:0 0 1px 1px}.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{left:10px;right:auto}.cas-widget-manager:not(.widgets_access).rtl.folded #available-widgets{left:auto;right:36px}.cas-widget-manager:not(.widgets_access) #widgets-right .widgets-sortables{z-index:2}.cas-widget-manager div.widget-liquid-right{padding:0;margin:0;width:58%;float:right}.cas-widget-manager div.widget-liquid-left{width:38%;margin:0;float:left;padding:0}.cas-widget-manager .fw-ext-sidebars-wrap-container{float:right}}@media (min-width:783px) and (max-width:960px){.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets{left:36px;width:36%}.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(36% - 1px)}.cas-widget-manager.auto-fold:not(.widgets_access).rtl #available-widgets{left:auto;right:36px}}@media (max-width:782px){input.cas-filter{width:100%}}@media (max-width:1249px){div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:inherit}}@media (min-width:1250px){.cas-widget-manager:not(.widgets_access) #widgets-left #available-widgets .widget:nth-child(even){float:left;margin:0 0 0 2%}.cas-widget-manager:not(.widgets_access) #available-widgets{width:34.5%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(34.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget{float:right;padding-left:2%}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget:nth-child(odd){margin-right:-2%}}
|
changelog.txt
CHANGED
@@ -1,3 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
= 3.7.7 =
|
2 |
|
3 |
* Updated: freemius sdk
|
@@ -40,7 +85,7 @@
|
|
40 |
Added: list of generatepress hooks to insert widget areas in
|
41 |
Fixed: url condition could in some cases not be set
|
42 |
|
43 |
-
= 3.7.1 =
|
44 |
|
45 |
* Added: display only active shortcode sidebars
|
46 |
* Added: UI improvements
|
@@ -49,7 +94,7 @@ Fixed: url condition could in some cases not be set
|
|
49 |
|
50 |
**Pro Plan:**
|
51 |
|
52 |
-
* Added: time schedule for shortcode sidebars
|
53 |
|
54 |
= 3.7 =
|
55 |
|
@@ -119,7 +164,7 @@ Fixed: url condition could in some cases not be set
|
|
119 |
|
120 |
* Added: widget to insert widgets from other sidebars
|
121 |
* Added: 1-click automatic install on checkout
|
122 |
-
* Fixed: avoid auto-draft sidebar adding extra revision
|
123 |
|
124 |
= 3.5.2 =
|
125 |
|
@@ -566,7 +611,7 @@ Fixed: url condition could in some cases not be set
|
|
566 |
|
567 |
= 1.1.2 =
|
568 |
|
569 |
-
* Added: wordpress 3.5 compatibility
|
570 |
* Fixed: slight css changes on edit screen
|
571 |
* Fixed: "show with all" checkbox toggles other checkboxes correctly
|
572 |
|
@@ -580,7 +625,7 @@ Fixed: url condition could in some cases not be set
|
|
580 |
|
581 |
= 1.1 =
|
582 |
|
583 |
-
* Added: improved gui on edit screen including content accordion
|
584 |
* Added: bbpress forum-topic dependency
|
585 |
* Added: sidebars hidden on password protected content
|
586 |
* Added: relevant usermeta cleared on plugin deletion
|
1 |
+
= 3.8.2 =
|
2 |
+
|
3 |
+
* Added: wordpress 5.2 support
|
4 |
+
* Updated: freemius sdk
|
5 |
+
* Updated: ui improvements
|
6 |
+
|
7 |
+
**Pro Plan:**
|
8 |
+
|
9 |
+
* Added: include hidden buddypress groups in user visibility
|
10 |
+
|
11 |
+
= 3.8.1 =
|
12 |
+
|
13 |
+
* Added: wordpress 5.1 support
|
14 |
+
* Updated: freemius sdk - security update
|
15 |
+
* Updated: wp-content-aware-engine library
|
16 |
+
* Fixed: minor bugfixes
|
17 |
+
|
18 |
+
= 3.8 =
|
19 |
+
|
20 |
+
* Added: Overhauled and simplified UI
|
21 |
+
* Added: quick-add conditions
|
22 |
+
* Added: minimum wordpress version 4.5
|
23 |
+
* Added: minimum php version 5.6
|
24 |
+
* Updated: user visibility now has categories
|
25 |
+
* Updated: introduction tour
|
26 |
+
* Updated: singulars/archives condition setting replaced with page type setting
|
27 |
+
* Updated: admin menu renamed to "content aware"
|
28 |
+
* Updated: freemius sdk
|
29 |
+
* Updated: wp-content-aware-engine library
|
30 |
+
* Updated: wp-db-updater library
|
31 |
+
* Fixed: searching for attachments in conditions
|
32 |
+
* Fixed: shop condition not working due to bug in woocommerce
|
33 |
+
* Fixed: some conditions not displaying properly after save
|
34 |
+
* Fixed: better compatibility with plugins loading unnecessary admin scripts
|
35 |
+
|
36 |
+
**Pro Plan:**
|
37 |
+
|
38 |
+
* Added: widget cleaner
|
39 |
+
* Added: buddypress groups in user visibility
|
40 |
+
* Added: "author of content" in user visibility
|
41 |
+
* Updated: performance improvements for url condition
|
42 |
+
* Updated: performance improvements for date condition
|
43 |
+
* Fixed: no longer necessary to enable styling before using widget area designer
|
44 |
+
* Fixed: time schedule now shows time format from settings (12/24h)
|
45 |
+
|
46 |
= 3.7.7 =
|
47 |
|
48 |
* Updated: freemius sdk
|
85 |
Added: list of generatepress hooks to insert widget areas in
|
86 |
Fixed: url condition could in some cases not be set
|
87 |
|
88 |
+
= 3.7.1 =
|
89 |
|
90 |
* Added: display only active shortcode sidebars
|
91 |
* Added: UI improvements
|
94 |
|
95 |
**Pro Plan:**
|
96 |
|
97 |
+
* Added: time schedule for shortcode sidebars
|
98 |
|
99 |
= 3.7 =
|
100 |
|
164 |
|
165 |
* Added: widget to insert widgets from other sidebars
|
166 |
* Added: 1-click automatic install on checkout
|
167 |
+
* Fixed: avoid auto-draft sidebar adding extra revision
|
168 |
|
169 |
= 3.5.2 =
|
170 |
|
611 |
|
612 |
= 1.1.2 =
|
613 |
|
614 |
+
* Added: wordpress 3.5 compatibility
|
615 |
* Fixed: slight css changes on edit screen
|
616 |
* Fixed: "show with all" checkbox toggles other checkboxes correctly
|
617 |
|
625 |
|
626 |
= 1.1 =
|
627 |
|
628 |
+
* Added: improved gui on edit screen including content accordion
|
629 |
* Added: bbpress forum-topic dependency
|
630 |
* Added: sidebars hidden on password protected content
|
631 |
* Added: relevant usermeta cleared on plugin deletion
|
content-aware-sidebars.php
CHANGED
@@ -9,7 +9,7 @@
|
|
9 |
Plugin Name: Content Aware Sidebars
|
10 |
Plugin URI: https://dev.institute/wordpress-sidebars/
|
11 |
Description: Unlimited custom sidebars and widget areas for any post, page, category etc.
|
12 |
-
Version: 3.
|
13 |
Author: Joachim Jensen - DEV Institute
|
14 |
Author URI: https://dev.institute
|
15 |
Text Domain: content-aware-sidebars
|
9 |
Plugin Name: Content Aware Sidebars
|
10 |
Plugin URI: https://dev.institute/wordpress-sidebars/
|
11 |
Description: Unlimited custom sidebars and widget areas for any post, page, category etc.
|
12 |
+
Version: 3.10.1
|
13 |
Author: Joachim Jensen - DEV Institute
|
14 |
Author URI: https://dev.institute
|
15 |
Text Domain: content-aware-sidebars
|
css/style.css
DELETED
@@ -1,6 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
* @package Content Aware Sidebars
|
3 |
-
* @author Joachim Jensen <joachim@dev.institute>
|
4 |
-
* @license GPLv3
|
5 |
-
* @copyright 2019 by Joachim Jensen
|
6 |
-
*/#cas-rules .cas-heart{color:#ac170a}.cas-section,.js-cas-action{display:none}.nav-tab-wrapper.js-cas-tabs .nav-tab{position:relative}.nav-tab-active:focus{box-shadow:none}.cas-input-sm{max-width:65px;font-size:.8em;vertical-align:middle}.cas-metabox-holder .hndle{cursor:auto!important}.cas-metabox-holder .handlediv{display:none!important}#submitdiv .handlediv,#submitdiv .hndle{display:none}#submitdiv .cas-save{background:#f5f5f5;border-bottom:1px solid #ddd;overflow:hidden;padding:7px 10px}#submitdiv .cas-overview-actions{padding:0 10px}#submitdiv .cas-overview-actions .dashicons{color:#82878c}#submitdiv .cas-overview-actions>li{margin:0}#submitdiv .cas-overview-actions>li:not(:last-of-type){padding:0 0 10px;margin:0 0 10px;border-bottom:1px solid #eee}.cas-pro-label{font-size:.8em;background-color:#31c455;border-radius:5px;color:#fff;padding:2px 6px;text-transform:uppercase;vertical-align:baseline;white-space:nowrap;font-weight:700}.button.button-cas-delete{color:#fff;text-decoration:none;background-color:#a00;border:1px solid #000}.button.button-cas-delete:hover{color:#fff;background-color:red}a.cas-delete{color:#a00;text-decoration:none}a.cas-delete:hover{color:red}.cas-schedule-slide.ui-slider{position:relative;margin:12px;border-radius:4px;background:#c5c5c5;color:#333}.cas-schedule-slide.ui-slider .ui-slider-handle{position:absolute;z-index:2;height:24px;width:24px;-ms-touch-action:none;touch-action:none;text-align:center;border-radius:12px;transition:background .2s ease}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-default{border:1px solid #c5c5c5;background:#fff;box-shadow:0 0 0 9px #fff inset,0 1px 2px rgba(0,0,0,.15)}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-active{background:#7ad03a;border-color:#999}.cas-schedule-slide.ui-slider .ui-slider-handle.ui-state-focus:focus{outline:0}.cas-schedule-slide.ui-slider .ui-slider-range{position:absolute;z-index:1;font-size:.7em;display:block;border:0;background:#7ad03a}.cas-schedule-slide.ui-slider.ui-state-disabled{opacity:.35;cursor:default!important;pointer-events:none}.cas-schedule-slide.ui-slider.ui-slider-horizontal{height:4px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-handle{margin-left:-12px;top:-12px}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range{top:0;height:100%}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-min{left:0}.cas-schedule-slide.ui-slider.ui-slider-horizontal .ui-slider-range-max{right:0}.button.button-cas-upgrade{background:#dd1d0c;color:#fff;border-color:#ac170a;font-weight:700;box-shadow:0 0 0 1px rgba(255,255,255,.3) inset,0 1px 0 #ac170a}.button.button-cas-upgrade:hover{color:#fff;border-color:#ac170a;background:#eb5c50}.button.button-cas-upgrade:active,.button.button-cas-upgrade:focus{color:#fff;background:#dd1d0c;border-color:#ac170a;box-shadow:inset 0 2px 0 #ac170a;vertical-align:top}#cas-plugin-links.postbox{background-color:#ddecf4;border-color:#9fcadf;box-shadow:0 0 0 1px #fff inset,0 1px 1px rgba(0,0,0,.04)}#cas-plugin-links .hndle{border-bottom-color:#9fcadf;box-shadow:0 -1px #fff inset}.wp-list-table.fixed.striped>tbody>:nth-child(2n+1){background-color:#f9f9f9}.wp-list-table.fixed .column-visibility{width:20%}.wp-list-table.fixed .column-handler{width:25%}.wp-list-table.fixed .column-status,.wp-list-table.fixed .column-widgets{width:80px}.wp-list-table.fixed .column-status .dashicons{color:#999}.wp-list-table.fixed .column-status .sidebar-status{display:inline-block;margin-right:6px}.sidebar-status{margin:2px 0 0;position:relative;width:28px;-webkit-user-select:none;-moz-user-select:none;-ms-user-select:none;box-sizing:border-box}.sidebar-status .sidebar-status-input{display:none}.sidebar-status .sidebar-status-label{display:block;overflow:hidden;cursor:pointer;height:16px;padding:0;line-height:16px;border-radius:16px;background-color:#dc3232;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}.sidebar-status .sidebar-status-label:before{content:"";display:block;width:12px;height:12px;margin:0;background:#FFF;position:absolute;top:2px;bottom:0;right:14px;border-radius:16px;transition:right .2s ease-in 0s;box-shadow:0 1px 2px rgba(0,0,0,.2)}.sidebar-status .sidebar-status-input:checked+.sidebar-status-label{background-color:#7ad03a}.sidebar-status .sidebar-status-input:checked+.sidebar-status-label:before{right:2px}.sidebar-status .sidebar-status-input.sidebar-status-future:not(:checked)+.sidebar-status-label{background-color:#ffb900}.sidebar-status .sidebar-status-input:disabled+.sidebar-status-label{cursor:auto}.widget-liquid-right .widgets-holder-wrap .sidebar-name h2,.widget-liquid-right .widgets-holder-wrap .sidebar-name h3{text-overflow:ellipsis}.widget-liquid-right .widgets-holder-wrap .cas-settings{border-top:1px solid #DFDFDF;border-bottom:1px solid #DFDFDF;background-color:#f7f7f7;margin-left:-8px;margin-right:-8px;margin-bottom:10px;overflow:hidden}.widget-liquid-right .widgets-holder-wrap .sidebar-status{float:right;margin:10px 10px 0}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link{display:inline-block;border-right:1px solid #DFDFDF;padding:8px 10px;color:#888;text-decoration:none;transition:all .4s ease;box-shadow:none}.widget-liquid-right .widgets-holder-wrap .cas-sidebar-link:hover{background-color:#fff;color:#222}.widget-liquid-right .widgets-holder-wrap.closed .cas-settings{display:none}.widget-liquid-right .widgets-holder-wrap div[id^=ca-sidebar]{box-shadow:inset 0 4px 0 #75d7ef}.cas-form-table{width:97%;margin:0 auto}.cas-form-table tr td:first-child{min-width:30%}.cas-form-table tr td{border-bottom:1px solid #eee}.cas-schedule-days{text-transform:uppercase;overflow:hidden;display:inline-block;border:1px solid #DFDFDF;margin:0;border-radius:3px}.cas-schedule-days li{float:left;margin:0}.cas-schedule-days input{display:none}.cas-schedule-days label{transition:background .2s;background:#0085BA;display:block;padding:8px 12px;color:#fff}.cas-schedule-days label:hover{background:#007aab}.cas-schedule-days input:checked+label{color:inherit;background:#f1f1f1}.cas-schedule-days input:checked+label:hover{background:#e9e9e9}.cas-filter-sidebar{max-width:calc(900px + 2%);margin:10px 0;vertical-align:middle}.cas-filter-sidebar .sidebars-toggle{margin:16px 0 0 10px;display:inline-block}.cas-filter-sidebar .button,input.cas-filter{margin:10px 0}.cas-filter-sidebar .sidebars-toggle a{outline:0;box-shadow:none}.cas-filter-sidebar input{float:right}.wp-header-end{visibility:visible;margin:14px -20px 0;clear:both}@media (min-width:783px){.cas-widget-manager:not(.widgets_access) #screen-meta{z-index:20}.cas-widget-manager:not(.widgets_access) .widget-liquid-left{position:absolute;top:50px}.cas-widget-manager:not(.widgets_access) .wrap .error,.cas-widget-manager:not(.widgets_access) .wrap .notice,.cas-widget-manager:not(.widgets_access) .wrap .postbox,.cas-widget-manager:not(.widgets_access) .wrap .updated,.cas-widget-manager:not(.widgets_access) .wrap h1{margin:0 0 0 calc(38% + 56px)}.cas-widget-manager:not(.widgets_access) .update-nag{margin-left:calc(38% + 50px)}.cas-widget-manager:not(.widgets_access) #available-widgets{z-index:1;position:fixed;top:32px;padding:0 10px;background:#fafafa;box-shadow:0 0 4px 0 rgba(0,0,0,.1);width:32%;border-color:#DFDFDF;border-style:solid;border-width:0 1px 1px 0;left:160px}.cas-widget-manager:not(.widgets_access) #available-widgets input.cas-filter{width:100%}.cas-widget-manager:not(.widgets_access) #available-widgets .widget{padding-bottom:10px}.cas-widget-manager:not(.widgets_access) #available-widgets #widget-list{border-top:1px solid #DFDFDF;padding:3px;margin:0 -10px;background:#fff}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed){min-height:600px;bottom:0;border-bottom-width:0}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name{position:static}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{display:block;bottom:auto;right:10px}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .sidebar-name .toggle-indicator{display:block}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #removing-widget{box-sizing:border-box;padding:10px 0 0;color:#c00;z-index:2;text-align:center;position:absolute;background-color:rgba(255,255,255,.6);border:4px dashed #c00;top:0;left:0;right:0;height:100%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) .description{display:none}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{position:fixed;top:120px;padding:12px 10px;overflow-y:auto;overflow-x:hidden;width:calc(32% - 1px);bottom:0}.cas-widget-manager:not(.widgets_access).folded #available-widgets{left:36px;width:37.5%}.cas-widget-manager:not(.widgets_access).folded #available-widgets:not(.closed) #widget-list{width:calc(37.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl .wrap .error,.cas-widget-manager:not(.widgets_access).rtl .wrap .notice,.cas-widget-manager:not(.widgets_access).rtl .wrap .postbox,.cas-widget-manager:not(.widgets_access).rtl .wrap .update-nag,.cas-widget-manager:not(.widgets_access).rtl .wrap .updated,.cas-widget-manager:not(.widgets_access).rtl .wrap h1{margin:0 calc(38% + 56px) 0 0}.cas-widget-manager:not(.widgets_access).rtl .update-nag{margin-right:calc(38% + 50px)}.cas-widget-manager:not(.widgets_access).rtl #available-widgets{box-shadow:0 0 5px 0 rgba(0,0,0,.1);right:160px;left:auto;border-width:0 0 1px 1px}.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .handlediv,.cas-widget-manager:not(.widgets_access).rtl #available-widgets:not(.closed) .sidebar-name .sidebar-name-arrow{left:10px;right:auto}.cas-widget-manager:not(.widgets_access).rtl.folded #available-widgets{left:auto;right:36px}.cas-widget-manager:not(.widgets_access) #widgets-right .widgets-sortables{z-index:2}}@media (min-width:783px) and (max-width:960px){.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets{left:36px;width:36%}.cas-widget-manager.auto-fold:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(36% - 1px)}.cas-widget-manager.auto-fold:not(.widgets_access).rtl #available-widgets{left:auto;right:36px}}@media (max-width:782px){input.cas-filter{width:100%}}@media (max-width:1249px){div#widgets-right .sidebars-column-1,div#widgets-right .sidebars-column-2{max-width:inherit}}@media (min-width:1250px){.cas-widget-manager:not(.widgets_access) #widgets-left #available-widgets .widget:nth-child(even){float:left;margin:0 0 0 2%}.cas-widget-manager:not(.widgets_access) #available-widgets{width:34.5%}.cas-widget-manager:not(.widgets_access) #available-widgets:not(.closed) #widget-list{width:calc(34.5% - 1px)}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget{float:right;padding-left:2%}.cas-widget-manager:not(.widgets_access).rtl #widgets-left #available-widgets .widget:nth-child(odd){margin-right:-2%}}@media (min-width:783px){.cas-widget-manager div.widget-liquid-right{padding:0;margin:0;width:58%;float:right}.cas-widget-manager div.widget-liquid-left{width:38%;margin:0;float:left;padding:0}.cas-widget-manager .fw-ext-sidebars-wrap-container{float:right}}
|
|
|
|
|
|
|
|
|
|
|
|
gulpfile.js
DELETED
@@ -1,67 +0,0 @@
|
|
1 |
-
'use strict';
|
2 |
-
const gulp = require('gulp');
|
3 |
-
const less = require('gulp-less');
|
4 |
-
const uglify = require('gulp-uglify');
|
5 |
-
const rename = require("gulp-rename");
|
6 |
-
const zip = require("gulp-zip");
|
7 |
-
const freemius = require("gulp-freemius-deploy");
|
8 |
-
const fs_config = require( './fs-config.json' );
|
9 |
-
|
10 |
-
gulp.task('less', function (done) {
|
11 |
-
return gulp.src('css/style.less')
|
12 |
-
.pipe(less({
|
13 |
-
plugins: [
|
14 |
-
new (require('less-plugin-autoprefix'))({ browsers: ['last 2 versions'] }),
|
15 |
-
new (require('less-plugin-clean-css'))({advanced:true})
|
16 |
-
]
|
17 |
-
}))
|
18 |
-
.pipe(gulp.dest('css'));
|
19 |
-
});
|
20 |
-
|
21 |
-
gulp.task('uglify', function () {
|
22 |
-
return gulp.src(['js/*.js','!js/*.min.js'])
|
23 |
-
.pipe(uglify({
|
24 |
-
compress: {
|
25 |
-
drop_console: true
|
26 |
-
},
|
27 |
-
mangle: {
|
28 |
-
reserved: ['jQuery', 'CASAdmin','$']
|
29 |
-
},
|
30 |
-
output: {
|
31 |
-
comments: 'some'
|
32 |
-
},
|
33 |
-
warnings: false
|
34 |
-
}))
|
35 |
-
.pipe(rename({extname: '.min.js'}))
|
36 |
-
.pipe(gulp.dest('js'));
|
37 |
-
});
|
38 |
-
|
39 |
-
gulp.task('zip', function() {
|
40 |
-
return gulp.src(['**','!fs-config.json','!**/*.less','!build{,/**}','!**/node_modules{,/**}'],{base:'../'})
|
41 |
-
.pipe(zip('content-aware-sidebars.zip'))
|
42 |
-
.pipe(gulp.dest('build'));
|
43 |
-
});
|
44 |
-
|
45 |
-
gulp.task('freemius', function() {
|
46 |
-
return freemius( gulp, {
|
47 |
-
developer_id : fs_config.developer_id,
|
48 |
-
plugin_id : fs_config.plugin_id,
|
49 |
-
public_key : fs_config.public_key,
|
50 |
-
secret_key : fs_config.secret_key,
|
51 |
-
zip_name : 'content-aware-sidebars.zip',
|
52 |
-
zip_path : 'build/',
|
53 |
-
add_contributor: true
|
54 |
-
});
|
55 |
-
});
|
56 |
-
|
57 |
-
gulp.task('watch', function() {
|
58 |
-
gulp.watch('css/style.less', gulp.parallel('less'));
|
59 |
-
gulp.watch(['js/*.js','!js/*.min.js'], gulp.parallel('uglify'));
|
60 |
-
});
|
61 |
-
|
62 |
-
gulp.task('build', gulp.parallel('less','uglify'));
|
63 |
-
|
64 |
-
gulp.task('deploy', gulp.series('build','zip'));
|
65 |
-
|
66 |
-
gulp.task('default', gulp.parallel('build'));
|
67 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
js/cas_admin.min.js
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
-
!function($){"use strict";var
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
+
!function($){"use strict";var n={current_section:0,sections:[],init:function(){this.tabController(),this.actionOptionHandler(),this.suggestVisibility(),this.initSidebarActivation(),$(".js-cas-color-field").wpColorPicker(),$(".js-cas-html").on("change",function(t){var e=$(this);$(e.data("target")).attr("disabled",!e.is(":checked"))}).trigger("change")},initSidebarActivation:function(){flatpickr.l10ns.default.weekdays=CASAdmin.weekdays,flatpickr.l10ns.default.months=CASAdmin.months,flatpickr.l10ns.default.firstDayOfWeek=CASAdmin.weekStart;var t=-1===CASAdmin.timeFormat.toLowerCase().indexOf("a"),i=flatpickr(".js-cas-activation",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:t,allowInput:!0,enableSeconds:!0,onChange:function(t,e,n){(e||a.config.minDate)&&a.set("minDate",e?new Date(t).fp_incr(1):null),e?s.prop("checked",!1):s.is(":checked")||a.clear()}}),a=flatpickr(".js-cas-expiry",{wrap:!0,clickOpens:!0,enableTime:!0,time_24hr:t,allowInput:!0,enableSeconds:!0,onChange:function(t,e,n){(e||i.config.maxDate)&&i.set("maxDate",e?new Date(t).fp_incr(-1):null)}}),s=$(".js-cas-status");s.on("change",function(t){$(this).is(":checked")?i.clear():i.selectedDates.length||a.clear()})},initTabSections:function(){$(".js-cas-tabs").find(".nav-tab").each(function(){var t=this.href.lastIndexOf("#");if(0<=t){var e=this.href.substr(t);n.sections.push(e),$(e).hide()}})},tabController:function(){this.initTabSections(),this.setCurrentSection(window.location.hash),$("#poststuff").on("click",".js-nav-link",function(t){n.setCurrentSection(this.href)})},findSectionByURL:function(t){var e=this.sections.indexOf(t.substring(t.lastIndexOf("#")));return 0<=e?e:null},setCurrentSection:function(t){var e=this.findSectionByURL(t)||0,n=$(".js-cas-tabs").find(".nav-tab");n.eq(e).is(":visible")&&($(this.sections[this.current_section]).hide(),n.eq(this.current_section).removeClass("nav-tab-active"),this.current_section=e,$(this.sections[this.current_section]).show(),n.eq(this.current_section).addClass("nav-tab-active"),$("#_cas_section").val("#top"+this.sections[this.current_section]))},actionOptionHandler:function(){var t=$("#cas-options"),n=t.find(".js-cas-action");t.on("change",".js-cas-handle",function(){var t=$(this),e=n.filter(".js-cas-action-"+t.val());n.not(e).hide().find("input,select").attr("disabled",!0),e.fadeIn("fast").find("input,select").attr("disabled",!1)}),t.find(".js-cas-handle").trigger("change")},suggestVisibility:function(){var e=$(".js-cas-visibility");e.select2({theme:"wpca",placeholder:CASAdmin.allVisibility,minimumInputLength:0,closeOnSelect:!0,allowClear:!1,nextSearchTerm:function(t,e){return e},data:CASAdmin.visibility}).on("select2:selecting",function(t){e.data("forceOpen",!0)}).on("select2:close",function(t){e.data("forceOpen")&&(t.preventDefault(),e.select2("open"),e.data("forceOpen",!1))}),e.data("value")&&e.val(e.data("value").toString().split(",")).trigger("change")}};$(document).ready(function(){n.init()})}(jQuery);
|
js/flatpickr.js
ADDED
@@ -0,0 +1,2 @@
|
|
|
|
|
1 |
+
/*! flatpickr v3.0.6, @license MIT */
|
2 |
+
function FlatpickrInstance(e,t){function n(e){return e.bind(De)}function a(e){De.config.noCalendar&&!De.selectedDates.length&&(De.selectedDates=[De.now]),he(e),De.selectedDates.length&&(!De.minDateHasTime||"input"!==e.type||e.target.value.length>=2?(i(),le()):setTimeout(function(){i(),le()},1e3))}function i(){if(De.config.enableTime){var e=(parseInt(De.hourElement.value,10)||0)%(De.amPM?12:24),t=(parseInt(De.minuteElement.value,10)||0)%60,n=De.config.enableSeconds?(parseInt(De.secondElement.value,10)||0)%60:0;void 0!==De.amPM&&(e=e%12+12*("PM"===De.amPM.textContent)),De.minDateHasTime&&0===pe(De.latestSelectedDateObj,De.config.minDate)&&(e=Math.max(e,De.config.minDate.getHours()))===De.config.minDate.getHours()&&(t=Math.max(t,De.config.minDate.getMinutes())),De.maxDateHasTime&&0===pe(De.latestSelectedDateObj,De.config.maxDate)&&(e=Math.min(e,De.config.maxDate.getHours()))===De.config.maxDate.getHours()&&(t=Math.min(t,De.config.maxDate.getMinutes())),o(e,t,n)}}function r(e){var t=e||De.latestSelectedDateObj;t&&o(t.getHours(),t.getMinutes(),t.getSeconds())}function o(e,t,n){De.selectedDates.length&&De.latestSelectedDateObj.setHours(e%24,t,n||0,0),De.config.enableTime&&!De.isMobile&&(De.hourElement.value=De.pad(De.config.time_24hr?e:(12+e)%12+12*(e%12==0)),De.minuteElement.value=De.pad(t),De.config.time_24hr||(De.amPM.textContent=e>=12?"PM":"AM"),!0===De.config.enableSeconds&&(De.secondElement.value=De.pad(n)))}function l(e){var t=e.target.value;e.delta&&(t=(parseInt(t)+e.delta).toString()),4!==t.length&&"Enter"!==e.key||(De.currentYearElement.blur(),/[^\d]/.test(t)||O(t))}function c(e,t,n){return t instanceof Array?t.forEach(function(t){return c(e,t,n)}):e instanceof Array?e.forEach(function(e){return c(e,t,n)}):(e.addEventListener(t,n),void De._handlers.push({element:e,event:t,handler:n}))}function s(e){return function(t){return 1===t.which&&e(t)}}function d(){if(De._handlers=[],De._animationLoop=[],De.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(De.element.querySelectorAll("[data-"+e+"]"),function(t){return c(t,"mousedown",s(De[e]))})}),De.isMobile)return ee();if(De.debouncedResize=ge(j,50),De.triggerChange=function(){ne("Change")},De.debouncedChange=ge(De.triggerChange,300),"range"===De.config.mode&&De.daysContainer&&c(De.daysContainer,"mouseover",function(e){return P(e.target)}),c(window.document.body,"keydown",L),De.config.static||c(De._input,"keydown",L),De.config.inline||De.config.static||c(window,"resize",De.debouncedResize),void 0!==window.ontouchstart&&c(window.document,"touchstart",Y),c(window.document,"mousedown",s(Y)),c(De._input,"blur",Y),!0===De.config.clickOpens&&(c(De._input,"focus",De.open),c(De._input,"mousedown",s(De.open))),De.config.noCalendar||(De.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),c(De.monthNav,"wheel",ge(se,10)),c(De.monthNav,"mousedown",s(de)),c(De.monthNav,["keyup","increment"],l),c(De.daysContainer,"mousedown",s(U)),De.config.animate&&(c(De.daysContainer,["webkitAnimationEnd","animationend"],f),c(De.monthNav,["webkitAnimationEnd","animationend"],m))),De.config.enableTime){var e=function(e){return e.target.select()};c(De.timeContainer,["wheel","input","increment"],a),c(De.timeContainer,"mousedown",s(p)),c(De.timeContainer,["wheel","increment"],De.debouncedChange),c(De.timeContainer,"input",De.triggerChange),c([De.hourElement,De.minuteElement],"focus",e),void 0!==De.secondElement&&c(De.secondElement,"focus",function(){return De.secondElement.select()}),void 0!==De.amPM&&c(De.amPM,"mousedown",s(function(e){a(e),De.triggerChange(e)}))}}function u(){for(var e=De._animationLoop.length;e--;)De._animationLoop[e](),De._animationLoop.splice(e,1)}function f(e){if(De.daysContainer.childNodes.length>1)switch(e.animationName){case"fpSlideLeft":De.daysContainer.lastChild.classList.remove("slideLeftNew"),De.daysContainer.removeChild(De.daysContainer.firstChild),De.days=De.daysContainer.firstChild,u();break;case"fpSlideRight":De.daysContainer.firstChild.classList.remove("slideRightNew"),De.daysContainer.removeChild(De.daysContainer.lastChild),De.days=De.daysContainer.firstChild,u()}}function m(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":De.navigationCurrentMonth.classList.remove("slideLeftNew"),De.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=De.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)De.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)De.monthNav.removeChild(t.previousSibling);De.oldCurMonth=null}}function g(e){e=e?De.parseDate(e):De.latestSelectedDateObj||(De.config.minDate>De.now?De.config.minDate:De.config.maxDate&&De.config.maxDate<De.now?De.config.maxDate:De.now);try{De.currentYear=e.getFullYear(),De.currentMonth=e.getMonth()}catch(t){console.error(t.stack),console.warn("Invalid date supplied: "+e)}De.redraw()}function p(e){~e.target.className.indexOf("arrow")&&h(e,e.target.classList.contains("arrowUp")?1:-1)}function h(e,t,n){var a=n||e.target.parentNode.childNodes[0],i=ae("increment");i.delta=t,a.dispatchEvent(i)}function D(e){var t=ue("div","numInputWrapper"),n=ue("input","numInput "+e),a=ue("span","arrowUp"),i=ue("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function v(){var e=window.document.createDocumentFragment();De.calendarContainer=ue("div","flatpickr-calendar"),De.calendarContainer.tabIndex=-1,De.config.noCalendar||(e.appendChild(k()),De.innerContainer=ue("div","flatpickr-innerContainer"),De.config.weekNumbers&&De.innerContainer.appendChild(N()),De.rContainer=ue("div","flatpickr-rContainer"),De.rContainer.appendChild(E()),De.daysContainer||(De.daysContainer=ue("div","flatpickr-days"),De.daysContainer.tabIndex=-1),M(),De.rContainer.appendChild(De.daysContainer),De.innerContainer.appendChild(De.rContainer),e.appendChild(De.innerContainer)),De.config.enableTime&&e.appendChild(x()),me(De.calendarContainer,"rangeMode","range"===De.config.mode),me(De.calendarContainer,"animate",De.config.animate),De.calendarContainer.appendChild(e);var t=De.config.appendTo&&De.config.appendTo.nodeType;if(De.config.inline||De.config.static){if(De.calendarContainer.classList.add(De.config.inline?"inline":"static"),De.config.inline&&!t)return De.element.parentNode.insertBefore(De.calendarContainer,De._input.nextSibling);if(De.config.static){var n=ue("div","flatpickr-wrapper");return De.element.parentNode.insertBefore(n,De.element),n.appendChild(De.element),De.altInput&&n.appendChild(De.altInput),void n.appendChild(De.calendarContainer)}}(t?De.config.appendTo:window.document.body).appendChild(De.calendarContainer)}function C(e,t,n,a){var i=A(t,!0),r=ue("span","flatpickr-day "+e,t.getDate());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",De.formatDate(t,De.config.ariaDateFormat)),0===pe(t,De.now)&&(De.todayDateElem=r,r.classList.add("today")),i?(r.tabIndex=-1,ie(t)&&(r.classList.add("selected"),De.selectedDateElem=r,"range"===De.config.mode&&(me(r,"startRange",0===pe(t,De.selectedDates[0])),me(r,"endRange",0===pe(t,De.selectedDates[1]))))):(r.classList.add("disabled"),De.selectedDates[0]&&t>De.minRangeDate&&t<De.selectedDates[0]?De.minRangeDate=t:De.selectedDates[0]&&t<De.maxRangeDate&&t>De.selectedDates[0]&&(De.maxRangeDate=t)),"range"===De.config.mode&&(re(t)&&!ie(t)&&r.classList.add("inRange"),1===De.selectedDates.length&&(t<De.minRangeDate||t>De.maxRangeDate)&&r.classList.add("notAllowed")),De.config.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&De.weekNumbers.insertAdjacentHTML("beforeend","<span class='disabled flatpickr-day'>"+De.config.getWeek(t)+"</span>"),ne("DayCreate",r),r}function w(e,t){var n=e+t||0,a=void 0!==e?De.days.childNodes[n]:De.selectedDateElem||De.todayDateElem||De.days.childNodes[0],i=function(){(a=a||De.days.childNodes[n]).focus(),"range"===De.config.mode&&P(a)};if(void 0===a&&0!==t)return t>0?(De.changeMonth(1),n%=42):t<0&&(De.changeMonth(-1),n+=42),b(i);i()}function b(e){if(!0===De.config.animate)return De._animationLoop.push(e);e()}function M(e){var t=(new Date(De.currentYear,De.currentMonth,1).getDay()-De.l10n.firstDayOfWeek+7)%7,n="range"===De.config.mode;De.prevMonthDays=De.utils.getDaysinMonth((De.currentMonth-1+12)%12),De.selectedDateElem=void 0,De.todayDateElem=void 0;var a=De.utils.getDaysinMonth(),i=window.document.createDocumentFragment(),r=De.prevMonthDays+1-t,o=0;for(De.config.weekNumbers&&De.weekNumbers.firstChild&&(De.weekNumbers.textContent=""),n&&(De.minRangeDate=new Date(De.currentYear,De.currentMonth-1,r),De.maxRangeDate=new Date(De.currentYear,De.currentMonth+1,(42-t)%a));r<=De.prevMonthDays;r++,o++)i.appendChild(C("prevMonthDay",new Date(De.currentYear,De.currentMonth-1,r),r,o));for(r=1;r<=a;r++,o++)i.appendChild(C("",new Date(De.currentYear,De.currentMonth,r),r,o));for(var l=a+1;l<=42-t;l++,o++)i.appendChild(C("nextMonthDay",new Date(De.currentYear,De.currentMonth+1,l%a),l,o));n&&1===De.selectedDates.length&&i.childNodes[0]?(De._hidePrevMonthArrow=De._hidePrevMonthArrow||De.minRangeDate>i.childNodes[0].dateObj,De._hideNextMonthArrow=De._hideNextMonthArrow||De.maxRangeDate<new Date(De.currentYear,De.currentMonth+1,1)):oe();var c=ue("div","dayContainer");if(c.appendChild(i),De.config.animate&&void 0!==e)for(;De.daysContainer.childNodes.length>1;)De.daysContainer.removeChild(De.daysContainer.firstChild);else y(De.daysContainer);return e>=0?De.daysContainer.appendChild(c):De.daysContainer.insertBefore(c,De.daysContainer.firstChild),De.days=De.daysContainer.firstChild,De.daysContainer}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function k(){var e=window.document.createDocumentFragment();De.monthNav=ue("div","flatpickr-month"),De.prevMonthNav=ue("span","flatpickr-prev-month"),De.prevMonthNav.innerHTML=De.config.prevArrow,De.currentMonthElement=ue("span","cur-month"),De.currentMonthElement.title=De.l10n.scrollTitle;var t=D("cur-year");return De.currentYearElement=t.childNodes[0],De.currentYearElement.title=De.l10n.scrollTitle,De.config.minDate&&(De.currentYearElement.min=De.config.minDate.getFullYear()),De.config.maxDate&&(De.currentYearElement.max=De.config.maxDate.getFullYear(),De.currentYearElement.disabled=De.config.minDate&&De.config.minDate.getFullYear()===De.config.maxDate.getFullYear()),De.nextMonthNav=ue("span","flatpickr-next-month"),De.nextMonthNav.innerHTML=De.config.nextArrow,De.navigationCurrentMonth=ue("span","flatpickr-current-month"),De.navigationCurrentMonth.appendChild(De.currentMonthElement),De.navigationCurrentMonth.appendChild(t),e.appendChild(De.prevMonthNav),e.appendChild(De.navigationCurrentMonth),e.appendChild(De.nextMonthNav),De.monthNav.appendChild(e),Object.defineProperty(De,"_hidePrevMonthArrow",{get:function(){return this.__hidePrevMonthArrow},set:function(e){this.__hidePrevMonthArrow!==e&&(De.prevMonthNav.style.display=e?"none":"block"),this.__hidePrevMonthArrow=e}}),Object.defineProperty(De,"_hideNextMonthArrow",{get:function(){return this.__hideNextMonthArrow},set:function(e){this.__hideNextMonthArrow!==e&&(De.nextMonthNav.style.display=e?"none":"block"),this.__hideNextMonthArrow=e}}),oe(),De.monthNav}function x(){De.calendarContainer.classList.add("hasTime"),De.config.noCalendar&&De.calendarContainer.classList.add("noCalendar"),De.timeContainer=ue("div","flatpickr-time"),De.timeContainer.tabIndex=-1;var e=ue("span","flatpickr-time-separator",":"),t=D("flatpickr-hour");De.hourElement=t.childNodes[0];var n=D("flatpickr-minute");if(De.minuteElement=n.childNodes[0],De.hourElement.tabIndex=De.minuteElement.tabIndex=-1,De.hourElement.value=De.pad(De.latestSelectedDateObj?De.latestSelectedDateObj.getHours():De.config.defaultHour),De.minuteElement.value=De.pad(De.latestSelectedDateObj?De.latestSelectedDateObj.getMinutes():De.config.defaultMinute),De.hourElement.step=De.config.hourIncrement,De.minuteElement.step=De.config.minuteIncrement,De.hourElement.min=De.config.time_24hr?0:1,De.hourElement.max=De.config.time_24hr?23:12,De.minuteElement.min=0,De.minuteElement.max=59,De.hourElement.title=De.minuteElement.title=De.l10n.scrollTitle,De.timeContainer.appendChild(t),De.timeContainer.appendChild(e),De.timeContainer.appendChild(n),De.config.time_24hr&&De.timeContainer.classList.add("time24hr"),De.config.enableSeconds){De.timeContainer.classList.add("hasSeconds");var a=D("flatpickr-second");De.secondElement=a.childNodes[0],De.secondElement.value=De.latestSelectedDateObj?De.pad(De.latestSelectedDateObj.getSeconds()):"00",De.secondElement.step=De.minuteElement.step,De.secondElement.min=De.minuteElement.min,De.secondElement.max=De.minuteElement.max,De.timeContainer.appendChild(ue("span","flatpickr-time-separator",":")),De.timeContainer.appendChild(a)}return De.config.time_24hr||(De.amPM=ue("span","flatpickr-am-pm",["AM","PM"][De.hourElement.value>11|0]),De.amPM.title=De.l10n.toggleTitle,De.amPM.tabIndex=-1,De.timeContainer.appendChild(De.amPM)),De.timeContainer}function E(){De.weekdayContainer||(De.weekdayContainer=ue("div","flatpickr-weekdays"));var e=De.l10n.firstDayOfWeek,t=De.l10n.weekdays.shorthand.slice();return e>0&&e<t.length&&(t=[].concat(t.splice(e,t.length),t.splice(0,e))),De.weekdayContainer.innerHTML="\n\t\t<span class=flatpickr-weekday>\n\t\t\t"+t.join("</span><span class=flatpickr-weekday>")+"\n\t\t</span>\n\t\t",De.weekdayContainer}function N(){return De.calendarContainer.classList.add("hasWeeks"),De.weekWrapper=ue("div","flatpickr-weekwrapper"),De.weekWrapper.appendChild(ue("span","flatpickr-weekday",De.l10n.weekAbbreviation)),De.weekNumbers=ue("div","flatpickr-weeks"),De.weekWrapper.appendChild(De.weekNumbers),De.weekWrapper}function _(e,t,n){var a=(t=void 0===t||t)?e:e-De.currentMonth,i=!De.config.animate||!1===n;if(!(a<0&&De._hidePrevMonthArrow||a>0&&De._hideNextMonthArrow)){if(De.currentMonth+=a,(De.currentMonth<0||De.currentMonth>11)&&(De.currentYear+=De.currentMonth>11?1:-1,De.currentMonth=(De.currentMonth+12)%12,ne("YearChange")),M(i?void 0:a),i)return ne("MonthChange"),oe();var r=De.navigationCurrentMonth;if(a<0)for(;r.nextSibling&&/curr/.test(r.nextSibling.className);)De.monthNav.removeChild(r.nextSibling);else if(a>0)for(;r.previousSibling&&/curr/.test(r.previousSibling.className);)De.monthNav.removeChild(r.previousSibling);if(De.oldCurMonth=De.navigationCurrentMonth,De.navigationCurrentMonth=De.monthNav.insertBefore(De.oldCurMonth.cloneNode(!0),a>0?De.oldCurMonth.nextSibling:De.oldCurMonth),a>0?(De.daysContainer.firstChild.classList.add("slideLeft"),De.daysContainer.lastChild.classList.add("slideLeftNew"),De.oldCurMonth.classList.add("slideLeft"),De.navigationCurrentMonth.classList.add("slideLeftNew")):a<0&&(De.daysContainer.firstChild.classList.add("slideRightNew"),De.daysContainer.lastChild.classList.add("slideRight"),De.oldCurMonth.classList.add("slideRight"),De.navigationCurrentMonth.classList.add("slideRightNew")),De.currentMonthElement=De.navigationCurrentMonth.firstChild,De.currentYearElement=De.navigationCurrentMonth.lastChild.childNodes[0],oe(),De.oldCurMonth.firstChild.textContent=De.utils.monthToStr(De.currentMonth-a),ne("MonthChange"),document.activeElement&&document.activeElement.$i){var o=document.activeElement.$i;b(function(){w(o,0)})}}}function T(e){De.input.value="",De.altInput&&(De.altInput.value=""),De.mobileInput&&(De.mobileInput.value=""),De.selectedDates=[],De.latestSelectedDateObj=void 0,De.showTimeInput=!1,De.redraw(),!1!==e&&ne("Change")}function I(){De.isOpen=!1,De.isMobile||(De.calendarContainer.classList.remove("open"),De._input.classList.remove("active")),ne("Close")}function S(){void 0!==De.config&&ne("Destroy");for(var e=De._handlers.length;e--;){var t=De._handlers[e];t.element.removeEventListener(t.event,t.handler)}De._handlers=[],De.mobileInput?(De.mobileInput.parentNode&&De.mobileInput.parentNode.removeChild(De.mobileInput),De.mobileInput=null):De.calendarContainer&&De.calendarContainer.parentNode&&De.calendarContainer.parentNode.removeChild(De.calendarContainer),De.altInput&&(De.input.type="text",De.altInput.parentNode&&De.altInput.parentNode.removeChild(De.altInput),delete De.altInput),De.input&&(De.input.type=De.input._type,De.input.classList.remove("flatpickr-input"),De.input.removeAttribute("readonly"),De.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){return delete De[e]})}function F(e){return!(!De.config.appendTo||!De.config.appendTo.contains(e))||De.calendarContainer.contains(e)}function Y(e){if(De.isOpen&&!De.config.inline){var t=F(e.target),n=e.target===De.input||e.target===De.altInput||De.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(De.input)||~e.path.indexOf(De.altInput));("blur"===e.type?n&&e.relatedTarget&&!F(e.relatedTarget):!n&&!t)&&-1===De.config.ignoredFocusElements.indexOf(e.target)&&(De.close(),"range"===De.config.mode&&1===De.selectedDates.length&&(De.clear(!1),De.redraw()))}}function O(e){if(!(!e||De.currentYearElement.min&&e<De.currentYearElement.min||De.currentYearElement.max&&e>De.currentYearElement.max)){var t=parseInt(e,10),n=De.currentYear!==t;De.currentYear=t||De.currentYear,De.config.maxDate&&De.currentYear===De.config.maxDate.getFullYear()?De.currentMonth=Math.min(De.config.maxDate.getMonth(),De.currentMonth):De.config.minDate&&De.currentYear===De.config.minDate.getFullYear()&&(De.currentMonth=Math.max(De.config.minDate.getMonth(),De.currentMonth)),n&&(De.redraw(),ne("YearChange"))}}function A(e,t){if(De.config.minDate&&pe(e,De.config.minDate,void 0!==t?t:!De.minDateHasTime)<0||De.config.maxDate&&pe(e,De.config.maxDate,void 0!==t?t:!De.maxDateHasTime)>0)return!1;if(!De.config.enable.length&&!De.config.disable.length)return!0;for(var n,a=De.parseDate(e,null,!0),i=De.config.enable.length>0,r=i?De.config.enable:De.config.disable,o=0;o<r.length;o++){if((n=r[o])instanceof Function&&n(a))return i;if(n instanceof Date&&n.getTime()===a.getTime())return i;if("string"==typeof n&&De.parseDate(n,null,!0).getTime()===a.getTime())return i;if("object"===(void 0===n?"undefined":_typeof(n))&&n.from&&n.to&&a>=n.from&&a<=n.to)return i}return!i}function L(e){var t=e.target===De._input,n=F(e.target),r=De.config.allowInput,o=De.isOpen&&(!r||!t),l=De.config.inline&&t&&!r;if("Enter"===e.key&&r&&t)return De.setDate(De._input.value,!0,e.target===De.altInput?De.config.altFormat:De.config.dateFormat),e.target.blur();if(n||o||l){var c=De.timeContainer&&De.timeContainer.contains(e.target);switch(e.key){case"Enter":c?le():U(e);break;case"Escape":e.preventDefault(),De.close();break;case"ArrowLeft":case"ArrowRight":if(!c)if(e.preventDefault(),De.daysContainer){var s="ArrowRight"===e.key?1:-1;e.ctrlKey?_(s,!0):w(e.target.$i,s)}else De.config.enableTime&&!c&&De.hourElement.focus();break;case"ArrowUp":case"ArrowDown":e.preventDefault();var d="ArrowDown"===e.key?1:-1;De.daysContainer?e.ctrlKey?(O(De.currentYear-d),w(e.target.$i,0)):c||w(e.target.$i,7*d):De.config.enableTime&&(c||De.hourElement.focus(),a(e));break;case"Tab":e.target===De.hourElement?(e.preventDefault(),De.minuteElement.select()):e.target===De.minuteElement&&(De.secondElement||De.amPM)?(e.preventDefault(),(De.secondElement||De.amPM).focus()):e.target===De.secondElement&&(e.preventDefault(),De.amPM.focus());break;case"a":e.target===De.amPM&&(De.amPM.textContent="AM",i(),le());break;case"p":e.target===De.amPM&&(De.amPM.textContent="PM",i(),le())}ne("KeyDown",e)}}function P(e){if(1===De.selectedDates.length&&e.classList.contains("flatpickr-day")){for(var t=e.dateObj,n=De.parseDate(De.selectedDates[0],null,!0),a=Math.min(t.getTime(),De.selectedDates[0].getTime()),i=Math.max(t.getTime(),De.selectedDates[0].getTime()),r=!1,o=a;o<i;o+=De.utils.duration.DAY)if(!A(new Date(o))){r=!0;break}for(var l=De.days.childNodes[0].dateObj.getTime(),c=0;c<42;c++,l+=De.utils.duration.DAY){(function(o,l){var c=o<De.minRangeDate.getTime()||o>De.maxRangeDate.getTime(),s=De.days.childNodes[l];if(c)return De.days.childNodes[l].classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){s.classList.remove(e)}),"continue";if(r&&!c)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){s.classList.remove(e)});var d=Math.max(De.minRangeDate.getTime(),a),u=Math.min(De.maxRangeDate.getTime(),i);e.classList.add(t<De.selectedDates[0]?"startRange":"endRange"),n<t&&o===n.getTime()?s.classList.add("startRange"):n>t&&o===n.getTime()&&s.classList.add("endRange"),o>=d&&o<=u&&s.classList.add("inRange")})(l,c)}}}function j(){!De.isOpen||De.config.static||De.config.inline||J()}function H(e,t){if(De.isMobile)return e&&(e.preventDefault(),e.target.blur()),setTimeout(function(){De.mobileInput.click()},0),void ne("Open");De.isOpen||De._input.disabled||De.config.inline||(De.isOpen=!0,De.calendarContainer.classList.add("open"),J(t),De._input.classList.add("active"),ne("Open"))}function R(e){return function(t){var n=De.config["_"+e+"Date"]=De.parseDate(t),a=De.config["_"+("min"===e?"max":"min")+"Date"],i=t&&n instanceof Date;i&&(De[e+"DateHasTime"]=n.getHours()||n.getMinutes()||n.getSeconds()),De.selectedDates&&(De.selectedDates=De.selectedDates.filter(function(e){return A(e)}),De.selectedDates.length||"min"!==e||r(n),le()),De.daysContainer&&(K(),i?De.currentYearElement[e]=n.getFullYear():De.currentYearElement.removeAttribute(e),De.currentYearElement.disabled=a&&n&&a.getFullYear()===n.getFullYear())}}function W(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];De.config=Object.create(flatpickr.defaultConfig);var a=_extends({},De.instanceConfig,JSON.parse(JSON.stringify(De.element.dataset||{})));De.config.parseDate=a.parseDate,De.config.formatDate=a.formatDate,Object.defineProperty(De.config,"enable",{get:function(){return De.config._enable||[]},set:function(e){return De.config._enable=G(e)}}),Object.defineProperty(De.config,"disable",{get:function(){return De.config._disable||[]},set:function(e){return De.config._disable=G(e)}}),_extends(De.config,a),!a.dateFormat&&a.enableTime&&(De.config.dateFormat=De.config.noCalendar?"H:i"+(De.config.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(De.config.enableSeconds?":S":"")),a.altInput&&a.enableTime&&!a.altFormat&&(De.config.altFormat=De.config.noCalendar?"h:i"+(De.config.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+" h:i"+(De.config.enableSeconds?":S":"")+" K"),Object.defineProperty(De.config,"minDate",{get:function(){return this._minDate},set:R("min")}),Object.defineProperty(De.config,"maxDate",{get:function(){return this._maxDate},set:R("max")}),De.config.minDate=a.minDate,De.config.maxDate=a.maxDate;for(var i=0;i<e.length;i++)De.config[e[i]]=!0===De.config[e[i]]||"true"===De.config[e[i]];for(var r=t.length;r--;)void 0!==De.config[t[r]]&&(De.config[t[r]]=fe(De.config[t[r]]||[]).map(n));for(var o=0;o<De.config.plugins.length;o++){var l=De.config.plugins[o](De)||{};for(var c in l)De.config[c]instanceof Array||~t.indexOf(c)?De.config[c]=fe(l[c]).map(n).concat(De.config[c]):void 0===a[c]&&(De.config[c]=l[c])}ne("ParseConfig")}function B(){"object"!==_typeof(De.config.locale)&&void 0===flatpickr.l10ns[De.config.locale]&&console.warn("flatpickr: invalid locale "+De.config.locale),De.l10n=_extends(Object.create(flatpickr.l10ns.default),"object"===_typeof(De.config.locale)?De.config.locale:"default"!==De.config.locale?flatpickr.l10ns[De.config.locale]||{}:{})}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De._positionElement;if(void 0!==De.calendarContainer){var t=De.calendarContainer.offsetHeight,n=De.calendarContainer.offsetWidth,a=De.config.position,i=e.getBoundingClientRect(),r=window.innerHeight-i.bottom,o="above"===a||"below"!==a&&r<t&&i.top>t,l=window.pageYOffset+i.top+(o?-t-2:e.offsetHeight+2);if(me(De.calendarContainer,"arrowTop",!o),me(De.calendarContainer,"arrowBottom",o),!De.config.inline){var c=window.pageXOffset+i.left,s=window.document.body.offsetWidth-i.right,d=c+n>window.document.body.offsetWidth;me(De.calendarContainer,"rightMost",d),De.config.static||(De.calendarContainer.style.top=l+"px",d?(De.calendarContainer.style.left="auto",De.calendarContainer.style.right=s+"px"):(De.calendarContainer.style.left=c+"px",De.calendarContainer.style.right="auto"))}}}function K(){De.config.noCalendar||De.isMobile||(E(),oe(),M())}function U(e){if(e.preventDefault(),e.stopPropagation(),e.target.classList.contains("flatpickr-day")&&!e.target.classList.contains("disabled")&&!e.target.classList.contains("notAllowed")){var t=De.latestSelectedDateObj=new Date(e.target.dateObj.getTime()),n=t.getMonth()!==De.currentMonth&&"range"!==De.config.mode;if(De.selectedDateElem=e.target,"single"===De.config.mode)De.selectedDates=[t];else if("multiple"===De.config.mode){var a=ie(t);a?De.selectedDates.splice(a,1):De.selectedDates.push(t)}else"range"===De.config.mode&&(2===De.selectedDates.length&&De.clear(),De.selectedDates.push(t),0!==pe(t,De.selectedDates[0],!0)&&De.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(i(),n){var o=De.currentYear!==t.getFullYear();De.currentYear=t.getFullYear(),De.currentMonth=t.getMonth(),o&&ne("YearChange"),ne("MonthChange")}if(M(),De.minDateHasTime&&De.config.enableTime&&0===pe(t,De.config.minDate)&&r(De.config.minDate),le(),De.config.enableTime&&setTimeout(function(){return De.showTimeInput=!0},50),"range"===De.config.mode&&(1===De.selectedDates.length?(P(e.target),De._hidePrevMonthArrow=De._hidePrevMonthArrow||De.minRangeDate>De.days.childNodes[0].dateObj,De._hideNextMonthArrow=De._hideNextMonthArrow||De.maxRangeDate<new Date(De.currentYear,De.currentMonth+1,1)):oe()),ne("Change"),n?b(function(){return De.selectedDateElem.focus()}):w(e.target.$i,0),De.config.enableTime&&setTimeout(function(){return De.hourElement.select()},451),De.config.closeOnSelect){var l="single"===De.config.mode&&!De.config.enableTime,c="range"===De.config.mode&&2===De.selectedDates.length&&!De.config.enableTime;(l||c)&&De.close()}}}function $(e,t){De.config[e]=t,De.redraw(),g()}function z(e,t){if(e instanceof Array)De.selectedDates=e.map(function(e){return De.parseDate(e,t)});else if(e instanceof Date||!isNaN(e))De.selectedDates=[De.parseDate(e,t)];else if(e&&e.substring)switch(De.config.mode){case"single":De.selectedDates=[De.parseDate(e,t)];break;case"multiple":De.selectedDates=e.split("; ").map(function(e){return De.parseDate(e,t)});break;case"range":De.selectedDates=e.split(De.l10n.rangeSeparator).map(function(e){return De.parseDate(e,t)})}De.selectedDates=De.selectedDates.filter(function(e){return e instanceof Date&&A(e,!1)}),De.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function q(e,t,n){if(0!==e&&!e)return De.clear(t);z(e,n),De.showTimeInput=De.selectedDates.length>0,De.latestSelectedDateObj=De.selectedDates[0],De.redraw(),g(),r(),le(t),t&&ne("Change")}function G(e){for(var t=e.length;t--;)"string"==typeof e[t]||+e[t]?e[t]=De.parseDate(e[t],null,!0):e[t]&&e[t].from&&e[t].to&&(e[t].from=De.parseDate(e[t].from),e[t].to=De.parseDate(e[t].to));return e.filter(function(e){return e})}function V(){De.selectedDates=[],De.now=new Date;var e=De.config.defaultDate||De.input.value;e&&z(e,De.config.dateFormat);var t=De.selectedDates.length?De.selectedDates[0]:De.config.minDate&&De.config.minDate.getTime()>De.now?De.config.minDate:De.config.maxDate&&De.config.maxDate.getTime()<De.now?De.config.maxDate:De.now;De.currentYear=t.getFullYear(),De.currentMonth=t.getMonth(),De.selectedDates.length&&(De.latestSelectedDateObj=De.selectedDates[0]),De.minDateHasTime=De.config.minDate&&(De.config.minDate.getHours()||De.config.minDate.getMinutes()||De.config.minDate.getSeconds()),De.maxDateHasTime=De.config.maxDate&&(De.config.maxDate.getHours()||De.config.maxDate.getMinutes()||De.config.maxDate.getSeconds()),Object.defineProperty(De,"latestSelectedDateObj",{get:function(){return De._selectedDateObj||De.selectedDates[De.selectedDates.length-1]},set:function(e){De._selectedDateObj=e}}),De.isMobile||Object.defineProperty(De,"showTimeInput",{get:function(){return De._showTimeInput},set:function(e){De._showTimeInput=e,De.calendarContainer&&me(De.calendarContainer,"showTimeInput",e),J()}})}function Z(){De.utils={duration:{DAY:864e5},getDaysinMonth:function(e,t){return e=void 0===e?De.currentMonth:e,t=void 0===t?De.currentYear:t,1===e&&(t%4==0&&t%100!=0||t%400==0)?29:De.l10n.daysInMonth[e]},monthToStr:function(e,t){return t=void 0===t?De.config.shorthandCurrentMonth:t,De.l10n.months[(t?"short":"long")+"hand"][e]}}}function Q(){De.formats=Object.create(FlatpickrInstance.prototype.formats),["D","F","J","M","W","l"].forEach(function(e){De.formats[e]=FlatpickrInstance.prototype.formats[e].bind(De)}),De.revFormat.F=FlatpickrInstance.prototype.revFormat.F.bind(De),De.revFormat.M=FlatpickrInstance.prototype.revFormat.M.bind(De)}function X(){if(De.input=De.config.wrap?De.element.querySelector("[data-input]"):De.element,!De.input)return console.warn("Error: invalid input element specified",De.input);De.input._type=De.input.type,De.input.type="text",De.input.classList.add("flatpickr-input"),De._input=De.input,De.config.altInput&&(De.altInput=ue(De.input.nodeName,De.input.className+" "+De.config.altInputClass),De._input=De.altInput,De.altInput.placeholder=De.input.placeholder,De.altInput.disabled=De.input.disabled,De.altInput.required=De.input.required,De.altInput.type="text",De.input.type="hidden",!De.config.static&&De.input.parentNode&&De.input.parentNode.insertBefore(De.altInput,De.input.nextSibling)),De.config.allowInput||De._input.setAttribute("readonly","readonly"),De._positionElement=De.config.positionElement||De._input}function ee(){var e=De.config.enableTime?De.config.noCalendar?"time":"datetime-local":"date";De.mobileInput=ue("input",De.input.className+" flatpickr-mobile"),De.mobileInput.step="any",De.mobileInput.tabIndex=1,De.mobileInput.type=e,De.mobileInput.disabled=De.input.disabled,De.mobileInput.placeholder=De.input.placeholder,De.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",De.selectedDates.length&&(De.mobileInput.defaultValue=De.mobileInput.value=De.formatDate(De.selectedDates[0],De.mobileFormatStr)),De.config.minDate&&(De.mobileInput.min=De.formatDate(De.config.minDate,"Y-m-d")),De.config.maxDate&&(De.mobileInput.max=De.formatDate(De.config.maxDate,"Y-m-d")),De.input.type="hidden",De.config.altInput&&(De.altInput.type="hidden");try{De.input.parentNode.insertBefore(De.mobileInput,De.input.nextSibling)}catch(e){}De.mobileInput.addEventListener("change",function(e){De.setDate(e.target.value,!1,De.mobileFormatStr),ne("Change"),ne("Close")})}function te(){if(De.isOpen)return De.close();De.open()}function ne(e,t){var n=De.config["on"+e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](De.selectedDates,De.input.value,De,t);"Change"===e&&(De.input.dispatchEvent(ae("change")),De.input.dispatchEvent(ae("input")))}function ae(e){return De._supportsEvents?new Event(e,{bubbles:!0}):(De._[e+"Event"]=document.createEvent("Event"),De._[e+"Event"].initEvent(e,!0,!0),De._[e+"Event"])}function ie(e){for(var t=0;t<De.selectedDates.length;t++)if(0===pe(De.selectedDates[t],e))return""+t;return!1}function re(e){return!("range"!==De.config.mode||De.selectedDates.length<2)&&(pe(e,De.selectedDates[0])>=0&&pe(e,De.selectedDates[1])<=0)}function oe(){De.config.noCalendar||De.isMobile||!De.monthNav||(De.currentMonthElement.textContent=De.utils.monthToStr(De.currentMonth)+" ",De.currentYearElement.value=De.currentYear,De._hidePrevMonthArrow=De.config.minDate&&(De.currentYear===De.config.minDate.getFullYear()?De.currentMonth<=De.config.minDate.getMonth():De.currentYear<De.config.minDate.getFullYear()),De._hideNextMonthArrow=De.config.maxDate&&(De.currentYear===De.config.maxDate.getFullYear()?De.currentMonth+1>De.config.maxDate.getMonth():De.currentYear>De.config.maxDate.getFullYear()))}function le(e){if(!De.selectedDates.length)return De.clear(e);De.isMobile&&(De.mobileInput.value=De.selectedDates.length?De.formatDate(De.latestSelectedDateObj,De.mobileFormatStr):"");var t="range"!==De.config.mode?"; ":De.l10n.rangeSeparator;De.input.value=De.selectedDates.map(function(e){return De.formatDate(e,De.config.dateFormat)}).join(t),De.config.altInput&&(De.altInput.value=De.selectedDates.map(function(e){return De.formatDate(e,De.config.altFormat)}).join(t)),!1!==e&&ne("ValueUpdate")}function ce(e){return Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))}function se(e){e.preventDefault();var t=De.currentYearElement.parentNode.contains(e.target);if(e.target===De.currentMonthElement||t){var n=ce(e);t?(O(De.currentYear+n),e.target.value=De.currentYear):De.changeMonth(n,!0,!1)}}function de(e){var t=De.prevMonthNav.contains(e.target),n=De.nextMonthNav.contains(e.target);t||n?_(t?-1:1):e.target===De.currentYearElement?(e.preventDefault(),De.currentYearElement.select()):"arrowUp"===e.target.className?De.changeYear(De.currentYear+1):"arrowDown"===e.target.className&&De.changeYear(De.currentYear-1)}function ue(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function fe(e){return e instanceof Array?e:[e]}function me(e,t,n){if(n)return e.classList.add(t);e.classList.remove(t)}function ge(e,t,n){var a=void 0;return function(){var i=this,r=arguments;clearTimeout(a),a=setTimeout(function(){a=null,n||e.apply(i,r)},t),n&&!a&&e.apply(i,r)}}function pe(e,t,n){return e instanceof Date&&t instanceof Date&&(!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime())}function he(e){e.preventDefault();var t="keydown"===e.type,n=(e.type,e.type,e.target);if(De.amPM&&e.target===De.amPM)return e.target.textContent=["AM","PM"]["AM"===e.target.textContent|0];var a=Number(n.min),i=Number(n.max),r=Number(n.step),o=parseInt(n.value,10),l=o+r*(e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0));if(void 0!==n.value&&2===n.value.length){var c=n===De.hourElement,s=n===De.minuteElement;l<a?(l=i+l+!c+(c&&!De.amPM),s&&h(null,-1,De.hourElement)):l>i&&(l=n===De.hourElement?l-i-!De.amPM:a,s&&h(null,1,De.hourElement)),De.amPM&&c&&(1===r?l+o===23:Math.abs(l-o)>r)&&(De.amPM.textContent="PM"===De.amPM.textContent?"AM":"PM"),n.value=De.pad(l)}}var De=this;return De._={},De._.afterDayAnim=b,De._bind=c,De._compareDates=pe,De._setHoursFromDate=r,De.changeMonth=_,De.changeYear=O,De.clear=T,De.close=I,De._createElement=ue,De.destroy=S,De.isEnabled=A,De.jumpToDate=g,De.open=H,De.redraw=K,De.set=$,De.setDate=q,De.toggle=te,function(){De.element=De.input=e,De.instanceConfig=t||{},De.parseDate=FlatpickrInstance.prototype.parseDate.bind(De),De.formatDate=FlatpickrInstance.prototype.formatDate.bind(De),Q(),W(),B(),X(),V(),Z(),De.isOpen=!1,De.isMobile=!De.config.disableMobile&&!De.config.inline&&"single"===De.config.mode&&!De.config.disable.length&&!De.config.enable.length&&!De.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),De.isMobile||v(),d(),(De.selectedDates.length||De.config.noCalendar)&&(De.config.enableTime&&r(De.config.noCalendar?De.latestSelectedDateObj||De.config.minDate:null),le()),De.showTimeInput=De.selectedDates.length>0||De.config.noCalendar,De.config.weekNumbers&&(De.calendarContainer.style.width=De.daysContainer.offsetWidth+De.weekWrapper.offsetWidth+"px"),De.isMobile||J(),ne("Ready")}(),De}function _flatpickr(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++)try{if(null!==n[i].getAttribute("data-fp-omit"))continue;n[i]._flatpickr&&(n[i]._flatpickr.destroy(),n[i]._flatpickr=null),n[i]._flatpickr=new FlatpickrInstance(n[i],t||{}),a.push(n[i]._flatpickr)}catch(e){console.warn(e,e.stack)}return 1===a.length?a[0]:a}function flatpickr(e,t){return e instanceof NodeList?_flatpickr(e,t):e instanceof HTMLElement?_flatpickr([e],t):_flatpickr(window.document.querySelectorAll(e),t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};FlatpickrInstance.prototype={formats:{Z:function(e){return e.toISOString()},D:function(e){return this.l10n.weekdays.shorthand[this.formats.w(e)]},F:function(e){return this.utils.monthToStr(this.formats.n(e)-1,!1)},G:function(e){return FlatpickrInstance.prototype.pad(FlatpickrInstance.prototype.formats.h(e))},H:function(e){return FlatpickrInstance.prototype.pad(e.getHours())},J:function(e){return e.getDate()+this.l10n.ordinal(e.getDate())},K:function(e){return e.getHours()>11?"PM":"AM"},M:function(e){return this.utils.monthToStr(e.getMonth(),!0)},S:function(e){return FlatpickrInstance.prototype.pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e){return this.config.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return FlatpickrInstance.prototype.pad(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return FlatpickrInstance.prototype.pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e){return this.l10n.weekdays.longhand[e.getDay()]},m:function(e){return FlatpickrInstance.prototype.pad(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},formatDate:function(e,t){var n=this;return void 0!==this.config&&void 0!==this.config.formatDate?this.config.formatDate(e,t):t.split("").map(function(t,a,i){return n.formats[t]&&"\\"!==i[a-1]?n.formats[t](e):"\\"!==t?t:""}).join("")},revFormat:{D:function(){},F:function(e,t){e.setMonth(this.l10n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){var n=e.getHours();12!==n&&e.setHours(n%12+12*/pm/i.test(t))},M:function(e,t){e.setMonth(this.l10n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(t)},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){return t=parseInt(t),new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0,0)},Y:function(e,t){e.setFullYear(t)},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:function(){},m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:function(){},y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},tokenRegex:{D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},pad:function(e){return("0"+e).slice(-2)},parseDate:function(e,t,n){if(0!==e&&!e)return null;var a=e;if(e instanceof Date)e=new Date(e.getTime());else if(void 0!==e.toFixed)e=new Date(e);else{var i=t||(this.config||flatpickr.defaultConfig).dateFormat;if("today"===(e=String(e).trim()))e=new Date,n=!0;else if(/Z$/.test(e)||/GMT$/.test(e))e=new Date(e);else if(this.config&&this.config.parseDate)e=this.config.parseDate(e,i);else{for(var r=this.config&&this.config.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),o=void 0,l=0,c=0,s="";l<i.length;l++){var d=i[l],u="\\"===d,f="\\"===i[l-1]||u;if(this.tokenRegex[d]&&!f){s+=this.tokenRegex[d];var m=new RegExp(s).exec(e);m&&(o=!0)&&(r=this.revFormat[d](r,m[++c])||r)}else u||(s+=".")}e=o?r:null}}return e instanceof Date?(!0===n&&e.setHours(0,0,0,0),e):(console.warn("flatpickr: invalid date "+a),console.info(this.element),null)}},"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)}),flatpickr.defaultConfig=FlatpickrInstance.defaultConfig={mode:"single",position:"auto",animate:-1===window.navigator.userAgent.indexOf("MSIE"),wrap:!1,weekNumbers:!1,allowInput:!1,clickOpens:!0,closeOnSelect:!0,time_24hr:!1,enableTime:!1,noCalendar:!1,dateFormat:"Y-m-d",ariaDateFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",altFormat:"F j, Y",defaultDate:null,minDate:null,maxDate:null,parseDate:null,formatDate:null,getWeek:function(e){var t=new Date(e.getTime()),n=new Date(t.getFullYear(),0,1);return Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},enable:[],disable:[],shorthandCurrentMonth:!1,inline:!1,static:!1,appendTo:null,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",enableSeconds:!1,hourIncrement:1,minuteIncrement:5,defaultHour:12,defaultMinute:0,disableMobile:!1,locale:"default",plugins:[],ignoredFocusElements:[],onClose:void 0,onChange:void 0,onDayCreate:void 0,onMonthChange:void 0,onOpen:void 0,onParseConfig:void 0,onReady:void 0,onValueUpdate:void 0,onYearChange:void 0,onKeyDown:void 0,onDestroy:void 0},flatpickr.l10ns={en:{weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"}},flatpickr.l10ns.default=Object.create(flatpickr.l10ns.en),flatpickr.localize=function(e){return _extends(flatpickr.l10ns.default,e||{})},flatpickr.setDefaults=function(e){return _extends(flatpickr.defaultConfig,e||{})},"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},"undefined"!=typeof module&&(module.exports=flatpickr);
|
js/flatpickr.min.js
CHANGED
@@ -1,2 +1,2 @@
|
|
1 |
/*! flatpickr v3.0.6, @license MIT */
|
2 |
-
function FlatpickrInstance(e,t){function n(e){return e.bind(De)}function a(e){De.config.noCalendar&&!De.selectedDates.length&&(De.selectedDates=[De.now]),he(e),De.selectedDates.length&&(!De.minDateHasTime||"input"!==e.type||e.target.value.length>=2?(i(),le()):setTimeout(function(){i(),le()},1e3))}function i(){if(De.config.enableTime){var e=(parseInt(De.hourElement.value,10)||0)%(De.amPM?12:24),t=(parseInt(De.minuteElement.value,10)||0)%60,n=De.config.enableSeconds?(parseInt(De.secondElement.value,10)||0)%60:0;void 0!==De.amPM&&(e=e%12+12*("PM"===De.amPM.textContent)),De.minDateHasTime&&0===pe(De.latestSelectedDateObj,De.config.minDate)&&(e=Math.max(e,De.config.minDate.getHours()))===De.config.minDate.getHours()&&(t=Math.max(t,De.config.minDate.getMinutes())),De.maxDateHasTime&&0===pe(De.latestSelectedDateObj,De.config.maxDate)&&(e=Math.min(e,De.config.maxDate.getHours()))===De.config.maxDate.getHours()&&(t=Math.min(t,De.config.maxDate.getMinutes())),o(e,t,n)}}function r(e){var t=e||De.latestSelectedDateObj;t&&o(t.getHours(),t.getMinutes(),t.getSeconds())}function o(e,t,n){De.selectedDates.length&&De.latestSelectedDateObj.setHours(e%24,t,n||0,0),De.config.enableTime&&!De.isMobile&&(De.hourElement.value=De.pad(De.config.time_24hr?e:(12+e)%12+12*(e%12==0)),De.minuteElement.value=De.pad(t),De.config.time_24hr||(De.amPM.textContent=e>=12?"PM":"AM"),!0===De.config.enableSeconds&&(De.secondElement.value=De.pad(n)))}function l(e){var t=e.target.value;e.delta&&(t=(parseInt(t)+e.delta).toString()),4!==t.length&&"Enter"!==e.key||(De.currentYearElement.blur(),/[^\d]/.test(t)||O(t))}function c(e,t,n){return t instanceof Array?t.forEach(function(t){return c(e,t,n)}):e instanceof Array?e.forEach(function(e){return c(e,t,n)}):(e.addEventListener(t,n),void De._handlers.push({element:e,event:t,handler:n}))}function s(e){return function(t){return 1===t.which&&e(t)}}function d(){if(De._handlers=[],De._animationLoop=[],De.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(De.element.querySelectorAll("[data-"+e+"]"),function(t){return c(t,"mousedown",s(De[e]))})}),De.isMobile)return ee();if(De.debouncedResize=ge(j,50),De.triggerChange=function(){ne("Change")},De.debouncedChange=ge(De.triggerChange,300),"range"===De.config.mode&&De.daysContainer&&c(De.daysContainer,"mouseover",function(e){return P(e.target)}),c(window.document.body,"keydown",L),De.config.static||c(De._input,"keydown",L),De.config.inline||De.config.static||c(window,"resize",De.debouncedResize),void 0!==window.ontouchstart&&c(window.document,"touchstart",Y),c(window.document,"mousedown",s(Y)),c(De._input,"blur",Y),!0===De.config.clickOpens&&(c(De._input,"focus",De.open),c(De._input,"mousedown",s(De.open))),De.config.noCalendar||(De.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),c(De.monthNav,"wheel",ge(se,10)),c(De.monthNav,"mousedown",s(de)),c(De.monthNav,["keyup","increment"],l),c(De.daysContainer,"mousedown",s(U)),De.config.animate&&(c(De.daysContainer,["webkitAnimationEnd","animationend"],f),c(De.monthNav,["webkitAnimationEnd","animationend"],m))),De.config.enableTime){var e=function(e){return e.target.select()};c(De.timeContainer,["wheel","input","increment"],a),c(De.timeContainer,"mousedown",s(p)),c(De.timeContainer,["wheel","increment"],De.debouncedChange),c(De.timeContainer,"input",De.triggerChange),c([De.hourElement,De.minuteElement],"focus",e),void 0!==De.secondElement&&c(De.secondElement,"focus",function(){return De.secondElement.select()}),void 0!==De.amPM&&c(De.amPM,"mousedown",s(function(e){a(e),De.triggerChange(e)}))}}function u(){for(var e=De._animationLoop.length;e--;)De._animationLoop[e](),De._animationLoop.splice(e,1)}function f(e){if(De.daysContainer.childNodes.length>1)switch(e.animationName){case"fpSlideLeft":De.daysContainer.lastChild.classList.remove("slideLeftNew"),De.daysContainer.removeChild(De.daysContainer.firstChild),De.days=De.daysContainer.firstChild,u();break;case"fpSlideRight":De.daysContainer.firstChild.classList.remove("slideRightNew"),De.daysContainer.removeChild(De.daysContainer.lastChild),De.days=De.daysContainer.firstChild,u()}}function m(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":De.navigationCurrentMonth.classList.remove("slideLeftNew"),De.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=De.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)De.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)De.monthNav.removeChild(t.previousSibling);De.oldCurMonth=null}}function g(e){e=e?De.parseDate(e):De.latestSelectedDateObj||(De.config.minDate>De.now?De.config.minDate:De.config.maxDate&&De.config.maxDate<De.now?De.config.maxDate:De.now);try{De.currentYear=e.getFullYear(),De.currentMonth=e.getMonth()}catch(t){console.error(t.stack),console.warn("Invalid date supplied: "+e)}De.redraw()}function p(e){~e.target.className.indexOf("arrow")&&h(e,e.target.classList.contains("arrowUp")?1:-1)}function h(e,t,n){var a=n||e.target.parentNode.childNodes[0],i=ae("increment");i.delta=t,a.dispatchEvent(i)}function D(e){var t=ue("div","numInputWrapper"),n=ue("input","numInput "+e),a=ue("span","arrowUp"),i=ue("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function v(){var e=window.document.createDocumentFragment();De.calendarContainer=ue("div","flatpickr-calendar"),De.calendarContainer.tabIndex=-1,De.config.noCalendar||(e.appendChild(k()),De.innerContainer=ue("div","flatpickr-innerContainer"),De.config.weekNumbers&&De.innerContainer.appendChild(N()),De.rContainer=ue("div","flatpickr-rContainer"),De.rContainer.appendChild(E()),De.daysContainer||(De.daysContainer=ue("div","flatpickr-days"),De.daysContainer.tabIndex=-1),M(),De.rContainer.appendChild(De.daysContainer),De.innerContainer.appendChild(De.rContainer),e.appendChild(De.innerContainer)),De.config.enableTime&&e.appendChild(x()),me(De.calendarContainer,"rangeMode","range"===De.config.mode),me(De.calendarContainer,"animate",De.config.animate),De.calendarContainer.appendChild(e);var t=De.config.appendTo&&De.config.appendTo.nodeType;if(De.config.inline||De.config.static){if(De.calendarContainer.classList.add(De.config.inline?"inline":"static"),De.config.inline&&!t)return De.element.parentNode.insertBefore(De.calendarContainer,De._input.nextSibling);if(De.config.static){var n=ue("div","flatpickr-wrapper");return De.element.parentNode.insertBefore(n,De.element),n.appendChild(De.element),De.altInput&&n.appendChild(De.altInput),void n.appendChild(De.calendarContainer)}}(t?De.config.appendTo:window.document.body).appendChild(De.calendarContainer)}function C(e,t,n,a){var i=A(t,!0),r=ue("span","flatpickr-day "+e,t.getDate());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",De.formatDate(t,De.config.ariaDateFormat)),0===pe(t,De.now)&&(De.todayDateElem=r,r.classList.add("today")),i?(r.tabIndex=-1,ie(t)&&(r.classList.add("selected"),De.selectedDateElem=r,"range"===De.config.mode&&(me(r,"startRange",0===pe(t,De.selectedDates[0])),me(r,"endRange",0===pe(t,De.selectedDates[1]))))):(r.classList.add("disabled"),De.selectedDates[0]&&t>De.minRangeDate&&t<De.selectedDates[0]?De.minRangeDate=t:De.selectedDates[0]&&t<De.maxRangeDate&&t>De.selectedDates[0]&&(De.maxRangeDate=t)),"range"===De.config.mode&&(re(t)&&!ie(t)&&r.classList.add("inRange"),1===De.selectedDates.length&&(t<De.minRangeDate||t>De.maxRangeDate)&&r.classList.add("notAllowed")),De.config.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&De.weekNumbers.insertAdjacentHTML("beforeend","<span class='disabled flatpickr-day'>"+De.config.getWeek(t)+"</span>"),ne("DayCreate",r),r}function w(e,t){var n=e+t||0,a=void 0!==e?De.days.childNodes[n]:De.selectedDateElem||De.todayDateElem||De.days.childNodes[0],i=function(){(a=a||De.days.childNodes[n]).focus(),"range"===De.config.mode&&P(a)};if(void 0===a&&0!==t)return t>0?(De.changeMonth(1),n%=42):t<0&&(De.changeMonth(-1),n+=42),b(i);i()}function b(e){if(!0===De.config.animate)return De._animationLoop.push(e);e()}function M(e){var t=(new Date(De.currentYear,De.currentMonth,1).getDay()-De.l10n.firstDayOfWeek+7)%7,n="range"===De.config.mode;De.prevMonthDays=De.utils.getDaysinMonth((De.currentMonth-1+12)%12),De.selectedDateElem=void 0,De.todayDateElem=void 0;var a=De.utils.getDaysinMonth(),i=window.document.createDocumentFragment(),r=De.prevMonthDays+1-t,o=0;for(De.config.weekNumbers&&De.weekNumbers.firstChild&&(De.weekNumbers.textContent=""),n&&(De.minRangeDate=new Date(De.currentYear,De.currentMonth-1,r),De.maxRangeDate=new Date(De.currentYear,De.currentMonth+1,(42-t)%a));r<=De.prevMonthDays;r++,o++)i.appendChild(C("prevMonthDay",new Date(De.currentYear,De.currentMonth-1,r),r,o));for(r=1;r<=a;r++,o++)i.appendChild(C("",new Date(De.currentYear,De.currentMonth,r),r,o));for(var l=a+1;l<=42-t;l++,o++)i.appendChild(C("nextMonthDay",new Date(De.currentYear,De.currentMonth+1,l%a),l,o));n&&1===De.selectedDates.length&&i.childNodes[0]?(De._hidePrevMonthArrow=De._hidePrevMonthArrow||De.minRangeDate>i.childNodes[0].dateObj,De._hideNextMonthArrow=De._hideNextMonthArrow||De.maxRangeDate<new Date(De.currentYear,De.currentMonth+1,1)):oe();var c=ue("div","dayContainer");if(c.appendChild(i),De.config.animate&&void 0!==e)for(;De.daysContainer.childNodes.length>1;)De.daysContainer.removeChild(De.daysContainer.firstChild);else y(De.daysContainer);return e>=0?De.daysContainer.appendChild(c):De.daysContainer.insertBefore(c,De.daysContainer.firstChild),De.days=De.daysContainer.firstChild,De.daysContainer}function y(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function k(){var e=window.document.createDocumentFragment();De.monthNav=ue("div","flatpickr-month"),De.prevMonthNav=ue("span","flatpickr-prev-month"),De.prevMonthNav.innerHTML=De.config.prevArrow,De.currentMonthElement=ue("span","cur-month"),De.currentMonthElement.title=De.l10n.scrollTitle;var t=D("cur-year");return De.currentYearElement=t.childNodes[0],De.currentYearElement.title=De.l10n.scrollTitle,De.config.minDate&&(De.currentYearElement.min=De.config.minDate.getFullYear()),De.config.maxDate&&(De.currentYearElement.max=De.config.maxDate.getFullYear(),De.currentYearElement.disabled=De.config.minDate&&De.config.minDate.getFullYear()===De.config.maxDate.getFullYear()),De.nextMonthNav=ue("span","flatpickr-next-month"),De.nextMonthNav.innerHTML=De.config.nextArrow,De.navigationCurrentMonth=ue("span","flatpickr-current-month"),De.navigationCurrentMonth.appendChild(De.currentMonthElement),De.navigationCurrentMonth.appendChild(t),e.appendChild(De.prevMonthNav),e.appendChild(De.navigationCurrentMonth),e.appendChild(De.nextMonthNav),De.monthNav.appendChild(e),Object.defineProperty(De,"_hidePrevMonthArrow",{get:function(){return this.__hidePrevMonthArrow},set:function(e){this.__hidePrevMonthArrow!==e&&(De.prevMonthNav.style.display=e?"none":"block"),this.__hidePrevMonthArrow=e}}),Object.defineProperty(De,"_hideNextMonthArrow",{get:function(){return this.__hideNextMonthArrow},set:function(e){this.__hideNextMonthArrow!==e&&(De.nextMonthNav.style.display=e?"none":"block"),this.__hideNextMonthArrow=e}}),oe(),De.monthNav}function x(){De.calendarContainer.classList.add("hasTime"),De.config.noCalendar&&De.calendarContainer.classList.add("noCalendar"),De.timeContainer=ue("div","flatpickr-time"),De.timeContainer.tabIndex=-1;var e=ue("span","flatpickr-time-separator",":"),t=D("flatpickr-hour");De.hourElement=t.childNodes[0];var n=D("flatpickr-minute");if(De.minuteElement=n.childNodes[0],De.hourElement.tabIndex=De.minuteElement.tabIndex=-1,De.hourElement.value=De.pad(De.latestSelectedDateObj?De.latestSelectedDateObj.getHours():De.config.defaultHour),De.minuteElement.value=De.pad(De.latestSelectedDateObj?De.latestSelectedDateObj.getMinutes():De.config.defaultMinute),De.hourElement.step=De.config.hourIncrement,De.minuteElement.step=De.config.minuteIncrement,De.hourElement.min=De.config.time_24hr?0:1,De.hourElement.max=De.config.time_24hr?23:12,De.minuteElement.min=0,De.minuteElement.max=59,De.hourElement.title=De.minuteElement.title=De.l10n.scrollTitle,De.timeContainer.appendChild(t),De.timeContainer.appendChild(e),De.timeContainer.appendChild(n),De.config.time_24hr&&De.timeContainer.classList.add("time24hr"),De.config.enableSeconds){De.timeContainer.classList.add("hasSeconds");var a=D("flatpickr-second");De.secondElement=a.childNodes[0],De.secondElement.value=De.latestSelectedDateObj?De.pad(De.latestSelectedDateObj.getSeconds()):"00",De.secondElement.step=De.minuteElement.step,De.secondElement.min=De.minuteElement.min,De.secondElement.max=De.minuteElement.max,De.timeContainer.appendChild(ue("span","flatpickr-time-separator",":")),De.timeContainer.appendChild(a)}return De.config.time_24hr||(De.amPM=ue("span","flatpickr-am-pm",["AM","PM"][De.hourElement.value>11|0]),De.amPM.title=De.l10n.toggleTitle,De.amPM.tabIndex=-1,De.timeContainer.appendChild(De.amPM)),De.timeContainer}function E(){De.weekdayContainer||(De.weekdayContainer=ue("div","flatpickr-weekdays"));var e=De.l10n.firstDayOfWeek,t=De.l10n.weekdays.shorthand.slice();return e>0&&e<t.length&&(t=[].concat(t.splice(e,t.length),t.splice(0,e))),De.weekdayContainer.innerHTML="\n\t\t<span class=flatpickr-weekday>\n\t\t\t"+t.join("</span><span class=flatpickr-weekday>")+"\n\t\t</span>\n\t\t",De.weekdayContainer}function N(){return De.calendarContainer.classList.add("hasWeeks"),De.weekWrapper=ue("div","flatpickr-weekwrapper"),De.weekWrapper.appendChild(ue("span","flatpickr-weekday",De.l10n.weekAbbreviation)),De.weekNumbers=ue("div","flatpickr-weeks"),De.weekWrapper.appendChild(De.weekNumbers),De.weekWrapper}function _(e,t,n){var a=(t=void 0===t||t)?e:e-De.currentMonth,i=!De.config.animate||!1===n;if(!(a<0&&De._hidePrevMonthArrow||a>0&&De._hideNextMonthArrow)){if(De.currentMonth+=a,(De.currentMonth<0||De.currentMonth>11)&&(De.currentYear+=De.currentMonth>11?1:-1,De.currentMonth=(De.currentMonth+12)%12,ne("YearChange")),M(i?void 0:a),i)return ne("MonthChange"),oe();var r=De.navigationCurrentMonth;if(a<0)for(;r.nextSibling&&/curr/.test(r.nextSibling.className);)De.monthNav.removeChild(r.nextSibling);else if(a>0)for(;r.previousSibling&&/curr/.test(r.previousSibling.className);)De.monthNav.removeChild(r.previousSibling);if(De.oldCurMonth=De.navigationCurrentMonth,De.navigationCurrentMonth=De.monthNav.insertBefore(De.oldCurMonth.cloneNode(!0),a>0?De.oldCurMonth.nextSibling:De.oldCurMonth),a>0?(De.daysContainer.firstChild.classList.add("slideLeft"),De.daysContainer.lastChild.classList.add("slideLeftNew"),De.oldCurMonth.classList.add("slideLeft"),De.navigationCurrentMonth.classList.add("slideLeftNew")):a<0&&(De.daysContainer.firstChild.classList.add("slideRightNew"),De.daysContainer.lastChild.classList.add("slideRight"),De.oldCurMonth.classList.add("slideRight"),De.navigationCurrentMonth.classList.add("slideRightNew")),De.currentMonthElement=De.navigationCurrentMonth.firstChild,De.currentYearElement=De.navigationCurrentMonth.lastChild.childNodes[0],oe(),De.oldCurMonth.firstChild.textContent=De.utils.monthToStr(De.currentMonth-a),ne("MonthChange"),document.activeElement&&document.activeElement.$i){var o=document.activeElement.$i;b(function(){w(o,0)})}}}function T(e){De.input.value="",De.altInput&&(De.altInput.value=""),De.mobileInput&&(De.mobileInput.value=""),De.selectedDates=[],De.latestSelectedDateObj=void 0,De.showTimeInput=!1,De.redraw(),!1!==e&&ne("Change")}function I(){De.isOpen=!1,De.isMobile||(De.calendarContainer.classList.remove("open"),De._input.classList.remove("active")),ne("Close")}function S(){void 0!==De.config&&ne("Destroy");for(var e=De._handlers.length;e--;){var t=De._handlers[e];t.element.removeEventListener(t.event,t.handler)}De._handlers=[],De.mobileInput?(De.mobileInput.parentNode&&De.mobileInput.parentNode.removeChild(De.mobileInput),De.mobileInput=null):De.calendarContainer&&De.calendarContainer.parentNode&&De.calendarContainer.parentNode.removeChild(De.calendarContainer),De.altInput&&(De.input.type="text",De.altInput.parentNode&&De.altInput.parentNode.removeChild(De.altInput),delete De.altInput),De.input&&(De.input.type=De.input._type,De.input.classList.remove("flatpickr-input"),De.input.removeAttribute("readonly"),De.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){return delete De[e]})}function F(e){return!(!De.config.appendTo||!De.config.appendTo.contains(e))||De.calendarContainer.contains(e)}function Y(e){if(De.isOpen&&!De.config.inline){var t=F(e.target),n=e.target===De.input||e.target===De.altInput||De.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(De.input)||~e.path.indexOf(De.altInput));("blur"===e.type?n&&e.relatedTarget&&!F(e.relatedTarget):!n&&!t)&&-1===De.config.ignoredFocusElements.indexOf(e.target)&&(De.close(),"range"===De.config.mode&&1===De.selectedDates.length&&(De.clear(!1),De.redraw()))}}function O(e){if(!(!e||De.currentYearElement.min&&e<De.currentYearElement.min||De.currentYearElement.max&&e>De.currentYearElement.max)){var t=parseInt(e,10),n=De.currentYear!==t;De.currentYear=t||De.currentYear,De.config.maxDate&&De.currentYear===De.config.maxDate.getFullYear()?De.currentMonth=Math.min(De.config.maxDate.getMonth(),De.currentMonth):De.config.minDate&&De.currentYear===De.config.minDate.getFullYear()&&(De.currentMonth=Math.max(De.config.minDate.getMonth(),De.currentMonth)),n&&(De.redraw(),ne("YearChange"))}}function A(e,t){if(De.config.minDate&&pe(e,De.config.minDate,void 0!==t?t:!De.minDateHasTime)<0||De.config.maxDate&&pe(e,De.config.maxDate,void 0!==t?t:!De.maxDateHasTime)>0)return!1;if(!De.config.enable.length&&!De.config.disable.length)return!0;for(var n,a=De.parseDate(e,null,!0),i=De.config.enable.length>0,r=i?De.config.enable:De.config.disable,o=0;o<r.length;o++){if((n=r[o])instanceof Function&&n(a))return i;if(n instanceof Date&&n.getTime()===a.getTime())return i;if("string"==typeof n&&De.parseDate(n,null,!0).getTime()===a.getTime())return i;if("object"===(void 0===n?"undefined":_typeof(n))&&n.from&&n.to&&a>=n.from&&a<=n.to)return i}return!i}function L(e){var t=e.target===De._input,n=F(e.target),r=De.config.allowInput,o=De.isOpen&&(!r||!t),l=De.config.inline&&t&&!r;if("Enter"===e.key&&r&&t)return De.setDate(De._input.value,!0,e.target===De.altInput?De.config.altFormat:De.config.dateFormat),e.target.blur();if(n||o||l){var c=De.timeContainer&&De.timeContainer.contains(e.target);switch(e.key){case"Enter":c?le():U(e);break;case"Escape":e.preventDefault(),De.close();break;case"ArrowLeft":case"ArrowRight":if(!c)if(e.preventDefault(),De.daysContainer){var s="ArrowRight"===e.key?1:-1;e.ctrlKey?_(s,!0):w(e.target.$i,s)}else De.config.enableTime&&!c&&De.hourElement.focus();break;case"ArrowUp":case"ArrowDown":e.preventDefault();var d="ArrowDown"===e.key?1:-1;De.daysContainer?e.ctrlKey?(O(De.currentYear-d),w(e.target.$i,0)):c||w(e.target.$i,7*d):De.config.enableTime&&(c||De.hourElement.focus(),a(e));break;case"Tab":e.target===De.hourElement?(e.preventDefault(),De.minuteElement.select()):e.target===De.minuteElement&&(De.secondElement||De.amPM)?(e.preventDefault(),(De.secondElement||De.amPM).focus()):e.target===De.secondElement&&(e.preventDefault(),De.amPM.focus());break;case"a":e.target===De.amPM&&(De.amPM.textContent="AM",i(),le());break;case"p":e.target===De.amPM&&(De.amPM.textContent="PM",i(),le())}ne("KeyDown",e)}}function P(e){if(1===De.selectedDates.length&&e.classList.contains("flatpickr-day")){for(var t=e.dateObj,n=De.parseDate(De.selectedDates[0],null,!0),a=Math.min(t.getTime(),De.selectedDates[0].getTime()),i=Math.max(t.getTime(),De.selectedDates[0].getTime()),r=!1,o=a;o<i;o+=De.utils.duration.DAY)if(!A(new Date(o))){r=!0;break}for(var l=De.days.childNodes[0].dateObj.getTime(),c=0;c<42;c++,l+=De.utils.duration.DAY){(function(o,l){var c=o<De.minRangeDate.getTime()||o>De.maxRangeDate.getTime(),s=De.days.childNodes[l];if(c)return De.days.childNodes[l].classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){s.classList.remove(e)}),"continue";if(r&&!c)return"continue";["startRange","inRange","endRange","notAllowed"].forEach(function(e){s.classList.remove(e)});var d=Math.max(De.minRangeDate.getTime(),a),u=Math.min(De.maxRangeDate.getTime(),i);e.classList.add(t<De.selectedDates[0]?"startRange":"endRange"),n<t&&o===n.getTime()?s.classList.add("startRange"):n>t&&o===n.getTime()&&s.classList.add("endRange"),o>=d&&o<=u&&s.classList.add("inRange")})(l,c)}}}function j(){!De.isOpen||De.config.static||De.config.inline||J()}function H(e,t){if(De.isMobile)return e&&(e.preventDefault(),e.target.blur()),setTimeout(function(){De.mobileInput.click()},0),void ne("Open");De.isOpen||De._input.disabled||De.config.inline||(De.isOpen=!0,De.calendarContainer.classList.add("open"),J(t),De._input.classList.add("active"),ne("Open"))}function R(e){return function(t){var n=De.config["_"+e+"Date"]=De.parseDate(t),a=De.config["_"+("min"===e?"max":"min")+"Date"],i=t&&n instanceof Date;i&&(De[e+"DateHasTime"]=n.getHours()||n.getMinutes()||n.getSeconds()),De.selectedDates&&(De.selectedDates=De.selectedDates.filter(function(e){return A(e)}),De.selectedDates.length||"min"!==e||r(n),le()),De.daysContainer&&(K(),i?De.currentYearElement[e]=n.getFullYear():De.currentYearElement.removeAttribute(e),De.currentYearElement.disabled=a&&n&&a.getFullYear()===n.getFullYear())}}function W(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];De.config=Object.create(flatpickr.defaultConfig);var a=_extends({},De.instanceConfig,JSON.parse(JSON.stringify(De.element.dataset||{})));De.config.parseDate=a.parseDate,De.config.formatDate=a.formatDate,Object.defineProperty(De.config,"enable",{get:function(){return De.config._enable||[]},set:function(e){return De.config._enable=G(e)}}),Object.defineProperty(De.config,"disable",{get:function(){return De.config._disable||[]},set:function(e){return De.config._disable=G(e)}}),_extends(De.config,a),!a.dateFormat&&a.enableTime&&(De.config.dateFormat=De.config.noCalendar?"H:i"+(De.config.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(De.config.enableSeconds?":S":"")),a.altInput&&a.enableTime&&!a.altFormat&&(De.config.altFormat=De.config.noCalendar?"h:i"+(De.config.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+" h:i"+(De.config.enableSeconds?":S":"")+" K"),Object.defineProperty(De.config,"minDate",{get:function(){return this._minDate},set:R("min")}),Object.defineProperty(De.config,"maxDate",{get:function(){return this._maxDate},set:R("max")}),De.config.minDate=a.minDate,De.config.maxDate=a.maxDate;for(var i=0;i<e.length;i++)De.config[e[i]]=!0===De.config[e[i]]||"true"===De.config[e[i]];for(var r=t.length;r--;)void 0!==De.config[t[r]]&&(De.config[t[r]]=fe(De.config[t[r]]||[]).map(n));for(var o=0;o<De.config.plugins.length;o++){var l=De.config.plugins[o](De)||{};for(var c in l)De.config[c]instanceof Array||~t.indexOf(c)?De.config[c]=fe(l[c]).map(n).concat(De.config[c]):void 0===a[c]&&(De.config[c]=l[c])}ne("ParseConfig")}function B(){"object"!==_typeof(De.config.locale)&&void 0===flatpickr.l10ns[De.config.locale]&&console.warn("flatpickr: invalid locale "+De.config.locale),De.l10n=_extends(Object.create(flatpickr.l10ns.default),"object"===_typeof(De.config.locale)?De.config.locale:"default"!==De.config.locale?flatpickr.l10ns[De.config.locale]||{}:{})}function J(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:De._positionElement;if(void 0!==De.calendarContainer){var t=De.calendarContainer.offsetHeight,n=De.calendarContainer.offsetWidth,a=De.config.position,i=e.getBoundingClientRect(),r=window.innerHeight-i.bottom,o="above"===a||"below"!==a&&r<t&&i.top>t,l=window.pageYOffset+i.top+(o?-t-2:e.offsetHeight+2);if(me(De.calendarContainer,"arrowTop",!o),me(De.calendarContainer,"arrowBottom",o),!De.config.inline){var c=window.pageXOffset+i.left,s=window.document.body.offsetWidth-i.right,d=c+n>window.document.body.offsetWidth;me(De.calendarContainer,"rightMost",d),De.config.static||(De.calendarContainer.style.top=l+"px",d?(De.calendarContainer.style.left="auto",De.calendarContainer.style.right=s+"px"):(De.calendarContainer.style.left=c+"px",De.calendarContainer.style.right="auto"))}}}function K(){De.config.noCalendar||De.isMobile||(E(),oe(),M())}function U(e){if(e.preventDefault(),e.stopPropagation(),e.target.classList.contains("flatpickr-day")&&!e.target.classList.contains("disabled")&&!e.target.classList.contains("notAllowed")){var t=De.latestSelectedDateObj=new Date(e.target.dateObj.getTime()),n=t.getMonth()!==De.currentMonth&&"range"!==De.config.mode;if(De.selectedDateElem=e.target,"single"===De.config.mode)De.selectedDates=[t];else if("multiple"===De.config.mode){var a=ie(t);a?De.selectedDates.splice(a,1):De.selectedDates.push(t)}else"range"===De.config.mode&&(2===De.selectedDates.length&&De.clear(),De.selectedDates.push(t),0!==pe(t,De.selectedDates[0],!0)&&De.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(i(),n){var o=De.currentYear!==t.getFullYear();De.currentYear=t.getFullYear(),De.currentMonth=t.getMonth(),o&&ne("YearChange"),ne("MonthChange")}if(M(),De.minDateHasTime&&De.config.enableTime&&0===pe(t,De.config.minDate)&&r(De.config.minDate),le(),De.config.enableTime&&setTimeout(function(){return De.showTimeInput=!0},50),"range"===De.config.mode&&(1===De.selectedDates.length?(P(e.target),De._hidePrevMonthArrow=De._hidePrevMonthArrow||De.minRangeDate>De.days.childNodes[0].dateObj,De._hideNextMonthArrow=De._hideNextMonthArrow||De.maxRangeDate<new Date(De.currentYear,De.currentMonth+1,1)):oe()),ne("Change"),n?b(function(){return De.selectedDateElem.focus()}):w(e.target.$i,0),De.config.enableTime&&setTimeout(function(){return De.hourElement.select()},451),De.config.closeOnSelect){var l="single"===De.config.mode&&!De.config.enableTime,c="range"===De.config.mode&&2===De.selectedDates.length&&!De.config.enableTime;(l||c)&&De.close()}}}function $(e,t){De.config[e]=t,De.redraw(),g()}function z(e,t){if(e instanceof Array)De.selectedDates=e.map(function(e){return De.parseDate(e,t)});else if(e instanceof Date||!isNaN(e))De.selectedDates=[De.parseDate(e,t)];else if(e&&e.substring)switch(De.config.mode){case"single":De.selectedDates=[De.parseDate(e,t)];break;case"multiple":De.selectedDates=e.split("; ").map(function(e){return De.parseDate(e,t)});break;case"range":De.selectedDates=e.split(De.l10n.rangeSeparator).map(function(e){return De.parseDate(e,t)})}De.selectedDates=De.selectedDates.filter(function(e){return e instanceof Date&&A(e,!1)}),De.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function q(e,t,n){if(0!==e&&!e)return De.clear(t);z(e,n),De.showTimeInput=De.selectedDates.length>0,De.latestSelectedDateObj=De.selectedDates[0],De.redraw(),g(),r(),le(t),t&&ne("Change")}function G(e){for(var t=e.length;t--;)"string"==typeof e[t]||+e[t]?e[t]=De.parseDate(e[t],null,!0):e[t]&&e[t].from&&e[t].to&&(e[t].from=De.parseDate(e[t].from),e[t].to=De.parseDate(e[t].to));return e.filter(function(e){return e})}function V(){De.selectedDates=[],De.now=new Date;var e=De.config.defaultDate||De.input.value;e&&z(e,De.config.dateFormat);var t=De.selectedDates.length?De.selectedDates[0]:De.config.minDate&&De.config.minDate.getTime()>De.now?De.config.minDate:De.config.maxDate&&De.config.maxDate.getTime()<De.now?De.config.maxDate:De.now;De.currentYear=t.getFullYear(),De.currentMonth=t.getMonth(),De.selectedDates.length&&(De.latestSelectedDateObj=De.selectedDates[0]),De.minDateHasTime=De.config.minDate&&(De.config.minDate.getHours()||De.config.minDate.getMinutes()||De.config.minDate.getSeconds()),De.maxDateHasTime=De.config.maxDate&&(De.config.maxDate.getHours()||De.config.maxDate.getMinutes()||De.config.maxDate.getSeconds()),Object.defineProperty(De,"latestSelectedDateObj",{get:function(){return De._selectedDateObj||De.selectedDates[De.selectedDates.length-1]},set:function(e){De._selectedDateObj=e}}),De.isMobile||Object.defineProperty(De,"showTimeInput",{get:function(){return De._showTimeInput},set:function(e){De._showTimeInput=e,De.calendarContainer&&me(De.calendarContainer,"showTimeInput",e),J()}})}function Z(){De.utils={duration:{DAY:864e5},getDaysinMonth:function(e,t){return e=void 0===e?De.currentMonth:e,t=void 0===t?De.currentYear:t,1===e&&(t%4==0&&t%100!=0||t%400==0)?29:De.l10n.daysInMonth[e]},monthToStr:function(e,t){return t=void 0===t?De.config.shorthandCurrentMonth:t,De.l10n.months[(t?"short":"long")+"hand"][e]}}}function Q(){De.formats=Object.create(FlatpickrInstance.prototype.formats),["D","F","J","M","W","l"].forEach(function(e){De.formats[e]=FlatpickrInstance.prototype.formats[e].bind(De)}),De.revFormat.F=FlatpickrInstance.prototype.revFormat.F.bind(De),De.revFormat.M=FlatpickrInstance.prototype.revFormat.M.bind(De)}function X(){if(De.input=De.config.wrap?De.element.querySelector("[data-input]"):De.element,!De.input)return console.warn("Error: invalid input element specified",De.input);De.input._type=De.input.type,De.input.type="text",De.input.classList.add("flatpickr-input"),De._input=De.input,De.config.altInput&&(De.altInput=ue(De.input.nodeName,De.input.className+" "+De.config.altInputClass),De._input=De.altInput,De.altInput.placeholder=De.input.placeholder,De.altInput.disabled=De.input.disabled,De.altInput.required=De.input.required,De.altInput.type="text",De.input.type="hidden",!De.config.static&&De.input.parentNode&&De.input.parentNode.insertBefore(De.altInput,De.input.nextSibling)),De.config.allowInput||De._input.setAttribute("readonly","readonly"),De._positionElement=De.config.positionElement||De._input}function ee(){var e=De.config.enableTime?De.config.noCalendar?"time":"datetime-local":"date";De.mobileInput=ue("input",De.input.className+" flatpickr-mobile"),De.mobileInput.step="any",De.mobileInput.tabIndex=1,De.mobileInput.type=e,De.mobileInput.disabled=De.input.disabled,De.mobileInput.placeholder=De.input.placeholder,De.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",De.selectedDates.length&&(De.mobileInput.defaultValue=De.mobileInput.value=De.formatDate(De.selectedDates[0],De.mobileFormatStr)),De.config.minDate&&(De.mobileInput.min=De.formatDate(De.config.minDate,"Y-m-d")),De.config.maxDate&&(De.mobileInput.max=De.formatDate(De.config.maxDate,"Y-m-d")),De.input.type="hidden",De.config.altInput&&(De.altInput.type="hidden");try{De.input.parentNode.insertBefore(De.mobileInput,De.input.nextSibling)}catch(e){}De.mobileInput.addEventListener("change",function(e){De.setDate(e.target.value,!1,De.mobileFormatStr),ne("Change"),ne("Close")})}function te(){if(De.isOpen)return De.close();De.open()}function ne(e,t){var n=De.config["on"+e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](De.selectedDates,De.input.value,De,t);"Change"===e&&(De.input.dispatchEvent(ae("change")),De.input.dispatchEvent(ae("input")))}function ae(e){return De._supportsEvents?new Event(e,{bubbles:!0}):(De._[e+"Event"]=document.createEvent("Event"),De._[e+"Event"].initEvent(e,!0,!0),De._[e+"Event"])}function ie(e){for(var t=0;t<De.selectedDates.length;t++)if(0===pe(De.selectedDates[t],e))return""+t;return!1}function re(e){return!("range"!==De.config.mode||De.selectedDates.length<2)&&(pe(e,De.selectedDates[0])>=0&&pe(e,De.selectedDates[1])<=0)}function oe(){De.config.noCalendar||De.isMobile||!De.monthNav||(De.currentMonthElement.textContent=De.utils.monthToStr(De.currentMonth)+" ",De.currentYearElement.value=De.currentYear,De._hidePrevMonthArrow=De.config.minDate&&(De.currentYear===De.config.minDate.getFullYear()?De.currentMonth<=De.config.minDate.getMonth():De.currentYear<De.config.minDate.getFullYear()),De._hideNextMonthArrow=De.config.maxDate&&(De.currentYear===De.config.maxDate.getFullYear()?De.currentMonth+1>De.config.maxDate.getMonth():De.currentYear>De.config.maxDate.getFullYear()))}function le(e){if(!De.selectedDates.length)return De.clear(e);De.isMobile&&(De.mobileInput.value=De.selectedDates.length?De.formatDate(De.latestSelectedDateObj,De.mobileFormatStr):"");var t="range"!==De.config.mode?"; ":De.l10n.rangeSeparator;De.input.value=De.selectedDates.map(function(e){return De.formatDate(e,De.config.dateFormat)}).join(t),De.config.altInput&&(De.altInput.value=De.selectedDates.map(function(e){return De.formatDate(e,De.config.altFormat)}).join(t)),!1!==e&&ne("ValueUpdate")}function ce(e){return Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))}function se(e){e.preventDefault();var t=De.currentYearElement.parentNode.contains(e.target);if(e.target===De.currentMonthElement||t){var n=ce(e);t?(O(De.currentYear+n),e.target.value=De.currentYear):De.changeMonth(n,!0,!1)}}function de(e){var t=De.prevMonthNav.contains(e.target),n=De.nextMonthNav.contains(e.target);t||n?_(t?-1:1):e.target===De.currentYearElement?(e.preventDefault(),De.currentYearElement.select()):"arrowUp"===e.target.className?De.changeYear(De.currentYear+1):"arrowDown"===e.target.className&&De.changeYear(De.currentYear-1)}function ue(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function fe(e){return e instanceof Array?e:[e]}function me(e,t,n){if(n)return e.classList.add(t);e.classList.remove(t)}function ge(e,t,n){var a=void 0;return function(){var i=this,r=arguments;clearTimeout(a),a=setTimeout(function(){a=null,n||e.apply(i,r)},t),n&&!a&&e.apply(i,r)}}function pe(e,t,n){return e instanceof Date&&t instanceof Date&&(!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime())}function he(e){e.preventDefault();var t="keydown"===e.type,n=(e.type,e.type,e.target);if(De.amPM&&e.target===De.amPM)return e.target.textContent=["AM","PM"]["AM"===e.target.textContent|0];var a=Number(n.min),i=Number(n.max),r=Number(n.step),o=parseInt(n.value,10),l=o+r*(e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0));if(void 0!==n.value&&2===n.value.length){var c=n===De.hourElement,s=n===De.minuteElement;l<a?(l=i+l+!c+(c&&!De.amPM),s&&h(null,-1,De.hourElement)):l>i&&(l=n===De.hourElement?l-i-!De.amPM:a,s&&h(null,1,De.hourElement)),De.amPM&&c&&(1===r?l+o===23:Math.abs(l-o)>r)&&(De.amPM.textContent="PM"===De.amPM.textContent?"AM":"PM"),n.value=De.pad(l)}}var De=this;return De._={},De._.afterDayAnim=b,De._bind=c,De._compareDates=pe,De._setHoursFromDate=r,De.changeMonth=_,De.changeYear=O,De.clear=T,De.close=I,De._createElement=ue,De.destroy=S,De.isEnabled=A,De.jumpToDate=g,De.open=H,De.redraw=K,De.set=$,De.setDate=q,De.toggle=te,function(){De.element=De.input=e,De.instanceConfig=t||{},De.parseDate=FlatpickrInstance.prototype.parseDate.bind(De),De.formatDate=FlatpickrInstance.prototype.formatDate.bind(De),Q(),W(),B(),X(),V(),Z(),De.isOpen=!1,De.isMobile=!De.config.disableMobile&&!De.config.inline&&"single"===De.config.mode&&!De.config.disable.length&&!De.config.enable.length&&!De.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),De.isMobile||v(),d(),(De.selectedDates.length||De.config.noCalendar)&&(De.config.enableTime&&r(De.config.noCalendar?De.latestSelectedDateObj||De.config.minDate:null),le()),De.showTimeInput=De.selectedDates.length>0||De.config.noCalendar,De.config.weekNumbers&&(De.calendarContainer.style.width=De.daysContainer.offsetWidth+De.weekWrapper.offsetWidth+"px"),De.isMobile||J(),ne("Ready")}(),De}function _flatpickr(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++)try{if(null!==n[i].getAttribute("data-fp-omit"))continue;n[i]._flatpickr&&(n[i]._flatpickr.destroy(),n[i]._flatpickr=null),n[i]._flatpickr=new FlatpickrInstance(n[i],t||{}),a.push(n[i]._flatpickr)}catch(e){console.warn(e,e.stack)}return 1===a.length?a[0]:a}function flatpickr(e,t){return e instanceof NodeList?_flatpickr(e,t):e instanceof HTMLElement?_flatpickr([e],t):_flatpickr(window.document.querySelectorAll(e),t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};FlatpickrInstance.prototype={formats:{Z:function(e){return e.toISOString()},D:function(e){return this.l10n.weekdays.shorthand[this.formats.w(e)]},F:function(e){return this.utils.monthToStr(this.formats.n(e)-1,!1)},G:function(e){return FlatpickrInstance.prototype.pad(FlatpickrInstance.prototype.formats.h(e))},H:function(e){return FlatpickrInstance.prototype.pad(e.getHours())},J:function(e){return e.getDate()+this.l10n.ordinal(e.getDate())},K:function(e){return e.getHours()>11?"PM":"AM"},M:function(e){return this.utils.monthToStr(e.getMonth(),!0)},S:function(e){return FlatpickrInstance.prototype.pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e){return this.config.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return FlatpickrInstance.prototype.pad(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return FlatpickrInstance.prototype.pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e){return this.l10n.weekdays.longhand[e.getDay()]},m:function(e){return FlatpickrInstance.prototype.pad(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},formatDate:function(e,t){var n=this;return void 0!==this.config&&void 0!==this.config.formatDate?this.config.formatDate(e,t):t.split("").map(function(t,a,i){return n.formats[t]&&"\\"!==i[a-1]?n.formats[t](e):"\\"!==t?t:""}).join("")},revFormat:{D:function(){},F:function(e,t){e.setMonth(this.l10n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){var n=e.getHours();12!==n&&e.setHours(n%12+12*/pm/i.test(t))},M:function(e,t){e.setMonth(this.l10n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(t)},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){return t=parseInt(t),new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0,0)},Y:function(e,t){e.setFullYear(t)},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:function(){},m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:function(){},y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},tokenRegex:{D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},pad:function(e){return("0"+e).slice(-2)},parseDate:function(e,t,n){if(0!==e&&!e)return null;var a=e;if(e instanceof Date)e=new Date(e.getTime());else if(void 0!==e.toFixed)e=new Date(e);else{var i=t||(this.config||flatpickr.defaultConfig).dateFormat;if("today"===(e=String(e).trim()))e=new Date,n=!0;else if(/Z$/.test(e)||/GMT$/.test(e))e=new Date(e);else if(this.config&&this.config.parseDate)e=this.config.parseDate(e,i);else{for(var r=this.config&&this.config.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),o=void 0,l=0,c=0,s="";l<i.length;l++){var d=i[l],u="\\"===d,f="\\"===i[l-1]||u;if(this.tokenRegex[d]&&!f){s+=this.tokenRegex[d];var m=new RegExp(s).exec(e);m&&(o=!0)&&(r=this.revFormat[d](r,m[++c])||r)}else u||(s+=".")}e=o?r:null}}return e instanceof Date?(!0===n&&e.setHours(0,0,0,0),e):(console.warn("flatpickr: invalid date "+a),console.info(this.element),null)}},"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)}),flatpickr.defaultConfig=FlatpickrInstance.defaultConfig={mode:"single",position:"auto",animate:-1===window.navigator.userAgent.indexOf("MSIE"),wrap:!1,weekNumbers:!1,allowInput:!1,clickOpens:!0,closeOnSelect:!0,time_24hr:!1,enableTime:!1,noCalendar:!1,dateFormat:"Y-m-d",ariaDateFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",altFormat:"F j, Y",defaultDate:null,minDate:null,maxDate:null,parseDate:null,formatDate:null,getWeek:function(e){var t=new Date(e.getTime()),n=new Date(t.getFullYear(),0,1);return Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},enable:[],disable:[],shorthandCurrentMonth:!1,inline:!1,static:!1,appendTo:null,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",enableSeconds:!1,hourIncrement:1,minuteIncrement:5,defaultHour:12,defaultMinute:0,disableMobile:!1,locale:"default",plugins:[],ignoredFocusElements:[],onClose:void 0,onChange:void 0,onDayCreate:void 0,onMonthChange:void 0,onOpen:void 0,onParseConfig:void 0,onReady:void 0,onValueUpdate:void 0,onYearChange:void 0,onKeyDown:void 0,onDestroy:void 0},flatpickr.l10ns={en:{weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(t>3&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"}},flatpickr.l10ns.default=Object.create(flatpickr.l10ns.en),flatpickr.localize=function(e){return _extends(flatpickr.l10ns.default,e||{})},flatpickr.setDefaults=function(e){return _extends(flatpickr.defaultConfig,e||{})},"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},"undefined"!=typeof module&&(module.exports=flatpickr);
|
1 |
/*! flatpickr v3.0.6, @license MIT */
|
2 |
+
function FlatpickrInstance(e,t){function c(e){return e.bind(Z)}function s(e){Z.config.noCalendar&&!Z.selectedDates.length&&(Z.selectedDates=[Z.now]),function(e){e.preventDefault();var t="keydown"===e.type,n=(e.type,e.type,e.target);if(Z.amPM&&e.target===Z.amPM)return e.target.textContent=["AM","PM"]["AM"===e.target.textContent|0];var a=Number(n.min),i=Number(n.max),r=Number(n.step),o=parseInt(n.value,10),l=o+r*(e.delta||(t?38===e.which?1:-1:Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))||0));if(void 0!==n.value&&2===n.value.length){var c=n===Z.hourElement,s=n===Z.minuteElement;l<a?(l=i+l+!c+(c&&!Z.amPM),s&&h(null,-1,Z.hourElement)):i<l&&(l=n===Z.hourElement?l-i-!Z.amPM:a,s&&h(null,1,Z.hourElement)),Z.amPM&&c&&(1===r?l+o===23:Math.abs(l-o)>r)&&(Z.amPM.textContent="PM"===Z.amPM.textContent?"AM":"PM"),n.value=Z.pad(l)}}(e),Z.selectedDates.length&&(!Z.minDateHasTime||"input"!==e.type||2<=e.target.value.length?(d(),B()):setTimeout(function(){d(),B()},1e3))}function d(){if(Z.config.enableTime){var e=(parseInt(Z.hourElement.value,10)||0)%(Z.amPM?12:24),t=(parseInt(Z.minuteElement.value,10)||0)%60,n=Z.config.enableSeconds?(parseInt(Z.secondElement.value,10)||0)%60:0;void 0!==Z.amPM&&(e=e%12+12*("PM"===Z.amPM.textContent)),Z.minDateHasTime&&0===V(Z.latestSelectedDateObj,Z.config.minDate)&&(e=Math.max(e,Z.config.minDate.getHours()))===Z.config.minDate.getHours()&&(t=Math.max(t,Z.config.minDate.getMinutes())),Z.maxDateHasTime&&0===V(Z.latestSelectedDateObj,Z.config.maxDate)&&(e=Math.min(e,Z.config.maxDate.getHours()))===Z.config.maxDate.getHours()&&(t=Math.min(t,Z.config.maxDate.getMinutes())),a(e,t,n)}}function l(e){var t=e||Z.latestSelectedDateObj;t&&a(t.getHours(),t.getMinutes(),t.getSeconds())}function a(e,t,n){Z.selectedDates.length&&Z.latestSelectedDateObj.setHours(e%24,t,n||0,0),Z.config.enableTime&&!Z.isMobile&&(Z.hourElement.value=Z.pad(Z.config.time_24hr?e:(12+e)%12+12*(e%12==0)),Z.minuteElement.value=Z.pad(t),Z.config.time_24hr||(Z.amPM.textContent=12<=e?"PM":"AM"),!0===Z.config.enableSeconds&&(Z.secondElement.value=Z.pad(n)))}function n(e){var t=e.target.value;e.delta&&(t=(parseInt(t)+e.delta).toString()),4!==t.length&&"Enter"!==e.key||(Z.currentYearElement.blur(),/[^\d]/.test(t)||N(t))}function i(t,n,a){return n instanceof Array?n.forEach(function(e){return i(t,e,a)}):t instanceof Array?t.forEach(function(e){return i(e,n,a)}):(t.addEventListener(n,a),void Z._handlers.push({element:t,event:n,handler:a}))}function r(t){return function(e){return 1===e.which&&t(e)}}function o(){if(Z._handlers=[],Z._animationLoop=[],Z.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(Z.element.querySelectorAll("[data-"+t+"]"),function(e){return i(e,"mousedown",r(Z[t]))})}),Z.isMobile)return function(){var e=Z.config.enableTime?Z.config.noCalendar?"time":"datetime-local":"date";Z.mobileInput=U("input",Z.input.className+" flatpickr-mobile"),Z.mobileInput.step="any",Z.mobileInput.tabIndex=1,Z.mobileInput.type=e,Z.mobileInput.disabled=Z.input.disabled,Z.mobileInput.placeholder=Z.input.placeholder,Z.mobileFormatStr="datetime-local"==e?"Y-m-d\\TH:i:S":"date"==e?"Y-m-d":"H:i:S",Z.selectedDates.length&&(Z.mobileInput.defaultValue=Z.mobileInput.value=Z.formatDate(Z.selectedDates[0],Z.mobileFormatStr)),Z.config.minDate&&(Z.mobileInput.min=Z.formatDate(Z.config.minDate,"Y-m-d")),Z.config.maxDate&&(Z.mobileInput.max=Z.formatDate(Z.config.maxDate,"Y-m-d")),Z.input.type="hidden",Z.config.altInput&&(Z.altInput.type="hidden");try{Z.input.parentNode.insertBefore(Z.mobileInput,Z.input.nextSibling)}catch(e){}Z.mobileInput.addEventListener("change",function(e){Z.setDate(e.target.value,!1,Z.mobileFormatStr),j("Change"),j("Close")})}();if(Z.debouncedResize=G(S,50),Z.triggerChange=function(){j("Change")},Z.debouncedChange=G(Z.triggerChange,300),"range"===Z.config.mode&&Z.daysContainer&&i(Z.daysContainer,"mouseover",function(e){return I(e.target)}),i(window.document.body,"keydown",T),Z.config.static||i(Z._input,"keydown",T),Z.config.inline||Z.config.static||i(window,"resize",Z.debouncedResize),void 0!==window.ontouchstart&&i(window.document,"touchstart",E),i(window.document,"mousedown",r(E)),i(Z._input,"blur",E),!0===Z.config.clickOpens&&(i(Z._input,"focus",Z.open),i(Z._input,"mousedown",r(Z.open))),Z.config.noCalendar||(Z.monthNav.addEventListener("wheel",function(e){return e.preventDefault()}),i(Z.monthNav,"wheel",G(J,10)),i(Z.monthNav,"mousedown",r(K)),i(Z.monthNav,["keyup","increment"],n),i(Z.daysContainer,"mousedown",r(A)),Z.config.animate&&(i(Z.daysContainer,["webkitAnimationEnd","animationend"],f),i(Z.monthNav,["webkitAnimationEnd","animationend"],m))),Z.config.enableTime){i(Z.timeContainer,["wheel","input","increment"],s),i(Z.timeContainer,"mousedown",r(p)),i(Z.timeContainer,["wheel","increment"],Z.debouncedChange),i(Z.timeContainer,"input",Z.triggerChange),i([Z.hourElement,Z.minuteElement],"focus",function(e){return e.target.select()}),void 0!==Z.secondElement&&i(Z.secondElement,"focus",function(){return Z.secondElement.select()}),void 0!==Z.amPM&&i(Z.amPM,"mousedown",r(function(e){s(e),Z.triggerChange(e)}))}}function u(){for(var e=Z._animationLoop.length;e--;)Z._animationLoop[e](),Z._animationLoop.splice(e,1)}function f(e){if(1<Z.daysContainer.childNodes.length)switch(e.animationName){case"fpSlideLeft":Z.daysContainer.lastChild.classList.remove("slideLeftNew"),Z.daysContainer.removeChild(Z.daysContainer.firstChild),Z.days=Z.daysContainer.firstChild,u();break;case"fpSlideRight":Z.daysContainer.firstChild.classList.remove("slideRightNew"),Z.daysContainer.removeChild(Z.daysContainer.lastChild),Z.days=Z.daysContainer.firstChild,u()}}function m(e){switch(e.animationName){case"fpSlideLeftNew":case"fpSlideRightNew":Z.navigationCurrentMonth.classList.remove("slideLeftNew"),Z.navigationCurrentMonth.classList.remove("slideRightNew");for(var t=Z.navigationCurrentMonth;t.nextSibling&&/curr/.test(t.nextSibling.className);)Z.monthNav.removeChild(t.nextSibling);for(;t.previousSibling&&/curr/.test(t.previousSibling.className);)Z.monthNav.removeChild(t.previousSibling);Z.oldCurMonth=null}}function g(e){e=e?Z.parseDate(e):Z.latestSelectedDateObj||(Z.config.minDate>Z.now?Z.config.minDate:Z.config.maxDate&&Z.config.maxDate<Z.now?Z.config.maxDate:Z.now);try{Z.currentYear=e.getFullYear(),Z.currentMonth=e.getMonth()}catch(e){}Z.redraw()}function p(e){~e.target.className.indexOf("arrow")&&h(e,e.target.classList.contains("arrowUp")?1:-1)}function h(e,t,n){var a=n||e.target.parentNode.childNodes[0],i=H("increment");i.delta=t,a.dispatchEvent(i)}function D(e){var t=U("div","numInputWrapper"),n=U("input","numInput "+e),a=U("span","arrowUp"),i=U("span","arrowDown");return n.type="text",n.pattern="\\d*",t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function v(){var e=window.document.createDocumentFragment();Z.calendarContainer=U("div","flatpickr-calendar"),Z.calendarContainer.tabIndex=-1,Z.config.noCalendar||(e.appendChild(function(){var e=window.document.createDocumentFragment();Z.monthNav=U("div","flatpickr-month"),Z.prevMonthNav=U("span","flatpickr-prev-month"),Z.prevMonthNav.innerHTML=Z.config.prevArrow,Z.currentMonthElement=U("span","cur-month"),Z.currentMonthElement.title=Z.l10n.scrollTitle;var t=D("cur-year");return Z.currentYearElement=t.childNodes[0],Z.currentYearElement.title=Z.l10n.scrollTitle,Z.config.minDate&&(Z.currentYearElement.min=Z.config.minDate.getFullYear()),Z.config.maxDate&&(Z.currentYearElement.max=Z.config.maxDate.getFullYear(),Z.currentYearElement.disabled=Z.config.minDate&&Z.config.minDate.getFullYear()===Z.config.maxDate.getFullYear()),Z.nextMonthNav=U("span","flatpickr-next-month"),Z.nextMonthNav.innerHTML=Z.config.nextArrow,Z.navigationCurrentMonth=U("span","flatpickr-current-month"),Z.navigationCurrentMonth.appendChild(Z.currentMonthElement),Z.navigationCurrentMonth.appendChild(t),e.appendChild(Z.prevMonthNav),e.appendChild(Z.navigationCurrentMonth),e.appendChild(Z.nextMonthNav),Z.monthNav.appendChild(e),Object.defineProperty(Z,"_hidePrevMonthArrow",{get:function(){return this.__hidePrevMonthArrow},set:function(e){this.__hidePrevMonthArrow!==e&&(Z.prevMonthNav.style.display=e?"none":"block"),this.__hidePrevMonthArrow=e}}),Object.defineProperty(Z,"_hideNextMonthArrow",{get:function(){return this.__hideNextMonthArrow},set:function(e){this.__hideNextMonthArrow!==e&&(Z.nextMonthNav.style.display=e?"none":"block"),this.__hideNextMonthArrow=e}}),W(),Z.monthNav}()),Z.innerContainer=U("div","flatpickr-innerContainer"),Z.config.weekNumbers&&Z.innerContainer.appendChild((Z.calendarContainer.classList.add("hasWeeks"),Z.weekWrapper=U("div","flatpickr-weekwrapper"),Z.weekWrapper.appendChild(U("span","flatpickr-weekday",Z.l10n.weekAbbreviation)),Z.weekNumbers=U("div","flatpickr-weeks"),Z.weekWrapper.appendChild(Z.weekNumbers),Z.weekWrapper)),Z.rContainer=U("div","flatpickr-rContainer"),Z.rContainer.appendChild(y()),Z.daysContainer||(Z.daysContainer=U("div","flatpickr-days"),Z.daysContainer.tabIndex=-1),M(),Z.rContainer.appendChild(Z.daysContainer),Z.innerContainer.appendChild(Z.rContainer),e.appendChild(Z.innerContainer)),Z.config.enableTime&&e.appendChild(function(){Z.calendarContainer.classList.add("hasTime"),Z.config.noCalendar&&Z.calendarContainer.classList.add("noCalendar"),Z.timeContainer=U("div","flatpickr-time"),Z.timeContainer.tabIndex=-1;var e=U("span","flatpickr-time-separator",":"),t=D("flatpickr-hour");Z.hourElement=t.childNodes[0];var n=D("flatpickr-minute");if(Z.minuteElement=n.childNodes[0],Z.hourElement.tabIndex=Z.minuteElement.tabIndex=-1,Z.hourElement.value=Z.pad(Z.latestSelectedDateObj?Z.latestSelectedDateObj.getHours():Z.config.defaultHour),Z.minuteElement.value=Z.pad(Z.latestSelectedDateObj?Z.latestSelectedDateObj.getMinutes():Z.config.defaultMinute),Z.hourElement.step=Z.config.hourIncrement,Z.minuteElement.step=Z.config.minuteIncrement,Z.hourElement.min=Z.config.time_24hr?0:1,Z.hourElement.max=Z.config.time_24hr?23:12,Z.minuteElement.min=0,Z.minuteElement.max=59,Z.hourElement.title=Z.minuteElement.title=Z.l10n.scrollTitle,Z.timeContainer.appendChild(t),Z.timeContainer.appendChild(e),Z.timeContainer.appendChild(n),Z.config.time_24hr&&Z.timeContainer.classList.add("time24hr"),Z.config.enableSeconds){Z.timeContainer.classList.add("hasSeconds");var a=D("flatpickr-second");Z.secondElement=a.childNodes[0],Z.secondElement.value=Z.latestSelectedDateObj?Z.pad(Z.latestSelectedDateObj.getSeconds()):"00",Z.secondElement.step=Z.minuteElement.step,Z.secondElement.min=Z.minuteElement.min,Z.secondElement.max=Z.minuteElement.max,Z.timeContainer.appendChild(U("span","flatpickr-time-separator",":")),Z.timeContainer.appendChild(a)}return Z.config.time_24hr||(Z.amPM=U("span","flatpickr-am-pm",["AM","PM"][11<Z.hourElement.value|0]),Z.amPM.title=Z.l10n.toggleTitle,Z.amPM.tabIndex=-1,Z.timeContainer.appendChild(Z.amPM)),Z.timeContainer}()),q(Z.calendarContainer,"rangeMode","range"===Z.config.mode),q(Z.calendarContainer,"animate",Z.config.animate),Z.calendarContainer.appendChild(e);var t=Z.config.appendTo&&Z.config.appendTo.nodeType;if(Z.config.inline||Z.config.static){if(Z.calendarContainer.classList.add(Z.config.inline?"inline":"static"),Z.config.inline&&!t)return Z.element.parentNode.insertBefore(Z.calendarContainer,Z._input.nextSibling);if(Z.config.static){var n=U("div","flatpickr-wrapper");return Z.element.parentNode.insertBefore(n,Z.element),n.appendChild(Z.element),Z.altInput&&n.appendChild(Z.altInput),void n.appendChild(Z.calendarContainer)}}(t?Z.config.appendTo:window.document.body).appendChild(Z.calendarContainer)}function C(e,t,n,a){var i=_(t,!0),r=U("span","flatpickr-day "+e,t.getDate());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",Z.formatDate(t,Z.config.ariaDateFormat)),0===V(t,Z.now)&&(Z.todayDateElem=r).classList.add("today"),i?(r.tabIndex=-1,R(t)&&(r.classList.add("selected"),Z.selectedDateElem=r,"range"===Z.config.mode&&(q(r,"startRange",0===V(t,Z.selectedDates[0])),q(r,"endRange",0===V(t,Z.selectedDates[1]))))):(r.classList.add("disabled"),Z.selectedDates[0]&&t>Z.minRangeDate&&t<Z.selectedDates[0]?Z.minRangeDate=t:Z.selectedDates[0]&&t<Z.maxRangeDate&&t>Z.selectedDates[0]&&(Z.maxRangeDate=t)),"range"===Z.config.mode&&(function(e){return!("range"!==Z.config.mode||Z.selectedDates.length<2)&&0<=V(e,Z.selectedDates[0])&&V(e,Z.selectedDates[1])<=0}(t)&&!R(t)&&r.classList.add("inRange"),1===Z.selectedDates.length&&(t<Z.minRangeDate||t>Z.maxRangeDate)&&r.classList.add("notAllowed")),Z.config.weekNumbers&&"prevMonthDay"!==e&&n%7==1&&Z.weekNumbers.insertAdjacentHTML("beforeend","<span class='disabled flatpickr-day'>"+Z.config.getWeek(t)+"</span>"),j("DayCreate",r),r}function w(e,t){function n(){(i=i||Z.days.childNodes[a]).focus(),"range"===Z.config.mode&&I(i)}var a=e+t||0,i=void 0!==e?Z.days.childNodes[a]:Z.selectedDateElem||Z.todayDateElem||Z.days.childNodes[0];if(void 0===i&&0!==t)return 0<t?(Z.changeMonth(1),a%=42):t<0&&(Z.changeMonth(-1),a+=42),b(n);n()}function b(e){if(!0===Z.config.animate)return Z._animationLoop.push(e);e()}function M(e){var t=(new Date(Z.currentYear,Z.currentMonth,1).getDay()-Z.l10n.firstDayOfWeek+7)%7,n="range"===Z.config.mode;Z.prevMonthDays=Z.utils.getDaysinMonth((Z.currentMonth-1+12)%12),Z.selectedDateElem=void 0,Z.todayDateElem=void 0;var a=Z.utils.getDaysinMonth(),i=window.document.createDocumentFragment(),r=Z.prevMonthDays+1-t,o=0;for(Z.config.weekNumbers&&Z.weekNumbers.firstChild&&(Z.weekNumbers.textContent=""),n&&(Z.minRangeDate=new Date(Z.currentYear,Z.currentMonth-1,r),Z.maxRangeDate=new Date(Z.currentYear,Z.currentMonth+1,(42-t)%a));r<=Z.prevMonthDays;r++,o++)i.appendChild(C("prevMonthDay",new Date(Z.currentYear,Z.currentMonth-1,r),r,o));for(r=1;r<=a;r++,o++)i.appendChild(C("",new Date(Z.currentYear,Z.currentMonth,r),r,o));for(var l=a+1;l<=42-t;l++,o++)i.appendChild(C("nextMonthDay",new Date(Z.currentYear,Z.currentMonth+1,l%a),l,o));n&&1===Z.selectedDates.length&&i.childNodes[0]?(Z._hidePrevMonthArrow=Z._hidePrevMonthArrow||Z.minRangeDate>i.childNodes[0].dateObj,Z._hideNextMonthArrow=Z._hideNextMonthArrow||Z.maxRangeDate<new Date(Z.currentYear,Z.currentMonth+1,1)):W();var c=U("div","dayContainer");if(c.appendChild(i),Z.config.animate&&void 0!==e)for(;1<Z.daysContainer.childNodes.length;)Z.daysContainer.removeChild(Z.daysContainer.firstChild);else!function(e){for(;e.firstChild;)e.removeChild(e.firstChild)}(Z.daysContainer);return 0<=e?Z.daysContainer.appendChild(c):Z.daysContainer.insertBefore(c,Z.daysContainer.firstChild),Z.days=Z.daysContainer.firstChild,Z.daysContainer}function y(){Z.weekdayContainer||(Z.weekdayContainer=U("div","flatpickr-weekdays"));var e=Z.l10n.firstDayOfWeek,t=Z.l10n.weekdays.shorthand.slice();return 0<e&&e<t.length&&(t=[].concat(t.splice(e,t.length),t.splice(0,e))),Z.weekdayContainer.innerHTML="\n\t\t<span class=flatpickr-weekday>\n\t\t\t"+t.join("</span><span class=flatpickr-weekday>")+"\n\t\t</span>\n\t\t",Z.weekdayContainer}function k(e,t,n){var a=(t=void 0===t||t)?e:e-Z.currentMonth,i=!Z.config.animate||!1===n;if(!(a<0&&Z._hidePrevMonthArrow||0<a&&Z._hideNextMonthArrow)){if(Z.currentMonth+=a,(Z.currentMonth<0||11<Z.currentMonth)&&(Z.currentYear+=11<Z.currentMonth?1:-1,Z.currentMonth=(Z.currentMonth+12)%12,j("YearChange")),M(i?void 0:a),i)return j("MonthChange"),W();var r=Z.navigationCurrentMonth;if(a<0)for(;r.nextSibling&&/curr/.test(r.nextSibling.className);)Z.monthNav.removeChild(r.nextSibling);else if(0<a)for(;r.previousSibling&&/curr/.test(r.previousSibling.className);)Z.monthNav.removeChild(r.previousSibling);if(Z.oldCurMonth=Z.navigationCurrentMonth,Z.navigationCurrentMonth=Z.monthNav.insertBefore(Z.oldCurMonth.cloneNode(!0),0<a?Z.oldCurMonth.nextSibling:Z.oldCurMonth),0<a?(Z.daysContainer.firstChild.classList.add("slideLeft"),Z.daysContainer.lastChild.classList.add("slideLeftNew"),Z.oldCurMonth.classList.add("slideLeft"),Z.navigationCurrentMonth.classList.add("slideLeftNew")):a<0&&(Z.daysContainer.firstChild.classList.add("slideRightNew"),Z.daysContainer.lastChild.classList.add("slideRight"),Z.oldCurMonth.classList.add("slideRight"),Z.navigationCurrentMonth.classList.add("slideRightNew")),Z.currentMonthElement=Z.navigationCurrentMonth.firstChild,Z.currentYearElement=Z.navigationCurrentMonth.lastChild.childNodes[0],W(),Z.oldCurMonth.firstChild.textContent=Z.utils.monthToStr(Z.currentMonth-a),j("MonthChange"),document.activeElement&&document.activeElement.$i){var o=document.activeElement.$i;b(function(){w(o,0)})}}}function x(e){return!(!Z.config.appendTo||!Z.config.appendTo.contains(e))||Z.calendarContainer.contains(e)}function E(e){if(Z.isOpen&&!Z.config.inline){var t=x(e.target),n=e.target===Z.input||e.target===Z.altInput||Z.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(Z.input)||~e.path.indexOf(Z.altInput));("blur"===e.type?!n||!e.relatedTarget||x(e.relatedTarget):n||t)||-1!==Z.config.ignoredFocusElements.indexOf(e.target)||(Z.close(),"range"===Z.config.mode&&1===Z.selectedDates.length&&(Z.clear(!1),Z.redraw()))}}function N(e){if(!(!e||Z.currentYearElement.min&&e<Z.currentYearElement.min||Z.currentYearElement.max&&e>Z.currentYearElement.max)){var t=parseInt(e,10),n=Z.currentYear!==t;Z.currentYear=t||Z.currentYear,Z.config.maxDate&&Z.currentYear===Z.config.maxDate.getFullYear()?Z.currentMonth=Math.min(Z.config.maxDate.getMonth(),Z.currentMonth):Z.config.minDate&&Z.currentYear===Z.config.minDate.getFullYear()&&(Z.currentMonth=Math.max(Z.config.minDate.getMonth(),Z.currentMonth)),n&&(Z.redraw(),j("YearChange"))}}function _(e,t){if(Z.config.minDate&&V(e,Z.config.minDate,void 0!==t?t:!Z.minDateHasTime)<0||Z.config.maxDate&&0<V(e,Z.config.maxDate,void 0!==t?t:!Z.maxDateHasTime))return!1;if(!Z.config.enable.length&&!Z.config.disable.length)return!0;for(var n,a=Z.parseDate(e,null,!0),i=0<Z.config.enable.length,r=i?Z.config.enable:Z.config.disable,o=0;o<r.length;o++){if((n=r[o])instanceof Function&&n(a))return i;if(n instanceof Date&&n.getTime()===a.getTime())return i;if("string"==typeof n&&Z.parseDate(n,null,!0).getTime()===a.getTime())return i;if("object"===(void 0===n?"undefined":_typeof(n))&&n.from&&n.to&&a>=n.from&&a<=n.to)return i}return!i}function T(e){var t=e.target===Z._input,n=x(e.target),a=Z.config.allowInput,i=Z.isOpen&&(!a||!t),r=Z.config.inline&&t&&!a;if("Enter"===e.key&&a&&t)return Z.setDate(Z._input.value,!0,e.target===Z.altInput?Z.config.altFormat:Z.config.dateFormat),e.target.blur();if(n||i||r){var o=Z.timeContainer&&Z.timeContainer.contains(e.target);switch(e.key){case"Enter":o?B():A(e);break;case"Escape":e.preventDefault(),Z.close();break;case"ArrowLeft":case"ArrowRight":if(!o)if(e.preventDefault(),Z.daysContainer){var l="ArrowRight"===e.key?1:-1;e.ctrlKey?k(l,!0):w(e.target.$i,l)}else Z.config.enableTime&&!o&&Z.hourElement.focus();break;case"ArrowUp":case"ArrowDown":e.preventDefault();var c="ArrowDown"===e.key?1:-1;Z.daysContainer?e.ctrlKey?(N(Z.currentYear-c),w(e.target.$i,0)):o||w(e.target.$i,7*c):Z.config.enableTime&&(o||Z.hourElement.focus(),s(e));break;case"Tab":e.target===Z.hourElement?(e.preventDefault(),Z.minuteElement.select()):e.target===Z.minuteElement&&(Z.secondElement||Z.amPM)?(e.preventDefault(),(Z.secondElement||Z.amPM).focus()):e.target===Z.secondElement&&(e.preventDefault(),Z.amPM.focus());break;case"a":e.target===Z.amPM&&(Z.amPM.textContent="AM",d(),B());break;case"p":e.target===Z.amPM&&(Z.amPM.textContent="PM",d(),B())}j("KeyDown",e)}}function I(o){if(1===Z.selectedDates.length&&o.classList.contains("flatpickr-day")){for(var l=o.dateObj,c=Z.parseDate(Z.selectedDates[0],null,!0),s=Math.min(l.getTime(),Z.selectedDates[0].getTime()),d=Math.max(l.getTime(),Z.selectedDates[0].getTime()),u=!1,e=s;e<d;e+=Z.utils.duration.DAY)if(!_(new Date(e))){u=!0;break}for(var t=Z.days.childNodes[0].dateObj.getTime(),n=0;n<42;n++,t+=Z.utils.duration.DAY)!function(e,t){var n=e<Z.minRangeDate.getTime()||e>Z.maxRangeDate.getTime(),a=Z.days.childNodes[t];if(n)return Z.days.childNodes[t].classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){a.classList.remove(e)});if(u&&!n)return;["startRange","inRange","endRange","notAllowed"].forEach(function(e){a.classList.remove(e)});var i=Math.max(Z.minRangeDate.getTime(),s),r=Math.min(Z.maxRangeDate.getTime(),d);o.classList.add(l<Z.selectedDates[0]?"startRange":"endRange"),c<l&&e===c.getTime()?a.classList.add("startRange"):l<c&&e===c.getTime()&&a.classList.add("endRange"),i<=e&&e<=r&&a.classList.add("inRange")}(t,n)}}function S(){!Z.isOpen||Z.config.static||Z.config.inline||Y()}function F(i){return function(e){var t=Z.config["_"+i+"Date"]=Z.parseDate(e),n=Z.config["_"+("min"===i?"max":"min")+"Date"],a=e&&t instanceof Date;a&&(Z[i+"DateHasTime"]=t.getHours()||t.getMinutes()||t.getSeconds()),Z.selectedDates&&(Z.selectedDates=Z.selectedDates.filter(function(e){return _(e)}),Z.selectedDates.length||"min"!==i||l(t),B()),Z.daysContainer&&(O(),a?Z.currentYearElement[i]=t.getFullYear():Z.currentYearElement.removeAttribute(i),Z.currentYearElement.disabled=n&&t&&n.getFullYear()===t.getFullYear())}}function Y(e){var t=0<arguments.length&&void 0!==e?e:Z._positionElement;if(void 0!==Z.calendarContainer){var n=Z.calendarContainer.offsetHeight,a=Z.calendarContainer.offsetWidth,i=Z.config.position,r=t.getBoundingClientRect(),o=window.innerHeight-r.bottom,l="above"===i||"below"!==i&&o<n&&r.top>n,c=window.pageYOffset+r.top+(l?-n-2:t.offsetHeight+2);if(q(Z.calendarContainer,"arrowTop",!l),q(Z.calendarContainer,"arrowBottom",l),!Z.config.inline){var s=window.pageXOffset+r.left,d=window.document.body.offsetWidth-r.right,u=s+a>window.document.body.offsetWidth;q(Z.calendarContainer,"rightMost",u),Z.config.static||(Z.calendarContainer.style.top=c+"px",u?(Z.calendarContainer.style.left="auto",Z.calendarContainer.style.right=d+"px"):(Z.calendarContainer.style.left=s+"px",Z.calendarContainer.style.right="auto"))}}}function O(){Z.config.noCalendar||Z.isMobile||(y(),W(),M())}function A(e){if(e.preventDefault(),e.stopPropagation(),e.target.classList.contains("flatpickr-day")&&!e.target.classList.contains("disabled")&&!e.target.classList.contains("notAllowed")){var t=Z.latestSelectedDateObj=new Date(e.target.dateObj.getTime()),n=t.getMonth()!==Z.currentMonth&&"range"!==Z.config.mode;if(Z.selectedDateElem=e.target,"single"===Z.config.mode)Z.selectedDates=[t];else if("multiple"===Z.config.mode){var a=R(t);a?Z.selectedDates.splice(a,1):Z.selectedDates.push(t)}else"range"===Z.config.mode&&(2===Z.selectedDates.length&&Z.clear(),Z.selectedDates.push(t),0!==V(t,Z.selectedDates[0],!0)&&Z.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(d(),n){var i=Z.currentYear!==t.getFullYear();Z.currentYear=t.getFullYear(),Z.currentMonth=t.getMonth(),i&&j("YearChange"),j("MonthChange")}if(M(),Z.minDateHasTime&&Z.config.enableTime&&0===V(t,Z.config.minDate)&&l(Z.config.minDate),B(),Z.config.enableTime&&setTimeout(function(){return Z.showTimeInput=!0},50),"range"===Z.config.mode&&(1===Z.selectedDates.length?(I(e.target),Z._hidePrevMonthArrow=Z._hidePrevMonthArrow||Z.minRangeDate>Z.days.childNodes[0].dateObj,Z._hideNextMonthArrow=Z._hideNextMonthArrow||Z.maxRangeDate<new Date(Z.currentYear,Z.currentMonth+1,1)):W()),j("Change"),n?b(function(){return Z.selectedDateElem.focus()}):w(e.target.$i,0),Z.config.enableTime&&setTimeout(function(){return Z.hourElement.select()},451),Z.config.closeOnSelect){var r="single"===Z.config.mode&&!Z.config.enableTime,o="range"===Z.config.mode&&2===Z.selectedDates.length&&!Z.config.enableTime;(r||o)&&Z.close()}}}function L(e,t){if(e instanceof Array)Z.selectedDates=e.map(function(e){return Z.parseDate(e,t)});else if(e instanceof Date||!isNaN(e))Z.selectedDates=[Z.parseDate(e,t)];else if(e&&e.substring)switch(Z.config.mode){case"single":Z.selectedDates=[Z.parseDate(e,t)];break;case"multiple":Z.selectedDates=e.split("; ").map(function(e){return Z.parseDate(e,t)});break;case"range":Z.selectedDates=e.split(Z.l10n.rangeSeparator).map(function(e){return Z.parseDate(e,t)})}Z.selectedDates=Z.selectedDates.filter(function(e){return e instanceof Date&&_(e,!1)}),Z.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function P(e){for(var t=e.length;t--;)"string"==typeof e[t]||+e[t]?e[t]=Z.parseDate(e[t],null,!0):e[t]&&e[t].from&&e[t].to&&(e[t].from=Z.parseDate(e[t].from),e[t].to=Z.parseDate(e[t].to));return e.filter(function(e){return e})}function j(e,t){var n=Z.config["on"+e];if(void 0!==n&&0<n.length)for(var a=0;n[a]&&a<n.length;a++)n[a](Z.selectedDates,Z.input.value,Z,t);"Change"===e&&(Z.input.dispatchEvent(H("change")),Z.input.dispatchEvent(H("input")))}function H(e){return Z._supportsEvents?new Event(e,{bubbles:!0}):(Z._[e+"Event"]=document.createEvent("Event"),Z._[e+"Event"].initEvent(e,!0,!0),Z._[e+"Event"])}function R(e){for(var t=0;t<Z.selectedDates.length;t++)if(0===V(Z.selectedDates[t],e))return""+t;return!1}function W(){Z.config.noCalendar||Z.isMobile||!Z.monthNav||(Z.currentMonthElement.textContent=Z.utils.monthToStr(Z.currentMonth)+" ",Z.currentYearElement.value=Z.currentYear,Z._hidePrevMonthArrow=Z.config.minDate&&(Z.currentYear===Z.config.minDate.getFullYear()?Z.currentMonth<=Z.config.minDate.getMonth():Z.currentYear<Z.config.minDate.getFullYear()),Z._hideNextMonthArrow=Z.config.maxDate&&(Z.currentYear===Z.config.maxDate.getFullYear()?Z.currentMonth+1>Z.config.maxDate.getMonth():Z.currentYear>Z.config.maxDate.getFullYear()))}function B(e){if(!Z.selectedDates.length)return Z.clear(e);Z.isMobile&&(Z.mobileInput.value=Z.selectedDates.length?Z.formatDate(Z.latestSelectedDateObj,Z.mobileFormatStr):"");var t="range"!==Z.config.mode?"; ":Z.l10n.rangeSeparator;Z.input.value=Z.selectedDates.map(function(e){return Z.formatDate(e,Z.config.dateFormat)}).join(t),Z.config.altInput&&(Z.altInput.value=Z.selectedDates.map(function(e){return Z.formatDate(e,Z.config.altFormat)}).join(t)),!1!==e&&j("ValueUpdate")}function J(e){e.preventDefault();var t=Z.currentYearElement.parentNode.contains(e.target);if(e.target===Z.currentMonthElement||t){var n=function(e){return Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY))}(e);t?(N(Z.currentYear+n),e.target.value=Z.currentYear):Z.changeMonth(n,!0,!1)}}function K(e){var t=Z.prevMonthNav.contains(e.target),n=Z.nextMonthNav.contains(e.target);t||n?k(t?-1:1):e.target===Z.currentYearElement?(e.preventDefault(),Z.currentYearElement.select()):"arrowUp"===e.target.className?Z.changeYear(Z.currentYear+1):"arrowDown"===e.target.className&&Z.changeYear(Z.currentYear-1)}function U(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function z(e){return e instanceof Array?e:[e]}function q(e,t,n){if(n)return e.classList.add(t);e.classList.remove(t)}function G(n,a,i){var r=void 0;return function(){var e=this,t=arguments;clearTimeout(r),r=setTimeout(function(){r=null,i||n.apply(e,t)},a),i&&!r&&n.apply(e,t)}}function V(e,t,n){return e instanceof Date&&t instanceof Date&&(!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime())}var Z=this;return Z._={},Z._.afterDayAnim=b,Z._bind=i,Z._compareDates=V,Z._setHoursFromDate=l,Z.changeMonth=k,Z.changeYear=N,Z.clear=function(e){Z.input.value="",Z.altInput&&(Z.altInput.value=""),Z.mobileInput&&(Z.mobileInput.value=""),Z.selectedDates=[],Z.latestSelectedDateObj=void 0,Z.showTimeInput=!1,Z.redraw(),!1!==e&&j("Change")},Z.close=function(){Z.isOpen=!1,Z.isMobile||(Z.calendarContainer.classList.remove("open"),Z._input.classList.remove("active")),j("Close")},Z._createElement=U,Z.destroy=function(){void 0!==Z.config&&j("Destroy");for(var e=Z._handlers.length;e--;){var t=Z._handlers[e];t.element.removeEventListener(t.event,t.handler)}Z._handlers=[],Z.mobileInput?(Z.mobileInput.parentNode&&Z.mobileInput.parentNode.removeChild(Z.mobileInput),Z.mobileInput=null):Z.calendarContainer&&Z.calendarContainer.parentNode&&Z.calendarContainer.parentNode.removeChild(Z.calendarContainer),Z.altInput&&(Z.input.type="text",Z.altInput.parentNode&&Z.altInput.parentNode.removeChild(Z.altInput),delete Z.altInput),Z.input&&(Z.input.type=Z.input._type,Z.input.classList.remove("flatpickr-input"),Z.input.removeAttribute("readonly"),Z.input.value=""),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){return delete Z[e]})},Z.isEnabled=_,Z.jumpToDate=g,Z.open=function(e,t){if(Z.isMobile)return e&&(e.preventDefault(),e.target.blur()),setTimeout(function(){Z.mobileInput.click()},0),void j("Open");Z.isOpen||Z._input.disabled||Z.config.inline||(Z.isOpen=!0,Z.calendarContainer.classList.add("open"),Y(t),Z._input.classList.add("active"),j("Open"))},Z.redraw=O,Z.set=function(e,t){Z.config[e]=t,Z.redraw(),g()},Z.setDate=function(e,t,n){if(0!==e&&!e)return Z.clear(t);L(e,n),Z.showTimeInput=0<Z.selectedDates.length,Z.latestSelectedDateObj=Z.selectedDates[0],Z.redraw(),g(),l(),B(t),t&&j("Change")},Z.toggle=function(){if(Z.isOpen)return Z.close();Z.open()},Z.element=Z.input=e,Z.instanceConfig=t||{},Z.parseDate=FlatpickrInstance.prototype.parseDate.bind(Z),Z.formatDate=FlatpickrInstance.prototype.formatDate.bind(Z),Z.formats=Object.create(FlatpickrInstance.prototype.formats),["D","F","J","M","W","l"].forEach(function(e){Z.formats[e]=FlatpickrInstance.prototype.formats[e].bind(Z)}),Z.revFormat.F=FlatpickrInstance.prototype.revFormat.F.bind(Z),Z.revFormat.M=FlatpickrInstance.prototype.revFormat.M.bind(Z),function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange"];Z.config=Object.create(flatpickr.defaultConfig);var n=_extends({},Z.instanceConfig,JSON.parse(JSON.stringify(Z.element.dataset||{})));Z.config.parseDate=n.parseDate,Z.config.formatDate=n.formatDate,Object.defineProperty(Z.config,"enable",{get:function(){return Z.config._enable||[]},set:function(e){return Z.config._enable=P(e)}}),Object.defineProperty(Z.config,"disable",{get:function(){return Z.config._disable||[]},set:function(e){return Z.config._disable=P(e)}}),_extends(Z.config,n),!n.dateFormat&&n.enableTime&&(Z.config.dateFormat=Z.config.noCalendar?"H:i"+(Z.config.enableSeconds?":S":""):flatpickr.defaultConfig.dateFormat+" H:i"+(Z.config.enableSeconds?":S":"")),n.altInput&&n.enableTime&&!n.altFormat&&(Z.config.altFormat=Z.config.noCalendar?"h:i"+(Z.config.enableSeconds?":S K":" K"):flatpickr.defaultConfig.altFormat+" h:i"+(Z.config.enableSeconds?":S":"")+" K"),Object.defineProperty(Z.config,"minDate",{get:function(){return this._minDate},set:F("min")}),Object.defineProperty(Z.config,"maxDate",{get:function(){return this._maxDate},set:F("max")}),Z.config.minDate=n.minDate,Z.config.maxDate=n.maxDate;for(var a=0;a<e.length;a++)Z.config[e[a]]=!0===Z.config[e[a]]||"true"===Z.config[e[a]];for(var i=t.length;i--;)void 0!==Z.config[t[i]]&&(Z.config[t[i]]=z(Z.config[t[i]]||[]).map(c));for(var r=0;r<Z.config.plugins.length;r++){var o=Z.config.plugins[r](Z)||{};for(var l in o)Z.config[l]instanceof Array||~t.indexOf(l)?Z.config[l]=z(o[l]).map(c).concat(Z.config[l]):void 0===n[l]&&(Z.config[l]=o[l])}j("ParseConfig")}(),"object"!==_typeof(Z.config.locale)&&flatpickr.l10ns[Z.config.locale],Z.l10n=_extends(Object.create(flatpickr.l10ns.default),"object"===_typeof(Z.config.locale)?Z.config.locale:"default"!==Z.config.locale&&flatpickr.l10ns[Z.config.locale]||{}),Z.input=Z.config.wrap?Z.element.querySelector("[data-input]"):Z.element,Z.input&&(Z.input._type=Z.input.type,Z.input.type="text",Z.input.classList.add("flatpickr-input"),Z._input=Z.input,Z.config.altInput&&(Z.altInput=U(Z.input.nodeName,Z.input.className+" "+Z.config.altInputClass),Z._input=Z.altInput,Z.altInput.placeholder=Z.input.placeholder,Z.altInput.disabled=Z.input.disabled,Z.altInput.required=Z.input.required,Z.altInput.type="text",Z.input.type="hidden",!Z.config.static&&Z.input.parentNode&&Z.input.parentNode.insertBefore(Z.altInput,Z.input.nextSibling)),Z.config.allowInput||Z._input.setAttribute("readonly","readonly"),Z._positionElement=Z.config.positionElement||Z._input),function(){Z.selectedDates=[],Z.now=new Date;var e=Z.config.defaultDate||Z.input.value;e&&L(e,Z.config.dateFormat);var t=Z.selectedDates.length?Z.selectedDates[0]:Z.config.minDate&&Z.config.minDate.getTime()>Z.now?Z.config.minDate:Z.config.maxDate&&Z.config.maxDate.getTime()<Z.now?Z.config.maxDate:Z.now;Z.currentYear=t.getFullYear(),Z.currentMonth=t.getMonth(),Z.selectedDates.length&&(Z.latestSelectedDateObj=Z.selectedDates[0]),Z.minDateHasTime=Z.config.minDate&&(Z.config.minDate.getHours()||Z.config.minDate.getMinutes()||Z.config.minDate.getSeconds()),Z.maxDateHasTime=Z.config.maxDate&&(Z.config.maxDate.getHours()||Z.config.maxDate.getMinutes()||Z.config.maxDate.getSeconds()),Object.defineProperty(Z,"latestSelectedDateObj",{get:function(){return Z._selectedDateObj||Z.selectedDates[Z.selectedDates.length-1]},set:function(e){Z._selectedDateObj=e}}),Z.isMobile||Object.defineProperty(Z,"showTimeInput",{get:function(){return Z._showTimeInput},set:function(e){Z._showTimeInput=e,Z.calendarContainer&&q(Z.calendarContainer,"showTimeInput",e),Y()}})}(),Z.utils={duration:{DAY:864e5},getDaysinMonth:function(e,t){return e=void 0===e?Z.currentMonth:e,t=void 0===t?Z.currentYear:t,1===e&&(t%4==0&&t%100!=0||t%400==0)?29:Z.l10n.daysInMonth[e]},monthToStr:function(e,t){return t=void 0===t?Z.config.shorthandCurrentMonth:t,Z.l10n.months[(t?"short":"long")+"hand"][e]}},Z.isOpen=!1,Z.isMobile=!Z.config.disableMobile&&!Z.config.inline&&"single"===Z.config.mode&&!Z.config.disable.length&&!Z.config.enable.length&&!Z.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),Z.isMobile||v(),o(),(Z.selectedDates.length||Z.config.noCalendar)&&(Z.config.enableTime&&l(Z.config.noCalendar?Z.latestSelectedDateObj||Z.config.minDate:null),B()),Z.showTimeInput=0<Z.selectedDates.length||Z.config.noCalendar,Z.config.weekNumbers&&(Z.calendarContainer.style.width=Z.daysContainer.offsetWidth+Z.weekWrapper.offsetWidth+"px"),Z.isMobile||Y(),j("Ready"),Z}function _flatpickr(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++)try{if(null!==n[i].getAttribute("data-fp-omit"))continue;n[i]._flatpickr&&(n[i]._flatpickr.destroy(),n[i]._flatpickr=null),n[i]._flatpickr=new FlatpickrInstance(n[i],t||{}),a.push(n[i]._flatpickr)}catch(e){}return 1===a.length?a[0]:a}function flatpickr(e,t){return e instanceof NodeList?_flatpickr(e,t):e instanceof HTMLElement?_flatpickr([e],t):_flatpickr(window.document.querySelectorAll(e),t)}var _extends=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var a in n)Object.prototype.hasOwnProperty.call(n,a)&&(e[a]=n[a])}return e},_typeof="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};FlatpickrInstance.prototype={formats:{Z:function(e){return e.toISOString()},D:function(e){return this.l10n.weekdays.shorthand[this.formats.w(e)]},F:function(e){return this.utils.monthToStr(this.formats.n(e)-1,!1)},G:function(e){return FlatpickrInstance.prototype.pad(FlatpickrInstance.prototype.formats.h(e))},H:function(e){return FlatpickrInstance.prototype.pad(e.getHours())},J:function(e){return e.getDate()+this.l10n.ordinal(e.getDate())},K:function(e){return 11<e.getHours()?"PM":"AM"},M:function(e){return this.utils.monthToStr(e.getMonth(),!0)},S:function(e){return FlatpickrInstance.prototype.pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e){return this.config.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(e){return FlatpickrInstance.prototype.pad(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return FlatpickrInstance.prototype.pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e){return this.l10n.weekdays.longhand[e.getDay()]},m:function(e){return FlatpickrInstance.prototype.pad(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},formatDate:function(a,e){var i=this;return void 0!==this.config&&void 0!==this.config.formatDate?this.config.formatDate(a,e):e.split("").map(function(e,t,n){return i.formats[e]&&"\\"!==n[t-1]?i.formats[e](a):"\\"!==e?e:""}).join("")},revFormat:{D:function(){},F:function(e,t){e.setMonth(this.l10n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t){var n=e.getHours();12!==n&&e.setHours(n%12+12*/pm/i.test(t))},M:function(e,t){e.setMonth(this.l10n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(t)},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){return t=parseInt(t),new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0,0)},Y:function(e,t){e.setFullYear(t)},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:function(){},m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:function(){},y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},tokenRegex:{D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"(am|AM|Am|aM|pm|PM|Pm|pM)",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},pad:function(e){return("0"+e).slice(-2)},parseDate:function(e,t,n){if(0!==e&&!e)return null;if(e instanceof Date)e=new Date(e.getTime());else if(void 0!==e.toFixed)e=new Date(e);else{var a=t||(this.config||flatpickr.defaultConfig).dateFormat;if("today"===(e=String(e).trim()))e=new Date,n=!0;else if(/Z$/.test(e)||/GMT$/.test(e))e=new Date(e);else if(this.config&&this.config.parseDate)e=this.config.parseDate(e,a);else{for(var i=this.config&&this.config.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),r=void 0,o=0,l=0,c="";o<a.length;o++){var s=a[o],d="\\"===s,u="\\"===a[o-1]||d;if(this.tokenRegex[s]&&!u){c+=this.tokenRegex[s];var f=new RegExp(c).exec(e);f&&(r=!0)&&(i=this.revFormat[s](i,f[++l])||i)}else d||(c+=".")}e=r?i:null}}return e instanceof Date?(!0===n&&e.setHours(0,0,0,0),e):null}},"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)}),flatpickr.defaultConfig=FlatpickrInstance.defaultConfig={mode:"single",position:"auto",animate:-1===window.navigator.userAgent.indexOf("MSIE"),wrap:!1,weekNumbers:!1,allowInput:!1,clickOpens:!0,closeOnSelect:!0,time_24hr:!1,enableTime:!1,noCalendar:!1,dateFormat:"Y-m-d",ariaDateFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",altFormat:"F j, Y",defaultDate:null,minDate:null,maxDate:null,parseDate:null,formatDate:null,getWeek:function(e){var t=new Date(e.getTime()),n=new Date(t.getFullYear(),0,1);return Math.ceil(((t-n)/864e5+n.getDay()+1)/7)},enable:[],disable:[],shorthandCurrentMonth:!1,inline:!1,static:!1,appendTo:null,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",enableSeconds:!1,hourIncrement:1,minuteIncrement:5,defaultHour:12,defaultMinute:0,disableMobile:!1,locale:"default",plugins:[],ignoredFocusElements:[],onClose:void 0,onChange:void 0,onDayCreate:void 0,onMonthChange:void 0,onOpen:void 0,onParseConfig:void 0,onReady:void 0,onValueUpdate:void 0,onYearChange:void 0,onKeyDown:void 0,onDestroy:void 0},flatpickr.l10ns={en:{weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],longhand:["January","February","March","April","May","June","July","August","September","October","November","December"]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var t=e%100;if(3<t&&t<21)return"th";switch(t%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"}},flatpickr.l10ns.default=Object.create(flatpickr.l10ns.en),flatpickr.localize=function(e){return _extends(flatpickr.l10ns.default,e||{})},flatpickr.setDefaults=function(e){return _extends(flatpickr.defaultConfig,e||{})},"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},"undefined"!=typeof module&&(module.exports=flatpickr);
|
js/general.min.js
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
-
!function($){"use strict";var t={init:function(){this.toggleSidebarStatus(),CAS.showPopups&&(this.upgradeNoticeHandler(),this.reviewNoticeHandler())},toggleSidebarStatus:function(){$(".sidebar-status").on("change","input.sidebar-status-input",function(t){var a=$(this),e=a.is(":checked");if(a.hasClass("sidebar-status-future")&&!confirm(CAS.enableConfirm))return a.attr("checked",!e),t.preventDefault(),!1;$.post(ajaxurl,{action:"cas_sidebar_status",sidebar_id:a.val(),token:a.attr("data-nonce"),status:e},function(t){t.success?(a.next().attr("title",t.data.title),a.removeClass("sidebar-status-future")):(alert(t.data),a.attr("checked",!e))})})},upgradeNoticeHandler:function(){$(".js-cas-pro-notice.button").attr("disabled",!0),$(".js-cas-pro-notice").on("click",function(t){t.preventDefault(),$(".js-cas-pro-read-more").attr("href",$(this).data("url")),$(".js-cas-pro-popup").trigger("click")})},reviewNoticeHandler:function(){var
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
+
!function($){"use strict";var t={init:function(){this.toggleSidebarStatus(),CAS.showPopups&&(this.upgradeNoticeHandler(),this.reviewNoticeHandler())},toggleSidebarStatus:function(){$(".sidebar-status").on("change","input.sidebar-status-input",function(t){var a=$(this),e=a.is(":checked");if(a.hasClass("sidebar-status-future")&&!confirm(CAS.enableConfirm))return a.attr("checked",!e),t.preventDefault(),!1;$.post(ajaxurl,{action:"cas_sidebar_status",sidebar_id:a.val(),token:a.attr("data-nonce"),status:e},function(t){t.success?(a.next().attr("title",t.data.title),a.removeClass("sidebar-status-future")):(alert(t.data),a.attr("checked",!e))})})},upgradeNoticeHandler:function(){$(".js-cas-pro-notice.button").attr("disabled",!0),$(".js-cas-pro-notice").on("click",function(t){t.preventDefault(),$(".js-cas-pro-read-more").attr("href",$(this).data("url")),$(".js-cas-pro-popup").trigger("click")})},reviewNoticeHandler:function(){var e=$(".js-cas-notice-review");e.on("click","a, button",function(t){var a=$(this);$.ajax({url:ajaxurl,data:{action:"cas_dismiss_review_notice",dismiss:a.data("cas-rating")?1:0},dataType:"JSON",type:"POST",success:function(t){e.fadeOut(400,function(){e.remove()})},error:function(t,a,e){}})})}};$(document).ready(function(){t.init()})}(jQuery);
|
js/widgets.min.js
CHANGED
@@ -4,4 +4,4 @@
|
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
-
!function($){"use strict";var e={$sidebarContainer:$(".widget-liquid-right"),$widgetContainer:$("#available-widgets"),init:function(){this.openSidebarByURL(),this.addSidebarToolbar(),this.addWidgetSearch(),this.enhancedWidgetManager()},openSidebarByURL:function(){if(window.location.hash){var e=this.$sidebarContainer.find(".widgets-holder-wrap"),i=e.has(window.location.hash);i.length&&i.add(e.first()).find(".handlediv,.sidebar-name-arrow").trigger("click")}},enhancedWidgetManager:function(){if($("body").hasClass("cas-widget-manager")){this.$widgetContainer.find(".widget").draggable("option","scroll",!1);var
|
4 |
* @license GPLv3
|
5 |
* @copyright 2019 by Joachim Jensen
|
6 |
*/
|
7 |
+
!function($){"use strict";var e={$sidebarContainer:$(".widget-liquid-right"),$widgetContainer:$("#available-widgets"),init:function(){this.openSidebarByURL(),this.addSidebarToolbar(),this.addWidgetSearch(),this.enhancedWidgetManager()},openSidebarByURL:function(){if(window.location.hash){var e=this.$sidebarContainer.find(".widgets-holder-wrap"),i=e.has(window.location.hash);i.length&&i.add(e.first()).find(".handlediv,.sidebar-name-arrow").trigger("click")}},enhancedWidgetManager:function(){if($("body").hasClass("cas-widget-manager")){this.$widgetContainer.find(".widget").draggable("option","scroll",!1);var i=this,a=$("#widgets-left .inactive-sidebar");a.toggle(this.$widgetContainer.hasClass("closed")),this.$widgetContainer.find(".sidebar-name").click(function(e){a.toggle(i.$widgetContainer.hasClass("closed"))})}},addWidgetSearch:function(){var e=$(".widget",this.$widgetContainer).get().reverse();$(".sidebar-description",this.$widgetContainer).prepend('<input type="search" class="js-cas-widget-filter cas-filter" placeholder="'+CASAdmin.filterWidgets+'...">'),this.searchWidgetListener(e)},searchWidgetListener:function(i){var a,s="";this.$widgetContainer.on("input",".js-cas-widget-filter",function(e){var t=$(this).val();t!=s&&(s=t,a&&clearTimeout(a),a=setTimeout(function(){$(i).each(function(e,i){var a=$(i);a.find(".widget-title :nth-child(1)").text().search(new RegExp(t,"i"))<0?a.fadeOut():(a.prependTo(a.parent()),a.fadeIn().css("display",""))})},250))})},addSidebarToolbar:function(){var e='<div class="wp-filter cas-filter-sidebar"><a href="admin.php?page=wpcas-edit" class="button button-primary">'+CASAdmin.addNew+'</a><div class="sidebars-toggle"><a href="#" title="'+CASAdmin.collapse+'" class="js-sidebars-toggle" data-toggle="0"><span class="dashicons dashicons-arrow-up-alt2"></span></a><a href="#" title="'+CASAdmin.expand+'" class="js-sidebars-toggle" data-toggle="1"><span class="dashicons dashicons-arrow-down-alt2"></span></a></div><input type="search" class="js-cas-filter cas-filter" placeholder="'+CASAdmin.filterSidebars+'..."></div>';this.$sidebarContainer.prepend(e),this.searchSidebarListener(),this.addSidebarToggle()},addSidebarToggle:function(){var a=$(document),t=this.$sidebarContainer.find(".widgets-holder-wrap");$("body").on("click",".js-sidebars-toggle",function(e){e.preventDefault();var i=!!$(this).data("toggle");t.toggleClass("closed",!i),i&&t.children(".widgets-sortables").sortable("refresh"),a.triggerHandler("wp-pin-menu")})},searchSidebarListener:function(){var i,a=this,s="";this.$sidebarContainer.on("input",".js-cas-filter",function(e){var t=$(this).val();t!=s&&(s=t,i&&clearTimeout(i),i=setTimeout(function(){$(".widgets-holder-wrap",a.$sidebarContainer).each(function(e,i){var a=$(i);a.find(".sidebar-name :nth-child(2)").text().search(new RegExp(t,"i"))<0?a.fadeOut():a.fadeIn()})},250))})}};$(document).ready(function(){e.init()})}(jQuery);
|
lang/content-aware-sidebars-es_ES.mo
DELETED
Binary file
|
lang/content-aware-sidebars-es_ES.po
DELETED
@@ -1,1016 +0,0 @@
|
|
1 |
-
# Translation of Plugins - Content Aware Sidebars - Widget Area Control - Development (trunk) in Spanish (Spain)
|
2 |
-
# This file is distributed under the same license as the Plugins - Content Aware Sidebars - Widget Area Control - Development (trunk) package.
|
3 |
-
msgid ""
|
4 |
-
msgstr ""
|
5 |
-
"PO-Revision-Date: 2017-01-29 09:41:28+0000\n"
|
6 |
-
"MIME-Version: 1.0\n"
|
7 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
8 |
-
"Content-Transfer-Encoding: 8bit\n"
|
9 |
-
"Plural-Forms: nplurals=2; plural=n != 1;\n"
|
10 |
-
"X-Generator: GlotPress/2.4.0-alpha\n"
|
11 |
-
"Language: es\n"
|
12 |
-
"Project-Id-Version: Plugins - Content Aware Sidebars - Widget Area Control - Development (trunk)\n"
|
13 |
-
|
14 |
-
#. Description of the plugin/theme
|
15 |
-
msgid "Unlimited custom sidebars and widget areas for any post, page, category etc."
|
16 |
-
msgstr ""
|
17 |
-
|
18 |
-
#: lib/wp-content-aware-engine/view/group_template.php:54
|
19 |
-
msgid "Settings"
|
20 |
-
msgstr ""
|
21 |
-
|
22 |
-
#: lib/wp-content-aware-engine/core.php:705
|
23 |
-
msgid "Auto-select new children of selected items"
|
24 |
-
msgstr ""
|
25 |
-
|
26 |
-
#: admin/sidebar-list-table.php:605
|
27 |
-
msgid "Duplicate"
|
28 |
-
msgstr ""
|
29 |
-
|
30 |
-
#. translators: %s: sidebar title
|
31 |
-
#: admin/sidebar-list-table.php:604
|
32 |
-
msgid "Duplicate %s"
|
33 |
-
msgstr ""
|
34 |
-
|
35 |
-
#: admin/sidebar-edit.php:369
|
36 |
-
msgid "You are not allowed to delete this sidebar."
|
37 |
-
msgstr ""
|
38 |
-
|
39 |
-
#: admin/sidebar-edit.php:335
|
40 |
-
msgid "You are not allowed to move this sidebar to the Trash."
|
41 |
-
msgstr ""
|
42 |
-
|
43 |
-
#: admin/sidebar-edit.php:222 admin/sidebar-edit.php:553
|
44 |
-
msgid "You are not allowed to create sidebars."
|
45 |
-
msgstr ""
|
46 |
-
|
47 |
-
#: admin/sidebar-edit.php:197 admin/sidebar-edit.php:551
|
48 |
-
#: admin/sidebar-edit.php:556
|
49 |
-
msgid "You are not allowed to edit this sidebar."
|
50 |
-
msgstr ""
|
51 |
-
|
52 |
-
#: admin/admin.php:136
|
53 |
-
msgid "Enhance your sidebars and widget areas with: %s and more."
|
54 |
-
msgstr ""
|
55 |
-
|
56 |
-
#: admin/admin.php:102
|
57 |
-
msgid "You do not have access to this screen."
|
58 |
-
msgstr ""
|
59 |
-
|
60 |
-
#: admin/screen_widgets.php:171
|
61 |
-
msgid "This sidebar is already scheduled to be activated. Do you want to activate it now?"
|
62 |
-
msgstr ""
|
63 |
-
|
64 |
-
#: admin/sidebar-edit.php:866
|
65 |
-
msgid "Pro"
|
66 |
-
msgstr ""
|
67 |
-
|
68 |
-
#: admin/sidebar-edit.php:823
|
69 |
-
msgid "No thanks"
|
70 |
-
msgstr ""
|
71 |
-
|
72 |
-
#: admin/sidebar-edit.php:823
|
73 |
-
msgid "Review Content Aware Sidebars"
|
74 |
-
msgstr ""
|
75 |
-
|
76 |
-
#: admin/sidebar-edit.php:818
|
77 |
-
msgid "I have spent countless hours developing it, and it would mean a lot to me if you %ssupport it with a quick review on WordPress.org.%s"
|
78 |
-
msgstr ""
|
79 |
-
|
80 |
-
#: admin/sidebar-edit.php:813
|
81 |
-
msgid "Hey %s, it's Joachim from %s. You have used this free plugin for some time now, and I hope you like it!"
|
82 |
-
msgstr ""
|
83 |
-
|
84 |
-
#: admin/admin.php:139
|
85 |
-
msgid "Read More"
|
86 |
-
msgstr ""
|
87 |
-
|
88 |
-
#: lib/wp-content-aware-engine/module/bp_member.php:37
|
89 |
-
msgid "All Sections"
|
90 |
-
msgstr ""
|
91 |
-
|
92 |
-
#: lib/wp-content-aware-engine/module/bp_member.php:35
|
93 |
-
msgid "BuddyPress Profiles"
|
94 |
-
msgstr ""
|
95 |
-
|
96 |
-
#: admin/sidebar-edit.php:957
|
97 |
-
msgid "Documentation"
|
98 |
-
msgstr ""
|
99 |
-
|
100 |
-
#: sidebar.php:127
|
101 |
-
msgid "Target Sidebar"
|
102 |
-
msgstr ""
|
103 |
-
|
104 |
-
#: sidebar.php:120
|
105 |
-
msgid "Shortcode / Template Tag"
|
106 |
-
msgstr ""
|
107 |
-
|
108 |
-
#: admin/sidebar-overview.php:292
|
109 |
-
msgid "Undo"
|
110 |
-
msgstr ""
|
111 |
-
|
112 |
-
#: admin/sidebar-overview.php:231
|
113 |
-
msgid "You are not allowed to delete this item."
|
114 |
-
msgstr ""
|
115 |
-
|
116 |
-
#: admin/sidebar-overview.php:216
|
117 |
-
msgid "You are not allowed to restore this item from the Trash."
|
118 |
-
msgstr ""
|
119 |
-
|
120 |
-
#: admin/sidebar-overview.php:197
|
121 |
-
msgid "You are not allowed to move this item to the Trash."
|
122 |
-
msgstr ""
|
123 |
-
|
124 |
-
#. translators: %s: search keywords
|
125 |
-
#: admin/sidebar-overview.php:133
|
126 |
-
msgid "Search results for “%s”"
|
127 |
-
msgstr ""
|
128 |
-
|
129 |
-
#. translators: %s: post title
|
130 |
-
#: admin/sidebar-list-table.php:635
|
131 |
-
msgid "Delete “%s” permanently"
|
132 |
-
msgstr ""
|
133 |
-
|
134 |
-
#: admin/sidebar-list-table.php:627
|
135 |
-
msgctxt "verb"
|
136 |
-
msgid "Trash"
|
137 |
-
msgstr ""
|
138 |
-
|
139 |
-
#. translators: %s: post title
|
140 |
-
#: admin/sidebar-list-table.php:626
|
141 |
-
msgid "Move “%s” to the Trash"
|
142 |
-
msgstr ""
|
143 |
-
|
144 |
-
#. translators: %s: post title
|
145 |
-
#: admin/sidebar-list-table.php:618
|
146 |
-
msgid "Restore “%s” from the Trash"
|
147 |
-
msgstr ""
|
148 |
-
|
149 |
-
#. translators: %s: sidebar title
|
150 |
-
#: admin/sidebar-list-table.php:597
|
151 |
-
msgid "Edit “%s”"
|
152 |
-
msgstr ""
|
153 |
-
|
154 |
-
#: admin/sidebar-list-table.php:532
|
155 |
-
msgid "Missed schedule"
|
156 |
-
msgstr ""
|
157 |
-
|
158 |
-
#: admin/sidebar-list-table.php:520
|
159 |
-
msgid "Until %s"
|
160 |
-
msgstr ""
|
161 |
-
|
162 |
-
#. translators: Sidebar status date and time format, see http://php.net/date
|
163 |
-
#: admin/sidebar-list-table.php:519 admin/sidebar-list-table.php:525
|
164 |
-
msgid "Y/m/d g:i:s a"
|
165 |
-
msgstr ""
|
166 |
-
|
167 |
-
#. translators: Sidebar status date format, see http://php.net/date
|
168 |
-
#: admin/sidebar-list-table.php:517 admin/sidebar-list-table.php:529
|
169 |
-
msgid "Y/m/d"
|
170 |
-
msgstr ""
|
171 |
-
|
172 |
-
#: admin/sidebar-list-table.php:422
|
173 |
-
msgid "%s is currently editing"
|
174 |
-
msgstr ""
|
175 |
-
|
176 |
-
#. translators: %s: post title
|
177 |
-
#: admin/sidebar-list-table.php:407
|
178 |
-
msgid "“%s” (Edit)"
|
179 |
-
msgstr ""
|
180 |
-
|
181 |
-
#: admin/sidebar-list-table.php:365
|
182 |
-
msgid "Select %s"
|
183 |
-
msgstr ""
|
184 |
-
|
185 |
-
#: admin/sidebar-list-table.php:311 sidebar.php:114
|
186 |
-
msgctxt "option"
|
187 |
-
msgid "Action"
|
188 |
-
msgstr ""
|
189 |
-
|
190 |
-
#: admin/sidebar-list-table.php:310
|
191 |
-
msgctxt "column name"
|
192 |
-
msgid "Title"
|
193 |
-
msgstr ""
|
194 |
-
|
195 |
-
#: admin/sidebar-list-table.php:282
|
196 |
-
msgid "Empty Trash"
|
197 |
-
msgstr ""
|
198 |
-
|
199 |
-
#: admin/sidebar-list-table.php:255 admin/sidebar-list-table.php:619
|
200 |
-
msgid "Restore"
|
201 |
-
msgstr ""
|
202 |
-
|
203 |
-
#: admin/sidebar-list-table.php:207
|
204 |
-
msgid "Inactive <span class=\"count\">(%s)</span>"
|
205 |
-
msgid_plural "Inactive <span class=\"count\">(%s)</span>"
|
206 |
-
msgstr[0] ""
|
207 |
-
msgstr[1] ""
|
208 |
-
|
209 |
-
#: admin/sidebar-list-table.php:206
|
210 |
-
msgid "Active <span class=\"count\">(%s)</span>"
|
211 |
-
msgid_plural "Active <span class=\"count\">(%s)</span>"
|
212 |
-
msgstr[0] ""
|
213 |
-
msgstr[1] ""
|
214 |
-
|
215 |
-
#: admin/sidebar-list-table.php:193
|
216 |
-
msgctxt "sidebars"
|
217 |
-
msgid "All <span class=\"count\">(%s)</span>"
|
218 |
-
msgid_plural "All <span class=\"count\">(%s)</span>"
|
219 |
-
msgstr[0] ""
|
220 |
-
msgstr[1] ""
|
221 |
-
|
222 |
-
#: admin/sidebar-edit.php:1322
|
223 |
-
msgid "F j, Y"
|
224 |
-
msgstr ""
|
225 |
-
|
226 |
-
#: admin/admin.php:138
|
227 |
-
msgid "Free updates and email support included."
|
228 |
-
msgstr ""
|
229 |
-
|
230 |
-
#: admin/admin.php:137
|
231 |
-
msgid "You can upgrade without leaving the admin panel by clicking below."
|
232 |
-
msgstr ""
|
233 |
-
|
234 |
-
#: admin/admin.php:135
|
235 |
-
msgid "Get All Features With Content Aware Sidebars Pro"
|
236 |
-
msgstr ""
|
237 |
-
|
238 |
-
#: admin/admin.php:129
|
239 |
-
msgid "Sync widgets across themes"
|
240 |
-
msgstr ""
|
241 |
-
|
242 |
-
#: admin/admin.php:127
|
243 |
-
msgid "Visibility for roles"
|
244 |
-
msgstr ""
|
245 |
-
|
246 |
-
#: admin/admin.php:125
|
247 |
-
msgid "Extra condition types"
|
248 |
-
msgstr ""
|
249 |
-
|
250 |
-
#: admin/sidebar-edit.php:1004
|
251 |
-
msgid "Activates on <b>%1$s</b>"
|
252 |
-
msgstr ""
|
253 |
-
|
254 |
-
#. translators: Publish box date format, see http://php.net/date
|
255 |
-
#: admin/sidebar-edit.php:999
|
256 |
-
msgid "M j, Y"
|
257 |
-
msgstr ""
|
258 |
-
|
259 |
-
#: admin/sidebar-edit.php:866
|
260 |
-
msgid "Display sidebar only in given time ranges on select days."
|
261 |
-
msgstr ""
|
262 |
-
|
263 |
-
#: admin/sidebar-edit.php:853
|
264 |
-
msgid "Never"
|
265 |
-
msgstr ""
|
266 |
-
|
267 |
-
#: admin/sidebar-edit.php:844
|
268 |
-
msgid "Select date"
|
269 |
-
msgstr ""
|
270 |
-
|
271 |
-
#: admin/sidebar-edit.php:834 admin/sidebar-list-table.php:314
|
272 |
-
msgid "Status"
|
273 |
-
msgstr ""
|
274 |
-
|
275 |
-
#: admin/admin.php:128 admin/sidebar-edit.php:761
|
276 |
-
msgid "Time Schedule"
|
277 |
-
msgstr ""
|
278 |
-
|
279 |
-
#: admin/sidebar-edit.php:738
|
280 |
-
msgid "Sidebar Status"
|
281 |
-
msgstr ""
|
282 |
-
|
283 |
-
#: admin/sidebar-edit.php:696
|
284 |
-
msgid ""
|
285 |
-
"Should the sidebar merge with a target sidebar or replace it? Maybe you want to insert it in your content with a shortcode.\n"
|
286 |
-
"\n"
|
287 |
-
"Display the sidebar for everyone or make it visible only for logged-in users.\n"
|
288 |
-
"\n"
|
289 |
-
" You are in control."
|
290 |
-
msgstr ""
|
291 |
-
|
292 |
-
#: admin/sidebar-edit.php:641
|
293 |
-
msgid "Sidebar deactivated."
|
294 |
-
msgstr ""
|
295 |
-
|
296 |
-
#: admin/sidebar-edit.php:637
|
297 |
-
msgid "Sidebar activated."
|
298 |
-
msgstr ""
|
299 |
-
|
300 |
-
#: admin/sidebar-edit.php:478
|
301 |
-
msgid "Enter title here"
|
302 |
-
msgstr ""
|
303 |
-
|
304 |
-
#: admin/sidebar-edit.php:372 admin/sidebar-overview.php:234
|
305 |
-
msgid "Error in deleting."
|
306 |
-
msgstr ""
|
307 |
-
|
308 |
-
#: admin/sidebar-edit.php:361 admin/sidebar-overview.php:219
|
309 |
-
msgid "Error in restoring from Trash."
|
310 |
-
msgstr ""
|
311 |
-
|
312 |
-
#: admin/sidebar-edit.php:358
|
313 |
-
msgid "You are not allowed to restore this sidebar from the Trash."
|
314 |
-
msgstr ""
|
315 |
-
|
316 |
-
#: admin/sidebar-edit.php:343 admin/sidebar-overview.php:205
|
317 |
-
msgid "Error in moving to Trash."
|
318 |
-
msgstr ""
|
319 |
-
|
320 |
-
#: admin/sidebar-edit.php:339
|
321 |
-
msgid "You cannot move this sidebar to the Trash. %s is currently editing."
|
322 |
-
msgstr ""
|
323 |
-
|
324 |
-
#: admin/sidebar-edit.php:195 admin/sidebar-edit.php:288
|
325 |
-
msgid "The sidebar no longer exists."
|
326 |
-
msgstr ""
|
327 |
-
|
328 |
-
#: admin/sidebar-edit.php:238 admin/sidebar-edit.php:745
|
329 |
-
msgid "Advanced"
|
330 |
-
msgstr ""
|
331 |
-
|
332 |
-
#: admin/sidebar-edit.php:236
|
333 |
-
msgid "Conditions"
|
334 |
-
msgstr ""
|
335 |
-
|
336 |
-
#: admin/sidebar-edit.php:199
|
337 |
-
msgid "You cannot edit this sidebar because it is in the Trash. Please restore it and try again."
|
338 |
-
msgstr ""
|
339 |
-
|
340 |
-
#: admin/sidebar-edit.php:83
|
341 |
-
msgid "URLs (Pro Feature)"
|
342 |
-
msgstr ""
|
343 |
-
|
344 |
-
#: admin/post_type_sidebar.php:295 admin/screen_widgets.php:108
|
345 |
-
#: admin/screen_widgets.php:137 admin/sidebar-edit.php:1010
|
346 |
-
#: admin/sidebar-list-table.php:539
|
347 |
-
msgid "Inactive"
|
348 |
-
msgstr ""
|
349 |
-
|
350 |
-
#: admin/screen_widgets.php:108 admin/screen_widgets.php:131
|
351 |
-
#: admin/sidebar-edit.php:1007 admin/sidebar-list-table.php:513
|
352 |
-
msgid "Active"
|
353 |
-
msgstr ""
|
354 |
-
|
355 |
-
#. Author URI of the plugin/theme
|
356 |
-
msgid "https://dev.institute"
|
357 |
-
msgstr ""
|
358 |
-
|
359 |
-
#. Author of the plugin/theme
|
360 |
-
msgid "Joachim Jensen"
|
361 |
-
msgstr ""
|
362 |
-
|
363 |
-
#. Plugin URI of the plugin/theme
|
364 |
-
msgid "https://dev.institute/wordpress/sidebars-pro/"
|
365 |
-
msgstr ""
|
366 |
-
|
367 |
-
#: admin/sidebar-edit.php:1037
|
368 |
-
msgid "Enable"
|
369 |
-
msgstr ""
|
370 |
-
|
371 |
-
#: admin/sidebar-edit.php:1028 admin/sidebar-edit.php:1036
|
372 |
-
msgid "Widget Revisions: %s"
|
373 |
-
msgstr ""
|
374 |
-
|
375 |
-
#: admin/sidebar-edit.php:116
|
376 |
-
msgid "Upgrade to Pro"
|
377 |
-
msgstr ""
|
378 |
-
|
379 |
-
#: sidebar.php:245 sidebar.php:267
|
380 |
-
msgid "(no title)"
|
381 |
-
msgstr ""
|
382 |
-
|
383 |
-
#: lib/wp-pointer-tour/wp-pointer-tour.php:164
|
384 |
-
msgid "Previous"
|
385 |
-
msgstr ""
|
386 |
-
|
387 |
-
#: admin/screen_widgets.php:168
|
388 |
-
msgid "Expand"
|
389 |
-
msgstr ""
|
390 |
-
|
391 |
-
#: admin/screen_widgets.php:167
|
392 |
-
msgid "Collapse"
|
393 |
-
msgstr ""
|
394 |
-
|
395 |
-
#: admin/sidebar-edit.php:1302
|
396 |
-
msgid "User Roles available in Pro"
|
397 |
-
msgstr ""
|
398 |
-
|
399 |
-
#: admin/admin.php:126 admin/sidebar-list-table.php:609
|
400 |
-
msgid "Widget Revisions"
|
401 |
-
msgstr ""
|
402 |
-
|
403 |
-
#: admin/sidebar-edit.php:99
|
404 |
-
msgid "Display this sidebar only on content that meets the following conditions:"
|
405 |
-
msgstr ""
|
406 |
-
|
407 |
-
#: admin/post_type_sidebar.php:276
|
408 |
-
msgid "Display sidebars per %s etc. with the %s."
|
409 |
-
msgstr ""
|
410 |
-
|
411 |
-
#: admin/post_type_sidebar.php:272
|
412 |
-
msgid "Note: Selected Sidebars are displayed on this %s specifically."
|
413 |
-
msgstr ""
|
414 |
-
|
415 |
-
#: admin/post_type_sidebar.php:257
|
416 |
-
msgid "Default"
|
417 |
-
msgstr ""
|
418 |
-
|
419 |
-
#: admin/post_type_sidebar.php:275
|
420 |
-
msgid "Sidebar Manager"
|
421 |
-
msgstr ""
|
422 |
-
|
423 |
-
#: admin/post_type_sidebar.php:245
|
424 |
-
msgid "Archive Page"
|
425 |
-
msgstr ""
|
426 |
-
|
427 |
-
#: admin/post_type_sidebar.php:237
|
428 |
-
msgid "Page Template"
|
429 |
-
msgstr ""
|
430 |
-
|
431 |
-
#: admin/post_type_sidebar.php:234
|
432 |
-
msgid "Child Page"
|
433 |
-
msgstr ""
|
434 |
-
|
435 |
-
#: admin/post_type_sidebar.php:231
|
436 |
-
msgid "Author"
|
437 |
-
msgstr ""
|
438 |
-
|
439 |
-
#: admin/post_type_sidebar.php:223 admin/post_type_sidebar.php:262
|
440 |
-
msgid "Type to Add New Sidebar"
|
441 |
-
msgstr ""
|
442 |
-
|
443 |
-
#: admin/post_type_sidebar.php:219
|
444 |
-
msgid "Create New"
|
445 |
-
msgstr ""
|
446 |
-
|
447 |
-
#: admin/post_type_sidebar.php:177
|
448 |
-
msgid "Sidebars - Quick Select"
|
449 |
-
msgstr ""
|
450 |
-
|
451 |
-
#: admin/sidebar-edit.php:712
|
452 |
-
msgid "Finish Tour"
|
453 |
-
msgstr ""
|
454 |
-
|
455 |
-
#: admin/sidebar-edit.php:686
|
456 |
-
msgid ""
|
457 |
-
"Click on the input field and select the content you want.\n"
|
458 |
-
"\n"
|
459 |
-
"If you can't find the right content in the list, type something to search.\n"
|
460 |
-
"\n"
|
461 |
-
" You can add several types of content to the same group, try e.g. \"All Posts\" and an Author to target all posts written by that author. Awesome!\n"
|
462 |
-
"\n"
|
463 |
-
"Remember to save the changes on each group."
|
464 |
-
msgstr ""
|
465 |
-
|
466 |
-
#: admin/sidebar-edit.php:668
|
467 |
-
msgid "I know how to use it"
|
468 |
-
msgstr ""
|
469 |
-
|
470 |
-
#: admin/sidebar-edit.php:660
|
471 |
-
msgid ""
|
472 |
-
"You've just installed or updated Content Aware Sidebars. Awesome!\n"
|
473 |
-
"\n"
|
474 |
-
"You can display sidebars on any page or in any context. If that is new to you, this 3 step interactive guide will show you just how easy it is."
|
475 |
-
msgstr ""
|
476 |
-
|
477 |
-
#: admin/sidebar-edit.php:659
|
478 |
-
msgid "Get Started in 3 Easy Steps"
|
479 |
-
msgstr ""
|
480 |
-
|
481 |
-
#: lib/wp-content-aware-engine/module/bbpress.php:32
|
482 |
-
msgid "All Profiles"
|
483 |
-
msgstr ""
|
484 |
-
|
485 |
-
#: lib/wp-content-aware-engine/module/author.php:30
|
486 |
-
msgid "All Authors"
|
487 |
-
msgstr ""
|
488 |
-
|
489 |
-
#: sidebar.php:190
|
490 |
-
msgid "Sidebar Conditions"
|
491 |
-
msgstr ""
|
492 |
-
|
493 |
-
#: sidebar.php:109
|
494 |
-
msgid "Logged-in Users"
|
495 |
-
msgstr ""
|
496 |
-
|
497 |
-
#: lib/wp-content-aware-engine/view/group_template.php:11
|
498 |
-
msgid "Not"
|
499 |
-
msgstr ""
|
500 |
-
|
501 |
-
#: admin/sidebar-edit.php:850
|
502 |
-
msgid "Deactivate"
|
503 |
-
msgstr ""
|
504 |
-
|
505 |
-
#: admin/sidebar-edit.php:841
|
506 |
-
msgid "Activate"
|
507 |
-
msgstr ""
|
508 |
-
|
509 |
-
#: admin/post_type_sidebar.php:220 admin/sidebar-edit.php:1013
|
510 |
-
msgid "New"
|
511 |
-
msgstr ""
|
512 |
-
|
513 |
-
#: freemius.php:58
|
514 |
-
msgid "Please help us improve %2$s by securely sharing some usage data with %5$s. If you skip this, that's okay! %2$s will still work just fine."
|
515 |
-
msgstr ""
|
516 |
-
|
517 |
-
#: admin/screen_widgets.php:147
|
518 |
-
msgid "Revisions"
|
519 |
-
msgstr ""
|
520 |
-
|
521 |
-
#: admin/sidebar-edit.php:1311 admin/sidebar-list-table.php:500
|
522 |
-
msgid "All Users"
|
523 |
-
msgstr ""
|
524 |
-
|
525 |
-
#: admin/sidebar-list-table.php:456
|
526 |
-
msgid "Add sidebar at the bottom during merge"
|
527 |
-
msgstr ""
|
528 |
-
|
529 |
-
#: admin/sidebar-list-table.php:455
|
530 |
-
msgid "Add sidebar at the top during merge"
|
531 |
-
msgstr ""
|
532 |
-
|
533 |
-
#: admin/sidebar-edit.php:989
|
534 |
-
msgid "Update"
|
535 |
-
msgstr ""
|
536 |
-
|
537 |
-
#: admin/sidebar-edit.php:237
|
538 |
-
msgid "Schedule"
|
539 |
-
msgstr ""
|
540 |
-
|
541 |
-
#: admin/sidebar-edit.php:899 admin/sidebar-list-table.php:263
|
542 |
-
msgid "Move to Trash"
|
543 |
-
msgstr ""
|
544 |
-
|
545 |
-
#: admin/sidebar-edit.php:897 admin/sidebar-list-table.php:261
|
546 |
-
#: admin/sidebar-list-table.php:636
|
547 |
-
msgid "Delete Permanently"
|
548 |
-
msgstr ""
|
549 |
-
|
550 |
-
#: app.php:174
|
551 |
-
msgid "Upgrade"
|
552 |
-
msgstr ""
|
553 |
-
|
554 |
-
#: admin/sidebar-edit.php:1029
|
555 |
-
msgid "Browse revisions"
|
556 |
-
msgstr ""
|
557 |
-
|
558 |
-
#: admin/sidebar-edit.php:1029
|
559 |
-
msgctxt "revisions"
|
560 |
-
msgid "Browse"
|
561 |
-
msgstr ""
|
562 |
-
|
563 |
-
#: admin/sidebar-edit.php:1019 admin/sidebar-list-table.php:598
|
564 |
-
msgid "Edit"
|
565 |
-
msgstr ""
|
566 |
-
|
567 |
-
#: admin/sidebar-edit.php:994
|
568 |
-
msgid "Status:"
|
569 |
-
msgstr ""
|
570 |
-
|
571 |
-
#: admin/sidebar-edit.php:934 admin/sidebar-edit.php:935
|
572 |
-
#: admin/sidebar-list-table.php:313 sidebar.php:105
|
573 |
-
msgid "Visibility"
|
574 |
-
msgstr ""
|
575 |
-
|
576 |
-
#: admin/admin.php:139
|
577 |
-
msgid "Upgrade Now"
|
578 |
-
msgstr ""
|
579 |
-
|
580 |
-
#: admin/sidebar-edit.php:960
|
581 |
-
msgid "Priority Email Support"
|
582 |
-
msgstr ""
|
583 |
-
|
584 |
-
#: admin/sidebar-edit.php:261 admin/sidebar-edit.php:961
|
585 |
-
msgid "Forum Support"
|
586 |
-
msgstr ""
|
587 |
-
|
588 |
-
#: admin/admin.php:131
|
589 |
-
msgid "Content Aware Sidebars Pro"
|
590 |
-
msgstr ""
|
591 |
-
|
592 |
-
#: admin/sidebar-edit.php:731
|
593 |
-
msgid "Publish"
|
594 |
-
msgstr ""
|
595 |
-
|
596 |
-
#: admin/sidebar-edit.php:119
|
597 |
-
msgid "Like it? %1$sSupport the plugin with a %2$s Review%3$s"
|
598 |
-
msgstr ""
|
599 |
-
|
600 |
-
#: lib/wp-content-aware-engine/view/group_template.php:51
|
601 |
-
msgid "Save Changes"
|
602 |
-
msgstr "Guardar las modificaciones"
|
603 |
-
|
604 |
-
#: lib/wp-content-aware-engine/module/pods.php:30
|
605 |
-
msgid "All Pods Pages"
|
606 |
-
msgstr ""
|
607 |
-
|
608 |
-
#: lib/wp-content-aware-engine/module/pods.php:29
|
609 |
-
msgid "Pods Pages"
|
610 |
-
msgstr ""
|
611 |
-
|
612 |
-
#: admin/sidebar-edit.php:673
|
613 |
-
msgid ""
|
614 |
-
"With this dropdown you can select on what conditions the sidebar should be displayed.\n"
|
615 |
-
"\n"
|
616 |
-
"Content Aware Sidebars has built-in support for many types of content and even other plugins!\n"
|
617 |
-
"\n"
|
618 |
-
"Select something to continue the tour. You can change it later."
|
619 |
-
msgstr ""
|
620 |
-
|
621 |
-
#: admin/sidebar-edit.php:672
|
622 |
-
msgid "Select Content Type"
|
623 |
-
msgstr ""
|
624 |
-
|
625 |
-
#: admin/sidebar-edit.php:667
|
626 |
-
msgid "Start Quick Tour"
|
627 |
-
msgstr ""
|
628 |
-
|
629 |
-
#: lib/wp-content-aware-engine/view/group_template.php:43
|
630 |
-
msgid "Negate conditions"
|
631 |
-
msgstr ""
|
632 |
-
|
633 |
-
#: lib/wp-content-aware-engine/view/group_template.php:18
|
634 |
-
#: lib/wp-content-aware-engine/view/meta_box.php:18
|
635 |
-
msgid "Select content type"
|
636 |
-
msgstr ""
|
637 |
-
|
638 |
-
#: lib/wp-content-aware-engine/module/page_template.php:36
|
639 |
-
msgid "All Templates"
|
640 |
-
msgstr ""
|
641 |
-
|
642 |
-
#: lib/wp-content-aware-engine/core.php:805
|
643 |
-
msgid "Searching"
|
644 |
-
msgstr ""
|
645 |
-
|
646 |
-
#: lib/wp-content-aware-engine/core.php:648
|
647 |
-
msgid "Conditions updated"
|
648 |
-
msgstr ""
|
649 |
-
|
650 |
-
#: lib/wp-content-aware-engine/core.php:625
|
651 |
-
msgid "Could not delete conditions"
|
652 |
-
msgstr ""
|
653 |
-
|
654 |
-
#: lib/wp-content-aware-engine/core.php:531
|
655 |
-
msgid "Conditional Logic"
|
656 |
-
msgstr "Lógica condicional"
|
657 |
-
|
658 |
-
#: lib/wp-pointer-tour/wp-pointer-tour.php:165
|
659 |
-
msgid "Next"
|
660 |
-
msgstr "Siguiente"
|
661 |
-
|
662 |
-
#: lib/wp-pointer-tour/wp-pointer-tour.php:163
|
663 |
-
msgid "Close"
|
664 |
-
msgstr "Cerrar"
|
665 |
-
|
666 |
-
#: admin/sidebar-edit.php:706
|
667 |
-
msgid ""
|
668 |
-
"That's it! Now you can start creating sidebars and display them on your own conditions.\n"
|
669 |
-
"\n"
|
670 |
-
"If you need more help, click on the \"Help\" tab here."
|
671 |
-
msgstr ""
|
672 |
-
"¡Es todo! Ahora puede empezar a crear barras laterales y a desplegarlas en las condiciones que usted mismo defina.\n"
|
673 |
-
"\n"
|
674 |
-
"Si necesita más ayuda, pulse aquí en la pestaña \"Ayuda\"."
|
675 |
-
|
676 |
-
#: admin/sidebar-edit.php:705
|
677 |
-
msgid "Help and Support"
|
678 |
-
msgstr "Ayuda y soporte"
|
679 |
-
|
680 |
-
#: admin/sidebar-edit.php:695
|
681 |
-
msgid "Options, options"
|
682 |
-
msgstr "Opciones, opciones"
|
683 |
-
|
684 |
-
#: admin/sidebar-edit.php:958
|
685 |
-
msgid "Get Started"
|
686 |
-
msgstr ""
|
687 |
-
|
688 |
-
#: admin/post_type_sidebar.php:292 admin/screen_widgets.php:134
|
689 |
-
#: admin/sidebar-list-table.php:534
|
690 |
-
#: lib/wp-content-aware-engine/module/post_type.php:319
|
691 |
-
#: lib/wp-content-aware-engine/walker.php:185
|
692 |
-
msgid "Scheduled"
|
693 |
-
msgstr ""
|
694 |
-
|
695 |
-
#: lib/wp-content-aware-engine/module/post_type.php:317
|
696 |
-
#: lib/wp-content-aware-engine/walker.php:183
|
697 |
-
msgid "Sticky"
|
698 |
-
msgstr ""
|
699 |
-
|
700 |
-
#. translators: post state
|
701 |
-
#: lib/wp-content-aware-engine/module/post_type.php:315
|
702 |
-
#: lib/wp-content-aware-engine/walker.php:181
|
703 |
-
msgctxt "post state"
|
704 |
-
msgid "Pending"
|
705 |
-
msgstr ""
|
706 |
-
|
707 |
-
#: lib/wp-content-aware-engine/module/post_type.php:312
|
708 |
-
#: lib/wp-content-aware-engine/walker.php:178
|
709 |
-
msgid "Draft"
|
710 |
-
msgstr "Borrador"
|
711 |
-
|
712 |
-
#: lib/wp-content-aware-engine/module/post_type.php:310
|
713 |
-
#: lib/wp-content-aware-engine/walker.php:176
|
714 |
-
msgid "Private"
|
715 |
-
msgstr "Privado"
|
716 |
-
|
717 |
-
#: lib/wp-content-aware-engine/module/post_type.php:308
|
718 |
-
#: lib/wp-content-aware-engine/walker.php:174
|
719 |
-
msgid "Password protected"
|
720 |
-
msgstr ""
|
721 |
-
|
722 |
-
#: lib/wp-content-aware-engine/module/taxonomy.php:49
|
723 |
-
msgid "Taxonomies"
|
724 |
-
msgstr "Taxonomias"
|
725 |
-
|
726 |
-
#: lib/wp-content-aware-engine/module/static.php:50
|
727 |
-
msgid "404 Page"
|
728 |
-
msgstr "Página 404"
|
729 |
-
|
730 |
-
#: lib/wp-content-aware-engine/module/static.php:49
|
731 |
-
msgid "Search Results"
|
732 |
-
msgstr "Resultados de la búsqueda"
|
733 |
-
|
734 |
-
#: lib/wp-content-aware-engine/module/static.php:48
|
735 |
-
msgid "Front Page"
|
736 |
-
msgstr "Página delantera"
|
737 |
-
|
738 |
-
#: lib/wp-content-aware-engine/module/static.php:36
|
739 |
-
msgid "Static Pages"
|
740 |
-
msgstr "Páginas estáticas"
|
741 |
-
|
742 |
-
#: lib/wp-content-aware-engine/module/post_type.php:284
|
743 |
-
msgid "Blog Page"
|
744 |
-
msgstr "Página de blog"
|
745 |
-
|
746 |
-
#: lib/wp-content-aware-engine/module/post_type.php:283
|
747 |
-
#: lib/wp-content-aware-engine/module/taxonomy.php:288
|
748 |
-
msgid "%s Archives"
|
749 |
-
msgstr "Archivos de %s"
|
750 |
-
|
751 |
-
#: lib/wp-content-aware-engine/module/post_type.php:42
|
752 |
-
msgid "Post Types"
|
753 |
-
msgstr "Tipos de contenido"
|
754 |
-
|
755 |
-
#: lib/wp-content-aware-engine/module/polylang.php:29
|
756 |
-
#: lib/wp-content-aware-engine/module/qtranslate.php:29
|
757 |
-
#: lib/wp-content-aware-engine/module/transposh.php:29
|
758 |
-
#: lib/wp-content-aware-engine/module/wpml.php:29
|
759 |
-
msgid "Languages"
|
760 |
-
msgstr "Idiomas"
|
761 |
-
|
762 |
-
#: lib/wp-content-aware-engine/module/page_template.php:35
|
763 |
-
msgid "Page Templates"
|
764 |
-
msgstr "Plantillas"
|
765 |
-
|
766 |
-
#: lib/wp-content-aware-engine/module/date.php:32
|
767 |
-
msgid "Date Archives"
|
768 |
-
msgstr "Fecha de archivos"
|
769 |
-
|
770 |
-
#: lib/wp-content-aware-engine/module/date.php:30
|
771 |
-
msgid "Dates"
|
772 |
-
msgstr "Fechas"
|
773 |
-
|
774 |
-
#: lib/wp-content-aware-engine/module/bbpress.php:31
|
775 |
-
msgid "bbPress User Profiles"
|
776 |
-
msgstr "Perfiles de usuario de bbPress"
|
777 |
-
|
778 |
-
#: lib/wp-content-aware-engine/module/author.php:29
|
779 |
-
msgid "Authors"
|
780 |
-
msgstr "Autores"
|
781 |
-
|
782 |
-
#: lib/wp-content-aware-engine/core.php:807
|
783 |
-
msgid "Target all but this context"
|
784 |
-
msgstr "Dirigido a todos los contextos excepto este"
|
785 |
-
|
786 |
-
#: lib/wp-content-aware-engine/core.php:808
|
787 |
-
msgid "Conditions have unsaved changes. Do you want to continue and discard these changes?"
|
788 |
-
msgstr ""
|
789 |
-
|
790 |
-
#: lib/wp-content-aware-engine/core.php:806
|
791 |
-
msgid "No results found."
|
792 |
-
msgstr "No se han encontrado resultados."
|
793 |
-
|
794 |
-
#: lib/wp-content-aware-engine/view/module/condition_post_type_template.php:16
|
795 |
-
#: lib/wp-content-aware-engine/view/module/condition_taxonomy_template.php:16
|
796 |
-
#: lib/wp-content-aware-engine/view/module/condition_template.php:16
|
797 |
-
msgid "And"
|
798 |
-
msgstr ""
|
799 |
-
|
800 |
-
#: lib/wp-content-aware-engine/view/group_template.php:10
|
801 |
-
#: lib/wp-content-aware-engine/view/meta_box.php:14
|
802 |
-
msgid "Or"
|
803 |
-
msgstr "O"
|
804 |
-
|
805 |
-
#: admin/sidebar-edit.php:987
|
806 |
-
msgid "Save"
|
807 |
-
msgstr "Guardar"
|
808 |
-
|
809 |
-
#: lib/wp-content-aware-engine/core.php:617
|
810 |
-
msgid "Unauthorized request"
|
811 |
-
msgstr "Solicitud no autorizada"
|
812 |
-
|
813 |
-
#: lib/wp-content-aware-engine/core.php:248
|
814 |
-
msgctxt "condition status"
|
815 |
-
msgid "Negated"
|
816 |
-
msgstr ""
|
817 |
-
|
818 |
-
#: lib/wp-content-aware-engine/core.php:228
|
819 |
-
msgid "Condition Group"
|
820 |
-
msgstr "Grupo de condiciones"
|
821 |
-
|
822 |
-
#: admin/screen_widgets.php:170
|
823 |
-
msgid "Filter Widgets"
|
824 |
-
msgstr ""
|
825 |
-
|
826 |
-
#: admin/screen_widgets.php:169
|
827 |
-
msgid "Filter Sidebars"
|
828 |
-
msgstr "Filtrar barras laterales"
|
829 |
-
|
830 |
-
#: admin/sidebar-edit.php:955
|
831 |
-
msgid "Translate the plugin into your language"
|
832 |
-
msgstr "Traducir el plugin a su idioma"
|
833 |
-
|
834 |
-
#: admin/sidebar-edit.php:890 admin/sidebar-edit.php:891
|
835 |
-
msgid "Order"
|
836 |
-
msgstr "Solicitar"
|
837 |
-
|
838 |
-
#: app.php:168
|
839 |
-
msgid "Get Support"
|
840 |
-
msgstr "Obtener apoyo"
|
841 |
-
|
842 |
-
#: admin/sidebar-edit.php:259
|
843 |
-
msgid "More Information"
|
844 |
-
msgstr "Más información"
|
845 |
-
|
846 |
-
#: admin/sidebar-edit.php:255
|
847 |
-
msgid "Each created condition group describe some specific content (conditions) that the current sidebar should be displayed with."
|
848 |
-
msgstr "Cada grupo de condiciones creado, describe un contenido específico (de condiciones) con el que la barra lateral actual se debe mostrar."
|
849 |
-
|
850 |
-
#: admin/sidebar-edit.php:254 admin/sidebar-edit.php:685
|
851 |
-
#: lib/wp-content-aware-engine/core.php:227
|
852 |
-
msgid "Condition Groups"
|
853 |
-
msgstr "Grupos de condiciones"
|
854 |
-
|
855 |
-
#: admin/sidebar-edit.php:771
|
856 |
-
msgid "Options"
|
857 |
-
msgstr "Opciónes"
|
858 |
-
|
859 |
-
#. #-#-#-#-# tmp-content-aware-sidebars.pot (Content Aware Sidebars 3.5.2)
|
860 |
-
#. #-#-#-#-#
|
861 |
-
#. Plugin Name of the plugin/theme
|
862 |
-
#: admin/sidebar-edit.php:754
|
863 |
-
msgid "Content Aware Sidebars"
|
864 |
-
msgstr "Content Aware Sidebars (Barras Laterales)"
|
865 |
-
|
866 |
-
#: admin/sidebar-list-table.php:475
|
867 |
-
msgid "Manage Widgets"
|
868 |
-
msgstr "Administrar los widgets"
|
869 |
-
|
870 |
-
#: admin/sidebar-list-table.php:312
|
871 |
-
msgid "Widgets"
|
872 |
-
msgstr "Widgets"
|
873 |
-
|
874 |
-
#: admin/sidebar-list-table.php:448 sidebar.php:284
|
875 |
-
msgid "Please update Host Sidebar"
|
876 |
-
msgstr "Por favor, actualice la barra lateral huésped"
|
877 |
-
|
878 |
-
#: admin/sidebar-overview.php:277
|
879 |
-
msgid "%s sidebar restored from the Trash."
|
880 |
-
msgid_plural "%s sidebars restored from the Trash."
|
881 |
-
msgstr[0] ""
|
882 |
-
msgstr[1] ""
|
883 |
-
|
884 |
-
#: admin/sidebar-overview.php:276
|
885 |
-
msgid "%s sidebar moved to the Trash."
|
886 |
-
msgid_plural "%s sidebars moved to the Trash."
|
887 |
-
msgstr[0] ""
|
888 |
-
msgstr[1] ""
|
889 |
-
|
890 |
-
#: admin/sidebar-overview.php:275
|
891 |
-
msgid "%s sidebar permanently deleted."
|
892 |
-
msgid_plural "%s sidebars permanently deleted."
|
893 |
-
msgstr[0] ""
|
894 |
-
msgstr[1] ""
|
895 |
-
|
896 |
-
#: admin/sidebar-overview.php:274
|
897 |
-
msgid "%s sidebar not updated, somebody is editing it."
|
898 |
-
msgid_plural "%s sidebars not updated, somebody is editing them."
|
899 |
-
msgstr[0] ""
|
900 |
-
msgstr[1] ""
|
901 |
-
|
902 |
-
#: admin/sidebar-overview.php:273
|
903 |
-
msgid "%s sidebar updated."
|
904 |
-
msgid_plural "%s sidebars updated."
|
905 |
-
msgstr[0] ""
|
906 |
-
msgstr[1] ""
|
907 |
-
|
908 |
-
#. translators: Publish box date format, see http://php.net/date
|
909 |
-
#: admin/sidebar-edit.php:640
|
910 |
-
msgid "M j, Y @ G:i"
|
911 |
-
msgstr "j M, Y @ G:i"
|
912 |
-
|
913 |
-
#: admin/sidebar-edit.php:638
|
914 |
-
msgid "Sidebar scheduled for: <strong>%1$s</strong>."
|
915 |
-
msgstr "Barra lateral programada el: <strong>%1$s</strong>."
|
916 |
-
|
917 |
-
#: admin/sidebar-edit.php:636
|
918 |
-
msgid "Sidebar updated."
|
919 |
-
msgstr "Barra lateral actualizada"
|
920 |
-
|
921 |
-
#: admin/sidebar-edit.php:634 admin/sidebar-overview.php:270
|
922 |
-
msgid "Manage widgets"
|
923 |
-
msgstr "Administrar los widgets"
|
924 |
-
|
925 |
-
#: sidebar.php:191
|
926 |
-
msgid "No content. Please add at least one condition group to make the sidebar content aware."
|
927 |
-
msgstr "Sin contenido. Por favor añada al menos un grupo de condiciones para que la barra lateral pueda tener en cuenta el contenido."
|
928 |
-
|
929 |
-
#: sidebar.php:188
|
930 |
-
msgid "No sidebars found in Trash"
|
931 |
-
msgstr "Ninguna barra lateral encontradada en la papelera"
|
932 |
-
|
933 |
-
#: admin/post_type_sidebar.php:225 sidebar.php:187
|
934 |
-
msgid "No sidebars found"
|
935 |
-
msgstr "No se encontraron barras laterales"
|
936 |
-
|
937 |
-
#: sidebar.php:186
|
938 |
-
msgid "Search Sidebars"
|
939 |
-
msgstr "Buscar barras laterales"
|
940 |
-
|
941 |
-
#: sidebar.php:185
|
942 |
-
msgid "View Sidebar"
|
943 |
-
msgstr "Ver barra lateral"
|
944 |
-
|
945 |
-
#: sidebar.php:184
|
946 |
-
msgid "All Sidebars"
|
947 |
-
msgstr "Todas las barras laterales"
|
948 |
-
|
949 |
-
#: sidebar.php:183
|
950 |
-
msgid "New Sidebar"
|
951 |
-
msgstr "Nueva barra lateral"
|
952 |
-
|
953 |
-
#: admin/screen_widgets.php:147 sidebar.php:182
|
954 |
-
msgid "Edit Sidebar"
|
955 |
-
msgstr "Editar barra lateral"
|
956 |
-
|
957 |
-
#: sidebar.php:181
|
958 |
-
msgid "Add New Sidebar"
|
959 |
-
msgstr "Añadir nueva barra lateral"
|
960 |
-
|
961 |
-
#: sidebar.php:180
|
962 |
-
msgctxt "sidebar"
|
963 |
-
msgid "Add New"
|
964 |
-
msgstr "Añadir nuevo"
|
965 |
-
|
966 |
-
#: sidebar.php:179
|
967 |
-
msgid "Sidebar"
|
968 |
-
msgstr "Barra lateral"
|
969 |
-
|
970 |
-
#: sidebar.php:178
|
971 |
-
msgid "Sidebars"
|
972 |
-
msgstr "Barras laterales"
|
973 |
-
|
974 |
-
#: sidebar.php:141
|
975 |
-
msgid "Place sidebar on top or bottom of host when merging."
|
976 |
-
msgstr "Coloque esta barra lateral en la parte de arriba o abajo del huésped, al fusionar."
|
977 |
-
|
978 |
-
#: sidebar.php:139
|
979 |
-
msgid "Bottom"
|
980 |
-
msgstr "Abajo"
|
981 |
-
|
982 |
-
#: sidebar.php:138
|
983 |
-
msgid "Top"
|
984 |
-
msgstr "Arriba"
|
985 |
-
|
986 |
-
#: sidebar.php:134
|
987 |
-
msgid "Merge Position"
|
988 |
-
msgstr "Combinar posición"
|
989 |
-
|
990 |
-
#: sidebar.php:123
|
991 |
-
msgid "Replace host sidebar, merge with it or add sidebar manually."
|
992 |
-
msgstr "Reemplazar la barra lateral huésped, fusionar con la misma, o añadir una barra lateral manualmente."
|
993 |
-
|
994 |
-
#: sidebar.php:121
|
995 |
-
msgid "Forced replace"
|
996 |
-
msgstr "Reemplazar forzadamente"
|
997 |
-
|
998 |
-
#: sidebar.php:119
|
999 |
-
msgid "Merge"
|
1000 |
-
msgstr "Fusionar"
|
1001 |
-
|
1002 |
-
#: sidebar.php:118
|
1003 |
-
msgid "Replace"
|
1004 |
-
msgstr "Reemplazar"
|
1005 |
-
|
1006 |
-
#: lib/wp-content-aware-engine/view/group_template.php:37
|
1007 |
-
msgid "Archives"
|
1008 |
-
msgstr ""
|
1009 |
-
|
1010 |
-
#: lib/wp-content-aware-engine/view/group_template.php:31
|
1011 |
-
msgid "Singulars"
|
1012 |
-
msgstr ""
|
1013 |
-
|
1014 |
-
#: admin/sidebar-edit.php:260 admin/sidebar-edit.php:959 app.php:167
|
1015 |
-
msgid "FAQ"
|
1016 |
-
msgstr "FAQ"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
lib/wp-content-aware-engine/assets/css/condition_groups.css
CHANGED
@@ -3,4 +3,4 @@
|
|
3 |
* @author Joachim Jensen <jv@intox.dk>
|
4 |
* @license GPLv3
|
5 |
* @copyright 2018 by Joachim Jensen
|
6 |
-
*/.wpca-pull-left{float:left}.rtl .wpca-pull-left,.wpca-pull-right{float:right}.rtl .wpca-pull-right{float:left}.wpca-alert{position:fixed;top:0;font-weight:700;color:#fff;font-size:1.3em;width:100%}.wpca-alert .wpca-error,.wpca-alert .wpca-success{box-sizing:border-box;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 3px rgba(0,0,0,.1);padding:18px 30px}.wpca-alert .wpca-success{background-color:#46b450}.wpca-alert .wpca-error{background-color:#ff7058}@media (min-width:601px){.wpca-alert{width:auto;top:auto;bottom:30px;right:30px}.wpca-error,.wpca-success{min-width:320px;position:relative;border-radius:40px}.rtl .wpca-alert{left:30px;right:auto}}#cas-groups{padding:6px 0 0}#cas-groups>ul{position:relative;margin:0;transition:all 1s ease;max-height:9999px;height:auto}.cas-group-body,.cas-group-new{box-sizing:border-box;border-width:1px;border-style:solid;border-color:#ccc;background-color:#f1f1f1;overflow:hidden;position:relative;margin-bottom:0;border-radius:2px;box-shadow:0 1px 2px 1px rgba(0,0,0,.08)}.cas-group-body .cas-group-cell{padding:10px;background-color:#fff;border-top:1px solid #ccc}.cas-group-body .cas-group-actions{padding:5px;overflow:hidden}.cas-group-body .cas-group-actions .spinner{float:none}.cas-group-body .cas-group-options{overflow:hidden;margin:0}.cas-group-body .cas-group-options li{overflow:hidden;margin:0;padding:8px 5px;border-top:#ddd 1px solid}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection{color:#23282d;background-color:#fafafa;border-color:#ccc;box-shadow:0 1px 0 #ccc;padding:0 8px 1px;border-radius:3px;vertical-align:top}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection:hover{border-color:#999}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__placeholder{color:#23282d}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection{height:24px;font-size:11px}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__arrow{height:24px}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__rendered{line-height:24px}.cas-group-single{margin:0}.wpca-group-description{color:#fff}.wpca-group-description span{float:left;margin:4px 4px 0 0;padding:4px 8px 6px;background-color:#59A9FD;border-radius:20px}.cas-condition:first-of-type>.cas-group-sep,.cas-group-single:first-of-type>.cas-group-sep{display:none}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate{display:table}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate .wpca-sep-or-not,.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate:before{display:none}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate .wpca-sep-not{display:inline-block}.cas-group-sep.wpca-group-negate .wpca-sep-or{display:none}.cas-group-sep.wpca-group-negate .wpca-sep-or-not{display:inline-block}.cas-group-sep{display:table;margin:0 auto;color:#fff;text-transform:uppercase;font-size:.8em;font-weight:700;line-height:1;clear:both;direction:ltr}.cas-group-sep:after,.cas-group-sep:before{position:relative;display:block;content:'';width:2px;height:8px;margin:0 auto;background-color:#ccc}.cas-group-sep .wpca-sep-not,.cas-group-sep .wpca-sep-or-not{display:none}.cas-group-sep span{background:#777;display:inline-block;padding:3px 5px;border-radius:3px;vertical-align:middle}.cas-group-body .cas-group-sep{display:block;overflow:hidden;text-align:center;margin:5px -10px}.cas-group-body .cas-group-sep:after,.cas-group-body .cas-group-sep:before{background-color:transparent;border-top:1px solid #eee;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}.cas-group-body .cas-group-sep:before{right:0;margin-left:-50%}.cas-group-body .cas-group-sep:after{left:0;margin-right:-50%}.cas-group-label{font-weight:700;margin:0 0 6px}.wpca-condition-remove{cursor:pointer;margin:0 8px 0 0;color:#aaa;transition:color .3s ease}.wpca-condition-remove:hover{color:#444}.cas-group-new{background-color:#fff}.cas-group-new>div:first-of-type{background-color:#f1f1f1;border-right:#ccc 1px solid}.cas-group-new>div{padding:5px;display:inline-block;vertical-align:middle}.cas-group-new a{padding:0 10px}label.cae-toggle{vertical-align:top}label.cae-toggle input{display:none}label.cae-toggle .cae-toggle-bar{overflow:hidden;cursor:pointer;position:relative;padding-right:34px;height:22px;line-height:22px;display:inline-block;vertical-align:middle}label.cae-toggle .cae-toggle-bar:before{top:0;right:0;position:absolute;display:inline-block;width:34px;content:"";padding:0;height:inherit;line-height:inherit;border-radius:22px;background-color:#bbb;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}label.cae-toggle .cae-toggle-bar:after{content:"";display:block;width:18px;height:18px;margin:0;background:#FFF;position:absolute;top:2px;right:14px;border-radius:22px;transition:right .2s ease-in 0s;box-shadow:0 1px 2px rgba(0,0,0,.2)}label.cae-toggle input:checked+.cae-toggle-bar:before{background-color:#7ad03a}label.cae-toggle input:checked+.cae-toggle-bar:after{right:2px}@media (min-width:783px){#cas-groups .button-small .dashicons{font-size:14px;height:14px;width:14px;vertical-align:text-top}}@media (min-width:1041px){.cas-group-label{float:left;width:220px;margin:5px 0 0}.wpca-group-description{float:left}.cas-group-input{margin-left:221px;white-space:nowrap;overflow:hidden}.cas-group-body .cas-group-options li{padding:8px 10%}.rtl .cas-group-label{float:right}.rtl .cas-group-input{margin-right:221px;margin-left:auto}}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}.select2-container--wpca.select2-container .select2-selection--single{background-color:#fff;border:1px solid #ddd;border-radius:0}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--wpca.select2-container.select2-container--open .select2-selection--single{border:1px solid #5b9dd9}.select2-container--wpca.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--wpca.select2-container .select2-selection--multiple{background-color:#fff;color:#444;border:1px solid #ddd;border-radius:0;cursor:text;min-height:32px;line-height:1}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px 3px;width:100%}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice{background-color:#bfe7f1;color:#23282d;border:1px solid #439eb4;border-radius:2px;cursor:default;float:left;margin:4px 4px 0 0;padding:2px 6px 4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;box-shadow:0 1px 0 0 rgba(255,255,255,.9) inset,0 1px 1px rgba(0,0,0,.1)}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice__remove{color:#439eb4;cursor:pointer;font-size:16px;display:inline-block;font-weight:700;margin-right:6px}.select2-container--wpca .select2-results__option[aria-selected=true],.select2-container--wpca.select2-container.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover{color:#444}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin:4px 0 0 4px}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--wpca.select2-container.select2-container--focus .select2-selection--multiple{border:1px solid #5b9dd9;background-color:#fafafa;outline:0}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--wpca.select2-container .select2-dropdown{overflow:hidden;border-color:#5b9dd9}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-1{padding-left:10px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-2{padding-left:20px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-3{padding-left:30px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-4{padding-left:40px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-5{padding-left:50px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-6{padding-left:60px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-7{padding-left:70px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-8{padding-left:80px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-9{padding-left:90px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-10{padding-left:100px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-1{padding-right:10px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-2{padding-right:20px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-3{padding-right:30px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-4{padding-right:40px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-5{padding-right:50px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-6{padding-right:60px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-7{padding-right:70px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-8{padding-right:80px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-9{padding-right:90px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-10{padding-right:100px}.select2-container--wpca.select2-container .select2-dropdown.select2-dropdown--below{box-shadow:0 2px 5px rgba(0,0,0,.15)}.select2-container--wpca.select2-container .select2-dropdown.select2-dropdown--above{box-shadow:0 -2px 5px rgba(0,0,0,.15)}.select2-container--wpca.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--wpca.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid #ddd}.select2-container--wpca.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--wpca.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:1px solid #ddd}.select2-container--wpca .select2-search--dropdown .select2-search__field{border:1px solid #5b9dd9}.select2-container--wpca .select2-search--inline{width:auto;margin:0;z-index:1030}.select2-container--wpca .select2-search--inline .select2-search__field{font-family:inherit;padding:0;background:0 0!important;min-height:auto;border:none;outline:0;box-shadow:none;-webkit-appearance:textfield;margin-top:6px!important;line-height:normal}.select2-container--wpca .select2-search--inline .select2-search__field:not([placeholder='']){width:100%!important;margin-right:9999px}.select2-container--wpca[dir=rtl] .select2-search--inline .select2-search__field:not([placeholder='']){margin-left:9999px;margin-right:auto}.select2-container--wpca .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--wpca .select2-results__option[role=group]{padding:0}.select2-container--wpca .select2-results__option[aria-disabled=true]{color:#999}.select2-container--wpca .select2-results__option .select2-results__option{padding-left:20px;margin:0}.select2-container--wpca .select2-results__option--highlighted[aria-selected]{background-color:#f2f2f2}.select2-container--wpca .select2-results__group{cursor:default;display:block;padding:6px}
|
3 |
* @author Joachim Jensen <jv@intox.dk>
|
4 |
* @license GPLv3
|
5 |
* @copyright 2018 by Joachim Jensen
|
6 |
+
*/.wpca-pull-left{float:left}.rtl .wpca-pull-left,.wpca-pull-right{float:right}.rtl .wpca-pull-right{float:left}.wpca-alert{position:fixed;top:0;font-weight:700;color:#fff;font-size:1.3em;width:100%}.wpca-alert .wpca-error,.wpca-alert .wpca-success{box-sizing:border-box;text-align:center;box-shadow:0 1px 4px rgba(0,0,0,.3),inset 0 0 0 3px rgba(0,0,0,.1);padding:18px 30px}.wpca-alert .wpca-success{background-color:#46b450}.wpca-alert .wpca-error{background-color:#ff7058}@media (min-width:601px){.wpca-alert{width:auto;top:auto;bottom:30px;right:30px}.wpca-error,.wpca-success{min-width:320px;position:relative;border-radius:40px}.rtl .wpca-alert{left:30px;right:auto}}#cas-groups{padding:6px 0 0}#cas-groups>ul{position:relative;margin:0;transition:all 1s ease;max-height:9999px;height:auto}.cas-group-body,.cas-group-new{box-sizing:border-box;border-width:1px;border-style:solid;border-color:#ccc;background-color:#f1f1f1;overflow:hidden;position:relative;margin-bottom:0;border-radius:2px;box-shadow:0 1px 2px 1px rgba(0,0,0,.08)}.cas-group-body .cas-group-cell{padding:10px;background-color:#fff;border-top:1px solid #ccc}.cas-group-body .cas-group-actions{padding:5px;overflow:hidden}.cas-group-body .cas-group-actions .spinner{float:none}.cas-group-body .cas-group-options{overflow:hidden;margin:0}.cas-group-body .cas-group-options li{overflow:hidden;margin:0;padding:8px 5px;border-top:#ddd 1px solid}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection{color:#23282d;background-color:#fafafa;border-color:#ccc;box-shadow:0 1px 0 #ccc;padding:0 8px 1px;border-radius:3px;vertical-align:top}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection:hover{border-color:#999}.wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__placeholder{color:#23282d}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection{height:24px;font-size:11px}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__arrow{height:24px}.cas-group-actions .wpca-conditions-add+.select2-container.select2-container--wpca .select2-selection .select2-selection__rendered{line-height:24px}.cas-group-single{margin:0}.wpca-group-description{color:#fff}.wpca-group-description span{float:left;margin:4px 4px 0 0;padding:4px 8px 6px;background-color:#59A9FD;border-radius:20px}.cas-condition:first-of-type>.cas-group-sep,.cas-group-single:first-of-type>.cas-group-sep{display:none}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate{display:table}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate .wpca-sep-or-not,.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate:before{display:none}.cas-group-single:first-of-type>.cas-group-sep.wpca-group-negate .wpca-sep-not{display:inline-block}.cas-group-sep.wpca-group-negate .wpca-sep-or{display:none}.cas-group-sep.wpca-group-negate .wpca-sep-or-not{display:inline-block}.cas-group-sep{display:table;margin:0 auto;color:#fff;text-transform:uppercase;font-size:.8em;font-weight:700;line-height:1;clear:both;direction:ltr}.cas-group-sep:after,.cas-group-sep:before{position:relative;display:block;content:'';width:2px;height:8px;margin:0 auto;background-color:#ccc}.cas-group-sep .wpca-sep-not,.cas-group-sep .wpca-sep-or-not{display:none}.cas-group-sep span{background:#777;display:inline-block;padding:3px 5px;border-radius:3px;vertical-align:middle}.cas-group-body .cas-group-sep{display:block;overflow:hidden;text-align:center;margin:5px -10px}.cas-group-body .cas-group-sep:after,.cas-group-body .cas-group-sep:before{background-color:transparent;border-top:1px solid #eee;content:"";display:inline-block;height:1px;position:relative;vertical-align:middle;width:50%}.cas-group-body .cas-group-sep:before{right:0;margin-left:-50%}.cas-group-body .cas-group-sep:after{left:0;margin-right:-50%}.cas-group-label{font-weight:700;margin:0 0 6px}.wpca-condition-remove{cursor:pointer;margin:0 8px 0 0;color:#aaa;transition:color .3s ease}.wpca-condition-remove:hover{color:#444}.cas-group-new{background-color:#fff}.cas-group-new>div:first-of-type{background-color:#f1f1f1;border-right:#ccc 1px solid}.cas-group-new>div{padding:5px;display:inline-block;vertical-align:middle}.cas-group-new a{padding:0 10px}label.cae-toggle{vertical-align:top}label.cae-toggle input{display:none}label.cae-toggle .cae-toggle-bar{overflow:hidden;cursor:pointer;position:relative;padding-right:34px;height:22px;line-height:22px;display:inline-block;vertical-align:middle}label.cae-toggle .cae-toggle-bar:before{top:0;right:0;position:absolute;display:inline-block;width:34px;content:"";padding:0;height:inherit;line-height:inherit;border-radius:22px;background-color:#bbb;box-shadow:0 0 2px rgba(0,0,0,.2) inset;transition:background-color .2s ease-in}label.cae-toggle .cae-toggle-bar:after{content:"";display:block;width:18px;height:18px;margin:0;background:#FFF;position:absolute;top:2px;right:14px;border-radius:22px;transition:right .2s ease-in 0s;box-shadow:0 1px 2px rgba(0,0,0,.2)}label.cae-toggle input:checked+.cae-toggle-bar:before{background-color:#7ad03a}label.cae-toggle input:checked+.cae-toggle-bar:after{right:2px}@media (min-width:783px){#cas-groups .button-small .dashicons{font-size:14px;height:14px;width:14px;vertical-align:text-top}}@media (min-width:1041px){.cas-group-label{float:left;width:220px;margin:5px 0 0}.wpca-group-description{float:left}.cas-group-input{margin-left:221px;white-space:nowrap;overflow:hidden}.cas-group-body .cas-group-options li{padding:8px 10%}.rtl .cas-group-label{float:right}.rtl .cas-group-input{margin-right:221px;margin-left:auto}}.select2-container{box-sizing:border-box;display:inline-block;margin:0;position:relative;vertical-align:middle}.select2-container .select2-selection--single{box-sizing:border-box;cursor:pointer;display:block;height:28px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--single .select2-selection__rendered{display:block;padding-left:8px;padding-right:20px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-selection--single .select2-selection__clear{position:relative}.select2-container[dir=rtl] .select2-selection--single .select2-selection__rendered{padding-right:8px;padding-left:20px}.select2-container .select2-selection--multiple{box-sizing:border-box;cursor:pointer;display:block;min-height:32px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-container .select2-selection--multiple .select2-selection__rendered{display:inline-block;overflow:hidden;padding-left:8px;text-overflow:ellipsis;white-space:nowrap}.select2-container .select2-search--inline{float:left}.select2-container .select2-search--inline .select2-search__field{box-sizing:border-box;border:none;font-size:100%;margin-top:5px;padding:0}.select2-container .select2-search--inline .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-dropdown{background-color:#fff;border:1px solid #aaa;border-radius:4px;box-sizing:border-box;display:block;position:absolute;left:-100000px;width:100%;z-index:1051}.select2-results{display:block}.select2-results__options{list-style:none;margin:0;padding:0}.select2-results__option{padding:6px;-moz-user-select:none;-ms-user-select:none;user-select:none;-webkit-user-select:none}.select2-results__option[aria-selected]{cursor:pointer}.select2-container--open .select2-dropdown{left:0}.select2-container--open .select2-dropdown--above{border-bottom:none;border-bottom-left-radius:0;border-bottom-right-radius:0}.select2-container--open .select2-dropdown--below{border-top:none;border-top-left-radius:0;border-top-right-radius:0}.select2-search--dropdown{display:block;padding:4px}.select2-search--dropdown .select2-search__field{padding:4px;width:100%;box-sizing:border-box}.select2-search--dropdown .select2-search__field::-webkit-search-cancel-button{-webkit-appearance:none}.select2-search--dropdown.select2-search--hide{display:none}.select2-close-mask{border:0;margin:0;padding:0;display:block;position:fixed;left:0;top:0;min-height:100%;min-width:100%;height:auto;width:auto;opacity:0;z-index:99;background-color:#fff;filter:alpha(opacity=0)}.select2-hidden-accessible{border:0!important;clip:rect(0 0 0 0)!important;-webkit-clip-path:inset(50%)!important;clip-path:inset(50%)!important;height:1px!important;overflow:hidden!important;padding:0!important;position:absolute!important;width:1px!important;white-space:nowrap!important}.select2-container--wpca.select2-container .select2-selection--single{background-color:#fff;border:1px solid #ddd;border-radius:0}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__rendered{color:#444;line-height:28px}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__clear{cursor:pointer;float:right;font-weight:700}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__placeholder{color:#999}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__arrow{height:26px;position:absolute;top:1px;right:1px;width:20px}.select2-container--wpca.select2-container .select2-selection--single .select2-selection__arrow b{border-color:#888 transparent transparent;border-style:solid;border-width:5px 4px 0;height:0;left:50%;margin-left:-4px;margin-top:-2px;position:absolute;top:50%;width:0}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--single .select2-selection__clear{float:left}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--single .select2-selection__arrow{left:1px;right:auto}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--single{background-color:#eee;cursor:default}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--single .select2-selection__clear{display:none}.select2-container--wpca.select2-container.select2-container--open .select2-selection--single{border:1px solid #5b9dd9}.select2-container--wpca.select2-container.select2-container--open .select2-selection--single .select2-selection__arrow b{border-color:transparent transparent #888;border-width:0 4px 5px}.select2-container--wpca.select2-container .select2-selection--multiple{background-color:#fff;color:#444;border:1px solid #ddd;border-radius:0;cursor:text;min-height:32px;line-height:1}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__rendered{box-sizing:border-box;list-style:none;margin:0;padding:0 5px 3px;width:100%}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__rendered li{list-style:none}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__placeholder{color:#999;margin-top:5px;float:left}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__clear{cursor:pointer;float:right;font-weight:700;margin-top:5px;margin-right:10px}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice{background-color:#bfe7f1;color:#23282d;border:1px solid #439eb4;border-radius:2px;cursor:default;float:left;margin:4px 4px 0 0;padding:2px 6px 4px;max-width:100%;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;box-shadow:0 1px 0 0 rgba(255,255,255,.9) inset,0 1px 1px rgba(0,0,0,.1)}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice__remove{color:#439eb4;cursor:pointer;font-size:16px;display:inline-block;font-weight:700;margin-right:6px}.select2-container--wpca .select2-results__option[aria-selected=true],.select2-container--wpca.select2-container.select2-container--disabled .select2-selection__choice__remove{display:none}.select2-container--wpca.select2-container .select2-selection--multiple .select2-selection__choice__remove:hover{color:#444}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-search--inline,.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice,.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__placeholder{float:right}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice{margin:4px 0 0 4px}.select2-container--wpca.select2-container[dir=rtl] .select2-selection--multiple .select2-selection__choice__remove{margin-left:2px;margin-right:auto}.select2-container--wpca.select2-container.select2-container--focus .select2-selection--multiple{border:1px solid #5b9dd9;background-color:#fafafa;outline:0}.select2-container--wpca.select2-container.select2-container--disabled .select2-selection--multiple{background-color:#eee;cursor:default}.select2-container--wpca.select2-container .select2-dropdown{overflow:hidden;border-color:#5b9dd9}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-1{padding-left:10px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-2{padding-left:20px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-3{padding-left:30px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-4{padding-left:40px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-5{padding-left:50px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-6{padding-left:60px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-7{padding-left:70px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-8{padding-left:80px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-9{padding-left:90px}.select2-container--wpca.select2-container .select2-dropdown .wpca-level-10{padding-left:100px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-1{padding-right:10px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-2{padding-right:20px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-3{padding-right:30px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-4{padding-right:40px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-5{padding-right:50px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-6{padding-right:60px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-7{padding-right:70px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-8{padding-right:80px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-9{padding-right:90px}.select2-container--wpca.select2-container .select2-dropdown[dir=rtl] .wpca-level-10{padding-right:100px}.select2-container--wpca.select2-container .select2-dropdown.select2-dropdown--below{box-shadow:0 2px 5px rgba(0,0,0,.15)}.select2-container--wpca.select2-container .select2-dropdown.select2-dropdown--above{box-shadow:0 -2px 5px rgba(0,0,0,.15)}.select2-container--wpca.select2-container--open.select2-container--above .select2-selection--multiple,.select2-container--wpca.select2-container--open.select2-container--above .select2-selection--single{border-top-left-radius:0;border-top-right-radius:0;border-top:1px solid #ddd}.select2-container--wpca.select2-container--open.select2-container--below .select2-selection--multiple,.select2-container--wpca.select2-container--open.select2-container--below .select2-selection--single{border-bottom-left-radius:0;border-bottom-right-radius:0;border-bottom:1px solid #ddd}.select2-container--wpca .select2-search--dropdown .select2-search__field{border:1px solid #5b9dd9;line-height:normal}.select2-container--wpca .select2-search--inline{width:auto;margin:0;z-index:1030}.select2-container--wpca .select2-search--inline .select2-search__field{font-family:inherit;padding:0;background:0 0!important;min-height:auto;border:none;outline:0;box-shadow:none!important;-webkit-appearance:textfield;margin-top:6px!important;line-height:normal}.select2-container--wpca .select2-search--inline .select2-search__field:not([placeholder='']){width:100%!important;margin-right:9999px}.select2-container--wpca[dir=rtl] .select2-search--inline .select2-search__field:not([placeholder='']){margin-left:9999px;margin-right:auto}.select2-container--wpca .select2-results>.select2-results__options{max-height:200px;overflow-y:auto}.select2-container--wpca .select2-results__option[role=group]{padding:0}.select2-container--wpca .select2-results__option[aria-disabled=true]{color:#999}.select2-container--wpca .select2-results__option .select2-results__option{padding-left:20px;margin:0}.select2-container--wpca .select2-results__option--highlighted[aria-selected]{background-color:#f2f2f2}.select2-container--wpca .select2-results__group{cursor:default;display:block;padding:6px}
|
lib/wp-content-aware-engine/bootstrap.php
CHANGED
@@ -12,7 +12,7 @@ defined('ABSPATH') || exit;
|
|
12 |
* Version of this WPCA
|
13 |
* @var string
|
14 |
*/
|
15 |
-
$this_wpca_version = '7.0';
|
16 |
|
17 |
/**
|
18 |
* Class to make sure the latest
|
12 |
* Version of this WPCA
|
13 |
* @var string
|
14 |
*/
|
15 |
+
$this_wpca_version = '7.0.1';
|
16 |
|
17 |
/**
|
18 |
* Class to make sure the latest
|
package.json
DELETED
@@ -1,24 +0,0 @@
|
|
1 |
-
{
|
2 |
-
"name": "content-aware-sidebars",
|
3 |
-
"description": "Content Aware Sidebars development",
|
4 |
-
"repository": {
|
5 |
-
"type": "git",
|
6 |
-
"url": "https://github.com/intoxstudio/content-aware-sidebars.git"
|
7 |
-
},
|
8 |
-
"author": "Joachim Jensen",
|
9 |
-
"license": "GPLv3",
|
10 |
-
"bugs": {
|
11 |
-
"url": "https://github.com/intoxstudio/content-aware-sidebars/issues"
|
12 |
-
},
|
13 |
-
"homepage": "https://github.com/intoxstudio/content-aware-sidebars",
|
14 |
-
"devDependencies": {
|
15 |
-
"gulp": "^4.0.0",
|
16 |
-
"gulp-freemius-deploy": "^1.0.10",
|
17 |
-
"gulp-less": "^3.4.0",
|
18 |
-
"gulp-rename": "^1.2.2",
|
19 |
-
"gulp-uglify": "^3.0.0",
|
20 |
-
"gulp-zip": "^4.1.0",
|
21 |
-
"less-plugin-autoprefix": "^1.5.1",
|
22 |
-
"less-plugin-clean-css": "^1.5.1"
|
23 |
-
}
|
24 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -2,10 +2,10 @@
|
|
2 |
Contributors: intoxstudio, devinstitute, freemius
|
3 |
Donate link: #
|
4 |
Tags: custom sidebars, sidebar, hide sidebar, display widgets, widget, bbpress, buddypress, sidebar manager
|
5 |
-
Requires at least: 4.
|
6 |
Requires PHP: 5.6
|
7 |
-
Tested up to: 5.
|
8 |
-
Stable tag: 3.
|
9 |
License: GPLv3
|
10 |
|
11 |
Display custom sidebars and widgets on any post, page, category etc. Supports bbPress, BuddyPress, WooCommerce, WPML, and more.
|
@@ -158,17 +158,33 @@ Of course! Check out the links below:
|
|
158 |
|
159 |
== Upgrade Notice ==
|
160 |
|
161 |
-
= 3.5.1 =
|
162 |
-
|
163 |
-
* Content Aware Sidebars data in your database will be updated automatically. It is highly recommended to backup this data before updating the plugin.
|
164 |
-
* Data from version 0.8 and below will not be updated during this process.
|
165 |
-
|
166 |
== Changelog ==
|
167 |
|
168 |
[Follow development and see all changes on GitHub](https://github.com/intoxstudio/content-aware-sidebars)
|
169 |
|
170 |
####Highlights
|
171 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
172 |
= 3.9 =
|
173 |
|
174 |
* Added: 1-click activation in widget area list screen
|
@@ -186,49 +202,4 @@ Of course! Check out the links below:
|
|
186 |
* Added: predefined infuse locations for genesis framework, astra theme
|
187 |
* Updated: predefined infuse locations for generatepress theme
|
188 |
|
189 |
-
= 3.8.2 =
|
190 |
-
|
191 |
-
* Added: wordpress 5.2 support
|
192 |
-
* Updated: freemius sdk
|
193 |
-
* Updated: ui improvements
|
194 |
-
|
195 |
-
**Pro Plan:**
|
196 |
-
|
197 |
-
* Added: include hidden buddypress groups in user visibility
|
198 |
-
|
199 |
-
= 3.8.1 =
|
200 |
-
|
201 |
-
* Added: wordpress 5.1 support
|
202 |
-
* Updated: freemius sdk - security update
|
203 |
-
* Updated: wp-content-aware-engine library
|
204 |
-
* Fixed: minor bugfixes
|
205 |
-
|
206 |
-
= 3.8 =
|
207 |
-
|
208 |
-
* Added: Overhauled and simplified UI
|
209 |
-
* Added: quick-add conditions
|
210 |
-
* Added: minimum wordpress version 4.5
|
211 |
-
* Added: minimum php version 5.6
|
212 |
-
* Updated: user visibility now has categories
|
213 |
-
* Updated: introduction tour
|
214 |
-
* Updated: singulars/archives condition setting replaced with page type setting
|
215 |
-
* Updated: admin menu renamed to "content aware"
|
216 |
-
* Updated: freemius sdk
|
217 |
-
* Updated: wp-content-aware-engine library
|
218 |
-
* Updated: wp-db-updater library
|
219 |
-
* Fixed: searching for attachments in conditions
|
220 |
-
* Fixed: shop condition not working due to bug in woocommerce
|
221 |
-
* Fixed: some conditions not displaying properly after save
|
222 |
-
* Fixed: better compatibility with plugins loading unnecessary admin scripts
|
223 |
-
|
224 |
-
**Pro Plan:**
|
225 |
-
|
226 |
-
* Added: widget cleaner
|
227 |
-
* Added: buddypress groups in user visibility
|
228 |
-
* Added: "author of content" in user visibility
|
229 |
-
* Updated: performance improvements for url condition
|
230 |
-
* Updated: performance improvements for date condition
|
231 |
-
* Fixed: no longer necessary to enable styling before using widget area designer
|
232 |
-
* Fixed: time schedule now shows time format from settings (12/24h)
|
233 |
-
|
234 |
See changelog.txt for previous changes.
|
2 |
Contributors: intoxstudio, devinstitute, freemius
|
3 |
Donate link: #
|
4 |
Tags: custom sidebars, sidebar, hide sidebar, display widgets, widget, bbpress, buddypress, sidebar manager
|
5 |
+
Requires at least: 4.7
|
6 |
Requires PHP: 5.6
|
7 |
+
Tested up to: 5.3
|
8 |
+
Stable tag: 3.10.1
|
9 |
License: GPLv3
|
10 |
|
11 |
Display custom sidebars and widgets on any post, page, category etc. Supports bbPress, BuddyPress, WooCommerce, WPML, and more.
|
158 |
|
159 |
== Upgrade Notice ==
|
160 |
|
|
|
|
|
|
|
|
|
|
|
161 |
== Changelog ==
|
162 |
|
163 |
[Follow development and see all changes on GitHub](https://github.com/intoxstudio/content-aware-sidebars)
|
164 |
|
165 |
####Highlights
|
166 |
|
167 |
+
= 3.10.1 =
|
168 |
+
|
169 |
+
* Fixed: minor bug when using quick select with woocommerce
|
170 |
+
|
171 |
+
= 3.10 =
|
172 |
+
|
173 |
+
* Added: bulk actions for activation and deactivation
|
174 |
+
* Added: filter to disable enhanced widget manager
|
175 |
+
* Added: filter to disable sidebar quick select
|
176 |
+
* Added: hide sidebar quick select from special pages
|
177 |
+
* Added: wordpress 5.3 support
|
178 |
+
* Added: minimum wordpress version 4.7
|
179 |
+
* Updated: ui improvements
|
180 |
+
* Updated: wp-content-aware-engine library
|
181 |
+
* Removed: bundled spanish translations - now handled with automatic language pack
|
182 |
+
|
183 |
+
**Pro Plan:**
|
184 |
+
|
185 |
+
* Added: sticky option in widget area designer
|
186 |
+
* Added: duplication now includes widgets
|
187 |
+
|
188 |
= 3.9 =
|
189 |
|
190 |
* Added: 1-click activation in widget area list screen
|
202 |
* Added: predefined infuse locations for genesis framework, astra theme
|
203 |
* Updated: predefined infuse locations for generatepress theme
|
204 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
205 |
See changelog.txt for previous changes.
|
sidebar.php
CHANGED
@@ -147,7 +147,7 @@ final class CAS_Sidebar_Manager
|
|
147 |
'multi',
|
148 |
array(
|
149 |
'general' => array(
|
150 |
-
'label'
|
151 |
'options' => array(
|
152 |
-1 => __('Logged-in', 'content-aware-sidebars')
|
153 |
)
|
@@ -241,7 +241,7 @@ final class CAS_Sidebar_Manager
|
|
241 |
|
242 |
// Register the sidebar type
|
243 |
register_post_type(CAS_App::TYPE_SIDEBAR, array(
|
244 |
-
'labels'
|
245 |
'name' => __('Sidebars', 'content-aware-sidebars'),
|
246 |
'singular_name' => __('Sidebar', 'content-aware-sidebars'),
|
247 |
'add_new' => _x('Add New', 'sidebar', 'content-aware-sidebars'),
|
@@ -254,9 +254,9 @@ final class CAS_Sidebar_Manager
|
|
254 |
'not_found' => __('No sidebars found', 'content-aware-sidebars'),
|
255 |
'not_found_in_trash' => __('No sidebars found in Trash', 'content-aware-sidebars'),
|
256 |
//wp-content-aware-engine specific
|
257 |
-
'ca_title'
|
258 |
),
|
259 |
-
'capabilities'
|
260 |
'edit_post' => CAS_App::CAPABILITY,
|
261 |
'read_post' => CAS_App::CAPABILITY,
|
262 |
'delete_post' => CAS_App::CAPABILITY,
|
@@ -301,8 +301,8 @@ final class CAS_Sidebar_Manager
|
|
301 |
CAS_App::STATUS_INACTIVE,
|
302 |
CAS_App::STATUS_SCHEDULED
|
303 |
),
|
304 |
-
'orderby'
|
305 |
-
'order'
|
306 |
));
|
307 |
|
308 |
//Register sidebars to add them to the list
|
@@ -333,7 +333,7 @@ final class CAS_Sidebar_Manager
|
|
333 |
'before_title' => '<h4 class="widget-title">',
|
334 |
'after_title' => '</h4>'
|
335 |
);
|
336 |
-
$has_host = array(0=>1,1=>1,3=>1);
|
337 |
$metadata = $this->metadata();
|
338 |
|
339 |
foreach ($this->sidebars as $id => $post) {
|
@@ -383,7 +383,7 @@ final class CAS_Sidebar_Manager
|
|
383 |
global $wp_registered_sidebars;
|
384 |
|
385 |
$metadata = $this->metadata();
|
386 |
-
$has_host = array(0=>1,1=>1,3=>1);
|
387 |
|
388 |
foreach ($posts as $post) {
|
389 |
$id = CAS_App::SIDEBAR_PREFIX . $post->ID;
|
147 |
'multi',
|
148 |
array(
|
149 |
'general' => array(
|
150 |
+
'label' => 'General',
|
151 |
'options' => array(
|
152 |
-1 => __('Logged-in', 'content-aware-sidebars')
|
153 |
)
|
241 |
|
242 |
// Register the sidebar type
|
243 |
register_post_type(CAS_App::TYPE_SIDEBAR, array(
|
244 |
+
'labels' => array(
|
245 |
'name' => __('Sidebars', 'content-aware-sidebars'),
|
246 |
'singular_name' => __('Sidebar', 'content-aware-sidebars'),
|
247 |
'add_new' => _x('Add New', 'sidebar', 'content-aware-sidebars'),
|
254 |
'not_found' => __('No sidebars found', 'content-aware-sidebars'),
|
255 |
'not_found_in_trash' => __('No sidebars found in Trash', 'content-aware-sidebars'),
|
256 |
//wp-content-aware-engine specific
|
257 |
+
'ca_title' => __('Where to display', 'content-aware-sidebars')
|
258 |
),
|
259 |
+
'capabilities' => array(
|
260 |
'edit_post' => CAS_App::CAPABILITY,
|
261 |
'read_post' => CAS_App::CAPABILITY,
|
262 |
'delete_post' => CAS_App::CAPABILITY,
|
301 |
CAS_App::STATUS_INACTIVE,
|
302 |
CAS_App::STATUS_SCHEDULED
|
303 |
),
|
304 |
+
'orderby' => 'title',
|
305 |
+
'order' => 'ASC'
|
306 |
));
|
307 |
|
308 |
//Register sidebars to add them to the list
|
333 |
'before_title' => '<h4 class="widget-title">',
|
334 |
'after_title' => '</h4>'
|
335 |
);
|
336 |
+
$has_host = array(0 => 1,1 => 1,3 => 1);
|
337 |
$metadata = $this->metadata();
|
338 |
|
339 |
foreach ($this->sidebars as $id => $post) {
|
383 |
global $wp_registered_sidebars;
|
384 |
|
385 |
$metadata = $this->metadata();
|
386 |
+
$has_host = array(0 => 1,1 => 1,3 => 1);
|
387 |
|
388 |
foreach ($posts as $post) {
|
389 |
$id = CAS_App::SIDEBAR_PREFIX . $post->ID;
|
view/meta_box_design.php
CHANGED
@@ -7,92 +7,166 @@
|
|
7 |
*/
|
8 |
|
9 |
$url = 'https://dev.institute/wordpress-sidebars/pricing/?utm_source=plugin&utm_medium=popup&utm_content=design&utm_campaign=cas';
|
|
|
10 |
|
11 |
?>
|
12 |
|
13 |
-
<table class="form-table cas-form-table" width="100%"
|
14 |
-
<
|
15 |
-
<
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
<
|
21 |
-
<
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
-
|
36 |
-
<
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
-
|
46 |
-
<
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
<
|
52 |
-
<
|
53 |
-
|
54 |
-
<
|
55 |
-
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
<
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
</
|
85 |
-
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
-
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
<
|
96 |
-
|
97 |
-
|
98 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7 |
*/
|
8 |
|
9 |
$url = 'https://dev.institute/wordpress-sidebars/pricing/?utm_source=plugin&utm_medium=popup&utm_content=design&utm_campaign=cas';
|
10 |
+
$sticky_url = 'https://dev.institute/docs/content-aware-sidebars/faq/sticky-sidebar-theme-support/?utm_source=plugin&utm_medium=link&utm_content=design&utm_campaign=cas';
|
11 |
|
12 |
?>
|
13 |
|
14 |
+
<table class="form-table cas-form-table" width="100%">
|
15 |
+
<tbody>
|
16 |
+
<tr>
|
17 |
+
<td></td>
|
18 |
+
<td><strong><?php _e('Layout', 'content-aware-sidebars'); ?></strong>
|
19 |
+
</td>
|
20 |
+
</tr>
|
21 |
+
<tr>
|
22 |
+
<td scope="row">
|
23 |
+
<?php _e('Sticky', 'content-aware-sidebars'); ?>
|
24 |
+
</td>
|
25 |
+
<td>
|
26 |
+
<label class="cae-toggle js-cas-pro-notice"
|
27 |
+
data-url="<?php echo $url; ?>">
|
28 |
+
<input type="checkbox" value="1" disabled />
|
29 |
+
<div class="cae-toggle-bar"></div>
|
30 |
+
</label>
|
31 |
+
<p><a href="<?php echo $sticky_url; ?>"
|
32 |
+
target="_blank"><?php _e('Check Theme Support', 'content-aware-sidebars'); ?></a>
|
33 |
+
</p>
|
34 |
+
</td>
|
35 |
+
</tr>
|
36 |
+
<tr>
|
37 |
+
<td scope="row"><?php _e('Columns', 'content-aware-sidebars'); ?>
|
38 |
+
</td>
|
39 |
+
<td>
|
40 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number" value="1" readonly
|
41 |
+
data-url="<?php echo $url; ?>" /> <?php _e('columns', 'content-aware-sidebars'); ?>
|
42 |
+
</td>
|
43 |
+
</tr>
|
44 |
+
<tr>
|
45 |
+
<td scope="row"><?php _e('Gap', 'content-aware-sidebars'); ?>
|
46 |
+
</td>
|
47 |
+
<td>
|
48 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number" value="" readonly
|
49 |
+
data-url="<?php echo $url; ?>" /> px
|
50 |
+
</td>
|
51 |
+
</tr>
|
52 |
+
<tr>
|
53 |
+
<td scope="row"><?php _e('Background Color', 'content-aware-sidebars'); ?>
|
54 |
+
</td>
|
55 |
+
<td>
|
56 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
57 |
+
</td>
|
58 |
+
</tr>
|
59 |
+
<tr>
|
60 |
+
<td scope="row"><?php _e('Padding', 'content-aware-sidebars'); ?>
|
61 |
+
</td>
|
62 |
+
<td>
|
63 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
64 |
+
placeholder="<?php _e('Top', 'content-aware-sidebars'); ?>"
|
65 |
+
value="" readonly
|
66 |
+
data-url="<?php echo $url; ?>" />
|
67 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
68 |
+
placeholder="<?php _e('Right', 'content-aware-sidebars'); ?>"
|
69 |
+
value="" readonly
|
70 |
+
data-url="<?php echo $url; ?>" />
|
71 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
72 |
+
placeholder="<?php _e('Bottom', 'content-aware-sidebars'); ?>"
|
73 |
+
value="" readonly
|
74 |
+
data-url="<?php echo $url; ?>" />
|
75 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
76 |
+
placeholder="<?php _e('Left', 'content-aware-sidebars'); ?>"
|
77 |
+
value="" readonly
|
78 |
+
data-url="<?php echo $url; ?>" /> px
|
79 |
+
</td>
|
80 |
+
</tr>
|
81 |
+
<tr>
|
82 |
+
<td></td>
|
83 |
+
<td><strong><?php _e('Widget', 'content-aware-sidebars'); ?></strong>
|
84 |
+
</td>
|
85 |
+
</tr>
|
86 |
+
<tr>
|
87 |
+
<td scope="row"><?php _e('Background Color', 'content-aware-sidebars'); ?>
|
88 |
+
</td>
|
89 |
+
<td>
|
90 |
+
<input type="text" class="js-cas-color-field testing-something" value="" readonly />
|
91 |
+
</td>
|
92 |
+
</tr>
|
93 |
+
<tr>
|
94 |
+
<td scope="row"><?php _e('Padding', 'content-aware-sidebars'); ?>
|
95 |
+
</td>
|
96 |
+
<td>
|
97 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
98 |
+
placeholder="<?php _e('Top', 'content-aware-sidebars'); ?>"
|
99 |
+
value="" readonly
|
100 |
+
data-url="<?php echo $url; ?>" />
|
101 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
102 |
+
placeholder="<?php _e('Right', 'content-aware-sidebars'); ?>"
|
103 |
+
value="" readonly
|
104 |
+
data-url="<?php echo $url; ?>" />
|
105 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
106 |
+
placeholder="<?php _e('Bottom', 'content-aware-sidebars'); ?>"
|
107 |
+
value="" readonly
|
108 |
+
data-url="<?php echo $url; ?>" />
|
109 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number"
|
110 |
+
placeholder="<?php _e('Left', 'content-aware-sidebars'); ?>"
|
111 |
+
value="" readonly
|
112 |
+
data-url="<?php echo $url; ?>" /> px
|
113 |
+
</td>
|
114 |
+
</tr>
|
115 |
+
<tr>
|
116 |
+
<td scope="row"><?php _e('Border Width', 'content-aware-sidebars'); ?>
|
117 |
+
</td>
|
118 |
+
<td>
|
119 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number" value="" readonly
|
120 |
+
data-url="<?php echo $url; ?>" /> px
|
121 |
+
</td>
|
122 |
+
</tr>
|
123 |
+
<tr>
|
124 |
+
<td scope="row"><?php _e('Border Radius', 'content-aware-sidebars'); ?>
|
125 |
+
</td>
|
126 |
+
<td>
|
127 |
+
<input class="cas-input-sm js-cas-pro-notice" type="number" value="" readonly
|
128 |
+
data-url="<?php echo $url; ?>" /> px
|
129 |
+
</td>
|
130 |
+
</tr>
|
131 |
+
<tr>
|
132 |
+
<td scope="row"><?php _e('Border Color', 'content-aware-sidebars'); ?>
|
133 |
+
</td>
|
134 |
+
<td>
|
135 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
136 |
+
</td>
|
137 |
+
</tr>
|
138 |
+
<tr>
|
139 |
+
<td></td>
|
140 |
+
<td><strong><?php _e('Text', 'content-aware-sidebars'); ?></strong>
|
141 |
+
</td>
|
142 |
+
</tr>
|
143 |
+
<tr>
|
144 |
+
<td scope="row"><?php _e('Text Color', 'content-aware-sidebars'); ?>
|
145 |
+
</td>
|
146 |
+
<td>
|
147 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
148 |
+
</td>
|
149 |
+
</tr>
|
150 |
+
<tr>
|
151 |
+
<td scope="row"><?php _e('Title Color', 'content-aware-sidebars'); ?>
|
152 |
+
</td>
|
153 |
+
<td>
|
154 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
155 |
+
</td>
|
156 |
+
</tr>
|
157 |
+
<tr>
|
158 |
+
<td scope="row"><?php _e('Link Color', 'content-aware-sidebars'); ?>
|
159 |
+
</td>
|
160 |
+
<td>
|
161 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
162 |
+
</td>
|
163 |
+
</tr>
|
164 |
+
<tr>
|
165 |
+
<td scope="row"><?php _e('Link Hover Color', 'content-aware-sidebars'); ?>
|
166 |
+
</td>
|
167 |
+
<td>
|
168 |
+
<input type="text" class="js-cas-color-field" value="" readonly />
|
169 |
+
</td>
|
170 |
+
</tr>
|
171 |
+
</tbody>
|
172 |
+
</table>
|