Version Description
Download this release
Release Info
Developer | yithemes |
Plugin | ![]() |
Version | 1.3.0 |
Comparing to | |
See all releases |
Code changes from version 1.2.30 to 1.3.0
- README.txt +8 -2
- init.php +5 -3
- plugin-fw/assets/css/admin.css +41 -0
- plugin-fw/assets/css/chosen/chosen.css +0 -435
- plugin-fw/assets/css/metaboxes.css +507 -537
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_flat_10_000000_40x100.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_222222_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_228ef1_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ef8c08_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffd27a_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffffff_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-icons_3383bb_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-icons_454545_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-icons_70b2e1_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-icons_999999_256x240.png +0 -0
- plugin-fw/assets/css/overcast/images/ui-icons_fbc856_256x240.png +0 -0
- plugin-fw/assets/css/overcast/jquery-ui-custom/jquery-ui-1.8.9.custom.css +0 -578
- plugin-fw/assets/css/yit-plugin-panel-sidebar.css +0 -388
- plugin-fw/assets/css/yit-plugin-panel.css +44 -212
- plugin-fw/assets/css/yit-upgrader.css +5 -1
- plugin-fw/assets/css/yith-fields.css +328 -0
- plugin-fw/assets/images/chosen/chosen-sprite.png +0 -0
- plugin-fw/assets/images/chosen/chosen-sprite@2x.png +0 -0
- plugin-fw/assets/images/off.png +0 -0
- plugin-fw/assets/images/on.png +0 -0
- plugin-fw/assets/images/select.png +0 -0
- plugin-fw/assets/images/slider/grey.gif +0 -0
- plugin-fw/assets/images/slider/handle.png +0 -0
- plugin-fw/assets/images/slider/orange.gif +0 -0
- plugin-fw/assets/images/slider/tooltip.png +0 -0
- plugin-fw/assets/images/widgets/box-icon.png +0 -0
- plugin-fw/assets/images/widgets/box-white-icon.png +0 -0
- plugin-fw/assets/images/widgets/despacho.png +0 -0
- plugin-fw/assets/images/widgets/info-icon.png +0 -0
- plugin-fw/assets/images/widgets/link-bg.png +0 -0
- plugin-fw/assets/images/widgets/link-bg2.png +0 -0
- plugin-fw/assets/images/widgets/link-icon.png +0 -0
- plugin-fw/assets/images/widgets/membership-bg.png +0 -0
- plugin-fw/assets/js/chosen/ajax-chosen.jquery.js +0 -81
- plugin-fw/assets/js/chosen/ajax-chosen.jquery.min.js +0 -2
- plugin-fw/assets/js/chosen/chosen.jquery.js +0 -1211
- plugin-fw/assets/js/how-to.js +4 -4
- plugin-fw/assets/js/how-to.min.js +1 -0
- plugin-fw/assets/js/jquery.colorbox.js +1 -1
- plugin-fw/assets/js/jquery.colorbox.min.js +24 -0
- plugin-fw/assets/js/metabox.js +43 -260
- plugin-fw/assets/js/metabox.min.js +4 -11
- plugin-fw/assets/js/multisite-updater.js +6 -0
- plugin-fw/assets/js/multisite-updater.min.js +4 -1
- plugin-fw/assets/js/panel.spinner.js +0 -139
- plugin-fw/assets/js/panel.spinner.min.js +0 -3
- plugin-fw/assets/js/yit-cpt-unlimited.js +0 -79
- plugin-fw/assets/js/yit-cpt-unlimited.min.js +0 -2
- plugin-fw/assets/js/yit-cptu-sortable-posts.js +0 -32
- plugin-fw/assets/js/yit-plugin-panel-sidebar.js +0 -56
- plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js +0 -1
- plugin-fw/assets/js/yit-plugin-panel.js +124 -280
- plugin-fw/assets/js/yit-plugin-panel.min.js +5 -1
- plugin-fw/assets/js/yit-wp-pointer.js +0 -1
- plugin-fw/assets/js/yit-wp-pointer.min.js +3 -3
- plugin-fw/assets/js/yith-enhanced-select-wc-2.6.js +148 -0
- plugin-fw/assets/js/yith-enhanced-select-wc-2.6.min.js +5 -0
- plugin-fw/assets/js/yith-enhanced-select.js +136 -0
- plugin-fw/assets/js/yith-enhanced-select.min.js +5 -0
- plugin-fw/assets/js/yith-fields.js +350 -0
- plugin-fw/assets/js/yith-fields.min.js +15 -0
- plugin-fw/init.php +3 -4
- plugin-fw/languages/yith-plugin-fw.pot +62 -85
- plugin-fw/lib/yit-ajax.php +207 -17
- plugin-fw/lib/yit-assets.php +92 -0
- plugin-fw/lib/yit-icons.php +1143 -0
- plugin-fw/lib/yit-metabox.php +149 -143
- plugin-fw/lib/yit-plugin-common.php +1 -1
- plugin-fw/lib/yit-plugin-panel-sidebar.php +0 -430
- plugin-fw/lib/yit-plugin-panel-wc.php +208 -125
- plugin-fw/lib/yit-plugin-panel.php +292 -277
- plugin-fw/lib/yit-upgrade.php +553 -546
- plugin-fw/licence/assets/css/yit-licence.css +5 -3
- plugin-fw/licence/lib/yit-licence.php +164 -153
- plugin-fw/licence/lib/yit-plugin-licence.php +35 -0
- plugin-fw/templates/fields/ajax-posts.php +111 -0
- plugin-fw/templates/fields/ajax-products.php +24 -0
- plugin-fw/templates/fields/ajax-terms.php +133 -0
- plugin-fw/templates/fields/buttons.php +27 -0
- plugin-fw/templates/fields/checkbox.php +28 -0
- plugin-fw/templates/fields/colorpicker.php +27 -0
- plugin-fw/templates/fields/customtabs.php +151 -0
- plugin-fw/templates/fields/datepicker.php +24 -0
- plugin-fw/templates/fields/hidden.php +29 -0
- plugin-fw/templates/{metaboxes/types/simple-text.php → fields/html.php} +5 -8
- plugin-fw/templates/fields/icons.php +63 -0
- plugin-fw/templates/fields/image-gallery.php +40 -0
- plugin-fw/templates/fields/number.php +36 -0
- plugin-fw/templates/fields/onoff.php +21 -0
- plugin-fw/templates/fields/preview.php +18 -0
- plugin-fw/templates/fields/select-buttons.php +44 -0
- plugin-fw/templates/fields/select-mailchimp.php +30 -0
- plugin-fw/templates/fields/select.php +46 -0
- plugin-fw/templates/{metaboxes/types → fields}/sep.php +2 -6
- plugin-fw/templates/fields/sidebarlist.php +28 -0
- plugin-fw/templates/fields/sidebars.php +62 -0
- plugin-fw/templates/fields/simple-text.php +19 -0
- plugin-fw/templates/fields/slider.php +28 -0
- plugin-fw/templates/fields/text-array.php +28 -0
- plugin-fw/templates/fields/text-button.php +49 -0
- plugin-fw/templates/fields/text.php +26 -0
- plugin-fw/templates/fields/textarea-codemirror.php +26 -0
- plugin-fw/templates/fields/textarea-editor.php +38 -0
- plugin-fw/templates/fields/textarea.php +24 -0
- plugin-fw/templates/{metaboxes/types/hidden.php → fields/title.php} +6 -7
- plugin-fw/templates/fields/upload.php +28 -0
- plugin-fw/templates/metaboxes/field-row.php +44 -0
- plugin-fw/templates/metaboxes/tab.php +60 -24
- plugin-fw/templates/metaboxes/types/ajax-products.php +0 -63
- plugin-fw/templates/metaboxes/types/categories.php +0 -88
- plugin-fw/templates/metaboxes/types/checkbox.php +0 -23
- plugin-fw/templates/metaboxes/types/chosen.php +0 -32
- plugin-fw/templates/metaboxes/types/colorpicker.php +0 -22
- plugin-fw/templates/metaboxes/types/contactform.php +0 -557
- plugin-fw/templates/metaboxes/types/customtabs.php +0 -152
- plugin-fw/templates/metaboxes/types/datepicker.php +0 -21
- plugin-fw/templates/metaboxes/types/icon-list.php +6 -4
- plugin-fw/templates/metaboxes/types/image-gallery.php +0 -48
- plugin-fw/templates/metaboxes/types/images.php +0 -90
- plugin-fw/templates/metaboxes/types/number.php +0 -50
- plugin-fw/templates/metaboxes/types/onoff.php +0 -30
- plugin-fw/templates/metaboxes/types/preview.php +0 -19
- plugin-fw/templates/metaboxes/types/responsivesliders.php +0 -31
- plugin-fw/templates/metaboxes/types/select-icon.php +0 -72
- plugin-fw/templates/metaboxes/types/select-mailchimp.php +0 -32
- plugin-fw/templates/metaboxes/types/select.php +0 -32
- plugin-fw/templates/metaboxes/types/sidebar-layout.php +0 -61
- plugin-fw/templates/metaboxes/types/sidebarlist.php +0 -29
- plugin-fw/templates/metaboxes/types/sidebars.php +0 -124
- plugin-fw/templates/metaboxes/types/slider.php +0 -35
- plugin-fw/templates/metaboxes/types/text-array.php +0 -30
- plugin-fw/templates/metaboxes/types/text.php +0 -24
- plugin-fw/templates/metaboxes/types/textarea-editor.php +0 -42
- plugin-fw/templates/metaboxes/types/textarea.php +0 -25
- plugin-fw/templates/metaboxes/types/title.php +0 -18
- plugin-fw/templates/metaboxes/types/typography.php +0 -255
- plugin-fw/templates/metaboxes/types/upload.php +0 -24
- plugin-fw/templates/panel/panel-field-container.php +41 -0
- plugin-fw/templates/panel/sidebar/sidebar.php +0 -20
- plugin-fw/templates/panel/sidebar/widget.php +0 -53
- plugin-fw/templates/panel/sidebar/widgets/badges/badge.php +0 -11
- plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php +0 -19
- plugin-fw/templates/panel/sidebar/widgets/widget-links.php +0 -34
- plugin-fw/templates/panel/sidebar/widgets/widget-membership.php +0 -29
- plugin-fw/templates/panel/sidebar/widgets/widgets.php +0 -42
- plugin-fw/templates/panel/types/chosen.php +0 -36
- plugin-fw/templates/panel/types/colorpicker.php +0 -38
- plugin-fw/templates/panel/types/connected-list.php +0 -27
- plugin-fw/templates/panel/types/layout-panel.php +0 -0
- plugin-fw/templates/panel/types/number.php +0 -35
- plugin-fw/templates/panel/types/on-off.php +0 -34
- plugin-fw/templates/panel/types/select-mailchimp.php +0 -36
- plugin-fw/templates/panel/types/select.php +0 -41
- plugin-fw/templates/panel/types/slider.php +0 -40
- plugin-fw/templates/panel/types/text-button.php +0 -36
- plugin-fw/templates/panel/types/text.php +0 -35
- plugin-fw/templates/panel/types/textarea-codemirror.php +0 -40
- plugin-fw/templates/panel/types/textarea.php +0 -35
- plugin-fw/templates/panel/types/upload.php +0 -46
- plugin-fw/templates/panel/woocommerce/woocommerce-form.php +2 -10
- plugin-fw/templates/panel/woocommerce/woocommerce-option-row.php +31 -0
- plugin-fw/templates/panel/woocommerce/woocommerce-upload.php +3 -3
- plugin-fw/yit-functions.php +360 -211
- plugin-fw/yit-plugin-registration-hook.php +0 -6
- plugin-fw/yit-plugin.php +2 -1
README.txt
CHANGED
@@ -3,8 +3,8 @@
|
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, slider, carousel, woocommerce
|
5 |
Requires at least: 3.5.1
|
6 |
-
Tested up to: 4.
|
7 |
-
Stable tag: 1.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -51,6 +51,12 @@ YITH WooCommerce Zoom Magnifier will add a new tab called "Zoom Magnifier" in "Y
|
|
51 |
|
52 |
== Changelog ==
|
53 |
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
= Version 1.2.30 - Released: Aug 11, 2017 =
|
55 |
|
56 |
* New: support for WooCommerce 3.1.
|
3 |
Contributors: yithemes
|
4 |
Tags: zoom, magnifier, slider, carousel, woocommerce
|
5 |
Requires at least: 3.5.1
|
6 |
+
Tested up to: 4.9
|
7 |
+
Stable tag: 1.3.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
51 |
|
52 |
== Changelog ==
|
53 |
|
54 |
+
= Version 1.3.0 - Released: Dec 11, 2017 =
|
55 |
+
|
56 |
+
* Update: YITH Plugin Framework to version 3.0
|
57 |
+
* New: support for WooCommerce 3.2.3
|
58 |
+
* New: tested up to WordPress 4.9
|
59 |
+
|
60 |
= Version 1.2.30 - Released: Aug 11, 2017 =
|
61 |
|
62 |
* New: support for WooCommerce 3.1.
|
init.php
CHANGED
@@ -3,15 +3,17 @@
|
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
|
6 |
-
* Version: 1.
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
10 |
* Domain Path: /languages/
|
|
|
|
|
11 |
*
|
12 |
* @author Your Inspiration Themes
|
13 |
* @package YITH WooCommerce Magnifier
|
14 |
-
* @version 1.
|
15 |
*/
|
16 |
/* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
17 |
|
@@ -76,7 +78,7 @@ if ( ! function_exists ( 'yith_plugin_registration_hook' ) ) {
|
|
76 |
register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
|
77 |
|
78 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
79 |
-
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.
|
80 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
81 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
82 |
defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
|
3 |
* Plugin Name: YITH WooCommerce Zoom Magnifier
|
4 |
* Plugin URI: http://yithemes.com/themes/plugins/yith-woocommerce-zoom-magnifier/
|
5 |
* Description: YITH WooCommerce Zoom Magnifier enables you to add a zoom effect to product images and a thumbnail slider for the product image gallery.
|
6 |
+
* Version: 1.3.0
|
7 |
* Author: YITHEMES
|
8 |
* Author URI: http://yithemes.com/
|
9 |
* Text Domain: yith-woocommerce-zoom-magnifier
|
10 |
* Domain Path: /languages/
|
11 |
+
* WC requires at least: 3.0.0
|
12 |
+
* WC tested up to: 3.2.3
|
13 |
*
|
14 |
* @author Your Inspiration Themes
|
15 |
* @package YITH WooCommerce Magnifier
|
16 |
+
* @version 1.3.0
|
17 |
*/
|
18 |
/* Copyright 2013-2015 Your Inspiration Themes (email : plugins@yithemes.com)
|
19 |
|
78 |
register_activation_hook ( __FILE__, 'yith_plugin_registration_hook' );
|
79 |
|
80 |
defined ( 'YITH_YWZM_FREE_INIT' ) || define ( 'YITH_YWZM_FREE_INIT', plugin_basename ( __FILE__ ) );
|
81 |
+
defined ( 'YITH_YWZM_VERSION' ) || define ( 'YITH_YWZM_VERSION', '1.3.0' );
|
82 |
defined ( 'YITH_YWZM_FILE' ) || define ( 'YITH_YWZM_FILE', __FILE__ );
|
83 |
defined ( 'YITH_YWZM_DIR' ) || define ( 'YITH_YWZM_DIR', plugin_dir_path ( __FILE__ ) );
|
84 |
defined ( 'YITH_YWZM_URL' ) || define ( 'YITH_YWZM_URL', plugins_url ( '/', __FILE__ ) );
|
plugin-fw/assets/css/admin.css
ADDED
@@ -0,0 +1,41 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*-----------------------
|
2 |
+
YITH Plugins Columns
|
3 |
+
------------------------*/
|
4 |
+
@media screen and (min-width : 783px) {
|
5 |
+
|
6 |
+
.auto-fold #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu-head {
|
7 |
+
width : 100%;
|
8 |
+
}
|
9 |
+
|
10 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu {
|
11 |
+
min-width : 320px;
|
12 |
+
display : flex;
|
13 |
+
flex-flow : row wrap;
|
14 |
+
}
|
15 |
+
|
16 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
17 |
+
width : 50%;
|
18 |
+
border-left : 1px solid #555;
|
19 |
+
box-sizing : border-box;
|
20 |
+
}
|
21 |
+
|
22 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(2n) {
|
23 |
+
border-left : none;
|
24 |
+
}
|
25 |
+
|
26 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu {
|
27 |
+
min-width : 480px;
|
28 |
+
display : flex;
|
29 |
+
flex-flow : row wrap;
|
30 |
+
}
|
31 |
+
|
32 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
33 |
+
width : calc(100% / 3);
|
34 |
+
border-left : 1px solid #555;
|
35 |
+
box-sizing : border-box;
|
36 |
+
}
|
37 |
+
|
38 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(3n + 2) {
|
39 |
+
border-left : none;
|
40 |
+
}
|
41 |
+
}
|
plugin-fw/assets/css/chosen/chosen.css
DELETED
@@ -1,435 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
-
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
-
|
5 |
-
Version 1.1.0
|
6 |
-
Full source at https://github.com/harvesthq/chosen
|
7 |
-
Copyright (c) 2011 Harvest http://getharvest.com
|
8 |
-
|
9 |
-
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
-
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
-
*/
|
12 |
-
|
13 |
-
/* @group Base */
|
14 |
-
.chosen-container {
|
15 |
-
position: relative;
|
16 |
-
display: inline-block;
|
17 |
-
vertical-align: middle;
|
18 |
-
font-size: 13px;
|
19 |
-
zoom: 1;
|
20 |
-
*display: inline;
|
21 |
-
-webkit-user-select: none;
|
22 |
-
-moz-user-select: none;
|
23 |
-
user-select: none;
|
24 |
-
}
|
25 |
-
.chosen-container .chosen-drop {
|
26 |
-
position: absolute;
|
27 |
-
top: 100%;
|
28 |
-
left: -9999px;
|
29 |
-
z-index: 1010;
|
30 |
-
-webkit-box-sizing: border-box;
|
31 |
-
-moz-box-sizing: border-box;
|
32 |
-
box-sizing: border-box;
|
33 |
-
width: 100%;
|
34 |
-
border: 1px solid #aaa;
|
35 |
-
border-top: 0;
|
36 |
-
background: #fff;
|
37 |
-
box-shadow: 0 4px 5px rgba(0, 0, 0, 0.15);
|
38 |
-
}
|
39 |
-
.chosen-container.chosen-with-drop .chosen-drop {
|
40 |
-
left: 0;
|
41 |
-
}
|
42 |
-
.chosen-container a {
|
43 |
-
cursor: pointer;
|
44 |
-
}
|
45 |
-
|
46 |
-
/* @end */
|
47 |
-
/* @group Single Chosen */
|
48 |
-
.chosen-container-single .chosen-single {
|
49 |
-
position: relative;
|
50 |
-
display: block;
|
51 |
-
overflow: hidden;
|
52 |
-
padding: 0 0 0 8px;
|
53 |
-
height: 23px;
|
54 |
-
border: 1px solid #aaa;
|
55 |
-
border-radius: 5px;
|
56 |
-
background-color: #fff;
|
57 |
-
background: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #ffffff), color-stop(50%, #f6f6f6), color-stop(52%, #eeeeee), color-stop(100%, #f4f4f4));
|
58 |
-
background: -webkit-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
59 |
-
background: -moz-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
60 |
-
background: -o-linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
61 |
-
background: linear-gradient(top, #ffffff 20%, #f6f6f6 50%, #eeeeee 52%, #f4f4f4 100%);
|
62 |
-
background-clip: padding-box;
|
63 |
-
box-shadow: 0 0 3px white inset, 0 1px 1px rgba(0, 0, 0, 0.1);
|
64 |
-
color: #444;
|
65 |
-
text-decoration: none;
|
66 |
-
white-space: nowrap;
|
67 |
-
line-height: 24px;
|
68 |
-
}
|
69 |
-
.chosen-container-single .chosen-default {
|
70 |
-
color: #999;
|
71 |
-
}
|
72 |
-
.chosen-container-single .chosen-single span {
|
73 |
-
display: block;
|
74 |
-
overflow: hidden;
|
75 |
-
margin-right: 26px;
|
76 |
-
text-overflow: ellipsis;
|
77 |
-
white-space: nowrap;
|
78 |
-
}
|
79 |
-
.chosen-container-single .chosen-single-with-deselect span {
|
80 |
-
margin-right: 38px;
|
81 |
-
}
|
82 |
-
.chosen-container-single .chosen-single abbr {
|
83 |
-
position: absolute;
|
84 |
-
top: 6px;
|
85 |
-
right: 26px;
|
86 |
-
display: block;
|
87 |
-
width: 12px;
|
88 |
-
height: 12px;
|
89 |
-
background: url('../../images/chosen/chosen-sprite.png') -42px 1px no-repeat;
|
90 |
-
font-size: 1px;
|
91 |
-
}
|
92 |
-
.chosen-container-single .chosen-single abbr:hover {
|
93 |
-
background-position: -42px -10px;
|
94 |
-
}
|
95 |
-
.chosen-container-single.chosen-disabled .chosen-single abbr:hover {
|
96 |
-
background-position: -42px -10px;
|
97 |
-
}
|
98 |
-
.chosen-container-single .chosen-single div {
|
99 |
-
position: absolute;
|
100 |
-
top: 0;
|
101 |
-
right: 0;
|
102 |
-
display: block;
|
103 |
-
width: 18px;
|
104 |
-
height: 100%;
|
105 |
-
}
|
106 |
-
.chosen-container-single .chosen-single div b {
|
107 |
-
display: block;
|
108 |
-
width: 100%;
|
109 |
-
height: 100%;
|
110 |
-
background: url('../../images/chosen/chosen-sprite.png') no-repeat 0px 2px;
|
111 |
-
}
|
112 |
-
.chosen-container-single .chosen-search {
|
113 |
-
position: relative;
|
114 |
-
z-index: 1010;
|
115 |
-
margin: 0;
|
116 |
-
padding: 3px 4px;
|
117 |
-
white-space: nowrap;
|
118 |
-
}
|
119 |
-
.chosen-container-single .chosen-search input[type="text"] {
|
120 |
-
-webkit-box-sizing: border-box;
|
121 |
-
-moz-box-sizing: border-box;
|
122 |
-
box-sizing: border-box;
|
123 |
-
margin: 1px 0;
|
124 |
-
padding: 4px 20px 4px 5px;
|
125 |
-
width: 100%;
|
126 |
-
height: auto;
|
127 |
-
outline: 0;
|
128 |
-
border: 1px solid #aaa;
|
129 |
-
background: white url('../../images/chosen/chosen-sprite.png') no-repeat 100% -20px;
|
130 |
-
background: url('../../images/chosen/chosen-sprite.png') no-repeat 100% -20px;
|
131 |
-
font-size: 1em;
|
132 |
-
font-family: sans-serif;
|
133 |
-
line-height: normal;
|
134 |
-
border-radius: 0;
|
135 |
-
}
|
136 |
-
.chosen-container-single .chosen-drop {
|
137 |
-
margin-top: -1px;
|
138 |
-
border-radius: 0 0 4px 4px;
|
139 |
-
background-clip: padding-box;
|
140 |
-
}
|
141 |
-
.chosen-container-single.chosen-container-single-nosearch .chosen-search {
|
142 |
-
position: absolute;
|
143 |
-
left: -9999px;
|
144 |
-
}
|
145 |
-
|
146 |
-
/* @end */
|
147 |
-
/* @group Results */
|
148 |
-
.chosen-container .chosen-results {
|
149 |
-
position: relative;
|
150 |
-
overflow-x: hidden;
|
151 |
-
overflow-y: auto;
|
152 |
-
margin: 0 4px 4px 0;
|
153 |
-
padding: 0 0 0 4px;
|
154 |
-
max-height: 240px;
|
155 |
-
-webkit-overflow-scrolling: touch;
|
156 |
-
}
|
157 |
-
.chosen-container .chosen-results li {
|
158 |
-
display: none;
|
159 |
-
margin: 0;
|
160 |
-
padding: 5px 6px;
|
161 |
-
list-style: none;
|
162 |
-
line-height: 15px;
|
163 |
-
-webkit-touch-callout: none;
|
164 |
-
}
|
165 |
-
.chosen-container .chosen-results li.active-result {
|
166 |
-
display: list-item;
|
167 |
-
cursor: pointer;
|
168 |
-
}
|
169 |
-
.chosen-container .chosen-results li.disabled-result {
|
170 |
-
display: list-item;
|
171 |
-
color: #ccc;
|
172 |
-
cursor: default;
|
173 |
-
}
|
174 |
-
.chosen-container .chosen-results li.highlighted {
|
175 |
-
background-color: #3875d7;
|
176 |
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #3875d7), color-stop(90%, #2a62bc));
|
177 |
-
background-image: -webkit-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
178 |
-
background-image: -moz-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
179 |
-
background-image: -o-linear-gradient(#3875d7 20%, #2a62bc 90%);
|
180 |
-
background-image: linear-gradient(#3875d7 20%, #2a62bc 90%);
|
181 |
-
color: #fff;
|
182 |
-
}
|
183 |
-
.chosen-container .chosen-results li.no-results {
|
184 |
-
display: list-item;
|
185 |
-
background: #f4f4f4;
|
186 |
-
}
|
187 |
-
.chosen-container .chosen-results li.group-result {
|
188 |
-
display: list-item;
|
189 |
-
font-weight: bold;
|
190 |
-
cursor: default;
|
191 |
-
}
|
192 |
-
.chosen-container .chosen-results li.group-option {
|
193 |
-
padding-left: 15px;
|
194 |
-
}
|
195 |
-
.chosen-container .chosen-results li em {
|
196 |
-
font-style: normal;
|
197 |
-
text-decoration: underline;
|
198 |
-
}
|
199 |
-
|
200 |
-
/* @end */
|
201 |
-
/* @group Multi Chosen */
|
202 |
-
.chosen-container-multi .chosen-choices {
|
203 |
-
position: relative;
|
204 |
-
overflow: hidden;
|
205 |
-
-webkit-box-sizing: border-box;
|
206 |
-
-moz-box-sizing: border-box;
|
207 |
-
box-sizing: border-box;
|
208 |
-
margin: 0;
|
209 |
-
padding: 0;
|
210 |
-
width: 100%;
|
211 |
-
height: auto !important;
|
212 |
-
height: 1%;
|
213 |
-
border: 1px solid #aaa;
|
214 |
-
background-color: #fff;
|
215 |
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(1%, #eeeeee), color-stop(15%, #ffffff));
|
216 |
-
background-image: -webkit-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
217 |
-
background-image: -moz-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
218 |
-
background-image: -o-linear-gradient(#eeeeee 1%, #ffffff 15%);
|
219 |
-
background-image: linear-gradient(#eeeeee 1%, #ffffff 15%);
|
220 |
-
cursor: text;
|
221 |
-
}
|
222 |
-
.chosen-container-multi .chosen-choices li {
|
223 |
-
float: left;
|
224 |
-
list-style: none;
|
225 |
-
}
|
226 |
-
.chosen-container-multi .chosen-choices li.search-field {
|
227 |
-
margin: 0;
|
228 |
-
padding: 0;
|
229 |
-
white-space: nowrap;
|
230 |
-
}
|
231 |
-
.chosen-container-multi .chosen-choices li.search-field input[type="text"] {
|
232 |
-
margin: 1px 0;
|
233 |
-
padding: 5px;
|
234 |
-
height: 15px;
|
235 |
-
outline: 0;
|
236 |
-
border: 0 !important;
|
237 |
-
background: transparent !important;
|
238 |
-
box-shadow: none;
|
239 |
-
color: #666;
|
240 |
-
font-size: 100%;
|
241 |
-
font-family: sans-serif;
|
242 |
-
line-height: normal;
|
243 |
-
border-radius: 0;
|
244 |
-
}
|
245 |
-
.chosen-container-multi .chosen-choices li.search-field .default {
|
246 |
-
color: #999;
|
247 |
-
}
|
248 |
-
.chosen-container-multi .chosen-choices li.search-choice {
|
249 |
-
position: relative;
|
250 |
-
margin: 3px 0 3px 5px;
|
251 |
-
padding: 3px 20px 3px 5px;
|
252 |
-
border: 1px solid #aaa;
|
253 |
-
border-radius: 3px;
|
254 |
-
background-color: #e4e4e4;
|
255 |
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
256 |
-
background-image: -webkit-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
257 |
-
background-image: -moz-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
258 |
-
background-image: -o-linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
259 |
-
background-image: linear-gradient(#f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
260 |
-
background-clip: padding-box;
|
261 |
-
box-shadow: 0 0 2px white inset, 0 1px 0 rgba(0, 0, 0, 0.05);
|
262 |
-
color: #333;
|
263 |
-
line-height: 13px;
|
264 |
-
cursor: default;
|
265 |
-
}
|
266 |
-
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close {
|
267 |
-
position: absolute;
|
268 |
-
top: 4px;
|
269 |
-
right: 3px;
|
270 |
-
display: block;
|
271 |
-
width: 12px;
|
272 |
-
height: 12px;
|
273 |
-
background: url('../../images/chosen/chosen-sprite.png') -42px 1px no-repeat;
|
274 |
-
font-size: 1px;
|
275 |
-
}
|
276 |
-
.chosen-container-multi .chosen-choices li.search-choice .search-choice-close:hover {
|
277 |
-
background-position: -42px -10px;
|
278 |
-
}
|
279 |
-
.chosen-container-multi .chosen-choices li.search-choice-disabled {
|
280 |
-
padding-right: 5px;
|
281 |
-
border: 1px solid #ccc;
|
282 |
-
background-color: #e4e4e4;
|
283 |
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #f4f4f4), color-stop(50%, #f0f0f0), color-stop(52%, #e8e8e8), color-stop(100%, #eeeeee));
|
284 |
-
background-image: -webkit-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
285 |
-
background-image: -moz-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
286 |
-
background-image: -o-linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
287 |
-
background-image: linear-gradient(top, #f4f4f4 20%, #f0f0f0 50%, #e8e8e8 52%, #eeeeee 100%);
|
288 |
-
color: #666;
|
289 |
-
}
|
290 |
-
.chosen-container-multi .chosen-choices li.search-choice-focus {
|
291 |
-
background: #d4d4d4;
|
292 |
-
}
|
293 |
-
.chosen-container-multi .chosen-choices li.search-choice-focus .search-choice-close {
|
294 |
-
background-position: -42px -10px;
|
295 |
-
}
|
296 |
-
.chosen-container-multi .chosen-results {
|
297 |
-
margin: 0;
|
298 |
-
padding: 0;
|
299 |
-
}
|
300 |
-
.chosen-container-multi .chosen-drop .result-selected {
|
301 |
-
display: list-item;
|
302 |
-
color: #ccc;
|
303 |
-
cursor: default;
|
304 |
-
}
|
305 |
-
|
306 |
-
/* @end */
|
307 |
-
/* @group Active */
|
308 |
-
.chosen-container-active .chosen-single {
|
309 |
-
border: 1px solid #5897fb;
|
310 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
311 |
-
}
|
312 |
-
.chosen-container-active.chosen-with-drop .chosen-single {
|
313 |
-
border: 1px solid #aaa;
|
314 |
-
-moz-border-radius-bottomright: 0;
|
315 |
-
border-bottom-right-radius: 0;
|
316 |
-
-moz-border-radius-bottomleft: 0;
|
317 |
-
border-bottom-left-radius: 0;
|
318 |
-
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(20%, #eeeeee), color-stop(80%, #ffffff));
|
319 |
-
background-image: -webkit-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
320 |
-
background-image: -moz-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
321 |
-
background-image: -o-linear-gradient(#eeeeee 20%, #ffffff 80%);
|
322 |
-
background-image: linear-gradient(#eeeeee 20%, #ffffff 80%);
|
323 |
-
box-shadow: 0 1px 0 #fff inset;
|
324 |
-
}
|
325 |
-
.chosen-container-active.chosen-with-drop .chosen-single div {
|
326 |
-
border-left: none;
|
327 |
-
background: transparent;
|
328 |
-
}
|
329 |
-
.chosen-container-active.chosen-with-drop .chosen-single div b {
|
330 |
-
background-position: -18px 2px;
|
331 |
-
}
|
332 |
-
.chosen-container-active .chosen-choices {
|
333 |
-
border: 1px solid #5897fb;
|
334 |
-
box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);
|
335 |
-
}
|
336 |
-
.chosen-container-active .chosen-choices li.search-field input[type="text"] {
|
337 |
-
color: #111 !important;
|
338 |
-
}
|
339 |
-
|
340 |
-
/* @end */
|
341 |
-
/* @group Disabled Support */
|
342 |
-
.chosen-disabled {
|
343 |
-
opacity: 0.5 !important;
|
344 |
-
cursor: default;
|
345 |
-
}
|
346 |
-
.chosen-disabled .chosen-single {
|
347 |
-
cursor: default;
|
348 |
-
}
|
349 |
-
.chosen-disabled .chosen-choices .search-choice .search-choice-close {
|
350 |
-
cursor: default;
|
351 |
-
}
|
352 |
-
|
353 |
-
/* @end */
|
354 |
-
/* @group Right to Left */
|
355 |
-
.chosen-rtl {
|
356 |
-
text-align: right;
|
357 |
-
}
|
358 |
-
.chosen-rtl .chosen-single {
|
359 |
-
overflow: visible;
|
360 |
-
padding: 0 8px 0 0;
|
361 |
-
}
|
362 |
-
.chosen-rtl .chosen-single span {
|
363 |
-
margin-right: 0;
|
364 |
-
margin-left: 26px;
|
365 |
-
direction: rtl;
|
366 |
-
}
|
367 |
-
.chosen-rtl .chosen-single-with-deselect span {
|
368 |
-
margin-left: 38px;
|
369 |
-
}
|
370 |
-
.chosen-rtl .chosen-single div {
|
371 |
-
right: auto;
|
372 |
-
left: 3px;
|
373 |
-
}
|
374 |
-
.chosen-rtl .chosen-single abbr {
|
375 |
-
right: auto;
|
376 |
-
left: 26px;
|
377 |
-
}
|
378 |
-
.chosen-rtl .chosen-choices li {
|
379 |
-
float: right;
|
380 |
-
}
|
381 |
-
.chosen-rtl .chosen-choices li.search-field input[type="text"] {
|
382 |
-
direction: rtl;
|
383 |
-
}
|
384 |
-
.chosen-rtl .chosen-choices li.search-choice {
|
385 |
-
margin: 3px 5px 3px 0;
|
386 |
-
padding: 3px 5px 3px 19px;
|
387 |
-
}
|
388 |
-
.chosen-rtl .chosen-choices li.search-choice .search-choice-close {
|
389 |
-
right: auto;
|
390 |
-
left: 4px;
|
391 |
-
}
|
392 |
-
.chosen-rtl.chosen-container-single-nosearch .chosen-search,
|
393 |
-
.chosen-rtl .chosen-drop {
|
394 |
-
left: 9999px;
|
395 |
-
}
|
396 |
-
.chosen-rtl.chosen-container-single .chosen-results {
|
397 |
-
margin: 0 0 4px 4px;
|
398 |
-
padding: 0 4px 0 0;
|
399 |
-
}
|
400 |
-
.chosen-rtl .chosen-results li.group-option {
|
401 |
-
padding-right: 15px;
|
402 |
-
padding-left: 0;
|
403 |
-
}
|
404 |
-
.chosen-rtl.chosen-container-active.chosen-with-drop .chosen-single div {
|
405 |
-
border-right: none;
|
406 |
-
}
|
407 |
-
.chosen-rtl .chosen-search input[type="text"] {
|
408 |
-
padding: 4px 5px 4px 20px;
|
409 |
-
background: white url('../../images/chosen/chosen-sprite.png') no-repeat -30px -20px;
|
410 |
-
background: url('../../images/chosen/chosen-sprite.png') no-repeat -30px -20px;
|
411 |
-
direction: rtl;
|
412 |
-
}
|
413 |
-
.chosen-rtl.chosen-container-single .chosen-single div b {
|
414 |
-
background-position: 6px 2px;
|
415 |
-
}
|
416 |
-
.chosen-rtl.chosen-container-single.chosen-with-drop .chosen-single div b {
|
417 |
-
background-position: -12px 2px;
|
418 |
-
}
|
419 |
-
|
420 |
-
/* @end */
|
421 |
-
/* @group Retina compatibility */
|
422 |
-
@media only screen and (-webkit-min-device-pixel-ratio: 2), only screen and (min-resolution: 144dpi) {
|
423 |
-
.chosen-rtl .chosen-search input[type="text"],
|
424 |
-
.chosen-container-single .chosen-single abbr,
|
425 |
-
.chosen-container-single .chosen-single div b,
|
426 |
-
.chosen-container-single .chosen-search input[type="text"],
|
427 |
-
.chosen-container-multi .chosen-choices .search-choice .search-choice-close,
|
428 |
-
.chosen-container .chosen-results-scroll-down span,
|
429 |
-
.chosen-container .chosen-results-scroll-up span {
|
430 |
-
background-image: url('../../images/chosen/chosen-sprite@2x.png') !important;
|
431 |
-
background-size: 52px 37px !important;
|
432 |
-
background-repeat: no-repeat !important;
|
433 |
-
}
|
434 |
-
}
|
435 |
-
/* @end */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/css/metaboxes.css
CHANGED
@@ -1,664 +1,634 @@
|
|
1 |
/* self-clear floats */
|
2 |
-
.clearfix:after {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
/* ie.css */
|
4 |
* html .clearfix { /* IE6 */
|
5 |
-
height:1%;
|
6 |
}
|
7 |
-
|
8 |
-
|
|
|
9 |
}
|
10 |
|
11 |
-
.clearboth {
|
|
|
|
|
12 |
|
13 |
/* === TAB STYLE */
|
14 |
-
.metaboxes-tab {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
.metaboxes-tab
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
-
|
26 |
-
|
27 |
-
.metaboxes-tab
|
28 |
-
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
.metaboxes-tab .the-metabox { margin:20px 0; margin-left:184px;}
|
33 |
-
.metaboxes-tab .the-metabox.no-label { margin:20px 0; margin-left:0;}
|
34 |
-
.metaboxes-tab hr { height: 0px; border-top: 1px solid #dadada; width: auto; margin-left: -10px; margin-right: -10px; }
|
35 |
-
.metaboxes-tab .the-metabox p { margin:0;}
|
36 |
-
.metaboxes-tab .the-metabox:last-child { border-bottom: 0px; }
|
37 |
-
.metaboxes-tab .the-metabox.checkbox { background:none; }
|
38 |
-
.metaboxes-tab .the-metabox.slider .ui-slider { margin-right:15px; }
|
39 |
-
|
40 |
-
.metaboxes-tab span.desc { font-size: 11px; color: #AFAFAF; }
|
41 |
-
.metaboxes-tab span.desc.inline { display: inline-block; vertical-align: top; line-height: 23px; }
|
42 |
-
.metaboxes-tab .onoff span.desc, .metaboxes-tab .onoff label { padding:6px 0; }
|
43 |
-
.metaboxes-tab .select span.desc, .metaboxes-tab .select label { padding:2px 0; }
|
44 |
-
.metaboxes-tab .slider span.desc, .metaboxes-tab .slider label { padding:15px 0; }
|
45 |
-
.metaboxes-tab .slider span.desc { display:block; padding:20px 0; }
|
46 |
|
47 |
.metaboxes-tab ul.metaboxes-tabs li {
|
48 |
-
|
49 |
-
|
50 |
-
|
51 |
-
|
52 |
-
|
53 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
54 |
}
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
width:
|
60 |
-
margin-left: 10px;
|
61 |
-
|
62 |
}
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
}
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
right: -1px;
|
71 |
-
width: 20px;
|
72 |
-
height: 20px;
|
73 |
}
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
|
|
|
|
|
|
|
|
|
|
80 |
}
|
81 |
-
|
82 |
-
.
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
-
|
87 |
-
|
|
|
88 |
}
|
89 |
|
90 |
-
.
|
91 |
-
|
92 |
-
padding: 1px;
|
93 |
}
|
94 |
|
95 |
-
.
|
96 |
-
|
97 |
}
|
98 |
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
}
|
103 |
|
104 |
-
.
|
105 |
-
|
106 |
-
width: inherit !important;
|
107 |
}
|
108 |
|
109 |
/* wp editor */
|
110 |
.the-metabox.textarea-editor .mceIframeContainer {
|
111 |
-
background
|
112 |
}
|
|
|
113 |
.the-metabox.textarea-editor label {
|
114 |
-
margin-top:24px;
|
115 |
}
|
116 |
|
117 |
/* categories */
|
118 |
-
.categories-panel {
|
119 |
-
|
120 |
-
|
121 |
-
|
122 |
-
|
123 |
-
.categories-panel input.newcategory { width:100%; margin-bottom:3px; }
|
124 |
|
125 |
-
|
126 |
-
|
127 |
-
border
|
128 |
-
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
background-color: #F5F5F5;
|
133 |
-
background-image: -moz-linear-gradient(center top , #F9F9F9, #F5F5F5);
|
134 |
-
border-color: #DFDFDF;
|
135 |
-
border-radius: 3px 3px 3px 3px;
|
136 |
-
box-shadow: 0 1px 0 #FFFFFF inset;
|
137 |
-
min-width: 255px;
|
138 |
-
position: relative;
|
139 |
-
}
|
140 |
-
.contactform_item .handlediv { position:relative; top: -4px; }
|
141 |
-
.contactform_item h3 { min-height: 21px }
|
142 |
-
.contactform_item .inside { padding: 10px !important; }
|
143 |
-
.contactform_item .deps { display: none; }
|
144 |
-
.contactform_item .addoptions p.option { margin: 5px 0 5px 200px }
|
145 |
-
.contactform_item .addoptions p label { width: 80px !important; }
|
146 |
-
.contactform_item .add-field-option { margin-bottom: 10px !important; }
|
147 |
-
.remove_item { float: right; }
|
148 |
-
.metabox-sortable-placeholder { border: 1px dotted #dedede; margin: 10px 0 }
|
149 |
|
150 |
-
|
151 |
-
|
152 |
-
|
153 |
-
border-width: 1px;
|
154 |
-
line-height: 1;
|
155 |
-
margin-bottom: 20px;
|
156 |
-
padding: 0;
|
157 |
-
background-color: #F5F5F5;
|
158 |
-
background-image: -moz-linear-gradient(center top , #F9F9F9, #F5F5F5);
|
159 |
-
border-color: #DFDFDF;
|
160 |
-
border-radius: 3px 3px 3px 3px;
|
161 |
-
box-shadow: 0 1px 0 #FFFFFF inset;
|
162 |
-
min-width: 255px;
|
163 |
-
position: relative;
|
164 |
}
|
165 |
-
.featurestab_item .handlediv { position:relative; top: -4px; }
|
166 |
-
.featurestab_item h3 { min-height: 21px }
|
167 |
-
.featurestab_item .inside { padding: 10px !important; }
|
168 |
-
.featurestab_item .deps { display: none; }
|
169 |
-
.featurestab_item .addoptions p.option { margin: 5px 0 5px 200px }
|
170 |
-
.featurestab_item .addoptions p label { width: 80px !important; }
|
171 |
-
.featurestab_item .add-field-option { margin-bottom: 10px !important; }
|
172 |
|
173 |
-
|
174 |
-
|
|
|
|
|
|
|
|
|
175 |
|
176 |
-
|
177 |
-
|
|
|
|
|
178 |
|
179 |
-
|
180 |
-
|
181 |
-
|
182 |
}
|
183 |
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
|
190 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
191 |
}
|
192 |
|
193 |
-
.
|
194 |
-
|
|
|
195 |
}
|
196 |
|
197 |
-
.
|
198 |
-
|
|
|
199 |
}
|
200 |
|
201 |
-
.
|
202 |
-
|
203 |
-
max-width: 1200px;
|
204 |
-
border-radius: 5px;
|
205 |
-
-webkit-box-sizing: border-box;
|
206 |
-
box-sizing: border-box;
|
207 |
}
|
208 |
|
209 |
-
.
|
|
|
|
|
210 |
|
|
|
|
|
|
|
211 |
|
|
|
|
|
|
|
212 |
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
.the-metabox .icon_type{ width:30%; float: left; margin-right: 40px }
|
217 |
-
.the-metabox .icon_type select, .the-metabox div.option .select_wrapper select{ width: 100% }
|
218 |
|
219 |
-
|
220 |
-
|
|
|
221 |
|
222 |
-
.
|
223 |
-
|
224 |
-
|
225 |
-
border-radius: 4px 4px 4px 4px;
|
226 |
-
border-style: solid;
|
227 |
-
border-width: 1px;
|
228 |
-
color: #555555;
|
229 |
-
display: block;
|
230 |
-
float: left;
|
231 |
-
font-family: sans-serif;
|
232 |
-
font-size: 12px;
|
233 |
-
min-height: 26px;
|
234 |
-
margin-bottom: 9px !important;
|
235 |
-
margin-left: 0;
|
236 |
-
margin-right: 5px;
|
237 |
-
margin-top: 0;
|
238 |
-
width: 400px;
|
239 |
-
position: relative;
|
240 |
}
|
241 |
|
242 |
-
/*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
243 |
|
244 |
-
.
|
245 |
-
|
246 |
-
|
247 |
}
|
248 |
-
|
249 |
-
|
|
|
250 |
}
|
251 |
-
|
252 |
-
|
253 |
-
|
254 |
}
|
255 |
-
|
256 |
-
|
257 |
-
|
258 |
}
|
259 |
-
|
260 |
-
|
261 |
-
|
262 |
}
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
-
padding-top: 2px;
|
267 |
}
|
268 |
-
|
269 |
-
|
|
|
270 |
}
|
271 |
-
|
272 |
-
|
|
|
|
|
|
|
|
|
|
|
273 |
}
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
padding-left: 6px;
|
278 |
-
position: absolute;
|
279 |
-
z-index: 2;
|
280 |
-
overflow: hidden;
|
281 |
}
|
282 |
|
283 |
-
.the-metabox .
|
284 |
-
|
285 |
-
|
286 |
-
margin:
|
287 |
-
opacity: 0;
|
288 |
-
padding: 0;
|
289 |
-
position: relative;
|
290 |
-
width: inherit;
|
291 |
-
z-index: 4;
|
292 |
-
background-color: #FAFAFA;
|
293 |
}
|
294 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
295 |
|
296 |
/* typography */
|
297 |
-
.the-metabox.typography .select_wrapper.font-family {
|
298 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
299 |
.the-metabox.typography .spinner_container input.number {
|
300 |
-
width:50px !important;
|
301 |
-
-webkit-border-top-right-radius: 0px;
|
302 |
-
-webkit-border-bottom-right-radius: 0px;
|
303 |
-
-moz-border-radius-topright: 0px;
|
304 |
-
-moz-border-radius-bottomright: 0px;
|
305 |
-
border-top-right-radius: 0px;
|
306 |
-
border-bottom-right-radius: 0px;
|
307 |
}
|
308 |
|
309 |
/* number */
|
310 |
-
.the-metabox.number input.number {
|
|
|
|
|
|
|
311 |
/* number */
|
312 |
.rm_number .number {
|
313 |
-
width: 70px;
|
314 |
-
text-align: right;
|
315 |
-
-webkit-border-top-right-radius: 0px;
|
316 |
-
-webkit-border-bottom-right-radius: 0px;
|
317 |
-
-moz-border-radius-topright: 0px;
|
318 |
-
-moz-border-radius-bottomright: 0px;
|
319 |
-
border-top-right-radius: 0px;
|
320 |
-
border-bottom-right-radius: 0px;
|
321 |
}
|
322 |
|
323 |
-
.spinner-wrapper {
|
324 |
-
|
325 |
-
|
326 |
-
|
327 |
-
|
328 |
|
|
|
|
|
|
|
329 |
|
330 |
-
.spinner-wrapper .spinner-button
|
331 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
332 |
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
|
334 |
-
.
|
335 |
-
|
336 |
-
|
337 |
-
|
338 |
-
|
|
|
|
|
339 |
|
340 |
-
.
|
341 |
-
|
|
|
342 |
|
343 |
-
|
344 |
-
|
345 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
346 |
|
347 |
/* images */
|
348 |
-
.the-metabox.images, .the-metabox.images label {
|
349 |
-
|
350 |
-
|
351 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
352 |
|
353 |
/* wp editor */
|
354 |
-
.wp_themeSkin iframe {
|
|
|
|
|
355 |
|
356 |
/* custom tabs */
|
357 |
.customtab_item {
|
358 |
-
border-style: solid;
|
359 |
-
border-width: 1px;
|
360 |
-
line-height: 1;
|
361 |
-
margin-bottom: 20px;
|
362 |
-
padding: 0;
|
363 |
-
background-color: #
|
364 |
-
background-image: -moz-linear-gradient(center top
|
365 |
-
border-color: #
|
366 |
-
border-radius: 3px 3px 3px 3px;
|
367 |
-
box-shadow: 0 1px 0 #
|
368 |
-
min-width: 255px;
|
369 |
-
position: relative;
|
370 |
-
}
|
371 |
-
.customtab_item .handlediv { position:relative; top: -4px; }
|
372 |
-
.customtab_item h3 { min-height: 21px }
|
373 |
-
.customtab_item .inside { padding: 10px !important; }
|
374 |
-
.customtab_item .deps { display: none; }
|
375 |
-
.customtab_item .addoptions p.option { margin: 5px 0 5px 200px }
|
376 |
-
.customtab_item .addoptions p label { width: 80px !important; }
|
377 |
-
.customtab_item .add-field-option { margin-bottom: 10px !important; }
|
378 |
-
.customtab_item .remove_item { float: right; }
|
379 |
-
.metabox-sortable-placeholder { border: 1px dotted #dedede; margin: 10px 0 }
|
380 |
|
381 |
-
.
|
382 |
-
|
|
|
383 |
}
|
384 |
|
385 |
-
|
386 |
-
|
387 |
}
|
388 |
|
389 |
-
.
|
390 |
-
|
391 |
}
|
392 |
|
393 |
-
|
394 |
-
|
395 |
-
width: auto;
|
396 |
-
float: none;
|
397 |
-
line-height: auto;
|
398 |
-
margin-left: 0;
|
399 |
}
|
400 |
|
|
|
|
|
|
|
401 |
|
402 |
-
.
|
403 |
-
width:
|
404 |
-
margin-right: 10px;
|
405 |
-
margin-top: 3px;
|
406 |
}
|
407 |
-
|
408 |
-
|
|
|
409 |
}
|
410 |
|
411 |
-
.
|
412 |
-
|
413 |
-
float: none;
|
414 |
}
|
415 |
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
margin-bottom: 5px;
|
420 |
}
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
top: -25px;
|
425 |
-
width: 35px;
|
426 |
-
height: 43px;
|
427 |
-
text-align: center;
|
428 |
-
width: 100%;
|
429 |
-
display: block;
|
430 |
}
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
top: -30px;
|
435 |
}
|
436 |
-
|
437 |
-
.
|
438 |
-
|
439 |
-
border: 0px !important;
|
440 |
-
top: -.35em !important;
|
441 |
-
width: 18px !important;
|
442 |
-
height: 19px !important;
|
443 |
}
|
444 |
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
height:
|
|
|
450 |
}
|
451 |
|
452 |
-
.
|
453 |
-
|
454 |
-
|
|
|
455 |
}
|
456 |
|
457 |
-
|
458 |
-
|
459 |
-
background: url(../images/slider/orange.gif) repeat-x left center !important;
|
460 |
-
left: 2px !important;
|
461 |
-
-webkit-border-radius: 15px;
|
462 |
-
-moz-border-radius: 15px;
|
463 |
-
-khtml-border-radius: 15px;
|
464 |
-
border-radius: 15px;
|
465 |
}
|
466 |
|
|
|
|
|
|
|
|
|
467 |
|
468 |
/*sidebars*/
|
469 |
-
|
470 |
-
|
471 |
-
margin-left: 0px;
|
472 |
}
|
473 |
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
margin: 0px;
|
478 |
-
}
|
479 |
-
#_active_page_options-container label{
|
480 |
-
margin-right: 10px;
|
481 |
-
margin-top: 3px;
|
482 |
-
}
|
483 |
-
#_active_page_options-container {
|
484 |
-
float: right;
|
485 |
-
margin-right: 20px;
|
486 |
-
margin-top: 5px;
|
487 |
}
|
488 |
|
489 |
-
|
|
|
|
|
|
|
490 |
|
491 |
-
#
|
492 |
-
|
493 |
-
|
494 |
-
|
495 |
-
|
496 |
-
/*datepicker*/
|
497 |
-
/*! jQuery UI - v1.11.2 - 2015-01-21
|
498 |
-
* http://jqueryui.com
|
499 |
-
* Includes: core.css, datepicker.css, theme.css
|
500 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Verdana%2CArial%2Csans-serif&fwDefault=normal&fsDefault=1.1em&cornerRadius=0px&bgColorHeader=%23dddddd&bgTextureHeader=flat&bgImgOpacityHeader=60&borderColorHeader=%23aaaaaa&fcHeader=%23222222&iconColorHeader=%23222222&bgColorContent=%23ffffff&bgTextureContent=flat&bgImgOpacityContent=75&borderColorContent=%23aaaaaa&fcContent=%23222222&iconColorContent=%23222222&bgColorDefault=%23e9e9e9&bgTextureDefault=flat&bgImgOpacityDefault=75&borderColorDefault=%23d3d3d3&fcDefault=%23555555&iconColorDefault=%23888888&bgColorHover=%23dadada&bgTextureHover=flat&bgImgOpacityHover=75&borderColorHover=%23999999&fcHover=%23212121&iconColorHover=%23454545&bgColorActive=%23ffffff&bgTextureActive=glass&bgImgOpacityActive=65&borderColorActive=%23aaaaaa&fcActive=%23212121&iconColorActive=%23454545&bgColorHighlight=%23fbf9ee&bgTextureHighlight=glass&bgImgOpacityHighlight=55&borderColorHighlight=%2389b17e&fcHighlight=%23363636&iconColorHighlight=%232e83ff&bgColorError=%23fef1ec&bgTextureError=glass&bgImgOpacityError=95&borderColorError=%23cd0a0a&fcError=%23cd0a0a&iconColorError=%23cd0a0a&bgColorOverlay=%23aaaaaa&bgTextureOverlay=flat&bgImgOpacityOverlay=0&opacityOverlay=30&bgColorShadow=%23aaaaaa&bgTextureShadow=flat&bgImgOpacityShadow=0&opacityShadow=30&thicknessShadow=8px&offsetTopShadow=-8px&offsetLeftShadow=-8px&cornerRadiusShadow=8px
|
501 |
-
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
|
502 |
-
|
503 |
-
/* Layout helpers
|
504 |
-
----------------------------------*/
|
505 |
-
.ui-helper-hidden {
|
506 |
-
display: none;
|
507 |
-
}
|
508 |
-
.ui-helper-hidden-accessible {
|
509 |
-
border: 0;
|
510 |
-
clip: rect(0 0 0 0);
|
511 |
-
height: 1px;
|
512 |
-
margin: -1px;
|
513 |
-
overflow: hidden;
|
514 |
-
padding: 0;
|
515 |
-
position: absolute;
|
516 |
-
width: 1px;
|
517 |
-
}
|
518 |
-
.ui-helper-reset {
|
519 |
-
margin: 0;
|
520 |
-
padding: 0;
|
521 |
-
border: 0;
|
522 |
-
outline: 0;
|
523 |
-
line-height: 1.3;
|
524 |
-
text-decoration: none;
|
525 |
-
font-size: 100%;
|
526 |
-
list-style: none;
|
527 |
-
}
|
528 |
-
.ui-helper-clearfix:before,
|
529 |
-
.ui-helper-clearfix:after {
|
530 |
-
content: "";
|
531 |
-
display: table;
|
532 |
-
border-collapse: collapse;
|
533 |
-
}
|
534 |
-
.ui-helper-clearfix:after {
|
535 |
-
clear: both;
|
536 |
-
}
|
537 |
-
.ui-helper-clearfix {
|
538 |
-
min-height: 0; /* support: IE7 */
|
539 |
-
}
|
540 |
-
.ui-helper-zfix {
|
541 |
-
width: 100%;
|
542 |
-
height: 100%;
|
543 |
-
top: 0;
|
544 |
-
left: 0;
|
545 |
-
position: absolute;
|
546 |
-
opacity: 0;
|
547 |
-
filter:Alpha(Opacity=0); /* support: IE8 */
|
548 |
-
}
|
549 |
-
|
550 |
-
.ui-front {
|
551 |
-
z-index: 100;
|
552 |
-
}
|
553 |
-
|
554 |
-
|
555 |
-
/* Interaction Cues
|
556 |
-
----------------------------------*/
|
557 |
-
.ui-state-disabled {
|
558 |
-
cursor: default !important;
|
559 |
-
}
|
560 |
-
|
561 |
-
|
562 |
-
/* Icons
|
563 |
-
----------------------------------*/
|
564 |
-
|
565 |
-
/* states and images */
|
566 |
-
.ui-icon {
|
567 |
-
display: block;
|
568 |
-
text-indent: -99999px;
|
569 |
-
overflow: hidden;
|
570 |
-
background-repeat: no-repeat;
|
571 |
-
}
|
572 |
-
|
573 |
-
|
574 |
-
/* DATE PICKER
|
575 |
-
----------------------------------*/
|
576 |
-
|
577 |
-
.ui-widget-overlay{position:fixed;top:0;left:0;width:100%;height:100%}
|
578 |
-
.ui-datepicker{width:17em;padding:.2em .2em 0;display:none;z-index:100!important;}
|
579 |
-
.ui-datepicker .ui-datepicker-header{position:relative;padding:.2em 0}
|
580 |
-
.ui-datepicker .ui-datepicker-prev,.ui-datepicker .ui-datepicker-next{position:absolute;top:2px;width:1.8em;height:1.8em}
|
581 |
-
.ui-datepicker .ui-datepicker-prev-hover,.ui-datepicker .ui-datepicker-next-hover{top:1px}
|
582 |
-
.ui-datepicker .ui-datepicker-prev{left:2px}
|
583 |
-
.ui-datepicker .ui-datepicker-next{right:2px}
|
584 |
-
.ui-datepicker .ui-datepicker-prev-hover{left:1px}
|
585 |
-
.ui-datepicker .ui-datepicker-next-hover{right:1px}
|
586 |
-
.ui-datepicker .ui-datepicker-prev span,.ui-datepicker .ui-datepicker-next span{display:block;position:absolute;left:50%;margin-left:-8px;top:50%;margin-top:-8px}
|
587 |
-
.ui-datepicker .ui-datepicker-title{margin:0 2.3em;line-height:1.8em;text-align:center}
|
588 |
-
.ui-datepicker .ui-datepicker-title select{font-size:1em;margin:1px 0}
|
589 |
-
.ui-datepicker select.ui-datepicker-month,.ui-datepicker select.ui-datepicker-year{width:45%}
|
590 |
-
.ui-datepicker table{width:100%;font-size:.9em;border-collapse:collapse;margin:0 0 .4em}
|
591 |
-
.ui-datepicker th{padding:.7em .3em;text-align:center;font-weight:700;border:0}
|
592 |
-
.ui-datepicker td{border:0;padding:1px}
|
593 |
-
.ui-datepicker td span,.ui-datepicker td a{display:block;padding:.2em;text-align:right;text-decoration:none}
|
594 |
-
.ui-datepicker .ui-datepicker-buttonpane{background-image:none;margin:.7em 0 0;padding:0 .2em;border-left:0;border-right:0;border-bottom:0}
|
595 |
-
.ui-datepicker .ui-datepicker-buttonpane button{float:right;margin:.5em .2em .4em;cursor:pointer;padding:.2em .6em .3em;width:auto;overflow:visible}
|
596 |
-
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current{float:left}
|
597 |
-
.ui-datepicker.ui-datepicker-multi{width:auto}
|
598 |
-
.ui-datepicker-multi .ui-datepicker-group{float:left}
|
599 |
-
.ui-datepicker-multi .ui-datepicker-group table{width:95%;margin:0 auto .4em}
|
600 |
-
.ui-datepicker-multi-2 .ui-datepicker-group{width:50%}
|
601 |
-
.ui-datepicker-multi-3 .ui-datepicker-group{width:33.3%}
|
602 |
-
.ui-datepicker-multi-4 .ui-datepicker-group{width:25%}
|
603 |
-
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header{border-left-width:0}
|
604 |
-
.ui-datepicker-multi .ui-datepicker-buttonpane{clear:left}
|
605 |
-
.ui-datepicker-row-break{clear:both;width:100%;font-size:0}
|
606 |
-
.ui-datepicker-rtl{direction:rtl}
|
607 |
-
.ui-datepicker-rtl .ui-datepicker-prev{right:2px;left:auto}
|
608 |
-
.ui-datepicker-rtl .ui-datepicker-next{left:2px;right:auto}
|
609 |
-
.ui-datepicker-rtl .ui-datepicker-prev:hover{right:1px;left:auto}
|
610 |
-
.ui-datepicker-rtl .ui-datepicker-next:hover{left:1px;right:auto}
|
611 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane{clear:right}
|
612 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button{float:left}
|
613 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current,.ui-datepicker-rtl .ui-datepicker-group{float:right}
|
614 |
-
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header,.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header{border-right-width:0;border-left-width:1px}
|
615 |
-
.ui-widget{font-family:Verdana,Arial,sans-serif;font-size:1.1em}
|
616 |
-
.ui-widget .ui-widget{font-size:1em}
|
617 |
-
.ui-widget input,.ui-widget select,.ui-widget textarea,.ui-widget button{font-family:Verdana,Arial,sans-serif;font-size:1em}
|
618 |
-
.ui-widget-content{border:1px solid #aaa;background:#fff 50% 50% repeat-x;color:#222}
|
619 |
-
.ui-widget-content a{color:#222}
|
620 |
-
.ui-widget-header{border:1px solid #aaa;background:#ddd 50% 50% repeat-x;color:#222;font-weight:700}
|
621 |
-
.ui-widget-header a{color:#222}
|
622 |
-
.ui-state-default,.ui-widget-content .ui-state-default,.ui-widget-header .ui-state-default{border:0 solid #d3d3d3;background:#e9e9e9 50% 50% repeat-x;font-weight:400;color:#555}
|
623 |
-
.ui-state-default a,.ui-state-default a:link,.ui-state-default a:visited{color:#555;text-decoration:none}
|
624 |
-
.ui-state-hover,.ui-widget-content .ui-state-hover,.ui-widget-header .ui-state-hover,.ui-state-focus,.ui-widget-content .ui-state-focus,.ui-widget-header .ui-state-focus{border:0 solid #999;background:#dadada 50% 50% repeat-x;font-weight:400;color:#212121}
|
625 |
-
.ui-state-hover a,.ui-state-hover a:hover,.ui-state-hover a:link,.ui-state-hover a:visited,.ui-state-focus a,.ui-state-focus a:hover,.ui-state-focus a:link,.ui-state-focus a:visited{color:#212121;text-decoration:none}
|
626 |
-
.ui-state-active,.ui-widget-content .ui-state-active,.ui-widget-header .ui-state-active{border:0 solid #aaa;background:#fff 50% 50% repeat-x;font-weight:400;color:#212121}
|
627 |
-
.ui-state-active a,.ui-state-active a:link,.ui-state-active a:visited{color:#212121;text-decoration:none}
|
628 |
-
.ui-state-highlight,.ui-widget-content .ui-state-highlight,.ui-widget-header .ui-state-highlight{border:0 solid #89b17e;background:#fbf9ee 50% 50% repeat-x;color:#363636}
|
629 |
-
.ui-state-highlight a,.ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a{color:#363636}
|
630 |
-
.ui-state-error,.ui-widget-content .ui-state-error,.ui-widget-header .ui-state-error{border:0 solid #cd0a0a;background:#fef1ec 50% 50% repeat-x;color:#cd0a0a}
|
631 |
-
.ui-state-error a,.ui-widget-content .ui-state-error a,.ui-widget-header .ui-state-error a{color:#cd0a0a}
|
632 |
-
.ui-state-error-text,.ui-widget-content .ui-state-error-text,.ui-widget-header .ui-state-error-text{color:#cd0a0a}
|
633 |
-
.ui-priority-primary,.ui-widget-content .ui-priority-primary,.ui-widget-header .ui-priority-primary{font-weight:700}
|
634 |
-
.ui-priority-secondary,.ui-widget-content .ui-priority-secondary,.ui-widget-header .ui-priority-secondary{opacity:.7;filter:Alpha(Opacity=70);font-weight:400}
|
635 |
-
.ui-state-disabled,.ui-widget-content .ui-state-disabled,.ui-widget-header .ui-state-disabled{opacity:.35;filter:Alpha(Opacity=35);background-image:none}
|
636 |
-
.ui-state-disabled .ui-icon{filter:Alpha(Opacity=35)}
|
637 |
-
.ui-icon{width:16px;height:16px}
|
638 |
-
.ui-icon,.ui-widget-content .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}
|
639 |
-
.ui-widget-header .ui-icon{background-image:url(../images/ui-icons_222222_256x240.png)}
|
640 |
-
.ui-state-default .ui-icon{background-image:url(../images/ui-icons_888888_256x240.png)}
|
641 |
-
.ui-state-hover .ui-icon,.ui-state-focus .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}
|
642 |
-
.ui-state-active .ui-icon{background-image:url(../images/ui-icons_454545_256x240.png)}
|
643 |
-
.ui-state-highlight .ui-icon{background-image:url(../images/ui-icons_2e83ff_256x240.png)}
|
644 |
-
.ui-icon-circle-triangle-e{background-position:-48px -192px}
|
645 |
-
.ui-icon-circle-triangle-s{background-position:-64px -192px}
|
646 |
-
.ui-icon-circle-triangle-w{background-position:-80px -192px}
|
647 |
-
.ui-icon-circle-triangle-n{background-position:-96px -192px}
|
648 |
-
.ui-corner-all,.ui-corner-top,.ui-corner-left,.ui-corner-tl{border-top-left-radius:0}
|
649 |
-
.ui-corner-all,.ui-corner-top,.ui-corner-right,.ui-corner-tr{border-top-right-radius:0}
|
650 |
-
.ui-corner-all,.ui-corner-bottom,.ui-corner-left,.ui-corner-bl{border-bottom-left-radius:0}
|
651 |
-
.ui-corner-all,.ui-corner-bottom,.ui-corner-right,.ui-corner-br{border-bottom-right-radius:0}
|
652 |
-
.ui-widget-overlay{background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30)}
|
653 |
-
.ui-widget-shadow{margin:-8px 0 0 -8px;padding:8px;background:#aaa 50% 50% repeat-x;opacity:.3;filter:Alpha(Opacity=30);border-radius:8px}
|
654 |
-
|
655 |
-
|
656 |
-
.the-metabox.preview{
|
657 |
-
float: none;
|
658 |
-
}
|
659 |
-
.metaboxes-tab .the-metabox.no-label.preview{
|
660 |
-
margin-left: 184px;
|
661 |
-
}
|
662 |
-
.metaboxes-tab .the-metabox.no-label.preview img{
|
663 |
-
box-shadow: 0 1px 8px rgba(0,0,0,0.2);
|
664 |
}
|
1 |
/* self-clear floats */
|
2 |
+
.clearfix:after {
|
3 |
+
content : ".";
|
4 |
+
display : block;
|
5 |
+
height : 0;
|
6 |
+
clear : both;
|
7 |
+
visibility : hidden;
|
8 |
+
overflow : hidden;
|
9 |
+
}
|
10 |
+
|
11 |
/* ie.css */
|
12 |
* html .clearfix { /* IE6 */
|
13 |
+
height : 1%;
|
14 |
}
|
15 |
+
|
16 |
+
*:first-child + html .clearfix { /* IE7 */
|
17 |
+
min-height : 1%;
|
18 |
}
|
19 |
|
20 |
+
.clearboth {
|
21 |
+
clear : both
|
22 |
+
}
|
23 |
|
24 |
/* === TAB STYLE */
|
25 |
+
.metaboxes-tab {
|
26 |
+
margin : -6px -12px -8px;
|
27 |
+
}
|
28 |
+
|
29 |
+
.metaboxes-tab div.tabs-panel {
|
30 |
+
height : auto;
|
31 |
+
overflow : visible;
|
32 |
+
margin-top : 0px;
|
33 |
+
padding : 0 10px;
|
34 |
+
background : none;
|
35 |
+
border : 0;
|
36 |
+
}
|
37 |
+
|
38 |
+
.metaboxes-tab ul.metaboxes-tabs {
|
39 |
+
background : #f1f1f1;
|
40 |
+
margin : 0;
|
41 |
+
padding : 10px 0 0 5px;
|
42 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
|
44 |
.metaboxes-tab ul.metaboxes-tabs li {
|
45 |
+
float : left;
|
46 |
+
background : #dedede;
|
47 |
+
margin : 0 0 0 5px;
|
48 |
+
}
|
49 |
+
|
50 |
+
.metaboxes-tab ul.metaboxes-tabs li a {
|
51 |
+
color : #555;
|
52 |
+
text-decoration : none;
|
53 |
+
padding : 8px 15px;
|
54 |
+
display : block;
|
55 |
+
box-shadow : none !important;
|
56 |
+
}
|
57 |
+
|
58 |
+
.metaboxes-tab ul.metaboxes-tabs li.tabs {
|
59 |
+
background : #fff;
|
60 |
+
}
|
61 |
+
|
62 |
+
.metaboxes-tab p.field-row {
|
63 |
+
margin : 20px 0;
|
64 |
+
}
|
65 |
+
|
66 |
+
.metaboxes-tab div.sep {
|
67 |
+
height : 1px;
|
68 |
+
background : #dfdfdf;
|
69 |
+
clear : both;
|
70 |
+
margin-left : -10px;
|
71 |
+
margin-right : -10px;
|
72 |
+
}
|
73 |
+
|
74 |
+
.metaboxes-tab label {
|
75 |
+
font-weight : bold;
|
76 |
+
width : 160px;
|
77 |
+
float : left;
|
78 |
+
line-height : 23px;
|
79 |
+
margin-left : -184px;
|
80 |
+
}
|
81 |
+
|
82 |
+
.metaboxes-tab label small {
|
83 |
+
font-weight : normal;
|
84 |
+
line-height : 15px;
|
85 |
+
font-style : italic;
|
86 |
+
color : #999;
|
87 |
+
display : block;
|
88 |
+
}
|
89 |
+
|
90 |
+
.metaboxes-tab .wp-picker-container label {
|
91 |
+
font-weight : inherit;
|
92 |
+
width : auto;
|
93 |
+
float : none;
|
94 |
+
line-height : inherit;
|
95 |
+
margin-left : 0;
|
96 |
+
}
|
97 |
+
|
98 |
+
.metaboxes-tab input[type="checkbox"] {
|
99 |
+
vertical-align : middle
|
100 |
+
}
|
101 |
+
|
102 |
+
.metaboxes-tab input.button-secondary, .metaboxes-tab input.checkbox {
|
103 |
+
width : auto;
|
104 |
+
}
|
105 |
+
|
106 |
+
.metaboxes-tab p.field-row.textarea .description {
|
107 |
+
vertical-align : top;
|
108 |
+
}
|
109 |
+
|
110 |
+
.metaboxes-tab p.field-row.checkbox {
|
111 |
+
background : none;
|
112 |
+
}
|
113 |
+
|
114 |
+
.metaboxes-tab .the-metabox {
|
115 |
+
margin : 20px 0;
|
116 |
+
margin-left : 184px;
|
117 |
+
}
|
118 |
+
|
119 |
+
.metaboxes-tab .the-metabox.no-label {
|
120 |
+
margin : 20px 0;
|
121 |
+
margin-left : 0;
|
122 |
}
|
123 |
|
124 |
+
.metaboxes-tab hr {
|
125 |
+
height : 0px;
|
126 |
+
border-top : 1px solid #dadada;
|
127 |
+
width : auto;
|
128 |
+
margin-left : -10px;
|
129 |
+
margin-right : -10px;
|
130 |
}
|
131 |
+
|
132 |
+
.metaboxes-tab .the-metabox p {
|
133 |
+
margin : 0;
|
134 |
}
|
135 |
+
|
136 |
+
.metaboxes-tab .the-metabox:last-child {
|
137 |
+
border-bottom : 0px;
|
|
|
|
|
|
|
138 |
}
|
139 |
+
|
140 |
+
.metaboxes-tab .the-metabox.checkbox {
|
141 |
+
background : none;
|
142 |
+
}
|
143 |
+
|
144 |
+
.metaboxes-tab span.description.inline {
|
145 |
+
display : inline-block;
|
146 |
+
line-height : 23px;
|
147 |
+
width : auto;
|
148 |
+
vertical-align : middle;
|
149 |
+
margin : 0;
|
150 |
}
|
151 |
+
|
152 |
+
.metaboxes-tab .slider label {
|
153 |
+
padding : 15px 0;
|
154 |
+
}
|
155 |
+
|
156 |
+
/* sortable table posts */
|
157 |
+
|
158 |
+
#the-list.ui-sortable tr:hover {
|
159 |
+
cursor : move;
|
160 |
}
|
161 |
+
|
162 |
+
.the-metabox.preview {
|
163 |
+
float : none;
|
164 |
}
|
165 |
|
166 |
+
.metaboxes-tab .the-metabox.no-label.preview {
|
167 |
+
margin-left : 184px;
|
|
|
168 |
}
|
169 |
|
170 |
+
.metaboxes-tab .the-metabox.no-label.preview img {
|
171 |
+
box-shadow : 0 1px 8px rgba(0, 0, 0, 0.2);
|
172 |
}
|
173 |
|
174 |
+
/**************************************
|
175 |
+
FIELDS
|
176 |
+
***************************************/
|
177 |
+
|
178 |
+
.metaboxes-tab select,
|
179 |
+
.metaboxes-tab input[type=text],
|
180 |
+
.metaboxes-tab input[type=number],
|
181 |
+
.metaboxes-tab textarea,
|
182 |
+
.metaboxes-tab .yith-plugin-fw-select,
|
183 |
+
.metaboxes-tab .yith-plugin-fw-slider-container,
|
184 |
+
.metaboxes-tab .yith-plugin-fw-text-input,
|
185 |
+
.metaboxes-tab .yith-plugin-fw-text-array-table,
|
186 |
+
.metaboxes-tab .yith-plugin-fw-textarea {
|
187 |
+
width : 400px;
|
188 |
+
max-width : 100%;
|
189 |
}
|
190 |
|
191 |
+
.metaboxes-tab .yith-plugin-fw-text-array-table input[type=text] {
|
192 |
+
width : 100%;
|
|
|
193 |
}
|
194 |
|
195 |
/* wp editor */
|
196 |
.the-metabox.textarea-editor .mceIframeContainer {
|
197 |
+
background : #fff;
|
198 |
}
|
199 |
+
|
200 |
.the-metabox.textarea-editor label {
|
201 |
+
margin-top : 24px;
|
202 |
}
|
203 |
|
204 |
/* categories */
|
205 |
+
.categories-panel {
|
206 |
+
width : 30%;
|
207 |
+
float : left;
|
208 |
+
margin-right : 4px;
|
209 |
+
}
|
|
|
210 |
|
211 |
+
.categories-panel .box {
|
212 |
+
height : 200px;
|
213 |
+
border : 1px solid #dfdfdf;
|
214 |
+
background : #fff;
|
215 |
+
padding : 6px 10px;
|
216 |
+
overflow : auto;
|
217 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
218 |
|
219 |
+
.categories-panel ul {
|
220 |
+
list-style : none;
|
221 |
+
margin : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
222 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
223 |
|
224 |
+
.categories-panel ul li {
|
225 |
+
line-height : 19px;
|
226 |
+
margin : 0;
|
227 |
+
padding : 0;
|
228 |
+
word-wrap : break-word;
|
229 |
+
}
|
230 |
|
231 |
+
.categories-panel ul li label {
|
232 |
+
font-weight : normal !important;
|
233 |
+
margin-left : 0 !important;
|
234 |
+
}
|
235 |
|
236 |
+
.categories-panel input.newcategory {
|
237 |
+
width : 100%;
|
238 |
+
margin-bottom : 3px;
|
239 |
}
|
240 |
|
241 |
+
/* contact form */
|
242 |
+
.contactform_item {
|
243 |
+
border-style : solid;
|
244 |
+
border-width : 1px;
|
245 |
+
line-height : 1;
|
246 |
+
margin-bottom : 20px;
|
247 |
+
padding : 0;
|
248 |
+
background-color : #f5f5f5;
|
249 |
+
background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
|
250 |
+
border-color : #dfdfdf;
|
251 |
+
border-radius : 3px 3px 3px 3px;
|
252 |
+
box-shadow : 0 1px 0 #fff inset;
|
253 |
+
min-width : 255px;
|
254 |
+
position : relative;
|
255 |
}
|
256 |
|
257 |
+
.contactform_item .handlediv {
|
258 |
+
position : relative;
|
259 |
+
top : -4px;
|
260 |
}
|
261 |
|
262 |
+
.contactform_item h3 {
|
263 |
+
min-height : 21px;
|
264 |
+
margin : 13px;
|
265 |
}
|
266 |
|
267 |
+
.contactform_item .inside {
|
268 |
+
padding : 10px !important;
|
|
|
|
|
|
|
|
|
269 |
}
|
270 |
|
271 |
+
.contactform_item .deps {
|
272 |
+
display : none;
|
273 |
+
}
|
274 |
|
275 |
+
.contactform_item .addoptions p.option {
|
276 |
+
margin : 5px 0 5px 200px
|
277 |
+
}
|
278 |
|
279 |
+
.contactform_item .addoptions p label {
|
280 |
+
width : 80px !important;
|
281 |
+
}
|
282 |
|
283 |
+
.contactform_item .add-field-option {
|
284 |
+
margin-bottom : 10px !important;
|
285 |
+
}
|
|
|
|
|
286 |
|
287 |
+
.remove_item {
|
288 |
+
float : right;
|
289 |
+
}
|
290 |
|
291 |
+
.metabox-sortable-placeholder {
|
292 |
+
border : 1px dotted #dedede;
|
293 |
+
margin : 10px 0
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
294 |
}
|
295 |
|
296 |
+
/* features tab */
|
297 |
+
.featurestab_item {
|
298 |
+
border-style : solid;
|
299 |
+
border-width : 1px;
|
300 |
+
line-height : 1;
|
301 |
+
margin-bottom : 20px;
|
302 |
+
padding : 0;
|
303 |
+
background-color : #f5f5f5;
|
304 |
+
background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
|
305 |
+
border-color : #dfdfdf;
|
306 |
+
border-radius : 3px 3px 3px 3px;
|
307 |
+
box-shadow : 0 1px 0 #fff inset;
|
308 |
+
min-width : 255px;
|
309 |
+
position : relative;
|
310 |
+
}
|
311 |
|
312 |
+
.featurestab_item .handlediv {
|
313 |
+
position : relative;
|
314 |
+
top : -4px;
|
315 |
}
|
316 |
+
|
317 |
+
.featurestab_item h3 {
|
318 |
+
min-height : 21px
|
319 |
}
|
320 |
+
|
321 |
+
.featurestab_item .inside {
|
322 |
+
padding : 10px !important;
|
323 |
}
|
324 |
+
|
325 |
+
.featurestab_item .deps {
|
326 |
+
display : none;
|
327 |
}
|
328 |
+
|
329 |
+
.featurestab_item .addoptions p.option {
|
330 |
+
margin : 5px 0 5px 200px
|
331 |
}
|
332 |
+
|
333 |
+
.featurestab_item .addoptions p label {
|
334 |
+
width : 80px !important;
|
|
|
335 |
}
|
336 |
+
|
337 |
+
.featurestab_item .add-field-option {
|
338 |
+
margin-bottom : 10px !important;
|
339 |
}
|
340 |
+
|
341 |
+
.messages-panel.updated {
|
342 |
+
margin : 10px 0px 10px !important;
|
343 |
+
max-width : 1200px;
|
344 |
+
border-radius : 5px;
|
345 |
+
-webkit-box-sizing : border-box;
|
346 |
+
box-sizing : border-box;
|
347 |
}
|
348 |
+
|
349 |
+
.ui-widget-overlay {
|
350 |
+
background-image : none !important;
|
|
|
|
|
|
|
|
|
351 |
}
|
352 |
|
353 |
+
.the-metabox .icon_type {
|
354 |
+
width : 30%;
|
355 |
+
float : left;
|
356 |
+
margin-right : 40px
|
|
|
|
|
|
|
|
|
|
|
|
|
357 |
}
|
358 |
|
359 |
+
#post-type-settings .category-list label {
|
360 |
+
width : 187px;
|
361 |
+
}
|
362 |
+
|
363 |
+
.remove_cat {
|
364 |
+
float : right;
|
365 |
+
text-align : center;
|
366 |
+
display : block;
|
367 |
+
width : 20px;
|
368 |
+
height : 20px;
|
369 |
+
border-radius : 20px;
|
370 |
+
font-weight : bold;
|
371 |
+
font-size : 10px;
|
372 |
+
background : #efefef;
|
373 |
+
text-decoration : none;
|
374 |
+
}
|
375 |
|
376 |
/* typography */
|
377 |
+
.the-metabox.typography .select_wrapper.font-family {
|
378 |
+
width : 200px;
|
379 |
+
}
|
380 |
+
|
381 |
+
.the-metabox.typography .spinner_container {
|
382 |
+
float : left;
|
383 |
+
margin-right : 10px;
|
384 |
+
}
|
385 |
+
|
386 |
.the-metabox.typography .spinner_container input.number {
|
387 |
+
width : 50px !important;
|
388 |
+
-webkit-border-top-right-radius : 0px;
|
389 |
+
-webkit-border-bottom-right-radius : 0px;
|
390 |
+
-moz-border-radius-topright : 0px;
|
391 |
+
-moz-border-radius-bottomright : 0px;
|
392 |
+
border-top-right-radius : 0px;
|
393 |
+
border-bottom-right-radius : 0px;
|
394 |
}
|
395 |
|
396 |
/* number */
|
397 |
+
.the-metabox.number input.number {
|
398 |
+
width : 50px !important;
|
399 |
+
}
|
400 |
+
|
401 |
/* number */
|
402 |
.rm_number .number {
|
403 |
+
width : 70px;
|
404 |
+
text-align : right;
|
405 |
+
-webkit-border-top-right-radius : 0px;
|
406 |
+
-webkit-border-bottom-right-radius : 0px;
|
407 |
+
-moz-border-radius-topright : 0px;
|
408 |
+
-moz-border-radius-bottomright : 0px;
|
409 |
+
border-top-right-radius : 0px;
|
410 |
+
border-bottom-right-radius : 0px;
|
411 |
}
|
412 |
|
413 |
+
.spinner-wrapper {
|
414 |
+
position : relative;
|
415 |
+
height : 23px;
|
416 |
+
overflow : hidden;
|
417 |
+
}
|
418 |
|
419 |
+
.spinner-wrapper input.number {
|
420 |
+
float : left;
|
421 |
+
}
|
422 |
|
423 |
+
.spinner-wrapper .spinner-button {
|
424 |
+
cursor : pointer;
|
425 |
+
float : left;
|
426 |
+
position : absolute;
|
427 |
+
left : 69px;
|
428 |
+
width : 15px;
|
429 |
+
height : 12px;
|
430 |
+
border : 1px solid #dfdfdf;
|
431 |
+
background : #fff;
|
432 |
+
margin : 0;
|
433 |
+
padding : 0;
|
434 |
+
line-height : 9999px;
|
435 |
+
overflow : hidden;
|
436 |
+
background : url('../images/spinner.png') no-repeat center -11px
|
437 |
+
}
|
438 |
|
439 |
+
.spinner-wrapper .spinner-button.button-plus {
|
440 |
+
top : 0;
|
441 |
+
-webkit-border-top-right-radius : 3px !important;
|
442 |
+
-moz-border-radius-topright : 3px !important;
|
443 |
+
border-top-right-radius : 3px !important;
|
444 |
+
}
|
445 |
|
446 |
+
.spinner-wrapper .spinner-button.button-minus {
|
447 |
+
bottom : 0;
|
448 |
+
background-position : center -30px;
|
449 |
+
-webkit-border-bottom-right-radius : 3px !important;
|
450 |
+
-moz-border-radius-bottomright : 3px !important;
|
451 |
+
border-bottom-right-radius : 3px !important;
|
452 |
+
}
|
453 |
|
454 |
+
.spinner-wrapper .spinner-button.button-plus:active {
|
455 |
+
background-position : center 0px;
|
456 |
+
}
|
457 |
|
458 |
+
.spinner-wrapper .spinner-button.button-minus:active {
|
459 |
+
background-position : center -20px;
|
460 |
+
}
|
461 |
+
|
462 |
+
.rm_typography .spinner_container {
|
463 |
+
float : left;
|
464 |
+
margin-right : 10px;
|
465 |
+
}
|
466 |
+
|
467 |
+
.rm_typography .spinner-wrapper {
|
468 |
+
height : 28px;
|
469 |
+
}
|
470 |
+
|
471 |
+
.rm_typography .spinner-wrapper input.number {
|
472 |
+
height : 28px;
|
473 |
+
}
|
474 |
+
|
475 |
+
.rm_typography .spinner-wrapper .spinner-button.button-plus {
|
476 |
+
height : 15px;
|
477 |
+
background-position : center -10px;
|
478 |
+
}
|
479 |
+
|
480 |
+
.rm_typography .spinner-wrapper .spinner-button.button-minus {
|
481 |
+
height : 14px;
|
482 |
+
}
|
483 |
+
|
484 |
+
.the-metabox .spinner-wrapper .spinner-button {
|
485 |
+
left : 49px;
|
486 |
+
}
|
487 |
+
|
488 |
+
.the-metabox.typography .spinner-wrapper .spinner-button {
|
489 |
+
left : 35px;
|
490 |
+
}
|
491 |
|
492 |
/* images */
|
493 |
+
.the-metabox.images, .the-metabox.images label {
|
494 |
+
margin-left : 0;
|
495 |
+
display : block;
|
496 |
+
}
|
497 |
+
|
498 |
+
.the-metabox.images .slides-wrapper {
|
499 |
+
clear : both;
|
500 |
+
}
|
501 |
+
|
502 |
+
.the-metabox.images .slides-wrapper li {
|
503 |
+
position : relative;
|
504 |
+
}
|
505 |
+
|
506 |
+
.the-metabox.images a.delete {
|
507 |
+
display : block;
|
508 |
+
margin-left : 4px;
|
509 |
+
text-decoration : none;
|
510 |
+
font-weight : bold;
|
511 |
+
color : red;
|
512 |
+
position : absolute;
|
513 |
+
top : 0;
|
514 |
+
right : 0;
|
515 |
+
width : 10px;
|
516 |
+
height : 18px;
|
517 |
+
z-index : 10;
|
518 |
+
cursor : pointer !important;
|
519 |
+
}
|
520 |
|
521 |
/* wp editor */
|
522 |
+
.wp_themeSkin iframe {
|
523 |
+
background : #fff !important;
|
524 |
+
}
|
525 |
|
526 |
/* custom tabs */
|
527 |
.customtab_item {
|
528 |
+
border-style : solid;
|
529 |
+
border-width : 1px;
|
530 |
+
line-height : 1;
|
531 |
+
margin-bottom : 20px;
|
532 |
+
padding : 0;
|
533 |
+
background-color : #f5f5f5;
|
534 |
+
background-image : -moz-linear-gradient(center top, #f9f9f9, #f5f5f5);
|
535 |
+
border-color : #dfdfdf;
|
536 |
+
border-radius : 3px 3px 3px 3px;
|
537 |
+
box-shadow : 0 1px 0 #fff inset;
|
538 |
+
min-width : 255px;
|
539 |
+
position : relative;
|
540 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
541 |
|
542 |
+
.customtab_item .handlediv {
|
543 |
+
position : relative;
|
544 |
+
top : -4px;
|
545 |
}
|
546 |
|
547 |
+
.customtab_item h3 {
|
548 |
+
min-height : 21px
|
549 |
}
|
550 |
|
551 |
+
.customtab_item .inside {
|
552 |
+
padding : 10px !important;
|
553 |
}
|
554 |
|
555 |
+
.customtab_item .deps {
|
556 |
+
display : none;
|
|
|
|
|
|
|
|
|
557 |
}
|
558 |
|
559 |
+
.customtab_item .addoptions p.option {
|
560 |
+
margin : 5px 0 5px 200px
|
561 |
+
}
|
562 |
|
563 |
+
.customtab_item .addoptions p label {
|
564 |
+
width : 80px !important;
|
|
|
|
|
565 |
}
|
566 |
+
|
567 |
+
.customtab_item .add-field-option {
|
568 |
+
margin-bottom : 10px !important;
|
569 |
}
|
570 |
|
571 |
+
.customtab_item .remove_item {
|
572 |
+
float : right;
|
|
|
573 |
}
|
574 |
|
575 |
+
.metabox-sortable-placeholder {
|
576 |
+
border : 1px dotted #dedede;
|
577 |
+
margin : 10px 0
|
|
|
578 |
}
|
579 |
+
|
580 |
+
.the-metabox.customtabs {
|
581 |
+
margin-left : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
582 |
}
|
583 |
+
|
584 |
+
#customtab_item_sample {
|
585 |
+
display : none;
|
|
|
586 |
}
|
587 |
+
|
588 |
+
.the-metabox.customtabs .field-row {
|
589 |
+
margin-bottom : 10px;
|
|
|
|
|
|
|
|
|
590 |
}
|
591 |
|
592 |
+
#yit_custom_tabs label {
|
593 |
+
font-weight : normal;
|
594 |
+
width : auto;
|
595 |
+
float : none;
|
596 |
+
line-height : auto;
|
597 |
+
margin-left : 0;
|
598 |
}
|
599 |
|
600 |
+
.wp-admin p label input[type=radio] {
|
601 |
+
width : 16px;
|
602 |
+
margin-right : 10px;
|
603 |
+
margin-top : 3px;
|
604 |
}
|
605 |
|
606 |
+
.wp-admin .form-field._preset_onsale_icon_field label input[type=radio] {
|
607 |
+
margin-top : 0;
|
|
|
|
|
|
|
|
|
|
|
|
|
608 |
}
|
609 |
|
610 |
+
.the-metabox .spinner {
|
611 |
+
margin-top : 5px;
|
612 |
+
float : none;
|
613 |
+
}
|
614 |
|
615 |
/*sidebars*/
|
616 |
+
#choose-sidebars.choose {
|
617 |
+
margin-left : 0px;
|
|
|
618 |
}
|
619 |
|
620 |
+
#_active_page_options-container label, #_active_page_options-container p {
|
621 |
+
display : inline-block;
|
622 |
+
margin : 0px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
623 |
}
|
624 |
|
625 |
+
#_active_page_options-container label {
|
626 |
+
margin-right : 10px;
|
627 |
+
margin-top : 3px;
|
628 |
+
}
|
629 |
|
630 |
+
#_active_page_options-container {
|
631 |
+
float : right;
|
632 |
+
margin-right : 20px;
|
633 |
+
margin-top : 5px;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
634 |
}
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_flat_10_000000_40x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_222222_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_228ef1_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ef8c08_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffd27a_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/jquery_ui/ui-icons_ffffff_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_flat_0_aaaaaa_40x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_flat_0_eeeeee_40x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_flat_55_c0402a_40x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_flat_55_eeeeee_40x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_glass_100_f8f8f8_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_glass_35_dddddd_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_glass_60_eeeeee_1x400.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_inset-hard_75_999999_1x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-bg_inset-soft_50_c9c9c9_1x100.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-icons_3383bb_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-icons_454545_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-icons_70b2e1_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-icons_999999_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/images/ui-icons_fbc856_256x240.png
DELETED
Binary file
|
plugin-fw/assets/css/overcast/jquery-ui-custom/jquery-ui-1.8.9.custom.css
DELETED
@@ -1,578 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* jQuery UI CSS Framework 1.8.13
|
3 |
-
*
|
4 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
5 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
6 |
-
* http://jquery.org/license
|
7 |
-
*
|
8 |
-
* http://docs.jquery.com/UI/Theming/API
|
9 |
-
*/
|
10 |
-
|
11 |
-
/* Layout helpers
|
12 |
-
----------------------------------*/
|
13 |
-
.ui-helper-hidden { display: none; }
|
14 |
-
.ui-helper-hidden-accessible { position: absolute !important; clip: rect(1px 1px 1px 1px); clip: rect(1px,1px,1px,1px); }
|
15 |
-
.ui-helper-reset { margin: 0; padding: 0; border: 0; outline: 0; line-height: 1.3; text-decoration: none; font-size: 100%; list-style: none; }
|
16 |
-
.ui-helper-clearfix:after { content: "."; display: block; height: 0; clear: both; visibility: hidden; }
|
17 |
-
.ui-helper-clearfix { display: inline-block; }
|
18 |
-
/* required comment for clearfix to work in Opera \*/
|
19 |
-
* html .ui-helper-clearfix { height:1%; }
|
20 |
-
.ui-helper-clearfix { display:block; }
|
21 |
-
/* end clearfix */
|
22 |
-
.ui-helper-zfix { width: 100%; height: 100%; top: 0; left: 0; position: absolute; opacity: 0; filter:Alpha(Opacity=0); }
|
23 |
-
|
24 |
-
|
25 |
-
/* Interaction Cues
|
26 |
-
----------------------------------*/
|
27 |
-
.ui-state-disabled { cursor: default !important; }
|
28 |
-
|
29 |
-
|
30 |
-
/* Icons
|
31 |
-
----------------------------------*/
|
32 |
-
|
33 |
-
/* states and images */
|
34 |
-
.ui-icon { display: block; text-indent: -99999px; overflow: hidden; background-repeat: no-repeat; }
|
35 |
-
|
36 |
-
|
37 |
-
/* Misc visuals
|
38 |
-
----------------------------------*/
|
39 |
-
|
40 |
-
/* Overlays */
|
41 |
-
.ui-widget-overlay { position: absolute; top: 0; left: 0; width: 100%; height: 100%; }
|
42 |
-
|
43 |
-
|
44 |
-
/*
|
45 |
-
* jQuery UI CSS Framework 1.8.13
|
46 |
-
*
|
47 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
48 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
49 |
-
* http://jquery.org/license
|
50 |
-
*
|
51 |
-
* http://docs.jquery.com/UI/Theming/API
|
52 |
-
*
|
53 |
-
* To view and modify this theme, visit http://jqueryui.com/themeroller/?ffDefault=Trebuchet%20MS,%20Tahoma,%20Verdana,%20Arial,%20sans-serif&fwDefault=bold&fsDefault=1.1em&cornerRadius=4px&bgColorHeader=f6a828&bgTextureHeader=12_gloss_wave.png&bgImgOpacityHeader=35&borderColorHeader=e78f08&fcHeader=ffffff&iconColorHeader=ffffff&bgColorContent=eeeeee&bgTextureContent=03_highlight_soft.png&bgImgOpacityContent=100&borderColorContent=dddddd&fcContent=333333&iconColorContent=222222&bgColorDefault=f6f6f6&bgTextureDefault=02_glass.png&bgImgOpacityDefault=100&borderColorDefault=cccccc&fcDefault=1c94c4&iconColorDefault=ef8c08&bgColorHover=fdf5ce&bgTextureHover=02_glass.png&bgImgOpacityHover=100&borderColorHover=fbcb09&fcHover=c77405&iconColorHover=ef8c08&bgColorActive=ffffff&bgTextureActive=02_glass.png&bgImgOpacityActive=65&borderColorActive=fbd850&fcActive=eb8f00&iconColorActive=ef8c08&bgColorHighlight=ffe45c&bgTextureHighlight=03_highlight_soft.png&bgImgOpacityHighlight=75&borderColorHighlight=fed22f&fcHighlight=363636&iconColorHighlight=228ef1&bgColorError=b81900&bgTextureError=08_diagonals_thick.png&bgImgOpacityError=18&borderColorError=cd0a0a&fcError=ffffff&iconColorError=ffd27a&bgColorOverlay=666666&bgTextureOverlay=08_diagonals_thick.png&bgImgOpacityOverlay=20&opacityOverlay=50&bgColorShadow=000000&bgTextureShadow=01_flat.png&bgImgOpacityShadow=10&opacityShadow=20&thicknessShadow=5px&offsetTopShadow=-5px&offsetLeftShadow=-5px&cornerRadiusShadow=5px
|
54 |
-
*/
|
55 |
-
|
56 |
-
|
57 |
-
/* Component containers
|
58 |
-
----------------------------------*/
|
59 |
-
.ui-widget { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1.1em; }
|
60 |
-
.ui-widget .ui-widget { font-size: 1em; }
|
61 |
-
.ui-widget input, .ui-widget select, .ui-widget textarea, .ui-widget button { font-family: Trebuchet MS, Tahoma, Verdana, Arial, sans-serif; font-size: 1em; }
|
62 |
-
.ui-widget-content { border: 1px solid #dddddd; background: #eeeeee url(../images/jquery_ui/ui-bg_highlight-soft_100_eeeeee_1x100.png) 50% top repeat-x; color: #333333; }
|
63 |
-
.ui-widget-content a { color: #333333; }
|
64 |
-
.ui-widget-header { border: 1px solid #e78f08; background: #f6a828 url(../images/jquery_ui/ui-bg_gloss-wave_35_f6a828_500x100.png) 50% 50% repeat-x; color: #ffffff; font-weight: bold; }
|
65 |
-
.ui-widget-header a { color: #ffffff; }
|
66 |
-
|
67 |
-
/* Interaction states
|
68 |
-
----------------------------------*/
|
69 |
-
.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default { border: 1px solid #cccccc; background: #f6f6f6 url(../images/jquery_ui/ui-bg_glass_100_f6f6f6_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #1c94c4; }
|
70 |
-
.ui-state-default a, .ui-state-default a:link, .ui-state-default a:visited { color: #1c94c4; text-decoration: none; }
|
71 |
-
.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover, .ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus { border: 1px solid #fbcb09; background: #fdf5ce url(../images/jquery_ui/ui-bg_glass_100_fdf5ce_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #c77405; }
|
72 |
-
.ui-state-hover a, .ui-state-hover a:hover { color: #c77405; text-decoration: none; }
|
73 |
-
.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active { border: 1px solid #fbd850; background: #ffffff url(../images/jquery_ui/ui-bg_glass_65_ffffff_1x400.png) 50% 50% repeat-x; font-weight: bold; color: #eb8f00; }
|
74 |
-
.ui-state-active a, .ui-state-active a:link, .ui-state-active a:visited { color: #eb8f00; text-decoration: none; }
|
75 |
-
.ui-widget :active { outline: none; }
|
76 |
-
|
77 |
-
/* Interaction Cues
|
78 |
-
----------------------------------*/
|
79 |
-
.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight {border: 1px solid #fed22f; background: #ffe45c url(../images/jquery_ui/ui-bg_highlight-soft_75_ffe45c_1x100.png) 50% top repeat-x; color: #363636; }
|
80 |
-
.ui-state-highlight a, .ui-widget-content .ui-state-highlight a,.ui-widget-header .ui-state-highlight a { color: #363636; }
|
81 |
-
.ui-state-error, .ui-widget-content .ui-state-error, .ui-widget-header .ui-state-error {border: 1px solid #cd0a0a; background: #b81900 url(../images/jquery_ui/ui-bg_diagonals-thick_18_b81900_40x40.png) 50% 50% repeat; color: #ffffff; }
|
82 |
-
.ui-state-error a, .ui-widget-content .ui-state-error a, .ui-widget-header .ui-state-error a { color: #ffffff; }
|
83 |
-
.ui-state-error-text, .ui-widget-content .ui-state-error-text, .ui-widget-header .ui-state-error-text { color: #ffffff; }
|
84 |
-
.ui-priority-primary, .ui-widget-content .ui-priority-primary, .ui-widget-header .ui-priority-primary { font-weight: bold; }
|
85 |
-
.ui-priority-secondary, .ui-widget-content .ui-priority-secondary, .ui-widget-header .ui-priority-secondary { opacity: .7; filter:Alpha(Opacity=70); font-weight: normal; }
|
86 |
-
.ui-state-disabled, .ui-widget-content .ui-state-disabled, .ui-widget-header .ui-state-disabled { opacity: .35; filter:Alpha(Opacity=35); background-image: none; }
|
87 |
-
|
88 |
-
/* Icons
|
89 |
-
----------------------------------*/
|
90 |
-
|
91 |
-
/* states and images */
|
92 |
-
.ui-icon { width: 16px; height: 16px; background-image: url(../images/jquery_ui/ui-icons_222222_256x240.png); }
|
93 |
-
.ui-widget-content .ui-icon {background-image: url(../images/jquery_ui/ui-icons_222222_256x240.png); }
|
94 |
-
.ui-widget-header .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ffffff_256x240.png); }
|
95 |
-
.ui-state-default .ui-icon { background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
96 |
-
.ui-state-hover .ui-icon, .ui-state-focus .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
97 |
-
.ui-state-active .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ef8c08_256x240.png); }
|
98 |
-
.ui-state-highlight .ui-icon {background-image: url(../images/jquery_ui/ui-icons_228ef1_256x240.png); }
|
99 |
-
.ui-state-error .ui-icon, .ui-state-error-text .ui-icon {background-image: url(../images/jquery_ui/ui-icons_ffd27a_256x240.png); }
|
100 |
-
|
101 |
-
/* positioning */
|
102 |
-
.ui-icon-carat-1-n { background-position: 0 0; }
|
103 |
-
.ui-icon-carat-1-ne { background-position: -16px 0; }
|
104 |
-
.ui-icon-carat-1-e { background-position: -32px 0; }
|
105 |
-
.ui-icon-carat-1-se { background-position: -48px 0; }
|
106 |
-
.ui-icon-carat-1-s { background-position: -64px 0; }
|
107 |
-
.ui-icon-carat-1-sw { background-position: -80px 0; }
|
108 |
-
.ui-icon-carat-1-w { background-position: -96px 0; }
|
109 |
-
.ui-icon-carat-1-nw { background-position: -112px 0; }
|
110 |
-
.ui-icon-carat-2-n-s { background-position: -128px 0; }
|
111 |
-
.ui-icon-carat-2-e-w { background-position: -144px 0; }
|
112 |
-
.ui-icon-triangle-1-n { background-position: 0 -16px; }
|
113 |
-
.ui-icon-triangle-1-ne { background-position: -16px -16px; }
|
114 |
-
.ui-icon-triangle-1-e { background-position: -32px -16px; }
|
115 |
-
.ui-icon-triangle-1-se { background-position: -48px -16px; }
|
116 |
-
.ui-icon-triangle-1-s { background-position: -64px -16px; }
|
117 |
-
.ui-icon-triangle-1-sw { background-position: -80px -16px; }
|
118 |
-
.ui-icon-triangle-1-w { background-position: -96px -16px; }
|
119 |
-
.ui-icon-triangle-1-nw { background-position: -112px -16px; }
|
120 |
-
.ui-icon-triangle-2-n-s { background-position: -128px -16px; }
|
121 |
-
.ui-icon-triangle-2-e-w { background-position: -144px -16px; }
|
122 |
-
.ui-icon-arrow-1-n { background-position: 0 -32px; }
|
123 |
-
.ui-icon-arrow-1-ne { background-position: -16px -32px; }
|
124 |
-
.ui-icon-arrow-1-e { background-position: -32px -32px; }
|
125 |
-
.ui-icon-arrow-1-se { background-position: -48px -32px; }
|
126 |
-
.ui-icon-arrow-1-s { background-position: -64px -32px; }
|
127 |
-
.ui-icon-arrow-1-sw { background-position: -80px -32px; }
|
128 |
-
.ui-icon-arrow-1-w { background-position: -96px -32px; }
|
129 |
-
.ui-icon-arrow-1-nw { background-position: -112px -32px; }
|
130 |
-
.ui-icon-arrow-2-n-s { background-position: -128px -32px; }
|
131 |
-
.ui-icon-arrow-2-ne-sw { background-position: -144px -32px; }
|
132 |
-
.ui-icon-arrow-2-e-w { background-position: -160px -32px; }
|
133 |
-
.ui-icon-arrow-2-se-nw { background-position: -176px -32px; }
|
134 |
-
.ui-icon-arrowstop-1-n { background-position: -192px -32px; }
|
135 |
-
.ui-icon-arrowstop-1-e { background-position: -208px -32px; }
|
136 |
-
.ui-icon-arrowstop-1-s { background-position: -224px -32px; }
|
137 |
-
.ui-icon-arrowstop-1-w { background-position: -240px -32px; }
|
138 |
-
.ui-icon-arrowthick-1-n { background-position: 0 -48px; }
|
139 |
-
.ui-icon-arrowthick-1-ne { background-position: -16px -48px; }
|
140 |
-
.ui-icon-arrowthick-1-e { background-position: -32px -48px; }
|
141 |
-
.ui-icon-arrowthick-1-se { background-position: -48px -48px; }
|
142 |
-
.ui-icon-arrowthick-1-s { background-position: -64px -48px; }
|
143 |
-
.ui-icon-arrowthick-1-sw { background-position: -80px -48px; }
|
144 |
-
.ui-icon-arrowthick-1-w { background-position: -96px -48px; }
|
145 |
-
.ui-icon-arrowthick-1-nw { background-position: -112px -48px; }
|
146 |
-
.ui-icon-arrowthick-2-n-s { background-position: -128px -48px; }
|
147 |
-
.ui-icon-arrowthick-2-ne-sw { background-position: -144px -48px; }
|
148 |
-
.ui-icon-arrowthick-2-e-w { background-position: -160px -48px; }
|
149 |
-
.ui-icon-arrowthick-2-se-nw { background-position: -176px -48px; }
|
150 |
-
.ui-icon-arrowthickstop-1-n { background-position: -192px -48px; }
|
151 |
-
.ui-icon-arrowthickstop-1-e { background-position: -208px -48px; }
|
152 |
-
.ui-icon-arrowthickstop-1-s { background-position: -224px -48px; }
|
153 |
-
.ui-icon-arrowthickstop-1-w { background-position: -240px -48px; }
|
154 |
-
.ui-icon-arrowreturnthick-1-w { background-position: 0 -64px; }
|
155 |
-
.ui-icon-arrowreturnthick-1-n { background-position: -16px -64px; }
|
156 |
-
.ui-icon-arrowreturnthick-1-e { background-position: -32px -64px; }
|
157 |
-
.ui-icon-arrowreturnthick-1-s { background-position: -48px -64px; }
|
158 |
-
.ui-icon-arrowreturn-1-w { background-position: -64px -64px; }
|
159 |
-
.ui-icon-arrowreturn-1-n { background-position: -80px -64px; }
|
160 |
-
.ui-icon-arrowreturn-1-e { background-position: -96px -64px; }
|
161 |
-
.ui-icon-arrowreturn-1-s { background-position: -112px -64px; }
|
162 |
-
.ui-icon-arrowrefresh-1-w { background-position: -128px -64px; }
|
163 |
-
.ui-icon-arrowrefresh-1-n { background-position: -144px -64px; }
|
164 |
-
.ui-icon-arrowrefresh-1-e { background-position: -160px -64px; }
|
165 |
-
.ui-icon-arrowrefresh-1-s { background-position: -176px -64px; }
|
166 |
-
.ui-icon-arrow-4 { background-position: 0 -80px; }
|
167 |
-
.ui-icon-arrow-4-diag { background-position: -16px -80px; }
|
168 |
-
.ui-icon-extlink { background-position: -32px -80px; }
|
169 |
-
.ui-icon-newwin { background-position: -48px -80px; }
|
170 |
-
.ui-icon-refresh { background-position: -64px -80px; }
|
171 |
-
.ui-icon-shuffle { background-position: -80px -80px; }
|
172 |
-
.ui-icon-transfer-e-w { background-position: -96px -80px; }
|
173 |
-
.ui-icon-transferthick-e-w { background-position: -112px -80px; }
|
174 |
-
.ui-icon-folder-collapsed { background-position: 0 -96px; }
|
175 |
-
.ui-icon-folder-open { background-position: -16px -96px; }
|
176 |
-
.ui-icon-document { background-position: -32px -96px; }
|
177 |
-
.ui-icon-document-b { background-position: -48px -96px; }
|
178 |
-
.ui-icon-note { background-position: -64px -96px; }
|
179 |
-
.ui-icon-mail-closed { background-position: -80px -96px; }
|
180 |
-
.ui-icon-mail-open { background-position: -96px -96px; }
|
181 |
-
.ui-icon-suitcase { background-position: -112px -96px; }
|
182 |
-
.ui-icon-comment { background-position: -128px -96px; }
|
183 |
-
.ui-icon-person { background-position: -144px -96px; }
|
184 |
-
.ui-icon-print { background-position: -160px -96px; }
|
185 |
-
.ui-icon-trash { background-position: -176px -96px; }
|
186 |
-
.ui-icon-locked { background-position: -192px -96px; }
|
187 |
-
.ui-icon-unlocked { background-position: -208px -96px; }
|
188 |
-
.ui-icon-bookmark { background-position: -224px -96px; }
|
189 |
-
.ui-icon-tag { background-position: -240px -96px; }
|
190 |
-
.ui-icon-home { background-position: 0 -112px; }
|
191 |
-
.ui-icon-flag { background-position: -16px -112px; }
|
192 |
-
.ui-icon-calendar { background-position: -32px -112px; }
|
193 |
-
.ui-icon-cart { background-position: -48px -112px; }
|
194 |
-
.ui-icon-pencil { background-position: -64px -112px; }
|
195 |
-
.ui-icon-clock { background-position: -80px -112px; }
|
196 |
-
.ui-icon-disk { background-position: -96px -112px; }
|
197 |
-
.ui-icon-calculator { background-position: -112px -112px; }
|
198 |
-
.ui-icon-zoomin { background-position: -128px -112px; }
|
199 |
-
.ui-icon-zoomout { background-position: -144px -112px; }
|
200 |
-
.ui-icon-search { background-position: -160px -112px; }
|
201 |
-
.ui-icon-wrench { background-position: -176px -112px; }
|
202 |
-
.ui-icon-gear { background-position: -192px -112px; }
|
203 |
-
.ui-icon-heart { background-position: -208px -112px; }
|
204 |
-
.ui-icon-star { background-position: -224px -112px; }
|
205 |
-
.ui-icon-link { background-position: -240px -112px; }
|
206 |
-
.ui-icon-cancel { background-position: 0 -128px; }
|
207 |
-
.ui-icon-plus { background-position: -16px -128px; }
|
208 |
-
.ui-icon-plusthick { background-position: -32px -128px; }
|
209 |
-
.ui-icon-minus { background-position: -48px -128px; }
|
210 |
-
.ui-icon-minusthick { background-position: -64px -128px; }
|
211 |
-
.ui-icon-close { background-position: -80px -128px; }
|
212 |
-
.ui-icon-closethick { background-position: -96px -128px; }
|
213 |
-
.ui-icon-key { background-position: -112px -128px; }
|
214 |
-
.ui-icon-lightbulb { background-position: -128px -128px; }
|
215 |
-
.ui-icon-scissors { background-position: -144px -128px; }
|
216 |
-
.ui-icon-clipboard { background-position: -160px -128px; }
|
217 |
-
.ui-icon-copy { background-position: -176px -128px; }
|
218 |
-
.ui-icon-contact { background-position: -192px -128px; }
|
219 |
-
.ui-icon-image { background-position: -208px -128px; }
|
220 |
-
.ui-icon-video { background-position: -224px -128px; }
|
221 |
-
.ui-icon-script { background-position: -240px -128px; }
|
222 |
-
.ui-icon-alert { background-position: 0 -144px; }
|
223 |
-
.ui-icon-info { background-position: -16px -144px; }
|
224 |
-
.ui-icon-notice { background-position: -32px -144px; }
|
225 |
-
.ui-icon-help { background-position: -48px -144px; }
|
226 |
-
.ui-icon-check { background-position: -64px -144px; }
|
227 |
-
.ui-icon-bullet { background-position: -80px -144px; }
|
228 |
-
.ui-icon-radio-off { background-position: -96px -144px; }
|
229 |
-
.ui-icon-radio-on { background-position: -112px -144px; }
|
230 |
-
.ui-icon-pin-w { background-position: -128px -144px; }
|
231 |
-
.ui-icon-pin-s { background-position: -144px -144px; }
|
232 |
-
.ui-icon-play { background-position: 0 -160px; }
|
233 |
-
.ui-icon-pause { background-position: -16px -160px; }
|
234 |
-
.ui-icon-seek-next { background-position: -32px -160px; }
|
235 |
-
.ui-icon-seek-prev { background-position: -48px -160px; }
|
236 |
-
.ui-icon-seek-end { background-position: -64px -160px; }
|
237 |
-
.ui-icon-seek-start { background-position: -80px -160px; }
|
238 |
-
/* ui-icon-seek-first is deprecated, use ui-icon-seek-start instead */
|
239 |
-
.ui-icon-seek-first { background-position: -80px -160px; }
|
240 |
-
.ui-icon-stop { background-position: -96px -160px; }
|
241 |
-
.ui-icon-eject { background-position: -112px -160px; }
|
242 |
-
.ui-icon-volume-off { background-position: -128px -160px; }
|
243 |
-
.ui-icon-volume-on { background-position: -144px -160px; }
|
244 |
-
.ui-icon-power { background-position: 0 -176px; }
|
245 |
-
.ui-icon-signal-diag { background-position: -16px -176px; }
|
246 |
-
.ui-icon-signal { background-position: -32px -176px; }
|
247 |
-
.ui-icon-battery-0 { background-position: -48px -176px; }
|
248 |
-
.ui-icon-battery-1 { background-position: -64px -176px; }
|
249 |
-
.ui-icon-battery-2 { background-position: -80px -176px; }
|
250 |
-
.ui-icon-battery-3 { background-position: -96px -176px; }
|
251 |
-
.ui-icon-circle-plus { background-position: 0 -192px; }
|
252 |
-
.ui-icon-circle-minus { background-position: -16px -192px; }
|
253 |
-
.ui-icon-circle-close { background-position: -32px -192px; }
|
254 |
-
.ui-icon-circle-triangle-e { background-position: -48px -192px; }
|
255 |
-
.ui-icon-circle-triangle-s { background-position: -64px -192px; }
|
256 |
-
.ui-icon-circle-triangle-w { background-position: -80px -192px; }
|
257 |
-
.ui-icon-circle-triangle-n { background-position: -96px -192px; }
|
258 |
-
.ui-icon-circle-arrow-e { background-position: -112px -192px; }
|
259 |
-
.ui-icon-circle-arrow-s { background-position: -128px -192px; }
|
260 |
-
.ui-icon-circle-arrow-w { background-position: -144px -192px; }
|
261 |
-
.ui-icon-circle-arrow-n { background-position: -160px -192px; }
|
262 |
-
.ui-icon-circle-zoomin { background-position: -176px -192px; }
|
263 |
-
.ui-icon-circle-zoomout { background-position: -192px -192px; }
|
264 |
-
.ui-icon-circle-check { background-position: -208px -192px; }
|
265 |
-
.ui-icon-circlesmall-plus { background-position: 0 -208px; }
|
266 |
-
.ui-icon-circlesmall-minus { background-position: -16px -208px; }
|
267 |
-
.ui-icon-circlesmall-close { background-position: -32px -208px; }
|
268 |
-
.ui-icon-squaresmall-plus { background-position: -48px -208px; }
|
269 |
-
.ui-icon-squaresmall-minus { background-position: -64px -208px; }
|
270 |
-
.ui-icon-squaresmall-close { background-position: -80px -208px; }
|
271 |
-
.ui-icon-grip-dotted-vertical { background-position: 0 -224px; }
|
272 |
-
.ui-icon-grip-dotted-horizontal { background-position: -16px -224px; }
|
273 |
-
.ui-icon-grip-solid-vertical { background-position: -32px -224px; }
|
274 |
-
.ui-icon-grip-solid-horizontal { background-position: -48px -224px; }
|
275 |
-
.ui-icon-gripsmall-diagonal-se { background-position: -64px -224px; }
|
276 |
-
.ui-icon-grip-diagonal-se { background-position: -80px -224px; }
|
277 |
-
|
278 |
-
|
279 |
-
/* Misc visuals
|
280 |
-
----------------------------------*/
|
281 |
-
|
282 |
-
/* Corner radius */
|
283 |
-
.ui-corner-tl { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; }
|
284 |
-
.ui-corner-tr { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
285 |
-
.ui-corner-bl { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
286 |
-
.ui-corner-br { -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
287 |
-
.ui-corner-top { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; }
|
288 |
-
.ui-corner-bottom { -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
289 |
-
.ui-corner-right { -moz-border-radius-topright: 4px; -webkit-border-top-right-radius: 4px; border-top-right-radius: 4px; -moz-border-radius-bottomright: 4px; -webkit-border-bottom-right-radius: 4px; border-bottom-right-radius: 4px; }
|
290 |
-
.ui-corner-left { -moz-border-radius-topleft: 4px; -webkit-border-top-left-radius: 4px; border-top-left-radius: 4px; -moz-border-radius-bottomleft: 4px; -webkit-border-bottom-left-radius: 4px; border-bottom-left-radius: 4px; }
|
291 |
-
.ui-corner-all { -moz-border-radius: 4px; -webkit-border-radius: 4px; border-radius: 4px; }
|
292 |
-
|
293 |
-
/* Overlays */
|
294 |
-
.ui-widget-overlay { background: #666666 url(../images/jquery_ui/ui-bg_diagonals-thick_20_666666_40x40.png) 50% 50% repeat; opacity: .50;filter:Alpha(Opacity=50); }
|
295 |
-
.ui-widget-shadow { margin: -5px 0 0 -5px; padding: 5px; background: #000000 url(../images/jquery_ui/ui-bg_flat_10_000000_40x100.png) 50% 50% repeat-x; opacity: .20;filter:Alpha(Opacity=20); -moz-border-radius: 5px; -webkit-border-radius: 5px; border-radius: 5px; }/*
|
296 |
-
* jQuery UI Resizable 1.8.13
|
297 |
-
*
|
298 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
299 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
300 |
-
* http://jquery.org/license
|
301 |
-
*
|
302 |
-
* http://docs.jquery.com/UI/Resizable#theming
|
303 |
-
*/
|
304 |
-
.ui-resizable { position: relative;}
|
305 |
-
.ui-resizable-handle { position: absolute;font-size: 0.1px;z-index: 99999; display: block;
|
306 |
-
/* http://bugs.jqueryui.com/ticket/7233
|
307 |
-
- Resizable: resizable handles fail to work in IE if transparent and content overlaps
|
308 |
-
*/
|
309 |
-
background-image:url(data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs=);
|
310 |
-
}
|
311 |
-
.ui-resizable-disabled .ui-resizable-handle, .ui-resizable-autohide .ui-resizable-handle { display: none; }
|
312 |
-
.ui-resizable-n { cursor: n-resize; height: 7px; width: 100%; top: -5px; left: 0; }
|
313 |
-
.ui-resizable-s { cursor: s-resize; height: 7px; width: 100%; bottom: -5px; left: 0; }
|
314 |
-
.ui-resizable-e { cursor: e-resize; width: 7px; right: -5px; top: 0; height: 100%; }
|
315 |
-
.ui-resizable-w { cursor: w-resize; width: 7px; left: -5px; top: 0; height: 100%; }
|
316 |
-
.ui-resizable-se { cursor: se-resize; width: 12px; height: 12px; right: 1px; bottom: 1px; }
|
317 |
-
.ui-resizable-sw { cursor: sw-resize; width: 9px; height: 9px; left: -5px; bottom: -5px; }
|
318 |
-
.ui-resizable-nw { cursor: nw-resize; width: 9px; height: 9px; left: -5px; top: -5px; }
|
319 |
-
.ui-resizable-ne { cursor: ne-resize; width: 9px; height: 9px; right: -5px; top: -5px;}/*
|
320 |
-
* jQuery UI Selectable 1.8.13
|
321 |
-
*
|
322 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
323 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
324 |
-
* http://jquery.org/license
|
325 |
-
*
|
326 |
-
* http://docs.jquery.com/UI/Selectable#theming
|
327 |
-
*/
|
328 |
-
.ui-selectable-helper { position: absolute; z-index: 100; border:1px dotted black; }
|
329 |
-
/*
|
330 |
-
* jQuery UI Accordion 1.8.13
|
331 |
-
*
|
332 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
333 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
334 |
-
* http://jquery.org/license
|
335 |
-
*
|
336 |
-
* http://docs.jquery.com/UI/Accordion#theming
|
337 |
-
*/
|
338 |
-
/* IE/Win - Fix animation bug - #4615 */
|
339 |
-
.ui-accordion { width: 100%; }
|
340 |
-
.ui-accordion .ui-accordion-header { cursor: pointer; position: relative; margin-top: 1px; zoom: 1; }
|
341 |
-
.ui-accordion .ui-accordion-li-fix { display: inline; }
|
342 |
-
.ui-accordion .ui-accordion-header-active { border-bottom: 0 !important; }
|
343 |
-
.ui-accordion .ui-accordion-header a { display: block; font-size: 1em; padding: .5em .5em .5em .7em; }
|
344 |
-
.ui-accordion-icons .ui-accordion-header a { padding-left: 2.2em; }
|
345 |
-
.ui-accordion .ui-accordion-header .ui-icon { position: absolute; left: .5em; top: 50%; margin-top: -8px; }
|
346 |
-
.ui-accordion .ui-accordion-content { padding: 1em 2.2em; border-top: 0; margin-top: -2px; position: relative; top: 1px; margin-bottom: 2px; overflow: auto; display: none; zoom: 1; }
|
347 |
-
.ui-accordion .ui-accordion-content-active { display: block; }
|
348 |
-
/*
|
349 |
-
* jQuery UI Autocomplete 1.8.13
|
350 |
-
*
|
351 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
352 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
353 |
-
* http://jquery.org/license
|
354 |
-
*
|
355 |
-
* http://docs.jquery.com/UI/Autocomplete#theming
|
356 |
-
*/
|
357 |
-
.ui-autocomplete { position: absolute; cursor: default; }
|
358 |
-
|
359 |
-
/* workarounds */
|
360 |
-
* html .ui-autocomplete { width:1px; } /* without this, the menu expands to 100% in IE6 */
|
361 |
-
|
362 |
-
/*
|
363 |
-
* jQuery UI Menu 1.8.13
|
364 |
-
*
|
365 |
-
* Copyright 2010, AUTHORS.txt (http://jqueryui.com/about)
|
366 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
367 |
-
* http://jquery.org/license
|
368 |
-
*
|
369 |
-
* http://docs.jquery.com/UI/Menu#theming
|
370 |
-
*/
|
371 |
-
.ui-menu {
|
372 |
-
list-style:none;
|
373 |
-
padding: 2px;
|
374 |
-
margin: 0;
|
375 |
-
display:block;
|
376 |
-
float: left;
|
377 |
-
}
|
378 |
-
.ui-menu .ui-menu {
|
379 |
-
margin-top: -3px;
|
380 |
-
}
|
381 |
-
.ui-menu .ui-menu-item {
|
382 |
-
margin:0;
|
383 |
-
padding: 0;
|
384 |
-
zoom: 1;
|
385 |
-
float: left;
|
386 |
-
clear: left;
|
387 |
-
width: 100%;
|
388 |
-
}
|
389 |
-
.ui-menu .ui-menu-item a {
|
390 |
-
text-decoration:none;
|
391 |
-
display:block;
|
392 |
-
padding:.2em .4em;
|
393 |
-
line-height:1.5;
|
394 |
-
zoom:1;
|
395 |
-
}
|
396 |
-
.ui-menu .ui-menu-item a.ui-state-hover,
|
397 |
-
.ui-menu .ui-menu-item a.ui-state-active {
|
398 |
-
font-weight: normal;
|
399 |
-
margin: -1px;
|
400 |
-
}
|
401 |
-
/*
|
402 |
-
* jQuery UI Button 1.8.13
|
403 |
-
*
|
404 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
405 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
406 |
-
* http://jquery.org/license
|
407 |
-
*
|
408 |
-
* http://docs.jquery.com/UI/Button#theming
|
409 |
-
*/
|
410 |
-
.ui-button { display: inline-block; position: relative; padding: 0; margin-right: .1em; text-decoration: none !important; cursor: pointer; text-align: center; zoom: 1; overflow: visible; } /* the overflow property removes extra width in IE */
|
411 |
-
.ui-button-icon-only { width: 2.2em; } /* to make room for the icon, a width needs to be set here */
|
412 |
-
button.ui-button-icon-only { width: 2.4em; } /* button elements seem to need a little more width */
|
413 |
-
.ui-button-icons-only { width: 3.4em; }
|
414 |
-
button.ui-button-icons-only { width: 3.7em; }
|
415 |
-
|
416 |
-
/*button text element */
|
417 |
-
.ui-button .ui-button-text { display: block; line-height: 1.4; }
|
418 |
-
.ui-button-text-only .ui-button-text { padding: .4em 1em; }
|
419 |
-
.ui-button-icon-only .ui-button-text, .ui-button-icons-only .ui-button-text { padding: .4em; text-indent: -9999999px; }
|
420 |
-
.ui-button-text-icon-primary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 1em .4em 2.1em; }
|
421 |
-
.ui-button-text-icon-secondary .ui-button-text, .ui-button-text-icons .ui-button-text { padding: .4em 2.1em .4em 1em; }
|
422 |
-
.ui-button-text-icons .ui-button-text { padding-left: 2.1em; padding-right: 2.1em; }
|
423 |
-
/* no icon support for input elements, provide padding by default */
|
424 |
-
input.ui-button { padding: .4em 1em; }
|
425 |
-
|
426 |
-
/*button icon element(s) */
|
427 |
-
.ui-button-icon-only .ui-icon, .ui-button-text-icon-primary .ui-icon, .ui-button-text-icon-secondary .ui-icon, .ui-button-text-icons .ui-icon, .ui-button-icons-only .ui-icon { position: absolute; top: 50%; margin-top: -8px; }
|
428 |
-
.ui-button-icon-only .ui-icon { left: 50%; margin-left: -8px; }
|
429 |
-
.ui-button-text-icon-primary .ui-button-icon-primary, .ui-button-text-icons .ui-button-icon-primary, .ui-button-icons-only .ui-button-icon-primary { left: .5em; }
|
430 |
-
.ui-button-text-icon-secondary .ui-button-icon-secondary, .ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
431 |
-
.ui-button-text-icons .ui-button-icon-secondary, .ui-button-icons-only .ui-button-icon-secondary { right: .5em; }
|
432 |
-
|
433 |
-
/*button sets*/
|
434 |
-
.ui-buttonset { margin-right: 7px; }
|
435 |
-
.ui-buttonset .ui-button { margin-left: 0; margin-right: -.3em; }
|
436 |
-
|
437 |
-
/* workarounds */
|
438 |
-
button.ui-button::-moz-focus-inner { border: 0; padding: 0; } /* reset extra padding in Firefox */
|
439 |
-
/*
|
440 |
-
* jQuery UI Dialog 1.8.13
|
441 |
-
*
|
442 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
443 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
444 |
-
* http://jquery.org/license
|
445 |
-
*
|
446 |
-
* http://docs.jquery.com/UI/Dialog#theming
|
447 |
-
*/
|
448 |
-
.ui-dialog { position: absolute; padding: .2em; width: 300px; overflow: hidden; }
|
449 |
-
.ui-dialog .ui-dialog-titlebar { padding: .4em 1em; position: relative; }
|
450 |
-
.ui-dialog .ui-dialog-title { float: left; margin: .1em 16px .1em 0; }
|
451 |
-
.ui-dialog .ui-dialog-titlebar-close { position: absolute; right: .3em; top: 50%; width: 19px; margin: -10px 0 0 0; padding: 1px; height: 18px; }
|
452 |
-
.ui-dialog .ui-dialog-titlebar-close span { display: block; margin: 1px; }
|
453 |
-
.ui-dialog .ui-dialog-titlebar-close:hover, .ui-dialog .ui-dialog-titlebar-close:focus { padding: 0; }
|
454 |
-
.ui-dialog .ui-dialog-content { position: relative; border: 0; padding: .5em 1em; background: none; overflow: auto; zoom: 1; }
|
455 |
-
.ui-dialog .ui-dialog-buttonpane { text-align: left; border-width: 1px 0 0 0; background-image: none; margin: .5em 0 0 0; padding: .3em 1em .5em .4em; }
|
456 |
-
.ui-dialog .ui-dialog-buttonpane .ui-dialog-buttonset { float: right; }
|
457 |
-
.ui-dialog .ui-dialog-buttonpane button { margin: .5em .4em .5em 0; cursor: pointer; }
|
458 |
-
.ui-dialog .ui-resizable-se { width: 14px; height: 14px; right: 3px; bottom: 3px; }
|
459 |
-
.ui-draggable .ui-dialog-titlebar { cursor: move; }
|
460 |
-
/*
|
461 |
-
* jQuery UI Slider 1.8.13
|
462 |
-
*
|
463 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
464 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
465 |
-
* http://jquery.org/license
|
466 |
-
*
|
467 |
-
* http://docs.jquery.com/UI/Slider#theming
|
468 |
-
*/
|
469 |
-
.ui-slider { position: relative; text-align: left; }
|
470 |
-
.ui-slider .ui-slider-handle { position: absolute; z-index: 2; width: 1.2em; height: 1.2em; cursor: default; }
|
471 |
-
.ui-slider .ui-slider-range { position: absolute; z-index: 1; font-size: .7em; display: block; border: 0; background-position: 0 0; }
|
472 |
-
|
473 |
-
.ui-slider-horizontal { height: .8em; }
|
474 |
-
.ui-slider-horizontal .ui-slider-handle { top: -.3em; margin-left: -.6em; }
|
475 |
-
.ui-slider-horizontal .ui-slider-range { top: 0; height: 100%; }
|
476 |
-
.ui-slider-horizontal .ui-slider-range-min { left: 0; }
|
477 |
-
.ui-slider-horizontal .ui-slider-range-max { right: 0; }
|
478 |
-
|
479 |
-
.ui-slider-vertical { width: .8em; height: 100px; }
|
480 |
-
.ui-slider-vertical .ui-slider-handle { left: -.3em; margin-left: 0; margin-bottom: -.6em; }
|
481 |
-
.ui-slider-vertical .ui-slider-range { left: 0; width: 100%; }
|
482 |
-
.ui-slider-vertical .ui-slider-range-min { bottom: 0; }
|
483 |
-
.ui-slider-vertical .ui-slider-range-max { top: 0; }/*
|
484 |
-
* jQuery UI Tabs 1.8.13
|
485 |
-
*
|
486 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
487 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
488 |
-
* http://jquery.org/license
|
489 |
-
*
|
490 |
-
* http://docs.jquery.com/UI/Tabs#theming
|
491 |
-
*/
|
492 |
-
.ui-tabs { position: relative; padding: .2em; zoom: 1; } /* position: relative prevents IE scroll bug (element with position: relative inside container with overflow: auto appear as "fixed") */
|
493 |
-
.ui-tabs .ui-tabs-nav { margin: 0; padding: .2em .2em 0; }
|
494 |
-
.ui-tabs .ui-tabs-nav li { list-style: none; float: left; position: relative; top: 1px; margin: 0 .2em 1px 0; border-bottom: 0 !important; padding: 0; white-space: nowrap; }
|
495 |
-
.ui-tabs .ui-tabs-nav li a { float: left; padding: .5em 1em; text-decoration: none; }
|
496 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected { margin-bottom: 0; padding-bottom: 1px; }
|
497 |
-
.ui-tabs .ui-tabs-nav li.ui-tabs-selected a, .ui-tabs .ui-tabs-nav li.ui-state-disabled a, .ui-tabs .ui-tabs-nav li.ui-state-processing a { cursor: text; }
|
498 |
-
.ui-tabs .ui-tabs-nav li a, .ui-tabs.ui-tabs-collapsible .ui-tabs-nav li.ui-tabs-selected a { cursor: pointer; } /* first selector in group seems obsolete, but required to overcome bug in Opera applying cursor: text overall if defined elsewhere... */
|
499 |
-
.ui-tabs .ui-tabs-panel { display: block; border-width: 0; padding: 1em 1.4em; background: none; }
|
500 |
-
.ui-tabs .ui-tabs-hide { display: none !important; }
|
501 |
-
/*
|
502 |
-
* jQuery UI Datepicker 1.8.13
|
503 |
-
*
|
504 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
505 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
506 |
-
* http://jquery.org/license
|
507 |
-
*
|
508 |
-
* http://docs.jquery.com/UI/Datepicker#theming
|
509 |
-
*/
|
510 |
-
.ui-datepicker { width: 17em; padding: .2em .2em 0; display: none; }
|
511 |
-
.ui-datepicker .ui-datepicker-header { position:relative; padding:.2em 0; }
|
512 |
-
.ui-datepicker .ui-datepicker-prev, .ui-datepicker .ui-datepicker-next { position:absolute; top: 2px; width: 1.8em; height: 1.8em; }
|
513 |
-
.ui-datepicker .ui-datepicker-prev-hover, .ui-datepicker .ui-datepicker-next-hover { top: 1px; }
|
514 |
-
.ui-datepicker .ui-datepicker-prev { left:2px; }
|
515 |
-
.ui-datepicker .ui-datepicker-next { right:2px; }
|
516 |
-
.ui-datepicker .ui-datepicker-prev-hover { left:1px; }
|
517 |
-
.ui-datepicker .ui-datepicker-next-hover { right:1px; }
|
518 |
-
.ui-datepicker .ui-datepicker-prev span, .ui-datepicker .ui-datepicker-next span { display: block; position: absolute; left: 50%; margin-left: -8px; top: 50%; margin-top: -8px; }
|
519 |
-
.ui-datepicker .ui-datepicker-title { margin: 0 2.3em; line-height: 1.8em; text-align: center; }
|
520 |
-
.ui-datepicker .ui-datepicker-title select { font-size:1em; margin:1px 0; }
|
521 |
-
.ui-datepicker select.ui-datepicker-month-year {width: 100%;}
|
522 |
-
.ui-datepicker select.ui-datepicker-month,
|
523 |
-
.ui-datepicker select.ui-datepicker-year { width: 49%;}
|
524 |
-
.ui-datepicker table {width: 100%; font-size: .9em; border-collapse: collapse; margin:0 0 .4em; }
|
525 |
-
.ui-datepicker th { padding: .7em .3em; text-align: center; font-weight: bold; border: 0; }
|
526 |
-
.ui-datepicker td { border: 0; padding: 1px; }
|
527 |
-
.ui-datepicker td span, .ui-datepicker td a { display: block; padding: .2em; text-align: right; text-decoration: none; }
|
528 |
-
.ui-datepicker .ui-datepicker-buttonpane { background-image: none; margin: .7em 0 0 0; padding:0 .2em; border-left: 0; border-right: 0; border-bottom: 0; }
|
529 |
-
.ui-datepicker .ui-datepicker-buttonpane button { float: right; margin: .5em .2em .4em; cursor: pointer; padding: .2em .6em .3em .6em; width:auto; overflow:visible; }
|
530 |
-
.ui-datepicker .ui-datepicker-buttonpane button.ui-datepicker-current { float:left; }
|
531 |
-
|
532 |
-
/* with multiple calendars */
|
533 |
-
.ui-datepicker.ui-datepicker-multi { width:auto; }
|
534 |
-
.ui-datepicker-multi .ui-datepicker-group { float:left; }
|
535 |
-
.ui-datepicker-multi .ui-datepicker-group table { width:95%; margin:0 auto .4em; }
|
536 |
-
.ui-datepicker-multi-2 .ui-datepicker-group { width:50%; }
|
537 |
-
.ui-datepicker-multi-3 .ui-datepicker-group { width:33.3%; }
|
538 |
-
.ui-datepicker-multi-4 .ui-datepicker-group { width:25%; }
|
539 |
-
.ui-datepicker-multi .ui-datepicker-group-last .ui-datepicker-header { border-left-width:0; }
|
540 |
-
.ui-datepicker-multi .ui-datepicker-group-middle .ui-datepicker-header { border-left-width:0; }
|
541 |
-
.ui-datepicker-multi .ui-datepicker-buttonpane { clear:left; }
|
542 |
-
.ui-datepicker-row-break { clear:both; width:100%; }
|
543 |
-
|
544 |
-
/* RTL support */
|
545 |
-
.ui-datepicker-rtl { direction: rtl; }
|
546 |
-
.ui-datepicker-rtl .ui-datepicker-prev { right: 2px; left: auto; }
|
547 |
-
.ui-datepicker-rtl .ui-datepicker-next { left: 2px; right: auto; }
|
548 |
-
.ui-datepicker-rtl .ui-datepicker-prev:hover { right: 1px; left: auto; }
|
549 |
-
.ui-datepicker-rtl .ui-datepicker-next:hover { left: 1px; right: auto; }
|
550 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane { clear:right; }
|
551 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button { float: left; }
|
552 |
-
.ui-datepicker-rtl .ui-datepicker-buttonpane button.ui-datepicker-current { float:right; }
|
553 |
-
.ui-datepicker-rtl .ui-datepicker-group { float:right; }
|
554 |
-
.ui-datepicker-rtl .ui-datepicker-group-last .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
555 |
-
.ui-datepicker-rtl .ui-datepicker-group-middle .ui-datepicker-header { border-right-width:0; border-left-width:1px; }
|
556 |
-
|
557 |
-
/* IE6 IFRAME FIX (taken from datepicker 1.5.3 */
|
558 |
-
.ui-datepicker-cover {
|
559 |
-
display: none; /*sorry for IE5*/
|
560 |
-
display/**/: block; /*sorry for IE5*/
|
561 |
-
position: absolute; /*must have*/
|
562 |
-
z-index: -1; /*must have*/
|
563 |
-
filter: mask(); /*must have*/
|
564 |
-
top: -4px; /*must have*/
|
565 |
-
left: -4px; /*must have*/
|
566 |
-
width: 200px; /*must have*/
|
567 |
-
height: 200px; /*must have*/
|
568 |
-
}/*
|
569 |
-
* jQuery UI Progressbar 1.8.13
|
570 |
-
*
|
571 |
-
* Copyright 2011, AUTHORS.txt (http://jqueryui.com/about)
|
572 |
-
* Dual licensed under the MIT or GPL Version 2 licenses.
|
573 |
-
* http://jquery.org/license
|
574 |
-
*
|
575 |
-
* http://docs.jquery.com/UI/Progressbar#theming
|
576 |
-
*/
|
577 |
-
.ui-progressbar { height:2em; text-align: left; }
|
578 |
-
.ui-progressbar .ui-progressbar-value {margin: -1px; height:100%; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/css/yit-plugin-panel-sidebar.css
DELETED
@@ -1,388 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
* This file belongs to the YIT Plugin Framework.
|
3 |
-
*
|
4 |
-
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
5 |
-
* that is bundled with this package in the file LICENSE.txt.
|
6 |
-
* It is also available through the world-wide-web at this URL:
|
7 |
-
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
-
*/
|
9 |
-
|
10 |
-
/* === Panel Sidebar === */
|
11 |
-
#yit-panel-sidebar {
|
12 |
-
width : 275px;
|
13 |
-
float : right;
|
14 |
-
margin : 10px 0 0 10px;
|
15 |
-
}
|
16 |
-
|
17 |
-
#yit-panel-sidebar.yith-panel-sidebar-hidden {
|
18 |
-
position : absolute;
|
19 |
-
top : 0;
|
20 |
-
right : 0;
|
21 |
-
}
|
22 |
-
|
23 |
-
#yit-panel-sidebar.yith-panel-sidebar-hidden #yit-panel-sidebar-widgets-container {
|
24 |
-
display : none;
|
25 |
-
}
|
26 |
-
|
27 |
-
.yit-panel-sidebar-widget-wrapper {
|
28 |
-
position : relative;
|
29 |
-
margin : 10px 0 30px 0;
|
30 |
-
}
|
31 |
-
|
32 |
-
.yit-panel-sidebar-widget-container {
|
33 |
-
border-radius : 5px;
|
34 |
-
border : 1px solid #ddd;
|
35 |
-
background : #fff;
|
36 |
-
box-shadow : 0 2px 1px -1px #ccc;
|
37 |
-
overflow : hidden;
|
38 |
-
}
|
39 |
-
|
40 |
-
.yit-panel-sidebar-widget-container a {
|
41 |
-
text-decoration : none;
|
42 |
-
}
|
43 |
-
|
44 |
-
.yit-panel-sidebar-widget-container img.yit-panel-sidebar-widget-image {
|
45 |
-
width : 100%;
|
46 |
-
position : relative;
|
47 |
-
bottom : -5px;
|
48 |
-
}
|
49 |
-
|
50 |
-
.yit-panel-sidebar-widget-title {
|
51 |
-
padding : 12px 10px;
|
52 |
-
background : #f4f4f4;
|
53 |
-
font-size : 10px;
|
54 |
-
text-transform : uppercase;
|
55 |
-
font-weight : 700;
|
56 |
-
}
|
57 |
-
|
58 |
-
.yit-panel-sidebar-widget-title.dashicons {
|
59 |
-
width : auto !important;
|
60 |
-
height : auto !important;
|
61 |
-
display : block;
|
62 |
-
font-family : "Open Sans", sans-serif;
|
63 |
-
text-align : left;
|
64 |
-
}
|
65 |
-
|
66 |
-
.yit-panel-sidebar-widget-title.dashicons::before {
|
67 |
-
font-family : "Dashicons";
|
68 |
-
font-size : 18px;
|
69 |
-
display : inline-block;
|
70 |
-
vertical-align : middle;
|
71 |
-
margin-right : 10px;
|
72 |
-
font-weight : normal;
|
73 |
-
}
|
74 |
-
|
75 |
-
.yit-panel-sidebar-widget-title.orange {
|
76 |
-
background : #ff643e;
|
77 |
-
color : #fff;
|
78 |
-
}
|
79 |
-
|
80 |
-
.yit-panel-sidebar-widget-title.green {
|
81 |
-
background : #a3c401;
|
82 |
-
color : #fff;
|
83 |
-
}
|
84 |
-
|
85 |
-
.yit-panel-sidebar-widget-title.red {
|
86 |
-
background : #e4313c;
|
87 |
-
color : #fff;
|
88 |
-
}
|
89 |
-
|
90 |
-
.yit-panel-sidebar-widget-title.yellow {
|
91 |
-
background : #ffc400;
|
92 |
-
color : #333;
|
93 |
-
}
|
94 |
-
|
95 |
-
.yit-panel-sidebar-widget-title.center {
|
96 |
-
text-align : center;
|
97 |
-
}
|
98 |
-
|
99 |
-
.yit-panel-sidebar-widget-title.right {
|
100 |
-
text-align : right;
|
101 |
-
}
|
102 |
-
|
103 |
-
.yit-panel-sidebar-widget-content {
|
104 |
-
padding : 15px;
|
105 |
-
}
|
106 |
-
|
107 |
-
.yit-panel-sidebar-widget-content p {
|
108 |
-
font-size : 11px;
|
109 |
-
line-height : 18px;
|
110 |
-
margin : 0;
|
111 |
-
text-align : justify;
|
112 |
-
}
|
113 |
-
|
114 |
-
.yit-panel-sidebar-widget-badge.gift-tape {
|
115 |
-
color : #000;
|
116 |
-
font-family : "Open Sans", sans-serif;
|
117 |
-
box-sizing : border-box;
|
118 |
-
position : absolute;
|
119 |
-
background-color : transparent;
|
120 |
-
width : 70px;
|
121 |
-
height : 70px;
|
122 |
-
overflow : hidden;
|
123 |
-
top : 0;
|
124 |
-
right : 0;
|
125 |
-
}
|
126 |
-
|
127 |
-
.yit-panel-sidebar-widget-badge.gift-tape div.yit-panel-sidebar-widget-badge-text {
|
128 |
-
background : #ffd600;
|
129 |
-
background : -webkit-linear-gradient(left, #fe8502, #ffe400); /* For Safari 5.1 to 6.0 */
|
130 |
-
background : -o-linear-gradient(right, #fe8502, #ffe400); /* For Opera 11.1 to 12.0 */
|
131 |
-
background : -moz-linear-gradient(right, #fe8502, #ffe400); /* For Firefox 3.6 to 15 */
|
132 |
-
background : linear-gradient(to right, #fe8502, #ffe400); /* Standard syntax */
|
133 |
-
font-size : 10px;
|
134 |
-
font-weight : bold;
|
135 |
-
line-height : 24px;
|
136 |
-
position : absolute;
|
137 |
-
text-align : center;
|
138 |
-
z-index : 100;
|
139 |
-
-webkit-transform : rotate(45deg);
|
140 |
-
-ms-transform : rotate(45deg);
|
141 |
-
transform : rotate(45deg);
|
142 |
-
top : 15px;
|
143 |
-
left : -6px;
|
144 |
-
width : 100px;
|
145 |
-
text-shadow : 1px 1px 1px #fff;
|
146 |
-
}
|
147 |
-
|
148 |
-
img.yit-panel-sidebar-widget-despacho-image {
|
149 |
-
background : #ffffff;
|
150 |
-
background : -webkit-linear-gradient(#ffffff, #a5b7c5); /* For Safari 5.1 to 6.0 */
|
151 |
-
background : -o-linear-gradient(#ffffff, #a5b7c5); /* For Opera 11.1 to 12.0 */
|
152 |
-
background : -moz-linear-gradient(#ffffff, #a5b7c5); /* For Firefox 3.6 to 15 */
|
153 |
-
background : linear-gradient(#ffffff, #a5b7c5); /* Standard syntax */
|
154 |
-
}
|
155 |
-
|
156 |
-
/* ==== Buttons ==== */
|
157 |
-
#yit-panel-sidebar .button {
|
158 |
-
color : #ffffff;
|
159 |
-
border : none;
|
160 |
-
background : #666666;
|
161 |
-
-webkit-box-shadow : none;
|
162 |
-
box-shadow : none;
|
163 |
-
vertical-align : middle;
|
164 |
-
text-transform : uppercase;
|
165 |
-
font-size : 11px;
|
166 |
-
font-weight : 700;
|
167 |
-
height : 32px;
|
168 |
-
line-height : 32px;
|
169 |
-
padding : 0 18px 1px;
|
170 |
-
}
|
171 |
-
|
172 |
-
#yit-panel-sidebar .button.orange {
|
173 |
-
background : #ff6340;
|
174 |
-
}
|
175 |
-
|
176 |
-
#yit-panel-sidebar .button.green {
|
177 |
-
background : #a3c401;
|
178 |
-
}
|
179 |
-
|
180 |
-
#yit-panel-sidebar .button.red {
|
181 |
-
background : #e4313c;
|
182 |
-
}
|
183 |
-
|
184 |
-
#yit-panel-sidebar .button.yellow {
|
185 |
-
background : #ffc400;
|
186 |
-
}
|
187 |
-
|
188 |
-
/* === Title Icons === */
|
189 |
-
#yit-panel-sidebar .yit-panel-sidebar-widget-icon:before {
|
190 |
-
content : " ";
|
191 |
-
width : 16px;
|
192 |
-
height : 16px;
|
193 |
-
display : inline-block;
|
194 |
-
vertical-align : middle;
|
195 |
-
margin-right : 10px;
|
196 |
-
}
|
197 |
-
|
198 |
-
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.link-icon:before {
|
199 |
-
background : transparent url('../images/widgets/link-icon.png') no-repeat;
|
200 |
-
background-size : contain;
|
201 |
-
}
|
202 |
-
|
203 |
-
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.info-icon:before {
|
204 |
-
background : transparent url('../images/widgets/info-icon.png') no-repeat;
|
205 |
-
background-size : contain;
|
206 |
-
}
|
207 |
-
|
208 |
-
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-icon:before {
|
209 |
-
background : transparent url('../images/widgets/box-icon.png') no-repeat;
|
210 |
-
background-size : contain;
|
211 |
-
}
|
212 |
-
|
213 |
-
#yit-panel-sidebar .yit-panel-sidebar-widget-icon.box-white-icon:before {
|
214 |
-
background : transparent url('../images/widgets/box-white-icon.png') no-repeat;
|
215 |
-
background-size : contain;
|
216 |
-
}
|
217 |
-
|
218 |
-
/* ==== Membership Widget ==== */
|
219 |
-
#yit-panel-sidebar-membership-widget {
|
220 |
-
|
221 |
-
}
|
222 |
-
|
223 |
-
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-title {
|
224 |
-
text-align : center;
|
225 |
-
}
|
226 |
-
|
227 |
-
#yit-panel-sidebar-membership-widget .yit-panel-sidebar-widget-content {
|
228 |
-
background : transparent url('../images/widgets/membership-bg.png') no-repeat;
|
229 |
-
background-position : 105% 160%;
|
230 |
-
background-size : 50%;
|
231 |
-
}
|
232 |
-
|
233 |
-
#yit-panel-sidebar-membership-widget .membership-row {
|
234 |
-
margin-bottom: 20px;
|
235 |
-
clear : both;
|
236 |
-
overflow: hidden;
|
237 |
-
}
|
238 |
-
|
239 |
-
#yit-panel-sidebar-membership-widget .membership-total-price {
|
240 |
-
font-size : 25px;
|
241 |
-
font-weight : 700;
|
242 |
-
display : block;
|
243 |
-
width : 50%;
|
244 |
-
box-sizing : border-box;
|
245 |
-
float : left;
|
246 |
-
line-height : 37px;
|
247 |
-
|
248 |
-
}
|
249 |
-
|
250 |
-
#yit-panel-sidebar-membership-widget .membership-offer-text {
|
251 |
-
display : block;
|
252 |
-
font-size : 10px;
|
253 |
-
text-transform : uppercase;
|
254 |
-
width : 50%;
|
255 |
-
line-height : 14px;
|
256 |
-
box-sizing : border-box;
|
257 |
-
float : left;
|
258 |
-
}
|
259 |
-
|
260 |
-
#yit-panel-sidebar-membership-widget .membership-offer-text2 {
|
261 |
-
display : block;
|
262 |
-
font-size : 10px;
|
263 |
-
text-transform : uppercase;
|
264 |
-
text-align : right;
|
265 |
-
vertical-align : middle;
|
266 |
-
float : left;
|
267 |
-
}
|
268 |
-
|
269 |
-
#yit-panel-sidebar-membership-widget .membership-offer-sale-text {
|
270 |
-
display : block;
|
271 |
-
font-size : 22px;
|
272 |
-
color : #ff6340;
|
273 |
-
text-transform : uppercase;
|
274 |
-
text-align : left;
|
275 |
-
vertical-align : middle;
|
276 |
-
margin-left : 6px;
|
277 |
-
font-weight : 600;
|
278 |
-
float : left;
|
279 |
-
}
|
280 |
-
|
281 |
-
#yit-panel-sidebar-membership-widget .membership-buttons {
|
282 |
-
text-align : center;
|
283 |
-
margin-bottom : 10px;
|
284 |
-
}
|
285 |
-
|
286 |
-
/* ==== Important Links Widget ==== */
|
287 |
-
#yit-panel-sidebar-links-widget .yit-panel-sidebar-widget-content {
|
288 |
-
background : transparent url('../images/widgets/link-bg.png') no-repeat;
|
289 |
-
background-position : 110% 120%;
|
290 |
-
background-size : 50%;
|
291 |
-
}
|
292 |
-
|
293 |
-
ul.yit-panel-sidebar-links-list {
|
294 |
-
margin : 0;
|
295 |
-
}
|
296 |
-
|
297 |
-
ul.yit-panel-sidebar-links-list li {
|
298 |
-
margin : 0 0 10px 0;
|
299 |
-
}
|
300 |
-
|
301 |
-
ul.yit-panel-sidebar-links-list li:before {
|
302 |
-
content : " ";
|
303 |
-
width : 15px;
|
304 |
-
height : 13px;
|
305 |
-
display : inline-block;
|
306 |
-
background : transparent url('../images/ui-icons_454545_256x240.png') no-repeat -64px -144px;
|
307 |
-
margin-right : 7px;
|
308 |
-
}
|
309 |
-
|
310 |
-
/* === Sidebar Actions ===*/
|
311 |
-
#yit-panel-sidebar-actions {
|
312 |
-
text-align : right;
|
313 |
-
}
|
314 |
-
|
315 |
-
.yit-panel-sidebar-action-title {
|
316 |
-
margin-right : 5px;
|
317 |
-
text-transform : uppercase;
|
318 |
-
font-size : 11px;
|
319 |
-
}
|
320 |
-
|
321 |
-
#yit-panel-sidebar-action-hide {
|
322 |
-
text-align : right;
|
323 |
-
cursor : pointer;
|
324 |
-
}
|
325 |
-
|
326 |
-
.yit-panel-sidebar-action-hide-icon {
|
327 |
-
color : #f4f4f4;
|
328 |
-
background : #565656;
|
329 |
-
border-radius : 50%;
|
330 |
-
}
|
331 |
-
|
332 |
-
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-title {
|
333 |
-
color : #000;
|
334 |
-
}
|
335 |
-
|
336 |
-
#yit-panel-sidebar-action-hide:hover .yit-panel-sidebar-action-hide-icon {
|
337 |
-
background : #000;
|
338 |
-
}
|
339 |
-
|
340 |
-
.hide-on-click .yit-panel-sidebar-action-hide-icon:before {
|
341 |
-
content : "\f139" !important;
|
342 |
-
}
|
343 |
-
|
344 |
-
/* === Responsive === */
|
345 |
-
|
346 |
-
@media (min-width : 767px) {
|
347 |
-
#wpbody-content #yit-panel-sidebar {
|
348 |
-
margin-right : 15px;
|
349 |
-
}
|
350 |
-
}
|
351 |
-
|
352 |
-
@media (max-width : 767px) {
|
353 |
-
#yit-panel-sidebar {
|
354 |
-
width : 275px;
|
355 |
-
margin : 20px auto 0 auto;
|
356 |
-
float : none;
|
357 |
-
display : block;
|
358 |
-
}
|
359 |
-
|
360 |
-
#yit-panel-sidebar.yith-panel-sidebar-hidden {
|
361 |
-
position : static;
|
362 |
-
}
|
363 |
-
|
364 |
-
#yit-panel-sidebar-actions {
|
365 |
-
text-align : center;
|
366 |
-
}
|
367 |
-
|
368 |
-
#yit-panel-sidebar-action-hide {
|
369 |
-
text-align : center;
|
370 |
-
}
|
371 |
-
}
|
372 |
-
|
373 |
-
@media (max-width : 480px) {
|
374 |
-
|
375 |
-
}
|
376 |
-
|
377 |
-
@media (min-width : 768px) and (max-width : 992px) {
|
378 |
-
}
|
379 |
-
|
380 |
-
@media (min-width : 980px) and (max-width : 1199px) {
|
381 |
-
}
|
382 |
-
|
383 |
-
@media (min-width : 1200px) {
|
384 |
-
|
385 |
-
}
|
386 |
-
|
387 |
-
@media only screen and (-webkit-min-device-pixel-ratio : 1.5), only screen and (-o-min-device-pixel-ratio : 3/2), only screen and (min--moz-device-pixel-ratio : 1.5), only screen and (min-device-pixel-ratio : 1.5) {
|
388 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/css/yit-plugin-panel.css
CHANGED
@@ -6,85 +6,6 @@
|
|
6 |
* It is also available through the world-wide-web at this URL:
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
-
|
10 |
-
/* onoff */
|
11 |
-
.rm_onoff input {
|
12 |
-
display : none;
|
13 |
-
}
|
14 |
-
|
15 |
-
.rm_onoff input + span {
|
16 |
-
cursor : pointer;
|
17 |
-
text-indent : -9999px;
|
18 |
-
display : block;
|
19 |
-
width : 85px;
|
20 |
-
height : 37px;
|
21 |
-
background : transparent url(../images/off.png);
|
22 |
-
}
|
23 |
-
|
24 |
-
.rm_onoff input:checked + span {
|
25 |
-
background : transparent url(../images/on.png);
|
26 |
-
}
|
27 |
-
|
28 |
-
.rm_onoff input.onoffchecked + span {
|
29 |
-
background : transparent url(../images/on.png);
|
30 |
-
}
|
31 |
-
|
32 |
-
/* slider */
|
33 |
-
/*numbers*/
|
34 |
-
.ui-slider .maxCaption, .ui-slider .minCaption {
|
35 |
-
margin-bottom : 5px;
|
36 |
-
}
|
37 |
-
|
38 |
-
.ui-slider .feedback {
|
39 |
-
background : url(../images/slider/tooltip.png) no-repeat center top;
|
40 |
-
position : absolute;
|
41 |
-
top : -25px;
|
42 |
-
width : 35px;
|
43 |
-
height : 43px;
|
44 |
-
text-align : center;
|
45 |
-
width : 100%;
|
46 |
-
display : block;
|
47 |
-
}
|
48 |
-
|
49 |
-
.ui-slider .feedback strong {
|
50 |
-
display : inline-block;
|
51 |
-
padding-top : 4px;
|
52 |
-
top : -30px;
|
53 |
-
}
|
54 |
-
|
55 |
-
/*handle*/
|
56 |
-
.yit-options .ui-slider-horizontal .ui-slider-handle,
|
57 |
-
.yit_options .ui-slider-horizontal .ui-slider-handle {
|
58 |
-
background : transparent url(../images/slider/handle.png) no-repeat left top !important;
|
59 |
-
border : 0px !important;
|
60 |
-
top : -.35em !important;
|
61 |
-
width : 18px !important;
|
62 |
-
height : 19px !important;
|
63 |
-
}
|
64 |
-
|
65 |
-
/*bg on the left:grey*/
|
66 |
-
.yit-options .ui-slider.ui-widget-content,
|
67 |
-
.yit_options .ui-slider.ui-widget-content {
|
68 |
-
background : url(../images/slider/grey.gif) repeat-x left center !important;
|
69 |
-
border-color : #c1c1c0 !important;
|
70 |
-
height : 10px !important;
|
71 |
-
}
|
72 |
-
|
73 |
-
.iris-slider-offset.ui-slider.ui-widget-content {
|
74 |
-
background : transparent !important;
|
75 |
-
height : auto !important;
|
76 |
-
}
|
77 |
-
|
78 |
-
/*bg on the right:orange*/
|
79 |
-
.ui-slider.ui-widget-content .ui-widget-header {
|
80 |
-
background : url(../images/slider/orange.gif) repeat-x left center !important;
|
81 |
-
left : 2px !important;
|
82 |
-
-webkit-border-radius : 15px;
|
83 |
-
-moz-border-radius : 15px;
|
84 |
-
-khtml-border-radius : 15px;
|
85 |
-
border-radius : 15px;
|
86 |
-
}
|
87 |
-
|
88 |
.plugin-option tr {
|
89 |
border-bottom : 1px solid #ccc;
|
90 |
}
|
@@ -100,146 +21,36 @@
|
|
100 |
float : left;
|
101 |
}
|
102 |
|
103 |
-
.plugin-option .form-table td {
|
104 |
padding : 25px 10px;
|
105 |
}
|
106 |
|
107 |
-
.yit_options .select_wrapper,
|
108 |
-
.yit-options .select_wrapper {
|
109 |
-
background : url("../images/select.png") no-repeat scroll right center #FAFAFA;
|
110 |
-
border-color : #CCCCCC #EEEEEE #EEEEEE #CCCCCC;
|
111 |
-
border-radius : 4px 4px 4px 4px;
|
112 |
-
border-style : solid;
|
113 |
-
border-width : 1px;
|
114 |
-
color : #555555;
|
115 |
-
display : block;
|
116 |
-
float : left;
|
117 |
-
font-family : sans-serif;
|
118 |
-
font-size : 12px;
|
119 |
-
height : 26px;
|
120 |
-
margin-bottom : 9px !important;
|
121 |
-
margin-left : 0;
|
122 |
-
margin-right : 5px;
|
123 |
-
margin-top : 0;
|
124 |
-
width : 400px;
|
125 |
-
}
|
126 |
-
|
127 |
-
.chosen .select_wrapper {
|
128 |
-
background : none;
|
129 |
-
border : none;
|
130 |
-
}
|
131 |
-
|
132 |
-
.chosen .select_wrapper .chosen-container {
|
133 |
-
width : 338px !important;
|
134 |
-
}
|
135 |
-
|
136 |
-
.chosen .select_wrapper .chosen-container .search-field input {
|
137 |
-
height : 27px !important;
|
138 |
-
color : #333;
|
139 |
-
}
|
140 |
-
|
141 |
-
.chosen .select_wrapper .chosen-container .chosen-choices {
|
142 |
-
border : 1px solid #ddd;
|
143 |
-
box-shadow : none;
|
144 |
-
}
|
145 |
-
|
146 |
-
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice {
|
147 |
-
height : 15px !important;
|
148 |
-
min-width : 105px;
|
149 |
-
}
|
150 |
-
|
151 |
-
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice span {
|
152 |
-
line-height : 15px;
|
153 |
-
height : 15px;
|
154 |
-
padding-top : 2px;
|
155 |
-
}
|
156 |
-
|
157 |
-
.chosen .select_wrapper .chosen-container .chosen-choices li.search-choice a.search-choice-close {
|
158 |
-
top : 5px;
|
159 |
-
}
|
160 |
-
|
161 |
-
.chosen .select_wrapper .chosen-container .chosen-drop .chosen-search input {
|
162 |
-
width : 100% !important;
|
163 |
-
}
|
164 |
-
|
165 |
-
/* === Multiple Chosen Customizzation === */
|
166 |
-
|
167 |
-
.yith-choosen .chosen-choices {
|
168 |
-
line-height : 27px;
|
169 |
-
min-height : 27px;
|
170 |
-
border : 1px solid #ddd;
|
171 |
-
}
|
172 |
-
|
173 |
-
.yith-choosen .chosen-container-active .chosen-choices {
|
174 |
-
border : 1px solid #5b9dd9;
|
175 |
-
-webkit-box-shadow : 0 0 2px rgba(30, 140, 190, .8);
|
176 |
-
box-shadow : 0 0 2px rgba(30, 140, 190, .8);
|
177 |
-
}
|
178 |
-
|
179 |
-
.select_wrapper span {
|
180 |
-
height : 26px;
|
181 |
-
line-height : 26px;
|
182 |
-
padding-left : 6px;
|
183 |
-
position : absolute;
|
184 |
-
z-index : 2;
|
185 |
-
overflow : hidden;
|
186 |
-
}
|
187 |
-
|
188 |
.ie8 .yit_options select,
|
189 |
.ie8 .yit-options select {
|
190 |
height : 26px;
|
191 |
}
|
192 |
|
193 |
-
.yit_options select, .yit-options select, .the-metabox .select_wrapper select {
|
194 |
-
cursor : pointer;
|
195 |
-
height : 28px;
|
196 |
-
margin : 0;
|
197 |
-
opacity : 0;
|
198 |
-
padding : 0;
|
199 |
-
position : relative;
|
200 |
-
width : inherit;
|
201 |
-
z-index : 4;
|
202 |
-
background-color : #FAFAFA;
|
203 |
-
}
|
204 |
-
|
205 |
-
/* === Single Chosen Customizzation === */
|
206 |
-
|
207 |
-
.yith-choosen .chosen-container-single .chosen-default {
|
208 |
-
background : transparent;
|
209 |
-
border-color : #ddd;
|
210 |
-
}
|
211 |
-
|
212 |
-
.yith-choosen .chosen-search > input[type=text] {
|
213 |
-
width : 100% !important;
|
214 |
-
}
|
215 |
-
|
216 |
-
.yith-choosen .chosen-container-single .chosen-single {
|
217 |
-
background : transparent;
|
218 |
-
border-color : #ddd;
|
219 |
-
}
|
220 |
-
|
221 |
/* Style to woocommerce panel*/
|
222 |
|
223 |
-
#plugin-fw-wc {
|
224 |
padding-top : 20px;
|
225 |
}
|
226 |
|
227 |
-
#plugin-fw-wc table.form-table {
|
228 |
background-color : #fff;
|
229 |
margin-bottom : 20px;
|
230 |
}
|
231 |
|
232 |
-
#plugin-fw-wc table.form-table th {
|
233 |
padding : 20px;
|
234 |
}
|
235 |
|
236 |
-
#plugin-fw-wc h3 {
|
237 |
padding : 0px 10px 10px;
|
238 |
border-bottom : 1px solid #eee;
|
239 |
}
|
240 |
|
241 |
/* === VIDEO BOX === */
|
242 |
-
|
243 |
.yith-videobox-wrapper {
|
244 |
padding-top : 20px;
|
245 |
}
|
@@ -314,10 +125,12 @@
|
|
314 |
}
|
315 |
|
316 |
.yit-plugin-changelog {
|
317 |
-
|
318 |
-
|
|
|
|
|
319 |
z-index : 999;
|
320 |
-
|
321 |
}
|
322 |
|
323 |
/* === Plugins Licence Activation === */
|
@@ -354,7 +167,7 @@
|
|
354 |
.yit-container.plugin-licence-activation .message {
|
355 |
display : none;
|
356 |
line-height : normal;
|
357 |
-
background : #
|
358 |
padding-left : 65px;
|
359 |
padding-right : 15px;
|
360 |
width : 150px;
|
@@ -520,7 +333,7 @@
|
|
520 |
}
|
521 |
|
522 |
.yit-container.plugin-licence-activation table tbody tr {
|
523 |
-
background-color : #
|
524 |
}
|
525 |
|
526 |
.yit-container.plugin-licence-activation table thead tr th {
|
@@ -659,8 +472,8 @@
|
|
659 |
width : 6em;
|
660 |
}
|
661 |
|
662 |
-
#wpwrap h2.nav-tab-wrapper
|
663 |
-
border-bottom: 1px solid #ccc;
|
664 |
}
|
665 |
|
666 |
/* === YIT FRAMEWORK === */
|
@@ -671,26 +484,45 @@
|
|
671 |
}
|
672 |
|
673 |
/* === Panel Content and Container === */
|
674 |
-
.yit-admin-panel-container{
|
675 |
-
position:relative;
|
676 |
-
}
|
677 |
-
.yit-admin-panel-content-wrap {
|
678 |
-
width : calc(100% - 300px);
|
679 |
-
display : inline-block;
|
680 |
}
|
681 |
|
682 |
-
.yit-admin-panel-content-wrap
|
683 |
width : 100%;
|
684 |
display : block;
|
685 |
}
|
686 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
687 |
/* === Responsive === */
|
688 |
|
689 |
@media (max-width : 767px) {
|
690 |
-
|
691 |
-
width : 100%;
|
692 |
-
display : block;
|
693 |
-
}
|
694 |
}
|
695 |
|
696 |
@media (max-width : 480px) {
|
6 |
* It is also available through the world-wide-web at this URL:
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
9 |
.plugin-option tr {
|
10 |
border-bottom : 1px solid #ccc;
|
11 |
}
|
21 |
float : left;
|
22 |
}
|
23 |
|
24 |
+
.plugin-option .form-table > tbody > tr > td {
|
25 |
padding : 25px 10px;
|
26 |
}
|
27 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
28 |
.ie8 .yit_options select,
|
29 |
.ie8 .yit-options select {
|
30 |
height : 26px;
|
31 |
}
|
32 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
/* Style to woocommerce panel*/
|
34 |
|
35 |
+
#plugin-fw-wc, #yith-plugin-fw-panel {
|
36 |
padding-top : 20px;
|
37 |
}
|
38 |
|
39 |
+
#plugin-fw-wc table.form-table, #yith-plugin-fw-panel table.form-table {
|
40 |
background-color : #fff;
|
41 |
margin-bottom : 20px;
|
42 |
}
|
43 |
|
44 |
+
#plugin-fw-wc table.form-table th, #yith-plugin-fw-panel table.form-table th {
|
45 |
padding : 20px;
|
46 |
}
|
47 |
|
48 |
+
#plugin-fw-wc h3, #yith-plugin-fw-panel h3 {
|
49 |
padding : 0px 10px 10px;
|
50 |
border-bottom : 1px solid #eee;
|
51 |
}
|
52 |
|
53 |
/* === VIDEO BOX === */
|
|
|
54 |
.yith-videobox-wrapper {
|
55 |
padding-top : 20px;
|
56 |
}
|
125 |
}
|
126 |
|
127 |
.yit-plugin-changelog {
|
128 |
+
height : calc(100% - 15px);
|
129 |
+
width : calc(100% - 15px);
|
130 |
+
overflow-x : hidden;
|
131 |
+
overflow-y : auto;
|
132 |
z-index : 999;
|
133 |
+
background : #fcfcfc;
|
134 |
}
|
135 |
|
136 |
/* === Plugins Licence Activation === */
|
167 |
.yit-container.plugin-licence-activation .message {
|
168 |
display : none;
|
169 |
line-height : normal;
|
170 |
+
background : #fff url(../images/licence-error.png) 15px center no-repeat;
|
171 |
padding-left : 65px;
|
172 |
padding-right : 15px;
|
173 |
width : 150px;
|
333 |
}
|
334 |
|
335 |
.yit-container.plugin-licence-activation table tbody tr {
|
336 |
+
background-color : #fff;
|
337 |
}
|
338 |
|
339 |
.yit-container.plugin-licence-activation table thead tr th {
|
472 |
width : 6em;
|
473 |
}
|
474 |
|
475 |
+
#wpwrap h2.nav-tab-wrapper, #wpbody-content h2.nav-tab-wrapper {
|
476 |
+
border-bottom : 1px solid #ccc;
|
477 |
}
|
478 |
|
479 |
/* === YIT FRAMEWORK === */
|
484 |
}
|
485 |
|
486 |
/* === Panel Content and Container === */
|
487 |
+
.yit-admin-panel-container {
|
488 |
+
position : relative;
|
|
|
|
|
|
|
|
|
489 |
}
|
490 |
|
491 |
+
.yit-admin-panel-content-wrap {
|
492 |
width : 100%;
|
493 |
display : block;
|
494 |
}
|
495 |
|
496 |
+
.yith-disabled {
|
497 |
+
opacity : 0.3;
|
498 |
+
pointer-events : none;
|
499 |
+
}
|
500 |
+
|
501 |
+
.yith-plugin-fw-select,
|
502 |
+
.yith-plugin-fw-slider-container,
|
503 |
+
.yith-plugin-fw-text-input,
|
504 |
+
.yith-plugin-fw-text-array-table,
|
505 |
+
.yith-plugin-fw-textarea {
|
506 |
+
width : 400px;
|
507 |
+
max-width : 100%;
|
508 |
+
}
|
509 |
+
|
510 |
+
.yith-plugin-fw-text-array-table input {
|
511 |
+
width : 100%;
|
512 |
+
}
|
513 |
+
|
514 |
+
.yith-plugin-fw-panel-wc-row.preview {
|
515 |
+
float : none;
|
516 |
+
}
|
517 |
+
|
518 |
+
.yith-plugin-fw-panel .subsubsub {
|
519 |
+
margin : 0;
|
520 |
+
}
|
521 |
+
|
522 |
/* === Responsive === */
|
523 |
|
524 |
@media (max-width : 767px) {
|
525 |
+
|
|
|
|
|
|
|
526 |
}
|
527 |
|
528 |
@media (max-width : 480px) {
|
plugin-fw/assets/css/yit-upgrader.css
CHANGED
@@ -9,6 +9,10 @@
|
|
9 |
}
|
10 |
|
11 |
.yit-plugin-changelog {
|
|
|
|
|
|
|
|
|
|
|
12 |
background: #fcfcfc;
|
13 |
-
height: 97%;
|
14 |
}
|
9 |
}
|
10 |
|
11 |
.yit-plugin-changelog {
|
12 |
+
height : calc(100% - 15px);
|
13 |
+
width : calc(100% - 15px);
|
14 |
+
overflow-x : hidden;
|
15 |
+
overflow-y : auto;
|
16 |
+
z-index : 999;
|
17 |
background: #fcfcfc;
|
|
|
18 |
}
|
plugin-fw/assets/css/yith-fields.css
ADDED
@@ -0,0 +1,328 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
.yith-plugin-fw span.description {
|
2 |
+
display : block;
|
3 |
+
margin-top : 5px;
|
4 |
+
font-size : 12px;
|
5 |
+
color : #777;
|
6 |
+
font-style : italic;
|
7 |
+
clear : both;
|
8 |
+
}
|
9 |
+
|
10 |
+
.yith-disabled {
|
11 |
+
opacity : 0.3;
|
12 |
+
pointer-events : none;
|
13 |
+
}
|
14 |
+
|
15 |
+
.yith-plugin-fw-field-wrapper:not(.yith-plugin-fw-title-field-wrapper) {
|
16 |
+
display : block;
|
17 |
+
width : 100%;
|
18 |
+
}
|
19 |
+
|
20 |
+
.yith-plugin-fw-field-wrapper span.desc {
|
21 |
+
display : block;
|
22 |
+
width : 100%;
|
23 |
+
}
|
24 |
+
|
25 |
+
.yith-plugin-fw-title-field-wrapper h3.title {
|
26 |
+
width : 100%;
|
27 |
+
}
|
28 |
+
|
29 |
+
.the-metabox .yith-plugin-fw-title-field-wrapper h3.title {
|
30 |
+
float : left;
|
31 |
+
}
|
32 |
+
|
33 |
+
.yith-plugin-fw input[type=email],
|
34 |
+
.yith-plugin-fw input[type=number],
|
35 |
+
.yith-plugin-fw input[type=text]:not(.select2-search__field):not(.wp-color-picker),
|
36 |
+
.yith-plugin-fw select,
|
37 |
+
.woocommerce .yith-plugin-fw table.form-table select {
|
38 |
+
width : 400px;
|
39 |
+
max-width : 100%;
|
40 |
+
height : 30px;
|
41 |
+
padding : 5px;
|
42 |
+
}
|
43 |
+
|
44 |
+
.woocommerce .yith-plugin-fw table.form-table input[type=text].colorpick,
|
45 |
+
.yith-plugin-fw input[type=text].colorpick {
|
46 |
+
width : 6em;
|
47 |
+
}
|
48 |
+
|
49 |
+
.woocommerce .yith-plugin-fw input[type=text].select2-search__field {
|
50 |
+
margin : 10px 0 0 2px;
|
51 |
+
padding : 0;
|
52 |
+
}
|
53 |
+
|
54 |
+
.yith-plugin-fw textarea {
|
55 |
+
width : 400px;
|
56 |
+
max-width : 100%;
|
57 |
+
padding : 5px;
|
58 |
+
}
|
59 |
+
|
60 |
+
.yith-plugin-fw input[type=email],
|
61 |
+
.yith-plugin-fw input[type=number],
|
62 |
+
.yith-plugin-fw input[type=text]:not(.select2-search__field) {
|
63 |
+
padding : 5px 10px;
|
64 |
+
}
|
65 |
+
|
66 |
+
/* ------------- ICONS ------------- */
|
67 |
+
.yit-icons-manager-wrapper {
|
68 |
+
width : 100%;
|
69 |
+
max-width : 400px;
|
70 |
+
}
|
71 |
+
|
72 |
+
.yit-icons-manager-text {
|
73 |
+
width : 100%;
|
74 |
+
}
|
75 |
+
|
76 |
+
.yit-icons-manager-icon-text {
|
77 |
+
width : calc(100% - 35px) !important;
|
78 |
+
height : 30px;
|
79 |
+
float : left;
|
80 |
+
margin : 0;
|
81 |
+
}
|
82 |
+
|
83 |
+
.yit-icons-manager-icon-preview {
|
84 |
+
width : 30px;
|
85 |
+
height : 30px;
|
86 |
+
margin-right : 5px;
|
87 |
+
float : left;
|
88 |
+
padding-top : 6px;
|
89 |
+
box-sizing : border-box;
|
90 |
+
text-align : center;
|
91 |
+
background : #f1f1f1;
|
92 |
+
}
|
93 |
+
|
94 |
+
.yit-icons-manager-list-wrapper {
|
95 |
+
margin : 10px 0;
|
96 |
+
box-shadow : 0 0 0 1px #ddd;
|
97 |
+
}
|
98 |
+
|
99 |
+
ul.yit-icons-manager-list {
|
100 |
+
width : 100%;
|
101 |
+
height : 300px;
|
102 |
+
overflow-y : scroll;
|
103 |
+
margin : 0;
|
104 |
+
}
|
105 |
+
|
106 |
+
ul.yit-icons-manager-list li {
|
107 |
+
float : left;
|
108 |
+
width : 30px;
|
109 |
+
height : 30px;
|
110 |
+
padding-top : 6px;
|
111 |
+
box-sizing : border-box;
|
112 |
+
text-align : center;
|
113 |
+
background : #f1f1f1;
|
114 |
+
margin : 1px;
|
115 |
+
cursor : pointer;
|
116 |
+
}
|
117 |
+
|
118 |
+
ul.yit-icons-manager-list li:hover {
|
119 |
+
background : #c5dcf6;
|
120 |
+
}
|
121 |
+
|
122 |
+
ul.yit-icons-manager-list li.active {
|
123 |
+
background : #d4f0ff;
|
124 |
+
}
|
125 |
+
|
126 |
+
.yit-icons-manager-action-set-default {
|
127 |
+
margin-bottom : 0;
|
128 |
+
}
|
129 |
+
|
130 |
+
.yit-icons-manager-default-icon-preview {
|
131 |
+
height : 100%;
|
132 |
+
display : inline-block;
|
133 |
+
padding-left : 10px;
|
134 |
+
border-left : 1px solid #ccc;
|
135 |
+
margin-left : 10px;
|
136 |
+
}
|
137 |
+
|
138 |
+
/* ------- Text Array ------- */
|
139 |
+
.yith-plugin-fw-text-array-table td {
|
140 |
+
padding : 1px;
|
141 |
+
}
|
142 |
+
|
143 |
+
.yith-plugin-fw-text-array-table input[type=text],
|
144 |
+
.woocommerce table.form-table table.yith-plugin-fw-text-array-table input[type=text] {
|
145 |
+
width : 100%;
|
146 |
+
}
|
147 |
+
|
148 |
+
/* ------- Image Gallery ------- */
|
149 |
+
.yith-plugin-fw .image-gallery ul li {
|
150 |
+
display : inline-block;
|
151 |
+
width : 80px;
|
152 |
+
margin-left : 10px;
|
153 |
+
position : relative;
|
154 |
+
}
|
155 |
+
|
156 |
+
.yith-plugin-fw .image-gallery ul li img {
|
157 |
+
width : 80px;
|
158 |
+
border : 1px solid #ccc;
|
159 |
+
}
|
160 |
+
|
161 |
+
.yith-plugin-fw .image-gallery ul li ul {
|
162 |
+
position : absolute;
|
163 |
+
top : -6px;
|
164 |
+
right : -1px;
|
165 |
+
width : 20px;
|
166 |
+
height : 20px;
|
167 |
+
}
|
168 |
+
|
169 |
+
.yith-plugin-fw .image-gallery ul a.delete {
|
170 |
+
background : url(../images/x.png) no-repeat;
|
171 |
+
width : 20px;
|
172 |
+
height : 20px;
|
173 |
+
display : block;
|
174 |
+
text-indent : -99999px;
|
175 |
+
}
|
176 |
+
|
177 |
+
/* ------- OnOff ------- */
|
178 |
+
.yith-plugin-fw-onoff-container input {
|
179 |
+
display : none;
|
180 |
+
}
|
181 |
+
|
182 |
+
.yith-plugin-fw-onoff-container input + span {
|
183 |
+
cursor : pointer;
|
184 |
+
text-indent : -9999px;
|
185 |
+
display : block;
|
186 |
+
width: 36px;
|
187 |
+
height: 20px;
|
188 |
+
background: #a4a4a4;
|
189 |
+
border-radius: 24px;
|
190 |
+
position: relative;
|
191 |
+
transition: all 0.3s;
|
192 |
+
}
|
193 |
+
|
194 |
+
.yith-plugin-fw-onoff-container input + span:before{
|
195 |
+
content: '';
|
196 |
+
background: #fff;
|
197 |
+
width:16px;
|
198 |
+
height: 16px;
|
199 |
+
border-radius: 50%;
|
200 |
+
position: absolute;
|
201 |
+
top:2px;
|
202 |
+
left:2px;
|
203 |
+
transition: all 0.3s;
|
204 |
+
}
|
205 |
+
|
206 |
+
.yith-plugin-fw-onoff-container input:checked + span,
|
207 |
+
.yith-plugin-fw-onoff-container input.onoffchecked + span {
|
208 |
+
background: #0073aa;
|
209 |
+
}
|
210 |
+
|
211 |
+
.yith-plugin-fw-onoff-container input:checked + span:before,
|
212 |
+
.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
213 |
+
left:18px;
|
214 |
+
}
|
215 |
+
|
216 |
+
/* ------- Preview ------- */
|
217 |
+
.yith-plugin-fw-preview-field {
|
218 |
+
max-height : 200px;
|
219 |
+
}
|
220 |
+
|
221 |
+
/* ------- Sidebar Layout ------- */
|
222 |
+
.yith-plugin-fw-sidebar-layout input[type="radio"] {
|
223 |
+
display : none;
|
224 |
+
width : 0px;
|
225 |
+
}
|
226 |
+
|
227 |
+
.yith-plugin-fw-sidebar-layout input[type="radio"]:first-child {
|
228 |
+
margin-right : -2px;
|
229 |
+
}
|
230 |
+
|
231 |
+
.yith-plugin-fw-sidebar-layout input[type="radio"] + img {
|
232 |
+
border : 2px solid #fff;
|
233 |
+
padding : 1px;
|
234 |
+
}
|
235 |
+
|
236 |
+
.yith-plugin-fw-sidebar-layout input[type="radio"] + img:hover {
|
237 |
+
cursor : pointer;
|
238 |
+
}
|
239 |
+
|
240 |
+
.yith-plugin-fw-sidebar-layout input[checked] + img {
|
241 |
+
border : 2px solid #f2ad35;
|
242 |
+
padding : 1px;
|
243 |
+
}
|
244 |
+
|
245 |
+
.yith-plugin-fw-sidebar-layout select {
|
246 |
+
vertical-align : 12px;
|
247 |
+
}
|
248 |
+
|
249 |
+
.yit-admin-panel-content-wrap .yith-plugin-fw-sidebar-layout label {
|
250 |
+
font-weight : bold;
|
251 |
+
width : 200px;
|
252 |
+
float : left;
|
253 |
+
line-height : 23px;
|
254 |
+
margin-left : -230px;
|
255 |
+
}
|
256 |
+
|
257 |
+
/* ------- Slider ------- */
|
258 |
+
.yith-plugin-fw .slider {
|
259 |
+
padding-top : 20px;
|
260 |
+
}
|
261 |
+
|
262 |
+
.ui-slider .minCaption {
|
263 |
+
position : absolute;
|
264 |
+
right : 95%;
|
265 |
+
top : -6px;
|
266 |
+
margin-right : 11px;
|
267 |
+
}
|
268 |
+
|
269 |
+
.ui-slider .maxCaption {
|
270 |
+
position : absolute;
|
271 |
+
left : 95%;
|
272 |
+
top : -6px;
|
273 |
+
margin-left : 20px;
|
274 |
+
}
|
275 |
+
|
276 |
+
.ui-slider-horizontal .ui-slider-handle {
|
277 |
+
background : #fff;
|
278 |
+
border : 0px !important;
|
279 |
+
top : -12px !important;
|
280 |
+
border-radius : 50%;
|
281 |
+
width : 27px !important;
|
282 |
+
height : 27px !important;
|
283 |
+
box-sizing : border-box;
|
284 |
+
box-shadow : 0 1px 7px -1px rgba(0, 0, 0, 0.5);
|
285 |
+
font-size : 13px;
|
286 |
+
padding : 6px 0;
|
287 |
+
font-weight : 600;
|
288 |
+
color : #555;
|
289 |
+
text-align : center;
|
290 |
+
}
|
291 |
+
|
292 |
+
.ui-slider.ui-widget-content {
|
293 |
+
background : #ccc;
|
294 |
+
border : none !important;
|
295 |
+
height : 3px !important;
|
296 |
+
border-radius : 3px !important;
|
297 |
+
width : 90%;
|
298 |
+
margin : 15px 5% 20px 5%;
|
299 |
+
}
|
300 |
+
|
301 |
+
.iris-slider-offset.ui-slider.ui-widget-content {
|
302 |
+
background : transparent !important;
|
303 |
+
height : auto !important;
|
304 |
+
}
|
305 |
+
|
306 |
+
.ui-slider.ui-widget-content .ui-widget-header {
|
307 |
+
background : #4b93ff;
|
308 |
+
left : 0px !important;
|
309 |
+
-webkit-border-radius : 3px;
|
310 |
+
-moz-border-radius : 3px;
|
311 |
+
-khtml-border-radius : 3px;
|
312 |
+
border-radius : 3px;
|
313 |
+
}
|
314 |
+
|
315 |
+
/* ------- Select2 ------- */
|
316 |
+
.yith-plugin-fw-select2-wrapper {
|
317 |
+
width : 400px;
|
318 |
+
}
|
319 |
+
|
320 |
+
/* ------- Textarea ------- */
|
321 |
+
.yith-plugin-fw-textarea-editor-field-wrapper {
|
322 |
+
clear : both;
|
323 |
+
}
|
324 |
+
|
325 |
+
/* ------- Buttons ------- */
|
326 |
+
.yith-plugin-fw-buttons-field-wrapper {
|
327 |
+
margin-top : 7px;
|
328 |
+
}
|
plugin-fw/assets/images/chosen/chosen-sprite.png
DELETED
Binary file
|
plugin-fw/assets/images/chosen/chosen-sprite@2x.png
DELETED
Binary file
|
plugin-fw/assets/images/off.png
DELETED
Binary file
|
plugin-fw/assets/images/on.png
DELETED
Binary file
|
plugin-fw/assets/images/select.png
DELETED
Binary file
|
plugin-fw/assets/images/slider/grey.gif
DELETED
Binary file
|
plugin-fw/assets/images/slider/handle.png
DELETED
Binary file
|
plugin-fw/assets/images/slider/orange.gif
DELETED
Binary file
|
plugin-fw/assets/images/slider/tooltip.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/box-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/box-white-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/despacho.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/info-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-bg.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-bg2.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/link-icon.png
DELETED
Binary file
|
plugin-fw/assets/images/widgets/membership-bg.png
DELETED
Binary file
|
plugin-fw/assets/js/chosen/ajax-chosen.jquery.js
DELETED
@@ -1,81 +0,0 @@
|
|
1 |
-
// Generated by CoffeeScript 1.3.1
|
2 |
-
|
3 |
-
(function($) {
|
4 |
-
return $.fn.ajaxChosen = function(settings, callback) {
|
5 |
-
var chosenXhr, defaultOptions, options, select;
|
6 |
-
if (settings == null) {
|
7 |
-
settings = {};
|
8 |
-
}
|
9 |
-
if (callback == null) {
|
10 |
-
callback = function() {};
|
11 |
-
}
|
12 |
-
defaultOptions = {
|
13 |
-
minTermLength: 3,
|
14 |
-
afterTypeDelay: 500,
|
15 |
-
jsonTermKey: "term"
|
16 |
-
};
|
17 |
-
select = this;
|
18 |
-
chosenXhr = null;
|
19 |
-
options = $.extend({}, defaultOptions, settings);
|
20 |
-
this.chosen();
|
21 |
-
return this.each(function() {
|
22 |
-
return $(this).next('.chosen-container').find(".search-field > input, .chosen-search > input").bind('keyup', function() {
|
23 |
-
var field, msg, success, val;
|
24 |
-
val = $.trim($(this).attr('value'));
|
25 |
-
msg = val.length < options.minTermLength ? "Keep typing..." : "Looking for '" + val + "'";
|
26 |
-
select.next('.chosen-container').find('.no-results').text(msg);
|
27 |
-
if (val === $(this).data('prevVal')) {
|
28 |
-
return false;
|
29 |
-
}
|
30 |
-
$(this).data('prevVal', val);
|
31 |
-
if (this.timer) {
|
32 |
-
clearTimeout(this.timer);
|
33 |
-
}
|
34 |
-
if (val.length < options.minTermLength) {
|
35 |
-
return false;
|
36 |
-
}
|
37 |
-
field = $(this);
|
38 |
-
if (!(options.data != null)) {
|
39 |
-
options.data = {};
|
40 |
-
}
|
41 |
-
options.data[options.jsonTermKey] = val;
|
42 |
-
if (options.dataCallback != null) {
|
43 |
-
options.data = options.dataCallback(options.data);
|
44 |
-
}
|
45 |
-
success = options.success;
|
46 |
-
options.success = function(data) {
|
47 |
-
var items, selected_values;
|
48 |
-
if (!(data != null)) {
|
49 |
-
return;
|
50 |
-
}
|
51 |
-
selected_values = [];
|
52 |
-
select.find('option').each(function() {
|
53 |
-
if (!$(this).is(":selected")) {
|
54 |
-
return $(this).remove();
|
55 |
-
} else {
|
56 |
-
return selected_values.push($(this).val() + "-" + $(this).text());
|
57 |
-
}
|
58 |
-
});
|
59 |
-
items = callback(data);
|
60 |
-
$.each(items, function(value, text) {
|
61 |
-
if ($.inArray(value + "-" + text, selected_values) === -1) {
|
62 |
-
return $("<option />").attr('value', value).html(text).appendTo(select);
|
63 |
-
}
|
64 |
-
});
|
65 |
-
select.trigger("chosen:updated");
|
66 |
-
if (success != null) {
|
67 |
-
success(data);
|
68 |
-
}
|
69 |
-
field.attr('value', val);
|
70 |
-
return field.css('width', 'auto');
|
71 |
-
};
|
72 |
-
return this.timer = setTimeout(function() {
|
73 |
-
if (chosenXhr) {
|
74 |
-
chosenXhr.abort();
|
75 |
-
}
|
76 |
-
return chosenXhr = $.ajax(options);
|
77 |
-
}, options.afterTypeDelay);
|
78 |
-
});
|
79 |
-
});
|
80 |
-
};
|
81 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/chosen/ajax-chosen.jquery.min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
// Generated by CoffeeScript 1.3.1
|
2 |
-
(function(e){return e.fn.ajaxChosen=function(t,n){var r,i,s,o;t==null&&(t={});n==null&&(n=function(){});i={minTermLength:3,afterTypeDelay:500,jsonTermKey:"term"};o=this;r=null;s=e.extend({},i,t);this.chosen();return this.each(function(){return e(this).next(".chosen-container").find(".search-field > input, .chosen-search > input").bind("keyup",function(){var t,i,u,a;a=e.trim(e(this).attr("value"));i=a.length<s.minTermLength?"Keep typing...":"Looking for '"+a+"'";o.next(".chosen-container").find(".no-results").text(i);if(a===e(this).data("prevVal"))return!1;e(this).data("prevVal",a);this.timer&&clearTimeout(this.timer);if(a.length<s.minTermLength)return!1;t=e(this);s.data==null&&(s.data={});s.data[s.jsonTermKey]=a;s.dataCallback!=null&&(s.data=s.dataCallback(s.data));u=s.success;s.success=function(r){var i,s;if(r==null)return;s=[];o.find("option").each(function(){return e(this).is(":selected")?s.push(e(this).val()+"-"+e(this).text()):e(this).remove()});i=n(r);e.each(i,function(t,n){if(e.inArray(t+"-"+n,s)===-1)return e("<option />").attr("value",t).html(n).appendTo(o)});o.trigger("chosen:updated");u!=null&&u(r);t.attr("value",a);return t.css("width","auto")};return this.timer=setTimeout(function(){r&&r.abort();return r=e.ajax(s)},s.afterTypeDelay)})})}})(jQuery);
|
|
|
|
plugin-fw/assets/js/chosen/chosen.jquery.js
DELETED
@@ -1,1211 +0,0 @@
|
|
1 |
-
/*!
|
2 |
-
Chosen, a Select Box Enhancer for jQuery and Prototype
|
3 |
-
by Patrick Filler for Harvest, http://getharvest.com
|
4 |
-
|
5 |
-
Version 1.1.0
|
6 |
-
Full source at https://github.com/harvesthq/chosen
|
7 |
-
Copyright (c) 2011 Harvest http://getharvest.com
|
8 |
-
|
9 |
-
MIT License, https://github.com/harvesthq/chosen/blob/master/LICENSE.md
|
10 |
-
This file is generated by `grunt build`, do not edit it by hand.
|
11 |
-
*/
|
12 |
-
|
13 |
-
(function() {
|
14 |
-
var $, AbstractChosen, Chosen, SelectParser, _ref,
|
15 |
-
__hasProp = {}.hasOwnProperty,
|
16 |
-
__extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor(); child.__super__ = parent.prototype; return child; };
|
17 |
-
|
18 |
-
SelectParser = (function() {
|
19 |
-
function SelectParser() {
|
20 |
-
this.options_index = 0;
|
21 |
-
this.parsed = [];
|
22 |
-
}
|
23 |
-
|
24 |
-
SelectParser.prototype.add_node = function(child) {
|
25 |
-
if (child.nodeName.toUpperCase() === "OPTGROUP") {
|
26 |
-
return this.add_group(child);
|
27 |
-
} else {
|
28 |
-
return this.add_option(child);
|
29 |
-
}
|
30 |
-
};
|
31 |
-
|
32 |
-
SelectParser.prototype.add_group = function(group) {
|
33 |
-
var group_position, option, _i, _len, _ref, _results;
|
34 |
-
group_position = this.parsed.length;
|
35 |
-
this.parsed.push({
|
36 |
-
array_index: group_position,
|
37 |
-
group: true,
|
38 |
-
label: this.escapeExpression(group.label),
|
39 |
-
children: 0,
|
40 |
-
disabled: group.disabled
|
41 |
-
});
|
42 |
-
_ref = group.childNodes;
|
43 |
-
_results = [];
|
44 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
45 |
-
option = _ref[_i];
|
46 |
-
_results.push(this.add_option(option, group_position, group.disabled));
|
47 |
-
}
|
48 |
-
return _results;
|
49 |
-
};
|
50 |
-
|
51 |
-
SelectParser.prototype.add_option = function(option, group_position, group_disabled) {
|
52 |
-
if (option.nodeName.toUpperCase() === "OPTION") {
|
53 |
-
if (option.text !== "") {
|
54 |
-
if (group_position != null) {
|
55 |
-
this.parsed[group_position].children += 1;
|
56 |
-
}
|
57 |
-
this.parsed.push({
|
58 |
-
array_index: this.parsed.length,
|
59 |
-
options_index: this.options_index,
|
60 |
-
value: option.value,
|
61 |
-
text: option.text,
|
62 |
-
html: option.innerHTML,
|
63 |
-
selected: option.selected,
|
64 |
-
disabled: group_disabled === true ? group_disabled : option.disabled,
|
65 |
-
group_array_index: group_position,
|
66 |
-
classes: option.className,
|
67 |
-
style: option.style.cssText
|
68 |
-
});
|
69 |
-
} else {
|
70 |
-
this.parsed.push({
|
71 |
-
array_index: this.parsed.length,
|
72 |
-
options_index: this.options_index,
|
73 |
-
empty: true
|
74 |
-
});
|
75 |
-
}
|
76 |
-
return this.options_index += 1;
|
77 |
-
}
|
78 |
-
};
|
79 |
-
|
80 |
-
SelectParser.prototype.escapeExpression = function(text) {
|
81 |
-
var map, unsafe_chars;
|
82 |
-
if ((text == null) || text === false) {
|
83 |
-
return "";
|
84 |
-
}
|
85 |
-
if (!/[\&\<\>\"\'\`]/.test(text)) {
|
86 |
-
return text;
|
87 |
-
}
|
88 |
-
map = {
|
89 |
-
"<": "<",
|
90 |
-
">": ">",
|
91 |
-
'"': """,
|
92 |
-
"'": "'",
|
93 |
-
"`": "`"
|
94 |
-
};
|
95 |
-
unsafe_chars = /&(?!\w+;)|[\<\>\"\'\`]/g;
|
96 |
-
return text.replace(unsafe_chars, function(chr) {
|
97 |
-
return map[chr] || "&";
|
98 |
-
});
|
99 |
-
};
|
100 |
-
|
101 |
-
return SelectParser;
|
102 |
-
|
103 |
-
})();
|
104 |
-
|
105 |
-
SelectParser.select_to_array = function(select) {
|
106 |
-
var child, parser, _i, _len, _ref;
|
107 |
-
parser = new SelectParser();
|
108 |
-
_ref = select.childNodes;
|
109 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
110 |
-
child = _ref[_i];
|
111 |
-
parser.add_node(child);
|
112 |
-
}
|
113 |
-
return parser.parsed;
|
114 |
-
};
|
115 |
-
|
116 |
-
AbstractChosen = (function() {
|
117 |
-
function AbstractChosen(form_field, options) {
|
118 |
-
this.form_field = form_field;
|
119 |
-
this.options = options != null ? options : {};
|
120 |
-
if (!AbstractChosen.browser_is_supported()) {
|
121 |
-
return;
|
122 |
-
}
|
123 |
-
this.is_multiple = this.form_field.multiple;
|
124 |
-
this.set_default_text();
|
125 |
-
this.set_default_values();
|
126 |
-
this.setup();
|
127 |
-
this.set_up_html();
|
128 |
-
this.register_observers();
|
129 |
-
}
|
130 |
-
|
131 |
-
AbstractChosen.prototype.set_default_values = function() {
|
132 |
-
var _this = this;
|
133 |
-
this.click_test_action = function(evt) {
|
134 |
-
return _this.test_active_click(evt);
|
135 |
-
};
|
136 |
-
this.activate_action = function(evt) {
|
137 |
-
return _this.activate_field(evt);
|
138 |
-
};
|
139 |
-
this.active_field = false;
|
140 |
-
this.mouse_on_container = false;
|
141 |
-
this.results_showing = false;
|
142 |
-
this.result_highlighted = null;
|
143 |
-
this.allow_single_deselect = (this.options.allow_single_deselect != null) && (this.form_field.options[0] != null) && this.form_field.options[0].text === "" ? this.options.allow_single_deselect : false;
|
144 |
-
this.disable_search_threshold = this.options.disable_search_threshold || 0;
|
145 |
-
this.disable_search = this.options.disable_search || false;
|
146 |
-
this.enable_split_word_search = this.options.enable_split_word_search != null ? this.options.enable_split_word_search : true;
|
147 |
-
this.group_search = this.options.group_search != null ? this.options.group_search : true;
|
148 |
-
this.search_contains = this.options.search_contains || false;
|
149 |
-
this.single_backstroke_delete = this.options.single_backstroke_delete != null ? this.options.single_backstroke_delete : true;
|
150 |
-
this.max_selected_options = this.options.max_selected_options || Infinity;
|
151 |
-
this.inherit_select_classes = this.options.inherit_select_classes || false;
|
152 |
-
this.display_selected_options = this.options.display_selected_options != null ? this.options.display_selected_options : true;
|
153 |
-
return this.display_disabled_options = this.options.display_disabled_options != null ? this.options.display_disabled_options : true;
|
154 |
-
};
|
155 |
-
|
156 |
-
AbstractChosen.prototype.set_default_text = function() {
|
157 |
-
if (this.form_field.getAttribute("data-placeholder")) {
|
158 |
-
this.default_text = this.form_field.getAttribute("data-placeholder");
|
159 |
-
} else if (this.is_multiple) {
|
160 |
-
this.default_text = this.options.placeholder_text_multiple || this.options.placeholder_text || AbstractChosen.default_multiple_text;
|
161 |
-
} else {
|
162 |
-
this.default_text = this.options.placeholder_text_single || this.options.placeholder_text || AbstractChosen.default_single_text;
|
163 |
-
}
|
164 |
-
return this.results_none_found = this.form_field.getAttribute("data-no_results_text") || this.options.no_results_text || AbstractChosen.default_no_result_text;
|
165 |
-
};
|
166 |
-
|
167 |
-
AbstractChosen.prototype.mouse_enter = function() {
|
168 |
-
return this.mouse_on_container = true;
|
169 |
-
};
|
170 |
-
|
171 |
-
AbstractChosen.prototype.mouse_leave = function() {
|
172 |
-
return this.mouse_on_container = false;
|
173 |
-
};
|
174 |
-
|
175 |
-
AbstractChosen.prototype.input_focus = function(evt) {
|
176 |
-
var _this = this;
|
177 |
-
if (this.is_multiple) {
|
178 |
-
if (!this.active_field) {
|
179 |
-
return setTimeout((function() {
|
180 |
-
return _this.container_mousedown();
|
181 |
-
}), 50);
|
182 |
-
}
|
183 |
-
} else {
|
184 |
-
if (!this.active_field) {
|
185 |
-
return this.activate_field();
|
186 |
-
}
|
187 |
-
}
|
188 |
-
};
|
189 |
-
|
190 |
-
AbstractChosen.prototype.input_blur = function(evt) {
|
191 |
-
var _this = this;
|
192 |
-
if (!this.mouse_on_container) {
|
193 |
-
this.active_field = false;
|
194 |
-
return setTimeout((function() {
|
195 |
-
return _this.blur_test();
|
196 |
-
}), 100);
|
197 |
-
}
|
198 |
-
};
|
199 |
-
|
200 |
-
AbstractChosen.prototype.results_option_build = function(options) {
|
201 |
-
var content, data, _i, _len, _ref;
|
202 |
-
content = '';
|
203 |
-
_ref = this.results_data;
|
204 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
205 |
-
data = _ref[_i];
|
206 |
-
if (data.group) {
|
207 |
-
content += this.result_add_group(data);
|
208 |
-
} else {
|
209 |
-
content += this.result_add_option(data);
|
210 |
-
}
|
211 |
-
if (options != null ? options.first : void 0) {
|
212 |
-
if (data.selected && this.is_multiple) {
|
213 |
-
this.choice_build(data);
|
214 |
-
} else if (data.selected && !this.is_multiple) {
|
215 |
-
this.single_set_selected_text(data.text);
|
216 |
-
}
|
217 |
-
}
|
218 |
-
}
|
219 |
-
return content;
|
220 |
-
};
|
221 |
-
|
222 |
-
AbstractChosen.prototype.result_add_option = function(option) {
|
223 |
-
var classes, option_el;
|
224 |
-
if (!option.search_match) {
|
225 |
-
return '';
|
226 |
-
}
|
227 |
-
if (!this.include_option_in_results(option)) {
|
228 |
-
return '';
|
229 |
-
}
|
230 |
-
classes = [];
|
231 |
-
if (!option.disabled && !(option.selected && this.is_multiple)) {
|
232 |
-
classes.push("active-result");
|
233 |
-
}
|
234 |
-
if (option.disabled && !(option.selected && this.is_multiple)) {
|
235 |
-
classes.push("disabled-result");
|
236 |
-
}
|
237 |
-
if (option.selected) {
|
238 |
-
classes.push("result-selected");
|
239 |
-
}
|
240 |
-
if (option.group_array_index != null) {
|
241 |
-
classes.push("group-option");
|
242 |
-
}
|
243 |
-
if (option.classes !== "") {
|
244 |
-
classes.push(option.classes);
|
245 |
-
}
|
246 |
-
option_el = document.createElement("li");
|
247 |
-
option_el.className = classes.join(" ");
|
248 |
-
option_el.style.cssText = option.style;
|
249 |
-
option_el.setAttribute("data-option-array-index", option.array_index);
|
250 |
-
option_el.innerHTML = option.search_text;
|
251 |
-
return this.outerHTML(option_el);
|
252 |
-
};
|
253 |
-
|
254 |
-
AbstractChosen.prototype.result_add_group = function(group) {
|
255 |
-
var group_el;
|
256 |
-
if (!(group.search_match || group.group_match)) {
|
257 |
-
return '';
|
258 |
-
}
|
259 |
-
if (!(group.active_options > 0)) {
|
260 |
-
return '';
|
261 |
-
}
|
262 |
-
group_el = document.createElement("li");
|
263 |
-
group_el.className = "group-result";
|
264 |
-
group_el.innerHTML = group.search_text;
|
265 |
-
return this.outerHTML(group_el);
|
266 |
-
};
|
267 |
-
|
268 |
-
AbstractChosen.prototype.results_update_field = function() {
|
269 |
-
this.set_default_text();
|
270 |
-
if (!this.is_multiple) {
|
271 |
-
this.results_reset_cleanup();
|
272 |
-
}
|
273 |
-
this.result_clear_highlight();
|
274 |
-
this.results_build();
|
275 |
-
if (this.results_showing) {
|
276 |
-
return this.winnow_results();
|
277 |
-
}
|
278 |
-
};
|
279 |
-
|
280 |
-
AbstractChosen.prototype.reset_single_select_options = function() {
|
281 |
-
var result, _i, _len, _ref, _results;
|
282 |
-
_ref = this.results_data;
|
283 |
-
_results = [];
|
284 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
285 |
-
result = _ref[_i];
|
286 |
-
if (result.selected) {
|
287 |
-
_results.push(result.selected = false);
|
288 |
-
} else {
|
289 |
-
_results.push(void 0);
|
290 |
-
}
|
291 |
-
}
|
292 |
-
return _results;
|
293 |
-
};
|
294 |
-
|
295 |
-
AbstractChosen.prototype.results_toggle = function() {
|
296 |
-
if (this.results_showing) {
|
297 |
-
return this.results_hide();
|
298 |
-
} else {
|
299 |
-
return this.results_show();
|
300 |
-
}
|
301 |
-
};
|
302 |
-
|
303 |
-
AbstractChosen.prototype.results_search = function(evt) {
|
304 |
-
if (this.results_showing) {
|
305 |
-
return this.winnow_results();
|
306 |
-
} else {
|
307 |
-
return this.results_show();
|
308 |
-
}
|
309 |
-
};
|
310 |
-
|
311 |
-
AbstractChosen.prototype.winnow_results = function() {
|
312 |
-
var escapedSearchText, option, regex, regexAnchor, results, results_group, searchText, startpos, text, zregex, _i, _len, _ref;
|
313 |
-
this.no_results_clear();
|
314 |
-
results = 0;
|
315 |
-
searchText = this.get_search_text();
|
316 |
-
escapedSearchText = searchText.replace(/[-[\]{}()*+?.,\\^$|#\s]/g, "\\$&");
|
317 |
-
regexAnchor = this.search_contains ? "" : "^";
|
318 |
-
regex = new RegExp(regexAnchor + escapedSearchText, 'i');
|
319 |
-
zregex = new RegExp(escapedSearchText, 'i');
|
320 |
-
_ref = this.results_data;
|
321 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
322 |
-
option = _ref[_i];
|
323 |
-
option.search_match = false;
|
324 |
-
results_group = null;
|
325 |
-
if (this.include_option_in_results(option)) {
|
326 |
-
if (option.group) {
|
327 |
-
option.group_match = false;
|
328 |
-
option.active_options = 0;
|
329 |
-
}
|
330 |
-
if ((option.group_array_index != null) && this.results_data[option.group_array_index]) {
|
331 |
-
results_group = this.results_data[option.group_array_index];
|
332 |
-
if (results_group.active_options === 0 && results_group.search_match) {
|
333 |
-
results += 1;
|
334 |
-
}
|
335 |
-
results_group.active_options += 1;
|
336 |
-
}
|
337 |
-
if (!(option.group && !this.group_search)) {
|
338 |
-
option.search_text = option.group ? option.label : option.html;
|
339 |
-
option.search_match = this.search_string_match(option.search_text, regex);
|
340 |
-
if (option.search_match && !option.group) {
|
341 |
-
results += 1;
|
342 |
-
}
|
343 |
-
if (option.search_match) {
|
344 |
-
if (searchText.length) {
|
345 |
-
startpos = option.search_text.search(zregex);
|
346 |
-
text = option.search_text.substr(0, startpos + searchText.length) + '</em>' + option.search_text.substr(startpos + searchText.length);
|
347 |
-
option.search_text = text.substr(0, startpos) + '<em>' + text.substr(startpos);
|
348 |
-
}
|
349 |
-
if (results_group != null) {
|
350 |
-
results_group.group_match = true;
|
351 |
-
}
|
352 |
-
} else if ((option.group_array_index != null) && this.results_data[option.group_array_index].search_match) {
|
353 |
-
option.search_match = true;
|
354 |
-
}
|
355 |
-
}
|
356 |
-
}
|
357 |
-
}
|
358 |
-
this.result_clear_highlight();
|
359 |
-
if (results < 1 && searchText.length) {
|
360 |
-
this.update_results_content("");
|
361 |
-
return this.no_results(searchText);
|
362 |
-
} else {
|
363 |
-
this.update_results_content(this.results_option_build());
|
364 |
-
return this.winnow_results_set_highlight();
|
365 |
-
}
|
366 |
-
};
|
367 |
-
|
368 |
-
AbstractChosen.prototype.search_string_match = function(search_string, regex) {
|
369 |
-
var part, parts, _i, _len;
|
370 |
-
if (regex.test(search_string)) {
|
371 |
-
return true;
|
372 |
-
} else if (this.enable_split_word_search && (search_string.indexOf(" ") >= 0 || search_string.indexOf("[") === 0)) {
|
373 |
-
parts = search_string.replace(/\[|\]/g, "").split(" ");
|
374 |
-
if (parts.length) {
|
375 |
-
for (_i = 0, _len = parts.length; _i < _len; _i++) {
|
376 |
-
part = parts[_i];
|
377 |
-
if (regex.test(part)) {
|
378 |
-
return true;
|
379 |
-
}
|
380 |
-
}
|
381 |
-
}
|
382 |
-
}
|
383 |
-
};
|
384 |
-
|
385 |
-
AbstractChosen.prototype.choices_count = function() {
|
386 |
-
var option, _i, _len, _ref;
|
387 |
-
if (this.selected_option_count != null) {
|
388 |
-
return this.selected_option_count;
|
389 |
-
}
|
390 |
-
this.selected_option_count = 0;
|
391 |
-
_ref = this.form_field.options;
|
392 |
-
for (_i = 0, _len = _ref.length; _i < _len; _i++) {
|
393 |
-
option = _ref[_i];
|
394 |
-
if (option.selected) {
|
395 |
-
this.selected_option_count += 1;
|
396 |
-
}
|
397 |
-
}
|
398 |
-
return this.selected_option_count;
|
399 |
-
};
|
400 |
-
|
401 |
-
AbstractChosen.prototype.choices_click = function(evt) {
|
402 |
-
evt.preventDefault();
|
403 |
-
if (!(this.results_showing || this.is_disabled)) {
|
404 |
-
return this.results_show();
|
405 |
-
}
|
406 |
-
};
|
407 |
-
|
408 |
-
AbstractChosen.prototype.keyup_checker = function(evt) {
|
409 |
-
var stroke, _ref;
|
410 |
-
stroke = (_ref = evt.which) != null ? _ref : evt.keyCode;
|
411 |
-
this.search_field_scale();
|
412 |
-
switch (stroke) {
|
413 |
-
case 8:
|
414 |
-
if (this.is_multiple && this.backstroke_length < 1 && this.choices_count() > 0) {
|
415 |
-
return this.keydown_backstroke();
|
416 |
-
} else if (!this.pending_backstroke) {
|
417 |
-
this.result_clear_highlight();
|
418 |
-
return this.results_search();
|
419 |
-
}
|
420 |
-
break;
|
421 |
-
case 13:
|
422 |
-
evt.preventDefault();
|
423 |
-
if (this.results_showing) {
|
424 |
-
return this.result_select(evt);
|
425 |
-
}
|
426 |
-
break;
|
427 |
-
case 27:
|
428 |
-
if (this.results_showing) {
|
429 |
-
this.results_hide();
|
430 |
-
}
|
431 |
-
return true;
|
432 |
-
case 9:
|
433 |
-
case 38:
|
434 |
-
case 40:
|
435 |
-
case 16:
|
436 |
-
case 91:
|
437 |
-
case 17:
|
438 |
-
break;
|
439 |
-
default:
|
440 |
-
return this.results_search();
|
441 |
-
}
|
442 |
-
};
|
443 |
-
|
444 |
-
AbstractChosen.prototype.clipboard_event_checker = function(evt) {
|
445 |
-
var _this = this;
|
446 |
-
return setTimeout((function() {
|
447 |
-
return _this.results_search();
|
448 |
-
}), 50);
|
449 |
-
};
|
450 |
-
|
451 |
-
AbstractChosen.prototype.container_width = function() {
|
452 |
-
if (this.options.width != null) {
|
453 |
-
return this.options.width;
|
454 |
-
} else {
|
455 |
-
return "" + this.form_field.offsetWidth + "px";
|
456 |
-
}
|
457 |
-
};
|
458 |
-
|
459 |
-
AbstractChosen.prototype.include_option_in_results = function(option) {
|
460 |
-
if (this.is_multiple && (!this.display_selected_options && option.selected)) {
|
461 |
-
return false;
|
462 |
-
}
|
463 |
-
if (!this.display_disabled_options && option.disabled) {
|
464 |
-
return false;
|
465 |
-
}
|
466 |
-
if (option.empty) {
|
467 |
-
return false;
|
468 |
-
}
|
469 |
-
return true;
|
470 |
-
};
|
471 |
-
|
472 |
-
AbstractChosen.prototype.search_results_touchstart = function(evt) {
|
473 |
-
this.touch_started = true;
|
474 |
-
return this.search_results_mouseover(evt);
|
475 |
-
};
|
476 |
-
|
477 |
-
AbstractChosen.prototype.search_results_touchmove = function(evt) {
|
478 |
-
this.touch_started = false;
|
479 |
-
return this.search_results_mouseout(evt);
|
480 |
-
};
|
481 |
-
|
482 |
-
AbstractChosen.prototype.search_results_touchend = function(evt) {
|
483 |
-
if (this.touch_started) {
|
484 |
-
return this.search_results_mouseup(evt);
|
485 |
-
}
|
486 |
-
};
|
487 |
-
|
488 |
-
AbstractChosen.prototype.outerHTML = function(element) {
|
489 |
-
var tmp;
|
490 |
-
if (element.outerHTML) {
|
491 |
-
return element.outerHTML;
|
492 |
-
}
|
493 |
-
tmp = document.createElement("div");
|
494 |
-
tmp.appendChild(element);
|
495 |
-
return tmp.innerHTML;
|
496 |
-
};
|
497 |
-
|
498 |
-
AbstractChosen.browser_is_supported = function() {
|
499 |
-
if (window.navigator.appName === "Microsoft Internet Explorer") {
|
500 |
-
return document.documentMode >= 8;
|
501 |
-
}
|
502 |
-
if (/iP(od|hone)/i.test(window.navigator.userAgent)) {
|
503 |
-
return false;
|
504 |
-
}
|
505 |
-
if (/Android/i.test(window.navigator.userAgent)) {
|
506 |
-
if (/Mobile/i.test(window.navigator.userAgent)) {
|
507 |
-
return false;
|
508 |
-
}
|
509 |
-
}
|
510 |
-
return true;
|
511 |
-
};
|
512 |
-
|
513 |
-
AbstractChosen.default_multiple_text = "Select Some Options";
|
514 |
-
|
515 |
-
AbstractChosen.default_single_text = "Select an Option";
|
516 |
-
|
517 |
-
AbstractChosen.default_no_result_text = "No results match";
|
518 |
-
|
519 |
-
return AbstractChosen;
|
520 |
-
|
521 |
-
})();
|
522 |
-
|
523 |
-
$ = jQuery;
|
524 |
-
|
525 |
-
$.fn.extend({
|
526 |
-
chosen: function(options) {
|
527 |
-
if (!AbstractChosen.browser_is_supported()) {
|
528 |
-
return this;
|
529 |
-
}
|
530 |
-
return this.each(function(input_field) {
|
531 |
-
var $this, chosen;
|
532 |
-
$this = $(this);
|
533 |
-
chosen = $this.data('chosen');
|
534 |
-
if (options === 'destroy' && chosen) {
|
535 |
-
chosen.destroy();
|
536 |
-
} else if (!chosen) {
|
537 |
-
$this.data('chosen', new Chosen(this, options));
|
538 |
-
}
|
539 |
-
});
|
540 |
-
}
|
541 |
-
});
|
542 |
-
|
543 |
-
Chosen = (function(_super) {
|
544 |
-
__extends(Chosen, _super);
|
545 |
-
|
546 |
-
function Chosen() {
|
547 |
-
_ref = Chosen.__super__.constructor.apply(this, arguments);
|
548 |
-
return _ref;
|
549 |
-
}
|
550 |
-
|
551 |
-
Chosen.prototype.setup = function() {
|
552 |
-
this.form_field_jq = $(this.form_field);
|
553 |
-
this.current_selectedIndex = this.form_field.selectedIndex;
|
554 |
-
return this.is_rtl = this.form_field_jq.hasClass("chosen-rtl");
|
555 |
-
};
|
556 |
-
|
557 |
-
Chosen.prototype.set_up_html = function() {
|
558 |
-
var container_classes, container_props;
|
559 |
-
container_classes = ["chosen-container"];
|
560 |
-
container_classes.push("chosen-container-" + (this.is_multiple ? "multi" : "single"));
|
561 |
-
if (this.inherit_select_classes && this.form_field.className) {
|
562 |
-
container_classes.push(this.form_field.className);
|
563 |
-
}
|
564 |
-
if (this.is_rtl) {
|
565 |
-
container_classes.push("chosen-rtl");
|
566 |
-
}
|
567 |
-
container_props = {
|
568 |
-
'class': container_classes.join(' '),
|
569 |
-
'style': "width: " + (this.container_width()) + ";",
|
570 |
-
'title': this.form_field.title
|
571 |
-
};
|
572 |
-
if (this.form_field.id.length) {
|
573 |
-
container_props.id = this.form_field.id.replace(/[^\w]/g, '_') + "_chosen";
|
574 |
-
}
|
575 |
-
this.container = $("<div />", container_props);
|
576 |
-
if (this.is_multiple) {
|
577 |
-
this.container.html('<ul class="chosen-choices"><li class="search-field"><input type="text" value="' + this.default_text + '" class="default" autocomplete="off" style="width:25px;" /></li></ul><div class="chosen-drop"><ul class="chosen-results"></ul></div>');
|
578 |
-
} else {
|
579 |
-
this.container.html('<a class="chosen-single chosen-default" tabindex="-1"><span>' + this.default_text + '</span><div><b></b></div></a><div class="chosen-drop"><div class="chosen-search"><input type="text" autocomplete="off" /></div><ul class="chosen-results"></ul></div>');
|
580 |
-
}
|
581 |
-
this.form_field_jq.hide().after(this.container);
|
582 |
-
this.dropdown = this.container.find('div.chosen-drop').first();
|
583 |
-
this.search_field = this.container.find('input').first();
|
584 |
-
this.search_results = this.container.find('ul.chosen-results').first();
|
585 |
-
this.search_field_scale();
|
586 |
-
this.search_no_results = this.container.find('li.no-results').first();
|
587 |
-
if (this.is_multiple) {
|
588 |
-
this.search_choices = this.container.find('ul.chosen-choices').first();
|
589 |
-
this.search_container = this.container.find('li.search-field').first();
|
590 |
-
} else {
|
591 |
-
this.search_container = this.container.find('div.chosen-search').first();
|
592 |
-
this.selected_item = this.container.find('.chosen-single').first();
|
593 |
-
}
|
594 |
-
this.results_build();
|
595 |
-
this.set_tab_index();
|
596 |
-
this.set_label_behavior();
|
597 |
-
return this.form_field_jq.trigger("chosen:ready", {
|
598 |
-
chosen: this
|
599 |
-
});
|
600 |
-
};
|
601 |
-
|
602 |
-
Chosen.prototype.register_observers = function() {
|
603 |
-
var _this = this;
|
604 |
-
this.container.bind('mousedown.chosen', function(evt) {
|
605 |
-
_this.container_mousedown(evt);
|
606 |
-
});
|
607 |
-
this.container.bind('mouseup.chosen', function(evt) {
|
608 |
-
_this.container_mouseup(evt);
|
609 |
-
});
|
610 |
-
this.container.bind('mouseenter.chosen', function(evt) {
|
611 |
-
_this.mouse_enter(evt);
|
612 |
-
});
|
613 |
-
this.container.bind('mouseleave.chosen', function(evt) {
|
614 |
-
_this.mouse_leave(evt);
|
615 |
-
});
|
616 |
-
this.search_results.bind('mouseup.chosen', function(evt) {
|
617 |
-
_this.search_results_mouseup(evt);
|
618 |
-
});
|
619 |
-
this.search_results.bind('mouseover.chosen', function(evt) {
|
620 |
-
_this.search_results_mouseover(evt);
|
621 |
-
});
|
622 |
-
this.search_results.bind('mouseout.chosen', function(evt) {
|
623 |
-
_this.search_results_mouseout(evt);
|
624 |
-
});
|
625 |
-
this.search_results.bind('mousewheel.chosen DOMMouseScroll.chosen', function(evt) {
|
626 |
-
_this.search_results_mousewheel(evt);
|
627 |
-
});
|
628 |
-
this.search_results.bind('touchstart.chosen', function(evt) {
|
629 |
-
_this.search_results_touchstart(evt);
|
630 |
-
});
|
631 |
-
this.search_results.bind('touchmove.chosen', function(evt) {
|
632 |
-
_this.search_results_touchmove(evt);
|
633 |
-
});
|
634 |
-
this.search_results.bind('touchend.chosen', function(evt) {
|
635 |
-
_this.search_results_touchend(evt);
|
636 |
-
});
|
637 |
-
this.form_field_jq.bind("chosen:updated.chosen", function(evt) {
|
638 |
-
_this.results_update_field(evt);
|
639 |
-
});
|
640 |
-
this.form_field_jq.bind("chosen:activate.chosen", function(evt) {
|
641 |
-
_this.activate_field(evt);
|
642 |
-
});
|
643 |
-
this.form_field_jq.bind("chosen:open.chosen", function(evt) {
|
644 |
-
_this.container_mousedown(evt);
|
645 |
-
});
|
646 |
-
this.form_field_jq.bind("chosen:close.chosen", function(evt) {
|
647 |
-
_this.input_blur(evt);
|
648 |
-
});
|
649 |
-
this.search_field.bind('blur.chosen', function(evt) {
|
650 |
-
_this.input_blur(evt);
|
651 |
-
});
|
652 |
-
this.search_field.bind('keyup.chosen', function(evt) {
|
653 |
-
_this.keyup_checker(evt);
|
654 |
-
});
|
655 |
-
this.search_field.bind('keydown.chosen', function(evt) {
|
656 |
-
_this.keydown_checker(evt);
|
657 |
-
});
|
658 |
-
this.search_field.bind('focus.chosen', function(evt) {
|
659 |
-
_this.input_focus(evt);
|
660 |
-
});
|
661 |
-
this.search_field.bind('cut.chosen', function(evt) {
|
662 |
-
_this.clipboard_event_checker(evt);
|
663 |
-
});
|
664 |
-
this.search_field.bind('paste.chosen', function(evt) {
|
665 |
-
_this.clipboard_event_checker(evt);
|
666 |
-
});
|
667 |
-
if (this.is_multiple) {
|
668 |
-
return this.search_choices.bind('click.chosen', function(evt) {
|
669 |
-
_this.choices_click(evt);
|
670 |
-
});
|
671 |
-
} else {
|
672 |
-
return this.container.bind('click.chosen', function(evt) {
|
673 |
-
evt.preventDefault();
|
674 |
-
});
|
675 |
-
}
|
676 |
-
};
|
677 |
-
|
678 |
-
Chosen.prototype.destroy = function() {
|
679 |
-
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
680 |
-
if (this.search_field[0].tabIndex) {
|
681 |
-
this.form_field_jq[0].tabIndex = this.search_field[0].tabIndex;
|
682 |
-
}
|
683 |
-
this.container.remove();
|
684 |
-
this.form_field_jq.removeData('chosen');
|
685 |
-
return this.form_field_jq.show();
|
686 |
-
};
|
687 |
-
|
688 |
-
Chosen.prototype.search_field_disabled = function() {
|
689 |
-
this.is_disabled = this.form_field_jq[0].disabled;
|
690 |
-
if (this.is_disabled) {
|
691 |
-
this.container.addClass('chosen-disabled');
|
692 |
-
this.search_field[0].disabled = true;
|
693 |
-
if (!this.is_multiple) {
|
694 |
-
this.selected_item.unbind("focus.chosen", this.activate_action);
|
695 |
-
}
|
696 |
-
return this.close_field();
|
697 |
-
} else {
|
698 |
-
this.container.removeClass('chosen-disabled');
|
699 |
-
this.search_field[0].disabled = false;
|
700 |
-
if (!this.is_multiple) {
|
701 |
-
return this.selected_item.bind("focus.chosen", this.activate_action);
|
702 |
-
}
|
703 |
-
}
|
704 |
-
};
|
705 |
-
|
706 |
-
Chosen.prototype.container_mousedown = function(evt) {
|
707 |
-
if (!this.is_disabled) {
|
708 |
-
if (evt && evt.type === "mousedown" && !this.results_showing) {
|
709 |
-
evt.preventDefault();
|
710 |
-
}
|
711 |
-
if (!((evt != null) && ($(evt.target)).hasClass("search-choice-close"))) {
|
712 |
-
if (!this.active_field) {
|
713 |
-
if (this.is_multiple) {
|
714 |
-
this.search_field.val("");
|
715 |
-
}
|
716 |
-
$(this.container[0].ownerDocument).bind('click.chosen', this.click_test_action);
|
717 |
-
this.results_show();
|
718 |
-
} else if (!this.is_multiple && evt && (($(evt.target)[0] === this.selected_item[0]) || $(evt.target).parents("a.chosen-single").length)) {
|
719 |
-
evt.preventDefault();
|
720 |
-
this.results_toggle();
|
721 |
-
}
|
722 |
-
return this.activate_field();
|
723 |
-
}
|
724 |
-
}
|
725 |
-
};
|
726 |
-
|
727 |
-
Chosen.prototype.container_mouseup = function(evt) {
|
728 |
-
if (evt.target.nodeName === "ABBR" && !this.is_disabled) {
|
729 |
-
return this.results_reset(evt);
|
730 |
-
}
|
731 |
-
};
|
732 |
-
|
733 |
-
Chosen.prototype.search_results_mousewheel = function(evt) {
|
734 |
-
var delta;
|
735 |
-
if (evt.originalEvent) {
|
736 |
-
delta = -evt.originalEvent.wheelDelta || evt.originalEvent.detail;
|
737 |
-
}
|
738 |
-
if (delta != null) {
|
739 |
-
evt.preventDefault();
|
740 |
-
if (evt.type === 'DOMMouseScroll') {
|
741 |
-
delta = delta * 40;
|
742 |
-
}
|
743 |
-
return this.search_results.scrollTop(delta + this.search_results.scrollTop());
|
744 |
-
}
|
745 |
-
};
|
746 |
-
|
747 |
-
Chosen.prototype.blur_test = function(evt) {
|
748 |
-
if (!this.active_field && this.container.hasClass("chosen-container-active")) {
|
749 |
-
return this.close_field();
|
750 |
-
}
|
751 |
-
};
|
752 |
-
|
753 |
-
Chosen.prototype.close_field = function() {
|
754 |
-
$(this.container[0].ownerDocument).unbind("click.chosen", this.click_test_action);
|
755 |
-
this.active_field = false;
|
756 |
-
this.results_hide();
|
757 |
-
this.container.removeClass("chosen-container-active");
|
758 |
-
this.clear_backstroke();
|
759 |
-
this.show_search_field_default();
|
760 |
-
return this.search_field_scale();
|
761 |
-
};
|
762 |
-
|
763 |
-
Chosen.prototype.activate_field = function() {
|
764 |
-
this.container.addClass("chosen-container-active");
|
765 |
-
this.active_field = true;
|
766 |
-
this.search_field.val(this.search_field.val());
|
767 |
-
return this.search_field.focus();
|
768 |
-
};
|
769 |
-
|
770 |
-
Chosen.prototype.test_active_click = function(evt) {
|
771 |
-
var active_container;
|
772 |
-
active_container = $(evt.target).closest('.chosen-container');
|
773 |
-
if (active_container.length && this.container[0] === active_container[0]) {
|
774 |
-
return this.active_field = true;
|
775 |
-
} else {
|
776 |
-
return this.close_field();
|
777 |
-
}
|
778 |
-
};
|
779 |
-
|
780 |
-
Chosen.prototype.results_build = function() {
|
781 |
-
this.parsing = true;
|
782 |
-
this.selected_option_count = null;
|
783 |
-
this.results_data = SelectParser.select_to_array(this.form_field);
|
784 |
-
if (this.is_multiple) {
|
785 |
-
this.search_choices.find("li.search-choice").remove();
|
786 |
-
} else if (!this.is_multiple) {
|
787 |
-
this.single_set_selected_text();
|
788 |
-
if (this.disable_search || this.form_field.options.length <= this.disable_search_threshold) {
|
789 |
-
this.search_field[0].readOnly = true;
|
790 |
-
this.container.addClass("chosen-container-single-nosearch");
|
791 |
-
} else {
|
792 |
-
this.search_field[0].readOnly = false;
|
793 |
-
this.container.removeClass("chosen-container-single-nosearch");
|
794 |
-
}
|
795 |
-
}
|
796 |
-
this.update_results_content(this.results_option_build({
|
797 |
-
first: true
|
798 |
-
}));
|
799 |
-
this.search_field_disabled();
|
800 |
-
this.show_search_field_default();
|
801 |
-
this.search_field_scale();
|
802 |
-
return this.parsing = false;
|
803 |
-
};
|
804 |
-
|
805 |
-
Chosen.prototype.result_do_highlight = function(el) {
|
806 |
-
var high_bottom, high_top, maxHeight, visible_bottom, visible_top;
|
807 |
-
if (el.length) {
|
808 |
-
this.result_clear_highlight();
|
809 |
-
this.result_highlight = el;
|
810 |
-
this.result_highlight.addClass("highlighted");
|
811 |
-
maxHeight = parseInt(this.search_results.css("maxHeight"), 10);
|
812 |
-
visible_top = this.search_results.scrollTop();
|
813 |
-
visible_bottom = maxHeight + visible_top;
|
814 |
-
high_top = this.result_highlight.position().top + this.search_results.scrollTop();
|
815 |
-
high_bottom = high_top + this.result_highlight.outerHeight();
|
816 |
-
if (high_bottom >= visible_bottom) {
|
817 |
-
return this.search_results.scrollTop((high_bottom - maxHeight) > 0 ? high_bottom - maxHeight : 0);
|
818 |
-
} else if (high_top < visible_top) {
|
819 |
-
return this.search_results.scrollTop(high_top);
|
820 |
-
}
|
821 |
-
}
|
822 |
-
};
|
823 |
-
|
824 |
-
Chosen.prototype.result_clear_highlight = function() {
|
825 |
-
if (this.result_highlight) {
|
826 |
-
this.result_highlight.removeClass("highlighted");
|
827 |
-
}
|
828 |
-
return this.result_highlight = null;
|
829 |
-
};
|
830 |
-
|
831 |
-
Chosen.prototype.results_show = function() {
|
832 |
-
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
833 |
-
this.form_field_jq.trigger("chosen:maxselected", {
|
834 |
-
chosen: this
|
835 |
-
});
|
836 |
-
return false;
|
837 |
-
}
|
838 |
-
this.container.addClass("chosen-with-drop");
|
839 |
-
this.results_showing = true;
|
840 |
-
this.search_field.focus();
|
841 |
-
this.search_field.val(this.search_field.val());
|
842 |
-
this.winnow_results();
|
843 |
-
return this.form_field_jq.trigger("chosen:showing_dropdown", {
|
844 |
-
chosen: this
|
845 |
-
});
|
846 |
-
};
|
847 |
-
|
848 |
-
Chosen.prototype.update_results_content = function(content) {
|
849 |
-
return this.search_results.html(content);
|
850 |
-
};
|
851 |
-
|
852 |
-
Chosen.prototype.results_hide = function() {
|
853 |
-
if (this.results_showing) {
|
854 |
-
this.result_clear_highlight();
|
855 |
-
this.container.removeClass("chosen-with-drop");
|
856 |
-
this.form_field_jq.trigger("chosen:hiding_dropdown", {
|
857 |
-
chosen: this
|
858 |
-
});
|
859 |
-
}
|
860 |
-
return this.results_showing = false;
|
861 |
-
};
|
862 |
-
|
863 |
-
Chosen.prototype.set_tab_index = function(el) {
|
864 |
-
var ti;
|
865 |
-
if (this.form_field.tabIndex) {
|
866 |
-
ti = this.form_field.tabIndex;
|
867 |
-
this.form_field.tabIndex = -1;
|
868 |
-
return this.search_field[0].tabIndex = ti;
|
869 |
-
}
|
870 |
-
};
|
871 |
-
|
872 |
-
Chosen.prototype.set_label_behavior = function() {
|
873 |
-
var _this = this;
|
874 |
-
this.form_field_label = this.form_field_jq.parents("label");
|
875 |
-
if (!this.form_field_label.length && this.form_field.id.length) {
|
876 |
-
this.form_field_label = $("label[for='" + this.form_field.id + "']");
|
877 |
-
}
|
878 |
-
if (this.form_field_label.length > 0) {
|
879 |
-
return this.form_field_label.bind('click.chosen', function(evt) {
|
880 |
-
if (_this.is_multiple) {
|
881 |
-
return _this.container_mousedown(evt);
|
882 |
-
} else {
|
883 |
-
return _this.activate_field();
|
884 |
-
}
|
885 |
-
});
|
886 |
-
}
|
887 |
-
};
|
888 |
-
|
889 |
-
Chosen.prototype.show_search_field_default = function() {
|
890 |
-
if (this.is_multiple && this.choices_count() < 1 && !this.active_field) {
|
891 |
-
this.search_field.val(this.default_text);
|
892 |
-
return this.search_field.addClass("default");
|
893 |
-
} else {
|
894 |
-
this.search_field.val("");
|
895 |
-
return this.search_field.removeClass("default");
|
896 |
-
}
|
897 |
-
};
|
898 |
-
|
899 |
-
Chosen.prototype.search_results_mouseup = function(evt) {
|
900 |
-
var target;
|
901 |
-
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
902 |
-
if (target.length) {
|
903 |
-
this.result_highlight = target;
|
904 |
-
this.result_select(evt);
|
905 |
-
return this.search_field.focus();
|
906 |
-
}
|
907 |
-
};
|
908 |
-
|
909 |
-
Chosen.prototype.search_results_mouseover = function(evt) {
|
910 |
-
var target;
|
911 |
-
target = $(evt.target).hasClass("active-result") ? $(evt.target) : $(evt.target).parents(".active-result").first();
|
912 |
-
if (target) {
|
913 |
-
return this.result_do_highlight(target);
|
914 |
-
}
|
915 |
-
};
|
916 |
-
|
917 |
-
Chosen.prototype.search_results_mouseout = function(evt) {
|
918 |
-
if ($(evt.target).hasClass("active-result" || $(evt.target).parents('.active-result').first())) {
|
919 |
-
return this.result_clear_highlight();
|
920 |
-
}
|
921 |
-
};
|
922 |
-
|
923 |
-
Chosen.prototype.choice_build = function(item) {
|
924 |
-
var choice, close_link,
|
925 |
-
_this = this;
|
926 |
-
choice = $('<li />', {
|
927 |
-
"class": "search-choice"
|
928 |
-
}).html("<span>" + item.html + "</span>");
|
929 |
-
if (item.disabled) {
|
930 |
-
choice.addClass('search-choice-disabled');
|
931 |
-
} else {
|
932 |
-
close_link = $('<a />', {
|
933 |
-
"class": 'search-choice-close',
|
934 |
-
'data-option-array-index': item.array_index
|
935 |
-
});
|
936 |
-
close_link.bind('click.chosen', function(evt) {
|
937 |
-
return _this.choice_destroy_link_click(evt);
|
938 |
-
});
|
939 |
-
choice.append(close_link);
|
940 |
-
}
|
941 |
-
return this.search_container.before(choice);
|
942 |
-
};
|
943 |
-
|
944 |
-
Chosen.prototype.choice_destroy_link_click = function(evt) {
|
945 |
-
evt.preventDefault();
|
946 |
-
evt.stopPropagation();
|
947 |
-
if (!this.is_disabled) {
|
948 |
-
return this.choice_destroy($(evt.target));
|
949 |
-
}
|
950 |
-
};
|
951 |
-
|
952 |
-
Chosen.prototype.choice_destroy = function(link) {
|
953 |
-
if (this.result_deselect(link[0].getAttribute("data-option-array-index"))) {
|
954 |
-
this.show_search_field_default();
|
955 |
-
if (this.is_multiple && this.choices_count() > 0 && this.search_field.val().length < 1) {
|
956 |
-
this.results_hide();
|
957 |
-
}
|
958 |
-
link.parents('li').first().remove();
|
959 |
-
return this.search_field_scale();
|
960 |
-
}
|
961 |
-
};
|
962 |
-
|
963 |
-
Chosen.prototype.results_reset = function() {
|
964 |
-
this.reset_single_select_options();
|
965 |
-
this.form_field.options[0].selected = true;
|
966 |
-
this.single_set_selected_text();
|
967 |
-
this.show_search_field_default();
|
968 |
-
this.results_reset_cleanup();
|
969 |
-
this.form_field_jq.trigger("change");
|
970 |
-
if (this.active_field) {
|
971 |
-
return this.results_hide();
|
972 |
-
}
|
973 |
-
};
|
974 |
-
|
975 |
-
Chosen.prototype.results_reset_cleanup = function() {
|
976 |
-
this.current_selectedIndex = this.form_field.selectedIndex;
|
977 |
-
return this.selected_item.find("abbr").remove();
|
978 |
-
};
|
979 |
-
|
980 |
-
Chosen.prototype.result_select = function(evt) {
|
981 |
-
var high, item;
|
982 |
-
if (this.result_highlight) {
|
983 |
-
high = this.result_highlight;
|
984 |
-
this.result_clear_highlight();
|
985 |
-
if (this.is_multiple && this.max_selected_options <= this.choices_count()) {
|
986 |
-
this.form_field_jq.trigger("chosen:maxselected", {
|
987 |
-
chosen: this
|
988 |
-
});
|
989 |
-
return false;
|
990 |
-
}
|
991 |
-
if (this.is_multiple) {
|
992 |
-
high.removeClass("active-result");
|
993 |
-
} else {
|
994 |
-
this.reset_single_select_options();
|
995 |
-
}
|
996 |
-
item = this.results_data[high[0].getAttribute("data-option-array-index")];
|
997 |
-
item.selected = true;
|
998 |
-
this.form_field.options[item.options_index].selected = true;
|
999 |
-
this.selected_option_count = null;
|
1000 |
-
if (this.is_multiple) {
|
1001 |
-
this.choice_build(item);
|
1002 |
-
} else {
|
1003 |
-
this.single_set_selected_text(item.text);
|
1004 |
-
}
|
1005 |
-
if (!((evt.metaKey || evt.ctrlKey) && this.is_multiple)) {
|
1006 |
-
this.results_hide();
|
1007 |
-
}
|
1008 |
-
this.search_field.val("");
|
1009 |
-
if (this.is_multiple || this.form_field.selectedIndex !== this.current_selectedIndex) {
|
1010 |
-
this.form_field_jq.trigger("change", {
|
1011 |
-
'selected': this.form_field.options[item.options_index].value
|
1012 |
-
});
|
1013 |
-
}
|
1014 |
-
this.current_selectedIndex = this.form_field.selectedIndex;
|
1015 |
-
return this.search_field_scale();
|
1016 |
-
}
|
1017 |
-
};
|
1018 |
-
|
1019 |
-
Chosen.prototype.single_set_selected_text = function(text) {
|
1020 |
-
if (text == null) {
|
1021 |
-
text = this.default_text;
|
1022 |
-
}
|
1023 |
-
if (text === this.default_text) {
|
1024 |
-
this.selected_item.addClass("chosen-default");
|
1025 |
-
} else {
|
1026 |
-
this.single_deselect_control_build();
|
1027 |
-
this.selected_item.removeClass("chosen-default");
|
1028 |
-
}
|
1029 |
-
return this.selected_item.find("span").text(text);
|
1030 |
-
};
|
1031 |
-
|
1032 |
-
Chosen.prototype.result_deselect = function(pos) {
|
1033 |
-
var result_data;
|
1034 |
-
result_data = this.results_data[pos];
|
1035 |
-
if (!this.form_field.options[result_data.options_index].disabled) {
|
1036 |
-
result_data.selected = false;
|
1037 |
-
this.form_field.options[result_data.options_index].selected = false;
|
1038 |
-
this.selected_option_count = null;
|
1039 |
-
this.result_clear_highlight();
|
1040 |
-
if (this.results_showing) {
|
1041 |
-
this.winnow_results();
|
1042 |
-
}
|
1043 |
-
this.form_field_jq.trigger("change", {
|
1044 |
-
deselected: this.form_field.options[result_data.options_index].value
|
1045 |
-
});
|
1046 |
-
this.search_field_scale();
|
1047 |
-
return true;
|
1048 |
-
} else {
|
1049 |
-
return false;
|
1050 |
-
}
|
1051 |
-
};
|
1052 |
-
|
1053 |
-
Chosen.prototype.single_deselect_control_build = function() {
|
1054 |
-
if (!this.allow_single_deselect) {
|
1055 |
-
return;
|
1056 |
-
}
|
1057 |
-
if (!this.selected_item.find("abbr").length) {
|
1058 |
-
this.selected_item.find("span").first().after("<abbr class=\"search-choice-close\"></abbr>");
|
1059 |
-
}
|
1060 |
-
return this.selected_item.addClass("chosen-single-with-deselect");
|
1061 |
-
};
|
1062 |
-
|
1063 |
-
Chosen.prototype.get_search_text = function() {
|
1064 |
-
if (this.search_field.val() === this.default_text) {
|
1065 |
-
return "";
|
1066 |
-
} else {
|
1067 |
-
return $('<div/>').text($.trim(this.search_field.val())).html();
|
1068 |
-
}
|
1069 |
-
};
|
1070 |
-
|
1071 |
-
Chosen.prototype.winnow_results_set_highlight = function() {
|
1072 |
-
var do_high, selected_results;
|
1073 |
-
selected_results = !this.is_multiple ? this.search_results.find(".result-selected.active-result") : [];
|
1074 |
-
do_high = selected_results.length ? selected_results.first() : this.search_results.find(".active-result").first();
|
1075 |
-
if (do_high != null) {
|
1076 |
-
return this.result_do_highlight(do_high);
|
1077 |
-
}
|
1078 |
-
};
|
1079 |
-
|
1080 |
-
Chosen.prototype.no_results = function(terms) {
|
1081 |
-
var no_results_html;
|
1082 |
-
no_results_html = $('<li class="no-results">' + this.results_none_found + ' "<span></span>"</li>');
|
1083 |
-
no_results_html.find("span").first().html(terms);
|
1084 |
-
this.search_results.append(no_results_html);
|
1085 |
-
return this.form_field_jq.trigger("chosen:no_results", {
|
1086 |
-
chosen: this
|
1087 |
-
});
|
1088 |
-
};
|
1089 |
-
|
1090 |
-
Chosen.prototype.no_results_clear = function() {
|
1091 |
-
return this.search_results.find(".no-results").remove();
|
1092 |
-
};
|
1093 |
-
|
1094 |
-
Chosen.prototype.keydown_arrow = function() {
|
1095 |
-
var next_sib;
|
1096 |
-
if (this.results_showing && this.result_highlight) {
|
1097 |
-
next_sib = this.result_highlight.nextAll("li.active-result").first();
|
1098 |
-
if (next_sib) {
|
1099 |
-
return this.result_do_highlight(next_sib);
|
1100 |
-
}
|
1101 |
-
} else {
|
1102 |
-
return this.results_show();
|
1103 |
-
}
|
1104 |
-
};
|
1105 |
-
|
1106 |
-
Chosen.prototype.keyup_arrow = function() {
|
1107 |
-
var prev_sibs;
|
1108 |
-
if (!this.results_showing && !this.is_multiple) {
|
1109 |
-
return this.results_show();
|
1110 |
-
} else if (this.result_highlight) {
|
1111 |
-
prev_sibs = this.result_highlight.prevAll("li.active-result");
|
1112 |
-
if (prev_sibs.length) {
|
1113 |
-
return this.result_do_highlight(prev_sibs.first());
|
1114 |
-
} else {
|
1115 |
-
if (this.choices_count() > 0) {
|
1116 |
-
this.results_hide();
|
1117 |
-
}
|
1118 |
-
return this.result_clear_highlight();
|
1119 |
-
}
|
1120 |
-
}
|
1121 |
-
};
|
1122 |
-
|
1123 |
-
Chosen.prototype.keydown_backstroke = function() {
|
1124 |
-
var next_available_destroy;
|
1125 |
-
if (this.pending_backstroke) {
|
1126 |
-
this.choice_destroy(this.pending_backstroke.find("a").first());
|
1127 |
-
return this.clear_backstroke();
|
1128 |
-
} else {
|
1129 |
-
next_available_destroy = this.search_container.siblings("li.search-choice").last();
|
1130 |
-
if (next_available_destroy.length && !next_available_destroy.hasClass("search-choice-disabled")) {
|
1131 |
-
this.pending_backstroke = next_available_destroy;
|
1132 |
-
if (this.single_backstroke_delete) {
|
1133 |
-
return this.keydown_backstroke();
|
1134 |
-
} else {
|
1135 |
-
return this.pending_backstroke.addClass("search-choice-focus");
|
1136 |
-
}
|
1137 |
-
}
|
1138 |
-
}
|
1139 |
-
};
|
1140 |
-
|
1141 |
-
Chosen.prototype.clear_backstroke = function() {
|
1142 |
-
if (this.pending_backstroke) {
|
1143 |
-
this.pending_backstroke.removeClass("search-choice-focus");
|
1144 |
-
}
|
1145 |
-
return this.pending_backstroke = null;
|
1146 |
-
};
|
1147 |
-
|
1148 |
-
Chosen.prototype.keydown_checker = function(evt) {
|
1149 |
-
var stroke, _ref1;
|
1150 |
-
stroke = (_ref1 = evt.which) != null ? _ref1 : evt.keyCode;
|
1151 |
-
this.search_field_scale();
|
1152 |
-
if (stroke !== 8 && this.pending_backstroke) {
|
1153 |
-
this.clear_backstroke();
|
1154 |
-
}
|
1155 |
-
switch (stroke) {
|
1156 |
-
case 8:
|
1157 |
-
this.backstroke_length = this.search_field.val().length;
|
1158 |
-
break;
|
1159 |
-
case 9:
|
1160 |
-
if (this.results_showing && !this.is_multiple) {
|
1161 |
-
this.result_select(evt);
|
1162 |
-
}
|
1163 |
-
this.mouse_on_container = false;
|
1164 |
-
break;
|
1165 |
-
case 13:
|
1166 |
-
evt.preventDefault();
|
1167 |
-
break;
|
1168 |
-
case 38:
|
1169 |
-
evt.preventDefault();
|
1170 |
-
this.keyup_arrow();
|
1171 |
-
break;
|
1172 |
-
case 40:
|
1173 |
-
evt.preventDefault();
|
1174 |
-
this.keydown_arrow();
|
1175 |
-
break;
|
1176 |
-
}
|
1177 |
-
};
|
1178 |
-
|
1179 |
-
Chosen.prototype.search_field_scale = function() {
|
1180 |
-
var div, f_width, h, style, style_block, styles, w, _i, _len;
|
1181 |
-
if (this.is_multiple) {
|
1182 |
-
h = 0;
|
1183 |
-
w = 0;
|
1184 |
-
style_block = "position:absolute; left: -1000px; top: -1000px; display:none;";
|
1185 |
-
styles = ['font-size', 'font-style', 'font-weight', 'font-family', 'line-height', 'text-transform', 'letter-spacing'];
|
1186 |
-
for (_i = 0, _len = styles.length; _i < _len; _i++) {
|
1187 |
-
style = styles[_i];
|
1188 |
-
style_block += style + ":" + this.search_field.css(style) + ";";
|
1189 |
-
}
|
1190 |
-
div = $('<div />', {
|
1191 |
-
'style': style_block
|
1192 |
-
});
|
1193 |
-
div.text(this.search_field.val());
|
1194 |
-
$('body').append(div);
|
1195 |
-
w = div.width() + 25;
|
1196 |
-
div.remove();
|
1197 |
-
f_width = this.container.outerWidth();
|
1198 |
-
if (w > f_width - 10) {
|
1199 |
-
w = f_width - 10;
|
1200 |
-
}
|
1201 |
-
return this.search_field.css({
|
1202 |
-
'width': w + 'px'
|
1203 |
-
});
|
1204 |
-
}
|
1205 |
-
};
|
1206 |
-
|
1207 |
-
return Chosen;
|
1208 |
-
|
1209 |
-
})(AbstractChosen);
|
1210 |
-
|
1211 |
-
}).call(this);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/how-to.js
CHANGED
@@ -1,6 +1,6 @@
|
|
1 |
-
(function($){
|
2 |
-
var how_to_link = $('#yith-how-to-premium').parent();
|
3 |
-
if( typeof how_to_link != 'undefined' ){
|
4 |
how_to_link.prop( 'target', '_blank' );
|
5 |
}
|
6 |
-
})(jQuery);
|
1 |
+
(function ( $ ) {
|
2 |
+
var how_to_link = $( '#yith-how-to-premium' ).parent();
|
3 |
+
if ( typeof how_to_link != 'undefined' ) {
|
4 |
how_to_link.prop( 'target', '_blank' );
|
5 |
}
|
6 |
+
})( jQuery );
|
plugin-fw/assets/js/how-to.min.js
ADDED
@@ -0,0 +1 @@
|
|
|
1 |
+
(function(a){a=a("#yith-how-to-premium").parent();"undefined"!=typeof a&&a.prop("target","_blank")})(jQuery);
|
plugin-fw/assets/js/jquery.colorbox.js
CHANGED
@@ -1102,4 +1102,4 @@
|
|
1102 |
|
1103 |
publicMethod.settings = defaults;
|
1104 |
|
1105 |
-
}(jQuery, document, window));
|
1102 |
|
1103 |
publicMethod.settings = defaults;
|
1104 |
|
1105 |
+
}(jQuery, document, window));
|
plugin-fw/assets/js/jquery.colorbox.min.js
ADDED
@@ -0,0 +1,24 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
(function(c,p,A){function g(a,d,F){a=p.createElement(a);d&&(a.id="cbox"+d);F&&(a.style.cssText=F);return c(a)}function R(){return A.innerHeight?A.innerHeight:c(A).height()}function M(a,d){d!==Object(d)&&(d={});this.cache={};this.el=a;this.value=function(a){var b;void 0===this.cache[a]&&(b=c(this.el).attr("data-cbox-"+a),void 0!==b?this.cache[a]=b:void 0!==d[a]?this.cache[a]=d[a]:void 0!==S[a]&&(this.cache[a]=S[a]));return this.cache[a]};this.get=function(a){a=this.value(a);return c.isFunction(a)?
|
2 |
+
a.call(this.el,this):a}}function N(a){var d=k.length;a=(m+a)%d;return 0>a?d+a:a}function n(a,d){return Math.round((/%/.test(a)?("x"===d?w.width():R())/100:1)*parseInt(a,10))}function da(a,d){return a.get("photo")||a.get("photoRegex").test(d)}function ea(a,d){return a.get("retinaUrl")&&1<A.devicePixelRatio?d.replace(a.get("photoRegex"),a.get("retinaSuffix")):d}function fa(a){"contains"in f[0]&&!f[0].contains(a.target)&&a.target!==q[0]&&(a.stopPropagation(),f.focus())}function G(a){G.str!==a&&(f.add(q).removeClass(G.str).addClass(a),
|
3 |
+
G.str=a)}function ja(b){m=0;b&&!1!==b&&"nofollow"!==b?(k=c(".cboxElement").filter(function(){var a=c.data(this,"colorbox");return(new M(this,a)).get("rel")===b}),m=k.index(a.el),-1===m&&(k=k.add(a.el),m=k.length-1)):k=c(a.el)}function C(a){c(p).trigger(a);r.triggerHandler(a)}function O(b){var d;if(!H){d=c(b).data("colorbox");a=new M(b,d);ja(a.get("rel"));if(!x){x=I=!0;G(a.get("className"));f.css({visibility:"hidden",display:"block",opacity:""});h=g("div","LoadedContent","width:0; height:0; overflow:hidden; visibility:hidden");
|
4 |
+
u.css({width:"",height:""}).append(h);t=T.height()+U.height()+u.outerHeight(!0)-u.height();v=V.width()+W.width()+u.outerWidth(!0)-u.width();y=h.outerHeight(!0);z=h.outerWidth(!0);b=n(a.get("initialWidth"),"x");d=n(a.get("initialHeight"),"y");var F=a.get("maxWidth"),B=a.get("maxHeight");a.w=Math.max((!1!==F?Math.min(b,n(F,"x")):b)-z-v,0);a.h=Math.max((!1!==B?Math.min(d,n(B,"y")):d)-y-t,0);h.css({width:"",height:a.h});l.position();C("cbox_open");a.get("onOpen");X.add(Y).hide();f.focus();a.get("trapFocus")&&
|
5 |
+
p.addEventListener&&(p.addEventListener("focus",fa,!0),r.one("cbox_closed",function(){p.removeEventListener("focus",fa,!0)}));if(a.get("returnFocus"))r.one("cbox_closed",function(){c(a.el).focus()})}b=parseFloat(a.get("opacity"));q.css({opacity:b===b?b:"",cursor:a.get("overlayClose")?"pointer":"",visibility:"visible"}).show();a.get("closeButton")?P.html(a.get("close")).appendTo(u):P.appendTo("<div/>");ka()}}function ga(){f||(Z=!1,w=c(A),f=g("div").attr({id:"colorbox","class":!1===c.support.opacity?
|
6 |
+
"cboxIE":"",role:"dialog",tabindex:"-1"}).hide(),q=g("div","Overlay").hide(),Q=c([g("div","LoadingOverlay")[0],g("div","LoadingGraphic")[0]]),D=g("div","Wrapper"),u=g("div","Content").append(Y=g("div","Title"),aa=g("div","Current"),J=c('<button type="button"/>').attr({id:"cboxPrevious"}),K=c('<button type="button"/>').attr({id:"cboxNext"}),E=g("button","Slideshow"),Q),P=c('<button type="button"/>').attr({id:"cboxClose"}),D.append(g("div").append(g("div","TopLeft"),T=g("div","TopCenter"),g("div","TopRight")),
|
7 |
+
g("div",!1,"clear:left").append(V=g("div","MiddleLeft"),u,W=g("div","MiddleRight")),g("div",!1,"clear:left").append(g("div","BottomLeft"),U=g("div","BottomCenter"),g("div","BottomRight"))).find("div div").css({"float":"left"}),L=g("div",!1,"position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;"),X=K.add(J).add(aa).add(E));p.body&&!f.parent().length&&c(p.body).append(q,f.append(D,L))}function la(){function b(a){1<a.which||a.shiftKey||a.altKey||a.metaKey||a.ctrlKey||(a.preventDefault(),
|
8 |
+
O(this))}if(f){if(!Z)if(Z=!0,K.click(function(){l.next()}),J.click(function(){l.prev()}),P.click(function(){l.close()}),q.click(function(){a.get("overlayClose")&&l.close()}),c(p).bind("keydown.cbox",function(b){var c=b.keyCode;x&&a.get("escKey")&&27===c&&(b.preventDefault(),l.close());x&&a.get("arrowKey")&&k[1]&&!b.altKey&&(37===c?(b.preventDefault(),J.click()):39===c&&(b.preventDefault(),K.click()))}),c.isFunction(c.fn.on))c(p).on("click.cbox",".cboxElement",b);else c(".cboxElement").live("click.cbox",
|
9 |
+
b);return!0}return!1}function ka(){var b,d,f=l.prep,B,h=++ba;I=!0;e=!1;C("cbox_purge");C("cbox_load");a.get("onLoad");a.h=a.get("height")?n(a.get("height"),"y")-y-t:a.get("innerHeight")&&n(a.get("innerHeight"),"y");a.w=a.get("width")?n(a.get("width"),"x")-z-v:a.get("innerWidth")&&n(a.get("innerWidth"),"x");a.mw=a.w;a.mh=a.h;a.get("maxWidth")&&(a.mw=n(a.get("maxWidth"),"x")-z-v,a.mw=a.w&&a.w<a.mw?a.w:a.mw);a.get("maxHeight")&&(a.mh=n(a.get("maxHeight"),"y")-y-t,a.mh=a.h&&a.h<a.mh?a.h:a.mh);b=a.get("href");
|
10 |
+
ha=setTimeout(function(){Q.show()},100);if(a.get("inline")){var ca=c(b);B=c("<div>").hide().insertBefore(ca);r.one("cbox_purge",function(){B.replaceWith(ca)});f(ca)}else a.get("iframe")?f(" "):a.get("html")?f(a.get("html")):da(a,b)?(b=ea(a,b),e=a.get("createImg"),c(e).addClass("cboxPhoto").bind("error.cbox",function(){f(g("div","Error").html(a.get("imgError")))}).one("load",function(){h===ba&&setTimeout(function(){var b;a.get("retinaImage")&&1<A.devicePixelRatio&&(e.height/=A.devicePixelRatio,e.width/=
|
11 |
+
A.devicePixelRatio);a.get("scalePhotos")&&(d=function(){e.height-=e.height*b;e.width-=e.width*b},a.mw&&e.width>a.mw&&(b=(e.width-a.mw)/e.width,d()),a.mh&&e.height>a.mh&&(b=(e.height-a.mh)/e.height,d()));a.h&&(e.style.marginTop=Math.max(a.mh-e.height,0)/2+"px");k[1]&&(a.get("loop")||k[m+1])&&(e.style.cursor="pointer",c(e).bind("click.cbox",function(){l.next()}));e.style.width=e.width+"px";e.style.height=e.height+"px";f(e)},1)}),e.src=b):b&&L.load(b,a.get("data"),function(b,d){h===ba&&f("error"===d?
|
12 |
+
g("div","Error").html(a.get("xhrError")):c(this).contents())})}var S={html:!1,photo:!1,iframe:!1,inline:!1,transition:"elastic",speed:300,fadeOut:300,width:!1,initialWidth:"600",innerWidth:!1,maxWidth:!1,height:!1,initialHeight:"450",innerHeight:!1,maxHeight:!1,scalePhotos:!0,scrolling:!0,opacity:.9,preloading:!0,className:!1,overlayClose:!0,escKey:!0,arrowKey:!0,top:!1,bottom:!1,left:!1,right:!1,fixed:!1,data:void 0,closeButton:!0,fastIframe:!0,open:!1,reposition:!0,loop:!0,slideshow:!1,slideshowAuto:!0,
|
13 |
+
slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow",photoRegex:/\.(gif|png|jp(e|g|eg)|bmp|ico|webp|jxr|svg)((#|\?).*)?$/i,retinaImage:!1,retinaUrl:!1,retinaSuffix:"@2x.$1",current:"image {current} of {total}",previous:"previous",next:"next",close:"close",xhrError:"This content failed to load.",imgError:"This image failed to load.",returnFocus:!0,trapFocus:!0,onOpen:!1,onLoad:!1,onComplete:!1,onCleanup:!1,onClosed:!1,rel:function(){return this.rel},href:function(){return c(this).attr("href")},
|
14 |
+
title:function(){return this.title},createImg:function(){var a=new Image,d=c(this).data("cbox-img-attrs");"object"===typeof d&&c.each(d,function(c,d){a[c]=d});return a},createIframe:function(){var a=p.createElement("iframe"),d=c(this).data("cbox-iframe-attrs");"object"===typeof d&&c.each(d,function(c,d){a[c]=d});"frameBorder"in a&&(a.frameBorder=0);"allowTransparency"in a&&(a.allowTransparency="true");a.name=(new Date).getTime();a.allowFullscreen=!0;return a}},q,f,D,u,T,V,W,U,k,w,h,L,Q,Y,aa,E,K,J,
|
15 |
+
P,X,r=c("<a/>"),a,t,v,y,z,m,e,x,I,H,ha,l,ba=0,ia={},Z,ma=function(){function b(){clearTimeout(n)}function c(){if(a.get("loop")||k[m+1])b(),n=setTimeout(l.next,a.get("slideshowSpeed"))}function e(){E.html(a.get("slideshowStop")).unbind("click.cbox").one("click.cbox",B);r.bind("cbox_complete",c).bind("cbox_load",b);f.removeClass("cboxSlideshow_off").addClass("cboxSlideshow_on")}function B(){b();r.unbind("cbox_complete",c).unbind("cbox_load",b);E.html(a.get("slideshowStart")).unbind("click.cbox").one("click.cbox",
|
16 |
+
function(){l.next();e()});f.removeClass("cboxSlideshow_on").addClass("cboxSlideshow_off")}function g(){h=!1;E.hide();b();r.unbind("cbox_complete",c).unbind("cbox_load",b);f.removeClass("cboxSlideshow_off cboxSlideshow_on")}var h,n;return function(){h?a.get("slideshow")||(r.unbind("cbox_cleanup",g),g()):a.get("slideshow")&&k[1]&&(h=!0,r.one("cbox_cleanup",g),a.get("slideshowAuto")?e():B(),E.show())}}();c.colorbox||(c(ga),l=c.fn.colorbox=c.colorbox=function(a,d){var f,e=this;a=a||{};c.isFunction(e)&&
|
17 |
+
(e=c("<a/>"),a.open=!0);if(!e[0])return e;ga();la()&&(d&&(a.onComplete=d),e.each(function(){var d=c.data(this,"colorbox")||{};c.data(this,"colorbox",c.extend(d,a))}).addClass("cboxElement"),f=new M(e[0],a),f.get("open")&&O(e[0]));return e},l.position=function(b,d){function e(){T[0].style.width=U[0].style.width=u[0].style.width=parseInt(f[0].style.width,10)-v+"px";u[0].style.height=V[0].style.height=W[0].style.height=parseInt(f[0].style.height,10)-t+"px"}var g,h=0,k=0,m=f.offset(),p,r;w.unbind("resize.cbox");
|
18 |
+
f.css({top:-9E4,left:-9E4});p=w.scrollTop();r=w.scrollLeft();a.get("fixed")?(m.top-=p,m.left-=r,f.css({position:"fixed"})):(h=p,k=r,f.css({position:"absolute"}));k=!1!==a.get("right")?k+Math.max(w.width()-a.w-z-v-n(a.get("right"),"x"),0):!1!==a.get("left")?k+n(a.get("left"),"x"):k+Math.round(Math.max(w.width()-a.w-z-v,0)/2);h=!1!==a.get("bottom")?h+Math.max(R()-a.h-y-t-n(a.get("bottom"),"y"),0):!1!==a.get("top")?h+n(a.get("top"),"y"):h+Math.round(Math.max(R()-a.h-y-t,0)/2);f.css({top:m.top,left:m.left,
|
19 |
+
visibility:"visible"});D[0].style.width=D[0].style.height="9999px";g={width:a.w+z+v,height:a.h+y+t,top:h,left:k};if(b){var q=0;c.each(g,function(a){g[a]!==ia[a]&&(q=b)});b=q}ia=g;b||f.css(g);f.dequeue().animate(g,{duration:b||0,complete:function(){e();I=!1;D[0].style.width=a.w+z+v+"px";D[0].style.height=a.h+y+t+"px";a.get("reposition")&&setTimeout(function(){w.bind("resize.cbox",l.position)},1);c.isFunction(d)&&d()},step:e})},l.resize=function(b){var c;x&&(b=b||{},b.width&&(a.w=n(b.width,"x")-z-v),
|
20 |
+
b.innerWidth&&(a.w=n(b.innerWidth,"x")),h.css({width:a.w}),b.height&&(a.h=n(b.height,"y")-y-t),b.innerHeight&&(a.h=n(b.innerHeight,"y")),b.innerHeight||b.height||(c=h.scrollTop(),h.css({height:"auto"}),a.h=h.height()),h.css({height:a.h}),c&&h.scrollTop(c),l.position("none"===a.get("transition")?0:a.get("speed")))},l.prep=function(b){function d(){a.w=a.w||h.width();a.w=a.mw&&a.mw<a.w?a.mw:a.w;return a.w}function n(){a.h=a.h||h.height();a.h=a.mh&&a.mh<a.h?a.mh:a.h;return a.h}if(x){var q,t="none"===
|
21 |
+
a.get("transition")?0:a.get("speed");h.remove();h=g("div","LoadedContent").append(b);h.hide().appendTo(L.show()).css({width:d(),overflow:a.get("scrolling")?"auto":"hidden"}).css({height:n()}).prependTo(u);L.hide();c(e).css({"float":"none"});G(a.get("className"));q=function(){function b(){!1===c.support.opacity&&f[0].style.removeAttribute("filter")}var d=k.length,e,g;x&&(g=function(){clearTimeout(ha);Q.hide();C("cbox_complete");a.get("onComplete")},Y.html(a.get("title")).show(),h.show(),1<d?("string"===
|
22 |
+
typeof a.get("current")&&aa.html(a.get("current").replace("{current}",m+1).replace("{total}",d)).show(),K[a.get("loop")||m<d-1?"show":"hide"]().html(a.get("next")),J[a.get("loop")||m?"show":"hide"]().html(a.get("previous")),ma(),a.get("preloading")&&c.each([N(-1),N(1)],function(){var a,b=k[this];a=new M(b,c.data(b,"colorbox"));(b=a.get("href"))&&da(a,b)&&(b=ea(a,b),a=p.createElement("img"),a.src=b)})):X.hide(),a.get("iframe")?(e=a.get("createIframe"),a.get("scrolling")||(e.scrolling="no"),c(e).attr({src:a.get("href"),
|
23 |
+
"class":"cboxIframe"}).one("load",g).appendTo(h),r.one("cbox_purge",function(){e.src="//about:blank"}),a.get("fastIframe")&&c(e).trigger("load")):g(),"fade"===a.get("transition")?f.fadeTo(t,1,b):b())};"fade"===a.get("transition")?f.fadeTo(t,0,function(){l.position(0,q)}):l.position(t,q)}},l.next=function(){!I&&k[1]&&(a.get("loop")||k[m+1])&&(m=N(1),O(k[m]))},l.prev=function(){!I&&k[1]&&(a.get("loop")||m)&&(m=N(-1),O(k[m]))},l.close=function(){x&&!H&&(H=!0,x=!1,C("cbox_cleanup"),a.get("onCleanup"),
|
24 |
+
w.unbind(".cbox"),q.fadeTo(a.get("fadeOut")||0,0),f.stop().fadeTo(a.get("fadeOut")||0,0,function(){f.hide();q.hide();C("cbox_purge");h.remove();setTimeout(function(){H=!1;C("cbox_closed");a.get("onClosed")},1)}))},l.remove=function(){f&&(f.stop(),c.colorbox.close(),f.stop(!1,!0).remove(),q.remove(),H=!1,f=null,c(".cboxElement").removeData("colorbox").removeClass("cboxElement"),c(p).unbind("click.cbox").unbind("keydown.cbox"))},l.element=function(){return c(a.el)},l.settings=S)})(jQuery,document,window);
|
plugin-fw/assets/js/metabox.js
CHANGED
@@ -28,147 +28,13 @@
|
|
28 |
|
29 |
var t = $(this).attr('href');
|
30 |
$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
|
31 |
-
$(this).closest('.metaboxes-tab').find('.tabs-panel').
|
32 |
-
$(t).
|
33 |
|
34 |
return false;
|
35 |
});
|
36 |
});
|
37 |
|
38 |
-
//upload
|
39 |
-
var _custom_media = true,
|
40 |
-
_orig_send_attachment = wp.media.editor.send.attachment;
|
41 |
-
|
42 |
-
$(document).on('click', '.metaboxes-tab .upload_button', function(e) {
|
43 |
-
var send_attachment_bkp = wp.media.editor.send.attachment;
|
44 |
-
var button = $(this);
|
45 |
-
if( typeof button.attr('id') != 'undefined' ) {
|
46 |
-
|
47 |
-
var id = button.attr('id').replace('-button', '');
|
48 |
-
_custom_media = true;
|
49 |
-
wp.media.editor.send.attachment = function(props, attachment){
|
50 |
-
if ( _custom_media ) {
|
51 |
-
if( $("#"+id).is('input[type=text]') ) {
|
52 |
-
$("#"+id).val(attachment.url);
|
53 |
-
} else {
|
54 |
-
$("#"+id + '_custom').val(attachment.url);
|
55 |
-
}
|
56 |
-
} else {
|
57 |
-
return _orig_send_attachment.apply( this, [props, attachment] );
|
58 |
-
};
|
59 |
-
}
|
60 |
-
|
61 |
-
wp.media.editor.open(button);
|
62 |
-
return false;
|
63 |
-
}
|
64 |
-
|
65 |
-
});
|
66 |
-
|
67 |
-
$('.metaboxes-tab .add_media').on('click', function(){
|
68 |
-
_custom_media = false;
|
69 |
-
});
|
70 |
-
|
71 |
-
//colorpicker
|
72 |
-
$('.metaboxes-tab .panel-colorpicker').wpColorPicker({
|
73 |
-
onInit: function(){ console.log('test');},
|
74 |
-
change: function(event, ui){
|
75 |
-
},
|
76 |
-
clear: function(){
|
77 |
-
var input = $(this);
|
78 |
-
input.val(input.data('default-color'));
|
79 |
-
input.change();
|
80 |
-
}
|
81 |
-
});
|
82 |
-
|
83 |
-
|
84 |
-
$('.metaboxes-tab .panel-colorpicker').each( function() {
|
85 |
-
var select_label = $(this).data('variations-label');
|
86 |
-
$(this).parent().parent().find('a.wp-color-result').attr('title', select_label);
|
87 |
-
});
|
88 |
-
|
89 |
-
//datepicker
|
90 |
-
$('.metaboxes-tab .panel-datepicker').each( function() {
|
91 |
-
$(this).datepicker();
|
92 |
-
});
|
93 |
-
|
94 |
-
|
95 |
-
// select
|
96 |
-
var select_value = function() {
|
97 |
-
var value = '';
|
98 |
-
|
99 |
-
if( $(this).attr('multiple')){
|
100 |
-
$(this).children("option:selected").each(function(i,v){
|
101 |
-
if( i != 0)
|
102 |
-
value += ', ';
|
103 |
-
|
104 |
-
value += $(v).text();
|
105 |
-
});
|
106 |
-
|
107 |
-
if( value == '' ){
|
108 |
-
$(this).children().children("option:selected").each(function(i,v){
|
109 |
-
if( i != 0)
|
110 |
-
value += ', ';
|
111 |
-
|
112 |
-
value += $(v).text();
|
113 |
-
});
|
114 |
-
}
|
115 |
-
}
|
116 |
-
else{
|
117 |
-
value = $(this).children("option:selected").text();
|
118 |
-
|
119 |
-
if( value == '' )
|
120 |
-
value = $(this).children().children("option:selected").text();
|
121 |
-
}
|
122 |
-
|
123 |
-
|
124 |
-
if ( $(this).parent().find('span').length <= 0 ) {
|
125 |
-
$(this).before('<span></span>');
|
126 |
-
}
|
127 |
-
|
128 |
-
$(this).parent().children('span').replaceWith('<span>'+value +'</span>');
|
129 |
-
};
|
130 |
-
$('.metaboxes-tab .select_wrapper select').not('.chosen').each(select_value).change(select_value);
|
131 |
-
|
132 |
-
//Open select multiple
|
133 |
-
$('.metaboxes-tab .select_wrapper').click( function(e){
|
134 |
-
e.stopPropagation();
|
135 |
-
$(this).find('select[multiple]').not('.chosen').toggle();
|
136 |
-
});
|
137 |
-
//Stops click propagation on select, to prevent select hide
|
138 |
-
$('.metaboxes-tab .select_wrapper select[multiple]').not('.chosen').click( function(e){
|
139 |
-
e.stopPropagation();
|
140 |
-
});
|
141 |
-
//Hides select on window click
|
142 |
-
$(window).click(function(){
|
143 |
-
$('.metaboxes-tab .select_wrapper select[multiple]').not('.chosen').hide();
|
144 |
-
})
|
145 |
-
|
146 |
-
//chosen
|
147 |
-
$('.metaboxes-tab .chosen .select_wrapper select').chosen();
|
148 |
-
|
149 |
-
|
150 |
-
$('.metaboxes-tab .slider_container .ui-slider-horizontal').each(function(){
|
151 |
-
var val = $(this).data('val');
|
152 |
-
var minValue = $(this).data('min');
|
153 |
-
var maxValue = $(this).data('max');
|
154 |
-
var step = $(this).data('step');
|
155 |
-
var labels = $(this).data('labels');
|
156 |
-
|
157 |
-
$(this).slider({
|
158 |
-
value: val,
|
159 |
-
min: minValue,
|
160 |
-
max: maxValue,
|
161 |
-
range: 'min',
|
162 |
-
step: step,
|
163 |
-
|
164 |
-
slide: function( event, ui ) {
|
165 |
-
$(this).find('input').val( ui.value );
|
166 |
-
$(this).siblings('.feedback').find('strong' ).text( ui.value + labels );
|
167 |
-
}
|
168 |
-
});
|
169 |
-
});
|
170 |
-
|
171 |
-
|
172 |
var act_page_option = $('#_active_page_options-container').parent().html();
|
173 |
$('#_active_page_options-container').parent().remove();
|
174 |
$(act_page_option).insertAfter('#yit-post-setting .handlediv');
|
@@ -185,23 +51,24 @@
|
|
185 |
|
186 |
|
187 |
//dependencies handler
|
188 |
-
$('.metaboxes-tab [data-
|
189 |
var t = $(this);
|
190 |
|
191 |
-
var field = '#' + t.data('
|
192 |
-
dep = '#' + t.data('dep'),
|
193 |
-
value = t.data('value')
|
|
|
194 |
|
195 |
|
196 |
-
dependencies_handler( field, dep, value.toString() );
|
197 |
|
198 |
$(dep).on('change', function(){
|
199 |
-
dependencies_handler( field, dep, value.toString() );
|
200 |
}).change();
|
201 |
});
|
202 |
|
203 |
//Handle dependencies.
|
204 |
-
function dependencies_handler ( id, deps, values ) {
|
205 |
var result = true;
|
206 |
|
207 |
|
@@ -222,7 +89,7 @@
|
|
222 |
}
|
223 |
}
|
224 |
|
225 |
-
|
226 |
|
227 |
for( var i = 0; i < values.length; i++ ) {
|
228 |
if( val != values[i] )
|
@@ -232,124 +99,40 @@
|
|
232 |
}
|
233 |
}
|
234 |
|
235 |
-
|
236 |
-
$( id + '-container' ).parent()
|
237 |
-
|
238 |
-
|
239 |
-
|
240 |
-
|
241 |
-
|
242 |
-
|
243 |
-
|
244 |
-
|
245 |
-
|
246 |
-
|
247 |
-
|
248 |
-
|
249 |
-
|
250 |
-
|
251 |
-
|
252 |
-
|
253 |
-
// Set the title of the modal.
|
254 |
-
title : $t.data('choose'),
|
255 |
-
button: {
|
256 |
-
text: $t.data('update')
|
257 |
-
},
|
258 |
-
states: [
|
259 |
-
new wp.media.controller.Library({
|
260 |
-
title : $t.data('choose'),
|
261 |
-
filterable: 'all',
|
262 |
-
multiple : true
|
263 |
-
})
|
264 |
-
]
|
265 |
-
});
|
266 |
-
|
267 |
-
// When an image is selected, run a callback.
|
268 |
-
image_gallery_frame.on('select', function () {
|
269 |
-
var selection = image_gallery_frame.state().get('selection');
|
270 |
-
selection.map(function (attachment) {
|
271 |
-
attachment = attachment.toJSON();
|
272 |
-
|
273 |
-
if (attachment.id) {
|
274 |
-
attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
|
275 |
-
$gallery_images_wrapper.append('<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data('delete') + '">x</a></li></ul></li>');
|
276 |
}
|
277 |
-
});
|
278 |
-
|
279 |
-
$image_gallery_ids.val(attachment_ids);
|
280 |
-
});
|
281 |
-
|
282 |
-
image_gallery_frame.open();
|
283 |
-
|
284 |
-
});
|
285 |
-
|
286 |
-
// Image ordering
|
287 |
-
$('.image-gallery ul.slides-wrapper').each(function(){
|
288 |
-
var $t = $(this);
|
289 |
-
$t.sortable({
|
290 |
-
items : 'li.image',
|
291 |
-
cursor : 'move',
|
292 |
-
scrollSensitivity : 40,
|
293 |
-
forcePlaceholderSize: true,
|
294 |
-
forceHelperSize : false,
|
295 |
-
helper : 'clone',
|
296 |
-
opacity : 0.65,
|
297 |
-
start : function (event, ui) {
|
298 |
-
ui.item.css('background-color', '#f6f6f6');
|
299 |
-
},
|
300 |
-
stop : function (event, ui) {
|
301 |
-
ui.item.removeAttr('style');
|
302 |
-
},
|
303 |
-
update : function (event, ui) {
|
304 |
-
var attachment_ids = '';
|
305 |
-
|
306 |
-
$t.find('li.image').css('cursor', 'default').each(function () {
|
307 |
-
var attachment_id = $(this).attr('data-attachment_id');
|
308 |
-
attachment_ids = attachment_ids + attachment_id + ',';
|
309 |
-
});
|
310 |
|
311 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
312 |
}
|
313 |
-
});
|
314 |
-
});
|
315 |
-
|
316 |
-
// Remove images
|
317 |
-
$('.image-gallery ul.slides-wrapper').on( 'click', 'a.delete', function() {
|
318 |
-
|
319 |
-
var $wrapper = $(this).closest('.image-gallery'),
|
320 |
-
$gallery = $(this).closest('.image-gallery ul.slides-wrapper'),
|
321 |
-
$image_gallery_ids = $wrapper.find('.image_gallery_ids'),
|
322 |
-
attachment_ids = '';
|
323 |
-
|
324 |
-
$(this).closest('li.image').remove();
|
325 |
-
|
326 |
-
$gallery.find('li.image').css('cursor','default').each(function() {
|
327 |
-
var attachment_id = $(this).attr( 'data-attachment_id' );
|
328 |
-
attachment_ids = attachment_ids + attachment_id + ',';
|
329 |
-
});
|
330 |
-
|
331 |
-
$image_gallery_ids.val( attachment_ids );
|
332 |
-
|
333 |
-
return false;
|
334 |
-
});
|
335 |
-
|
336 |
-
|
337 |
-
//on-off
|
338 |
-
$('.the-metabox .rm_onoff.onoff_container span').on('click', function(ev){
|
339 |
-
|
340 |
-
var input = $( this ).prev( 'input' );
|
341 |
-
var checked = input.prop( 'checked' );
|
342 |
-
|
343 |
-
if( checked ) {
|
344 |
-
input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass('onoffchecked');
|
345 |
-
} else {
|
346 |
-
input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass('onoffchecked');
|
347 |
}
|
348 |
-
|
349 |
-
|
350 |
-
});
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
})(jQuery);
|
28 |
|
29 |
var t = $(this).attr('href');
|
30 |
$(this).parent().addClass('tabs').siblings('li').removeClass('tabs');
|
31 |
+
$(this).closest('.metaboxes-tab').find('.tabs-panel').hide();
|
32 |
+
$(t).show();
|
33 |
|
34 |
return false;
|
35 |
});
|
36 |
});
|
37 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
38 |
var act_page_option = $('#_active_page_options-container').parent().html();
|
39 |
$('#_active_page_options-container').parent().remove();
|
40 |
$(act_page_option).insertAfter('#yit-post-setting .handlediv');
|
51 |
|
52 |
|
53 |
//dependencies handler
|
54 |
+
$('.metaboxes-tab [data-dep-target]').each(function(){
|
55 |
var t = $(this);
|
56 |
|
57 |
+
var field = '#' + t.data('dep-target'),
|
58 |
+
dep = '#' + t.data('dep-id'),
|
59 |
+
value = t.data('dep-value'),
|
60 |
+
type = t.data('dep-type');
|
61 |
|
62 |
|
63 |
+
dependencies_handler( field, dep, value.toString(), type );
|
64 |
|
65 |
$(dep).on('change', function(){
|
66 |
+
dependencies_handler( field, dep, value.toString(), type );
|
67 |
}).change();
|
68 |
});
|
69 |
|
70 |
//Handle dependencies.
|
71 |
+
function dependencies_handler ( id, deps, values, type ) {
|
72 |
var result = true;
|
73 |
|
74 |
|
89 |
}
|
90 |
}
|
91 |
|
92 |
+
values = values.split( ',' );
|
93 |
|
94 |
for( var i = 0; i < values.length; i++ ) {
|
95 |
if( val != values[i] )
|
99 |
}
|
100 |
}
|
101 |
|
102 |
+
var $current_field = $( id ),
|
103 |
+
$current_container = $( id + '-container' ).parent();
|
104 |
+
|
105 |
+
var types = type.split( '-' ), j;
|
106 |
+
for ( j in types ) {
|
107 |
+
var current_type = types[ j ];
|
108 |
+
|
109 |
+
if ( !result ) {
|
110 |
+
switch ( current_type ) {
|
111 |
+
case 'disable':
|
112 |
+
$current_container.addClass( 'yith-disabled' );
|
113 |
+
$current_field.attr( 'disabled', true );
|
114 |
+
break;
|
115 |
+
case 'hideme':
|
116 |
+
$current_field.hide();
|
117 |
+
break;
|
118 |
+
default:
|
119 |
+
$current_container.hide();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
120 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
121 |
|
122 |
+
} else {
|
123 |
+
switch ( current_type ) {
|
124 |
+
case 'disable':
|
125 |
+
$current_container.removeClass( 'yith-disabled' );
|
126 |
+
$current_field.attr( 'disabled', false );
|
127 |
+
break;
|
128 |
+
case 'hideme':
|
129 |
+
$current_field.show();
|
130 |
+
break;
|
131 |
+
default:
|
132 |
+
$current_container.show();
|
133 |
+
}
|
134 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
135 |
}
|
136 |
+
}
|
137 |
+
|
|
|
|
|
|
|
|
|
|
|
138 |
})(jQuery);
|
plugin-fw/assets/js/metabox.min.js
CHANGED
@@ -1,11 +1,4 @@
|
|
1 |
-
(function(a){function
|
2 |
-
"#"+b;a(b).show();a(".metaboxes-tabs a",this).click(function(b){if(a(this).parent().hasClass("tabs"))b.preventDefault();else return b=a(this).attr("href"),a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(this).closest(".metaboxes-tab").find(".tabs-panel").
|
3 |
-
|
4 |
-
|
5 |
-
0>=a(this).parent().find("span").length&&a(this).before("<span></span>");a(this).parent().children("span").replaceWith("<span>"+b+"</span>")};a(".metaboxes-tab .select_wrapper select").not(".chosen").each(f).change(f);a(".metaboxes-tab .select_wrapper").click(function(b){b.stopPropagation();a(this).find("select[multiple]").not(".chosen").toggle()});a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").click(function(a){a.stopPropagation()});a(window).click(function(){a(".metaboxes-tab .select_wrapper select[multiple]").not(".chosen").hide()});
|
6 |
-
a(".metaboxes-tab .chosen .select_wrapper select").chosen();a(".metaboxes-tab .slider_container .ui-slider-horizontal").each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),g=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,slide:function(b,c){a(this).find("input").val(c.value);a(this).siblings(".feedback").find("strong").text(c.value+g)}})});f=a("#_active_page_options-container").parent().html();a("#_active_page_options-container").parent().remove();
|
7 |
-
a(f).insertAfter("#yit-post-setting .handlediv");a(f).insertAfter("#yit-page-setting .handlediv");a("#_active_page_options-container").on("click",function(){a("#_active_page_options").is(":checked")?a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,"pointer-events":"none"})}).click();a(".metaboxes-tab [data-field]").each(function(){var b=
|
8 |
-
a(this),c="#"+b.data("field"),d="#"+b.data("dep"),e=b.data("value");k(c,d,e.toString());a(d).on("change",function(){k(c,d,e.toString())}).change()});a(document).on("click",".image-gallery-button",function(b){var c=a(this);b=c.closest(".image-gallery");var d=b.find(".image_gallery_ids"),e=d.val(),g=b.find("ul.slides-wrapper"),f=wp.media.frames.image_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",
|
9 |
-
multiple:!0})]});f.on("select",function(){f.state().get("selection").map(function(a){a=a.toJSON();a.id&&(e=e?e+","+a.id:a.id,g.append('<li class="image" data-attachment_id="'+a.id+'"><img src="'+a.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+c.data("delete")+'">x</a></li></ul></li>'))});d.val(e)});f.open()});a(".image-gallery ul.slides-wrapper").each(function(){var b=a(this);b.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,
|
10 |
-
forceHelperSize:!1,helper:"clone",opacity:.65,start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(c,d){var e="";b.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");e=e+b+","});b.closest(".image-gallery").find(".image_gallery_ids").val(e)}})});a(".image-gallery ul.slides-wrapper").on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper"),
|
11 |
-
b=b.find(".image_gallery_ids"),d="";a(this).closest("li.image").remove();c.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");d=d+b+","});b.val(d);return!1});a(".the-metabox .rm_onoff.onoff_container span").on("click",function(b){b=a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()})})(jQuery);
|
1 |
+
(function(a){function h(b,c,d,e){var f=!0;if("string"==typeof c){":radio"==c.substr(0,6)&&(c+=":checked");var g=a(c).val();"checkbox"==a(c).attr("type")&&(g=a(c).is(":checked")?"yes":"no");d=d.split(",");for(c=0;c<d.length;c++)if(g!=d[c])f=!1;else{f=!0;break}}d=a(b);b=a(b+"-container").parent();e=e.split("-");for(var h in e)if(g=e[h],f)switch(g){case "disable":b.removeClass("yith-disabled");d.attr("disabled",!1);break;case "hideme":d.show();break;default:b.show()}else switch(g){case "disable":b.addClass("yith-disabled");
|
2 |
+
d.attr("disabled",!0);break;case "hideme":d.hide();break;default:b.hide()}}a(".metaboxes-tab").each(function(){a(".tabs-panel",this).hide();var b=wpCookies.get("active_metabox_tab"),b=null==b?a("ul.metaboxes-tabs li:first-child a",this).attr("href"):"#"+b;a(b).show();a(".metaboxes-tabs a",this).click(function(b){if(a(this).parent().hasClass("tabs"))b.preventDefault();else return b=a(this).attr("href"),a(this).parent().addClass("tabs").siblings("li").removeClass("tabs"),a(this).closest(".metaboxes-tab").find(".tabs-panel").hide(),
|
3 |
+
a(b).show(),!1})});var k=a("#_active_page_options-container").parent().html();a("#_active_page_options-container").parent().remove();a(k).insertAfter("#yit-post-setting .handlediv");a(k).insertAfter("#yit-page-setting .handlediv");a("#_active_page_options-container").on("click",function(){a("#_active_page_options").is(":checked")?a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:1,"pointer-events":"auto"}):a("#yit-page-setting .inside .metaboxes-tab, #yit-post-setting .inside .metaboxes-tab").css({opacity:.5,
|
4 |
+
"pointer-events":"none"})}).click();a(".metaboxes-tab [data-dep-target]").each(function(){var b=a(this),c="#"+b.data("dep-target"),d="#"+b.data("dep-id"),e=b.data("dep-value"),f=b.data("dep-type");h(c,d,e.toString(),f);a(d).on("change",function(){h(c,d,e.toString(),f)}).change()})})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/multisite-updater.js
CHANGED
@@ -213,4 +213,10 @@
|
|
213 |
}
|
214 |
}
|
215 |
|
|
|
|
|
|
|
|
|
|
|
|
|
216 |
})(jQuery);
|
213 |
}
|
214 |
}
|
215 |
|
216 |
+
// fix ThickBox issue (width-height) when opening a changelog
|
217 |
+
$( 'body' ).on( 'click', '.yit-changelog-button', function () {
|
218 |
+
$( '#TB_window' ).remove();
|
219 |
+
} );
|
220 |
+
|
221 |
+
|
222 |
})(jQuery);
|
plugin-fw/assets/js/multisite-updater.min.js
CHANGED
@@ -1 +1,4 @@
|
|
1 |
-
|
|
|
|
|
|
1 |
+
(function(e){function n(c,d,e){this.php_js=this.php_js||{};this.php_js.ENV=this.php_js.ENV||{};var a=0,f=0,b=0,g={dev:-6,alpha:-5,a:-5,beta:-4,b:-4,RC:-3,rc:-3,"#":-2,p:1,pl:1},a=function(a){a=(""+a).replace(/[_\-+]/g,".");a=a.replace(/([^.\d]+)/g,".$1.").replace(/\.{2,}/g,".");return a.length?a.split("."):[-8]};numVersion=function(a){return a?isNaN(a)?g[a]||-7:parseInt(a,10):0};c=a(c);d=a(d);f=Math.max(c.length,d.length);for(a=0;a<f;a++)if(c[a]!=d[a])if(c[a]=numVersion(c[a]),d[a]=numVersion(d[a]),
|
2 |
+
c[a]<d[a]){b=-1;break}else if(c[a]>d[a]){b=1;break}if(!e)return b;switch(e){case ">":case "gt":return 0<b;case ">=":case "ge":return 0<=b;case "<=":case "le":return 0>=b;case "==":case "=":case "eq":return 0===b;case "<>":case "!=":case "ne":return 0!==b;case "":case "<":case "lt":return 0>b;default:return null}}var l=e("#menu-plugins"),h=l.find(".update-plugins").find(".update-count").text(),p=plugins.registered,q=plugins.activated;if(0==h||""==h)h=0,l.find(".wp-menu-name").append('<span class="update-plugins"><span class="plugin-count"></span></span>');
|
3 |
+
(function(c,d,h,a){for(var f in c){var b=c[f],g;for(g in b)if("slug"!=g&&!n(b[g].Version,b[g].Latest,">=")){h=parseInt(h)+1;e(".plugin-count").empty().html(h);var m=""+b[g].Name,l='*[data-slug="'+m.replace(RegExp(" ","g"),"-").trim().toLowerCase()+'"]';e(l).addClass("update");var k='<tr class="plugin-update-tr"><td colspan="3" class="plugin-update colspanchange"><div class="update-message">'+a.strings.new_version.replace("%plugin_name%",m)+'<a class="thickbox" href="'+a.details_url[f]+'">'+a.strings.latest.replace("%latest%",
|
4 |
+
b[g].Latest)+"</a>",k="undefined"==typeof d[f]?k+" <em>"+a.strings.unavailable+"</em>"+a.strings.activate.replace("%activate_link%",a.licence_activation_url).replace("%plugin_name%",m):k+'. <a href="'+a.update_url[f]+'">'+a.strings.update_now+"</a>";"undefined"!=typeof a.changelogs[f]&&(k+=a.changelogs[f]);k+="</div></td></tr>";e(k).insertAfter(l)}}})(p,q,h,plugins);e("body").on("click",".yit-changelog-button",function(){e("#TB_window").remove()})})(jQuery);
|
plugin-fw/assets/js/panel.spinner.js
DELETED
@@ -1,139 +0,0 @@
|
|
1 |
-
/*
|
2 |
-
Spinner for jQuery (version 0.1)
|
3 |
-
Copyright (c) 2012 Simone D'Amico
|
4 |
-
http://simonedamico.com/
|
5 |
-
|
6 |
-
Licensed under the MIT license:
|
7 |
-
http://www.opensource.org/licenses/mit-license.php
|
8 |
-
|
9 |
-
Any and all use of this script must be accompanied by this copyright/license notice in its present form.
|
10 |
-
|
11 |
-
*/
|
12 |
-
(function($){
|
13 |
-
$.fn.spinner = function(params) {
|
14 |
-
|
15 |
-
//private methods
|
16 |
-
var _createButton = function( buttonClass, buttonLabel ) {
|
17 |
-
return $('<button/>', {
|
18 |
-
'class' : buttonClass + ' spinner-button',
|
19 |
-
text : buttonLabel
|
20 |
-
});
|
21 |
-
};
|
22 |
-
|
23 |
-
var _createBody = function(input) {
|
24 |
-
//create wrapper
|
25 |
-
var wrapper = input.wrap('<div class="spinner-wrapper"></div>').parent();
|
26 |
-
|
27 |
-
//create spinner buttons
|
28 |
-
var plus = _createButton('button-plus', '+').appendTo(wrapper).show(),
|
29 |
-
minus = _createButton('button-minus', '-').appendTo(wrapper).show();
|
30 |
-
|
31 |
-
return wrapper;
|
32 |
-
};
|
33 |
-
|
34 |
-
var _buttonClick = function( e ) {
|
35 |
-
var input = e.data.input,
|
36 |
-
params = e.data.params,
|
37 |
-
button = $(this),
|
38 |
-
value = parseFloat(input.val());
|
39 |
-
|
40 |
-
if( button.hasClass('button-plus') ) {
|
41 |
-
if( params.max != null ) {
|
42 |
-
if( ( value + params.interval ) <= params.max ) {
|
43 |
-
input.val( value + params.interval );
|
44 |
-
} else {
|
45 |
-
input.val( params.max );
|
46 |
-
}
|
47 |
-
} else {
|
48 |
-
input.val( value + params.interval );
|
49 |
-
}
|
50 |
-
} else if( button.hasClass('button-minus') ) {
|
51 |
-
if( params.min != null ) {
|
52 |
-
if( ( value - params.interval ) >= params.min ) {
|
53 |
-
input.val( value - params.interval );
|
54 |
-
} else {
|
55 |
-
input.val( params.min );
|
56 |
-
}
|
57 |
-
} else {
|
58 |
-
input.val( value - params.interval );
|
59 |
-
}
|
60 |
-
}
|
61 |
-
|
62 |
-
input.change(); e.preventDefault();
|
63 |
-
};
|
64 |
-
|
65 |
-
var _validateContent = function( e ) {
|
66 |
-
var value = parseFloat( $(this).val() );
|
67 |
-
|
68 |
-
if( params.max != null && value >= params.max ) {
|
69 |
-
$(this).val(params.max);
|
70 |
-
} else if( value <= params.min || isNaN( value ) ) {
|
71 |
-
$(this).val(params.min ? params.min : 0);
|
72 |
-
} else {
|
73 |
-
$(this).val(value);
|
74 |
-
}
|
75 |
-
};
|
76 |
-
|
77 |
-
|
78 |
-
//public methods
|
79 |
-
var methods = {
|
80 |
-
init : function( params ) {
|
81 |
-
|
82 |
-
var params = $.extend({
|
83 |
-
min: null,
|
84 |
-
max: null,
|
85 |
-
interval: 1,
|
86 |
-
defaultValue: 0,
|
87 |
-
mouseWheel: true,
|
88 |
-
largeInterval: 10
|
89 |
-
}, params);
|
90 |
-
|
91 |
-
var self = this,
|
92 |
-
t = $(this),
|
93 |
-
data = t.data('spinner');
|
94 |
-
|
95 |
-
return this.each(function(){
|
96 |
-
//check if the plugin hasn't already been initialized
|
97 |
-
//and it's an input[type=text] element
|
98 |
-
if( !data && t.is(':text') ) {
|
99 |
-
//initialize the value
|
100 |
-
if( params.defaultValue ) {
|
101 |
-
t.val( params.defaultValue );
|
102 |
-
}
|
103 |
-
|
104 |
-
//create the spinner body
|
105 |
-
var wrapper = _createBody(t);
|
106 |
-
|
107 |
-
//event handlers
|
108 |
-
//var mouseWheelEventName = $.browser.mozilla ? 'DOMMouseScroll' : 'mousewheel';
|
109 |
-
|
110 |
-
wrapper.find('.spinner-button')
|
111 |
-
.bind('click.spinner', { params: params, input: t }, _buttonClick);
|
112 |
-
|
113 |
-
t.bind('blur.spinner', _validateContent)
|
114 |
-
//.bind('keyup.spinner', _validateKey)
|
115 |
-
//.bind(mouseWheelEventName, _inputMousewheel);
|
116 |
-
|
117 |
-
//register field data
|
118 |
-
t.data('spinner', {
|
119 |
-
target: self
|
120 |
-
});
|
121 |
-
}
|
122 |
-
});
|
123 |
-
},
|
124 |
-
|
125 |
-
destroy : function( params) {
|
126 |
-
console.log('destroy', params);
|
127 |
-
}
|
128 |
-
};
|
129 |
-
|
130 |
-
//execute the plugin
|
131 |
-
if ( methods[params] ) {
|
132 |
-
return methods[params].apply( this, Array.prototype.slice.call( arguments, 1 ));
|
133 |
-
} else if ( typeof params === 'object' || ! params ) {
|
134 |
-
return methods.init.apply( this, arguments );
|
135 |
-
} else {
|
136 |
-
$.error( 'Method ' + params + ' does not exist' );
|
137 |
-
}
|
138 |
-
};
|
139 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/panel.spinner.min.js
DELETED
@@ -1,3 +0,0 @@
|
|
1 |
-
(function(d){d.fn.spinner=function(c){var h=function(b,e){return d("<button/>",{"class":b+" spinner-button",text:e})},k=function(b){var e=b.data.input,a=b.data.params,c=d(this),f=parseFloat(e.val());c.hasClass("button-plus")?null!=a.max?f+a.interval<=a.max?e.val(f+a.interval):e.val(a.max):e.val(f+a.interval):c.hasClass("button-minus")&&(null!=a.min?f-a.interval>=a.min?e.val(f-a.interval):e.val(a.min):e.val(f-a.interval));e.change();b.preventDefault()},l=function(b){b=parseFloat(d(this).val());null!=
|
2 |
-
c.max&&b>=c.max?d(this).val(c.max):b<=c.min||isNaN(b)?d(this).val(c.min?c.min:0):d(this).val(b)},g={init:function(b){b=d.extend({min:null,max:null,interval:1,defaultValue:0,mouseWheel:!0,largeInterval:10},b);var c=this,a=d(this),g=a.data("spinner");return this.each(function(){if(!g&&a.is(":text")){b.defaultValue&&a.val(b.defaultValue);var d=a.wrap('<div class="spinner-wrapper"></div>').parent();h("button-plus","+").appendTo(d).show();h("button-minus","-").appendTo(d).show();d.find(".spinner-button").bind("click.spinner",
|
3 |
-
{params:b,input:a},k);a.bind("blur.spinner",l);a.data("spinner",{target:c})}})},destroy:function(b){console.log("destroy",b)}};if(g[c])return g[c].apply(this,Array.prototype.slice.call(arguments,1));if("object"!==typeof c&&c)d.error("Method "+c+" does not exist");else return g.init.apply(this,arguments)}})(jQuery);
|
|
|
|
|
|
plugin-fw/assets/js/yit-cpt-unlimited.js
DELETED
@@ -1,79 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* This file belongs to the YIT Framework.
|
3 |
-
*
|
4 |
-
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
5 |
-
* that is bundled with this package in the file LICENSE.txt.
|
6 |
-
* It is also available through the world-wide-web at this URL:
|
7 |
-
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
-
*/
|
9 |
-
|
10 |
-
(function($) {
|
11 |
-
"use strict";
|
12 |
-
// Author code here
|
13 |
-
|
14 |
-
// open media box
|
15 |
-
$('.wrap h1, .wrap h2').on( 'click', 'a.multi-uploader', function(event){
|
16 |
-
event.preventDefault();
|
17 |
-
|
18 |
-
var file_frame,
|
19 |
-
button = $(this),
|
20 |
-
selected = false;
|
21 |
-
|
22 |
-
// spinner
|
23 |
-
button.next('span.spinner').css( 'display', 'inline-block' );
|
24 |
-
|
25 |
-
// If the media frame already exists, reopen it.
|
26 |
-
if ( file_frame ) {
|
27 |
-
file_frame.open();
|
28 |
-
return;
|
29 |
-
}
|
30 |
-
|
31 |
-
// Create the media frame.
|
32 |
-
file_frame = wp.media.frames.file_frame = wp.media({
|
33 |
-
title: button.data( 'uploader_title' ),
|
34 |
-
button: {
|
35 |
-
text: button.data( 'uploader_button_text' )
|
36 |
-
},
|
37 |
-
library: {
|
38 |
-
type: 'image'
|
39 |
-
},
|
40 |
-
multiple: true // Set to true to allow multiple files to be selected
|
41 |
-
});
|
42 |
-
|
43 |
-
// When an image is selected, run a callback.
|
44 |
-
file_frame.on( 'select', function() {
|
45 |
-
var selection = file_frame.state().get('selection'),
|
46 |
-
images = [];
|
47 |
-
|
48 |
-
selection.map( function( attachment ) {
|
49 |
-
attachment = attachment.toJSON();
|
50 |
-
|
51 |
-
// Do something with attachment.id and/or attachment.url here
|
52 |
-
images.push( { id: attachment.id, url: attachment.url, title: attachment.title } );
|
53 |
-
});
|
54 |
-
|
55 |
-
// make AJAX request
|
56 |
-
$.post( ajaxurl, {
|
57 |
-
images: images,
|
58 |
-
post_type: typenow,
|
59 |
-
action: 'yit_cptu_multiuploader'
|
60 |
-
}, function( data ){
|
61 |
-
location.reload();
|
62 |
-
});
|
63 |
-
|
64 |
-
button.next('span.spinner').css( 'display', 'inline-block' );
|
65 |
-
|
66 |
-
// flag
|
67 |
-
selected = true;
|
68 |
-
});
|
69 |
-
|
70 |
-
// when close
|
71 |
-
file_frame.on( 'close', function() {
|
72 |
-
if ( ! selected ) button.next('span.spinner').hide();
|
73 |
-
});
|
74 |
-
|
75 |
-
// Finally, open the modal
|
76 |
-
file_frame.open();
|
77 |
-
});
|
78 |
-
|
79 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yit-cpt-unlimited.min.js
DELETED
@@ -1,2 +0,0 @@
|
|
1 |
-
(function(c){c(".wrap h1, .wrap h2").on("click","a.multi-uploader",function(f){f.preventDefault();var a,b=c(this),d=!1;b.next("span.spinner").css("display","inline-block");a||(a=wp.media.frames.file_frame=wp.media({title:b.data("uploader_title"),button:{text:b.data("uploader_button_text")},library:{type:"image"},multiple:!0}),a.on("select",function(){var e=[];a.state().get("selection").map(function(a){a=a.toJSON();e.push({id:a.id,url:a.url,title:a.title})});c.post(ajaxurl,{images:e,post_type:typenow,action:"yit_cptu_multiuploader"},
|
2 |
-
function(a){location.reload()});b.next("span.spinner").css("display","inline-block");d=!0}),a.on("close",function(){d||b.next("span.spinner").hide()}));a.open()})})(jQuery);
|
|
|
|
plugin-fw/assets/js/yit-cptu-sortable-posts.js
DELETED
@@ -1,32 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* This file belongs to the YIT Framework.
|
3 |
-
*
|
4 |
-
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
5 |
-
* that is bundled with this package in the file LICENSE.txt.
|
6 |
-
* It is also available through the world-wide-web at this URL:
|
7 |
-
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
-
*/
|
9 |
-
|
10 |
-
(function($) {
|
11 |
-
"use strict";
|
12 |
-
// Author code here
|
13 |
-
|
14 |
-
$("#the-list").sortable({
|
15 |
-
items : 'tr',
|
16 |
-
axis : 'y',
|
17 |
-
helper : function(e, ui) {
|
18 |
-
ui.children().children().each(function() {
|
19 |
-
$(this).width( $(this).width() );
|
20 |
-
});
|
21 |
-
return ui;
|
22 |
-
},
|
23 |
-
update : function(e, ui) {
|
24 |
-
$.post( ajaxurl, {
|
25 |
-
action: 'cpt_sort_posts',
|
26 |
-
order: $("#the-list").sortable("serialize"),
|
27 |
-
post_type: typenow
|
28 |
-
});
|
29 |
-
}
|
30 |
-
});
|
31 |
-
|
32 |
-
})(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yit-plugin-panel-sidebar.js
DELETED
@@ -1,56 +0,0 @@
|
|
1 |
-
/**
|
2 |
-
* This file belongs to the YIT Plugin Framework.
|
3 |
-
*
|
4 |
-
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
5 |
-
* that is bundled with this package in the file LICENSE.txt.
|
6 |
-
* It is also available through the world-wide-web at this URL:
|
7 |
-
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
-
*/
|
9 |
-
|
10 |
-
|
11 |
-
(function ( $ ) {
|
12 |
-
var hide_sidebar_btn = $( '#yit-panel-sidebar-action-hide' ),
|
13 |
-
hide_sidebar_text = hide_sidebar_btn.find( '.yit-panel-sidebar-action-title' ),
|
14 |
-
sidebar = $( '#yit-panel-sidebar' ),
|
15 |
-
panel_wrapper = $( '.' + sidebar_labels.wrapper_class ),
|
16 |
-
ajax_hide_option_save_call,
|
17 |
-
ajax_hide_option_save = function ( option ) {
|
18 |
-
if ( ajax_hide_option_save_call ) {
|
19 |
-
ajax_hide_option_save_call.abort();
|
20 |
-
}
|
21 |
-
|
22 |
-
var post_data = {
|
23 |
-
option: option,
|
24 |
-
action: 'yith_plugin_panel_sidebar_set_collapse_option'
|
25 |
-
};
|
26 |
-
|
27 |
-
ajax_hide_option_save_call = $.ajax( {
|
28 |
-
type: "POST",
|
29 |
-
data: post_data,
|
30 |
-
url: ajaxurl
|
31 |
-
} );
|
32 |
-
},
|
33 |
-
hide_sidebar = function () {
|
34 |
-
hide_sidebar_btn.removeClass( 'hide-on-click' );
|
35 |
-
hide_sidebar_text.html( sidebar_labels.show_sidebar );
|
36 |
-
sidebar.addClass( 'yith-panel-sidebar-hidden' );
|
37 |
-
panel_wrapper.addClass( 'yit-admin-panel-content-wrap-full' );
|
38 |
-
ajax_hide_option_save( 'yes' );
|
39 |
-
},
|
40 |
-
show_sidebar = function () {
|
41 |
-
hide_sidebar_btn.addClass( 'hide-on-click' );
|
42 |
-
hide_sidebar_text.html( sidebar_labels.hide_sidebar );
|
43 |
-
sidebar.removeClass( 'yith-panel-sidebar-hidden' );
|
44 |
-
panel_wrapper.removeClass( 'yit-admin-panel-content-wrap-full' );
|
45 |
-
ajax_hide_option_save( 'no' );
|
46 |
-
};
|
47 |
-
|
48 |
-
hide_sidebar_btn.on( 'click', function () {
|
49 |
-
if ( $( this ).is( '.hide-on-click' ) ) {
|
50 |
-
hide_sidebar();
|
51 |
-
} else {
|
52 |
-
show_sidebar();
|
53 |
-
}
|
54 |
-
} );
|
55 |
-
|
56 |
-
})( jQuery );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yit-plugin-panel-sidebar.min.js
DELETED
@@ -1 +0,0 @@
|
|
1 |
-
!function(a){var i,e=a("#yit-panel-sidebar-action-hide"),n=e.find(".yit-panel-sidebar-action-title"),l=a("#yit-panel-sidebar"),s=a("."+sidebar_labels.wrapper_class),t=function(e){i&&i.abort();var n={option:e,action:"yith_plugin_panel_sidebar_set_collapse_option"};i=a.ajax({type:"POST",data:n,url:ajaxurl})},d=function(){e.removeClass("hide-on-click"),n.html(sidebar_labels.show_sidebar),l.addClass("yith-panel-sidebar-hidden"),s.addClass("yit-admin-panel-content-wrap-full"),t("yes")},o=function(){e.addClass("hide-on-click"),n.html(sidebar_labels.hide_sidebar),l.removeClass("yith-panel-sidebar-hidden"),s.removeClass("yit-admin-panel-content-wrap-full"),t("no")};e.on("click",function(){a(this).is(".hide-on-click")?d():o()})}(jQuery);
|
|
plugin-fw/assets/js/yit-plugin-panel.js
CHANGED
@@ -8,230 +8,49 @@
|
|
8 |
*/
|
9 |
|
10 |
|
11 |
-
(function ($) {
|
12 |
-
|
13 |
-
// select
|
14 |
-
var select_value = function () {
|
15 |
-
|
16 |
-
var value = '';
|
17 |
-
|
18 |
-
if ($(this).attr('multiple')) {
|
19 |
-
$(this).children("option:selected").each(function (i, v) {
|
20 |
-
if (i != 0)
|
21 |
-
value += ', ';
|
22 |
-
|
23 |
-
value += $(v).text();
|
24 |
-
});
|
25 |
-
|
26 |
-
if (value == '') {
|
27 |
-
$(this).children().children("option:selected").each(function (i, v) {
|
28 |
-
if (i != 0)
|
29 |
-
value += ', ';
|
30 |
-
|
31 |
-
value += $(v).text();
|
32 |
-
});
|
33 |
-
}
|
34 |
-
}
|
35 |
-
else {
|
36 |
-
value = $(this).children("option:selected").text();
|
37 |
-
|
38 |
-
if (value == '')
|
39 |
-
value = $(this).children().children("option:selected").text();
|
40 |
-
}
|
41 |
-
|
42 |
-
|
43 |
-
if ($(this).parent().find('span').length <= 0) {
|
44 |
-
$(this).before('<span></span>');
|
45 |
-
}
|
46 |
-
|
47 |
-
$(this).parent().children('span').replaceWith('<span>' + value + '</span>');
|
48 |
-
};
|
49 |
-
$('.plugin-option .select_wrapper select').not('.chosen').each(select_value).change(select_value);
|
50 |
-
|
51 |
-
//Open select multiple
|
52 |
-
$('.plugin-option .select_wrapper').click(function (e) {
|
53 |
-
e.stopPropagation();
|
54 |
-
$(this).find('select[multiple]').not('.chosen').toggle();
|
55 |
-
});
|
56 |
-
//Stops click propagation on select, to prevent select hide
|
57 |
-
$('.plugin-option .select_wrapper select[multiple]').not('.chosen').click(function (e) {
|
58 |
-
e.stopPropagation();
|
59 |
-
});
|
60 |
-
//Hides select on window click
|
61 |
-
$(window).click(function () {
|
62 |
-
$('.plugin-option .select_wrapper select[multiple]').not('.chosen').hide();
|
63 |
-
})
|
64 |
-
//chosen
|
65 |
-
$('.plugin-option .chosen .select_wrapper select').chosen();
|
66 |
-
|
67 |
-
// on-off
|
68 |
-
$('.plugin-option .onoff_container span').on('click', function () {
|
69 |
-
var input = $(this).prev('input');
|
70 |
-
var checked = input.prop('checked');
|
71 |
-
|
72 |
-
if (checked) {
|
73 |
-
input.prop('checked', false).attr('value', 'no').removeClass('onoffchecked');
|
74 |
-
} else {
|
75 |
-
input.prop('checked', true).attr('value', 'yes').addClass('onoffchecked');
|
76 |
-
}
|
77 |
-
|
78 |
-
input.change();
|
79 |
-
});
|
80 |
-
|
81 |
-
//colorpicker
|
82 |
-
$('.plugin-option .panel-colorpicker').wpColorPicker({
|
83 |
-
onInit: function(){ },
|
84 |
-
change: function(event, ui){
|
85 |
-
},
|
86 |
-
clear: function(){
|
87 |
-
var input = $(this);
|
88 |
-
input.val(input.data('default-color'));
|
89 |
-
input.change();
|
90 |
-
}
|
91 |
-
});
|
92 |
-
|
93 |
-
//slider
|
94 |
-
$('.plugin-option .slider_container .ui-slider-horizontal').each(function () {
|
95 |
-
var val = $(this).data('val');
|
96 |
-
var minValue = $(this).data('min');
|
97 |
-
var maxValue = $(this).data('max');
|
98 |
-
var step = $(this).data('step');
|
99 |
-
var labels = $(this).data('labels');
|
100 |
-
|
101 |
-
$(this).slider({
|
102 |
-
value: val,
|
103 |
-
min : minValue,
|
104 |
-
max : maxValue,
|
105 |
-
range: 'min',
|
106 |
-
step : step,
|
107 |
-
|
108 |
-
slide: function (event, ui) {
|
109 |
-
$(this).find('input').val(ui.value);
|
110 |
-
$(this).siblings('.feedback').find('strong').text(ui.value + labels);
|
111 |
-
}
|
112 |
-
});
|
113 |
-
});
|
114 |
-
|
115 |
-
|
116 |
-
if (typeof wp !== 'undefined' && typeof wp.media !== 'undefined') {
|
117 |
-
|
118 |
-
//upload
|
119 |
-
var _custom_media = true,
|
120 |
-
_orig_send_attachment = wp.media.editor.send.attachment;
|
121 |
-
|
122 |
-
// preview
|
123 |
-
$('.plugin-option .upload_img_url').change(function () {
|
124 |
-
var url = $(this).val();
|
125 |
-
var re = new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico)");
|
126 |
-
|
127 |
-
var preview = $(this).parents().siblings('.upload_img_preview');
|
128 |
-
if (re.test(url)) {
|
129 |
-
preview.html('<img src="' + url + '" style="max-width:600px; max-height:300px;" />');
|
130 |
-
} else {
|
131 |
-
preview.html('');
|
132 |
-
}
|
133 |
-
}).trigger( 'change' );
|
134 |
-
|
135 |
-
$( document ).on( 'click', '.plugin-option .upload_button', function(e) {
|
136 |
-
e.preventDefault();
|
137 |
-
|
138 |
-
var t = $(this),
|
139 |
-
custom_uploader,
|
140 |
-
id = t.attr('id').replace(/-button$/, '');
|
141 |
-
|
142 |
-
//If the uploader object has already been created, reopen the dialog
|
143 |
-
if (custom_uploader) {
|
144 |
-
custom_uploader.open();
|
145 |
-
return;
|
146 |
-
}
|
147 |
-
|
148 |
-
var custom_uploader_states = [
|
149 |
-
// Main states.
|
150 |
-
new wp.media.controller.Library({
|
151 |
-
library: wp.media.query(),
|
152 |
-
multiple: false,
|
153 |
-
title: 'Choose Image',
|
154 |
-
priority: 20,
|
155 |
-
filterable: 'uploaded'
|
156 |
-
})
|
157 |
-
];
|
158 |
-
|
159 |
-
// Create the media frame.
|
160 |
-
custom_uploader = wp.media.frames.downloadable_file = wp.media({
|
161 |
-
// Set the title of the modal.
|
162 |
-
title: 'Choose Image',
|
163 |
-
library: {
|
164 |
-
type: ''
|
165 |
-
},
|
166 |
-
button: {
|
167 |
-
text: 'Choose Image'
|
168 |
-
},
|
169 |
-
multiple: false,
|
170 |
-
states: custom_uploader_states
|
171 |
-
});
|
172 |
-
|
173 |
-
|
174 |
-
//When a file is selected, grab the URL and set it as the text field's value
|
175 |
-
custom_uploader.on( 'select' , function() {
|
176 |
-
var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
|
177 |
-
|
178 |
-
$("#" + id).val( attachment.url );
|
179 |
-
// Save the id of the selected element to an element which name is the same with
|
180 |
-
// a suffix "-yith-attachment-id"
|
181 |
-
if ($("#" + id + "-yith-attachment-id")) {
|
182 |
-
$("#" + id + "-yith-attachment-id").val(attachment.id);
|
183 |
-
}
|
184 |
-
|
185 |
-
$('.plugin-option .upload_img_url').trigger('change');
|
186 |
-
});
|
187 |
-
|
188 |
-
//Open the uploader dialog
|
189 |
-
custom_uploader.open();
|
190 |
-
});
|
191 |
-
|
192 |
-
$( document).on( 'click', '.plugin-option .upload_button_reset', function(e){
|
193 |
-
var t = $(this),
|
194 |
-
id = t.attr('id'),
|
195 |
-
input_id = t.attr('id').replace(/-button_reset$/, ''),
|
196 |
-
default_value = $('#' + id).data('default');
|
197 |
-
|
198 |
-
$("#" + input_id).val( default_value );
|
199 |
-
$('.plugin-option .upload_img_url').trigger('change');
|
200 |
-
} );
|
201 |
-
}
|
202 |
-
|
203 |
-
$('.plugin-option .add_media').on('click', function () {
|
204 |
-
_custom_media = false;
|
205 |
-
});
|
206 |
-
|
207 |
//dependencies handler
|
208 |
-
$('[data-
|
209 |
-
var t = $(this);
|
|
|
|
|
|
|
|
|
|
|
210 |
|
211 |
-
|
212 |
-
dep = '#' + t.data('dep'),
|
213 |
-
value = t.data('value');
|
214 |
|
215 |
-
$(dep).on('change',function () {
|
216 |
-
dependencies_handler(field, dep, value.toString());
|
217 |
-
}).change();
|
218 |
-
});
|
219 |
|
220 |
//Handle dependencies.
|
221 |
-
function dependencies_handler(id, deps, values) {
|
222 |
var result = true;
|
223 |
|
224 |
//Single dependency
|
225 |
-
if (typeof( deps ) == 'string') {
|
226 |
-
if (deps.substr(0, 6) == ':radio') {
|
227 |
deps = deps + ':checked';
|
228 |
}
|
229 |
|
230 |
-
var
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
231 |
|
232 |
-
|
233 |
|
234 |
-
|
|
|
235 |
result = false;
|
236 |
}
|
237 |
else {
|
@@ -241,87 +60,108 @@
|
|
241 |
}
|
242 |
}
|
243 |
|
244 |
-
|
245 |
-
$(id + '-container').closest('tr')
|
246 |
-
|
247 |
-
|
|
|
|
|
248 |
}
|
249 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
250 |
|
251 |
//connected list
|
252 |
-
$('.rm_connectedlist').each(function () {
|
253 |
-
var ul
|
254 |
-
var input
|
255 |
-
var sortable = ul.sortable({
|
256 |
-
|
257 |
-
|
258 |
-
|
259 |
|
260 |
-
|
261 |
-
|
262 |
|
263 |
-
|
264 |
-
|
265 |
-
|
266 |
|
267 |
-
|
268 |
-
|
269 |
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
});
|
274 |
|
275 |
-
$(document).ready(function () {
|
276 |
|
277 |
-
$('.yith-video-link').click(function (event) {
|
278 |
event.preventDefault();
|
279 |
-
var target = $(this).data('video-id');
|
280 |
-
|
281 |
-
$('.' + target).dialog({
|
282 |
-
dialogClass : 'wp-dialog yit-dialog yit-video-dialog',
|
283 |
-
modal : true,
|
284 |
-
closeOnEscape: true,
|
285 |
-
width : 'auto',
|
286 |
-
resizable : false,
|
287 |
-
draggable : false,
|
288 |
-
create : function (event, ui) {
|
289 |
-
$(this).css("maxWidth", "853px");
|
290 |
-
},
|
291 |
-
open : function (event, ui) {
|
292 |
-
|
293 |
-
$('.ui-widget-overlay').bind('click', function () {
|
294 |
-
$(this).siblings('.ui-dialog').find('.ui-dialog-content').dialog('close');
|
295 |
-
});
|
296 |
|
297 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
298 |
|
299 |
-
|
|
|
|
|
300 |
|
301 |
-
|
302 |
|
303 |
-
|
304 |
-
});
|
305 |
|
306 |
-
|
307 |
-
$(document).ready(function () {
|
308 |
-
$('.codemirror').each(function (i, v) {
|
309 |
-
var editor = CodeMirror.fromTextArea(v, {
|
310 |
-
lineNumbers : 1,
|
311 |
-
mode : 'javascript',
|
312 |
-
showCursorWhenSelecting: true
|
313 |
-
})
|
314 |
|
315 |
-
|
316 |
-
|
317 |
-
})
|
318 |
|
319 |
//google analytics generation
|
320 |
-
$(document).ready(function () {
|
321 |
-
$('.google-analytic-generate').click(function () {
|
322 |
-
var editor
|
323 |
-
var gatc
|
324 |
-
var basename = $(this).data('basename');
|
325 |
|
326 |
var text = "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";
|
327 |
text += "(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n";
|
@@ -331,10 +171,14 @@
|
|
331 |
text += "ga('send', 'pageview');\n";
|
332 |
editor.replaceRange(
|
333 |
text,
|
334 |
-
editor.getCursor('start'),
|
335 |
-
editor.getCursor('end')
|
336 |
)
|
337 |
-
})
|
338 |
-
})
|
339 |
-
|
340 |
-
|
|
|
|
|
|
|
|
8 |
*/
|
9 |
|
10 |
|
11 |
+
(function ( $ ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
12 |
//dependencies handler
|
13 |
+
$( '[data-dep-target]' ).each( function () {
|
14 |
+
var t = $( this );
|
15 |
+
|
16 |
+
var field = '#' + t.data( 'dep-target' ),
|
17 |
+
dep = '#' + t.data( 'dep-id' ),
|
18 |
+
value = t.data( 'dep-value' ),
|
19 |
+
type = t.data( 'dep-type' );
|
20 |
|
21 |
+
dependencies_handler( field, dep, value.toString(), type );
|
|
|
|
|
22 |
|
23 |
+
$( dep ).on( 'change', function () {
|
24 |
+
dependencies_handler( field, dep, value.toString(), type );
|
25 |
+
} ).change();
|
26 |
+
} );
|
27 |
|
28 |
//Handle dependencies.
|
29 |
+
function dependencies_handler( id, deps, values, type ) {
|
30 |
var result = true;
|
31 |
|
32 |
//Single dependency
|
33 |
+
if ( typeof( deps ) == 'string' ) {
|
34 |
+
if ( deps.substr( 0, 6 ) == ':radio' ) {
|
35 |
deps = deps + ':checked';
|
36 |
}
|
37 |
|
38 |
+
var val = $( deps ).val();
|
39 |
+
|
40 |
+
if ( $( deps ).attr( 'type' ) == 'checkbox' ) {
|
41 |
+
var thisCheck = $( deps );
|
42 |
+
if ( thisCheck.is( ':checked' ) ) {
|
43 |
+
val = 'yes';
|
44 |
+
}
|
45 |
+
else {
|
46 |
+
val = 'no';
|
47 |
+
}
|
48 |
+
}
|
49 |
|
50 |
+
values = values.split( ',' );
|
51 |
|
52 |
+
for ( var i = 0; i < values.length; i++ ) {
|
53 |
+
if ( val != values[ i ] ) {
|
54 |
result = false;
|
55 |
}
|
56 |
else {
|
60 |
}
|
61 |
}
|
62 |
|
63 |
+
var $current_field = $( id ),
|
64 |
+
$current_container = $( id + '-container' ).closest( 'tr' ); // container for YIT Plugin Panel
|
65 |
+
|
66 |
+
if ( $current_container.length < 1 ) {
|
67 |
+
// container for YIT Plugin Panel WooCommerce
|
68 |
+
$current_container = $current_field.closest( '.yith-plugin-fw-panel-wc-row' );
|
69 |
}
|
70 |
+
|
71 |
+
var types = type.split( '-' ), j;
|
72 |
+
for ( j in types ) {
|
73 |
+
var current_type = types[ j ];
|
74 |
+
|
75 |
+
if ( !result ) {
|
76 |
+
switch ( current_type ) {
|
77 |
+
case 'disable':
|
78 |
+
$current_container.addClass( 'yith-disabled' );
|
79 |
+
$current_field.attr( 'disabled', true );
|
80 |
+
break;
|
81 |
+
case 'hideme':
|
82 |
+
$current_field.hide();
|
83 |
+
break;
|
84 |
+
default:
|
85 |
+
$current_container.hide();
|
86 |
+
}
|
87 |
+
|
88 |
+
} else {
|
89 |
+
switch ( current_type ) {
|
90 |
+
case 'disable':
|
91 |
+
$current_container.removeClass( 'yith-disabled' );
|
92 |
+
$current_field.attr( 'disabled', false );
|
93 |
+
break;
|
94 |
+
case 'hideme':
|
95 |
+
$current_field.show();
|
96 |
+
break;
|
97 |
+
default:
|
98 |
+
$current_container.show();
|
99 |
+
}
|
100 |
+
}
|
101 |
+
}
|
102 |
+
}
|
103 |
|
104 |
//connected list
|
105 |
+
$( '.rm_connectedlist' ).each( function () {
|
106 |
+
var ul = $( this ).find( 'ul' );
|
107 |
+
var input = $( this ).find( ':hidden' );
|
108 |
+
var sortable = ul.sortable( {
|
109 |
+
connectWith: ul,
|
110 |
+
update : function ( event, ui ) {
|
111 |
+
var value = {};
|
112 |
|
113 |
+
ul.each( function () {
|
114 |
+
var options = {};
|
115 |
|
116 |
+
$( this ).children().each( function () {
|
117 |
+
options[ $( this ).data( 'option' ) ] = $( this ).text();
|
118 |
+
} );
|
119 |
|
120 |
+
value[ $( this ).data( 'list' ) ] = options;
|
121 |
+
} );
|
122 |
|
123 |
+
input.val( (JSON.stringify( value )).replace( /[\\"']/g, '\\$&' ).replace( /\u0000/g, '\\0' ) );
|
124 |
+
}
|
125 |
+
} ).disableSelection();
|
126 |
+
} );
|
127 |
|
128 |
+
$( document ).ready( function () {
|
129 |
|
130 |
+
$( '.yith-video-link' ).click( function ( event ) {
|
131 |
event.preventDefault();
|
132 |
+
var target = $( this ).data( 'video-id' );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
133 |
|
134 |
+
$( '.' + target ).dialog( {
|
135 |
+
dialogClass : 'wp-dialog yit-dialog yit-video-dialog',
|
136 |
+
modal : true,
|
137 |
+
closeOnEscape: true,
|
138 |
+
width : 'auto',
|
139 |
+
resizable : false,
|
140 |
+
draggable : false,
|
141 |
+
create : function ( event, ui ) {
|
142 |
+
$( this ).css( "maxWidth", "853px" );
|
143 |
+
},
|
144 |
+
open : function ( event, ui ) {
|
145 |
|
146 |
+
$( '.ui-widget-overlay' ).bind( 'click', function () {
|
147 |
+
$( this ).siblings( '.ui-dialog' ).find( '.ui-dialog-content' ).dialog( 'close' );
|
148 |
+
} );
|
149 |
|
150 |
+
}
|
151 |
|
152 |
+
} );
|
|
|
153 |
|
154 |
+
$( '.ui-dialog :button' ).blur();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
155 |
|
156 |
+
} );
|
157 |
+
} );
|
|
|
158 |
|
159 |
//google analytics generation
|
160 |
+
$( document ).ready( function () {
|
161 |
+
$( '.google-analytic-generate' ).click( function () {
|
162 |
+
var editor = $( '#' + $( this ).data( 'textarea' ) ).data( 'codemirrorInstance' );
|
163 |
+
var gatc = $( '#' + $( this ).data( 'input' ) ).val();
|
164 |
+
var basename = $( this ).data( 'basename' );
|
165 |
|
166 |
var text = "(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";
|
167 |
text += "(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n";
|
171 |
text += "ga('send', 'pageview');\n";
|
172 |
editor.replaceRange(
|
173 |
text,
|
174 |
+
editor.getCursor( 'start' ),
|
175 |
+
editor.getCursor( 'end' )
|
176 |
)
|
177 |
+
} )
|
178 |
+
} );
|
179 |
+
|
180 |
+
|
181 |
+
// prevents the WC message for changes when leaving the panel page
|
182 |
+
$( '.yith-plugin-fw-panel .woo-nav-tab-wrapper' ).removeClass( 'woo-nav-tab-wrapper' ).addClass( 'yith-nav-tab-wrapper' );
|
183 |
+
|
184 |
+
})( jQuery );
|
plugin-fw/assets/js/yit-plugin-panel.min.js
CHANGED
@@ -1 +1,5 @@
|
|
1 |
-
|
|
|
|
|
|
|
|
1 |
+
(function(a){function h(b,d,c,f){var e=!0;if("string"==typeof d){":radio"==d.substr(0,6)&&(d+=":checked");var g=a(d).val();"checkbox"==a(d).attr("type")&&(g=a(d).is(":checked")?"yes":"no");c=c.split(",");for(d=0;d<c.length;d++)if(g!=c[d])e=!1;else{e=!0;break}}c=a(b);b=a(b+"-container").closest("tr");1>b.length&&(b=c.closest(".yith-plugin-fw-panel-wc-row"));f=f.split("-");for(var h in f)if(g=f[h],e)switch(g){case "disable":b.removeClass("yith-disabled");c.attr("disabled",!1);break;case "hideme":c.show();
|
2 |
+
break;default:b.show()}else switch(g){case "disable":b.addClass("yith-disabled");c.attr("disabled",!0);break;case "hideme":c.hide();break;default:b.hide()}}a("[data-dep-target]").each(function(){var b=a(this),d="#"+b.data("dep-target"),c="#"+b.data("dep-id"),f=b.data("dep-value"),e=b.data("dep-type");h(d,c,f.toString(),e);a(c).on("change",function(){h(d,c,f.toString(),e)}).change()});a(".rm_connectedlist").each(function(){var b=a(this).find("ul"),d=a(this).find(":hidden");b.sortable({connectWith:b,
|
3 |
+
update:function(c,f){var e={};b.each(function(){var b={};a(this).children().each(function(){b[a(this).data("option")]=a(this).text()});e[a(this).data("list")]=b});d.val(JSON.stringify(e).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});a(document).ready(function(){a(".yith-video-link").click(function(b){b.preventDefault();b=a(this).data("video-id");a("."+b).dialog({dialogClass:"wp-dialog yit-dialog yit-video-dialog",modal:!0,closeOnEscape:!0,width:"auto",resizable:!1,draggable:!1,
|
4 |
+
create:function(b,c){a(this).css("maxWidth","853px")},open:function(b,c){a(".ui-widget-overlay").bind("click",function(){a(this).siblings(".ui-dialog").find(".ui-dialog-content").dialog("close")})}});a(".ui-dialog :button").blur()})});a(document).ready(function(){a(".google-analytic-generate").click(function(){var b=a("#"+a(this).data("textarea")).data("codemirrorInstance"),d=a("#"+a(this).data("input")).val(),c=a(this).data("basename");b.replaceRange("(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\nm=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n"+
|
5 |
+
("ga('create', '"+d+"', '"+c+"');\n")+"ga('send', 'pageview');\n",b.getCursor("start"),b.getCursor("end"))})});a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper")})(jQuery);
|
plugin-fw/assets/js/yit-wp-pointer.js
CHANGED
@@ -1,5 +1,4 @@
|
|
1 |
jQuery(document).ready( function($) {
|
2 |
-
|
3 |
var pointers = custom_pointer.pointers[0],
|
4 |
options = pointers.options,
|
5 |
target = $(pointers.target),
|
1 |
jQuery(document).ready( function($) {
|
|
|
2 |
var pointers = custom_pointer.pointers[0],
|
3 |
options = pointers.options,
|
4 |
target = $(pointers.target),
|
plugin-fw/assets/js/yit-wp-pointer.min.js
CHANGED
@@ -1,3 +1,3 @@
|
|
1 |
-
jQuery(document).ready(function(b){var c=custom_pointer.pointers[0],d=c.options,a=b(c.target),e=c.pointer_id;b(a).find(".wp-submenu li a").each(function(){var f=b(this),h=f.attr("href"),h=h.replace("admin.php?page=","");if(h==e){var k=f.add(a),g=a.find(c.target.replace("#","."));a.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu");f.pointer({pointerClass:"yit-wp-pointer",content:d.content,position:d.position,open:function(){
|
2 |
-
|
3 |
-
|
1 |
+
jQuery(document).ready(function(b){var c=custom_pointer.pointers[0],d=c.options,a=b(c.target),e=c.pointer_id;b(a).find(".wp-submenu li a").each(function(){var f=b(this),h=f.attr("href"),h=h.replace("admin.php?page=","");if(h==e){var k=f.add(a),g=a.find(c.target.replace("#","."));a.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu");f.pointer({pointerClass:"yit-wp-pointer",content:d.content,position:d.position,open:function(){k.toggleClass("yit-pointer-selected-row");g.addClass("yit-pointer")},
|
2 |
+
close:function(){a.toggleClass("wp-no-current-submenu wp-menu-open wp-has-current-submenu");k.toggleClass("yit-pointer-selected-row");g.removeClass("yit-pointer");b.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:e},success:function(a){}})}}).pointer("open")}else if("yith_default_pointer"==e){var k=f.add(a),g=a.find(c.target.replace("#",".")),l=b(c.target);l.addClass("wp-has-current-submenu");g.pointer({pointerClass:"yit-wp-pointer",content:d.content,position:d.position,open:function(){l.addClass("yit-pointer-selected-row")},
|
3 |
+
close:function(){l.removeClass("yit-pointer-selected-row wp-has-current-submenu");b.ajax({type:"POST",url:ajaxurl,data:{action:"dismiss-wp-pointer",pointer:e},success:function(a){}})}}).pointer("open")}})});
|
plugin-fw/assets/js/yith-enhanced-select-wc-2.6.js
ADDED
@@ -0,0 +1,148 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/*
|
2 |
+
global yith_framework_enhanced_select_params
|
3 |
+
*/
|
4 |
+
jQuery( document ).ready( function ( $ ) {
|
5 |
+
"use strict";
|
6 |
+
|
7 |
+
$( document.body )
|
8 |
+
.on( 'yith-framework-enhanced-select-init', function () {
|
9 |
+
// Post Search
|
10 |
+
$( ':input.yith-post-search' ).filter( ':not(.enhanced)' ).each( function () {
|
11 |
+
var default_data = {
|
12 |
+
action : 'yith_plugin_fw_json_search_posts',
|
13 |
+
security : yith_framework_enhanced_select_params.search_posts_nonce,
|
14 |
+
post_type: 'post'
|
15 |
+
},
|
16 |
+
current_data = $.extend( default_data, $( this ).data() ),
|
17 |
+
select2_args = {
|
18 |
+
allowClear : $( this ).data( 'allow_clear' ) ? true : false,
|
19 |
+
placeholder : $( this ).data( 'placeholder' ),
|
20 |
+
minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
|
21 |
+
escapeMarkup : function ( m ) {
|
22 |
+
return m;
|
23 |
+
},
|
24 |
+
ajax : {
|
25 |
+
url : yith_framework_enhanced_select_params.ajax_url,
|
26 |
+
dataType : 'json',
|
27 |
+
quietMillis: 250,
|
28 |
+
data : function ( term ) {
|
29 |
+
current_data.term = term;
|
30 |
+
return current_data;
|
31 |
+
},
|
32 |
+
results : function ( data ) {
|
33 |
+
var terms = [];
|
34 |
+
if ( data ) {
|
35 |
+
$.each( data, function ( id, text ) {
|
36 |
+
terms.push( { id: id, text: text } );
|
37 |
+
} );
|
38 |
+
}
|
39 |
+
return {
|
40 |
+
results: terms
|
41 |
+
};
|
42 |
+
},
|
43 |
+
cache : true
|
44 |
+
}
|
45 |
+
};
|
46 |
+
|
47 |
+
if ( $( this ).data( 'multiple' ) === true ) {
|
48 |
+
select2_args.multiple = true;
|
49 |
+
select2_args.initSelection = function ( element, callback ) {
|
50 |
+
var data = $.parseJSON( element.attr( 'data-selected' ) );
|
51 |
+
var selected = [];
|
52 |
+
|
53 |
+
$( element.val().split( ',' ) ).each( function ( i, val ) {
|
54 |
+
selected.push( {
|
55 |
+
id : val,
|
56 |
+
text: data[ val ]
|
57 |
+
} );
|
58 |
+
} );
|
59 |
+
return callback( selected );
|
60 |
+
};
|
61 |
+
select2_args.formatSelection = function ( data ) {
|
62 |
+
return '<div class="selected-option" data-id="' + data.id + '">' + data.text + '</div>';
|
63 |
+
};
|
64 |
+
} else {
|
65 |
+
select2_args.multiple = false;
|
66 |
+
select2_args.initSelection = function ( element, callback ) {
|
67 |
+
var data = {
|
68 |
+
id : element.val(),
|
69 |
+
text: element.attr( 'data-selected' )
|
70 |
+
};
|
71 |
+
return callback( data );
|
72 |
+
};
|
73 |
+
}
|
74 |
+
|
75 |
+
$( this ).select2( select2_args ).addClass( 'enhanced' );
|
76 |
+
} );
|
77 |
+
|
78 |
+
// Term Search
|
79 |
+
$( ':input.yith-term-search' ).filter( ':not(.enhanced)' ).each( function () {
|
80 |
+
var default_data = {
|
81 |
+
action : 'yith_plugin_fw_json_search_terms',
|
82 |
+
security : yith_framework_enhanced_select_params.search_terms_nonce,
|
83 |
+
taxonomy: 'category'
|
84 |
+
},
|
85 |
+
current_data = $.extend( default_data, $( this ).data() ),
|
86 |
+
select2_args = {
|
87 |
+
allowClear : $( this ).data( 'allow_clear' ) ? true : false,
|
88 |
+
placeholder : $( this ).data( 'placeholder' ),
|
89 |
+
minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
|
90 |
+
escapeMarkup : function ( m ) {
|
91 |
+
return m;
|
92 |
+
},
|
93 |
+
ajax : {
|
94 |
+
url : yith_framework_enhanced_select_params.ajax_url,
|
95 |
+
dataType : 'json',
|
96 |
+
quietMillis: 250,
|
97 |
+
data : function ( term ) {
|
98 |
+
current_data.term = term;
|
99 |
+
return current_data;
|
100 |
+
},
|
101 |
+
results : function ( data ) {
|
102 |
+
var terms = [];
|
103 |
+
if ( data ) {
|
104 |
+
$.each( data, function ( id, text ) {
|
105 |
+
terms.push( { id: id, text: text } );
|
106 |
+
} );
|
107 |
+
}
|
108 |
+
return {
|
109 |
+
results: terms
|
110 |
+
};
|
111 |
+
},
|
112 |
+
cache : true
|
113 |
+
}
|
114 |
+
};
|
115 |
+
|
116 |
+
if ( $( this ).data( 'multiple' ) === true ) {
|
117 |
+
select2_args.multiple = true;
|
118 |
+
select2_args.initSelection = function ( element, callback ) {
|
119 |
+
var data = $.parseJSON( element.attr( 'data-selected' ) );
|
120 |
+
var selected = [];
|
121 |
+
|
122 |
+
$( element.val().split( ',' ) ).each( function ( i, val ) {
|
123 |
+
selected.push( {
|
124 |
+
id : val,
|
125 |
+
text: data[ val ]
|
126 |
+
} );
|
127 |
+
} );
|
128 |
+
return callback( selected );
|
129 |
+
};
|
130 |
+
select2_args.formatSelection = function ( data ) {
|
131 |
+
return '<div class="selected-option" data-id="' + data.id + '">' + data.text + '</div>';
|
132 |
+
};
|
133 |
+
} else {
|
134 |
+
select2_args.multiple = false;
|
135 |
+
select2_args.initSelection = function ( element, callback ) {
|
136 |
+
var data = {
|
137 |
+
id : element.val(),
|
138 |
+
text: element.attr( 'data-selected' )
|
139 |
+
};
|
140 |
+
return callback( data );
|
141 |
+
};
|
142 |
+
}
|
143 |
+
|
144 |
+
$( this ).select2( select2_args ).addClass( 'enhanced' );
|
145 |
+
} );
|
146 |
+
} ).trigger( 'yith-framework-enhanced-select-init' );
|
147 |
+
|
148 |
+
} );
|
plugin-fw/assets/js/yith-enhanced-select-wc-2.6.min.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(a){a(document.body).on("yith-framework-enhanced-select-init",function(){a(":input.yith-post-search").filter(":not(.enhanced)").each(function(){var d=a.extend({action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):
|
2 |
+
"3",escapeMarkup:function(b){return b},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){d.term=b;return d},results:function(b){var c=[];b&&a.each(b,function(b,a){c.push({id:b,text:a})});return{results:c}},cache:!0}};!0===a(this).data("multiple")?(c.multiple=!0,c.initSelection=function(b,c){var f=a.parseJSON(b.attr("data-selected")),e=[];a(b.val().split(",")).each(function(b,a){e.push({id:a,text:f[a]})});return c(e)},c.formatSelection=function(b){return'<div class="selected-option" data-id="'+
|
3 |
+
b.id+'">'+b.text+"</div>"}):(c.multiple=!1,c.initSelection=function(b,a){var c={id:b.val(),text:b.attr("data-selected")};return a(c)});a(this).select2(c).addClass("enhanced")});a(":input.yith-term-search").filter(":not(.enhanced)").each(function(){var d=a.extend({action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a(this).data()),c={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?
|
4 |
+
a(this).data("minimum_input_length"):"3",escapeMarkup:function(b){return b},ajax:{url:yith_framework_enhanced_select_params.ajax_url,dataType:"json",quietMillis:250,data:function(b){d.term=b;return d},results:function(b){var c=[];b&&a.each(b,function(b,a){c.push({id:b,text:a})});return{results:c}},cache:!0}};!0===a(this).data("multiple")?(c.multiple=!0,c.initSelection=function(b,c){var d=a.parseJSON(b.attr("data-selected")),e=[];a(b.val().split(",")).each(function(b,a){e.push({id:a,text:d[a]})});
|
5 |
+
return c(e)},c.formatSelection=function(a){return'<div class="selected-option" data-id="'+a.id+'">'+a.text+"</div>"}):(c.multiple=!1,c.initSelection=function(a,c){var d={id:a.val(),text:a.attr("data-selected")};return c(d)});a(this).select2(c).addClass("enhanced")})}).trigger("yith-framework-enhanced-select-init")});
|
plugin-fw/assets/js/yith-enhanced-select.js
ADDED
@@ -0,0 +1,136 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
/* global yith_framework_enhanced_select_params */
|
2 |
+
|
3 |
+
jQuery( document ).ready( function ( $ ) {
|
4 |
+
"use strict";
|
5 |
+
|
6 |
+
$( document.body )
|
7 |
+
.on( 'yith-framework-enhanced-select-init', function () {
|
8 |
+
// Post Search
|
9 |
+
$( '.yith-post-search' ).filter( ':not(.enhanced)' ).each( function () {
|
10 |
+
var default_data = {
|
11 |
+
action : 'yith_plugin_fw_json_search_posts',
|
12 |
+
security : yith_framework_enhanced_select_params.search_posts_nonce,
|
13 |
+
post_type: 'post'
|
14 |
+
},
|
15 |
+
current_data = $.extend( default_data, $( this ).data() ),
|
16 |
+
select2_args = {
|
17 |
+
allowClear : $( this ).data( 'allow_clear' ) ? true : false,
|
18 |
+
placeholder : $( this ).data( 'placeholder' ),
|
19 |
+
minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
|
20 |
+
escapeMarkup : function ( m ) {
|
21 |
+
return m;
|
22 |
+
},
|
23 |
+
ajax : {
|
24 |
+
url : ajaxurl,
|
25 |
+
dataType : 'json',
|
26 |
+
quietMillis : 250,
|
27 |
+
data : function ( params ) {
|
28 |
+
var default_data_to_return = {
|
29 |
+
term: params.term
|
30 |
+
};
|
31 |
+
|
32 |
+
return $.extend( default_data_to_return, current_data );
|
33 |
+
},
|
34 |
+
processResults: function ( data ) {
|
35 |
+
var terms = [];
|
36 |
+
if ( data ) {
|
37 |
+
$.each( data, function ( id, text ) {
|
38 |
+
terms.push( { id: id, text: text } );
|
39 |
+
} );
|
40 |
+
}
|
41 |
+
return {
|
42 |
+
results: terms
|
43 |
+
};
|
44 |
+
},
|
45 |
+
cache : true
|
46 |
+
}
|
47 |
+
};
|
48 |
+
|
49 |
+
$( this ).select2( select2_args ).addClass( 'enhanced' );
|
50 |
+
|
51 |
+
if ( $( this ).data( 'sortable' ) ) {
|
52 |
+
var $select = $( this );
|
53 |
+
var $list = $( this ).next( '.select2-container' ).find( 'ul.select2-selection__rendered' );
|
54 |
+
|
55 |
+
$list.sortable( {
|
56 |
+
placeholder : 'ui-state-highlight select2-selection__choice',
|
57 |
+
forcePlaceholderSize: true,
|
58 |
+
items : 'li:not(.select2-search__field)',
|
59 |
+
tolerance : 'pointer',
|
60 |
+
stop : function () {
|
61 |
+
$( $list.find( '.select2-selection__choice' ).get().reverse() ).each( function () {
|
62 |
+
var id = $( this ).data( 'data' ).id;
|
63 |
+
var option = $select.find( 'option[value="' + id + '"]' )[ 0 ];
|
64 |
+
$select.prepend( option );
|
65 |
+
} );
|
66 |
+
}
|
67 |
+
} );
|
68 |
+
}
|
69 |
+
} );
|
70 |
+
|
71 |
+
// TERM SEARCH
|
72 |
+
$( '.yith-term-search' ).filter( ':not(.enhanced)' ).each( function () {
|
73 |
+
var default_data = {
|
74 |
+
action : 'yith_plugin_fw_json_search_terms',
|
75 |
+
security: yith_framework_enhanced_select_params.search_terms_nonce,
|
76 |
+
taxonomy: 'category'
|
77 |
+
},
|
78 |
+
current_data = $.extend( default_data, $( this ).data() ),
|
79 |
+
select2_args = {
|
80 |
+
allowClear : $( this ).data( 'allow_clear' ) ? true : false,
|
81 |
+
placeholder : $( this ).data( 'placeholder' ),
|
82 |
+
minimumInputLength: $( this ).data( 'minimum_input_length' ) ? $( this ).data( 'minimum_input_length' ) : '3',
|
83 |
+
escapeMarkup : function ( m ) {
|
84 |
+
return m;
|
85 |
+
},
|
86 |
+
ajax : {
|
87 |
+
url : ajaxurl,
|
88 |
+
dataType : 'json',
|
89 |
+
quietMillis : 250,
|
90 |
+
data : function ( params ) {
|
91 |
+
var default_data_to_return = {
|
92 |
+
term: params.term
|
93 |
+
};
|
94 |
+
|
95 |
+
return $.extend( default_data_to_return, current_data );
|
96 |
+
},
|
97 |
+
processResults: function ( data ) {
|
98 |
+
var terms = [];
|
99 |
+
if ( data ) {
|
100 |
+
$.each( data, function ( id, text ) {
|
101 |
+
terms.push( { id: id, text: text } );
|
102 |
+
} );
|
103 |
+
}
|
104 |
+
return {
|
105 |
+
results: terms
|
106 |
+
};
|
107 |
+
},
|
108 |
+
cache : true
|
109 |
+
}
|
110 |
+
};
|
111 |
+
|
112 |
+
$( this ).select2( select2_args ).addClass( 'enhanced' );
|
113 |
+
|
114 |
+
if ( $( this ).data( 'sortable' ) ) {
|
115 |
+
var $select = $( this );
|
116 |
+
var $list = $( this ).next( '.select2-container' ).find( 'ul.select2-selection__rendered' );
|
117 |
+
|
118 |
+
$list.sortable( {
|
119 |
+
placeholder : 'ui-state-highlight select2-selection__choice',
|
120 |
+
forcePlaceholderSize: true,
|
121 |
+
items : 'li:not(.select2-search__field)',
|
122 |
+
tolerance : 'pointer',
|
123 |
+
stop : function () {
|
124 |
+
$( $list.find( '.select2-selection__choice' ).get().reverse() ).each( function () {
|
125 |
+
var id = $( this ).data( 'data' ).id;
|
126 |
+
var option = $select.find( 'option[value="' + id + '"]' )[ 0 ];
|
127 |
+
$select.prepend( option );
|
128 |
+
} );
|
129 |
+
}
|
130 |
+
} );
|
131 |
+
}
|
132 |
+
} );
|
133 |
+
|
134 |
+
} ).trigger( 'yith-framework-enhanced-select-init' );
|
135 |
+
|
136 |
+
} );
|
plugin-fw/assets/js/yith-enhanced-select.min.js
ADDED
@@ -0,0 +1,5 @@
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery(document).ready(function(a){a(document.body).on("yith-framework-enhanced-select-init",function(){a(".yith-post-search").filter(":not(.enhanced)").each(function(){var e=a.extend({action:"yith_plugin_fw_json_search_posts",security:yith_framework_enhanced_select_params.search_posts_nonce,post_type:"post"},a(this).data()),f={allowClear:a(this).data("allow_clear")?!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):
|
2 |
+
"3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},e)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(f).addClass("enhanced");if(a(this).data("sortable")){var c=a(this),d=a(this).next(".select2-container").find("ul.select2-selection__rendered");d.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,
|
3 |
+
items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(d.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id,b=c.find('option[value="'+b+'"]')[0];c.prepend(b)})}})}});a(".yith-term-search").filter(":not(.enhanced)").each(function(){var e=a.extend({action:"yith_plugin_fw_json_search_terms",security:yith_framework_enhanced_select_params.search_terms_nonce,taxonomy:"category"},a(this).data()),f={allowClear:a(this).data("allow_clear")?
|
4 |
+
!0:!1,placeholder:a(this).data("placeholder"),minimumInputLength:a(this).data("minimum_input_length")?a(this).data("minimum_input_length"):"3",escapeMarkup:function(a){return a},ajax:{url:ajaxurl,dataType:"json",quietMillis:250,data:function(b){return a.extend({term:b.term},e)},processResults:function(b){var c=[];b&&a.each(b,function(a,b){c.push({id:a,text:b})});return{results:c}},cache:!0}};a(this).select2(f).addClass("enhanced");if(a(this).data("sortable")){var c=a(this),d=a(this).next(".select2-container").find("ul.select2-selection__rendered");
|
5 |
+
d.sortable({placeholder:"ui-state-highlight select2-selection__choice",forcePlaceholderSize:!0,items:"li:not(.select2-search__field)",tolerance:"pointer",stop:function(){a(d.find(".select2-selection__choice").get().reverse()).each(function(){var b=a(this).data("data").id,b=c.find('option[value="'+b+'"]')[0];c.prepend(b)})}})}})}).trigger("yith-framework-enhanced-select-init")});
|
plugin-fw/assets/js/yith-fields.js
ADDED
@@ -0,0 +1,350 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
jQuery( function ( $ ) {
|
2 |
+
|
3 |
+
var $datepicker = $( '.yith-plugin-fw-datepicker' ),
|
4 |
+
$colorpicker = $( '.yith-plugin-fw-colorpicker' ),
|
5 |
+
$upload = {
|
6 |
+
imgPreviewHandler : '.yith-plugin-fw-upload-img-preview',
|
7 |
+
uploadButtonHandler: '.yith-plugin-fw-upload-button',
|
8 |
+
imgUrlHandler : '.yith-plugin-fw-upload-img-url',
|
9 |
+
resetButtonHandler : '.yith-plugin-fw-upload-button-reset',
|
10 |
+
imgUrl : $( '.yith-plugin-fw-upload-img-url' )
|
11 |
+
},
|
12 |
+
$wpAddMedia = $( '.add_media' ),
|
13 |
+
$imageGallery = {
|
14 |
+
sliderWrapper: $( '.yith-plugin-fw .image-gallery ul.slides-wrapper' ),
|
15 |
+
buttonHandler: '.yith-plugin-fw .image-gallery-button'
|
16 |
+
},
|
17 |
+
$onoff = $( '.yith-plugin-fw-onoff-container span' ),
|
18 |
+
$sidebars = $( '.yith-plugin-fw-sidebar-layout' ),
|
19 |
+
$slider = $( '.yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal' ),
|
20 |
+
$codemirror = $( '.codemirror' ),
|
21 |
+
$icons = $( '.yit-icons-manager-wrapper' );
|
22 |
+
|
23 |
+
/* Datepicker */
|
24 |
+
$datepicker.each( function () {
|
25 |
+
var args = $( this ).data();
|
26 |
+
$( this ).datepicker( args );
|
27 |
+
} );
|
28 |
+
|
29 |
+
/* Colorpicker */
|
30 |
+
$colorpicker.wpColorPicker( {
|
31 |
+
clear: function () {
|
32 |
+
var input = $( this );
|
33 |
+
input.val( input.data( 'default-color' ) );
|
34 |
+
input.change();
|
35 |
+
}
|
36 |
+
} );
|
37 |
+
$colorpicker.each( function () {
|
38 |
+
var select_label = $( this ).data( 'variations-label' );
|
39 |
+
$( this ).parent().parent().find( 'a.wp-color-result' ).attr( 'title', select_label );
|
40 |
+
} );
|
41 |
+
|
42 |
+
/* Upload */
|
43 |
+
if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
|
44 |
+
var _custom_media = true;
|
45 |
+
// preview
|
46 |
+
$upload.imgUrl.change( function () {
|
47 |
+
var url = $( this ).val(),
|
48 |
+
re = new RegExp( "(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico)" ),
|
49 |
+
preview = $( this ).parent().find( $upload.imgPreviewHandler ).first();
|
50 |
+
|
51 |
+
if ( preview.length < 1 )
|
52 |
+
preview = $( this ).parent().parent().find( $upload.imgPreviewHandler ).first();
|
53 |
+
|
54 |
+
if ( re.test( url ) ) {
|
55 |
+
preview.html( '<img src="' + url + '" style="max-width:100px; max-height:100px;" />' );
|
56 |
+
} else {
|
57 |
+
preview.html( '' );
|
58 |
+
}
|
59 |
+
} ).trigger( 'change' );
|
60 |
+
|
61 |
+
$( document ).on( 'click', $upload.uploadButtonHandler, function ( e ) {
|
62 |
+
e.preventDefault();
|
63 |
+
|
64 |
+
var t = $( this ),
|
65 |
+
custom_uploader,
|
66 |
+
id = t.attr( 'id' ).replace( /-button$/, '' );
|
67 |
+
|
68 |
+
//If the uploader object has already been created, reopen the dialog
|
69 |
+
if ( custom_uploader ) {
|
70 |
+
custom_uploader.open();
|
71 |
+
return;
|
72 |
+
}
|
73 |
+
|
74 |
+
var custom_uploader_states = [
|
75 |
+
// Main states.
|
76 |
+
new wp.media.controller.Library( {
|
77 |
+
library : wp.media.query(),
|
78 |
+
multiple : false,
|
79 |
+
title : 'Choose Image',
|
80 |
+
priority : 20,
|
81 |
+
filterable: 'uploaded'
|
82 |
+
} )
|
83 |
+
];
|
84 |
+
|
85 |
+
// Create the media frame.
|
86 |
+
custom_uploader = wp.media.frames.downloadable_file = wp.media( {
|
87 |
+
// Set the title of the modal.
|
88 |
+
title : 'Choose Image',
|
89 |
+
library : {
|
90 |
+
type: ''
|
91 |
+
},
|
92 |
+
button : {
|
93 |
+
text: 'Choose Image'
|
94 |
+
},
|
95 |
+
multiple: false,
|
96 |
+
states : custom_uploader_states
|
97 |
+
} );
|
98 |
+
|
99 |
+
//When a file is selected, grab the URL and set it as the text field's value
|
100 |
+
custom_uploader.on( 'select', function () {
|
101 |
+
var attachment = custom_uploader.state().get( 'selection' ).first().toJSON();
|
102 |
+
|
103 |
+
$( "#" + id ).val( attachment.url );
|
104 |
+
// Save the id of the selected element to an element which name is the same with a suffix "-yith-attachment-id"
|
105 |
+
if ( $( "#" + id + "-yith-attachment-id" ) ) {
|
106 |
+
$( "#" + id + "-yith-attachment-id" ).val( attachment.id );
|
107 |
+
}
|
108 |
+
$upload.imgUrl.trigger( 'change' );
|
109 |
+
} );
|
110 |
+
|
111 |
+
//Open the uploader dialog
|
112 |
+
custom_uploader.open();
|
113 |
+
} );
|
114 |
+
|
115 |
+
$( document ).on( 'click', $upload.resetButtonHandler, function ( e ) {
|
116 |
+
var t = $( this ),
|
117 |
+
id = t.attr( 'id' ),
|
118 |
+
input_id = t.attr( 'id' ).replace( /-button-reset$/, '' ),
|
119 |
+
default_value = $( '#' + id ).data( 'default' );
|
120 |
+
|
121 |
+
$( "#" + input_id ).val( default_value );
|
122 |
+
$upload.imgUrl.trigger( 'change' );
|
123 |
+
} );
|
124 |
+
}
|
125 |
+
|
126 |
+
$wpAddMedia.on( 'click', function () {
|
127 |
+
_custom_media = false;
|
128 |
+
} );
|
129 |
+
|
130 |
+
/* Image Gallery */
|
131 |
+
if ( typeof wp !== 'undefined' && typeof wp.media !== 'undefined' ) {
|
132 |
+
$( document ).on( 'click', $imageGallery.buttonHandler, function ( e ) {
|
133 |
+
var $t = $( this ),
|
134 |
+
$container = $t.closest( '.image-gallery' ),
|
135 |
+
$image_gallery_ids = $container.find( '.image_gallery_ids' ),
|
136 |
+
attachment_ids = $image_gallery_ids.val(),
|
137 |
+
$gallery_images_wrapper = $container.find( 'ul.slides-wrapper' );
|
138 |
+
|
139 |
+
// Create the media frame.
|
140 |
+
var image_gallery_frame = wp.media.frames.image_gallery = wp.media( {
|
141 |
+
// Set the title of the modal.
|
142 |
+
title : $t.data( 'choose' ),
|
143 |
+
button: {
|
144 |
+
text: $t.data( 'update' )
|
145 |
+
},
|
146 |
+
states: [
|
147 |
+
new wp.media.controller.Library( {
|
148 |
+
title : $t.data( 'choose' ),
|
149 |
+
filterable: 'all',
|
150 |
+
multiple : true
|
151 |
+
} )
|
152 |
+
]
|
153 |
+
} );
|
154 |
+
|
155 |
+
// When an image is selected, run a callback.
|
156 |
+
image_gallery_frame.on( 'select', function () {
|
157 |
+
var selection = image_gallery_frame.state().get( 'selection' );
|
158 |
+
selection.map( function ( attachment ) {
|
159 |
+
attachment = attachment.toJSON();
|
160 |
+
|
161 |
+
if ( attachment.id ) {
|
162 |
+
attachment_ids = attachment_ids ? attachment_ids + "," + attachment.id : attachment.id;
|
163 |
+
$gallery_images_wrapper.append( '<li class="image" data-attachment_id="' + attachment.id + '"><img src="' + attachment.sizes.thumbnail.url + '"/><ul class="actions"><li><a href="#" class="delete" title="' + $t.data( 'delete' ) + '">x</a></li></ul></li>' );
|
164 |
+
}
|
165 |
+
} );
|
166 |
+
|
167 |
+
$image_gallery_ids.val( attachment_ids );
|
168 |
+
} );
|
169 |
+
|
170 |
+
image_gallery_frame.open();
|
171 |
+
|
172 |
+
} );
|
173 |
+
|
174 |
+
// Image ordering
|
175 |
+
$imageGallery.sliderWrapper.each( function () {
|
176 |
+
var $t = $( this );
|
177 |
+
$t.sortable( {
|
178 |
+
items : 'li.image',
|
179 |
+
cursor : 'move',
|
180 |
+
scrollSensitivity : 40,
|
181 |
+
forcePlaceholderSize: true,
|
182 |
+
forceHelperSize : false,
|
183 |
+
helper : 'clone',
|
184 |
+
opacity : 0.65,
|
185 |
+
start : function ( event, ui ) {
|
186 |
+
ui.item.css( 'background-color', '#f6f6f6' );
|
187 |
+
},
|
188 |
+
stop : function ( event, ui ) {
|
189 |
+
ui.item.removeAttr( 'style' );
|
190 |
+
},
|
191 |
+
update : function ( event, ui ) {
|
192 |
+
var attachment_ids = '';
|
193 |
+
|
194 |
+
$t.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
|
195 |
+
var attachment_id = $( this ).attr( 'data-attachment_id' );
|
196 |
+
attachment_ids = attachment_ids + attachment_id + ',';
|
197 |
+
} );
|
198 |
+
|
199 |
+
$t.closest( '.image-gallery' ).find( '.image_gallery_ids' ).val( attachment_ids );
|
200 |
+
}
|
201 |
+
} );
|
202 |
+
} );
|
203 |
+
|
204 |
+
// Remove images
|
205 |
+
$imageGallery.sliderWrapper.on( 'click', 'a.delete', function () {
|
206 |
+
var $wrapper = $( this ).closest( '.image-gallery' ),
|
207 |
+
$gallery = $( this ).closest( '.image-gallery ul.slides-wrapper' ),
|
208 |
+
$image_gallery_ids = $wrapper.find( '.image_gallery_ids' ),
|
209 |
+
attachment_ids = '';
|
210 |
+
|
211 |
+
$( this ).closest( 'li.image' ).remove();
|
212 |
+
|
213 |
+
$gallery.find( 'li.image' ).css( 'cursor', 'default' ).each( function () {
|
214 |
+
var attachment_id = $( this ).attr( 'data-attachment_id' );
|
215 |
+
attachment_ids = attachment_ids + attachment_id + ',';
|
216 |
+
} );
|
217 |
+
|
218 |
+
$image_gallery_ids.val( attachment_ids );
|
219 |
+
} );
|
220 |
+
}
|
221 |
+
|
222 |
+
/* on-off */
|
223 |
+
$onoff.on( 'click', function () {
|
224 |
+
var input = $( this ).prev( 'input' ),
|
225 |
+
checked = input.prop( 'checked' );
|
226 |
+
|
227 |
+
if ( checked ) {
|
228 |
+
input.prop( 'checked', false ).attr( 'value', 'no' ).removeClass( 'onoffchecked' );
|
229 |
+
} else {
|
230 |
+
input.prop( 'checked', true ).attr( 'value', 'yes' ).addClass( 'onoffchecked' );
|
231 |
+
}
|
232 |
+
|
233 |
+
input.change();
|
234 |
+
} );
|
235 |
+
|
236 |
+
/* Sidebars */
|
237 |
+
$sidebars.each( function () {
|
238 |
+
var $images = $( this ).find( 'img' );
|
239 |
+
$images.on( 'click', function () {
|
240 |
+
var $container = $( this ).closest( '.yith-plugin-fw-sidebar-layout' ),
|
241 |
+
$left = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-left-container' ),
|
242 |
+
$right = $container.find( '.yith-plugin-fw-sidebar-layout-sidebar-right-container' ),
|
243 |
+
type = $( this ).data( 'type' );
|
244 |
+
|
245 |
+
$( this ).parent().children( ':radio' ).attr( 'checked', false );
|
246 |
+
$( this ).prev( ':radio' ).attr( 'checked', true );
|
247 |
+
|
248 |
+
if ( typeof type != 'undefined' ) {
|
249 |
+
switch ( type ) {
|
250 |
+
case 'left':
|
251 |
+
$left.show();
|
252 |
+
$right.hide();
|
253 |
+
break;
|
254 |
+
case 'right':
|
255 |
+
$right.show();
|
256 |
+
$left.hide();
|
257 |
+
break;
|
258 |
+
case 'double':
|
259 |
+
$left.show();
|
260 |
+
$right.show();
|
261 |
+
break;
|
262 |
+
default:
|
263 |
+
$left.hide();
|
264 |
+
$right.hide();
|
265 |
+
break;
|
266 |
+
}
|
267 |
+
}
|
268 |
+
} );
|
269 |
+
} );
|
270 |
+
|
271 |
+
/* Slider */
|
272 |
+
$slider.each( function () {
|
273 |
+
var val = $( this ).data( 'val' ),
|
274 |
+
minValue = $( this ).data( 'min' ),
|
275 |
+
maxValue = $( this ).data( 'max' ),
|
276 |
+
step = $( this ).data( 'step' ),
|
277 |
+
labels = $( this ).data( 'labels' );
|
278 |
+
|
279 |
+
$( this ).slider( {
|
280 |
+
value: val,
|
281 |
+
min : minValue,
|
282 |
+
max : maxValue,
|
283 |
+
range: 'min',
|
284 |
+
step : step,
|
285 |
+
|
286 |
+
create: function() {
|
287 |
+
$( this ).find( '.ui-slider-handle' ).text( $( this ).slider( "value" ) );
|
288 |
+
},
|
289 |
+
|
290 |
+
|
291 |
+
slide: function ( event, ui ) {
|
292 |
+
$( this ).find( 'input' ).val( ui.value );
|
293 |
+
$( this ).find( '.ui-slider-handle' ).text( ui.value );
|
294 |
+
$( this ).siblings( '.feedback' ).find( 'strong' ).text( ui.value + labels );
|
295 |
+
}
|
296 |
+
} );
|
297 |
+
} );
|
298 |
+
|
299 |
+
/* codemirror */
|
300 |
+
$codemirror.each( function ( i, v ) {
|
301 |
+
var editor = CodeMirror.fromTextArea( v, {
|
302 |
+
lineNumbers : 1,
|
303 |
+
mode : 'javascript',
|
304 |
+
showCursorWhenSelecting: true
|
305 |
+
} );
|
306 |
+
|
307 |
+
$( v ).data( 'codemirrorInstance', editor );
|
308 |
+
} );
|
309 |
+
|
310 |
+
/* Select All - Deselect All */
|
311 |
+
$( document ).on( 'click', '.yith-plugin-fw-select-all', function () {
|
312 |
+
var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
|
313 |
+
$targetSelect.find( 'option' ).prop( 'selected', true ).trigger( 'change' );
|
314 |
+
} );
|
315 |
+
|
316 |
+
$( document ).on( 'click', '.yith-plugin-fw-deselect-all', function () {
|
317 |
+
var $targetSelect = $( '#' + $( this ).data( 'select-id' ) );
|
318 |
+
$targetSelect.find( 'option' ).prop( 'selected', false ).trigger( 'change' );
|
319 |
+
} );
|
320 |
+
|
321 |
+
|
322 |
+
$icons.each( function () {
|
323 |
+
var $container = $( this ),
|
324 |
+
$preview = $container.find( '.yit-icons-manager-icon-preview' ).first(),
|
325 |
+
$text = $container.find( '.yit-icons-manager-icon-text' );
|
326 |
+
|
327 |
+
$container.on( 'click', '.yit-icons-manager-list li', function ( event ) {
|
328 |
+
var $target = $( event.target ).closest( 'li' ),
|
329 |
+
font = $target.data( 'font' ),
|
330 |
+
icon = $target.data( 'icon' ),
|
331 |
+
key = $target.data( 'key' ),
|
332 |
+
name = $target.data( 'name' );
|
333 |
+
|
334 |
+
$preview.attr( 'data-font', font );
|
335 |
+
$preview.attr( 'data-icon', icon );
|
336 |
+
$preview.attr( 'data-key', key );
|
337 |
+
$preview.attr( 'data-name', name );
|
338 |
+
|
339 |
+
$text.val( font + ':' + name );
|
340 |
+
|
341 |
+
$container.find( '.yit-icons-manager-list li' ).removeClass( 'active' );
|
342 |
+
$target.addClass( 'active' );
|
343 |
+
} );
|
344 |
+
|
345 |
+
$container.on( 'click', '.yit-icons-manager-action-set-default', function () {
|
346 |
+
$container.find( '.yit-icons-manager-list li.default' ).trigger( 'click' );
|
347 |
+
} );
|
348 |
+
} );
|
349 |
+
|
350 |
+
} );
|
plugin-fw/assets/js/yith-fields.min.js
ADDED
@@ -0,0 +1,15 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.findInternal=function(a,g,e){a instanceof String&&(a=String(a));for(var d=a.length,h=0;h<d;h++){var l=a[h];if(g.call(e,l,h,a))return{i:h,v:l}}return{i:-1,v:void 0}};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(a,g,e){a!=Array.prototype&&a!=Object.prototype&&(a[g]=e.value)};
|
2 |
+
$jscomp.getGlobal=function(a){return"undefined"!=typeof window&&window===a?a:"undefined"!=typeof global&&null!=global?global:a};$jscomp.global=$jscomp.getGlobal(this);$jscomp.polyfill=function(a,g,e,d){if(g){e=$jscomp.global;a=a.split(".");for(d=0;d<a.length-1;d++){var h=a[d];h in e||(e[h]={});e=e[h]}a=a[a.length-1];d=e[a];g=g(d);g!=d&&null!=g&&$jscomp.defineProperty(e,a,{configurable:!0,writable:!0,value:g})}};
|
3 |
+
$jscomp.polyfill("Array.prototype.find",function(a){return a?a:function(a,e){return $jscomp.findInternal(this,a,e).v}},"es6","es3");
|
4 |
+
jQuery(function(a){var g=a(".yith-plugin-fw-datepicker"),e=a(".yith-plugin-fw-colorpicker"),d=a(".yith-plugin-fw-upload-img-url"),h=a(".add_media"),l=a(".yith-plugin-fw .image-gallery ul.slides-wrapper"),m=a(".yith-plugin-fw-onoff-container span"),n=a(".yith-plugin-fw-sidebar-layout"),p=a(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),q=a(".codemirror"),r=a(".yit-icons-manager-wrapper");g.each(function(){var b=a(this).data();a(this).datepicker(b)});e.wpColorPicker({clear:function(){var b=
|
5 |
+
a(this);b.val(b.data("default-color"));b.change()}});e.each(function(){var b=a(this).data("variations-label");a(this).parent().parent().find("a.wp-color-result").attr("title",b)});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(d.change(function(){var b=a(this).val(),c=a(this).parent().find(".yith-plugin-fw-upload-img-preview").first();1>c.length&&(c=a(this).parent().parent().find(".yith-plugin-fw-upload-img-preview").first());/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico)/.test(b)?
|
6 |
+
c.html('<img src="'+b+'" style="max-width:100px; max-height:100px;" />'):c.html("")}).trigger("change"),a(document).on("click",".yith-plugin-fw-upload-button",function(b){b.preventDefault();var c=a(this).attr("id").replace(/-button$/,"");if(!f){b=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];var f=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,
|
7 |
+
states:b});f.on("select",function(){var b=f.state().get("selection").first().toJSON();a("#"+c).val(b.url);a("#"+c+"-yith-attachment-id")&&a("#"+c+"-yith-attachment-id").val(b.id);d.trigger("change")})}f.open()}),a(document).on("click",".yith-plugin-fw-upload-button-reset",function(b){var c=a(this);b=c.attr("id");c=c.attr("id").replace(/-button-reset$/,"");b=a("#"+b).data("default");a("#"+c).val(b);d.trigger("change")}));h.on("click",function(){});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&
|
8 |
+
(a(document).on("click",".yith-plugin-fw .image-gallery-button",function(b){var c=a(this);b=c.closest(".image-gallery");var f=b.find(".image_gallery_ids"),k=f.val(),e=b.find("ul.slides-wrapper"),d=wp.media.frames.image_gallery=wp.media({title:c.data("choose"),button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]});d.on("select",function(){d.state().get("selection").map(function(a){a=a.toJSON();a.id&&(k=k?k+","+a.id:a.id,e.append('<li class="image" data-attachment_id="'+
|
9 |
+
a.id+'"><img src="'+a.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+c.data("delete")+'">x</a></li></ul></li>'))});f.val(k)});d.open()}),l.each(function(){var b=a(this);b.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(a,b){b.item.css("background-color","#f6f6f6")},stop:function(a,b){b.item.removeAttr("style")},update:function(c,f){var k="";b.find("li.image").css("cursor",
|
10 |
+
"default").each(function(){var b=a(this).attr("data-attachment_id");k=k+b+","});b.closest(".image-gallery").find(".image_gallery_ids").val(k)}})}),l.on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper");b=b.find(".image_gallery_ids");var f="";a(this).closest("li.image").remove();c.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");f=f+b+","});b.val(f)}));m.on("click",function(){var b=
|
11 |
+
a(this).prev("input");b.prop("checked")?b.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):b.prop("checked",!0).attr("value","yes").addClass("onoffchecked");b.change()});n.each(function(){a(this).find("img").on("click",function(){var b=a(this).closest(".yith-plugin-fw-sidebar-layout"),c=b.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container");b=b.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container");var f=a(this).data("type");a(this).parent().children(":radio").attr("checked",
|
12 |
+
!1);a(this).prev(":radio").attr("checked",!0);if("undefined"!=typeof f)switch(f){case "left":c.show();b.hide();break;case "right":b.show();c.hide();break;case "double":c.show();b.show();break;default:c.hide(),b.hide()}})});p.each(function(){var b=a(this).data("val"),c=a(this).data("min"),f=a(this).data("max"),e=a(this).data("step"),d=a(this).data("labels");a(this).slider({value:b,min:c,max:f,range:"min",step:e,create:function(){a(this).find(".ui-slider-handle").text(a(this).slider("value"))},slide:function(b,
|
13 |
+
c){a(this).find("input").val(c.value);a(this).find(".ui-slider-handle").text(c.value);a(this).siblings(".feedback").find("strong").text(c.value+d)}})});q.each(function(b,c){b=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",b)});a(document).on("click",".yith-plugin-fw-select-all",function(){a("#"+a(this).data("select-id")).find("option").prop("selected",!0).trigger("change")});a(document).on("click",".yith-plugin-fw-deselect-all",
|
14 |
+
function(){a("#"+a(this).data("select-id")).find("option").prop("selected",!1).trigger("change")});r.each(function(){var b=a(this),c=b.find(".yit-icons-manager-icon-preview").first(),e=b.find(".yit-icons-manager-icon-text");b.on("click",".yit-icons-manager-list li",function(d){d=a(d.target).closest("li");var f=d.data("font"),g=d.data("icon"),h=d.data("key"),k=d.data("name");c.attr("data-font",f);c.attr("data-icon",g);c.attr("data-key",h);c.attr("data-name",k);e.val(f+":"+k);b.find(".yit-icons-manager-list li").removeClass("active");
|
15 |
+
d.addClass("active")});b.on("click",".yit-icons-manager-action-set-default",function(){b.find(".yit-icons-manager-list li.default").trigger("click")})})});
|
plugin-fw/init.php
CHANGED
@@ -1,14 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version:
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @
|
11 |
-
* @version 2.0
|
12 |
*/
|
13 |
/**
|
14 |
* This file belongs to the YIT Plugin Framework.
|
@@ -25,7 +24,7 @@ if ( ! defined ( 'ABSPATH' ) ) {
|
|
25 |
|
26 |
if ( ! function_exists ( 'yit_maybe_plugin_fw_loader' ) ) {
|
27 |
/**
|
28 |
-
*
|
29 |
*
|
30 |
* @since 1.0.0
|
31 |
*/
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.0.0
|
5 |
* Author: Yithemes
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.0.0
|
|
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
24 |
|
25 |
if ( ! function_exists ( 'yit_maybe_plugin_fw_loader' ) ) {
|
26 |
/**
|
27 |
+
* yit_maybe_plugin_fw_loader
|
28 |
*
|
29 |
* @since 1.0.0
|
30 |
*/
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -5,7 +5,7 @@ msgid ""
|
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
7 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
-
"POT-Creation-Date:
|
9 |
"PO-Revision-Date: 2015-05-05 10:38+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -13,7 +13,7 @@ msgstr ""
|
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=utf-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
-
"X-Generator: Poedit 1.8.
|
17 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
18 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
19 |
"esc_html_x:1,2c\n"
|
@@ -128,7 +128,7 @@ msgid "%s Settings"
|
|
128 |
msgstr ""
|
129 |
|
130 |
#: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
|
131 |
-
#: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:
|
132 |
msgid "Settings"
|
133 |
msgstr ""
|
134 |
|
@@ -220,81 +220,73 @@ msgstr ""
|
|
220 |
msgid "Upload multiple files"
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: lib/yit-plugin-panel-
|
224 |
-
msgid "Hide sidebar"
|
225 |
-
msgstr ""
|
226 |
-
|
227 |
-
#: lib/yit-plugin-panel-sidebar.php:422 templates/panel/sidebar/sidebar.php:3
|
228 |
-
msgid "Show sidebar"
|
229 |
-
msgstr ""
|
230 |
-
|
231 |
-
#: lib/yit-plugin-panel-wc.php:374
|
232 |
msgid "The changes you have made will be lost if you leave this page."
|
233 |
msgstr ""
|
234 |
|
235 |
-
#: lib/yit-plugin-panel.php:
|
236 |
msgid "Plugin Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: lib/yit-plugin-panel.php:
|
240 |
msgid "How to install premium version"
|
241 |
msgstr ""
|
242 |
|
243 |
-
#: lib/yit-plugin-panel.php:
|
244 |
#: templates/panel/woocommerce/woocommerce-form.php:11
|
245 |
msgid "Save Changes"
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: lib/yit-plugin-panel.php:
|
249 |
msgid "If you continue with this action, you will reset all options in this page."
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: lib/yit-plugin-panel.php:
|
253 |
msgid "Reset to default"
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: lib/yit-plugin-panel.php:
|
257 |
#: templates/panel/woocommerce/woocommerce-form.php:18
|
258 |
msgid "Are you sure?"
|
259 |
msgstr ""
|
260 |
|
261 |
-
#: lib/yit-plugin-panel.php:
|
262 |
msgid "The element you have entered already exists. Please, enter another name."
|
263 |
msgstr ""
|
264 |
|
265 |
-
#: lib/yit-plugin-panel.php:
|
266 |
msgid "Settings saved"
|
267 |
msgstr ""
|
268 |
|
269 |
-
#: lib/yit-plugin-panel.php:
|
270 |
msgid "Settings reset"
|
271 |
msgstr ""
|
272 |
|
273 |
-
#: lib/yit-plugin-panel.php:
|
274 |
msgid "Element deleted correctly."
|
275 |
msgstr ""
|
276 |
|
277 |
-
#: lib/yit-plugin-panel.php:
|
278 |
msgid "Element updated correctly."
|
279 |
msgstr ""
|
280 |
|
281 |
-
#: lib/yit-plugin-panel.php:
|
282 |
msgid "Database imported correctly."
|
283 |
msgstr ""
|
284 |
|
285 |
-
#: lib/yit-plugin-panel.php:
|
286 |
msgid "An error has occurred during import. Please try again."
|
287 |
msgstr ""
|
288 |
|
289 |
-
#: lib/yit-plugin-panel.php:
|
290 |
msgid "The added file is not valid."
|
291 |
msgstr ""
|
292 |
|
293 |
-
#: lib/yit-plugin-panel.php:
|
294 |
msgid "Sorry, import is disabled."
|
295 |
msgstr ""
|
296 |
|
297 |
-
#: lib/yit-plugin-panel.php:
|
298 |
msgid "Sorting successful."
|
299 |
msgstr ""
|
300 |
|
@@ -309,9 +301,9 @@ msgstr ""
|
|
309 |
|
310 |
#: lib/yit-pointers.php:71
|
311 |
msgid ""
|
312 |
-
"From now on, you can find all plugin options in
|
313 |
-
"
|
314 |
-
"
|
315 |
msgstr ""
|
316 |
|
317 |
#: lib/yit-pointers.php:73 lib/yit-pointers.php:89
|
@@ -328,13 +320,13 @@ msgstr ""
|
|
328 |
|
329 |
#: lib/yit-pointers.php:85
|
330 |
msgid ""
|
331 |
-
"From now on, you can find
|
332 |
-
"
|
333 |
"entry will be added to this menu.\n"
|
334 |
" For example, after the update, plugin options "
|
335 |
"(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
|
336 |
-
" will be moved from previous location to
|
337 |
-
"
|
338 |
msgstr ""
|
339 |
|
340 |
#: lib/yit-upgrade.php:135
|
@@ -369,67 +361,68 @@ msgstr ""
|
|
369 |
msgid "Could not create Temporary file."
|
370 |
msgstr ""
|
371 |
|
372 |
-
#: lib/yit-upgrade.php:
|
373 |
#, php-format
|
374 |
msgid ""
|
375 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
376 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
|
|
377 |
msgstr ""
|
378 |
|
379 |
-
#: lib/yit-upgrade.php:
|
380 |
#, php-format
|
381 |
msgid ""
|
382 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
383 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
384 |
-
"activate the plugin on a single site of the network
|
385 |
-
"updates.</em>"
|
386 |
msgstr ""
|
387 |
|
388 |
-
#: lib/yit-upgrade.php:
|
389 |
#, php-format
|
390 |
msgid ""
|
391 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
392 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
393 |
-
"update is unavailable for this plugin, please <a href
|
394 |
-
"activation\">activate</a> your copy of %6s.</em>"
|
395 |
msgstr ""
|
396 |
|
397 |
-
#: lib/yit-upgrade.php:
|
398 |
#, php-format
|
399 |
msgid ""
|
400 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
401 |
-
"changelog-button\" title=\"%3$s\">View version %4$s
|
402 |
-
"\">update now</a>."
|
403 |
msgstr ""
|
404 |
|
405 |
-
#: lib/yit-upgrade.php:
|
406 |
msgid "You can't update the plugins for this site."
|
407 |
msgstr ""
|
408 |
|
409 |
-
#: lib/yit-upgrade.php:
|
410 |
msgid "You do not have sufficient permissions to update the plugins for this site."
|
411 |
msgstr ""
|
412 |
|
413 |
-
#: lib/yit-upgrade.php:
|
414 |
msgid "Update Plugin"
|
415 |
msgstr ""
|
416 |
|
417 |
-
#: licence/lib/yit-licence.php:
|
418 |
#, php-format
|
419 |
msgctxt "%s = field name"
|
420 |
msgid "%s field cannot be empty"
|
421 |
msgstr ""
|
422 |
|
423 |
-
#: licence/lib/yit-licence.php:
|
424 |
#, php-format
|
425 |
msgid "%s and %s fields cannot be empty"
|
426 |
msgstr ""
|
427 |
|
428 |
-
#: licence/lib/yit-licence.php:
|
429 |
msgid "Unable to contact the remote server, please try again later. Thanks!"
|
430 |
msgstr ""
|
431 |
|
432 |
-
#: licence/lib/yit-licence.php:
|
433 |
#: licence/templates/panel/activation/activation-panel.php:88
|
434 |
#: licence/templates/panel/activation/activation-panel.php:166
|
435 |
#: licence/templates/panel/activation/activation-panel.php:197
|
@@ -438,62 +431,62 @@ msgstr ""
|
|
438 |
msgid "Email"
|
439 |
msgstr ""
|
440 |
|
441 |
-
#: licence/lib/yit-licence.php:
|
442 |
#: licence/templates/panel/activation/activation-panel.php:89
|
443 |
#: licence/templates/panel/activation/activation-panel.php:167
|
444 |
#: licence/templates/panel/activation/activation-panel.php:198
|
445 |
msgid "License Key"
|
446 |
msgstr ""
|
447 |
|
448 |
-
#: licence/lib/yit-licence.php:
|
449 |
msgid "Are you sure you want to deactivate the license for current site?"
|
450 |
msgstr ""
|
451 |
|
452 |
-
#: licence/lib/yit-licence.php:
|
453 |
msgid "Invalid Request"
|
454 |
msgstr ""
|
455 |
|
456 |
-
#: licence/lib/yit-licence.php:
|
457 |
msgid "Invalid license key"
|
458 |
msgstr ""
|
459 |
|
460 |
-
#: licence/lib/yit-licence.php:
|
461 |
msgid "Software has been deactivated"
|
462 |
msgstr ""
|
463 |
|
464 |
-
#: licence/lib/yit-licence.php:
|
465 |
msgid "Maximum number of activations exceeded"
|
466 |
msgstr ""
|
467 |
|
468 |
-
#: licence/lib/yit-licence.php:
|
469 |
msgid "Invalid instance ID"
|
470 |
msgstr ""
|
471 |
|
472 |
-
#: licence/lib/yit-licence.php:
|
473 |
msgid "Invalid security key"
|
474 |
msgstr ""
|
475 |
|
476 |
-
#: licence/lib/yit-licence.php:
|
477 |
msgid "License key has expired"
|
478 |
msgstr ""
|
479 |
|
480 |
-
#: licence/lib/yit-licence.php:
|
481 |
msgid "License key has been banned"
|
482 |
msgstr ""
|
483 |
|
484 |
-
#: licence/lib/yit-licence.php:
|
485 |
msgid "Current product is not included in your YITH Club Subscription key"
|
486 |
msgstr ""
|
487 |
|
488 |
-
#: licence/lib/yit-licence.php:
|
489 |
msgid "Great"
|
490 |
msgstr ""
|
491 |
|
492 |
-
#: licence/lib/yit-licence.php:
|
493 |
msgid "License successfully activated"
|
494 |
msgstr ""
|
495 |
|
496 |
-
#: licence/lib/yit-licence.php:
|
497 |
msgid "License key deactivated for website"
|
498 |
msgstr ""
|
499 |
|
@@ -969,22 +962,6 @@ msgstr ""
|
|
969 |
msgid "Italic bold"
|
970 |
msgstr ""
|
971 |
|
972 |
-
#: templates/panel/sidebar/widgets/widgets.php:17
|
973 |
-
msgid "Join the club"
|
974 |
-
msgstr ""
|
975 |
-
|
976 |
-
#: templates/panel/sidebar/widgets/widgets.php:24
|
977 |
-
msgid "Despacho Theme - 100% FREE"
|
978 |
-
msgstr ""
|
979 |
-
|
980 |
-
#: templates/panel/sidebar/widgets/widgets.php:28
|
981 |
-
msgid "FREE!"
|
982 |
-
msgstr ""
|
983 |
-
|
984 |
-
#: templates/panel/sidebar/widgets/widgets.php:34
|
985 |
-
msgid "Important Links"
|
986 |
-
msgstr ""
|
987 |
-
|
988 |
#: templates/panel/types/upload.php:32
|
989 |
msgid "Reset"
|
990 |
msgstr ""
|
5 |
msgstr ""
|
6 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
7 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
8 |
+
"POT-Creation-Date: 2017-09-27 13:39+0200\n"
|
9 |
"PO-Revision-Date: 2015-05-05 10:38+0100\n"
|
10 |
"Last-Translator: \n"
|
11 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
13 |
"MIME-Version: 1.0\n"
|
14 |
"Content-Type: text/plain; charset=utf-8\n"
|
15 |
"Content-Transfer-Encoding: 8bit\n"
|
16 |
+
"X-Generator: Poedit 1.8.9\n"
|
17 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
18 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
19 |
"esc_html_x:1,2c\n"
|
128 |
msgstr ""
|
129 |
|
130 |
#: lib/yit-cpt-unlimited.php:1048 lib/yit-cpt-unlimited.php:1196
|
131 |
+
#: lib/yit-cpt-unlimited.php:1202 lib/yit-plugin-panel.php:69
|
132 |
msgid "Settings"
|
133 |
msgstr ""
|
134 |
|
220 |
msgid "Upload multiple files"
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: lib/yit-plugin-panel-wc.php:372
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
224 |
msgid "The changes you have made will be lost if you leave this page."
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: lib/yit-plugin-panel.php:68
|
228 |
msgid "Plugin Settings"
|
229 |
msgstr ""
|
230 |
|
231 |
+
#: lib/yit-plugin-panel.php:291 lib/yit-plugin-panel.php:294
|
232 |
msgid "How to install premium version"
|
233 |
msgstr ""
|
234 |
|
235 |
+
#: lib/yit-plugin-panel.php:345 lib/yit-plugin-subpanel.php:146
|
236 |
#: templates/panel/woocommerce/woocommerce-form.php:11
|
237 |
msgid "Save Changes"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: lib/yit-plugin-panel.php:348 templates/panel/woocommerce/woocommerce-form.php:14
|
241 |
msgid "If you continue with this action, you will reset all options in this page."
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
|
245 |
msgid "Reset to default"
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: lib/yit-plugin-panel.php:350 lib/yit-plugin-subpanel.php:151
|
249 |
#: templates/panel/woocommerce/woocommerce-form.php:18
|
250 |
msgid "Are you sure?"
|
251 |
msgstr ""
|
252 |
|
253 |
+
#: lib/yit-plugin-panel.php:487
|
254 |
msgid "The element you have entered already exists. Please, enter another name."
|
255 |
msgstr ""
|
256 |
|
257 |
+
#: lib/yit-plugin-panel.php:488
|
258 |
msgid "Settings saved"
|
259 |
msgstr ""
|
260 |
|
261 |
+
#: lib/yit-plugin-panel.php:489
|
262 |
msgid "Settings reset"
|
263 |
msgstr ""
|
264 |
|
265 |
+
#: lib/yit-plugin-panel.php:490
|
266 |
msgid "Element deleted correctly."
|
267 |
msgstr ""
|
268 |
|
269 |
+
#: lib/yit-plugin-panel.php:491 lib/yit-plugin-panel.php:492
|
270 |
msgid "Element updated correctly."
|
271 |
msgstr ""
|
272 |
|
273 |
+
#: lib/yit-plugin-panel.php:493
|
274 |
msgid "Database imported correctly."
|
275 |
msgstr ""
|
276 |
|
277 |
+
#: lib/yit-plugin-panel.php:494
|
278 |
msgid "An error has occurred during import. Please try again."
|
279 |
msgstr ""
|
280 |
|
281 |
+
#: lib/yit-plugin-panel.php:495
|
282 |
msgid "The added file is not valid."
|
283 |
msgstr ""
|
284 |
|
285 |
+
#: lib/yit-plugin-panel.php:496
|
286 |
msgid "Sorry, import is disabled."
|
287 |
msgstr ""
|
288 |
|
289 |
+
#: lib/yit-plugin-panel.php:497
|
290 |
msgid "Sorting successful."
|
291 |
msgstr ""
|
292 |
|
301 |
|
302 |
#: lib/yit-pointers.php:71
|
303 |
msgid ""
|
304 |
+
"From now on, you can find all plugin options in YITH Plugins menu.\n"
|
305 |
+
" Plugin customization settings will be "
|
306 |
+
"available as a new entry in YITH Plugins menu."
|
307 |
msgstr ""
|
308 |
|
309 |
#: lib/yit-pointers.php:73 lib/yit-pointers.php:89
|
320 |
|
321 |
#: lib/yit-pointers.php:85
|
322 |
msgid ""
|
323 |
+
"From now on, you can find the option panel of YITH plugins in YITH Plugins menu.\n"
|
324 |
+
" Every time one of our plugins is added, a new "
|
325 |
"entry will be added to this menu.\n"
|
326 |
" For example, after the update, plugin options "
|
327 |
"(such as for YITH WooCommerce Wishlist, YITH WooCommerce Ajax Search, etc.)\n"
|
328 |
+
" will be moved from previous location to YITH "
|
329 |
+
"Plugins tab."
|
330 |
msgstr ""
|
331 |
|
332 |
#: lib/yit-upgrade.php:135
|
361 |
msgid "Could not create Temporary file."
|
362 |
msgstr ""
|
363 |
|
364 |
+
#: lib/yit-upgrade.php:446
|
365 |
#, php-format
|
366 |
msgid ""
|
367 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
368 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
369 |
+
"details</a>."
|
370 |
msgstr ""
|
371 |
|
372 |
+
#: lib/yit-upgrade.php:448
|
373 |
#, php-format
|
374 |
msgid ""
|
375 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
376 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
377 |
+
"details</a>. <em>You have to activate the plugin on a single site of the network "
|
378 |
+
"to benefit from automatic updates.</em>"
|
379 |
msgstr ""
|
380 |
|
381 |
+
#: lib/yit-upgrade.php:450
|
382 |
#, php-format
|
383 |
msgid ""
|
384 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
385 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
386 |
+
"details</a>. <em>Automatic update is unavailable for this plugin, please <a href="
|
387 |
+
"\"%5$s\" title=\"License activation\">activate</a> your copy of %6s.</em>"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: lib/yit-upgrade.php:452
|
391 |
#, php-format
|
392 |
msgid ""
|
393 |
"There is a new version of %1$s available. <a href=\"%2$s\" class=\"thickbox yit-"
|
394 |
+
"changelog-button open-plugin-details-modal\" title=\"%3$s\">View version %4$s "
|
395 |
+
"details</a> or <a href=\"%5$s\">update now</a>."
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: lib/yit-upgrade.php:526
|
399 |
msgid "You can't update the plugins for this site."
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: lib/yit-upgrade.php:530
|
403 |
msgid "You do not have sufficient permissions to update the plugins for this site."
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: lib/yit-upgrade.php:537
|
407 |
msgid "Update Plugin"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: licence/lib/yit-licence.php:183
|
411 |
#, php-format
|
412 |
msgctxt "%s = field name"
|
413 |
msgid "%s field cannot be empty"
|
414 |
msgstr ""
|
415 |
|
416 |
+
#: licence/lib/yit-licence.php:184
|
417 |
#, php-format
|
418 |
msgid "%s and %s fields cannot be empty"
|
419 |
msgstr ""
|
420 |
|
421 |
+
#: licence/lib/yit-licence.php:185
|
422 |
msgid "Unable to contact the remote server, please try again later. Thanks!"
|
423 |
msgstr ""
|
424 |
|
425 |
+
#: licence/lib/yit-licence.php:186
|
426 |
#: licence/templates/panel/activation/activation-panel.php:88
|
427 |
#: licence/templates/panel/activation/activation-panel.php:166
|
428 |
#: licence/templates/panel/activation/activation-panel.php:197
|
431 |
msgid "Email"
|
432 |
msgstr ""
|
433 |
|
434 |
+
#: licence/lib/yit-licence.php:187
|
435 |
#: licence/templates/panel/activation/activation-panel.php:89
|
436 |
#: licence/templates/panel/activation/activation-panel.php:167
|
437 |
#: licence/templates/panel/activation/activation-panel.php:198
|
438 |
msgid "License Key"
|
439 |
msgstr ""
|
440 |
|
441 |
+
#: licence/lib/yit-licence.php:188
|
442 |
msgid "Are you sure you want to deactivate the license for current site?"
|
443 |
msgstr ""
|
444 |
|
445 |
+
#: licence/lib/yit-licence.php:668
|
446 |
msgid "Invalid Request"
|
447 |
msgstr ""
|
448 |
|
449 |
+
#: licence/lib/yit-licence.php:669
|
450 |
msgid "Invalid license key"
|
451 |
msgstr ""
|
452 |
|
453 |
+
#: licence/lib/yit-licence.php:670
|
454 |
msgid "Software has been deactivated"
|
455 |
msgstr ""
|
456 |
|
457 |
+
#: licence/lib/yit-licence.php:671
|
458 |
msgid "Maximum number of activations exceeded"
|
459 |
msgstr ""
|
460 |
|
461 |
+
#: licence/lib/yit-licence.php:672
|
462 |
msgid "Invalid instance ID"
|
463 |
msgstr ""
|
464 |
|
465 |
+
#: licence/lib/yit-licence.php:673
|
466 |
msgid "Invalid security key"
|
467 |
msgstr ""
|
468 |
|
469 |
+
#: licence/lib/yit-licence.php:674
|
470 |
msgid "License key has expired"
|
471 |
msgstr ""
|
472 |
|
473 |
+
#: licence/lib/yit-licence.php:675
|
474 |
msgid "License key has been banned"
|
475 |
msgstr ""
|
476 |
|
477 |
+
#: licence/lib/yit-licence.php:676
|
478 |
msgid "Current product is not included in your YITH Club Subscription key"
|
479 |
msgstr ""
|
480 |
|
481 |
+
#: licence/lib/yit-licence.php:677
|
482 |
msgid "Great"
|
483 |
msgstr ""
|
484 |
|
485 |
+
#: licence/lib/yit-licence.php:677
|
486 |
msgid "License successfully activated"
|
487 |
msgstr ""
|
488 |
|
489 |
+
#: licence/lib/yit-licence.php:678
|
490 |
msgid "License key deactivated for website"
|
491 |
msgstr ""
|
492 |
|
962 |
msgid "Italic bold"
|
963 |
msgstr ""
|
964 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
965 |
#: templates/panel/types/upload.php:32
|
966 |
msgid "Reset"
|
967 |
msgstr ""
|
plugin-fw/lib/yit-ajax.php
CHANGED
@@ -32,17 +32,7 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
|
|
32 |
* @since 1.0
|
33 |
*/
|
34 |
protected static $_instance = null;
|
35 |
-
|
36 |
-
/**
|
37 |
-
* Constructor
|
38 |
-
*
|
39 |
-
* @since 1.0
|
40 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
41 |
-
*/
|
42 |
-
private function __construct() {
|
43 |
-
add_action( 'wp_ajax_yith_plugin_panel_sidebar_set_collapse_option', array( $this, 'set_ajax_sidebar_collapse_option' ) );
|
44 |
-
}
|
45 |
-
|
46 |
/**
|
47 |
* get single instance
|
48 |
*
|
@@ -61,14 +51,214 @@ if ( !class_exists( 'YIT_Ajax' ) ) {
|
|
61 |
}
|
62 |
|
63 |
/**
|
64 |
-
*
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
65 |
*/
|
66 |
-
public function
|
67 |
-
|
68 |
-
|
69 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
72 |
}
|
73 |
}
|
74 |
}
|
32 |
* @since 1.0
|
33 |
*/
|
34 |
protected static $_instance = null;
|
35 |
+
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
36 |
/**
|
37 |
* get single instance
|
38 |
*
|
51 |
}
|
52 |
|
53 |
/**
|
54 |
+
* Constructor
|
55 |
+
*
|
56 |
+
* @since 1.0
|
57 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
58 |
+
*/
|
59 |
+
private function __construct() {
|
60 |
+
$ajax_actions = array(
|
61 |
+
'json_search_posts',
|
62 |
+
'json_search_products',
|
63 |
+
'json_search_orders',
|
64 |
+
'json_search_terms'
|
65 |
+
);
|
66 |
+
|
67 |
+
foreach ( $ajax_actions as $ajax_action ) {
|
68 |
+
add_action( 'wp_ajax_yith_plugin_fw_' . $ajax_action, array( $this, $ajax_action ) );
|
69 |
+
add_action( 'wp_ajax_nopriv_yith_plugin_fw_' . $ajax_action, array( $this, $ajax_action ) );
|
70 |
+
}
|
71 |
+
}
|
72 |
+
|
73 |
+
/**
|
74 |
+
* Post Search
|
75 |
+
*
|
76 |
+
* @param bool|array $request
|
77 |
+
*/
|
78 |
+
public function json_search_posts( $request = false ) {
|
79 |
+
ob_start();
|
80 |
+
|
81 |
+
if ( !$request )
|
82 |
+
check_ajax_referer( 'search-posts', 'security' );
|
83 |
+
|
84 |
+
$request = $request ? $request : $_REQUEST;
|
85 |
+
|
86 |
+
$term = (string) wc_clean( stripslashes( $request[ 'term' ] ) );
|
87 |
+
if ( empty( $term ) ) {
|
88 |
+
die();
|
89 |
+
}
|
90 |
+
|
91 |
+
$found_posts = array();
|
92 |
+
|
93 |
+
$args = array(
|
94 |
+
'post_type' => 'post',
|
95 |
+
'post_status' => 'publish',
|
96 |
+
'numberposts' => -1,
|
97 |
+
'orderby' => 'title',
|
98 |
+
'order' => 'asc',
|
99 |
+
'post_parent' => 0,
|
100 |
+
'suppress_filters' => 0,
|
101 |
+
'include' => '',
|
102 |
+
'exclude' => '',
|
103 |
+
);
|
104 |
+
|
105 |
+
foreach ( $args as $key => $default_value ) {
|
106 |
+
if ( !empty( $request[ $key ] ) ) {
|
107 |
+
$args[ $key ] = $request[ $key ];
|
108 |
+
}
|
109 |
+
}
|
110 |
+
|
111 |
+
$show_id = isset( $request[ 'show_id' ] ) && $request[ 'show_id' ];
|
112 |
+
|
113 |
+
$args[ 's' ] = $term;
|
114 |
+
$args[ 'fields' ] = 'ids';
|
115 |
+
|
116 |
+
$posts = get_posts( $args );
|
117 |
+
|
118 |
+
if ( !empty( $posts ) ) {
|
119 |
+
foreach ( $posts as $post_id ) {
|
120 |
+
if ( !current_user_can( 'read_product', $post_id ) ) {
|
121 |
+
continue;
|
122 |
+
}
|
123 |
+
$title = get_the_title( $post_id ) . ( $show_id ? " (#{$post_id})" : '' );
|
124 |
+
$found_posts[ $post_id ] = apply_filters( 'yith_plugin_fw_json_search_found_post_title', rawurldecode( $title ), $post_id, $request );
|
125 |
+
}
|
126 |
+
}
|
127 |
+
$found_posts = apply_filters( 'yith_plugin_fw_json_search_found_posts', $found_posts, $request );
|
128 |
+
|
129 |
+
wp_send_json( $found_posts );
|
130 |
+
}
|
131 |
+
|
132 |
+
/**
|
133 |
+
* Product Search
|
134 |
+
*/
|
135 |
+
public function json_search_products() {
|
136 |
+
check_ajax_referer( 'search-posts', 'security' );
|
137 |
+
|
138 |
+
$term = (string) wc_clean( stripslashes( $_REQUEST[ 'term' ] ) );
|
139 |
+
if ( empty( $term ) ) {
|
140 |
+
die();
|
141 |
+
}
|
142 |
+
|
143 |
+
$request = $_REQUEST;
|
144 |
+
$request[ 'post_type' ] = 'product';
|
145 |
+
|
146 |
+
$request_include = isset( $request[ 'include' ] ) && !is_array( $request[ 'include' ] ) ? explode( ',', $request[ 'include' ] ) : array();
|
147 |
+
|
148 |
+
if ( !empty( $request[ 'product_type' ] ) ) {
|
149 |
+
if ( $product_type_term = get_term_by( 'slug', $request[ 'product_type' ], 'product_type' ) ) {
|
150 |
+
$posts_in = array_unique( (array) get_objects_in_term( $product_type_term->term_id, 'product_type' ) );
|
151 |
+
if ( !!$request_include )
|
152 |
+
$posts_in = array_intersect( $posts_in, $request_include );
|
153 |
+
|
154 |
+
if ( !!$posts_in ) {
|
155 |
+
$request[ 'include' ] = implode( ',', $posts_in );
|
156 |
+
} else {
|
157 |
+
$request[ 'include' ] = '-1';
|
158 |
+
}
|
159 |
+
}
|
160 |
+
}
|
161 |
+
|
162 |
+
$request = apply_filters( 'yith_plugin_fw_json_search_products_request', $request );
|
163 |
+
|
164 |
+
$this->json_search_posts( $request );
|
165 |
+
}
|
166 |
+
|
167 |
+
/**
|
168 |
+
* Order Search
|
169 |
*/
|
170 |
+
public function json_search_orders() {
|
171 |
+
global $wpdb;
|
172 |
+
ob_start();
|
173 |
+
|
174 |
+
check_ajax_referer( 'search-posts', 'security' );
|
175 |
+
|
176 |
+
$term = wc_clean( stripslashes( $_REQUEST[ 'term' ] ) );
|
177 |
+
|
178 |
+
if ( empty( $term ) ) {
|
179 |
+
die();
|
180 |
+
}
|
181 |
+
|
182 |
+
$found_orders = array();
|
183 |
+
|
184 |
+
$term = apply_filters( 'yith_plugin_fw_json_search_order_number', $term );
|
185 |
+
|
186 |
+
$query_orders = $wpdb->get_results( $wpdb->prepare( "
|
187 |
+
SELECT ID, post_title FROM {$wpdb->posts} AS posts
|
188 |
+
WHERE posts.post_type = 'shop_order'
|
189 |
+
AND posts.ID LIKE %s
|
190 |
+
", '%' . $term . '%' ) );
|
191 |
+
|
192 |
+
if ( $query_orders ) {
|
193 |
+
foreach ( $query_orders as $item ) {
|
194 |
+
$order_number = apply_filters( 'yith_plugin_fw_order_number', '#' . $item->ID, $item->ID );
|
195 |
+
$found_orders[ $item->ID ] = $order_number . ' – ' . esc_html( $item->post_title );
|
196 |
+
}
|
197 |
}
|
198 |
+
|
199 |
+
wp_send_json( $found_orders );
|
200 |
+
}
|
201 |
+
|
202 |
+
/**
|
203 |
+
* Order Search
|
204 |
+
*/
|
205 |
+
public function json_search_terms() {
|
206 |
+
global $wpdb;
|
207 |
+
ob_start();
|
208 |
+
|
209 |
+
check_ajax_referer( 'search-terms', 'security' );
|
210 |
+
|
211 |
+
$term = (string) wc_clean( stripslashes( $_REQUEST[ 'term' ] ) );
|
212 |
+
|
213 |
+
if ( empty( $term ) ) {
|
214 |
+
die();
|
215 |
+
}
|
216 |
+
|
217 |
+
$request = $_REQUEST;
|
218 |
+
|
219 |
+
$args = array(
|
220 |
+
'taxonomy' => 'category',
|
221 |
+
'hide_empty' => false,
|
222 |
+
'order' => 'ASC',
|
223 |
+
'orderby' => 'name',
|
224 |
+
'include' => '',
|
225 |
+
'exclude' => '',
|
226 |
+
'exclude_tree' => '',
|
227 |
+
'number' => '',
|
228 |
+
'hierarchical' => true,
|
229 |
+
'child_of' => 0,
|
230 |
+
'parent' => '',
|
231 |
+
'term_field' => 'id'
|
232 |
+
);
|
233 |
+
|
234 |
+
$args = apply_filters( 'yith_plugin_fw_json_search_terms_default_args', $args, $request );
|
235 |
+
|
236 |
+
foreach ( $args as $key => $default_value ) {
|
237 |
+
if ( !empty( $request[ $key ] ) ) {
|
238 |
+
$args[ $key ] = $request[ $key ];
|
239 |
+
}
|
240 |
+
}
|
241 |
+
|
242 |
+
$args = apply_filters( 'yith_plugin_fw_json_search_terms_args', $args, $request );
|
243 |
+
|
244 |
+
$args[ 'name__like' ] = $term;
|
245 |
+
$args[ 'fields' ] = 'id=>name';
|
246 |
+
|
247 |
+
if ( !taxonomy_exists( $args[ 'taxonomy' ] ) )
|
248 |
+
die();
|
249 |
+
|
250 |
+
$terms = yith_get_terms( $args );
|
251 |
+
|
252 |
+
if ( $args[ 'term_field' ] !== 'id' ) {
|
253 |
+
$temp_terms = $terms;
|
254 |
+
$terms = array();
|
255 |
+
foreach ( $temp_terms as $term_id => $term_name ) {
|
256 |
+
$current_term_field = get_term_field( $args[ 'term_field' ], $term_id, $args[ 'taxonomy' ] );
|
257 |
+
$terms[ $current_term_field ] = $term_name;
|
258 |
+
}
|
259 |
+
}
|
260 |
+
|
261 |
+
wp_send_json( $terms );
|
262 |
}
|
263 |
}
|
264 |
}
|
plugin-fw/lib/yit-assets.php
ADDED
@@ -0,0 +1,92 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* This file belongs to the YIT Plugin Framework.
|
4 |
+
*
|
5 |
+
* This source file is subject to the GNU GENERAL PUBLIC LICENSE (GPL 3.0)
|
6 |
+
* that is bundled with this package in the file LICENSE.txt.
|
7 |
+
* It is also available through the world-wide-web at this URL:
|
8 |
+
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
+
*/
|
10 |
+
|
11 |
+
!defined( 'ABSPATH' ) && exit; // Exit if accessed directly
|
12 |
+
|
13 |
+
if ( !class_exists( 'YIT_Assets' ) ) {
|
14 |
+
/**
|
15 |
+
* YIT Assets
|
16 |
+
*
|
17 |
+
* @class YIT_Assets
|
18 |
+
* @package Yithemes
|
19 |
+
* @since 3.0.0
|
20 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
21 |
+
*/
|
22 |
+
class YIT_Assets {
|
23 |
+
/** @var string */
|
24 |
+
public $version = '1.0.0';
|
25 |
+
|
26 |
+
/** @var YIT_Assets */
|
27 |
+
private static $_instance;
|
28 |
+
|
29 |
+
/** @return YIT_Assets */
|
30 |
+
public static function instance() {
|
31 |
+
return !is_null( self::$_instance ) ? self::$_instance : self::$_instance = new self();
|
32 |
+
}
|
33 |
+
|
34 |
+
/**
|
35 |
+
* Constructor
|
36 |
+
*
|
37 |
+
* @since 1.0
|
38 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
39 |
+
*/
|
40 |
+
private function __construct() {
|
41 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'register_styles_and_scripts' ) );
|
42 |
+
}
|
43 |
+
|
44 |
+
/**
|
45 |
+
* Register styles and scripts
|
46 |
+
*/
|
47 |
+
public function register_styles_and_scripts() {
|
48 |
+
global $wp_scripts, $woocommerce;
|
49 |
+
|
50 |
+
$suffix = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
51 |
+
|
52 |
+
//scripts
|
53 |
+
wp_register_script( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/js/yith-fields' . $suffix . '.js', array( 'jquery', 'jquery-ui-datepicker', 'wp-color-picker', 'codemirror', 'codemirror-javascript', 'jquery-ui-slider' ), $this->version, true );
|
54 |
+
wp_register_script( 'yit-metabox', YIT_CORE_PLUGIN_URL . '/assets/js/metabox' . $suffix . '.js', array( 'jquery', 'wp-color-picker' ), '1.0.0', true );
|
55 |
+
wp_register_script( 'yit-plugin-panel', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel' . $suffix . '.js', array( 'jquery', 'wp-color-picker', 'jquery-ui-sortable' ), $this->version, true );
|
56 |
+
wp_register_script( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/codemirror.js', array( 'jquery' ), $this->version, true );
|
57 |
+
wp_register_script( 'codemirror-javascript', YIT_CORE_PLUGIN_URL . '/assets/js/codemirror/javascript.js', array( 'jquery', 'codemirror' ), $this->version, true );
|
58 |
+
wp_register_script( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/js/jquery.colorbox' . $suffix . '.js', array( 'jquery' ), '1.6.3', true );
|
59 |
+
wp_register_script( 'yith_how_to', YIT_CORE_PLUGIN_URL . '/assets/js/how-to' . $suffix . '.js', array( 'jquery' ), $this->version, true );
|
60 |
+
|
61 |
+
//styles
|
62 |
+
$jquery_version = isset( $wp_scripts->registered[ 'jquery-ui-core' ]->ver ) ? $wp_scripts->registered[ 'jquery-ui-core' ]->ver : '1.9.2';
|
63 |
+
wp_register_style( 'codemirror', YIT_CORE_PLUGIN_URL . '/assets/css/codemirror/codemirror.css' );
|
64 |
+
wp_register_style( 'yit-plugin-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel.css', array(), $this->version );
|
65 |
+
wp_register_style( 'raleway-font', '//fonts.googleapis.com/css?family=Raleway:400,500,600,700,800,100,200,300,900' );
|
66 |
+
wp_register_style( 'yit-jquery-ui-style', '//code.jquery.com/ui/' . $jquery_version . '/themes/smoothness/jquery-ui.css', array(), $jquery_version );
|
67 |
+
wp_register_style( 'colorbox', YIT_CORE_PLUGIN_URL . '/assets/css/colorbox.css', array(), $this->version );
|
68 |
+
wp_register_style( 'yit-upgrade-to-pro', YIT_CORE_PLUGIN_URL . '/assets/css/yit-upgrade-to-pro.css', array( 'colorbox' ), $this->version );
|
69 |
+
wp_register_style( 'yit-plugin-metaboxes', YIT_CORE_PLUGIN_URL . '/assets/css/metaboxes.css' );
|
70 |
+
wp_register_style( 'yith-plugin-fw-fields', YIT_CORE_PLUGIN_URL . '/assets/css/yith-fields.css', false, $this->version );
|
71 |
+
|
72 |
+
if ( function_exists( 'WC' ) || !empty( $woocommerce ) ) {
|
73 |
+
$woocommerce_version = function_exists( 'WC' ) ? WC()->version : $woocommerce->version;
|
74 |
+
$wc_version_suffix = version_compare( $woocommerce_version, '3.0.0', '>=' ) ? '' : '-wc-2.6';
|
75 |
+
|
76 |
+
wp_register_style( 'woocommerce_admin_styles', $woocommerce->plugin_url() . '/assets/css/admin.css', array(), $woocommerce_version );
|
77 |
+
|
78 |
+
wp_register_script( 'yith-enhanced-select', YIT_CORE_PLUGIN_URL . '/assets/js/yith-enhanced-select' . $wc_version_suffix . $suffix . '.js', array( 'jquery', 'select2', 'woocommerce_admin' ), '1.0.0', true );
|
79 |
+
wp_localize_script( 'yith-enhanced-select', 'yith_framework_enhanced_select_params', array(
|
80 |
+
'ajax_url' => admin_url( 'admin-ajax.php' ),
|
81 |
+
'search_posts_nonce' => wp_create_nonce( 'search-posts' ),
|
82 |
+
'search_terms_nonce' => wp_create_nonce( 'search-terms' ),
|
83 |
+
) );
|
84 |
+
}
|
85 |
+
|
86 |
+
wp_enqueue_style( 'yith-plugin-fw-admin', YIT_CORE_PLUGIN_URL . '/assets/css/admin.css', array(), $this->version );
|
87 |
+
|
88 |
+
}
|
89 |
+
}
|
90 |
+
}
|
91 |
+
|
92 |
+
YIT_Assets::instance();
|
plugin-fw/lib/yit-icons.php
ADDED
@@ -0,0 +1,1143 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|