Version Description
Last Stable Tag 2.0.2
Download this release
Release Info
Developer | yithemes |
Plugin | YITH WooCommerce Catalog Mode |
Version | 2.0.2 |
Comparing to | |
See all releases |
Code changes from version 2.0.1 to 2.0.2
- assets/images/01-bg.png +0 -0
- assets/images/01-icon.png +0 -0
- assets/images/01.png +0 -0
- assets/images/02-bg.png +0 -0
- assets/images/02-icon.png +0 -0
- assets/images/02.png +0 -0
- assets/images/03-bg.png +0 -0
- assets/images/03-icon.png +0 -0
- assets/images/03.png +0 -0
- assets/images/04-bg.png +0 -0
- assets/images/04-icon.png +0 -0
- assets/images/04.png +0 -0
- assets/images/05-bg.png +0 -0
- assets/images/05-icon.png +0 -0
- assets/images/05.png +0 -0
- assets/images/06-bg.png +0 -0
- assets/images/06-icon.png +0 -0
- assets/images/06.png +0 -0
- assets/images/07-bg.png +0 -0
- assets/images/07-icon.png +0 -0
- assets/images/07.png +0 -0
- assets/images/08-bg.png +0 -0
- assets/images/08-icon.png +0 -0
- assets/images/08.png +0 -0
- assets/images/09-bg.png +0 -0
- assets/images/09-icon.png +0 -0
- assets/images/09.png +0 -0
- assets/images/10-bg.png +0 -0
- assets/images/10-icon.png +0 -0
- assets/images/10.png +0 -0
- assets/images/upgrade.png +0 -0
- assets/images/yith-woocommerce-catalog-mode.jpg +0 -0
- class-yith-woocommerce-catalog-mode.php +125 -16
- init.php +4 -4
- languages/yith-woocommerce-catalog-mode-nl_NL.mo +0 -0
- languages/yith-woocommerce-catalog-mode-nl_NL.po +0 -294
- languages/yith-woocommerce-catalog-mode.pot +7 -7
- plugin-fw/assets/css/admin.css +111 -97
- plugin-fw/assets/css/chosen/chosen.css +0 -435
- 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-1.8.9.custom.css +0 -578
- 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 +148 -15
- plugin-fw/assets/css/yith-fields.css +96 -4
- plugin-fw/assets/images/banner-free.png +0 -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/rate_banner.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/upgrade-page/01.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/02.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/03.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/04.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/05.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/06.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/07.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/08.jpg +0 -0
- plugin-fw/assets/images/upgrade-page/09.jpg +0 -0
- plugin-fw/assets/images/upgrade_banner.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/panel.spinner.js +0 -139
- plugin-fw/assets/js/panel.spinner.min.js +0 -3
- 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 +23 -0
- plugin-fw/assets/js/yit-plugin-panel.min.js +1 -5
- plugin-fw/assets/js/yith-fields.min.js +1 -30
- plugin-fw/assets/js/yith-gutenberg.js +1 -0
- plugin-fw/assets/js/yith-gutenberg.min.js +1 -1
- plugin-fw/assets/js/yith-system-info.js +17 -11
- plugin-fw/assets/js/yith-system-info.min.js +1 -1
- plugin-fw/init.php +2 -2
- plugin-fw/languages/yith-plugin-fw-el.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-el.po +179 -135
- plugin-fw/languages/yith-plugin-fw-es_ES.po +174 -127
- plugin-fw/languages/yith-plugin-fw-it_IT.mo +0 -0
- plugin-fw/languages/yith-plugin-fw-it_IT.po +179 -140
- plugin-fw/languages/yith-plugin-fw-nl_NL.po +173 -124
- plugin-fw/languages/yith-plugin-fw.pot +141 -104
- plugin-fw/lib/yit-plugin-panel-sidebar.php +0 -430
- plugin-fw/lib/yit-plugin-panel-wc.php +71 -21
- plugin-fw/lib/yit-plugin-panel.php +1174 -1158
- plugin-fw/lib/yith-system-status.php +286 -78
- plugin-fw/templates/fields/inline-fields.php +60 -0
- plugin-fw/templates/fields/textarea-editor.php +3 -1
- plugin-fw/templates/fields/toggle-element-fixed.php +11 -3
- 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/hidden.php +0 -18
- 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/sep.php +0 -18
- 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/simple-text.php +0 -20
- 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/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/videobox.php +0 -83
- plugin-fw/templates/sysinfo/system-information-panel.php +147 -169
- plugin-fw/templates/upgrade/upgrade-to-pro-version.php +0 -75
- plugin-fw/yit-functions.php +23 -10
- plugin-options/premium-landing-options.php +0 -23
- readme.txt +7 -2
assets/images/01-bg.png
DELETED
Binary file
|
assets/images/01-icon.png
DELETED
Binary file
|
assets/images/01.png
DELETED
Binary file
|
assets/images/02-bg.png
DELETED
Binary file
|
assets/images/02-icon.png
DELETED
Binary file
|
assets/images/02.png
DELETED
Binary file
|
assets/images/03-bg.png
DELETED
Binary file
|
assets/images/03-icon.png
DELETED
Binary file
|
assets/images/03.png
DELETED
Binary file
|
assets/images/04-bg.png
DELETED
Binary file
|
assets/images/04-icon.png
DELETED
Binary file
|
assets/images/04.png
DELETED
Binary file
|
assets/images/05-bg.png
DELETED
Binary file
|
assets/images/05-icon.png
DELETED
Binary file
|
assets/images/05.png
DELETED
Binary file
|
assets/images/06-bg.png
DELETED
Binary file
|
assets/images/06-icon.png
DELETED
Binary file
|
assets/images/06.png
DELETED
Binary file
|
assets/images/07-bg.png
DELETED
Binary file
|
assets/images/07-icon.png
DELETED
Binary file
|
assets/images/07.png
DELETED
Binary file
|
assets/images/08-bg.png
DELETED
Binary file
|
assets/images/08-icon.png
DELETED
Binary file
|
assets/images/08.png
DELETED
Binary file
|
assets/images/09-bg.png
DELETED
Binary file
|
assets/images/09-icon.png
DELETED
Binary file
|
assets/images/09.png
DELETED
Binary file
|
assets/images/10-bg.png
DELETED
Binary file
|
assets/images/10-icon.png
DELETED
Binary file
|
assets/images/10.png
DELETED
Binary file
|
assets/images/upgrade.png
DELETED
Binary file
|
assets/images/yith-woocommerce-catalog-mode.jpg
DELETED
Binary file
|
class-yith-woocommerce-catalog-mode.php
CHANGED
@@ -87,6 +87,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
87 |
//Add action links
|
88 |
add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
|
89 |
add_filter( 'yith_show_plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 5 );
|
|
|
90 |
|
91 |
$this->include_files();
|
92 |
|
@@ -98,15 +99,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
98 |
|
99 |
if ( ! is_admin() || $this->is_quick_view() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
100 |
|
101 |
-
|
102 |
-
$priority = has_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ) );
|
103 |
-
remove_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ), $priority );
|
104 |
-
add_filter( 'get_pages', array( $this, 'hide_cart_checkout_pages' ) );
|
105 |
-
add_filter( 'wp_get_nav_menu_items', array( $this, 'hide_cart_checkout_pages' ) );
|
106 |
-
add_filter( 'wp_nav_menu_objects', array( $this, 'hide_cart_checkout_pages' ) );
|
107 |
-
add_action( 'wp', array( $this, 'check_pages_redirect' ) );
|
108 |
-
}
|
109 |
-
|
110 |
add_action( 'woocommerce_before_shop_loop_item_title', array( $this, 'hide_add_to_cart_loop' ), 5 );
|
111 |
add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
|
112 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_frontend' ) );
|
@@ -130,8 +123,8 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
130 |
public function include_files() {
|
131 |
|
132 |
//Check if options should be upgraded
|
133 |
-
$update_path = YWCTM_DIR . 'includes/actions/update-
|
134 |
-
if ( (
|
135 |
include_once( $update_path );
|
136 |
}
|
137 |
|
@@ -268,6 +261,24 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
268 |
* FRONTEND FUNCTIONS
|
269 |
*/
|
270 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
271 |
/**
|
272 |
* Check if catalog mode is enabled for administrator
|
273 |
*
|
@@ -475,7 +486,9 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
475 |
$atc_settings_general = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_settings' ), $product_id, 'ywctm_hide_add_to_cart_settings' );
|
476 |
$behavior = $atc_settings_general['action'];
|
477 |
$where = $atc_settings_general['where'];
|
|
|
478 |
$can_hide = true;
|
|
|
479 |
|
480 |
if ( ! $single ) {
|
481 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
@@ -490,14 +503,42 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
490 |
$can_hide = true;
|
491 |
}
|
492 |
|
493 |
-
if ( 'all' !== $
|
494 |
-
$
|
495 |
}
|
496 |
|
497 |
if ( ! $single ) {
|
498 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
499 |
} else {
|
500 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
501 |
}
|
502 |
|
503 |
//Set "Add to cart" button as hidden
|
@@ -647,7 +688,7 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
647 |
$where = $atc_settings_general['where'];
|
648 |
|
649 |
if ( 'all' !== $atc_settings_general['items'] ) {
|
650 |
-
$behavior = apply_filters( 'ywctm_get_exclusion', $behavior, $product_id, 'atc' );
|
651 |
}
|
652 |
|
653 |
$hide_add_to_cart = ( 'hide' === $behavior && 'all' === $where );
|
@@ -738,6 +779,56 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
738 |
|
739 |
}
|
740 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
741 |
|
742 |
/**
|
743 |
* YITH FRAMEWORK
|
@@ -834,6 +925,24 @@ if ( ! class_exists( 'YITH_WooCommerce_Catalog_Mode' ) ) {
|
|
834 |
|
835 |
}
|
836 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
837 |
}
|
838 |
|
839 |
}
|
87 |
//Add action links
|
88 |
add_filter( 'plugin_action_links_' . plugin_basename( YWCTM_DIR . '/' . basename( YWCTM_FILE ) ), array( $this, 'action_links' ) );
|
89 |
add_filter( 'yith_show_plugin_row_meta', array( $this, 'plugin_row_meta' ), 10, 5 );
|
90 |
+
add_action( 'init', array( $this, 'set_plugin_requirements' ), 20 );
|
91 |
|
92 |
$this->include_files();
|
93 |
|
99 |
|
100 |
if ( ! is_admin() || $this->is_quick_view() || ( defined( 'DOING_AJAX' ) && DOING_AJAX ) ) {
|
101 |
|
102 |
+
add_action( 'init', array( $this, 'check_disable_shop' ), 11 );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
103 |
add_action( 'woocommerce_before_shop_loop_item_title', array( $this, 'hide_add_to_cart_loop' ), 5 );
|
104 |
add_filter( 'woocommerce_add_to_cart_validation', array( $this, 'avoid_add_to_cart' ), 10, 2 );
|
105 |
add_action( 'wp_enqueue_scripts', array( $this, 'enqueue_styles_frontend' ) );
|
123 |
public function include_files() {
|
124 |
|
125 |
//Check if options should be upgraded
|
126 |
+
$update_path = YWCTM_DIR . 'includes/actions/update-2.0.0/ywctm-install.php';
|
127 |
+
if ( ( '' === get_option( 'ywctm_update_version' ) || YWCTM_VERSION === get_transient( 'ywctm_prune_settings' ) ) && file_exists( $update_path ) ) {
|
128 |
include_once( $update_path );
|
129 |
}
|
130 |
|
261 |
* FRONTEND FUNCTIONS
|
262 |
*/
|
263 |
|
264 |
+
/**
|
265 |
+
* Check if shop must be disabled
|
266 |
+
*
|
267 |
+
* @return void
|
268 |
+
* @since 2.0.3
|
269 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
270 |
+
*/
|
271 |
+
public function check_disable_shop() {
|
272 |
+
if ( $this->disable_shop() ) {
|
273 |
+
$priority = has_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ) );
|
274 |
+
remove_action( 'wp_loaded', array( 'WC_Form_Handler', 'add_to_cart_action' ), $priority );
|
275 |
+
add_filter( 'get_pages', array( $this, 'hide_cart_checkout_pages' ) );
|
276 |
+
add_filter( 'wp_get_nav_menu_items', array( $this, 'hide_cart_checkout_pages' ) );
|
277 |
+
add_filter( 'wp_nav_menu_objects', array( $this, 'hide_cart_checkout_pages' ) );
|
278 |
+
add_action( 'wp', array( $this, 'check_pages_redirect' ) );
|
279 |
+
}
|
280 |
+
}
|
281 |
+
|
282 |
/**
|
283 |
* Check if catalog mode is enabled for administrator
|
284 |
*
|
486 |
$atc_settings_general = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_add_to_cart_settings' ), $product_id, 'ywctm_hide_add_to_cart_settings' );
|
487 |
$behavior = $atc_settings_general['action'];
|
488 |
$where = $atc_settings_general['where'];
|
489 |
+
$items = $atc_settings_general['items'];
|
490 |
$can_hide = true;
|
491 |
+
$exclusion = false;
|
492 |
|
493 |
if ( ! $single ) {
|
494 |
$hide_variations = apply_filters( 'ywctm_get_vendor_option', get_option( 'ywctm_hide_variations' ), $product_id, 'ywctm_hide_variations' );
|
503 |
$can_hide = true;
|
504 |
}
|
505 |
|
506 |
+
if ( 'all' !== $items ) {
|
507 |
+
$exclusion = apply_filters( 'ywctm_get_exclusion', ( 'hide' === $behavior ? 'show' : 'hide' ), $product_id, 'atc', $behavior );
|
508 |
}
|
509 |
|
510 |
if ( ! $single ) {
|
511 |
+
|
512 |
+
switch ( true ) {
|
513 |
+
case 'hide' === $behavior && 'all' === $where && 'all' === $items:
|
514 |
+
case 'hide' === $behavior && 'shop' === $where && 'all' === $items:
|
515 |
+
case 'show' === $behavior && 'product' === $where && 'all' === $items:
|
516 |
+
case 'hide' === $behavior && 'all' === $where && 'all' !== $items && 'hide' === $exclusion:
|
517 |
+
case 'hide' === $behavior && 'shop' === $where && 'all' !== $items && 'hide' === $exclusion:
|
518 |
+
case 'show' === $behavior && 'product' === $where && 'all' !== $items:
|
519 |
+
case 'show' === $behavior && 'shop' === $where && 'all' !== $items && 'hide' === $exclusion:
|
520 |
+
case 'show' === $behavior && 'all' === $where && 'all' !== $items && 'hide' === $exclusion:
|
521 |
+
$hide_add_to_cart = true;
|
522 |
+
break;
|
523 |
+
default:
|
524 |
+
$hide_add_to_cart = false;
|
525 |
+
}
|
526 |
} else {
|
527 |
+
|
528 |
+
switch ( true ) {
|
529 |
+
case 'hide' === $behavior && 'all' === $where && 'all' === $items:
|
530 |
+
case 'hide' === $behavior && 'product' === $where && 'all' === $items:
|
531 |
+
case 'show' === $behavior && 'shop' === $where && 'all' === $items:
|
532 |
+
case 'hide' === $behavior && 'all' === $where && 'all' !== $items && 'hide' === $exclusion:
|
533 |
+
case 'hide' === $behavior && 'product' === $where && 'all' !== $items && 'hide' === $exclusion:
|
534 |
+
case 'show' === $behavior && 'shop' === $where && 'all' !== $items:
|
535 |
+
case 'show' === $behavior && 'product' === $where && 'all' !== $items && 'hide' === $exclusion:
|
536 |
+
case 'show' === $behavior && 'all' === $where && 'all' !== $items && 'hide' === $exclusion:
|
537 |
+
$hide_add_to_cart = true;
|
538 |
+
break;
|
539 |
+
default:
|
540 |
+
$hide_add_to_cart = false;
|
541 |
+
}
|
542 |
}
|
543 |
|
544 |
//Set "Add to cart" button as hidden
|
688 |
$where = $atc_settings_general['where'];
|
689 |
|
690 |
if ( 'all' !== $atc_settings_general['items'] ) {
|
691 |
+
$behavior = apply_filters( 'ywctm_get_exclusion', ( 'hide' === $behavior ? 'show' : 'hide' ), $product_id, 'atc', $behavior );
|
692 |
}
|
693 |
|
694 |
$hide_add_to_cart = ( 'hide' === $behavior && 'all' === $where );
|
779 |
|
780 |
}
|
781 |
|
782 |
+
/**
|
783 |
+
* Hide add to cart button in quick view
|
784 |
+
*
|
785 |
+
* @return void
|
786 |
+
* @since 1.0.7
|
787 |
+
* @author Francesco Licandro
|
788 |
+
*/
|
789 |
+
public function hide_add_to_cart_quick_view() {
|
790 |
+
|
791 |
+
if ( $this->check_hide_add_cart( true ) ) {
|
792 |
+
|
793 |
+
$hide_variations = get_option( 'ywctm_hide_variations' );
|
794 |
+
$args = array(
|
795 |
+
'form.cart button.single_add_to_cart_button',
|
796 |
+
);
|
797 |
+
|
798 |
+
$theme_name = ywctm_get_theme_name();
|
799 |
+
|
800 |
+
if ( 'oceanwp' === $theme_name ) {
|
801 |
+
$args[] = 'form.cart';
|
802 |
+
}
|
803 |
+
|
804 |
+
if ( ! class_exists( 'YITH_YWRAQ_Frontend' ) || ( ( class_exists( 'YITH_Request_Quote_Premium' ) ) && ! YITH_Request_Quote_Premium()->check_user_type() ) ) {
|
805 |
+
$args[] = 'form.cart .quantity';
|
806 |
+
}
|
807 |
+
|
808 |
+
if ( 'yes' === $hide_variations ) {
|
809 |
+
|
810 |
+
$args[] = 'table.variations';
|
811 |
+
$args[] = 'form.variations_form';
|
812 |
+
$args[] = '.single_variation_wrap .variations_button';
|
813 |
+
|
814 |
+
}
|
815 |
+
|
816 |
+
//APPLY_FILTERS: ywctm_cart_widget_classes: CSS selector of add to cart buttons
|
817 |
+
$classes = implode( ', ', apply_filters( 'ywctm_catalog_classes', $args ) );
|
818 |
+
|
819 |
+
ob_start();
|
820 |
+
?>
|
821 |
+
<style type="text/css">
|
822 |
+
<?php echo $classes; ?>
|
823 |
+
{
|
824 |
+
display: none !important
|
825 |
+
}
|
826 |
+
</style>
|
827 |
+
<?php
|
828 |
+
echo ob_get_clean();
|
829 |
+
}
|
830 |
+
|
831 |
+
}
|
832 |
|
833 |
/**
|
834 |
* YITH FRAMEWORK
|
925 |
|
926 |
}
|
927 |
|
928 |
+
/**
|
929 |
+
* Add Plugin Requirements
|
930 |
+
*
|
931 |
+
* @return void
|
932 |
+
* @since 2.0.0
|
933 |
+
* @author Alberto Ruggiero <alberto.ruggiero@yithemes.com>
|
934 |
+
*/
|
935 |
+
public function set_plugin_requirements() {
|
936 |
+
|
937 |
+
$plugin_data = get_plugin_data( plugin_dir_path( __FILE__ ) . '/init.php' );
|
938 |
+
$plugin_name = $plugin_data['Name'];
|
939 |
+
$requirements = array(
|
940 |
+
'min_wp_version' => '5.2.0',
|
941 |
+
'min_wc_version' => '4.0.0',
|
942 |
+
);
|
943 |
+
yith_plugin_fw_add_requirements( $plugin_name, $requirements );
|
944 |
+
}
|
945 |
+
|
946 |
}
|
947 |
|
948 |
}
|
init.php
CHANGED
@@ -5,10 +5,10 @@
|
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
-
* Version: 2.0.
|
9 |
* Author URI: https://yithemes.com/
|
10 |
-
* WC requires at least:
|
11 |
-
* WC tested up to: 4.
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
@@ -45,7 +45,7 @@ function ywctm_install_free_admin_notice() {
|
|
45 |
<?php
|
46 |
}
|
47 |
|
48 |
-
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.0.
|
49 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
50 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
51 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
5 |
* Description: <code><strong>YITH WooCommerce Catalog Mode</strong></code> allows hiding product prices, cart and checkout from your store and turning it into a performing product catalogue. You will be able to adjust your catalogue settings as you prefer based on your requirements. <a href="https://yithemes.com/" target="_blank">Get more plugins for your e-commerce shop on <strong>YITH</strong></a>
|
6 |
* Author: YITH
|
7 |
* Text Domain: yith-woocommerce-catalog-mode
|
8 |
+
* Version: 2.0.2
|
9 |
* Author URI: https://yithemes.com/
|
10 |
+
* WC requires at least: 4.0.0
|
11 |
+
* WC tested up to: 4.3.x
|
12 |
*/
|
13 |
|
14 |
if ( ! defined( 'ABSPATH' ) ) {
|
45 |
<?php
|
46 |
}
|
47 |
|
48 |
+
! defined( 'YWCTM_VERSION' ) && define( 'YWCTM_VERSION', '2.0.2' );
|
49 |
! defined( 'YWCTM_FREE_INIT' ) && define( 'YWCTM_FREE_INIT', plugin_basename( __FILE__ ) );
|
50 |
! defined( 'YWCTM_SLUG' ) && define( 'YWCTM_SLUG', 'yith-woocommerce-catalog-mode' );
|
51 |
! defined( 'YWCTM_FILE' ) && define( 'YWCTM_FILE', __FILE__ );
|
languages/yith-woocommerce-catalog-mode-nl_NL.mo
DELETED
Binary file
|
languages/yith-woocommerce-catalog-mode-nl_NL.po
DELETED
@@ -1,294 +0,0 @@
|
|
1 |
-
msgid ""
|
2 |
-
msgstr ""
|
3 |
-
"Project-Id-Version: YITH WooCommerce Catalog Mode\n"
|
4 |
-
"Report-Msgid-Bugs-To: \n"
|
5 |
-
"POT-Creation-Date: 2015-10-02 09:48+0100\n"
|
6 |
-
"PO-Revision-Date: Sun Oct 18 2015 12:56:28 GMT+0200 (West-Europa "
|
7 |
-
"(zomertijd))\n"
|
8 |
-
"Last-Translator: admin <admin@localhost.local>\n"
|
9 |
-
"Language-Team: Your Inspiration Themes <plugins@yithemes.com>\n"
|
10 |
-
"Language: Dutch\n"
|
11 |
-
"Plural-Forms: nplurals=2; plural=n != 1\n"
|
12 |
-
"MIME-Version: 1.0\n"
|
13 |
-
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
-
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Poedit-SourceCharset: UTF-8\n"
|
16 |
-
"X-Generator: Loco - https://localise.biz/\n"
|
17 |
-
"X-Poedit-KeywordsList: _:1;gettext:1;dgettext:2;ngettext:1,2;dngettext:2,3;"
|
18 |
-
"__:1;_e:1;_c:1;_n:1,2;_n_noop:1,2;_nc:1,2;__ngettext:1,2;__ngettext_noop:1,2;"
|
19 |
-
"_x:1,2c;_ex:1,2c;_nx:1,2,4c;_nx_noop:1,2,3c;_n_js:1,2;_nx_js:1,2,3c;"
|
20 |
-
"esc_attr__:1;esc_html__:1;esc_attr_e:1;esc_html_e:1;esc_attr_x:1,2c;"
|
21 |
-
"esc_html_x:1,2c;comments_number_link:2,3;t:1;st:1;trans:1;transChoice:1,2\n"
|
22 |
-
"X-Poedit-Basepath: .\n"
|
23 |
-
"X-Poedit-SearchPath-0: ..\n"
|
24 |
-
"X-Poedit-SearchPathExcluded-0: ../plugin-fw\n"
|
25 |
-
"X-Loco-Target-Locale: nl_NL"
|
26 |
-
|
27 |
-
#: ../class.yith-woocommerce-catalog-mode.php:602
|
28 |
-
#: ../class.yith-woocommerce-catalog-mode.php:671
|
29 |
-
msgid "Settings"
|
30 |
-
msgstr "Instellingen"
|
31 |
-
|
32 |
-
#: ../class.yith-woocommerce-catalog-mode.php:606
|
33 |
-
msgid "Premium Settings"
|
34 |
-
msgstr "Geavanceerde Instellingen"
|
35 |
-
|
36 |
-
#: ../class.yith-woocommerce-catalog-mode.php:607
|
37 |
-
msgid "Exclusion List"
|
38 |
-
msgstr "UItsluitingslijst"
|
39 |
-
|
40 |
-
#: ../class.yith-woocommerce-catalog-mode.php:610
|
41 |
-
#: ../class.yith-woocommerce-catalog-mode.php:674
|
42 |
-
msgid "Premium Version"
|
43 |
-
msgstr "Premium Versie"
|
44 |
-
|
45 |
-
#: ../class.yith-woocommerce-catalog-mode.php:616
|
46 |
-
#: ../class.yith-woocommerce-catalog-mode.php:617
|
47 |
-
msgid "Catalog Mode"
|
48 |
-
msgstr "Cataloog mode"
|
49 |
-
|
50 |
-
#: ../class.yith-woocommerce-catalog-mode.php:700
|
51 |
-
msgid "Plugin Documentation"
|
52 |
-
msgstr "Plugin Documentatie"
|
53 |
-
|
54 |
-
#: ../init.php:23
|
55 |
-
msgid ""
|
56 |
-
"YITH WooCommerce Catalog Mode is enabled but not effective. It requires "
|
57 |
-
"WooCommerce in order to work."
|
58 |
-
msgstr ""
|
59 |
-
"YITH WooCommerce Catalog Mode is ingeschakeld maar niet werkzaam. "
|
60 |
-
"WooCommerce is nodig om te werken."
|
61 |
-
|
62 |
-
#: ../init.php:31
|
63 |
-
msgid ""
|
64 |
-
"You can't activate the free version of YITH WooCommerce Catalog Mode while "
|
65 |
-
"you are using the premium one."
|
66 |
-
msgstr ""
|
67 |
-
"U kunt het gratis versie vanYITH WooCommerce Catalog Mode niet activeren als "
|
68 |
-
"u het premium versie gebruikt."
|
69 |
-
|
70 |
-
#: ../plugin-options/settings-options.php:18
|
71 |
-
msgid "Upgrade to the PREMIUM VERSION"
|
72 |
-
msgstr "Upgrade naar het PREMIUM VERSIE"
|
73 |
-
|
74 |
-
#: ../plugin-options/settings-options.php:21
|
75 |
-
#: ../plugin-options/settings-options.php:27
|
76 |
-
msgid "YITH WooCommerce Catalog Mode"
|
77 |
-
msgstr "YITH WooCommerce Catalog Mode"
|
78 |
-
|
79 |
-
#: ../plugin-options/settings-options.php:22
|
80 |
-
msgid "Discover the Advanced Features"
|
81 |
-
msgstr "Ontdek de Speciale Eigenschappen"
|
82 |
-
|
83 |
-
#: ../plugin-options/settings-options.php:23
|
84 |
-
msgid ""
|
85 |
-
"Upgrade to the PREMIUM VERSION of YITH WooCommerce Catalog Mode to benefit "
|
86 |
-
"from all features!"
|
87 |
-
msgstr ""
|
88 |
-
"Upgrade naar het PREMIUM VERSIE van YITH WooCommerce Catalog Mode om van "
|
89 |
-
"alle functies te profiteren."
|
90 |
-
|
91 |
-
#: ../plugin-options/settings-options.php:29
|
92 |
-
msgid "Get Support and Pro Features"
|
93 |
-
msgstr "Krijg Support en Pro functies"
|
94 |
-
|
95 |
-
#: ../plugin-options/settings-options.php:30
|
96 |
-
msgid ""
|
97 |
-
"By purchasing the premium version of the plugin, you will take advantage of "
|
98 |
-
"the advanced features of the product and you will get one year of free "
|
99 |
-
"updates and support through our platform available 24h/24."
|
100 |
-
msgstr ""
|
101 |
-
"Door de aankoop van de premium-versie van de plugin, zult u profiteren van "
|
102 |
-
"de geavanceerde functies van het product en u zult een jaar gratis updates "
|
103 |
-
"ontvangen en de ondersteuning door middel van ons beschikbaar platform 24u / "
|
104 |
-
"24."
|
105 |
-
|
106 |
-
#: ../plugin-options/settings-options.php:40
|
107 |
-
#: ../plugin-options/settings-options.php:49
|
108 |
-
#: ../plugin-options/settings-options.php:99
|
109 |
-
#: ../plugin-options/settings-options.php:107
|
110 |
-
msgid "\"Add to cart\" button"
|
111 |
-
msgstr "\"Toevoegen aan winkelwagen\" button"
|
112 |
-
|
113 |
-
#: ../plugin-options/settings-options.php:42
|
114 |
-
msgid "Exclude selected products (See \"Exclusions\" tab)"
|
115 |
-
msgstr "Uitsluiten geselecteerde producten ( zie \"Uitsluitings\" tab)"
|
116 |
-
|
117 |
-
#: ../plugin-options/settings-options.php:51
|
118 |
-
msgid "Reverse Exclusion List (Restrict Catalog Mode to selected items only)"
|
119 |
-
msgstr ""
|
120 |
-
"Omgekeerde Uitsluitingslijst ( Alleen Restrict Catalog Mode geselecteerde "
|
121 |
-
"items)"
|
122 |
-
|
123 |
-
#: ../plugin-options/settings-options.php:58
|
124 |
-
msgid "Variable products"
|
125 |
-
msgstr "Variabele producten"
|
126 |
-
|
127 |
-
#: ../plugin-options/settings-options.php:60
|
128 |
-
msgid "Hide product variations"
|
129 |
-
msgstr "Verberg product variaties"
|
130 |
-
|
131 |
-
#: ../plugin-options/settings-options.php:71
|
132 |
-
msgid "General Settings"
|
133 |
-
msgstr "Algemene instellingen"
|
134 |
-
|
135 |
-
#: ../plugin-options/settings-options.php:76
|
136 |
-
msgid "Enable YITH Woocommerce Catalog Mode"
|
137 |
-
msgstr "YITH Woocommerce Catalog Mode inschakelen"
|
138 |
-
|
139 |
-
#: ../plugin-options/settings-options.php:83
|
140 |
-
msgid "Admin View"
|
141 |
-
msgstr "Admin weergave"
|
142 |
-
|
143 |
-
#: ../plugin-options/settings-options.php:85
|
144 |
-
msgid "Enable Catalog Mode also for administrators"
|
145 |
-
msgstr "Catalog Mode ook voor beheerders inschakelen"
|
146 |
-
|
147 |
-
#: ../plugin-options/settings-options.php:94
|
148 |
-
msgid "Catalog Mode Settings"
|
149 |
-
msgstr "Catalog Mode instellingen"
|
150 |
-
|
151 |
-
#: ../plugin-options/settings-options.php:101
|
152 |
-
msgid "Hide in product details page"
|
153 |
-
msgstr "Verberg in productdetail pagina"
|
154 |
-
|
155 |
-
#: ../plugin-options/settings-options.php:109
|
156 |
-
msgid "Hide in other pages"
|
157 |
-
msgstr "Verberg in andere pagina's"
|
158 |
-
|
159 |
-
#: ../plugin-options/settings-options.php:118
|
160 |
-
msgid "\"Cart\" and \"Checkout\" pages"
|
161 |
-
msgstr "\"Winkelwagen\" en \"afrekenen\" pagina's"
|
162 |
-
|
163 |
-
#: ../plugin-options/settings-options.php:120
|
164 |
-
msgid "Hide and disable all shop features"
|
165 |
-
msgstr "Verberg en schakel alle winkel functies uit"
|
166 |
-
|
167 |
-
#: ../templates/admin/premium.php:226 ../templates/admin/premium.php:352
|
168 |
-
#, php-format
|
169 |
-
msgid ""
|
170 |
-
"Upgrade to %1$spremium version%2$s of %1$sYITH WooCommerce Catalog Mode%2$s "
|
171 |
-
"to benefit from all features!"
|
172 |
-
msgstr ""
|
173 |
-
"Upgrade naar %1$spremium version%2$s of %1$sYITH WooCommerce Catalog "
|
174 |
-
"Mode%2$s om te profiteren van alle functies!"
|
175 |
-
|
176 |
-
#: ../templates/admin/premium.php:229 ../templates/admin/premium.php:355
|
177 |
-
msgid "UPGRADE"
|
178 |
-
msgstr "UPGRADE"
|
179 |
-
|
180 |
-
#: ../templates/admin/premium.php:230 ../templates/admin/premium.php:356
|
181 |
-
msgid "to the premium version"
|
182 |
-
msgstr "naar het premium versie"
|
183 |
-
|
184 |
-
#: ../templates/admin/premium.php:236
|
185 |
-
msgid "Premium Features"
|
186 |
-
msgstr "Premium Functies"
|
187 |
-
|
188 |
-
#: ../templates/admin/premium.php:244
|
189 |
-
msgid "Hide price"
|
190 |
-
msgstr "Verberg prijs"
|
191 |
-
|
192 |
-
#: ../templates/admin/premium.php:247
|
193 |
-
#, php-format
|
194 |
-
msgid ""
|
195 |
-
"Hide the price of products in your shop and replace it with a text. Decide "
|
196 |
-
"if some of the products have to be excluded and if %1$shiding price%2$s has "
|
197 |
-
"to be applied to all or restricted only to unlogged users."
|
198 |
-
msgstr ""
|
199 |
-
"Verberg de prijs van de producten in uw winkel en vervang deze door een "
|
200 |
-
"tekst. Beslis of sommige van de producten worden uitgesloten en indien "
|
201 |
-
"%1$shiding price%2$s moet worden toegepast op alle of beperkt tot niet "
|
202 |
-
"ingelogde gebruikers."
|
203 |
-
|
204 |
-
#: ../templates/admin/premium.php:257
|
205 |
-
msgid "Inquiry form"
|
206 |
-
msgstr "Aanvraagformulier"
|
207 |
-
|
208 |
-
#: ../templates/admin/premium.php:260
|
209 |
-
#, php-format
|
210 |
-
msgid ""
|
211 |
-
"Improve single product page by adding a tab with an %1$sinquiry form%2$s "
|
212 |
-
"explicitly thought to let them send messages to site administrator."
|
213 |
-
msgstr ""
|
214 |
-
"Verbeter de enkel product pagina door het toevoegen van een tab met "
|
215 |
-
"%1$sinquiry form%2$s expliciet bedacht om hun berichten te laten sturen naar "
|
216 |
-
"de websitebeheerder."
|
217 |
-
|
218 |
-
#: ../templates/admin/premium.php:276
|
219 |
-
msgid "Custom button"
|
220 |
-
msgstr "Aangepaste button"
|
221 |
-
|
222 |
-
#: ../templates/admin/premium.php:279
|
223 |
-
#, php-format
|
224 |
-
msgid ""
|
225 |
-
"Add a button in single product page to call users to a specific "
|
226 |
-
"%1$saction%2$s, depending on the specified %1$slink%2$s (email sending, "
|
227 |
-
"skype call, telephone call)."
|
228 |
-
msgstr ""
|
229 |
-
"Voeg een button toe in de enkel product pagina om gebruikers te laten bellen "
|
230 |
-
"voor een specifieke %1$saction%2$s, afhankelijk van de opgegeven "
|
231 |
-
"%1$slink%2$s (email sending, skype call, telephone call)."
|
232 |
-
|
233 |
-
#: ../templates/admin/premium.php:289
|
234 |
-
msgid "Product reviews"
|
235 |
-
msgstr "Product beoordeling"
|
236 |
-
|
237 |
-
#: ../templates/admin/premium.php:292
|
238 |
-
#, php-format
|
239 |
-
msgid ""
|
240 |
-
"You can disable product %1$sreviewing system%2$s of your shop and decide if "
|
241 |
-
"applying it to all users or just to unlogged ones."
|
242 |
-
msgstr ""
|
243 |
-
"U kunt uw product %1$sreviewing system%2$s uitschakelen in uw winkel en "
|
244 |
-
"beslissen of dit voor alle gebruikers is of alleen voor niet ingelogde "
|
245 |
-
"gebruikers."
|
246 |
-
|
247 |
-
#: ../templates/admin/premium.php:308
|
248 |
-
msgid "Exclusion list"
|
249 |
-
msgstr "Uitgesloten lijst"
|
250 |
-
|
251 |
-
#: ../templates/admin/premium.php:311
|
252 |
-
#, php-format
|
253 |
-
msgid ""
|
254 |
-
"Set plugin options, but if you want that options concerning price visibility "
|
255 |
-
"and ‘Add to cart’ do not apply to specific products, add them to "
|
256 |
-
"%1$sexclusion list%2$s and, voilà, problem solved."
|
257 |
-
msgstr ""
|
258 |
-
"Stel plugin opties in, maar als je wilt dat de opties met betrekking tot "
|
259 |
-
"prijs zichtbaarheid en 'Bestellen' niet van toepassing zijn op specifieke "
|
260 |
-
"producten, voeg ze toe aan %1$sexclusion list%2$s en, voilà probleem "
|
261 |
-
"opgelost."
|
262 |
-
|
263 |
-
#: ../templates/admin/premium.php:321
|
264 |
-
msgid "REVERSE EXCLUSION LIST"
|
265 |
-
msgstr "OMGEKEERDE UITSLUITINGSLIJST"
|
266 |
-
|
267 |
-
#: ../templates/admin/premium.php:324
|
268 |
-
#, php-format
|
269 |
-
msgid ""
|
270 |
-
"Apply Catalog Mode to some items only: add them to the \"Exclusion List\" and "
|
271 |
-
"%1$smake it work in the opposite way as usual%2$s. All items in the shop "
|
272 |
-
"show price and “Add to Cart” button, while items in the list don’t."
|
273 |
-
msgstr ""
|
274 |
-
"Catalog Mode toepassing voor slechts enkele items: voeg ze toe aan de "
|
275 |
-
"\"Uitsluitingslijst\" en %1$smake it work in the opposite way as usual%2$s. "
|
276 |
-
"Van alle items in de winkel de prijs tonen en de \"Toevoegen aan winkelwagen\" "
|
277 |
-
"button, terwijl items niet in de lijst staan."
|
278 |
-
|
279 |
-
#: ../templates/admin/premium.php:340
|
280 |
-
msgid "Source page of the request"
|
281 |
-
msgstr "Bronpagina van de aanvraag"
|
282 |
-
|
283 |
-
#: ../templates/admin/premium.php:343
|
284 |
-
#, php-format
|
285 |
-
msgid ""
|
286 |
-
"Thanks to the %1$s\"Product Permalink\"%2$s option you will be able to know "
|
287 |
-
"from which page your users have generated the request.%3$sThe email "
|
288 |
-
"generated from the request form will include the address of the page: "
|
289 |
-
"another important information that can be really useful for you."
|
290 |
-
msgstr ""
|
291 |
-
"Met dank aan de %1$s\"Product Permalink\"%2$s optie is het mogelijk om te "
|
292 |
-
"weten welke pagina je gebruiker heeft gemaakt de aanvraag %3$s De e-mail "
|
293 |
-
"gegenereerd op basis van het aanvraagformulier zal het adres van de pagina: "
|
294 |
-
"en andere belangrijke informatie die kan nuttig zijn voor jou."
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
languages/yith-woocommerce-catalog-mode.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.0.1\n"
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -24,12 +24,12 @@ msgstr ""
|
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
28 |
#: plugin-options/settings-options.php:18
|
29 |
msgid "Settings"
|
30 |
msgstr ""
|
31 |
|
32 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
33 |
msgid "Premium Version"
|
34 |
msgstr ""
|
35 |
|
@@ -231,22 +231,22 @@ msgid ""
|
|
231 |
"e-commerce shop on <strong>YITH</strong></a>"
|
232 |
msgstr ""
|
233 |
|
234 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
235 |
msgctxt "general settings tab name"
|
236 |
msgid "Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
240 |
msgctxt "exclusion settings tab name"
|
241 |
msgid "Exclusion List"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
245 |
msgctxt "inquiry form settings tab name"
|
246 |
msgid "Inquiry Form"
|
247 |
msgstr ""
|
248 |
|
249 |
-
#: class-yith-woocommerce-catalog-mode.php:
|
250 |
msgctxt "buttons & labels settings tab name"
|
251 |
msgid "Buttons & Labels"
|
252 |
msgstr ""
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH WooCommerce Catalog Mode 2.0.1\n"
|
6 |
"Report-Msgid-Bugs-To: Your Inspiration Themes <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-09 21:46:37+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
24 |
"X-Textdomain-Support: yes\n"
|
25 |
"X-Generator: grunt-wp-i18n 1.0.3\n"
|
26 |
|
27 |
+
#: class-yith-woocommerce-catalog-mode.php:235
|
28 |
#: plugin-options/settings-options.php:18
|
29 |
msgid "Settings"
|
30 |
msgstr ""
|
31 |
|
32 |
+
#: class-yith-woocommerce-catalog-mode.php:236
|
33 |
msgid "Premium Version"
|
34 |
msgstr ""
|
35 |
|
231 |
"e-commerce shop on <strong>YITH</strong></a>"
|
232 |
msgstr ""
|
233 |
|
234 |
+
#: class-yith-woocommerce-catalog-mode.php:226
|
235 |
msgctxt "general settings tab name"
|
236 |
msgid "Settings"
|
237 |
msgstr ""
|
238 |
|
239 |
+
#: class-yith-woocommerce-catalog-mode.php:227
|
240 |
msgctxt "exclusion settings tab name"
|
241 |
msgid "Exclusion List"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: class-yith-woocommerce-catalog-mode.php:228
|
245 |
msgctxt "inquiry form settings tab name"
|
246 |
msgid "Inquiry Form"
|
247 |
msgstr ""
|
248 |
|
249 |
+
#: class-yith-woocommerce-catalog-mode.php:229
|
250 |
msgctxt "buttons & labels settings tab name"
|
251 |
msgid "Buttons & Labels"
|
252 |
msgstr ""
|
plugin-fw/assets/css/admin.css
CHANGED
@@ -3,54 +3,54 @@
|
|
3 |
------------------------*/
|
4 |
#wpadminbar .yith-debug-admin-bar div,
|
5 |
#wpadminbar .yith-debug-admin-bar:hover div {
|
6 |
-
|
7 |
-
|
8 |
}
|
9 |
|
10 |
#wpadminbar .yith-debug-admin-bar a,
|
11 |
#wpadminbar .yith-debug-admin-bar strong {
|
12 |
-
|
13 |
}
|
14 |
|
15 |
#wpadminbar .yith-debug-admin-bar strong {
|
16 |
-
|
17 |
}
|
18 |
|
19 |
#wpadminbar .yith-debug-admin-bar-post-meta .ab-empty-item,
|
20 |
#wpadminbar .yith-debug-admin-bar-option .ab-empty-item {
|
21 |
-
|
22 |
}
|
23 |
|
24 |
#wpadminbar #wp-admin-bar-yith-debug-admin-bar-post-meta-default,
|
25 |
#wpadminbar #wp-admin-bar-yith-debug-admin-bar-option-default {
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
}
|
30 |
|
31 |
#wpadminbar .yith-debug-admin-bar pre {
|
32 |
-
|
33 |
-
|
34 |
}
|
35 |
|
36 |
.notice-yith {
|
37 |
-
|
38 |
-
|
39 |
}
|
40 |
|
41 |
.notice-yith.notice-alt {
|
42 |
-
|
43 |
}
|
44 |
|
45 |
.yith-promo-banner-image-link {
|
46 |
-
|
47 |
-
|
48 |
}
|
49 |
|
50 |
.yith-promo-banner-image {
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
}
|
55 |
|
56 |
/*-----------------------
|
@@ -58,20 +58,20 @@
|
|
58 |
------------------------*/
|
59 |
|
60 |
.yith-feeds-logo {
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
}
|
71 |
|
72 |
.yith-feeds-plugin-name {
|
73 |
-
|
74 |
-
|
75 |
}
|
76 |
|
77 |
/*-----------------------
|
@@ -79,118 +79,132 @@
|
|
79 |
------------------------*/
|
80 |
@media screen and (min-width: 783px) {
|
81 |
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
-
|
90 |
-
|
91 |
|
92 |
-
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
-
|
97 |
|
98 |
-
|
99 |
-
|
100 |
-
|
101 |
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
|
108 |
-
|
109 |
-
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
|
114 |
-
|
115 |
-
|
116 |
-
|
117 |
}
|
118 |
|
119 |
/*---------------------------
|
120 |
YITH System Information
|
121 |
----------------------------*/
|
122 |
.yith-phpinfo img {
|
123 |
-
|
124 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
125 |
}
|
126 |
|
127 |
#yith-system-alert span.yith-logo,
|
128 |
-
.yith-system-info
|
129 |
-
|
130 |
-
|
131 |
-
|
132 |
-
|
133 |
-
|
134 |
-
|
135 |
-
|
136 |
-
|
137 |
-
|
138 |
-
|
139 |
}
|
140 |
|
141 |
.yith-system-info table {
|
142 |
-
|
143 |
}
|
144 |
|
145 |
.yith-system-info table th {
|
146 |
-
|
147 |
-
|
148 |
-
|
149 |
}
|
150 |
|
151 |
.yith-system-info table td {
|
152 |
-
|
153 |
-
|
154 |
}
|
155 |
|
156 |
.yith-system-info table td.requirement-value {
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
-
|
163 |
}
|
164 |
|
165 |
.yith-system-info table td.requirement-value.has-errors {
|
166 |
-
|
167 |
}
|
168 |
|
169 |
.yith-system-info table td.requirement-value.has-warnings {
|
170 |
-
|
171 |
}
|
172 |
|
173 |
.yith-system-info table td.requirement-messages ul {
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
}
|
178 |
|
179 |
.yith-system-info table td.requirement-messages ul li {
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
181 |
}
|
182 |
|
183 |
-
.yith-system-info table td.requirement-messages
|
184 |
-
|
185 |
-
|
186 |
}
|
187 |
|
188 |
-
.yith-system-info table
|
189 |
-
|
190 |
-
|
191 |
}
|
192 |
|
193 |
.yith-system-info-menu {
|
194 |
-
|
195 |
-
|
196 |
}
|
3 |
------------------------*/
|
4 |
#wpadminbar .yith-debug-admin-bar div,
|
5 |
#wpadminbar .yith-debug-admin-bar:hover div {
|
6 |
+
background: #05789c !important;
|
7 |
+
color: #fff !important;
|
8 |
}
|
9 |
|
10 |
#wpadminbar .yith-debug-admin-bar a,
|
11 |
#wpadminbar .yith-debug-admin-bar strong {
|
12 |
+
color: #fff !important;
|
13 |
}
|
14 |
|
15 |
#wpadminbar .yith-debug-admin-bar strong {
|
16 |
+
font-weight: 600;
|
17 |
}
|
18 |
|
19 |
#wpadminbar .yith-debug-admin-bar-post-meta .ab-empty-item,
|
20 |
#wpadminbar .yith-debug-admin-bar-option .ab-empty-item {
|
21 |
+
display: none;
|
22 |
}
|
23 |
|
24 |
#wpadminbar #wp-admin-bar-yith-debug-admin-bar-post-meta-default,
|
25 |
#wpadminbar #wp-admin-bar-yith-debug-admin-bar-option-default {
|
26 |
+
padding: 0;
|
27 |
+
max-height: 500px;
|
28 |
+
overflow-y: auto;
|
29 |
}
|
30 |
|
31 |
#wpadminbar .yith-debug-admin-bar pre {
|
32 |
+
padding: 10px;
|
33 |
+
line-height: 1.5em;
|
34 |
}
|
35 |
|
36 |
.notice-yith {
|
37 |
+
margin-left: 0;
|
38 |
+
border-left-color: #acc327;
|
39 |
}
|
40 |
|
41 |
.notice-yith.notice-alt {
|
42 |
+
background-color: #ecf7ed;
|
43 |
}
|
44 |
|
45 |
.yith-promo-banner-image-link {
|
46 |
+
display: block;
|
47 |
+
margin-bottom: 15px;
|
48 |
}
|
49 |
|
50 |
.yith-promo-banner-image {
|
51 |
+
max-width: 100%;
|
52 |
+
margin: 0 auto;
|
53 |
+
display: block;
|
54 |
}
|
55 |
|
56 |
/*-----------------------
|
58 |
------------------------*/
|
59 |
|
60 |
.yith-feeds-logo {
|
61 |
+
display: table-cell;
|
62 |
+
background: #005b7c;
|
63 |
+
padding: 5px;
|
64 |
+
border-radius: 50%;
|
65 |
+
margin-right: 10px;
|
66 |
+
vertical-align: text-bottom;
|
67 |
+
width: 18px;
|
68 |
+
height: auto;
|
69 |
+
vertical-align: middle;
|
70 |
}
|
71 |
|
72 |
.yith-feeds-plugin-name {
|
73 |
+
display: table-cell;
|
74 |
+
vertical-align: middle;
|
75 |
}
|
76 |
|
77 |
/*-----------------------
|
79 |
------------------------*/
|
80 |
@media screen and (min-width: 783px) {
|
81 |
|
82 |
+
.auto-fold #adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu-head {
|
83 |
+
width: 100%;
|
84 |
+
}
|
85 |
|
86 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu {
|
87 |
+
min-width: 320px;
|
88 |
+
display: flex;
|
89 |
+
flex-flow: row wrap;
|
90 |
+
}
|
91 |
|
92 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
93 |
+
width: 50%;
|
94 |
+
border-left: 1px solid #555;
|
95 |
+
box-sizing: border-box;
|
96 |
+
}
|
97 |
|
98 |
+
#adminmenu .yith-plugin-fw-menu-2-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(2n) {
|
99 |
+
border-left: none;
|
100 |
+
}
|
101 |
|
102 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu {
|
103 |
+
min-width: 480px;
|
104 |
+
display: flex;
|
105 |
+
flex-flow: row wrap;
|
106 |
+
}
|
107 |
|
108 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head) {
|
109 |
+
width: calc(100% / 3);
|
110 |
+
border-left: 1px solid #555;
|
111 |
+
box-sizing: border-box;
|
112 |
+
}
|
113 |
|
114 |
+
#adminmenu .yith-plugin-fw-menu-3-columns.wp-not-current-submenu .wp-submenu li:not(.wp-submenu-head):nth-child(3n + 2) {
|
115 |
+
border-left: none;
|
116 |
+
}
|
117 |
}
|
118 |
|
119 |
/*---------------------------
|
120 |
YITH System Information
|
121 |
----------------------------*/
|
122 |
.yith-phpinfo img {
|
123 |
+
float: right;
|
124 |
+
border: 0;
|
125 |
+
}
|
126 |
+
|
127 |
+
.yith-system-info h2.yith-sysinfo-title {
|
128 |
+
color: #00729f;
|
129 |
+
font-size: 25px;
|
130 |
+
text-transform: uppercase;
|
131 |
+
font-weight: 800;
|
132 |
+
line-height: 25px;
|
133 |
+
padding: 20px 0;
|
134 |
}
|
135 |
|
136 |
#yith-system-alert span.yith-logo,
|
137 |
+
.yith-system-info h2 span.yith-logo {
|
138 |
+
border-radius: 50%;
|
139 |
+
background: #265b7a;
|
140 |
+
height: 30px;
|
141 |
+
width: 30px;
|
142 |
+
display: flex;
|
143 |
+
text-align: center;
|
144 |
+
margin: 0 10px 0 0;
|
145 |
+
float: left;
|
146 |
+
align-items: center;
|
147 |
+
justify-content: center;
|
148 |
}
|
149 |
|
150 |
.yith-system-info table {
|
151 |
+
margin: 20px 0;
|
152 |
}
|
153 |
|
154 |
.yith-system-info table th {
|
155 |
+
font-weight: bold;
|
156 |
+
width: 25%;
|
157 |
+
padding: 20px 12px;
|
158 |
}
|
159 |
|
160 |
.yith-system-info table td {
|
161 |
+
word-break: break-all;
|
162 |
+
padding: 20px 12px;
|
163 |
}
|
164 |
|
165 |
.yith-system-info table td.requirement-value {
|
166 |
+
font-size: 14px;
|
167 |
+
vertical-align: middle;
|
168 |
+
text-align: left;
|
169 |
+
color: #5da726;
|
170 |
+
line-height: 19px;
|
171 |
+
width: 90px;
|
172 |
}
|
173 |
|
174 |
.yith-system-info table td.requirement-value.has-errors {
|
175 |
+
color: #a00;
|
176 |
}
|
177 |
|
178 |
.yith-system-info table td.requirement-value.has-warnings {
|
179 |
+
color: #ffa200;
|
180 |
}
|
181 |
|
182 |
.yith-system-info table td.requirement-messages ul {
|
183 |
+
margin: 0;
|
184 |
+
padding: 0 0 10px 0;
|
185 |
+
list-style: none !important;
|
186 |
}
|
187 |
|
188 |
.yith-system-info table td.requirement-messages ul li {
|
189 |
+
margin-bottom: 3px;
|
190 |
+
}
|
191 |
+
|
192 |
+
.yith-system-info table td.requirement-messages span.error {
|
193 |
+
color: #a00;
|
194 |
+
font-weight: bold;
|
195 |
}
|
196 |
|
197 |
+
.yith-system-info table td.requirement-messages span.warning {
|
198 |
+
color: #a00;
|
199 |
+
font-weight: bold;
|
200 |
}
|
201 |
|
202 |
+
.yith-system-info table textarea.yith-system-info-debug {
|
203 |
+
width: 100%;
|
204 |
+
height: 400px;
|
205 |
}
|
206 |
|
207 |
.yith-system-info-menu {
|
208 |
+
font-weight: bold;
|
209 |
+
font-size: 11px !important;
|
210 |
}
|
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/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-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/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
@@ -46,6 +46,11 @@
|
|
46 |
margin-right : 15px;
|
47 |
}
|
48 |
|
|
|
|
|
|
|
|
|
|
|
49 |
.yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container{
|
50 |
border: 1px solid #ddd;
|
51 |
border-top : 0;
|
@@ -83,11 +88,14 @@
|
|
83 |
.yith-plugin-fw-wp-page-wrapper .wrap {
|
84 |
border : 1px solid #d8d8d8;
|
85 |
border-top : 0;
|
86 |
-
margin
|
87 |
background : #fff;
|
88 |
padding : 20px;
|
89 |
box-sizing : border-box;
|
90 |
}
|
|
|
|
|
|
|
91 |
|
92 |
#wpwrap .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper {
|
93 |
padding-bottom : 0;
|
@@ -99,7 +107,7 @@
|
|
99 |
|
100 |
.yith-plugin-fw-wp-page-wrapper h1.nav-tab-wrapper, .yith-plugin-fw-wp-page-wrapper h2.nav-tab-wrapper, .yith-plugin-fw-wp-page-wrapper .nav-tab-wrapper {
|
101 |
padding-top : 9px;
|
102 |
-
padding-bottom
|
103 |
}
|
104 |
|
105 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
@@ -518,8 +526,15 @@
|
|
518 |
margin-right : 15px;
|
519 |
}
|
520 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
521 |
.yit-admin-panel-content-wrap {
|
522 |
-
width
|
523 |
display : block;
|
524 |
}
|
525 |
|
@@ -554,30 +569,38 @@
|
|
554 |
*/
|
555 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
556 |
background : #fff;
|
557 |
-
padding
|
558 |
box-sizing : border-box;
|
559 |
-
margin-right
|
560 |
border-left : 1px solid #d8d8d8;
|
561 |
border-right : 1px solid #d8d8d8;
|
|
|
|
|
|
|
|
|
562 |
}
|
563 |
-
|
564 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav h3.nav-tab-wrapper {
|
565 |
text-transform : uppercase;
|
566 |
line-height : inherit;
|
567 |
font-weight : 600;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
568 |
}
|
569 |
|
570 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab {
|
571 |
line-height : 1.71428571;
|
572 |
margin-left : 0;
|
573 |
margin-right : 0;
|
574 |
-
background-color
|
575 |
color : #336374;
|
576 |
font-size : 13px;
|
577 |
-
padding
|
578 |
border : 0;
|
579 |
-
border-left : 1px solid #d8d8d8;
|
580 |
-
border-top : 1px solid #d8d8d8;
|
581 |
}
|
582 |
|
583 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab .yith-nav-sub-tab__title,
|
@@ -595,10 +618,6 @@
|
|
595 |
color : inherit;
|
596 |
}
|
597 |
|
598 |
-
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab:last-child {
|
599 |
-
border-right : 1px solid #d8d8d8;
|
600 |
-
}
|
601 |
-
|
602 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .yith-nav-sub-tab--highlight {
|
603 |
color : #fff;
|
604 |
background : #2a8db0;
|
@@ -607,7 +626,121 @@
|
|
607 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab-active {
|
608 |
color : #2a8db0;
|
609 |
background : #fff;
|
610 |
-
border-bottom
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
611 |
}
|
612 |
|
613 |
/* === Responsive === */
|
46 |
margin-right : 15px;
|
47 |
}
|
48 |
|
49 |
+
.yith-plugin-fw-panel-custom-tab-container > h2 {
|
50 |
+
border : none;
|
51 |
+
padding : 15px 0;
|
52 |
+
}
|
53 |
+
|
54 |
.yith-plugin-ui .yith-plugin-fw-panel-custom-tab-container{
|
55 |
border: 1px solid #ddd;
|
56 |
border-top : 0;
|
88 |
.yith-plugin-fw-wp-page-wrapper .wrap {
|
89 |
border : 1px solid #d8d8d8;
|
90 |
border-top : 0;
|
91 |
+
margin: 0px 15px 0 0;
|
92 |
background : #fff;
|
93 |
padding : 20px;
|
94 |
box-sizing : border-box;
|
95 |
}
|
96 |
+
.yith-plugin-fw-wp-page-wrapper .wrap.subnav-wrap .wrap{
|
97 |
+
margin-top: -20px;
|
98 |
+
}
|
99 |
|
100 |
#wpwrap .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-fw-wp-page-wrapper .yith-plugin-ui h2.nav-tab-wrapper {
|
101 |
padding-bottom : 0;
|
107 |
|
108 |
.yith-plugin-fw-wp-page-wrapper h1.nav-tab-wrapper, .yith-plugin-fw-wp-page-wrapper h2.nav-tab-wrapper, .yith-plugin-fw-wp-page-wrapper .nav-tab-wrapper {
|
109 |
padding-top : 9px;
|
110 |
+
padding-bottom: 0;
|
111 |
}
|
112 |
|
113 |
.yith-plugin-fw-wp-page-wrapper .wrap h1.wp-heading-inline {
|
526 |
margin-right : 15px;
|
527 |
}
|
528 |
|
529 |
+
.yith-plugin-ui .yit-admin-panel-container {
|
530 |
+
position : relative;
|
531 |
+
margin-right : 15px;
|
532 |
+
margin-top: -3px;
|
533 |
+
z-index: 0;
|
534 |
+
border-top: 1px solid #dbdada;
|
535 |
+
}
|
536 |
.yit-admin-panel-content-wrap {
|
537 |
+
width: auto;
|
538 |
display : block;
|
539 |
}
|
540 |
|
569 |
*/
|
570 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav {
|
571 |
background : #fff;
|
572 |
+
padding: 10px 14px 0px 20px;
|
573 |
box-sizing : border-box;
|
574 |
+
margin-right: 15px;
|
575 |
border-left : 1px solid #d8d8d8;
|
576 |
border-right : 1px solid #d8d8d8;
|
577 |
+
margin-top: -2px;
|
578 |
+
}
|
579 |
+
.yith-plugin-ui .yith-plugin-fw-wp-page-wrapper .wrap{
|
580 |
+
margin-top: -29px;
|
581 |
}
|
|
|
582 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav h3.nav-tab-wrapper {
|
583 |
text-transform : uppercase;
|
584 |
line-height : inherit;
|
585 |
font-weight : 600;
|
586 |
+
margin-right: 21px;
|
587 |
+
box-sizing: border-box;
|
588 |
+
background-color: #f1f1f1;
|
589 |
+
padding-top: 0;
|
590 |
+
border: 1px solid #ccc;
|
591 |
+
border-bottom: 0;
|
592 |
+
margin-top: 20px;
|
593 |
}
|
594 |
|
595 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab {
|
596 |
line-height : 1.71428571;
|
597 |
margin-left : 0;
|
598 |
margin-right : 0;
|
599 |
+
background-color: #f1f1f1;
|
600 |
color : #336374;
|
601 |
font-size : 13px;
|
602 |
+
padding: 8px 20px 9px;
|
603 |
border : 0;
|
|
|
|
|
604 |
}
|
605 |
|
606 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab .yith-nav-sub-tab__title,
|
618 |
color : inherit;
|
619 |
}
|
620 |
|
|
|
|
|
|
|
|
|
621 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .yith-nav-sub-tab--highlight {
|
622 |
color : #fff;
|
623 |
background : #2a8db0;
|
626 |
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab-active {
|
627 |
color : #2a8db0;
|
628 |
background : #fff;
|
629 |
+
border-bottom: 2px solid #fff;
|
630 |
+
}
|
631 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav .nav-tab:first-child{
|
632 |
+
border:0;
|
633 |
+
}
|
634 |
+
|
635 |
+
.yith-plugin-fw-wp-page-wrapper.yith-current-subtab-opened > .wrap {
|
636 |
+
/* padding-top: 0; */
|
637 |
+
}
|
638 |
+
.yith-plugin-fw-wp-page-wrapper .nav-tab-wrapper {
|
639 |
+
border-bottom: 2px solid #e9e9e9;
|
640 |
+
margin: 0;
|
641 |
+
padding-top: 9px;
|
642 |
+
padding-bottom: 0;
|
643 |
+
line-height: inherit;
|
644 |
+
}
|
645 |
+
|
646 |
+
div.nav-subtab-wrap {
|
647 |
+
position: absolute;
|
648 |
+
top: 100%;
|
649 |
+
left: 1px;
|
650 |
+
padding-top: 10px;
|
651 |
+
visibility: hidden; /* hides sub-menu */
|
652 |
+
}
|
653 |
+
ul.nav-subtab {
|
654 |
+
opacity: 0;
|
655 |
+
background-color: #fff;
|
656 |
+
transition: max-height 0.5s ease-in;
|
657 |
+
max-height: 0;
|
658 |
+
z-index: 100;
|
659 |
+
overflow: hidden;
|
660 |
+
border: 1px solid #f2f2f2;
|
661 |
+
padding: 14px 15px;
|
662 |
+
}
|
663 |
+
ul.yith-plugin-fw-tabs {
|
664 |
+
display: block;
|
665 |
+
margin: 0;
|
666 |
+
}
|
667 |
+
|
668 |
+
li.yith-plugin-fw-tab-element {
|
669 |
+
position: relative;
|
670 |
+
margin: 0;
|
671 |
+
padding: 0;
|
672 |
+
display: inline-block;
|
673 |
+
/* height: 40px; */
|
674 |
+
overflow: visible;
|
675 |
+
z-index:10;
|
676 |
+
}
|
677 |
+
.yith-plugin-fw-panel-custom-tab-container {
|
678 |
+
margin-top: -2px;
|
679 |
+
}
|
680 |
+
|
681 |
+
li.yith-plugin-fw-tab-element:hover{
|
682 |
+
cursor:pointer;
|
683 |
+
}
|
684 |
+
li.nav-subtab-item{
|
685 |
+
padding: 3px 0 0;
|
686 |
+
}
|
687 |
+
li.nav-subtab-item a {
|
688 |
+
font-size: 12px;
|
689 |
+
text-decoration: none;
|
690 |
+
letter-spacing: 0.05em;
|
691 |
+
color: #336374;
|
692 |
+
}
|
693 |
+
li.nav-subtab-item a:hover{
|
694 |
+
color:#228fb6;
|
695 |
+
}
|
696 |
+
|
697 |
+
li.yith-plugin-fw-tab-element a:hover .nav-subtab-wrap,
|
698 |
+
li.yith-plugin-fw-tab-element:hover .nav-subtab-wrap {
|
699 |
+
visibility: visible; /* shows sub-menu */
|
700 |
+
}
|
701 |
+
|
702 |
+
li.yith-plugin-fw-tab-element a:hover ul.nav-subtab,
|
703 |
+
li.yith-plugin-fw-tab-element:hover ul.nav-subtab{
|
704 |
+
max-height: 200px;
|
705 |
+
-webkit-box-shadow: -2px 2px 10px rgba(0, 111, 101, 0.27);
|
706 |
+
-moz-box-shadow: -2px 2px 10px rgba(0, 111, 101, 0.27);
|
707 |
+
box-shadow: -2px 2px 10px rgba(0, 111, 101, 0.27);
|
708 |
+
opacity: 1;
|
709 |
+
transition-delay: 0s, 0s, 0.3s;
|
710 |
+
min-width: 180px;
|
711 |
+
}
|
712 |
+
|
713 |
+
li.yith-plugin-fw-tab-element a.nav-tab i {
|
714 |
+
margin-left: 10px;
|
715 |
+
font-size:12px;
|
716 |
+
}
|
717 |
+
|
718 |
+
li.yith-plugin-fw-tab-element a.nav-tab i:before {
|
719 |
+
color: #fff;
|
720 |
+
}
|
721 |
+
|
722 |
+
.yith-plugin-fw-panel .woocommerce-page{
|
723 |
+
margin-top:-2px;
|
724 |
+
}
|
725 |
+
|
726 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container {
|
727 |
+
margin-top: 0;
|
728 |
+
padding-top: 0;
|
729 |
+
}
|
730 |
+
|
731 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .yit-admin-panel-container,
|
732 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .wrap.subnav-wrap {
|
733 |
+
border: 1px solid #d8d8d8;
|
734 |
+
border-top: 0;
|
735 |
+
margin: -2px 15px 0 0;
|
736 |
+
background: #fff;
|
737 |
+
padding: 20px;
|
738 |
+
box-sizing: border-box;
|
739 |
+
}
|
740 |
+
|
741 |
+
.yith-plugin-ui .yith-plugin-fw-sub-tabs-nav ~ .wrap.subnav-wrap .wrap,
|
742 |
+
.yith-plugin-ui .yit-admin-panel-content-wrap.has-subnav {
|
743 |
+
margin: -20px 15px 0 0;
|
744 |
}
|
745 |
|
746 |
/* === Responsive === */
|
plugin-fw/assets/css/yith-fields.css
CHANGED
@@ -22,6 +22,12 @@
|
|
22 |
width : 100%;
|
23 |
}
|
24 |
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
.yith-plugin-fw-field-wrapper span.desc {
|
26 |
display : block;
|
27 |
width : 100%;
|
@@ -724,6 +730,7 @@ YITH UI
|
|
724 |
font-size : 15px;
|
725 |
padding : 7px 20px;
|
726 |
border : 0;
|
|
|
727 |
}
|
728 |
|
729 |
.yith-plugin-ui .nav-tab:first-child {
|
@@ -733,6 +740,10 @@ YITH UI
|
|
733 |
.yith-plugin-ui .nav-tab.yith-premium {
|
734 |
background-color : #be421c;
|
735 |
}
|
|
|
|
|
|
|
|
|
736 |
|
737 |
.yith-plugin-ui .nav-tab-active {
|
738 |
background-color : #fff;
|
@@ -771,7 +782,7 @@ YITH UI
|
|
771 |
|
772 |
.yith-plugin-ui span.description {
|
773 |
color : #716269;
|
774 |
-
font-size :
|
775 |
font-style : normal;
|
776 |
font-weight : 400;
|
777 |
margin-top : 15px;
|
@@ -780,7 +791,7 @@ YITH UI
|
|
780 |
|
781 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
782 |
border : 0;
|
783 |
-
border-bottom : 1px solid #ccc;
|
784 |
margin-right : 15px;
|
785 |
margin-bottom : 0;
|
786 |
background-color : transparent;
|
@@ -1209,6 +1220,10 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1209 |
font-size : 13px;
|
1210 |
}
|
1211 |
|
|
|
|
|
|
|
|
|
1212 |
.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before {
|
1213 |
content : "\e900";
|
1214 |
font-family : 'yith-icon' !important;
|
@@ -1427,8 +1442,9 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1427 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
1428 |
border : 1px solid #d8d8d8;
|
1429 |
background-color : #fff;
|
1430 |
-
width :
|
1431 |
height : 24px;
|
|
|
1432 |
}
|
1433 |
|
1434 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
@@ -1465,7 +1481,7 @@ span.select2.select2-container.select2-container--default.yith-plugin-fw-select2
|
|
1465 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
|
1466 |
.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
1467 |
background-color : #98aa36;
|
1468 |
-
left
|
1469 |
}
|
1470 |
|
1471 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
|
@@ -2307,4 +2323,80 @@ div#ui-datepicker-div.yith-plugin-fw-datepicker-div {
|
|
2307 |
padding : 0;
|
2308 |
}
|
2309 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2310 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
22 |
width : 100%;
|
23 |
}
|
24 |
|
25 |
+
.yith-plugin-fw-field-wrapper .yith-inline-fields > div {
|
26 |
+
display: inline-block;
|
27 |
+
vertical-align: middle;
|
28 |
+
margin-right: 5px;
|
29 |
+
}
|
30 |
+
|
31 |
.yith-plugin-fw-field-wrapper span.desc {
|
32 |
display : block;
|
33 |
width : 100%;
|
730 |
font-size : 15px;
|
731 |
padding : 7px 20px;
|
732 |
border : 0;
|
733 |
+
transition: background-color 0.3s linear;
|
734 |
}
|
735 |
|
736 |
.yith-plugin-ui .nav-tab:first-child {
|
740 |
.yith-plugin-ui .nav-tab.yith-premium {
|
741 |
background-color : #be421c;
|
742 |
}
|
743 |
+
.yith-plugin-ui .yith-nav-tab-wrapper .yith-plugin-fw-tab-element:hover > a.nav-tab:not(.nav-tab-active),
|
744 |
+
.yith-plugin-ui .yith-nav-tab-wrapper .nav-tab:not(.nav-tab-active):hover{
|
745 |
+
background-color:#207a92;
|
746 |
+
}
|
747 |
|
748 |
.yith-plugin-ui .nav-tab-active {
|
749 |
background-color : #fff;
|
782 |
|
783 |
.yith-plugin-ui span.description {
|
784 |
color : #716269;
|
785 |
+
font-size : 13px;
|
786 |
font-style : normal;
|
787 |
font-weight : 400;
|
788 |
margin-top : 15px;
|
791 |
|
792 |
#wpwrap .yith-plugin-ui h2.nav-tab-wrapper, #wpbody-content .yith-plugin-ui h2.nav-tab-wrapper {
|
793 |
border : 0;
|
794 |
+
/* border-bottom : 1px solid #ccc; */
|
795 |
margin-right : 15px;
|
796 |
margin-bottom : 0;
|
797 |
background-color : transparent;
|
1220 |
font-size : 13px;
|
1221 |
}
|
1222 |
|
1223 |
+
.wc-wp-version-gte-53 .yith-plugin-ui .select2-container .select2-selection--single .select2-selection__arrow{
|
1224 |
+
background-image: none;
|
1225 |
+
}
|
1226 |
+
|
1227 |
.yith-plugin-ui .select2-container--default .select2-selection--single .select2-selection__arrow:before {
|
1228 |
content : "\e900";
|
1229 |
font-family : 'yith-icon' !important;
|
1442 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
1443 |
border : 1px solid #d8d8d8;
|
1444 |
background-color : #fff;
|
1445 |
+
width : 58px;
|
1446 |
height : 24px;
|
1447 |
+
line-height :14px;
|
1448 |
}
|
1449 |
|
1450 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
1481 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before,
|
1482 |
.yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
1483 |
background-color : #98aa36;
|
1484 |
+
left: 38px;
|
1485 |
}
|
1486 |
|
1487 |
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after,
|
2323 |
padding : 0;
|
2324 |
}
|
2325 |
|
2326 |
+
.yith-plugin-ui #plugin-fw-wc table.form-table th,
|
2327 |
+
#yith-plugin-fw-panel table.form-table th.titledesc,
|
2328 |
+
.yith-plugin-ui #plugin-fw-wc table.form-table td,
|
2329 |
+
#yith-plugin-fw-panel table.form-table td.forminp {
|
2330 |
+
padding: 20px 20px;
|
2331 |
+
}
|
2332 |
+
|
2333 |
+
.yith-plugin-ui #plugin-fw-wc table.form-table th.titledesc,
|
2334 |
+
#yith-plugin-fw-panel table.form-table th.titledesc {
|
2335 |
+
padding-bottom: 0;
|
2336 |
+
}
|
2337 |
}
|
2338 |
+
|
2339 |
+
@media (max-width: 480px) {
|
2340 |
+
.yith-plugin-ui .nav-tab {
|
2341 |
+
font-size: 12px;
|
2342 |
+
}
|
2343 |
+
.yith-plugin-ui h2 {
|
2344 |
+
padding: 20px 20px;
|
2345 |
+
}
|
2346 |
+
.yith-plugin-ui [type="radio"]:checked + label:before, .yith-plugin-ui [type="radio"]:not(:checked) + label:before {
|
2347 |
+
width: 14px;
|
2348 |
+
height: 14px;
|
2349 |
+
}
|
2350 |
+
.yith-plugin-ui [type="radio"]:checked + label:after, .yith-plugin-ui [type="radio"]:not(:checked) + label:after {
|
2351 |
+
width: 10px;
|
2352 |
+
height: 10px;
|
2353 |
+
top: 3px;
|
2354 |
+
left: 3px;
|
2355 |
+
}
|
2356 |
+
.yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label {
|
2357 |
+
padding-left: 25px;
|
2358 |
+
}
|
2359 |
+
|
2360 |
+
.yith-plugin-ui [type="radio"]:checked + label, .yith-plugin-ui [type="radio"]:not(:checked) + label {
|
2361 |
+
font-size: 13px;
|
2362 |
+
}
|
2363 |
+
.yith-plugin-ui span.description {
|
2364 |
+
font-size: 12px;
|
2365 |
+
}
|
2366 |
+
.yith-plugin-ui #plugin-fw-wc table.form-table th,
|
2367 |
+
#yith-plugin-fw-panel table.form-table th.titledesc,
|
2368 |
+
.yith-plugin-ui #plugin-fw-wc table.form-table td,
|
2369 |
+
#yith-plugin-fw-panel table.form-table td.forminp {
|
2370 |
+
padding: 15px 20px;
|
2371 |
+
}
|
2372 |
+
|
2373 |
+
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span {
|
2374 |
+
width: 48px;
|
2375 |
+
height: 20px;
|
2376 |
+
}
|
2377 |
+
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:before {
|
2378 |
+
top: 3px;
|
2379 |
+
left: 3px;
|
2380 |
+
}
|
2381 |
+
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:before, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:before {
|
2382 |
+
left: 30px;
|
2383 |
+
}
|
2384 |
+
.yith-plugin-ui .yith-plugin-fw-onoff-container input:checked + span:after, .yith-plugin-ui.yith-plugin-fw-onoff-container input.onoffchecked + span:after {
|
2385 |
+
font-size: 11px;
|
2386 |
+
padding: 0px 6px;
|
2387 |
+
margin-top: 3px;
|
2388 |
+
}
|
2389 |
+
.yith-plugin-ui .yith-plugin-fw-onoff-container input + span:after {
|
2390 |
+
font-size: 11px;
|
2391 |
+
padding-left: 24px;
|
2392 |
+
margin-top: 3px;
|
2393 |
+
}
|
2394 |
+
|
2395 |
+
.yith-plugin-fw .select2-container .select2-selection--single .select2-selection__rendered {
|
2396 |
+
font-size: 14px;
|
2397 |
+
}
|
2398 |
+
|
2399 |
+
.yith-plugin-ui input {
|
2400 |
+
font-size: 14px;
|
2401 |
+
}
|
2402 |
+
}
|
plugin-fw/assets/images/banner-free.png
DELETED
Binary file
|
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/rate_banner.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/upgrade-page/01.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/02.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/03.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/04.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/05.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/06.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/07.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/08.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade-page/09.jpg
DELETED
Binary file
|
plugin-fw/assets/images/upgrade_banner.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/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-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
@@ -190,4 +190,27 @@ jQuery( function ( $ ) {
|
|
190 |
wrap.prepend( notices );
|
191 |
}
|
192 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
193 |
} );
|
190 |
wrap.prepend( notices );
|
191 |
}
|
192 |
|
193 |
+
|
194 |
+
// TAB MENU AND SUB TABS
|
195 |
+
var active_subnav = $(document).find( '.yith-nav-sub-tab.nav-tab-active' );
|
196 |
+
|
197 |
+
if( active_subnav.length ){
|
198 |
+
// WP page
|
199 |
+
var mainWrapper = $(document).find( '.yith-plugin-fw-wp-page-wrapper' );
|
200 |
+
if( ! mainWrapper.length ){
|
201 |
+
mainWrapper = $(document).find( '#wpbody-content > .yith-plugin-ui' );
|
202 |
+
}
|
203 |
+
|
204 |
+
if( mainWrapper ){
|
205 |
+
// serach first for deafult wrap
|
206 |
+
var wrap = mainWrapper.find( '.yit-admin-panel-content-wrap' );
|
207 |
+
if( wrap.length ) {
|
208 |
+
wrap.addClass( 'has-subnav' );
|
209 |
+
}
|
210 |
+
else {
|
211 |
+
// try to wrap a generic wrap div in main wrapper
|
212 |
+
mainWrapper.find('.wrap').wrap('<div class="wrap subnav-wrap"></div>');
|
213 |
+
}
|
214 |
+
}
|
215 |
+
}
|
216 |
} );
|
plugin-fw/assets/js/yit-plugin-panel.min.js
CHANGED
@@ -1,5 +1 @@
|
|
1 |
-
jQuery(function(
|
2 |
-
e)switch(g){case "disable":a.removeClass("yith-disabled");d.attr("disabled",!1);break;case "hideme":d.show();break;case "fadeInOut":case "fadeIn":a.show(500);break;case "fadeOut":a.show();break;default:a.show(),a.fadeTo("slow",1).addClass("fade-in")}else switch(g){case "disable":a.addClass("yith-disabled");d.attr("disabled",!0);break;case "hideme":d.hide();break;case "fadeInOut":case "fadeOut":a.hide(500);break;case "fadeIn":a.hide();break;default:a.hasClass("fade-in")?a.fadeTo("slow",0,function(){b(this).hide().removeClass("fade-in")}):
|
3 |
-
(a.hide(),a.css({opacity:"0"}))}}b("[data-dep-target]").each(function(){var a=b(this),c="#"+a.data("dep-target"),d="#"+a.data("dep-id"),f=a.data("dep-value"),e=a.data("dep-type");a="change";"select-images"===b(d+"-wrapper").data("type")&&(a="yith_select_images_value_changed");h(c,d,f.toString(),e);b(d).on(a,function(){h(c,d,f.toString(),e)}).trigger(a)});b(".rm_connectedlist").each(function(){var a=b(this).find("ul"),c=b(this).find(":hidden");a.sortable({connectWith:a,update:function(d,f){var e={};
|
4 |
-
a.each(function(){var a={};b(this).children().each(function(){a[b(this).data("option")]=b(this).text()});e[b(this).data("list")]=a});c.val(JSON.stringify(e).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()});b(document).ready(function(){b(".google-analytic-generate").click(function(){var a=b("#"+b(this).data("textarea")).data("codemirrorInstance"),c=b("#"+b(this).data("input")).val(),d=b(this).data("basename");a.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\nga('create', '"+
|
5 |
-
(c+"', '"+d+"');\nga('send', 'pageview');\n"),a.getCursor("start"),a.getCursor("end"))})});b(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var k=b(".wrap.yith-plugin-ui").first(),l=b("div.updated, div.error, div.notice");l.addClass("inline");k.length&&k.prepend(l)});
|
1 |
+
jQuery(function(a){function e(e,t,i,n){var s=!0;if("string"==typeof t){":radio"==t.substr(0,6)&&(t+=":checked");var r=a(t).val();if("checkbox"==a(t).attr("type"))r=a(t).is(":checked")?"yes":"no";"select-images"===a(t+"-wrapper").data("type")&&(r=a(t+"-wrapper").find("select").first().val()),i=i.split(",");for(var d=0;d<i.length;d++){if(r==i[d]){s=!0;break}s=!1}}var c=a(e),o=a(e+"-container").closest("tr");o.length<1&&(o=c.closest(".yith-plugin-fw-panel-wc-row"));var l,p=n.split("-");for(l in p){var h=p[l];if(s)switch(h){case"disable":o.removeClass("yith-disabled"),c.attr("disabled",!1);break;case"hideme":c.show();break;case"fadeInOut":case"fadeIn":o.show(500);break;case"fadeOut":o.show();break;default:o.show(),o.fadeTo("slow",1).addClass("fade-in")}else switch(h){case"disable":o.addClass("yith-disabled"),c.attr("disabled",!0);break;case"hideme":c.hide();break;case"fadeInOut":case"fadeOut":o.hide(500);break;case"fadeIn":o.hide();break;default:o.hasClass("fade-in")?o.fadeTo("slow",0,function(){a(this).hide().removeClass("fade-in")}):(o.hide(),o.css({opacity:"0"}))}}}a("[data-dep-target]").each(function(){var t=a(this),i="#"+t.data("dep-target"),n="#"+t.data("dep-id"),s=t.data("dep-value"),r=t.data("dep-type"),d="change";"select-images"===a(n+"-wrapper").data("type")&&(d="yith_select_images_value_changed"),e(i,n,s.toString(),r),a(n).on(d,function(){e(i,n,s.toString(),r)}).trigger(d)}),a(".rm_connectedlist").each(function(){var e=a(this).find("ul"),t=a(this).find(":hidden");e.sortable({connectWith:e,update:function(i,n){var s={};e.each(function(){var e={};a(this).children().each(function(){e[a(this).data("option")]=a(this).text()}),s[a(this).data("list")]=e}),t.val(JSON.stringify(s).replace(/[\\"']/g,"\\$&").replace(/\u0000/g,"\\0"))}}).disableSelection()}),a(document).ready(function(){a(".google-analytic-generate").click(function(){var e=a("#"+a(this).data("textarea")).data("codemirrorInstance"),t="(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){\n";t+="(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement( o ),\n",t+="m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)\n",t+="})(window,document,'script','//www.google-analytics.com/analytics.js','ga');\n\n",t+="ga('create', '"+a("#"+a(this).data("input")).val()+"', '"+a(this).data("basename")+"');\n",t+="ga('send', 'pageview');\n",e.replaceRange(t,e.getCursor("start"),e.getCursor("end"))})}),a(".yith-plugin-fw-panel .woo-nav-tab-wrapper").removeClass("woo-nav-tab-wrapper").addClass("yith-nav-tab-wrapper");var t=a(".wrap.yith-plugin-ui").first(),i=a("div.updated, div.error, div.notice");if(i.addClass("inline"),t.length&&t.prepend(i),a(document).find(".yith-nav-sub-tab.nav-tab-active").length){var n=a(document).find(".yith-plugin-fw-wp-page-wrapper");if(n.length||(n=a(document).find("#wpbody-content > .yith-plugin-ui")),n)(t=n.find(".yit-admin-panel-content-wrap")).length?t.addClass("has-subnav"):n.find(".wrap").wrap('<div class="wrap subnav-wrap"></div>')}});
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yith-fields.min.js
CHANGED
@@ -1,30 +1 @@
|
|
1 |
-
(function(a){a(document).on("yith_fields_init",function(){var b=a(".yith-plugin-fw-datepicker"),c=a(".yith-plugin-fw-colorpicker"),d=a(".yith-plugin-fw-upload-img-url"),e=a(".add_media"),f=a(".yith-plugin-fw .image-gallery ul.slides-wrapper"),h=a(".yith-plugin-fw-sidebar-layout"),k=a(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),l=a(".codemirror"),n=a(".yit-icons-manager-wrapper");a(".yith-plugin-ui td.forminp-checkbox");b.each(function(){var b=a(this).data();b.showAnim=
|
2 |
-
!1;b.beforeShow=function(a,b){b.dpDiv.addClass("yith-plugin-fw-datepicker-div")};b.onClose=function(a,b){b.dpDiv.removeClass("yith-plugin-fw-datepicker-div")};a(this).datepicker(b)});c.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var b=a(this);b.val(b.data("default-color"));b.change()}});c.each(function(){var b=a(this).data("variations-label"),g=a(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),c=a(this).closest(".yith-single-colorpicker"),m=g.find(".wp-picker-input-wrap"),
|
3 |
-
d=c.find(".wp-picker-input-wrap");m.length&&g.find("a.wp-color-result").attr("title",b);c.length&&c.find("a.wp-color-result").attr("title",b);m.find(".wp-picker-clear-custom").length||(b=a("<span/>").attr({"class":"wp-picker-default-custom"}),m.find(".wp-picker-default").wrap(b));d.find(".wp-picker-clear-custom").length||(b=a("<span/>").attr({"class":"wp-picker-default-custom"}),d.find(".wp-picker-default").wrap(b))});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(d.change(function(){var b=
|
4 |
-
a(this).val(),g=a(this).parent().find(".yith-plugin-fw-upload-img-preview").first();1>g.length&&(g=a(this).parent().parent().find(".yith-plugin-fw-upload-img-preview").first());/(http|ftp|https):\/\/[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)/.test(b)?g.html('<img src="'+b+'" style="max-width:100px; max-height:100px;" />'):g.html("")}).trigger("change"),a(document).on("click",".yith-plugin-fw-upload-button",function(b){b.preventDefault();var g=a(this).attr("id").replace(/-button$/,"");
|
5 |
-
if(!c){b=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];var c=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:b});c.on("select",function(){var b=c.state().get("selection").first().toJSON();a("#"+g).val(b.url);a("#"+g+"-yith-attachment-id")&&a("#"+g+"-yith-attachment-id").val(b.id);d.trigger("change")})}c.open()}),a(document).on("click",
|
6 |
-
".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")}));e.on("click",function(){});"undefined"!==typeof wp&&"undefined"!==typeof wp.media&&(a(document).on("click",".yith-plugin-fw .image-gallery-button",function(b){var c=a(this);b=c.closest(".image-gallery");var d=b.find(".image_gallery_ids"),m=d.val(),p=b.find("ul.slides-wrapper"),e=wp.media.frames.image_gallery=wp.media({title:c.data("choose"),
|
7 |
-
button:{text:c.data("update")},states:[new wp.media.controller.Library({title:c.data("choose"),filterable:"all",multiple:!0})]});e.on("select",function(){e.state().get("selection").map(function(a){a=a.toJSON();a.id&&(m=m?m+","+a.id:a.id,p.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(m)});e.open()}),f.each(function(){var b=a(this);b.sortable({items:"li.image",
|
8 |
-
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,d){var g="";b.find("li.image").css("cursor","default").each(function(){var b=a(this).attr("data-attachment_id");g=g+b+","});b.closest(".image-gallery").find(".image_gallery_ids").val(g)}})}),f.on("click","a.delete",function(){var b=a(this).closest(".image-gallery"),c=a(this).closest(".image-gallery ul.slides-wrapper");
|
9 |
-
b=b.find(".image_gallery_ids");var 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)}));h.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 d=a(this).data("type");a(this).parent().children(":radio").attr("checked",
|
10 |
-
!1);a(this).prev(":radio").attr("checked",!0);if("undefined"!=typeof d)switch(d){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()}})});k.each(function(){var b=a(this).data("val"),c=a(this).data("min"),d=a(this).data("max"),e=a(this).data("step"),f=a(this).data("labels");a(this).slider({value:b,min:c,max:d,range:"min",step:e,create:function(){a(this).find(".ui-slider-handle").text(a(this).slider("value"))},slide:function(b,
|
11 |
-
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+f)}})});l.each(function(b,c){var d=CodeMirror.fromTextArea(c,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});a(c).data("codemirrorInstance",d)});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",
|
12 |
-
function(){a("#"+a(this).data("select-id")).find("option").prop("selected",!1).trigger("change")});n.each(function(){var b=a(this),c=b.find(".yit-icons-manager-icon-preview").first(),d=b.find(".yit-icons-manager-icon-text");b.on("click",".yit-icons-manager-list li",function(e){e=a(e.target).closest("li");var g=e.data("font"),f=e.data("icon"),m=e.data("key"),h=e.data("name");c.attr("data-font",g);c.attr("data-icon",f);c.attr("data-key",m);c.attr("data-name",h);d.val(g+":"+h);b.find(".yit-icons-manager-list li").removeClass("active");
|
13 |
-
e.addClass("active")});b.on("click",".yit-icons-manager-action-set-default",function(){b.find(".yit-icons-manager-list li.default").trigger("click")})});a(document).on("click",".yith-plugin-fw-select-images__item",function(){var b=a(this),c=b.data("key"),d=b.closest(".yith-plugin-fw-select-images__wrapper"),e=d.find(".yith-plugin-fw-select-images__item");d=d.find("select").first();d.length&&(d.val(c).trigger("yith_select_images_value_changed"),e.removeClass("yith-plugin-fw-select-images__item--selected"),
|
14 |
-
b.addClass("yith-plugin-fw-select-images__item--selected"))});a(document.body).trigger("wc-enhanced-select-init");a(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(b,c){var d=jQuery(".ui-sortable-handle"),e,g=[];for(e=0;e<d.length;e++)g[e]=a(d[e]).data("item_key");0<g.length&&a(this).closest(".toggle-element").saveToggleElement(null,g)}});a(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init");
|
15 |
-
a(document).on("click",".yith-plugin-fw-onoff-container span",function(){var 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()});a.fn.saveToggleElement=function(b,c){var d=a(this),e="yith_plugin_fw_save_toggle_element",f=d.serializeToggleElement(),h=d.find(".yith-toggle_wrapper"),k=h.attr("id"),l=a.urlParam("tab");f.append("security",h.data("nonce"));"undefined"!=
|
16 |
-
typeof c&&0<c.length&&f.append("yith_toggle_elements_order_keys",c);d.closest(".metaboxes-tab.yith-plugin-ui").length?(e="yith_plugin_fw_save_toggle_element_metabox",post_id=a(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=a(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=a(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+e+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+k+"&metabox_tab="+
|
17 |
-
metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+e+"&tab="+l+"&toggle_id="+k;a.ajax({type:"POST",url:url,data:f,contentType:!1,processData:!1,success:function(c){b&&b.removeClass("show");a(document).trigger("yith_save_toggle_element_done",[c,d])}})};a.fn.serializeToggleElement=function(){var b=a(this),c=new FormData;b=a(b).find(":input").serializeArray();a.each(b,function(a,b){el_name=b.name;c.append(b.name,b.value)});return c};a.fn.formatToggleTitle=function(){var b=a(this),c=b.find(":input"),
|
18 |
-
d=b.find("span.title").data("title_format"),e=b.find(".subtitle").data("subtitle_format"),f=RegExp("[^%%]+(?=[%%])","g");if("undefined"!=typeof d)var h=d.match(f);if("undefined"!=typeof e)var k=e.match(f);a.each(c,function(b,c){"undefined"!=typeof a(c).attr("id")&&($field_id=a(c).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=a(c).val(),null!=h&&"undefined"!=typeof h&&-1!==h.indexOf($field_id)&&(d=d.replace("%%"+$field_id+"%%",$field_val)),
|
19 |
-
null!=k&&"undefined"!=typeof k&&-1!==k.indexOf($field_id)&&(e=e.replace("%%"+$field_id+"%%",$field_val)))});""!==d&&b.find("span.title").html(d);""!==e&&b.find(".subtitle").html(e);a(document).trigger("yith-toggle-element-item-title",[b])};a.urlParam=function(a){a=(new RegExp("[?&]"+a+"=([^&#]*)")).exec(window.location.search);return null!==a?a[1]||0:!1};a(document).on("click",".yith-toggle-title",function(b){b=a(b.target);var c=b.closest(".yith-toggle-row"),d=c.find(".yith-toggle-content");if(b.hasClass("yith-plugin-fw-onoff")||
|
20 |
-
b.hasClass("yith-icon-drag"))return!1;c.is(".yith-toggle-row-opened")?d.slideUp(400):d.slideDown(400);c.toggleClass("yith-toggle-row-opened")});a(document).on("click",".yith-add-box-button",function(b){b.preventDefault();b=a(this);var c=b.data("box_id"),d=b.data("closed_label"),e=b.data("opened_label"),f=b.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+f);""!==c&&(a("#"+c).html(template({index:"box_id"})).slideToggle(),""!==d&&(b.html()===d?
|
21 |
-
b.html(e).removeClass("closed"):b.html(d).addClass("closed")),a(document).trigger("yith_fields_init"),a(document).trigger("yith-add-box-button-toggle",[b]))});a(document).on("click",".yith-add-box-buttons .yith-save-button",function(b){b.preventDefault();var c=a(this).parents(".yith-add-box"),d=a(this).closest(".yith-toggle_wrapper").attr("id");b=c.find(".spinner");var e=a(this).parents(".toggle-element"),f=c.find(":input"),h=e.find(".yith-toggle-row").length,k=a('<input type="hidden">');k.val(h);
|
22 |
-
a(document).trigger("yith-toggle-change-counter",[k,c]);h=k.val();d=wp.template("yith-toggle-element-item-"+d);var l=a(d({index:h}));b.addClass("show");a.each(f,function(b,c){"undefined"!=typeof a(c).attr("id")&&($field_id=a(c).attr("id"),$field_val=a(c).val(),"radio"==a(c).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+h,a(c).is(":checked")&&a(l).find("#"+
|
23 |
-
$field_id).prop("checked",!0),(a(c).hasClass("yith-post-search")||a(c).hasClass("yith-term-search"))&&a(l).find("#"+$field_id).html(a("#"+a(c).attr("id")).html()),a(l).find("#"+$field_id).val($field_val))});a(l).formatToggleTitle();var n=a('<input type="hidden">').val("yes");a(document).trigger("yith-toggle-element-item-before-add",[c,l,n]);setTimeout(function(){"yes"===n.val()&&(a(e).find(".yith-toggle-elements").append(l),a(c).find(".yith-plugin-fw-datepicker").datepicker("destroy"),a(c).html(""),
|
24 |
-
a(c).prev(".yith-add-box-button").trigger("click"),e.saveToggleElement(),setTimeout(function(){a(e).find(".highlight").removeClass("highlight")},2E3),a(document).trigger("yith_fields_init"))},1E3)});a(document).on("click",".yith-toggle-row .yith-save-button",function(b){b.preventDefault();b=a(this).closest(".toggle-element");var c=a(this).closest(".yith-toggle-row"),d=c.find(".spinner");c.formatToggleTitle();var e=a('<input type="hidden">').val("yes");a(document).trigger("yith-toggle-element-item-before-update",
|
25 |
-
[b,c,e]);"yes"===e.val()&&(d.addClass("show"),b.saveToggleElement(d))});a(document).on("click",".yith-toggle-row .yith-delete-button",function(b){b.preventDefault();b=a(this).closest(".toggle-element");a(this).closest(".yith-toggle-row").remove();b.saveToggleElement()});a(document).on("click",".yith-toggle-onoff",function(b){b.preventDefault();a(this).closest(".toggle-element").saveToggleElement()});a(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){a(this).closest(".yith-plugin-fw-radio").val(a(this).val()).trigger("change")});
|
26 |
-
a(document).on("click",".yith-password-eye",function(){var b=a(this),c=a(this).closest(".yith-password-wrapper").find("input");"password"===c.attr("type")?(c.attr("type","text"),b.addClass("yith-password-eye-closed")):(c.attr("type","password"),b.removeClass("yith-password-eye-closed"))});a(document.body).on("yith-plugin-fw-init-radio",function(){a(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){a(this).val(a(this).attr("value"));a(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio");
|
27 |
-
a(document).on("select2:open",function(b){a(b.target).closest(".yith-plugin-ui").length&&a(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var f={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",
|
28 |
-
wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var b=f;a(document).on("click",b.selectors.units.single,b.unitChange);a(document).on("click",b.selectors.linked.button,b.linkedChange);a(document).on("change keyup",b.selectors.dimensions.number,b.numberChange)},unitChange:function(b){b=a(this).closest(f.selectors.units.single);var c=b.closest(f.selectors.units.wrapper),d=c.find(f.selectors.units.single);
|
29 |
-
c=c.find(f.selectors.units.value).first();var e=b.data("value");d.removeClass(f.selectors.units.selectedClass);b.addClass(f.selectors.units.selectedClass);c.val(e)},linkedChange:function(){var b=a(this).closest(f.selectors.linked.button),c=b.closest(f.selectors.wrapper);b=b.find(f.selectors.linked.value);"yes"===b.val()?(c.removeClass(f.selectors.linked.wrapperActiveClass),b.val("no")):(c.addClass(f.selectors.linked.wrapperActiveClass),b.val("yes"),c.find(f.selectors.dimensions.number).first().trigger("change"))},
|
30 |
-
numberChange:function(b){b=a(this).closest(f.selectors.dimensions.number);var c=b.closest(f.selectors.wrapper);c.hasClass(f.selectors.linked.wrapperActiveClass)&&c.find(f.selectors.dimensions.number).val(b.val())}};f.init()})(jQuery);
|
1 |
+
!function(e){e(document).on("yith_fields_init",function(){var t=e(".yith-plugin-fw-datepicker"),i=e(".yith-plugin-fw-colorpicker"),a={imgPreviewHandler:".yith-plugin-fw-upload-img-preview",uploadButtonHandler:".yith-plugin-fw-upload-button",imgUrlHandler:".yith-plugin-fw-upload-img-url",resetButtonHandler:".yith-plugin-fw-upload-button-reset",imgUrl:e(".yith-plugin-fw-upload-img-url")},n=e(".add_media"),l={sliderWrapper:e(".yith-plugin-fw .image-gallery ul.slides-wrapper"),buttonHandler:".yith-plugin-fw .image-gallery-button"},s=e(".yith-plugin-fw-sidebar-layout"),o=e(".yith-plugin-fw .yith-plugin-fw-slider-container .ui-slider-horizontal"),r=e(".codemirror"),d=e(".yit-icons-manager-wrapper");e(".yith-plugin-ui td.forminp-checkbox");t.each(function(){var t=e(this).data();t.showAnim=!1,t.beforeShow=function(e,t){t.dpDiv.addClass("yith-plugin-fw-datepicker-div")},t.onClose=function(e,t){t.dpDiv.removeClass("yith-plugin-fw-datepicker-div")},e(this).datepicker(t)}),i.wpColorPicker({palettes:!1,width:200,mode:"hsl",clear:function(){var t=e(this);t.val(t.data("default-color")),t.change()}}),i.each(function(){var t=e(this).data("variations-label"),i=e(this).closest(".yith-plugin-fw-colorpicker-field-wrapper"),a=e(this).closest(".yith-single-colorpicker"),n=i.find(".wp-picker-input-wrap"),l=a.find(".wp-picker-input-wrap");if(n.length&&i.find("a.wp-color-result").attr("title",t),a.length&&a.find("a.wp-color-result").attr("title",t),!n.find(".wp-picker-clear-custom").length){var s=e("<span/>").attr({"class":"wp-picker-default-custom"});n.find(".wp-picker-default").wrap(s)}l.find(".wp-picker-clear-custom").length||(s=e("<span/>").attr({"class":"wp-picker-default-custom"}),l.find(".wp-picker-default").wrap(s))}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(a.imgUrl.change(function(){var t=e(this).val(),i=new RegExp("(http|ftp|https)://[a-zA-Z0-9@?^=%&:/~+#-_.]*.(gif|jpg|jpeg|png|ico|svg)"),n=e(this).parent().find(a.imgPreviewHandler).first();n.length<1&&(n=e(this).parent().parent().find(a.imgPreviewHandler).first()),i.test(t)?n.html('<img src="'+t+'" style="max-width:100px; max-height:100px;" />'):n.html("")}).trigger("change"),e(document).on("click",a.uploadButtonHandler,function(t){t.preventDefault();var i,n=e(this).attr("id").replace(/-button$/,"");if(i)i.open();else{var l=[new wp.media.controller.Library({library:wp.media.query(),multiple:!1,title:"Choose Image",priority:20,filterable:"uploaded"})];(i=wp.media.frames.downloadable_file=wp.media({title:"Choose Image",library:{type:""},button:{text:"Choose Image"},multiple:!1,states:l})).on("select",function(){var t=i.state().get("selection").first().toJSON();e("#"+n).val(t.url),e("#"+n+"-yith-attachment-id")&&e("#"+n+"-yith-attachment-id").val(t.id),a.imgUrl.trigger("change")}),i.open()}}),e(document).on("click",a.resetButtonHandler,function(t){var i=e(this),n=i.attr("id"),l=i.attr("id").replace(/-button-reset$/,""),s=e("#"+n).data("default");e("#"+l).val(s),a.imgUrl.trigger("change")}));n.on("click",function(){}),"undefined"!=typeof wp&&"undefined"!=typeof wp.media&&(e(document).on("click",l.buttonHandler,function(t){var i=e(this),a=i.closest(".image-gallery"),n=a.find(".image_gallery_ids"),l=n.val(),s=a.find("ul.slides-wrapper"),o=wp.media.frames.image_gallery=wp.media({title:i.data("choose"),button:{text:i.data("update")},states:[new wp.media.controller.Library({title:i.data("choose"),filterable:"all",multiple:!0})]});o.on("select",function(){o.state().get("selection").map(function(e){(e=e.toJSON()).id&&(l=l?l+","+e.id:e.id,s.append('<li class="image" data-attachment_id="'+e.id+'"><img src="'+e.sizes.thumbnail.url+'"/><ul class="actions"><li><a href="#" class="delete" title="'+i.data("delete")+'">x</a></li></ul></li>'))}),n.val(l)}),o.open()}),l.sliderWrapper.each(function(){var t=e(this);t.sortable({items:"li.image",cursor:"move",scrollSensitivity:40,forcePlaceholderSize:!0,forceHelperSize:!1,helper:"clone",opacity:.65,start:function(e,t){t.item.css("background-color","#f6f6f6")},stop:function(e,t){t.item.removeAttr("style")},update:function(i,a){var n="";t.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");n=n+t+","}),t.closest(".image-gallery").find(".image_gallery_ids").val(n)}})}),l.sliderWrapper.on("click","a.delete",function(){var t=e(this).closest(".image-gallery"),i=e(this).closest(".image-gallery ul.slides-wrapper"),a=t.find(".image_gallery_ids"),n="";e(this).closest("li.image").remove(),i.find("li.image").css("cursor","default").each(function(){var t=e(this).attr("data-attachment_id");n=n+t+","}),a.val(n)})),s.each(function(){e(this).find("img").on("click",function(){var t=e(this).closest(".yith-plugin-fw-sidebar-layout"),i=t.find(".yith-plugin-fw-sidebar-layout-sidebar-left-container"),a=t.find(".yith-plugin-fw-sidebar-layout-sidebar-right-container"),n=e(this).data("type");if(e(this).parent().children(":radio").attr("checked",!1),e(this).prev(":radio").attr("checked",!0),void 0!==n)switch(n){case"left":i.show(),a.hide();break;case"right":a.show(),i.hide();break;case"double":i.show(),a.show();break;default:i.hide(),a.hide()}})}),o.each(function(){var t=e(this).data("val"),i=e(this).data("min"),a=e(this).data("max"),n=e(this).data("step"),l=e(this).data("labels");e(this).slider({value:t,min:i,max:a,range:"min",step:n,create:function(){e(this).find(".ui-slider-handle").text(e(this).slider("value"))},slide:function(t,i){e(this).find("input").val(i.value),e(this).find(".ui-slider-handle").text(i.value),e(this).siblings(".feedback").find("strong").text(i.value+l)}})}),r.each(function(t,i){var a=CodeMirror.fromTextArea(i,{lineNumbers:1,mode:"javascript",showCursorWhenSelecting:!0});e(i).data("codemirrorInstance",a)}),e(document).on("click",".yith-plugin-fw-select-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!0).trigger("change")}),e(document).on("click",".yith-plugin-fw-deselect-all",function(){e("#"+e(this).data("select-id")).find("option").prop("selected",!1).trigger("change")}),d.each(function(){var t=e(this),i=t.find(".yit-icons-manager-icon-preview").first(),a=t.find(".yit-icons-manager-icon-text");t.on("click",".yit-icons-manager-list li",function(n){var l=e(n.target).closest("li"),s=l.data("font"),o=l.data("icon"),r=l.data("key"),d=l.data("name");i.attr("data-font",s),i.attr("data-icon",o),i.attr("data-key",r),i.attr("data-name",d),a.val(s+":"+d),t.find(".yit-icons-manager-list li").removeClass("active"),l.addClass("active")}),t.on("click",".yit-icons-manager-action-set-default",function(){t.find(".yit-icons-manager-list li.default").trigger("click")})}),e(document).on("click",".yith-plugin-fw-select-images__item",function(){var t=e(this),i=t.data("key"),a=t.closest(".yith-plugin-fw-select-images__wrapper"),n=a.find(".yith-plugin-fw-select-images__item"),l=a.find("select").first();l.length&&(l.val(i).trigger("yith_select_images_value_changed"),n.removeClass("yith-plugin-fw-select-images__item--selected"),t.addClass("yith-plugin-fw-select-images__item--selected"))}),e(document.body).trigger("wc-enhanced-select-init"),e(document).find(".ui-sortable .yith-toggle-elements").sortable({cursor:"move",axis:"y",scrollSensitivity:40,forcePlaceholderSize:!0,helper:"clone",stop:function(t,i){var a=jQuery(".ui-sortable-handle"),n=0,l=new Array;for(n=0;n<a.length;n++)l[n]=e(a[n]).data("item_key");l.length>0&&e(this).closest(".toggle-element").saveToggleElement(null,l)}}),e(document.body).trigger("yith-framework-enhanced-select-init")}).trigger("yith_fields_init"),e(document).on("click",".yith-plugin-fw-onoff-container span",function(){var t=e(this).prev("input");t.prop("checked")?t.prop("checked",!1).attr("value","no").removeClass("onoffchecked"):t.prop("checked",!0).attr("value","yes").addClass("onoffchecked"),t.change()}),e.fn.saveToggleElement=function(t,i){var a=e(this),n="yith_plugin_fw_save_toggle_element",l=a.serializeToggleElement(),s=a.find(".yith-toggle_wrapper"),o=s.attr("id"),r=e.urlParam("tab");l.append("security",s.data("nonce")),void 0!==i&&i.length>0&&l.append("yith_toggle_elements_order_keys",i),a.closest(".metaboxes-tab.yith-plugin-ui").length?(n="yith_plugin_fw_save_toggle_element_metabox",post_id=e(this).closest("form#post").find("#post_ID").val(),yit_metaboxes_nonce=e(this).closest("form#post").find("#yit_metaboxes_nonce").val(),metabox_tab=e(this).closest(".tabs-panel").attr("id"),url=yith_framework_fw_fields.ajax_url+"?action="+n+"&post_ID="+post_id+"&yit_metaboxes_nonce="+yit_metaboxes_nonce+"&toggle_id="+o+"&metabox_tab="+metabox_tab):url=yith_framework_fw_fields.admin_url+"?action="+n+"&tab="+r+"&toggle_id="+o,e.ajax({type:"POST",url:url,data:l,contentType:!1,processData:!1,success:function(i){t&&t.removeClass("show"),e(document).trigger("yith_save_toggle_element_done",[i,a])}})},e.fn.serializeToggleElement=function(){var t=e(this),i=new FormData,a=e(t).find(":input").serializeArray();return e.each(a,function(e,t){el_name=t.name,i.append(t.name,t.value)}),i},e.fn.formatToggleTitle=function(){var t=e(this),i=t.find(":input"),a=t.find("span.title").data("title_format"),n=t.find(".subtitle").data("subtitle_format"),l=new RegExp("[^%%]+(?=[%%])","g");if(void 0!==a)var s=a.match(l);if(void 0!==n)var o=n.match(l);e.each(i,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_array=$field_id.split("_"),$field_array.pop(),$field_id=$field_array.join("_"),$field_val=e(i).val(),null!=s&&void 0!==s&&-1!==s.indexOf($field_id)&&(a=a.replace("%%"+$field_id+"%%",$field_val)),null!=o&&void 0!==o&&-1!==o.indexOf($field_id)&&(n=n.replace("%%"+$field_id+"%%",$field_val)))}),""!==a&&t.find("span.title").html(a),""!==n&&t.find(".subtitle").html(n),e(document).trigger("yith-toggle-element-item-title",[t])},e.urlParam=function(e){var t=new RegExp("[?&]"+e+"=([^&#]*)").exec(window.location.search);return null!==t&&(t[1]||0)},e(document).on("click",".yith-toggle-title",function(t){var i=e(t.target),a=i.closest(".yith-toggle-row"),n=a.find(".yith-toggle-content");if(i.hasClass("yith-plugin-fw-onoff")||i.hasClass("yith-icon-drag"))return!1;a.is(".yith-toggle-row-opened")?n.slideUp(400):n.slideDown(400),a.toggleClass("yith-toggle-row-opened")}),e(document).on("click",".yith-add-box-button",function(t){t.preventDefault();var i=e(this),a=i.data("box_id"),n=i.data("closed_label"),l=i.data("opened_label"),s=i.closest(".yith-toggle_wrapper").attr("id");template=wp.template("yith-toggle-element-add-box-content-"+s),""!==a&&(e("#"+a).html(template({index:"box_id"})).slideToggle(),""!==n&&(i.html()===n?i.html(l).removeClass("closed"):i.html(n).addClass("closed")),e(document).trigger("yith_fields_init"),e(document).trigger("yith-add-box-button-toggle",[i]))}),e(document).on("click",".yith-add-box-buttons .yith-save-button",function(t){t.preventDefault();var i=e(this).parents(".yith-add-box"),a=e(this).closest(".yith-toggle_wrapper").attr("id"),n=i.find(".spinner"),l=e(this).parents(".toggle-element"),s=i.find(":input"),o=l.find(".yith-toggle-row").length,r=e('<input type="hidden">');r.val(o),e(document).trigger("yith-toggle-change-counter",[r,i]),o=r.val();var d=wp.template("yith-toggle-element-item-"+a),c=e(d({index:o}));n.addClass("show"),e.each(s,function(t,i){void 0!==e(i).attr("id")&&($field_id=e(i).attr("id"),$field_val=e(i).val(),"radio"==e(i).attr("type")?($field_id=$field_id.replace("new_",""),$field_id=$field_id.replace("-"+$field_val,""),$field_id=$field_id+"_dataindex-"+$field_val):$field_id=$field_id.replace("new_","")+"_"+o,e(i).is(":checked")&&e(c).find("#"+$field_id).prop("checked",!0),(e(i).hasClass("yith-post-search")||e(i).hasClass("yith-term-search"))&&e(c).find("#"+$field_id).html(e("#"+e(i).attr("id")).html()),e(c).find("#"+$field_id).val($field_val))}),e(c).formatToggleTitle();var u=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-add",[i,c,u]);setTimeout(function(){if("yes"===u.val()){e(l).find(".yith-toggle-elements").append(c),e(i).find(".yith-plugin-fw-datepicker").datepicker("destroy"),e(i).html(""),e(i).prev(".yith-add-box-button").trigger("click"),l.saveToggleElement();setTimeout(function(){e(l).find(".highlight").removeClass("highlight")},2e3),e(document).trigger("yith_fields_init")}},1e3)}),e(document).on("click",".yith-toggle-row .yith-save-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element"),a=e(this).closest(".yith-toggle-row"),n=a.find(".spinner");a.formatToggleTitle();var l=e('<input type="hidden">').val("yes");e(document).trigger("yith-toggle-element-item-before-update",[i,a,l]),"yes"===l.val()&&(n.addClass("show"),i.saveToggleElement(n))}),e(document).on("click",".yith-toggle-row .yith-delete-button",function(t){t.preventDefault();var i=e(this).closest(".toggle-element");e(this).closest(".yith-toggle-row").remove(),i.saveToggleElement()}),e(document).on("click",".yith-toggle-onoff",function(t){t.preventDefault(),e(this).closest(".toggle-element").saveToggleElement()}),e(document).on("click",".yith-plugin-fw-radio input[type=radio]",function(){e(this).closest(".yith-plugin-fw-radio").val(e(this).val()).trigger("change")}),e(document).on("click",".yith-password-eye",function(){var t=e(this),i=e(this).closest(".yith-password-wrapper").find("input");"password"===i.attr("type")?(i.attr("type","text"),t.addClass("yith-password-eye-closed")):(i.attr("type","password"),t.removeClass("yith-password-eye-closed"))}),e(document.body).on("yith-plugin-fw-init-radio",function(){e(".yith-plugin-fw-radio:not(.yith-plugin-fw-radio--initialized)").each(function(){e(this).val(e(this).attr("value")),e(this).addClass("yith-plugin-fw-radio--initialized")})}).trigger("yith-plugin-fw-init-radio"),e(document).on("select2:open",function(t){e(t.target).closest(".yith-plugin-ui").length&&e(".select2-results").closest(".select2-container").addClass("yith-plugin-fw-select2-container")});var t={selectors:{wrapper:".yith-plugin-fw-dimensions",units:{wrapper:".yith-plugin-fw-dimensions__units",single:".yith-plugin-fw-dimensions__unit",value:".yith-plugin-fw-dimensions__unit__value",selectedClass:"yith-plugin-fw-dimensions__unit--selected"},linked:{button:".yith-plugin-fw-dimensions__linked",value:".yith-plugin-fw-dimensions__linked__value",wrapperActiveClass:"yith-plugin-fw-dimensions--linked-active"},dimensions:{number:".yith-plugin-fw-dimensions__dimension__number"}},init:function(){var i=t;e(document).on("click",i.selectors.units.single,i.unitChange),e(document).on("click",i.selectors.linked.button,i.linkedChange),e(document).on("change keyup",i.selectors.dimensions.number,i.numberChange)},unitChange:function(i){var a=e(this).closest(t.selectors.units.single),n=a.closest(t.selectors.units.wrapper),l=n.find(t.selectors.units.single),s=n.find(t.selectors.units.value).first(),o=a.data("value");l.removeClass(t.selectors.units.selectedClass),a.addClass(t.selectors.units.selectedClass),s.val(o)},linkedChange:function(){var i=e(this).closest(t.selectors.linked.button),a=i.closest(t.selectors.wrapper),n=i.find(t.selectors.linked.value);"yes"===n.val()?(a.removeClass(t.selectors.linked.wrapperActiveClass),n.val("no")):(a.addClass(t.selectors.linked.wrapperActiveClass),n.val("yes"),a.find(t.selectors.dimensions.number).first().trigger("change"))},numberChange:function(i){var a=e(this).closest(t.selectors.dimensions.number),n=a.closest(t.selectors.wrapper);n.hasClass(t.selectors.linked.wrapperActiveClass)&&n.find(t.selectors.dimensions.number).val(a.val())}};t.init()}(jQuery);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/assets/js/yith-gutenberg.js
CHANGED
@@ -3,6 +3,7 @@
|
|
3 |
var __ = wp.i18n.__,
|
4 |
el = wp.element.createElement,
|
5 |
Fragment = wp.element.Fragment,
|
|
|
6 |
registerBlockType = wp.blocks.registerBlockType,
|
7 |
RichText = wp.editor.RichText,
|
8 |
BlockControls = wp.editor.BlockControls,
|
3 |
var __ = wp.i18n.__,
|
4 |
el = wp.element.createElement,
|
5 |
Fragment = wp.element.Fragment,
|
6 |
+
PanelBody = wp.components.PanelBody,
|
7 |
registerBlockType = wp.blocks.registerBlockType,
|
8 |
RichText = wp.editor.RichText,
|
9 |
BlockControls = wp.editor.BlockControls,
|
plugin-fw/assets/js/yith-gutenberg.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
!function(e){wp.i18n.__;var t=wp.element.createElement,o=wp.element.Fragment,n=wp.blocks.registerBlockType,c=(wp.editor.RichText,wp.editor.BlockControls,wp.editor.InspectorControls),r=(wp.editor.AlignmentToolbar,wp.components,wp.element.RawHTML),a=wp.components.SelectControl,s=wp.components.ToggleControl,
|
1 |
+
!function(e){wp.i18n.__;var t=wp.element.createElement,o=wp.element.Fragment,n=(wp.components.PanelBody,wp.blocks.registerBlockType),c=(wp.editor.RichText,wp.editor.BlockControls,wp.editor.InspectorControls),r=(wp.editor.AlignmentToolbar,wp.components,wp.element.RawHTML),a=wp.components.SelectControl,s=wp.components.ToggleControl,l=wp.components.CheckboxControl,i=wp.components.RangeControl,p=wp.components.ColorPicker,u=wp.components.RadioControl,d=wp.components.TextControl,h=wp.components.TextareaControl;const C=t("svg",{width:22,height:22},t("path",{d:"M 18.24 7.628 C 17.291 8.284 16.076 8.971 14.587 9.688 C 15.344 7.186 15.765 4.851 15.849 2.684 C 15.912 0.939 15.133 0.045 13.514 0.003 C 11.558 -0.06 10.275 1.033 9.665 3.284 C 10.007 3.137 10.359 3.063 10.723 3.063 C 11.021 3.063 11.267 3.184 11.459 3.426 C 11.651 3.668 11.736 3.947 11.715 4.262 C 11.695 5.082 11.276 5.961 10.46 6.896 C 9.644 7.833 8.918 8.3 8.282 8.3 C 7.837 8.3 7.625 7.922 7.646 7.165 C 7.667 6.765 7.804 5.955 8.056 4.735 C 8.287 3.579 8.403 2.801 8.403 2.401 C 8.403 1.707 8.224 1.144 7.867 0.713 C 7.509 0.282 6.994 0.098 6.321 0.161 C 5.858 0.203 5.175 0.624 4.27 1.422 C 3.596 2.035 2.923 2.644 2.25 3.254 L 2.976 4.106 C 3.564 3.664 3.922 3.443 4.048 3.443 C 4.448 3.443 4.637 3.717 4.617 4.263 C 4.617 4.306 4.427 4.968 4.049 6.251 C 3.671 7.534 3.471 8.491 3.449 9.122 C 3.407 9.985 3.565 10.647 3.924 11.109 C 4.367 11.677 5.106 11.919 6.142 11.835 C 7.366 11.751 8.591 11.298 9.816 10.479 C 10.323 10.142 10.808 9.753 11.273 9.311 C 11.105 10.153 10.905 10.868 10.673 11.457 C 8.402 12.487 6.762 13.37 5.752 14.107 C 4.321 15.137 3.554 16.241 3.449 17.419 C 3.259 19.459 4.29 20.479 6.541 20.479 C 8.055 20.479 9.517 19.554 10.926 17.703 C 12.125 16.126 13.166 14.022 14.049 11.394 C 15.578 10.635 16.87 9.892 17.928 9.164 C 17.894 9.409 18.319 7.308 18.24 7.628 Z M 7.393 16.095 C 7.056 16.095 6.898 15.947 6.919 15.653 C 6.961 15.106 7.908 14.38 9.759 13.476 C 8.791 15.221 8.002 16.095 7.393 16.095 Z"}));function g(o,n,c){var a="",s="";if("undefined"!=typeof n.callback&&"function"==typeof e[n.callback])a=e[n.callback](o,n);else{var l="["+n.shortcode_name;e.each(o.attributes,function(e,t){if("className"!=e){l+=" "+e+"=";var o=n.attributes[e].remove_quotes;l+=1==o?t:'"'+t+'"'}}),l+="]";var i=md5(l);s='<span class="yith_block_'+i+'">'+l+"</span>","edit"==c&&0!=n.do_shortcode&&function(t){var o=null;return e(document).trigger("yith_plugin_fw_gutenberg_before_do_shortcode",[l,t]),e.ajax({async:!0,url:yith_gutenberg_ajax.ajaxurl,method:"post",data:{action:"yith_plugin_fw_gutenberg_do_shortcode",shortcode:l},success:function(n){""!=(o=n)&&(e(".yith_block_"+t).html(o),e(document).trigger("yith_plugin_fw_gutenberg_success_do_shortcode",[l,t,o]))}}),e(document).trigger("yith_plugin_fw_gutenberg_after_do_shortcode",[l,t,o]),o}(i),a=t(r,null,s)}return a}function b(e,t,o,n){var c={};return"colorpicker"!=n&&"color"!=n||(e=e.hex),c[t]=e,o.setAttributes(c),o}e.each(yith_gutenberg,function(r,f){n("yith/"+r,{title:f.title,description:f.description,category:f.category,attributes:f.attributes,icon:"undefined"!=typeof f.icon?f.icon:C,keywords:f.keywords,edit:function(n){var r=new Array;return e.each(f.attributes,function(e,o){var c=null,C=o.blocktype;if(void 0!==C){switch(C){case"select":c=a;break;case"text":c=d;break;case"textarea":c=h;break;case"toggle":c=s;break;case"checkbox":c=l;break;case"number":case"range":c=i;break;case"color":case"colorpicker":c=p;break;case"radio":c=u}if(null!=c){var g=helpMessageUncheked="";"undefined"!=typeof o.helps&&"undefined"!=typeof o.helps.checked&&"undefined"!=typeof o.helps.unchecked?(g=o.helps.checked,helpMessageUncheked=o.helps.unchecked):"undefined"!=typeof o.help&&(g=helpMessageUncheked=o.help),r.push(t(c,{value:n.attributes[e],options:o.options,label:o.label,checked:n.attributes[e],selected:n.attributes[e],help:n.attributes[e]?g:helpMessageUncheked,disableAlpha:o.disableAlpha,min:o.min,max:o.max,multiple:o.multiple,onChange:function(t,o=e){n=b(t,o,n,C)},onChangeComplete:function(t,o=e){n=b(t,o,n,C)}}))}}}),sc=g(n,f,"edit"),[t(o,null,t(c,null,r),sc)]},save:function(e){return g(e,f,"save")}})})}(jQuery);
|
plugin-fw/assets/js/yith-system-info.js
CHANGED
@@ -1,13 +1,19 @@
|
|
1 |
-
(
|
2 |
-
|
3 |
-
|
4 |
-
|
|
|
|
|
|
|
|
|
5 |
|
6 |
-
|
7 |
-
|
8 |
-
|
9 |
|
10 |
-
|
11 |
-
|
12 |
-
|
13 |
-
|
|
|
|
1 |
+
jQuery(
|
2 |
+
function ( $ ) {
|
3 |
+
$( document ).on(
|
4 |
+
'click',
|
5 |
+
'.notice-dismiss',
|
6 |
+
function () {
|
7 |
+
var t = $( this ),
|
8 |
+
wrapper_id = t.parent().attr( 'id' );
|
9 |
|
10 |
+
if ( wrapper_id === 'yith-system-alert' ) {
|
11 |
+
var cname = 'hide_yith_system_alert',
|
12 |
+
cvalue = 'yes';
|
13 |
|
14 |
+
document.cookie = cname + "=" + cvalue + ";path=/";
|
15 |
+
}
|
16 |
+
}
|
17 |
+
);
|
18 |
+
}
|
19 |
+
);
|
plugin-fw/assets/js/yith-system-info.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
1 |
+
jQuery(function(t){t(document).on("click",".notice-dismiss",function(){if("yith-system-alert"===t(this).parent().attr("id")){document.cookie="hide_yith_system_alert=yes;path=/"}})});
|
plugin-fw/init.php
CHANGED
@@ -1,13 +1,13 @@
|
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
-
* Version: 3.4.
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
-
* @version 3.4.
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
1 |
<?php
|
2 |
/**
|
3 |
* Framework Name: YIT Plugin Framework
|
4 |
+
* Version: 3.4.25
|
5 |
* Author: YITH
|
6 |
* Text Domain: yith-plugin-fw
|
7 |
* Domain Path: /languages/
|
8 |
*
|
9 |
* @author Your Inspiration Themes
|
10 |
+
* @version 3.4.25
|
11 |
*/
|
12 |
/**
|
13 |
* This file belongs to the YIT Plugin Framework.
|
plugin-fw/languages/yith-plugin-fw-el.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-el.po
CHANGED
@@ -4,15 +4,15 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
-
"PO-Revision-Date: 2020-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: el_GR\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Poedit 2.
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c;_x;_ex\n"
|
@@ -202,7 +202,7 @@ msgstr "Προσθήκη %s από εικόνες"
|
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Ανέβασμα πολλαπλών αρχείων"
|
204 |
|
205 |
-
#: lib/yit-plugin-panel-wc.php:
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr ""
|
208 |
"Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
|
@@ -211,16 +211,16 @@ msgstr ""
|
|
211 |
msgid "Plugin Settings"
|
212 |
msgstr "Ρυθμίσεις Προσθέτου"
|
213 |
|
214 |
-
#: lib/yit-plugin-panel.php:
|
215 |
msgid "How to install premium version"
|
216 |
msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
|
217 |
|
218 |
-
#: lib/yit-plugin-panel.php:
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
220 |
msgid "Save Changes"
|
221 |
msgstr "Αποθήκευση Αλλαγών"
|
222 |
|
223 |
-
#: lib/yit-plugin-panel.php:
|
224 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
225 |
msgid ""
|
226 |
"If you continue with this action, you will reset all options in this page."
|
@@ -228,70 +228,70 @@ msgstr ""
|
|
228 |
"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
|
229 |
"σελίδα."
|
230 |
|
231 |
-
#: lib/yit-plugin-panel.php:
|
232 |
msgid "Reset to default"
|
233 |
msgstr "Επαναφορά σε προεπιλεγμένο"
|
234 |
|
235 |
-
#: lib/yit-plugin-panel.php:
|
236 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
237 |
msgid "Are you sure?"
|
238 |
msgstr "Είστε σίγουρος;"
|
239 |
|
240 |
-
#: lib/yit-plugin-panel.php:
|
241 |
msgid ""
|
242 |
"The element you have entered already exists. Please, enter another name."
|
243 |
msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
|
244 |
|
245 |
-
#: lib/yit-plugin-panel.php:
|
246 |
msgid "Settings saved"
|
247 |
msgstr "Ρυθμίσεις αποθηκεύτηκαν"
|
248 |
|
249 |
-
#: lib/yit-plugin-panel.php:
|
250 |
msgid "Settings reset"
|
251 |
msgstr "Επαναφορά ρυθμίσεων"
|
252 |
|
253 |
-
#: lib/yit-plugin-panel.php:
|
254 |
msgid "Element deleted correctly."
|
255 |
msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
|
256 |
|
257 |
-
#: lib/yit-plugin-panel.php:
|
258 |
msgid "Element updated correctly."
|
259 |
msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
|
260 |
|
261 |
-
#: lib/yit-plugin-panel.php:
|
262 |
msgid "Database imported correctly."
|
263 |
msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
|
264 |
|
265 |
-
#: lib/yit-plugin-panel.php:
|
266 |
msgid "An error has occurred during import. Please try again."
|
267 |
msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
|
268 |
|
269 |
-
#: lib/yit-plugin-panel.php:
|
270 |
msgid "The added file is not valid."
|
271 |
msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
|
272 |
|
273 |
-
#: lib/yit-plugin-panel.php:
|
274 |
msgid "Sorry, import is disabled."
|
275 |
msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
|
276 |
|
277 |
-
#: lib/yit-plugin-panel.php:
|
278 |
msgid "Sorting successful."
|
279 |
msgstr "Διαλογή επιτυχής."
|
280 |
|
281 |
-
#: lib/yit-plugin-panel.php:
|
282 |
msgid "We need your support"
|
283 |
msgstr "Χρειαζόμαστε την υποστήριξή σας"
|
284 |
|
285 |
-
#: lib/yit-plugin-panel.php:
|
286 |
msgid "to keep updating and improving the plugin. Please,"
|
287 |
msgstr ""
|
288 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
289 |
|
290 |
-
#: lib/yit-plugin-panel.php:
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
293 |
|
294 |
-
#: lib/yit-plugin-panel.php:
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) Ευχαριστώ!"
|
297 |
|
@@ -364,81 +364,172 @@ msgstr ""
|
|
364 |
"Παρουσιάστηκε σφάλμα, που πιθανότατα σημαίνει ότι έπεσε το τροφοδοτικό. "
|
365 |
"Προσπαθήστε ξανά αργότερα."
|
366 |
|
367 |
-
#: lib/yith-system-status.php:
|
368 |
msgid "WordPress Version"
|
369 |
msgstr "Έκδοση WordPress"
|
370 |
|
371 |
-
#: lib/yith-system-status.php:
|
372 |
msgid "WooCommerce Version"
|
373 |
msgstr "Έκδοση WooCommerce"
|
374 |
|
375 |
-
#: lib/yith-system-status.php:
|
376 |
msgid "Available Memory"
|
377 |
msgstr "Διαθέσιμη Μνήμη"
|
378 |
|
379 |
-
#: lib/yith-system-status.php:
|
380 |
msgid "PHP Version"
|
381 |
msgstr "Έκδοση PHP"
|
382 |
|
383 |
-
#: lib/yith-system-status.php:
|
384 |
msgid "TLS Version"
|
385 |
msgstr "Έκδοση TLS"
|
386 |
|
387 |
-
#: lib/yith-system-status.php:
|
388 |
msgid "WordPress Cron"
|
389 |
msgstr "WordPress Cron"
|
390 |
|
391 |
-
#: lib/yith-system-status.php:
|
392 |
msgid "SimpleXML"
|
393 |
msgstr "SimpleXML"
|
394 |
|
395 |
-
#: lib/yith-system-status.php:
|
396 |
msgid "MultiByte String"
|
397 |
msgstr "MultiByte String"
|
398 |
|
399 |
-
#: lib/yith-system-status.php:
|
400 |
msgid "ImageMagick Version"
|
401 |
msgstr "Έκδοση ImageMagick"
|
402 |
|
403 |
-
#: lib/yith-system-status.php:
|
404 |
msgid "GD Library"
|
405 |
msgstr "Βιβλιοθήκη GD"
|
406 |
|
407 |
-
#: lib/yith-system-status.php:
|
408 |
msgid "Iconv Module"
|
409 |
msgstr "Άρθρωμα Iconv"
|
410 |
|
411 |
-
#: lib/yith-system-status.php:
|
412 |
msgid "OPCache Save Comments"
|
413 |
msgstr "OPCache Save Comments"
|
414 |
|
415 |
-
#: lib/yith-system-status.php:
|
416 |
msgid "URL FOpen"
|
417 |
msgstr "URL FOpen"
|
418 |
|
419 |
-
#: lib/yith-system-status.php:
|
420 |
msgid "System Status"
|
421 |
msgstr "Κατάσταση Συστήματος"
|
422 |
|
423 |
-
#: lib/yith-system-status.php:
|
424 |
msgid "YITH Plugins"
|
425 |
msgstr "Πρόσθετα YITH"
|
426 |
|
427 |
-
#: lib/yith-system-status.php:
|
428 |
msgid "WooCommerce"
|
429 |
msgstr "WooCommerce"
|
430 |
|
431 |
-
#: lib/yith-system-status.php:
|
432 |
msgid "Warning!"
|
433 |
msgstr "Προσοχή!"
|
434 |
|
435 |
-
|
|
|
436 |
msgid ""
|
437 |
-
"The system check has detected some compatibility issues on your "
|
438 |
-
"
|
439 |
msgstr ""
|
440 |
"Ο έλεγχος συστήματος έχει εντοπίσει κάποια προβλήματα συμβατότητας στην "
|
441 |
-
"εγκατάστασή
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
442 |
|
443 |
#: templates/fields/ajax-customers.php:57
|
444 |
msgid "Search Customers"
|
@@ -570,108 +661,54 @@ msgstr "(Default: <i %s></i> )"
|
|
570 |
msgid "Reset Defaults"
|
571 |
msgstr "Επαναφορά Προεπιλεγμένων"
|
572 |
|
573 |
-
#: templates/sysinfo/system-information-panel.php:
|
574 |
msgid "YITH System Information"
|
575 |
msgstr "Σύστημα Πληροφοριών YITH"
|
576 |
|
577 |
-
#: templates/sysinfo/system-information-panel.php:
|
578 |
-
msgid "
|
579 |
-
msgstr "
|
580 |
-
|
581 |
-
#: templates/sysinfo/system-information-panel.php:46
|
582 |
-
msgid "Output IP Address"
|
583 |
-
msgstr "Διεύθυνση IP Παραγωγής"
|
584 |
|
585 |
-
#: templates/sysinfo/system-information-panel.php:
|
586 |
-
msgid "
|
587 |
-
msgstr "
|
588 |
|
589 |
-
#: templates/sysinfo/system-information-panel.php:
|
590 |
-
|
591 |
-
|
592 |
-
|
593 |
-
#: templates/sysinfo/system-information-panel.php:82
|
594 |
-
msgid "N/A"
|
595 |
-
msgstr "N/A"
|
596 |
|
597 |
#: templates/sysinfo/system-information-panel.php:96
|
598 |
-
msgid "
|
599 |
-
msgstr "
|
600 |
-
|
601 |
-
#: templates/sysinfo/system-information-panel.php:98
|
602 |
-
msgid "%s needs at least %s of available memory"
|
603 |
-
msgstr "%s χρειάζεται τουλάχιστον %s διαθέσιμης μνήμης"
|
604 |
-
|
605 |
-
#: templates/sysinfo/system-information-panel.php:100
|
606 |
-
#: templates/sysinfo/system-information-panel.php:149
|
607 |
-
msgid ""
|
608 |
-
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
609 |
-
"available memory"
|
610 |
-
msgstr ""
|
611 |
-
"Για την βέλτιστη λειτουργικότητα των προσθέτων μας, προτείνουμε να ορίσετε "
|
612 |
-
"τουλάχιστον %s διαθέσιμης μνήμης"
|
613 |
-
|
614 |
-
#: templates/sysinfo/system-information-panel.php:102
|
615 |
-
#: templates/sysinfo/system-information-panel.php:137
|
616 |
-
#: templates/sysinfo/system-information-panel.php:151
|
617 |
-
msgid ""
|
618 |
-
"Read more %s here%s or contact your hosting company in order to increase it."
|
619 |
-
msgstr ""
|
620 |
-
"Μάθετε περισσότερα %s εδώ%s ή επικοινωνήστε με την εταιρεία hosting σας για "
|
621 |
-
"να το βελτιώσετε."
|
622 |
-
|
623 |
-
#: templates/sysinfo/system-information-panel.php:105
|
624 |
-
msgid "%s needs at least %s version"
|
625 |
-
msgstr "%s χρειάζεται τουλάχιστον %s έκδοση"
|
626 |
-
|
627 |
-
#: templates/sysinfo/system-information-panel.php:116
|
628 |
-
msgid ""
|
629 |
-
"Update it to the latest version in order to benefit of all new features and "
|
630 |
-
"security updates."
|
631 |
-
msgstr ""
|
632 |
-
"Κάντε αναβάθμιση της τελευταίας έκδοσης για να επωφεληθείτε από τα νέα "
|
633 |
-
"χαρακτηριστικά και τις αναβαθμίσεις προστασίας."
|
634 |
|
635 |
-
#: templates/sysinfo/system-information-panel.php:
|
636 |
-
msgid "
|
637 |
-
msgstr "
|
638 |
|
639 |
-
#: templates/sysinfo/system-information-panel.php:
|
640 |
-
msgid "
|
641 |
-
msgstr "
|
642 |
|
643 |
-
#: templates/sysinfo/system-information-panel.php:
|
644 |
-
msgid "
|
645 |
-
msgstr "
|
646 |
|
647 |
-
#: templates/sysinfo/system-information-panel.php:
|
648 |
-
msgid ""
|
649 |
-
|
650 |
-
"b> module is disabled. Ask your hosting company to enable it."
|
651 |
-
msgstr ""
|
652 |
-
"Δεν μπορούμε να καθορίσουμε ποια έκδοση <b>TLS</b> έχει εγκατασταθεί γιατί "
|
653 |
-
"το άρθρωμα <b>cURL</b> είναι απενεργοποιημένο. Ζητήστε από την εταιρεία "
|
654 |
-
"hosting σας να το ενεργοποιήσει."
|
655 |
|
656 |
-
#: templates/sysinfo/system-information-panel.php:
|
657 |
-
msgid ""
|
658 |
-
|
659 |
-
"install it."
|
660 |
-
msgstr ""
|
661 |
-
"Το άρθρωμα <b>ImageMagick</b> δεν έχει εγκατασταθεί. Ζητήστε από την "
|
662 |
-
"εταιρεία hosting σας να το εγκαταστήσει."
|
663 |
|
664 |
-
#: templates/sysinfo/system-information-panel.php:
|
665 |
msgid "Show full PHPInfo"
|
666 |
msgstr "Πλήρης εμφάνιση PHPInfo"
|
667 |
|
668 |
-
#: templates/sysinfo/system-information-panel.php:
|
669 |
-
msgid "
|
670 |
-
msgstr "
|
671 |
-
|
672 |
-
#: templates/sysinfo/system-information-panel.php:193
|
673 |
-
msgid "Back to top"
|
674 |
-
msgstr "Πίσω στην κορυφή"
|
675 |
|
676 |
#: yit-plugin.php:194
|
677 |
msgid "License"
|
@@ -758,27 +795,27 @@ msgstr "YITH"
|
|
758 |
#: templates/fields/dimensions.php:16
|
759 |
msgctxt "Position in the \"Dimensions\" field"
|
760 |
msgid "Top"
|
761 |
-
msgstr ""
|
762 |
|
763 |
#: templates/fields/dimensions.php:17
|
764 |
msgctxt "Position in the \"Dimensions\" field"
|
765 |
msgid "Right"
|
766 |
-
msgstr ""
|
767 |
|
768 |
#: templates/fields/dimensions.php:18
|
769 |
msgctxt "Position in the \"Dimensions\" field"
|
770 |
msgid "Bottom"
|
771 |
-
msgstr ""
|
772 |
|
773 |
#: templates/fields/dimensions.php:19
|
774 |
msgctxt "Position in the \"Dimensions\" field"
|
775 |
msgid "Left"
|
776 |
-
msgstr ""
|
777 |
|
778 |
#: templates/fields/dimensions.php:117
|
779 |
msgctxt "Tooltip in the \"Dimensions\" field"
|
780 |
msgid "Link values together"
|
781 |
-
msgstr ""
|
782 |
|
783 |
#: templates/fields/onoff.php:24
|
784 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
@@ -815,6 +852,13 @@ msgctxt "Action links"
|
|
815 |
msgid "Settings"
|
816 |
msgstr "Ρυθμίσεις"
|
817 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
818 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
819 |
#~ msgid "ON"
|
820 |
#~ msgstr "ΕΝΕΡΓΟΠΟΙΗΣΗ"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-02 07:21:31+00:00\n"
|
8 |
+
"PO-Revision-Date: 2020-06-26 11:45+0100\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
11 |
"Language: el_GR\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 2.3\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c;_x;_ex\n"
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Ανέβασμα πολλαπλών αρχείων"
|
204 |
|
205 |
+
#: lib/yit-plugin-panel-wc.php:403
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr ""
|
208 |
"Οι αλλαγές που έχετε δημιουργήσει θα χαθούν αν αφήσετε αυτήν την σελίδα."
|
211 |
msgid "Plugin Settings"
|
212 |
msgstr "Ρυθμίσεις Προσθέτου"
|
213 |
|
214 |
+
#: lib/yit-plugin-panel.php:454 lib/yit-plugin-panel.php:457
|
215 |
msgid "How to install premium version"
|
216 |
msgstr "Πώς να εγκαταστήσετε την προηγμένη έκδοση"
|
217 |
|
218 |
+
#: lib/yit-plugin-panel.php:617 lib/yit-plugin-subpanel.php:151
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
220 |
msgid "Save Changes"
|
221 |
msgstr "Αποθήκευση Αλλαγών"
|
222 |
|
223 |
+
#: lib/yit-plugin-panel.php:621 lib/yit-plugin-subpanel.php:154
|
224 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
225 |
msgid ""
|
226 |
"If you continue with this action, you will reset all options in this page."
|
228 |
"Αν συνεχίσετε με αυτή την ενέργεια θα επαναφέρετε όλες τις επιλογές στη "
|
229 |
"σελίδα."
|
230 |
|
231 |
+
#: lib/yit-plugin-panel.php:624 lib/yit-plugin-subpanel.php:156
|
232 |
msgid "Reset to default"
|
233 |
msgstr "Επαναφορά σε προεπιλεγμένο"
|
234 |
|
235 |
+
#: lib/yit-plugin-panel.php:625 lib/yit-plugin-subpanel.php:157
|
236 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
237 |
msgid "Are you sure?"
|
238 |
msgstr "Είστε σίγουρος;"
|
239 |
|
240 |
+
#: lib/yit-plugin-panel.php:823
|
241 |
msgid ""
|
242 |
"The element you have entered already exists. Please, enter another name."
|
243 |
msgstr "Το στοιχείο που εισάγατε υπάρχει ήδη. Παρακαλώ, εισάγετε άλλο όνομα."
|
244 |
|
245 |
+
#: lib/yit-plugin-panel.php:824
|
246 |
msgid "Settings saved"
|
247 |
msgstr "Ρυθμίσεις αποθηκεύτηκαν"
|
248 |
|
249 |
+
#: lib/yit-plugin-panel.php:825
|
250 |
msgid "Settings reset"
|
251 |
msgstr "Επαναφορά ρυθμίσεων"
|
252 |
|
253 |
+
#: lib/yit-plugin-panel.php:826
|
254 |
msgid "Element deleted correctly."
|
255 |
msgstr "Το στοιχείο διαγράφηκε επιτυχώς."
|
256 |
|
257 |
+
#: lib/yit-plugin-panel.php:827 lib/yit-plugin-panel.php:828
|
258 |
msgid "Element updated correctly."
|
259 |
msgstr "Το στοιχείο αναβαθμίστηκε επιτυχώς."
|
260 |
|
261 |
+
#: lib/yit-plugin-panel.php:829
|
262 |
msgid "Database imported correctly."
|
263 |
msgstr "Επιτυχής εισαγωγή βάσης δεδομένων."
|
264 |
|
265 |
+
#: lib/yit-plugin-panel.php:830
|
266 |
msgid "An error has occurred during import. Please try again."
|
267 |
msgstr "Παρουσιάστηκε σφάλμα κατά την εισαγωγή. Παρακαλώ προσπαθήστε ξανά."
|
268 |
|
269 |
+
#: lib/yit-plugin-panel.php:831
|
270 |
msgid "The added file is not valid."
|
271 |
msgstr "Το προστιθέμενο αρχείο δεν είναι έγκυρο."
|
272 |
|
273 |
+
#: lib/yit-plugin-panel.php:832
|
274 |
msgid "Sorry, import is disabled."
|
275 |
msgstr "Συγνώμη, η εισαγωγή είναι απενεργοποιημένη."
|
276 |
|
277 |
+
#: lib/yit-plugin-panel.php:833
|
278 |
msgid "Sorting successful."
|
279 |
msgstr "Διαλογή επιτυχής."
|
280 |
|
281 |
+
#: lib/yit-plugin-panel.php:1281
|
282 |
msgid "We need your support"
|
283 |
msgstr "Χρειαζόμαστε την υποστήριξή σας"
|
284 |
|
285 |
+
#: lib/yit-plugin-panel.php:1282
|
286 |
msgid "to keep updating and improving the plugin. Please,"
|
287 |
msgstr ""
|
288 |
"για να διατηρήσετε την ενημέρωση και τη βελτίωση του πρόσθετου. Παρακαλώ,"
|
289 |
|
290 |
+
#: lib/yit-plugin-panel.php:1284
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "βοηθήστε μας αφήνοντας μια βαθμολογία πέντε αστέρων"
|
293 |
|
294 |
+
#: lib/yit-plugin-panel.php:1285
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) Ευχαριστώ!"
|
297 |
|
364 |
"Παρουσιάστηκε σφάλμα, που πιθανότατα σημαίνει ότι έπεσε το τροφοδοτικό. "
|
365 |
"Προσπαθήστε ξανά αργότερα."
|
366 |
|
367 |
+
#: lib/yith-system-status.php:111
|
368 |
msgid "WordPress Version"
|
369 |
msgstr "Έκδοση WordPress"
|
370 |
|
371 |
+
#: lib/yith-system-status.php:112
|
372 |
msgid "WooCommerce Version"
|
373 |
msgstr "Έκδοση WooCommerce"
|
374 |
|
375 |
+
#: lib/yith-system-status.php:113
|
376 |
msgid "Available Memory"
|
377 |
msgstr "Διαθέσιμη Μνήμη"
|
378 |
|
379 |
+
#: lib/yith-system-status.php:114
|
380 |
msgid "PHP Version"
|
381 |
msgstr "Έκδοση PHP"
|
382 |
|
383 |
+
#: lib/yith-system-status.php:115
|
384 |
msgid "TLS Version"
|
385 |
msgstr "Έκδοση TLS"
|
386 |
|
387 |
+
#: lib/yith-system-status.php:116
|
388 |
msgid "WordPress Cron"
|
389 |
msgstr "WordPress Cron"
|
390 |
|
391 |
+
#: lib/yith-system-status.php:117
|
392 |
msgid "SimpleXML"
|
393 |
msgstr "SimpleXML"
|
394 |
|
395 |
+
#: lib/yith-system-status.php:118
|
396 |
msgid "MultiByte String"
|
397 |
msgstr "MultiByte String"
|
398 |
|
399 |
+
#: lib/yith-system-status.php:119
|
400 |
msgid "ImageMagick Version"
|
401 |
msgstr "Έκδοση ImageMagick"
|
402 |
|
403 |
+
#: lib/yith-system-status.php:120
|
404 |
msgid "GD Library"
|
405 |
msgstr "Βιβλιοθήκη GD"
|
406 |
|
407 |
+
#: lib/yith-system-status.php:121
|
408 |
msgid "Iconv Module"
|
409 |
msgstr "Άρθρωμα Iconv"
|
410 |
|
411 |
+
#: lib/yith-system-status.php:122
|
412 |
msgid "OPCache Save Comments"
|
413 |
msgstr "OPCache Save Comments"
|
414 |
|
415 |
+
#: lib/yith-system-status.php:123
|
416 |
msgid "URL FOpen"
|
417 |
msgstr "URL FOpen"
|
418 |
|
419 |
+
#: lib/yith-system-status.php:141 lib/yith-system-status.php:142
|
420 |
msgid "System Status"
|
421 |
msgstr "Κατάσταση Συστήματος"
|
422 |
|
423 |
+
#: lib/yith-system-status.php:184
|
424 |
msgid "YITH Plugins"
|
425 |
msgstr "Πρόσθετα YITH"
|
426 |
|
427 |
+
#: lib/yith-system-status.php:192
|
428 |
msgid "WooCommerce"
|
429 |
msgstr "WooCommerce"
|
430 |
|
431 |
+
#: lib/yith-system-status.php:330
|
432 |
msgid "Warning!"
|
433 |
msgstr "Προσοχή!"
|
434 |
|
435 |
+
#. translators: %1$s open link tag, %2$s open link tag
|
436 |
+
#: lib/yith-system-status.php:334
|
437 |
msgid ""
|
438 |
+
"The system check has detected some compatibility issues on your installation."
|
439 |
+
"%1$sClick here%2$s to know more"
|
440 |
msgstr ""
|
441 |
"Ο έλεγχος συστήματος έχει εντοπίσει κάποια προβλήματα συμβατότητας στην "
|
442 |
+
"εγκατάστασή σας.%1$sΚάντε κλικ εδώ%2$s για να μάθετε περισσότερα"
|
443 |
+
|
444 |
+
#: lib/yith-system-status.php:473
|
445 |
+
msgid "Enabled"
|
446 |
+
msgstr "Ενεργοποιημένο"
|
447 |
+
|
448 |
+
#: lib/yith-system-status.php:473
|
449 |
+
msgid "Disabled"
|
450 |
+
msgstr "Απενεργοποιημένο"
|
451 |
+
|
452 |
+
#: lib/yith-system-status.php:478
|
453 |
+
msgid "N/A"
|
454 |
+
msgstr "N/A"
|
455 |
+
|
456 |
+
#. translators: %1$s plugin name, %2$s requirement name
|
457 |
+
#: lib/yith-system-status.php:506
|
458 |
+
msgid "%1$s needs %2$s enabled"
|
459 |
+
msgstr "%1$s χρειάζεται %2$s ενεργοποιημένο"
|
460 |
+
|
461 |
+
#. translators: %1$s plugin name, %2$s required memory amount
|
462 |
+
#: lib/yith-system-status.php:509
|
463 |
+
msgid "%1$s needs at least %2$s of available memory"
|
464 |
+
msgstr "%1$s χρειάζεται τουλάχιστον %2$s διαθέσιμης μνήμης"
|
465 |
+
|
466 |
+
#. translators: %1$s plugin name, %2$s version number
|
467 |
+
#: lib/yith-system-status.php:512
|
468 |
+
msgid "%1$s needs at least %2$s version"
|
469 |
+
msgstr "%1$s χρειάζεται τουλάχιστον %2$s έκδοση"
|
470 |
+
|
471 |
+
#: lib/yith-system-status.php:537
|
472 |
+
msgid ""
|
473 |
+
"Update it to the latest version in order to benefit of all new features and "
|
474 |
+
"security updates."
|
475 |
+
msgstr ""
|
476 |
+
"Κάντε αναβάθμιση της τελευταίας έκδοσης για να επωφεληθείτε από τα νέα "
|
477 |
+
"χαρακτηριστικά και τις αναβαθμίσεις προστασίας."
|
478 |
+
|
479 |
+
#: lib/yith-system-status.php:541 lib/yith-system-status.php:547
|
480 |
+
msgid "Contact your hosting company in order to update it."
|
481 |
+
msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να αναβαθμίσετε."
|
482 |
+
|
483 |
+
#: lib/yith-system-status.php:545
|
484 |
+
msgid "Contact your hosting company in order to install it."
|
485 |
+
msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να το ενεργοποιήσετε."
|
486 |
+
|
487 |
+
#. translators: %1$s code, %2$s file name
|
488 |
+
#: lib/yith-system-status.php:552
|
489 |
+
msgid "Remove %1$s from %2$s file"
|
490 |
+
msgstr "Αφαίρεση %1$s από αρχείο %2$s"
|
491 |
+
|
492 |
+
#: lib/yith-system-status.php:560
|
493 |
+
msgid "Contact your hosting company in order to enable it."
|
494 |
+
msgstr "Επικοινωνήστε με την εταιρεία hosting σας για να ενεργοποιήσετε."
|
495 |
+
|
496 |
+
#. translators: %1$s opening link tag, %2$s closing link tag
|
497 |
+
#: lib/yith-system-status.php:564 lib/yith-system-status.php:588
|
498 |
+
msgid ""
|
499 |
+
"Read more %1$shere%2$s or contact your hosting company in order to increase "
|
500 |
+
"it."
|
501 |
+
msgstr ""
|
502 |
+
"Μάθετε περισσότερα %1$sεδώ%2$s ή επικοινωνήστε με την εταιρεία hosting σας "
|
503 |
+
"για να το βελτιώσετε."
|
504 |
+
|
505 |
+
#. translators: %s recommended memory amount
|
506 |
+
#: lib/yith-system-status.php:585
|
507 |
+
msgid ""
|
508 |
+
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
509 |
+
"available memory"
|
510 |
+
msgstr ""
|
511 |
+
"Για την βέλτιστη λειτουργικότητα των προσθέτων μας, προτείνουμε να ορίσετε "
|
512 |
+
"τουλάχιστον %s διαθέσιμης μνήμης"
|
513 |
+
|
514 |
+
#. translators: %1$s TLS label, %2$s cURL label
|
515 |
+
#: lib/yith-system-status.php:593
|
516 |
+
msgid ""
|
517 |
+
"The system check cannot determine which %1$s version is installed because "
|
518 |
+
"%2$s module is disabled. Ask your hosting company to enable it."
|
519 |
+
msgstr ""
|
520 |
+
"Το σύστημα δεν μπορεί να καθορίσει ποια %1$s έκδοση έχει εγκατασταθεί γιατί "
|
521 |
+
"το %2$s άρθρωμα είναι απενεργοποιημένο. Ζητήστε από την εταιρεία hosting σας "
|
522 |
+
"να το ενεργοποιήσει."
|
523 |
+
|
524 |
+
#. translators: %1$s TLS label
|
525 |
+
#: lib/yith-system-status.php:596
|
526 |
+
msgid ""
|
527 |
+
"The system check cannot determine which %1$s version is installed due to a "
|
528 |
+
"connection issue between your site and our server."
|
529 |
+
msgstr ""
|
530 |
+
"Ο έλεγχος συστήματος δεν μπορεί να διευκρινήσει ποια έκδοση %1$s έχει "
|
531 |
+
"εγκατασταθεί λόγω προβλήματος σύνδεσης ανάμεσα στον ιστότοπο σας και τον "
|
532 |
+
"διακομιστή μας."
|
533 |
|
534 |
#: templates/fields/ajax-customers.php:57
|
535 |
msgid "Search Customers"
|
661 |
msgid "Reset Defaults"
|
662 |
msgstr "Επαναφορά Προεπιλεγμένων"
|
663 |
|
664 |
+
#: templates/sysinfo/system-information-panel.php:39
|
665 |
msgid "YITH System Information"
|
666 |
msgstr "Σύστημα Πληροφοριών YITH"
|
667 |
|
668 |
+
#: templates/sysinfo/system-information-panel.php:50
|
669 |
+
msgid "WP debug.log file"
|
670 |
+
msgstr "Αρχείο WP debug.log"
|
|
|
|
|
|
|
|
|
671 |
|
672 |
+
#: templates/sysinfo/system-information-panel.php:54
|
673 |
+
msgid "PHP error_log file"
|
674 |
+
msgstr "Αρχείο PHP error_log"
|
675 |
|
676 |
+
#: templates/sysinfo/system-information-panel.php:59
|
677 |
+
#: templates/sysinfo/system-information-panel.php:83
|
678 |
+
msgid "Back to System panel"
|
679 |
+
msgstr "Πίσω στο πάνελ Συστήματος"
|
|
|
|
|
|
|
680 |
|
681 |
#: templates/sysinfo/system-information-panel.php:96
|
682 |
+
msgid "Back to top"
|
683 |
+
msgstr "Πίσω στην κορυφή"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
684 |
|
685 |
+
#: templates/sysinfo/system-information-panel.php:104
|
686 |
+
msgid "Site URL"
|
687 |
+
msgstr "URL Ιστοσελίδας"
|
688 |
|
689 |
+
#: templates/sysinfo/system-information-panel.php:112
|
690 |
+
msgid "Output IP Address"
|
691 |
+
msgstr "Διεύθυνση IP Παραγωγής"
|
692 |
|
693 |
+
#: templates/sysinfo/system-information-panel.php:120
|
694 |
+
msgid "Defined WP_CACHE"
|
695 |
+
msgstr "Καθορισμένο WP_CACHE"
|
696 |
|
697 |
+
#: templates/sysinfo/system-information-panel.php:123
|
698 |
+
msgid "Yes"
|
699 |
+
msgstr "Ναι"
|
|
|
|
|
|
|
|
|
|
|
700 |
|
701 |
+
#: templates/sysinfo/system-information-panel.php:123
|
702 |
+
msgid "No"
|
703 |
+
msgstr "Όχι"
|
|
|
|
|
|
|
|
|
704 |
|
705 |
+
#: templates/sysinfo/system-information-panel.php:159
|
706 |
msgid "Show full PHPInfo"
|
707 |
msgstr "Πλήρης εμφάνιση PHPInfo"
|
708 |
|
709 |
+
#: templates/sysinfo/system-information-panel.php:167
|
710 |
+
msgid "Show log files"
|
711 |
+
msgstr "Εμφάνιση αρχείων καταγραφής"
|
|
|
|
|
|
|
|
|
712 |
|
713 |
#: yit-plugin.php:194
|
714 |
msgid "License"
|
795 |
#: templates/fields/dimensions.php:16
|
796 |
msgctxt "Position in the \"Dimensions\" field"
|
797 |
msgid "Top"
|
798 |
+
msgstr "Κορυφή"
|
799 |
|
800 |
#: templates/fields/dimensions.php:17
|
801 |
msgctxt "Position in the \"Dimensions\" field"
|
802 |
msgid "Right"
|
803 |
+
msgstr "Δεξιά"
|
804 |
|
805 |
#: templates/fields/dimensions.php:18
|
806 |
msgctxt "Position in the \"Dimensions\" field"
|
807 |
msgid "Bottom"
|
808 |
+
msgstr "Κάτω"
|
809 |
|
810 |
#: templates/fields/dimensions.php:19
|
811 |
msgctxt "Position in the \"Dimensions\" field"
|
812 |
msgid "Left"
|
813 |
+
msgstr "Αριστερά"
|
814 |
|
815 |
#: templates/fields/dimensions.php:117
|
816 |
msgctxt "Tooltip in the \"Dimensions\" field"
|
817 |
msgid "Link values together"
|
818 |
+
msgstr "Συνδέστε αξίες"
|
819 |
|
820 |
#: templates/fields/onoff.php:24
|
821 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
852 |
msgid "Settings"
|
853 |
msgstr "Ρυθμίσεις"
|
854 |
|
855 |
+
#~ msgid ""
|
856 |
+
#~ "<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
857 |
+
#~ "install it."
|
858 |
+
#~ msgstr ""
|
859 |
+
#~ "Το άρθρωμα <b>ImageMagick</b> δεν έχει εγκατασταθεί. Ζητήστε από την "
|
860 |
+
#~ "εταιρεία hosting σας να το εγκαταστήσει."
|
861 |
+
|
862 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
863 |
#~ msgid "ON"
|
864 |
#~ msgstr "ΕΝΕΡΓΟΠΟΙΗΣΗ"
|
plugin-fw/languages/yith-plugin-fw-es_ES.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"PO-Revision-Date: 2020-04-06 10:45+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -203,7 +203,7 @@ msgstr "Añadir %s desde imágenes"
|
|
203 |
msgid "Upload multiple files"
|
204 |
msgstr "Cargar archivos múltiples"
|
205 |
|
206 |
-
#: lib/yit-plugin-panel-wc.php:
|
207 |
msgid "The changes you have made will be lost if you leave this page."
|
208 |
msgstr "Los cambios que has hecho se perderán si abandonas esta página."
|
209 |
|
@@ -211,87 +211,87 @@ msgstr "Los cambios que has hecho se perderán si abandonas esta página."
|
|
211 |
msgid "Plugin Settings"
|
212 |
msgstr "Ajustes del plugin"
|
213 |
|
214 |
-
#: lib/yit-plugin-panel.php:
|
215 |
msgid "How to install premium version"
|
216 |
msgstr "Cómo instalar la versión premium"
|
217 |
|
218 |
-
#: lib/yit-plugin-panel.php:
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
220 |
msgid "Save Changes"
|
221 |
msgstr "Guardar cambios"
|
222 |
|
223 |
-
#: lib/yit-plugin-panel.php:
|
224 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
225 |
msgid ""
|
226 |
"If you continue with this action, you will reset all options in this page."
|
227 |
msgstr ""
|
228 |
"Si sigues con esta acción, se reiniciarán todas las opciones en esta página."
|
229 |
|
230 |
-
#: lib/yit-plugin-panel.php:
|
231 |
msgid "Reset to default"
|
232 |
msgstr "Restablecer a predeterminado"
|
233 |
|
234 |
-
#: lib/yit-plugin-panel.php:
|
235 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
236 |
msgid "Are you sure?"
|
237 |
msgstr "¿Estás seguro/a?"
|
238 |
|
239 |
-
#: lib/yit-plugin-panel.php:
|
240 |
msgid ""
|
241 |
"The element you have entered already exists. Please, enter another name."
|
242 |
msgstr ""
|
243 |
"El elemento que has introducido ya existe. Por favor, introduce otro nombre."
|
244 |
|
245 |
-
#: lib/yit-plugin-panel.php:
|
246 |
msgid "Settings saved"
|
247 |
msgstr "Ajustes guardados"
|
248 |
|
249 |
-
#: lib/yit-plugin-panel.php:
|
250 |
msgid "Settings reset"
|
251 |
msgstr "Ajustes reiniciados"
|
252 |
|
253 |
-
#: lib/yit-plugin-panel.php:
|
254 |
msgid "Element deleted correctly."
|
255 |
msgstr "Elemento borrado correctamente."
|
256 |
|
257 |
-
#: lib/yit-plugin-panel.php:
|
258 |
msgid "Element updated correctly."
|
259 |
msgstr "Elemento actualizado correctamente."
|
260 |
|
261 |
-
#: lib/yit-plugin-panel.php:
|
262 |
msgid "Database imported correctly."
|
263 |
msgstr "Base de datos importada correctamente."
|
264 |
|
265 |
-
#: lib/yit-plugin-panel.php:
|
266 |
msgid "An error has occurred during import. Please try again."
|
267 |
msgstr ""
|
268 |
"Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
|
269 |
|
270 |
-
#: lib/yit-plugin-panel.php:
|
271 |
msgid "The added file is not valid."
|
272 |
msgstr "El archivo añadido no es válido."
|
273 |
|
274 |
-
#: lib/yit-plugin-panel.php:
|
275 |
msgid "Sorry, import is disabled."
|
276 |
msgstr "Lo sentimos, la importación está deshabilitada."
|
277 |
|
278 |
-
#: lib/yit-plugin-panel.php:
|
279 |
msgid "Sorting successful."
|
280 |
msgstr "Clasificación fue realizada con éxito."
|
281 |
|
282 |
-
#: lib/yit-plugin-panel.php:
|
283 |
msgid "We need your support"
|
284 |
msgstr "Necesitamos tu ayuda"
|
285 |
|
286 |
-
#: lib/yit-plugin-panel.php:
|
287 |
msgid "to keep updating and improving the plugin. Please,"
|
288 |
msgstr "para seguir actualizando y mejora el plugin. Por favor,"
|
289 |
|
290 |
-
#: lib/yit-plugin-panel.php:
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "ayúdanos dejando una valoración de 5 estrellas"
|
293 |
|
294 |
-
#: lib/yit-plugin-panel.php:
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) ¡Gracias!"
|
297 |
|
@@ -365,82 +365,177 @@ msgstr ""
|
|
365 |
"Ha ocurrido un error, lo que probablemente significa que el feed está caído. "
|
366 |
"Inténtalo de nuevo más tarde."
|
367 |
|
368 |
-
#: lib/yith-system-status.php:
|
369 |
msgid "WordPress Version"
|
370 |
msgstr "Versión de WordPress"
|
371 |
|
372 |
-
#: lib/yith-system-status.php:
|
373 |
msgid "WooCommerce Version"
|
374 |
msgstr "Versión de WooCommerce"
|
375 |
|
376 |
-
#: lib/yith-system-status.php:
|
377 |
msgid "Available Memory"
|
378 |
msgstr "Memoria disponible"
|
379 |
|
380 |
-
#: lib/yith-system-status.php:
|
381 |
msgid "PHP Version"
|
382 |
msgstr "Versión PHP"
|
383 |
|
384 |
-
#: lib/yith-system-status.php:
|
385 |
msgid "TLS Version"
|
386 |
msgstr "Versión TLS"
|
387 |
|
388 |
-
#: lib/yith-system-status.php:
|
389 |
msgid "WordPress Cron"
|
390 |
msgstr "Cron de WordPress"
|
391 |
|
392 |
-
#: lib/yith-system-status.php:
|
393 |
msgid "SimpleXML"
|
394 |
msgstr "SimpleXML"
|
395 |
|
396 |
-
#: lib/yith-system-status.php:
|
397 |
msgid "MultiByte String"
|
398 |
msgstr "Cadena MultiByte"
|
399 |
|
400 |
-
#: lib/yith-system-status.php:
|
401 |
msgid "ImageMagick Version"
|
402 |
msgstr "Versión ImageMagick"
|
403 |
|
404 |
-
#: lib/yith-system-status.php:
|
405 |
msgid "GD Library"
|
406 |
msgstr "Biblioteca GD"
|
407 |
|
408 |
-
#: lib/yith-system-status.php:
|
409 |
msgid "Iconv Module"
|
410 |
msgstr "Módulo Iconv"
|
411 |
|
412 |
-
#: lib/yith-system-status.php:
|
413 |
msgid "OPCache Save Comments"
|
414 |
msgstr "Guardar comentarios OPCache"
|
415 |
|
416 |
-
#: lib/yith-system-status.php:
|
417 |
msgid "URL FOpen"
|
418 |
msgstr "URL FOpen"
|
419 |
|
420 |
-
#: lib/yith-system-status.php:
|
421 |
msgid "System Status"
|
422 |
msgstr "Estado del sistema"
|
423 |
|
424 |
-
#: lib/yith-system-status.php:
|
425 |
msgid "YITH Plugins"
|
426 |
msgstr "Plugins de YITH"
|
427 |
|
428 |
-
#: lib/yith-system-status.php:
|
429 |
msgid "WooCommerce"
|
430 |
msgstr "WooCommerce"
|
431 |
|
432 |
-
#: lib/yith-system-status.php:
|
433 |
msgid "Warning!"
|
434 |
msgstr "¡Atención! "
|
435 |
|
436 |
-
|
|
|
|
|
437 |
msgid ""
|
438 |
-
"The system check has detected some compatibility issues on your "
|
439 |
-
"
|
440 |
msgstr ""
|
441 |
"La comprobación del sistema ha detectado algunos errores en tu instalación. "
|
442 |
"%sHaz clic aquí%s para saber más"
|
443 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
444 |
#: templates/fields/ajax-customers.php:57
|
445 |
msgid "Search Customers"
|
446 |
msgstr "Buscar clientes"
|
@@ -571,107 +666,55 @@ msgstr "(Por defecto: <i %s></i> )"
|
|
571 |
msgid "Reset Defaults"
|
572 |
msgstr "Ajustes predeterminados"
|
573 |
|
574 |
-
#: templates/sysinfo/system-information-panel.php:
|
575 |
msgid "YITH System Information"
|
576 |
msgstr "Información del sistema de YITH"
|
577 |
|
578 |
-
#: templates/sysinfo/system-information-panel.php:
|
579 |
-
msgid "
|
580 |
-
msgstr "URL del sitio"
|
581 |
-
|
582 |
-
#: templates/sysinfo/system-information-panel.php:46
|
583 |
-
msgid "Output IP Address"
|
584 |
-
msgstr "Salida Dirección IP"
|
585 |
-
|
586 |
-
#: templates/sysinfo/system-information-panel.php:76
|
587 |
-
msgid "Enabled"
|
588 |
-
msgstr "Activado"
|
589 |
-
|
590 |
-
#: templates/sysinfo/system-information-panel.php:76
|
591 |
-
msgid "Disabled"
|
592 |
-
msgstr "Desactivado"
|
593 |
-
|
594 |
-
#: templates/sysinfo/system-information-panel.php:82
|
595 |
-
msgid "N/A"
|
596 |
-
msgstr "N/D"
|
597 |
-
|
598 |
-
#: templates/sysinfo/system-information-panel.php:96
|
599 |
-
msgid "%s needs %s enabled"
|
600 |
-
msgstr "%s necesita %s enabled"
|
601 |
-
|
602 |
-
#: templates/sysinfo/system-information-panel.php:98
|
603 |
-
msgid "%s needs at least %s of available memory"
|
604 |
-
msgstr "%s necesita al menos %s de memoria disponible"
|
605 |
-
|
606 |
-
#: templates/sysinfo/system-information-panel.php:100
|
607 |
-
#: templates/sysinfo/system-information-panel.php:149
|
608 |
-
msgid ""
|
609 |
-
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
610 |
-
"available memory"
|
611 |
msgstr ""
|
612 |
-
"Para el optimo funcionamiento de los plugins, sugerimos configurar al menos "
|
613 |
-
"%s de memoria disponible"
|
614 |
|
615 |
-
#: templates/sysinfo/system-information-panel.php:
|
616 |
-
|
617 |
-
#: templates/sysinfo/system-information-panel.php:151
|
618 |
-
msgid ""
|
619 |
-
"Read more %s here%s or contact your hosting company in order to increase it."
|
620 |
msgstr ""
|
621 |
-
"Lee más %s aquí%s o contacta a tu compañía de hosting para incrementarlo."
|
622 |
|
623 |
-
#: templates/sysinfo/system-information-panel.php:
|
624 |
-
|
625 |
-
|
626 |
-
|
627 |
-
#: templates/sysinfo/system-information-panel.php:116
|
628 |
-
msgid ""
|
629 |
-
"Update it to the latest version in order to benefit of all new features and "
|
630 |
-
"security updates."
|
631 |
-
msgstr ""
|
632 |
-
"Actualízalo a la última versión para beneficiarte de todas las nuevas "
|
633 |
-
"características y actualizaciones de seguridad"
|
634 |
|
635 |
-
#: templates/sysinfo/system-information-panel.php:
|
636 |
-
msgid "
|
637 |
-
msgstr "
|
638 |
|
639 |
-
#: templates/sysinfo/system-information-panel.php:
|
640 |
-
msgid "
|
641 |
-
msgstr "
|
642 |
|
643 |
-
#: templates/sysinfo/system-information-panel.php:
|
644 |
-
msgid "
|
645 |
-
msgstr "
|
646 |
|
647 |
-
#: templates/sysinfo/system-information-panel.php:
|
648 |
-
msgid ""
|
649 |
-
"We cannot determine which <b>TLS</b> version is installed because <b>cURL</"
|
650 |
-
"b> module is disabled. Ask your hosting company to enable it."
|
651 |
msgstr ""
|
652 |
-
"No podemos determinar qué versión <b>TLS</b> está instalada porque <b>cURL</"
|
653 |
-
"b> el módulo está desactivado. Solicita a tu compañía de hosting que lo "
|
654 |
-
"active."
|
655 |
|
656 |
-
#: templates/sysinfo/system-information-panel.php:
|
657 |
-
msgid ""
|
658 |
-
"<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
659 |
-
"install it."
|
660 |
msgstr ""
|
661 |
-
"<b>ImageMagick</b> el módulo no está instalado. Solicita a tu compañia de "
|
662 |
-
"hosting que lo instale."
|
663 |
|
664 |
-
#: templates/sysinfo/system-information-panel.php:
|
|
|
|
|
|
|
|
|
|
|
665 |
msgid "Show full PHPInfo"
|
666 |
msgstr "Mostrar PHPInfo completa"
|
667 |
|
668 |
-
#: templates/sysinfo/system-information-panel.php:
|
669 |
-
msgid "
|
670 |
-
msgstr "
|
671 |
-
|
672 |
-
#: templates/sysinfo/system-information-panel.php:193
|
673 |
-
msgid "Back to top"
|
674 |
-
msgstr "Volver arriba"
|
675 |
|
676 |
#: yit-plugin.php:194
|
677 |
msgid "License"
|
@@ -815,6 +858,13 @@ msgctxt "Action links"
|
|
815 |
msgid "Settings"
|
816 |
msgstr "Ajustes"
|
817 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
818 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
819 |
#~ msgid "ON"
|
820 |
#~ msgstr "ON"
|
@@ -1230,9 +1280,6 @@ msgstr "Ajustes"
|
|
1230 |
#~ msgid "Theme Icon"
|
1231 |
#~ msgstr "Icono del tema"
|
1232 |
|
1233 |
-
#~ msgid "None"
|
1234 |
-
#~ msgstr "Ninguno"
|
1235 |
-
|
1236 |
#~ msgid "Field Title"
|
1237 |
#~ msgstr "Campo de título"
|
1238 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-02 07:21:31+00:00\n"
|
8 |
"PO-Revision-Date: 2020-04-06 10:45+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
203 |
msgid "Upload multiple files"
|
204 |
msgstr "Cargar archivos múltiples"
|
205 |
|
206 |
+
#: lib/yit-plugin-panel-wc.php:403
|
207 |
msgid "The changes you have made will be lost if you leave this page."
|
208 |
msgstr "Los cambios que has hecho se perderán si abandonas esta página."
|
209 |
|
211 |
msgid "Plugin Settings"
|
212 |
msgstr "Ajustes del plugin"
|
213 |
|
214 |
+
#: lib/yit-plugin-panel.php:454 lib/yit-plugin-panel.php:457
|
215 |
msgid "How to install premium version"
|
216 |
msgstr "Cómo instalar la versión premium"
|
217 |
|
218 |
+
#: lib/yit-plugin-panel.php:617 lib/yit-plugin-subpanel.php:151
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
220 |
msgid "Save Changes"
|
221 |
msgstr "Guardar cambios"
|
222 |
|
223 |
+
#: lib/yit-plugin-panel.php:621 lib/yit-plugin-subpanel.php:154
|
224 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
225 |
msgid ""
|
226 |
"If you continue with this action, you will reset all options in this page."
|
227 |
msgstr ""
|
228 |
"Si sigues con esta acción, se reiniciarán todas las opciones en esta página."
|
229 |
|
230 |
+
#: lib/yit-plugin-panel.php:624 lib/yit-plugin-subpanel.php:156
|
231 |
msgid "Reset to default"
|
232 |
msgstr "Restablecer a predeterminado"
|
233 |
|
234 |
+
#: lib/yit-plugin-panel.php:625 lib/yit-plugin-subpanel.php:157
|
235 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
236 |
msgid "Are you sure?"
|
237 |
msgstr "¿Estás seguro/a?"
|
238 |
|
239 |
+
#: lib/yit-plugin-panel.php:823
|
240 |
msgid ""
|
241 |
"The element you have entered already exists. Please, enter another name."
|
242 |
msgstr ""
|
243 |
"El elemento que has introducido ya existe. Por favor, introduce otro nombre."
|
244 |
|
245 |
+
#: lib/yit-plugin-panel.php:824
|
246 |
msgid "Settings saved"
|
247 |
msgstr "Ajustes guardados"
|
248 |
|
249 |
+
#: lib/yit-plugin-panel.php:825
|
250 |
msgid "Settings reset"
|
251 |
msgstr "Ajustes reiniciados"
|
252 |
|
253 |
+
#: lib/yit-plugin-panel.php:826
|
254 |
msgid "Element deleted correctly."
|
255 |
msgstr "Elemento borrado correctamente."
|
256 |
|
257 |
+
#: lib/yit-plugin-panel.php:827 lib/yit-plugin-panel.php:828
|
258 |
msgid "Element updated correctly."
|
259 |
msgstr "Elemento actualizado correctamente."
|
260 |
|
261 |
+
#: lib/yit-plugin-panel.php:829
|
262 |
msgid "Database imported correctly."
|
263 |
msgstr "Base de datos importada correctamente."
|
264 |
|
265 |
+
#: lib/yit-plugin-panel.php:830
|
266 |
msgid "An error has occurred during import. Please try again."
|
267 |
msgstr ""
|
268 |
"Ha ocurrido un error durante la importación. Por favor, inténtalo de nuevo."
|
269 |
|
270 |
+
#: lib/yit-plugin-panel.php:831
|
271 |
msgid "The added file is not valid."
|
272 |
msgstr "El archivo añadido no es válido."
|
273 |
|
274 |
+
#: lib/yit-plugin-panel.php:832
|
275 |
msgid "Sorry, import is disabled."
|
276 |
msgstr "Lo sentimos, la importación está deshabilitada."
|
277 |
|
278 |
+
#: lib/yit-plugin-panel.php:833
|
279 |
msgid "Sorting successful."
|
280 |
msgstr "Clasificación fue realizada con éxito."
|
281 |
|
282 |
+
#: lib/yit-plugin-panel.php:1281
|
283 |
msgid "We need your support"
|
284 |
msgstr "Necesitamos tu ayuda"
|
285 |
|
286 |
+
#: lib/yit-plugin-panel.php:1282
|
287 |
msgid "to keep updating and improving the plugin. Please,"
|
288 |
msgstr "para seguir actualizando y mejora el plugin. Por favor,"
|
289 |
|
290 |
+
#: lib/yit-plugin-panel.php:1284
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "ayúdanos dejando una valoración de 5 estrellas"
|
293 |
|
294 |
+
#: lib/yit-plugin-panel.php:1285
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) ¡Gracias!"
|
297 |
|
365 |
"Ha ocurrido un error, lo que probablemente significa que el feed está caído. "
|
366 |
"Inténtalo de nuevo más tarde."
|
367 |
|
368 |
+
#: lib/yith-system-status.php:111
|
369 |
msgid "WordPress Version"
|
370 |
msgstr "Versión de WordPress"
|
371 |
|
372 |
+
#: lib/yith-system-status.php:112
|
373 |
msgid "WooCommerce Version"
|
374 |
msgstr "Versión de WooCommerce"
|
375 |
|
376 |
+
#: lib/yith-system-status.php:113
|
377 |
msgid "Available Memory"
|
378 |
msgstr "Memoria disponible"
|
379 |
|
380 |
+
#: lib/yith-system-status.php:114
|
381 |
msgid "PHP Version"
|
382 |
msgstr "Versión PHP"
|
383 |
|
384 |
+
#: lib/yith-system-status.php:115
|
385 |
msgid "TLS Version"
|
386 |
msgstr "Versión TLS"
|
387 |
|
388 |
+
#: lib/yith-system-status.php:116
|
389 |
msgid "WordPress Cron"
|
390 |
msgstr "Cron de WordPress"
|
391 |
|
392 |
+
#: lib/yith-system-status.php:117
|
393 |
msgid "SimpleXML"
|
394 |
msgstr "SimpleXML"
|
395 |
|
396 |
+
#: lib/yith-system-status.php:118
|
397 |
msgid "MultiByte String"
|
398 |
msgstr "Cadena MultiByte"
|
399 |
|
400 |
+
#: lib/yith-system-status.php:119
|
401 |
msgid "ImageMagick Version"
|
402 |
msgstr "Versión ImageMagick"
|
403 |
|
404 |
+
#: lib/yith-system-status.php:120
|
405 |
msgid "GD Library"
|
406 |
msgstr "Biblioteca GD"
|
407 |
|
408 |
+
#: lib/yith-system-status.php:121
|
409 |
msgid "Iconv Module"
|
410 |
msgstr "Módulo Iconv"
|
411 |
|
412 |
+
#: lib/yith-system-status.php:122
|
413 |
msgid "OPCache Save Comments"
|
414 |
msgstr "Guardar comentarios OPCache"
|
415 |
|
416 |
+
#: lib/yith-system-status.php:123
|
417 |
msgid "URL FOpen"
|
418 |
msgstr "URL FOpen"
|
419 |
|
420 |
+
#: lib/yith-system-status.php:141 lib/yith-system-status.php:142
|
421 |
msgid "System Status"
|
422 |
msgstr "Estado del sistema"
|
423 |
|
424 |
+
#: lib/yith-system-status.php:184
|
425 |
msgid "YITH Plugins"
|
426 |
msgstr "Plugins de YITH"
|
427 |
|
428 |
+
#: lib/yith-system-status.php:192
|
429 |
msgid "WooCommerce"
|
430 |
msgstr "WooCommerce"
|
431 |
|
432 |
+
#: lib/yith-system-status.php:330
|
433 |
msgid "Warning!"
|
434 |
msgstr "¡Atención! "
|
435 |
|
436 |
+
#. translators: %1$s open link tag, %2$s open link tag
|
437 |
+
#: lib/yith-system-status.php:334
|
438 |
+
#, fuzzy
|
439 |
msgid ""
|
440 |
+
"The system check has detected some compatibility issues on your installation."
|
441 |
+
"%1$sClick here%2$s to know more"
|
442 |
msgstr ""
|
443 |
"La comprobación del sistema ha detectado algunos errores en tu instalación. "
|
444 |
"%sHaz clic aquí%s para saber más"
|
445 |
|
446 |
+
#: lib/yith-system-status.php:473
|
447 |
+
msgid "Enabled"
|
448 |
+
msgstr "Activado"
|
449 |
+
|
450 |
+
#: lib/yith-system-status.php:473
|
451 |
+
msgid "Disabled"
|
452 |
+
msgstr "Desactivado"
|
453 |
+
|
454 |
+
#: lib/yith-system-status.php:478
|
455 |
+
msgid "N/A"
|
456 |
+
msgstr "N/D"
|
457 |
+
|
458 |
+
#. translators: %1$s plugin name, %2$s requirement name
|
459 |
+
#: lib/yith-system-status.php:506
|
460 |
+
#, fuzzy
|
461 |
+
msgid "%1$s needs %2$s enabled"
|
462 |
+
msgstr "%s necesita %s enabled"
|
463 |
+
|
464 |
+
#. translators: %1$s plugin name, %2$s required memory amount
|
465 |
+
#: lib/yith-system-status.php:509
|
466 |
+
#, fuzzy
|
467 |
+
msgid "%1$s needs at least %2$s of available memory"
|
468 |
+
msgstr "%s necesita al menos %s de memoria disponible"
|
469 |
+
|
470 |
+
#. translators: %1$s plugin name, %2$s version number
|
471 |
+
#: lib/yith-system-status.php:512
|
472 |
+
#, fuzzy
|
473 |
+
msgid "%1$s needs at least %2$s version"
|
474 |
+
msgstr "%s necesita al menos la versión %s"
|
475 |
+
|
476 |
+
#: lib/yith-system-status.php:537
|
477 |
+
msgid ""
|
478 |
+
"Update it to the latest version in order to benefit of all new features and "
|
479 |
+
"security updates."
|
480 |
+
msgstr ""
|
481 |
+
"Actualízalo a la última versión para beneficiarte de todas las nuevas "
|
482 |
+
"características y actualizaciones de seguridad"
|
483 |
+
|
484 |
+
#: lib/yith-system-status.php:541 lib/yith-system-status.php:547
|
485 |
+
msgid "Contact your hosting company in order to update it."
|
486 |
+
msgstr "Contacta a tu compañía de hosting para actualizarlo."
|
487 |
+
|
488 |
+
#: lib/yith-system-status.php:545
|
489 |
+
#, fuzzy
|
490 |
+
msgid "Contact your hosting company in order to install it."
|
491 |
+
msgstr "Contacta a tu compañía de hosting para activarlo."
|
492 |
+
|
493 |
+
#. translators: %1$s code, %2$s file name
|
494 |
+
#: lib/yith-system-status.php:552
|
495 |
+
#, fuzzy
|
496 |
+
msgid "Remove %1$s from %2$s file"
|
497 |
+
msgstr "Eliminar %s del archivo %s"
|
498 |
+
|
499 |
+
#: lib/yith-system-status.php:560
|
500 |
+
msgid "Contact your hosting company in order to enable it."
|
501 |
+
msgstr "Contacta a tu compañía de hosting para activarlo."
|
502 |
+
|
503 |
+
#. translators: %1$s opening link tag, %2$s closing link tag
|
504 |
+
#: lib/yith-system-status.php:564 lib/yith-system-status.php:588
|
505 |
+
#, fuzzy
|
506 |
+
msgid ""
|
507 |
+
"Read more %1$shere%2$s or contact your hosting company in order to increase "
|
508 |
+
"it."
|
509 |
+
msgstr ""
|
510 |
+
"Lee más %s aquí%s o contacta a tu compañía de hosting para incrementarlo."
|
511 |
+
|
512 |
+
#. translators: %s recommended memory amount
|
513 |
+
#: lib/yith-system-status.php:585
|
514 |
+
msgid ""
|
515 |
+
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
516 |
+
"available memory"
|
517 |
+
msgstr ""
|
518 |
+
"Para el optimo funcionamiento de los plugins, sugerimos configurar al menos "
|
519 |
+
"%s de memoria disponible"
|
520 |
+
|
521 |
+
#. translators: %1$s TLS label, %2$s cURL label
|
522 |
+
#: lib/yith-system-status.php:593
|
523 |
+
#, fuzzy
|
524 |
+
msgid ""
|
525 |
+
"The system check cannot determine which %1$s version is installed because "
|
526 |
+
"%2$s module is disabled. Ask your hosting company to enable it."
|
527 |
+
msgstr ""
|
528 |
+
"No podemos determinar qué versión <b>TLS</b> está instalada porque <b>cURL</"
|
529 |
+
"b> el módulo está desactivado. Solicita a tu compañía de hosting que lo "
|
530 |
+
"active."
|
531 |
+
|
532 |
+
#. translators: %1$s TLS label
|
533 |
+
#: lib/yith-system-status.php:596
|
534 |
+
msgid ""
|
535 |
+
"The system check cannot determine which %1$s version is installed due to a "
|
536 |
+
"connection issue between your site and our server."
|
537 |
+
msgstr ""
|
538 |
+
|
539 |
#: templates/fields/ajax-customers.php:57
|
540 |
msgid "Search Customers"
|
541 |
msgstr "Buscar clientes"
|
666 |
msgid "Reset Defaults"
|
667 |
msgstr "Ajustes predeterminados"
|
668 |
|
669 |
+
#: templates/sysinfo/system-information-panel.php:39
|
670 |
msgid "YITH System Information"
|
671 |
msgstr "Información del sistema de YITH"
|
672 |
|
673 |
+
#: templates/sysinfo/system-information-panel.php:50
|
674 |
+
msgid "WP debug.log file"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
675 |
msgstr ""
|
|
|
|
|
676 |
|
677 |
+
#: templates/sysinfo/system-information-panel.php:54
|
678 |
+
msgid "PHP error_log file"
|
|
|
|
|
|
|
679 |
msgstr ""
|
|
|
680 |
|
681 |
+
#: templates/sysinfo/system-information-panel.php:59
|
682 |
+
#: templates/sysinfo/system-information-panel.php:83
|
683 |
+
msgid "Back to System panel"
|
684 |
+
msgstr "Volver al panel del Sistema"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
685 |
|
686 |
+
#: templates/sysinfo/system-information-panel.php:96
|
687 |
+
msgid "Back to top"
|
688 |
+
msgstr "Volver arriba"
|
689 |
|
690 |
+
#: templates/sysinfo/system-information-panel.php:104
|
691 |
+
msgid "Site URL"
|
692 |
+
msgstr "URL del sitio"
|
693 |
|
694 |
+
#: templates/sysinfo/system-information-panel.php:112
|
695 |
+
msgid "Output IP Address"
|
696 |
+
msgstr "Salida Dirección IP"
|
697 |
|
698 |
+
#: templates/sysinfo/system-information-panel.php:120
|
699 |
+
msgid "Defined WP_CACHE"
|
|
|
|
|
700 |
msgstr ""
|
|
|
|
|
|
|
701 |
|
702 |
+
#: templates/sysinfo/system-information-panel.php:123
|
703 |
+
msgid "Yes"
|
|
|
|
|
704 |
msgstr ""
|
|
|
|
|
705 |
|
706 |
+
#: templates/sysinfo/system-information-panel.php:123
|
707 |
+
#, fuzzy
|
708 |
+
msgid "No"
|
709 |
+
msgstr "Ninguno"
|
710 |
+
|
711 |
+
#: templates/sysinfo/system-information-panel.php:159
|
712 |
msgid "Show full PHPInfo"
|
713 |
msgstr "Mostrar PHPInfo completa"
|
714 |
|
715 |
+
#: templates/sysinfo/system-information-panel.php:167
|
716 |
+
msgid "Show log files"
|
717 |
+
msgstr ""
|
|
|
|
|
|
|
|
|
718 |
|
719 |
#: yit-plugin.php:194
|
720 |
msgid "License"
|
858 |
msgid "Settings"
|
859 |
msgstr "Ajustes"
|
860 |
|
861 |
+
#~ msgid ""
|
862 |
+
#~ "<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
863 |
+
#~ "install it."
|
864 |
+
#~ msgstr ""
|
865 |
+
#~ "<b>ImageMagick</b> el módulo no está instalado. Solicita a tu compañia de "
|
866 |
+
#~ "hosting que lo instale."
|
867 |
+
|
868 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
869 |
#~ msgid "ON"
|
870 |
#~ msgstr "ON"
|
1280 |
#~ msgid "Theme Icon"
|
1281 |
#~ msgstr "Icono del tema"
|
1282 |
|
|
|
|
|
|
|
1283 |
#~ msgid "Field Title"
|
1284 |
#~ msgstr "Campo de título"
|
1285 |
|
plugin-fw/languages/yith-plugin-fw-it_IT.mo
CHANGED
Binary file
|
plugin-fw/languages/yith-plugin-fw-it_IT.po
CHANGED
@@ -4,15 +4,15 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
-
"PO-Revision-Date: 2020-
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
-
"X-Generator: Poedit 2.2.
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c\n"
|
@@ -202,7 +202,7 @@ msgstr "Aggiungi %s dalla immagini"
|
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Carica file multipli"
|
204 |
|
205 |
-
#: lib/yit-plugin-panel-wc.php:
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
|
208 |
|
@@ -210,16 +210,16 @@ msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
|
|
210 |
msgid "Plugin Settings"
|
211 |
msgstr "Impostazioni plugin"
|
212 |
|
213 |
-
#: lib/yit-plugin-panel.php:
|
214 |
msgid "How to install premium version"
|
215 |
msgstr "Come installare la versione premium"
|
216 |
|
217 |
-
#: lib/yit-plugin-panel.php:
|
218 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
219 |
msgid "Save Changes"
|
220 |
msgstr "Salva modifiche"
|
221 |
|
222 |
-
#: lib/yit-plugin-panel.php:
|
223 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
224 |
msgid ""
|
225 |
"If you continue with this action, you will reset all options in this page."
|
@@ -227,69 +227,69 @@ msgstr ""
|
|
227 |
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
|
228 |
"reimpostate."
|
229 |
|
230 |
-
#: lib/yit-plugin-panel.php:
|
231 |
msgid "Reset to default"
|
232 |
msgstr "Ripristina configurazione predefinita"
|
233 |
|
234 |
-
#: lib/yit-plugin-panel.php:
|
235 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
236 |
msgid "Are you sure?"
|
237 |
msgstr "Sei sicuro?"
|
238 |
|
239 |
-
#: lib/yit-plugin-panel.php:
|
240 |
msgid ""
|
241 |
"The element you have entered already exists. Please, enter another name."
|
242 |
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
|
243 |
|
244 |
-
#: lib/yit-plugin-panel.php:
|
245 |
msgid "Settings saved"
|
246 |
msgstr "Impostazioni salvate"
|
247 |
|
248 |
-
#: lib/yit-plugin-panel.php:
|
249 |
msgid "Settings reset"
|
250 |
msgstr "Impostazioni azzerate"
|
251 |
|
252 |
-
#: lib/yit-plugin-panel.php:
|
253 |
msgid "Element deleted correctly."
|
254 |
msgstr "Elemento rimosso correttamente."
|
255 |
|
256 |
-
#: lib/yit-plugin-panel.php:
|
257 |
msgid "Element updated correctly."
|
258 |
msgstr "Elemento aggiornato correttamente."
|
259 |
|
260 |
-
#: lib/yit-plugin-panel.php:
|
261 |
msgid "Database imported correctly."
|
262 |
msgstr "Database importato correttamente."
|
263 |
|
264 |
-
#: lib/yit-plugin-panel.php:
|
265 |
msgid "An error has occurred during import. Please try again."
|
266 |
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
|
267 |
|
268 |
-
#: lib/yit-plugin-panel.php:
|
269 |
msgid "The added file is not valid."
|
270 |
msgstr "Il file aggiunto non è valido."
|
271 |
|
272 |
-
#: lib/yit-plugin-panel.php:
|
273 |
msgid "Sorry, import is disabled."
|
274 |
msgstr "Ci dispiace, l'importazione è disabilitata."
|
275 |
|
276 |
-
#: lib/yit-plugin-panel.php:
|
277 |
msgid "Sorting successful."
|
278 |
msgstr "Ordinamento effettuato con successo."
|
279 |
|
280 |
-
#: lib/yit-plugin-panel.php:
|
281 |
msgid "We need your support"
|
282 |
msgstr "Abbiamo bisogno del tuo sostegno"
|
283 |
|
284 |
-
#: lib/yit-plugin-panel.php:
|
285 |
msgid "to keep updating and improving the plugin. Please,"
|
286 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
287 |
|
288 |
-
#: lib/yit-plugin-panel.php:
|
289 |
msgid "help us by leaving a five-star rating"
|
290 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
291 |
|
292 |
-
#: lib/yit-plugin-panel.php:
|
293 |
msgid ":) Thanks!"
|
294 |
msgstr ":) Grazie!"
|
295 |
|
@@ -360,81 +360,171 @@ msgstr ""
|
|
360 |
"Si è verificato un errore probabilmente causato dal feed non disponibile. "
|
361 |
"Riprova più tardi."
|
362 |
|
363 |
-
#: lib/yith-system-status.php:
|
364 |
msgid "WordPress Version"
|
365 |
msgstr "Versione di WordPress"
|
366 |
|
367 |
-
#: lib/yith-system-status.php:
|
368 |
msgid "WooCommerce Version"
|
369 |
msgstr "Versione di WooCommerce"
|
370 |
|
371 |
-
#: lib/yith-system-status.php:
|
372 |
msgid "Available Memory"
|
373 |
msgstr "Memoria disponibile"
|
374 |
|
375 |
-
#: lib/yith-system-status.php:
|
376 |
msgid "PHP Version"
|
377 |
msgstr "Versione PHP"
|
378 |
|
379 |
-
#: lib/yith-system-status.php:
|
380 |
msgid "TLS Version"
|
381 |
msgstr "Versione TLS"
|
382 |
|
383 |
-
#: lib/yith-system-status.php:
|
384 |
msgid "WordPress Cron"
|
385 |
msgstr "Cron WordPress"
|
386 |
|
387 |
-
#: lib/yith-system-status.php:
|
388 |
msgid "SimpleXML"
|
389 |
msgstr "SimpleXML"
|
390 |
|
391 |
-
#: lib/yith-system-status.php:
|
392 |
msgid "MultiByte String"
|
393 |
msgstr "MultiByte String"
|
394 |
|
395 |
-
#: lib/yith-system-status.php:
|
396 |
msgid "ImageMagick Version"
|
397 |
msgstr "Versione di ImageMagick"
|
398 |
|
399 |
-
#: lib/yith-system-status.php:
|
400 |
msgid "GD Library"
|
401 |
msgstr "GD Library"
|
402 |
|
403 |
-
#: lib/yith-system-status.php:
|
404 |
msgid "Iconv Module"
|
405 |
msgstr "Iconv Module"
|
406 |
|
407 |
-
#: lib/yith-system-status.php:
|
408 |
msgid "OPCache Save Comments"
|
409 |
msgstr "OPCache Save Comments"
|
410 |
|
411 |
-
#: lib/yith-system-status.php:
|
412 |
msgid "URL FOpen"
|
413 |
msgstr "URL FOpen"
|
414 |
|
415 |
-
#: lib/yith-system-status.php:
|
416 |
msgid "System Status"
|
417 |
msgstr "Stato del sistema"
|
418 |
|
419 |
-
#: lib/yith-system-status.php:
|
420 |
msgid "YITH Plugins"
|
421 |
msgstr "Plugin YITH"
|
422 |
|
423 |
-
#: lib/yith-system-status.php:
|
424 |
msgid "WooCommerce"
|
425 |
msgstr "WooCommerce"
|
426 |
|
427 |
-
#: lib/yith-system-status.php:
|
428 |
msgid "Warning!"
|
429 |
msgstr "Attenzione!"
|
430 |
|
431 |
-
|
|
|
432 |
msgid ""
|
433 |
-
"The system check has detected some compatibility issues on your "
|
434 |
-
"
|
435 |
msgstr ""
|
436 |
"Il controllo di sistema ha individuato delle incompatibilità con la tua "
|
437 |
-
"installazione. %sVedi qui%s per maggiori
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
438 |
|
439 |
#: templates/fields/ajax-customers.php:57
|
440 |
msgid "Search Customers"
|
@@ -566,115 +656,60 @@ msgstr "(Default: <i %s></i> )"
|
|
566 |
msgid "Reset Defaults"
|
567 |
msgstr "Ripristina impostazioni iniziali"
|
568 |
|
569 |
-
#: templates/sysinfo/system-information-panel.php:
|
570 |
msgid "YITH System Information"
|
571 |
msgstr "YITH System Information"
|
572 |
|
573 |
-
#: templates/sysinfo/system-information-panel.php:
|
574 |
-
msgid "
|
575 |
-
msgstr "
|
576 |
-
|
577 |
-
#: templates/sysinfo/system-information-panel.php:46
|
578 |
-
msgid "Output IP Address"
|
579 |
-
msgstr "Indirizzo IP di output"
|
580 |
-
|
581 |
-
#: templates/sysinfo/system-information-panel.php:76
|
582 |
-
msgid "Enabled"
|
583 |
-
msgstr "Abilitato"
|
584 |
|
585 |
-
#: templates/sysinfo/system-information-panel.php:
|
586 |
-
msgid "
|
587 |
-
msgstr "
|
588 |
|
589 |
-
#: templates/sysinfo/system-information-panel.php:
|
590 |
-
|
591 |
-
|
|
|
592 |
|
593 |
#: templates/sysinfo/system-information-panel.php:96
|
594 |
-
msgid "
|
595 |
-
msgstr "
|
596 |
-
|
597 |
-
#: templates/sysinfo/system-information-panel.php:98
|
598 |
-
msgid "%s needs at least %s of available memory"
|
599 |
-
msgstr "%s necessita almeno %s di memoria disponibile"
|
600 |
-
|
601 |
-
#: templates/sysinfo/system-information-panel.php:100
|
602 |
-
#: templates/sysinfo/system-information-panel.php:149
|
603 |
-
msgid ""
|
604 |
-
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
605 |
-
"available memory"
|
606 |
-
msgstr ""
|
607 |
-
"Per il funzionamento ottimale dei nostri plugin consigliamo di impostare "
|
608 |
-
"almeno %s della memoria disponibile"
|
609 |
-
|
610 |
-
#: templates/sysinfo/system-information-panel.php:102
|
611 |
-
#: templates/sysinfo/system-information-panel.php:137
|
612 |
-
#: templates/sysinfo/system-information-panel.php:151
|
613 |
-
msgid ""
|
614 |
-
"Read more %s here%s or contact your hosting company in order to increase it."
|
615 |
-
msgstr ""
|
616 |
-
"Per maggiori informazioni %s leggi questo%s oppure contatta il tuo host per "
|
617 |
-
"un upgrade."
|
618 |
-
|
619 |
-
#: templates/sysinfo/system-information-panel.php:105
|
620 |
-
msgid "%s needs at least %s version"
|
621 |
-
msgstr "%s necessita almeno della versione %s"
|
622 |
-
|
623 |
-
#: templates/sysinfo/system-information-panel.php:116
|
624 |
-
msgid ""
|
625 |
-
"Update it to the latest version in order to benefit of all new features and "
|
626 |
-
"security updates."
|
627 |
-
msgstr ""
|
628 |
-
"Aggiorna all'ultima versione per beneficiare di tutte le nuove funzionalità "
|
629 |
-
"e degli aggiornamenti di sicurezza."
|
630 |
|
631 |
-
#: templates/sysinfo/system-information-panel.php:
|
632 |
-
msgid "
|
633 |
-
msgstr "
|
634 |
|
635 |
-
#: templates/sysinfo/system-information-panel.php:
|
636 |
-
msgid "
|
637 |
-
msgstr "
|
638 |
|
639 |
-
#: templates/sysinfo/system-information-panel.php:
|
640 |
-
msgid "
|
641 |
-
msgstr "
|
642 |
|
643 |
-
#: templates/sysinfo/system-information-panel.php:
|
644 |
-
msgid ""
|
645 |
-
|
646 |
-
"b> module is disabled. Ask your hosting company to enable it."
|
647 |
-
msgstr ""
|
648 |
-
"Non ci è stato possibile determinare quale versione <b>TLS</b> è installata "
|
649 |
-
"in quanto il modulo <b>cURL</b> è disattivato. Chiedi al tuo servizio "
|
650 |
-
"hosting di attivarlo."
|
651 |
|
652 |
-
#: templates/sysinfo/system-information-panel.php:
|
653 |
-
msgid ""
|
654 |
-
|
655 |
-
"install it."
|
656 |
-
msgstr ""
|
657 |
-
"Il modulo <b>ImageMagick</b> non è installato. Chiedi al tuo servizio di "
|
658 |
-
"hosting di installarlo."
|
659 |
|
660 |
-
#: templates/sysinfo/system-information-panel.php:
|
661 |
msgid "Show full PHPInfo"
|
662 |
msgstr "Mostra tutto il contenuto di PHPInfo"
|
663 |
|
664 |
-
#: templates/sysinfo/system-information-panel.php:
|
665 |
-
msgid "
|
666 |
-
msgstr "
|
667 |
-
|
668 |
-
#: templates/sysinfo/system-information-panel.php:193
|
669 |
-
msgid "Back to top"
|
670 |
-
msgstr "Torna su"
|
671 |
|
672 |
#: yit-plugin.php:194
|
673 |
msgid "License"
|
674 |
msgstr "Chiave di licenza"
|
675 |
|
676 |
#. Author of the plugin/theme
|
677 |
-
#, fuzzy
|
678 |
msgid "YITH"
|
679 |
msgstr "YITH"
|
680 |
|
@@ -754,32 +789,32 @@ msgstr "YITH"
|
|
754 |
#: templates/fields/dimensions.php:16
|
755 |
msgctxt "Position in the \"Dimensions\" field"
|
756 |
msgid "Top"
|
757 |
-
msgstr ""
|
758 |
|
759 |
#: templates/fields/dimensions.php:17
|
760 |
msgctxt "Position in the \"Dimensions\" field"
|
761 |
msgid "Right"
|
762 |
-
msgstr ""
|
763 |
|
764 |
#: templates/fields/dimensions.php:18
|
765 |
msgctxt "Position in the \"Dimensions\" field"
|
766 |
msgid "Bottom"
|
767 |
-
msgstr ""
|
768 |
|
769 |
#: templates/fields/dimensions.php:19
|
770 |
msgctxt "Position in the \"Dimensions\" field"
|
771 |
msgid "Left"
|
772 |
-
msgstr ""
|
773 |
|
774 |
#: templates/fields/dimensions.php:117
|
775 |
msgctxt "Tooltip in the \"Dimensions\" field"
|
776 |
msgid "Link values together"
|
777 |
-
msgstr ""
|
778 |
|
779 |
#: templates/fields/onoff.php:24
|
780 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
781 |
msgid "YES"
|
782 |
-
msgstr "
|
783 |
|
784 |
#: templates/fields/onoff.php:25
|
785 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
@@ -811,6 +846,13 @@ msgctxt "Action links"
|
|
811 |
msgid "Settings"
|
812 |
msgstr "Impostazioni"
|
813 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
814 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
815 |
#~ msgid "ON"
|
816 |
#~ msgstr "SÌ"
|
@@ -1213,9 +1255,6 @@ msgstr "Impostazioni"
|
|
1213 |
#~ msgid "Theme Icon"
|
1214 |
#~ msgstr "Icona tema"
|
1215 |
|
1216 |
-
#~ msgid "None"
|
1217 |
-
#~ msgstr "Nessuno"
|
1218 |
-
|
1219 |
#~ msgid "Field Title"
|
1220 |
#~ msgstr "Titolo campo"
|
1221 |
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-02 07:21:31+00:00\n"
|
8 |
+
"PO-Revision-Date: 2020-06-23 23:17+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: YIThemes <plugins@yithemes.com>\n"
|
11 |
"Language: it_IT\n"
|
12 |
"MIME-Version: 1.0\n"
|
13 |
"Content-Type: text/plain; charset=UTF-8\n"
|
14 |
"Content-Transfer-Encoding: 8bit\n"
|
15 |
+
"X-Generator: Poedit 2.2.3\n"
|
16 |
"X-Poedit-KeywordsList: __;_e;_x:1,2c;_ex:1,2c;_n:1,2;_nx:1,2,4c;_n_noop:1,2;"
|
17 |
"_nx_noop:1,2,3c;esc_attr__;esc_html__;esc_attr_e;esc_html_e;esc_attr_x:1,2c;"
|
18 |
"esc_html_x:1,2c\n"
|
202 |
msgid "Upload multiple files"
|
203 |
msgstr "Carica file multipli"
|
204 |
|
205 |
+
#: lib/yit-plugin-panel-wc.php:403
|
206 |
msgid "The changes you have made will be lost if you leave this page."
|
207 |
msgstr "Perderai tutti i cambiamenti effettuati se lasci questa pagina."
|
208 |
|
210 |
msgid "Plugin Settings"
|
211 |
msgstr "Impostazioni plugin"
|
212 |
|
213 |
+
#: lib/yit-plugin-panel.php:454 lib/yit-plugin-panel.php:457
|
214 |
msgid "How to install premium version"
|
215 |
msgstr "Come installare la versione premium"
|
216 |
|
217 |
+
#: lib/yit-plugin-panel.php:617 lib/yit-plugin-subpanel.php:151
|
218 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
219 |
msgid "Save Changes"
|
220 |
msgstr "Salva modifiche"
|
221 |
|
222 |
+
#: lib/yit-plugin-panel.php:621 lib/yit-plugin-subpanel.php:154
|
223 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
224 |
msgid ""
|
225 |
"If you continue with this action, you will reset all options in this page."
|
227 |
"Se prosegui con questa azione, tutte le opzioni di questa pagina saranno "
|
228 |
"reimpostate."
|
229 |
|
230 |
+
#: lib/yit-plugin-panel.php:624 lib/yit-plugin-subpanel.php:156
|
231 |
msgid "Reset to default"
|
232 |
msgstr "Ripristina configurazione predefinita"
|
233 |
|
234 |
+
#: lib/yit-plugin-panel.php:625 lib/yit-plugin-subpanel.php:157
|
235 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
236 |
msgid "Are you sure?"
|
237 |
msgstr "Sei sicuro?"
|
238 |
|
239 |
+
#: lib/yit-plugin-panel.php:823
|
240 |
msgid ""
|
241 |
"The element you have entered already exists. Please, enter another name."
|
242 |
msgstr "L'elemento inserito esiste già. Per favore, inserisci un altro nome."
|
243 |
|
244 |
+
#: lib/yit-plugin-panel.php:824
|
245 |
msgid "Settings saved"
|
246 |
msgstr "Impostazioni salvate"
|
247 |
|
248 |
+
#: lib/yit-plugin-panel.php:825
|
249 |
msgid "Settings reset"
|
250 |
msgstr "Impostazioni azzerate"
|
251 |
|
252 |
+
#: lib/yit-plugin-panel.php:826
|
253 |
msgid "Element deleted correctly."
|
254 |
msgstr "Elemento rimosso correttamente."
|
255 |
|
256 |
+
#: lib/yit-plugin-panel.php:827 lib/yit-plugin-panel.php:828
|
257 |
msgid "Element updated correctly."
|
258 |
msgstr "Elemento aggiornato correttamente."
|
259 |
|
260 |
+
#: lib/yit-plugin-panel.php:829
|
261 |
msgid "Database imported correctly."
|
262 |
msgstr "Database importato correttamente."
|
263 |
|
264 |
+
#: lib/yit-plugin-panel.php:830
|
265 |
msgid "An error has occurred during import. Please try again."
|
266 |
msgstr "Si è verificato un errore durante l'importazione. Prova di nuovo."
|
267 |
|
268 |
+
#: lib/yit-plugin-panel.php:831
|
269 |
msgid "The added file is not valid."
|
270 |
msgstr "Il file aggiunto non è valido."
|
271 |
|
272 |
+
#: lib/yit-plugin-panel.php:832
|
273 |
msgid "Sorry, import is disabled."
|
274 |
msgstr "Ci dispiace, l'importazione è disabilitata."
|
275 |
|
276 |
+
#: lib/yit-plugin-panel.php:833
|
277 |
msgid "Sorting successful."
|
278 |
msgstr "Ordinamento effettuato con successo."
|
279 |
|
280 |
+
#: lib/yit-plugin-panel.php:1281
|
281 |
msgid "We need your support"
|
282 |
msgstr "Abbiamo bisogno del tuo sostegno"
|
283 |
|
284 |
+
#: lib/yit-plugin-panel.php:1282
|
285 |
msgid "to keep updating and improving the plugin. Please,"
|
286 |
msgstr "per poter continuare ad aggiornare e migliorare il plugin."
|
287 |
|
288 |
+
#: lib/yit-plugin-panel.php:1284
|
289 |
msgid "help us by leaving a five-star rating"
|
290 |
msgstr "Puoi darci una mano lasciando una recensione a 5 stelle"
|
291 |
|
292 |
+
#: lib/yit-plugin-panel.php:1285
|
293 |
msgid ":) Thanks!"
|
294 |
msgstr ":) Grazie!"
|
295 |
|
360 |
"Si è verificato un errore probabilmente causato dal feed non disponibile. "
|
361 |
"Riprova più tardi."
|
362 |
|
363 |
+
#: lib/yith-system-status.php:111
|
364 |
msgid "WordPress Version"
|
365 |
msgstr "Versione di WordPress"
|
366 |
|
367 |
+
#: lib/yith-system-status.php:112
|
368 |
msgid "WooCommerce Version"
|
369 |
msgstr "Versione di WooCommerce"
|
370 |
|
371 |
+
#: lib/yith-system-status.php:113
|
372 |
msgid "Available Memory"
|
373 |
msgstr "Memoria disponibile"
|
374 |
|
375 |
+
#: lib/yith-system-status.php:114
|
376 |
msgid "PHP Version"
|
377 |
msgstr "Versione PHP"
|
378 |
|
379 |
+
#: lib/yith-system-status.php:115
|
380 |
msgid "TLS Version"
|
381 |
msgstr "Versione TLS"
|
382 |
|
383 |
+
#: lib/yith-system-status.php:116
|
384 |
msgid "WordPress Cron"
|
385 |
msgstr "Cron WordPress"
|
386 |
|
387 |
+
#: lib/yith-system-status.php:117
|
388 |
msgid "SimpleXML"
|
389 |
msgstr "SimpleXML"
|
390 |
|
391 |
+
#: lib/yith-system-status.php:118
|
392 |
msgid "MultiByte String"
|
393 |
msgstr "MultiByte String"
|
394 |
|
395 |
+
#: lib/yith-system-status.php:119
|
396 |
msgid "ImageMagick Version"
|
397 |
msgstr "Versione di ImageMagick"
|
398 |
|
399 |
+
#: lib/yith-system-status.php:120
|
400 |
msgid "GD Library"
|
401 |
msgstr "GD Library"
|
402 |
|
403 |
+
#: lib/yith-system-status.php:121
|
404 |
msgid "Iconv Module"
|
405 |
msgstr "Iconv Module"
|
406 |
|
407 |
+
#: lib/yith-system-status.php:122
|
408 |
msgid "OPCache Save Comments"
|
409 |
msgstr "OPCache Save Comments"
|
410 |
|
411 |
+
#: lib/yith-system-status.php:123
|
412 |
msgid "URL FOpen"
|
413 |
msgstr "URL FOpen"
|
414 |
|
415 |
+
#: lib/yith-system-status.php:141 lib/yith-system-status.php:142
|
416 |
msgid "System Status"
|
417 |
msgstr "Stato del sistema"
|
418 |
|
419 |
+
#: lib/yith-system-status.php:184
|
420 |
msgid "YITH Plugins"
|
421 |
msgstr "Plugin YITH"
|
422 |
|
423 |
+
#: lib/yith-system-status.php:192
|
424 |
msgid "WooCommerce"
|
425 |
msgstr "WooCommerce"
|
426 |
|
427 |
+
#: lib/yith-system-status.php:330
|
428 |
msgid "Warning!"
|
429 |
msgstr "Attenzione!"
|
430 |
|
431 |
+
#. translators: %1$s open link tag, %2$s open link tag
|
432 |
+
#: lib/yith-system-status.php:334
|
433 |
msgid ""
|
434 |
+
"The system check has detected some compatibility issues on your installation."
|
435 |
+
"%1$sClick here%2$s to know more"
|
436 |
msgstr ""
|
437 |
"Il controllo di sistema ha individuato delle incompatibilità con la tua "
|
438 |
+
"installazione. %1$sVedi qui%2$s per maggiori dettagli"
|
439 |
+
|
440 |
+
#: lib/yith-system-status.php:473
|
441 |
+
msgid "Enabled"
|
442 |
+
msgstr "Abilitato"
|
443 |
+
|
444 |
+
#: lib/yith-system-status.php:473
|
445 |
+
msgid "Disabled"
|
446 |
+
msgstr "Disabilitato"
|
447 |
+
|
448 |
+
#: lib/yith-system-status.php:478
|
449 |
+
msgid "N/A"
|
450 |
+
msgstr "N.D."
|
451 |
+
|
452 |
+
#. translators: %1$s plugin name, %2$s requirement name
|
453 |
+
#: lib/yith-system-status.php:506
|
454 |
+
msgid "%1$s needs %2$s enabled"
|
455 |
+
msgstr "%1$s necessita dell'attivazione di %2$s"
|
456 |
+
|
457 |
+
#. translators: %1$s plugin name, %2$s required memory amount
|
458 |
+
#: lib/yith-system-status.php:509
|
459 |
+
msgid "%1$s needs at least %2$s of available memory"
|
460 |
+
msgstr "%1$s necessita di almeno %2$s di memoria disponibile"
|
461 |
+
|
462 |
+
#. translators: %1$s plugin name, %2$s version number
|
463 |
+
#: lib/yith-system-status.php:512
|
464 |
+
msgid "%1$s needs at least %2$s version"
|
465 |
+
msgstr "%1$s necessita almeno della versione %2$s"
|
466 |
+
|
467 |
+
#: lib/yith-system-status.php:537
|
468 |
+
msgid ""
|
469 |
+
"Update it to the latest version in order to benefit of all new features and "
|
470 |
+
"security updates."
|
471 |
+
msgstr ""
|
472 |
+
"Aggiorna all'ultima versione per beneficiare di tutte le nuove funzionalità "
|
473 |
+
"e degli aggiornamenti di sicurezza."
|
474 |
+
|
475 |
+
#: lib/yith-system-status.php:541 lib/yith-system-status.php:547
|
476 |
+
msgid "Contact your hosting company in order to update it."
|
477 |
+
msgstr "Contatta il tuo servizio hosting per aggiornarlo."
|
478 |
+
|
479 |
+
#: lib/yith-system-status.php:545
|
480 |
+
msgid "Contact your hosting company in order to install it."
|
481 |
+
msgstr "Per installarlo contatta il tuo servizio di hosting."
|
482 |
+
|
483 |
+
#. translators: %1$s code, %2$s file name
|
484 |
+
#: lib/yith-system-status.php:552
|
485 |
+
msgid "Remove %1$s from %2$s file"
|
486 |
+
msgstr "Rimuovi %1$s dal file %2$s"
|
487 |
+
|
488 |
+
#: lib/yith-system-status.php:560
|
489 |
+
msgid "Contact your hosting company in order to enable it."
|
490 |
+
msgstr "Per attivarlo contatta il tuo servizio di hosting."
|
491 |
+
|
492 |
+
#. translators: %1$s opening link tag, %2$s closing link tag
|
493 |
+
#: lib/yith-system-status.php:564 lib/yith-system-status.php:588
|
494 |
+
msgid ""
|
495 |
+
"Read more %1$shere%2$s or contact your hosting company in order to increase "
|
496 |
+
"it."
|
497 |
+
msgstr ""
|
498 |
+
"Per maggiori informazioni %1$sleggi questo%2$s oppure contatta il tuo host "
|
499 |
+
"per un upgrade."
|
500 |
+
|
501 |
+
#. translators: %s recommended memory amount
|
502 |
+
#: lib/yith-system-status.php:585
|
503 |
+
msgid ""
|
504 |
+
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
505 |
+
"available memory"
|
506 |
+
msgstr ""
|
507 |
+
"Per il funzionamento ottimale dei nostri plugin consigliamo di impostare "
|
508 |
+
"almeno %s della memoria disponibile"
|
509 |
+
|
510 |
+
#. translators: %1$s TLS label, %2$s cURL label
|
511 |
+
#: lib/yith-system-status.php:593
|
512 |
+
msgid ""
|
513 |
+
"The system check cannot determine which %1$s version is installed because "
|
514 |
+
"%2$s module is disabled. Ask your hosting company to enable it."
|
515 |
+
msgstr ""
|
516 |
+
"Non ci è stato possibile determinare quale versione di %1$s è installata in "
|
517 |
+
"quanto il modulo %2$s è disattivato. Chiedi al tuo servizio hosting di "
|
518 |
+
"attivarlo."
|
519 |
+
|
520 |
+
#. translators: %1$s TLS label
|
521 |
+
#: lib/yith-system-status.php:596
|
522 |
+
msgid ""
|
523 |
+
"The system check cannot determine which %1$s version is installed due to a "
|
524 |
+
"connection issue between your site and our server."
|
525 |
+
msgstr ""
|
526 |
+
"Non ci è stato possibile determinare quale versione di %1$s è installata a "
|
527 |
+
"causa di un problema di connessione fra il tuo sito e il nostro server."
|
528 |
|
529 |
#: templates/fields/ajax-customers.php:57
|
530 |
msgid "Search Customers"
|
656 |
msgid "Reset Defaults"
|
657 |
msgstr "Ripristina impostazioni iniziali"
|
658 |
|
659 |
+
#: templates/sysinfo/system-information-panel.php:39
|
660 |
msgid "YITH System Information"
|
661 |
msgstr "YITH System Information"
|
662 |
|
663 |
+
#: templates/sysinfo/system-information-panel.php:50
|
664 |
+
msgid "WP debug.log file"
|
665 |
+
msgstr "WP debug.log file"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
666 |
|
667 |
+
#: templates/sysinfo/system-information-panel.php:54
|
668 |
+
msgid "PHP error_log file"
|
669 |
+
msgstr "PHP error_log file"
|
670 |
|
671 |
+
#: templates/sysinfo/system-information-panel.php:59
|
672 |
+
#: templates/sysinfo/system-information-panel.php:83
|
673 |
+
msgid "Back to System panel"
|
674 |
+
msgstr "Torna al pannello di Sistema"
|
675 |
|
676 |
#: templates/sysinfo/system-information-panel.php:96
|
677 |
+
msgid "Back to top"
|
678 |
+
msgstr "Torna su"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
679 |
|
680 |
+
#: templates/sysinfo/system-information-panel.php:104
|
681 |
+
msgid "Site URL"
|
682 |
+
msgstr "URL del sito"
|
683 |
|
684 |
+
#: templates/sysinfo/system-information-panel.php:112
|
685 |
+
msgid "Output IP Address"
|
686 |
+
msgstr "Indirizzo IP di output"
|
687 |
|
688 |
+
#: templates/sysinfo/system-information-panel.php:120
|
689 |
+
msgid "Defined WP_CACHE"
|
690 |
+
msgstr "Defined WP_CACHE"
|
691 |
|
692 |
+
#: templates/sysinfo/system-information-panel.php:123
|
693 |
+
msgid "Yes"
|
694 |
+
msgstr "Sì"
|
|
|
|
|
|
|
|
|
|
|
695 |
|
696 |
+
#: templates/sysinfo/system-information-panel.php:123
|
697 |
+
msgid "No"
|
698 |
+
msgstr "No"
|
|
|
|
|
|
|
|
|
699 |
|
700 |
+
#: templates/sysinfo/system-information-panel.php:159
|
701 |
msgid "Show full PHPInfo"
|
702 |
msgstr "Mostra tutto il contenuto di PHPInfo"
|
703 |
|
704 |
+
#: templates/sysinfo/system-information-panel.php:167
|
705 |
+
msgid "Show log files"
|
706 |
+
msgstr "Mostra i log"
|
|
|
|
|
|
|
|
|
707 |
|
708 |
#: yit-plugin.php:194
|
709 |
msgid "License"
|
710 |
msgstr "Chiave di licenza"
|
711 |
|
712 |
#. Author of the plugin/theme
|
|
|
713 |
msgid "YITH"
|
714 |
msgstr "YITH"
|
715 |
|
789 |
#: templates/fields/dimensions.php:16
|
790 |
msgctxt "Position in the \"Dimensions\" field"
|
791 |
msgid "Top"
|
792 |
+
msgstr "In alto"
|
793 |
|
794 |
#: templates/fields/dimensions.php:17
|
795 |
msgctxt "Position in the \"Dimensions\" field"
|
796 |
msgid "Right"
|
797 |
+
msgstr "A destra"
|
798 |
|
799 |
#: templates/fields/dimensions.php:18
|
800 |
msgctxt "Position in the \"Dimensions\" field"
|
801 |
msgid "Bottom"
|
802 |
+
msgstr "In basso"
|
803 |
|
804 |
#: templates/fields/dimensions.php:19
|
805 |
msgctxt "Position in the \"Dimensions\" field"
|
806 |
msgid "Left"
|
807 |
+
msgstr "A sinistra"
|
808 |
|
809 |
#: templates/fields/dimensions.php:117
|
810 |
msgctxt "Tooltip in the \"Dimensions\" field"
|
811 |
msgid "Link values together"
|
812 |
+
msgstr "Collega i valori"
|
813 |
|
814 |
#: templates/fields/onoff.php:24
|
815 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
816 |
msgid "YES"
|
817 |
+
msgstr "SÌ"
|
818 |
|
819 |
#: templates/fields/onoff.php:25
|
820 |
msgctxt "YES/NO button: use MAX 3 characters!"
|
846 |
msgid "Settings"
|
847 |
msgstr "Impostazioni"
|
848 |
|
849 |
+
#~ msgid ""
|
850 |
+
#~ "<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
851 |
+
#~ "install it."
|
852 |
+
#~ msgstr ""
|
853 |
+
#~ "Il modulo <b>ImageMagick</b> non è installato. Chiedi al tuo servizio di "
|
854 |
+
#~ "hosting di installarlo."
|
855 |
+
|
856 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
857 |
#~ msgid "ON"
|
858 |
#~ msgstr "SÌ"
|
1255 |
#~ msgid "Theme Icon"
|
1256 |
#~ msgstr "Icona tema"
|
1257 |
|
|
|
|
|
|
|
1258 |
#~ msgid "Field Title"
|
1259 |
#~ msgstr "Titolo campo"
|
1260 |
|
plugin-fw/languages/yith-plugin-fw-nl_NL.po
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"PO-Revision-Date: 2020-04-06 15:05+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
@@ -206,7 +206,7 @@ msgstr "Voeg %s toe vanaf afbeeldingen"
|
|
206 |
msgid "Upload multiple files"
|
207 |
msgstr "Upload meerdere bestanden"
|
208 |
|
209 |
-
#: lib/yit-plugin-panel-wc.php:
|
210 |
msgid "The changes you have made will be lost if you leave this page."
|
211 |
msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
|
212 |
|
@@ -214,84 +214,84 @@ msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
|
|
214 |
msgid "Plugin Settings"
|
215 |
msgstr "Plugin instellingen"
|
216 |
|
217 |
-
#: lib/yit-plugin-panel.php:
|
218 |
msgid "How to install premium version"
|
219 |
msgstr "Hoe installeer ik de premium versie"
|
220 |
|
221 |
-
#: lib/yit-plugin-panel.php:
|
222 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
223 |
msgid "Save Changes"
|
224 |
msgstr "Wijzigingen opslaan"
|
225 |
|
226 |
-
#: lib/yit-plugin-panel.php:
|
227 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
228 |
msgid ""
|
229 |
"If you continue with this action, you will reset all options in this page."
|
230 |
msgstr "Als u deze actie voortzet, zult u alle opties op deze pagina resetten."
|
231 |
|
232 |
-
#: lib/yit-plugin-panel.php:
|
233 |
msgid "Reset to default"
|
234 |
msgstr "Resetten naar standaard"
|
235 |
|
236 |
-
#: lib/yit-plugin-panel.php:
|
237 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
238 |
msgid "Are you sure?"
|
239 |
msgstr "Weet u het zeker?"
|
240 |
|
241 |
-
#: lib/yit-plugin-panel.php:
|
242 |
msgid ""
|
243 |
"The element you have entered already exists. Please, enter another name."
|
244 |
msgstr "Het element dat u hebt ingevoerd bestaat al. Voer een andere naam in."
|
245 |
|
246 |
-
#: lib/yit-plugin-panel.php:
|
247 |
msgid "Settings saved"
|
248 |
msgstr "Instellingen opgeslagen"
|
249 |
|
250 |
-
#: lib/yit-plugin-panel.php:
|
251 |
msgid "Settings reset"
|
252 |
msgstr "Instellingen resetten"
|
253 |
|
254 |
-
#: lib/yit-plugin-panel.php:
|
255 |
msgid "Element deleted correctly."
|
256 |
msgstr "Element succesvol verwijderd."
|
257 |
|
258 |
-
#: lib/yit-plugin-panel.php:
|
259 |
msgid "Element updated correctly."
|
260 |
msgstr "Element juist bijgewerkt."
|
261 |
|
262 |
-
#: lib/yit-plugin-panel.php:
|
263 |
msgid "Database imported correctly."
|
264 |
msgstr "Database juist geïmporteerd."
|
265 |
|
266 |
-
#: lib/yit-plugin-panel.php:
|
267 |
msgid "An error has occurred during import. Please try again."
|
268 |
msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
|
269 |
|
270 |
-
#: lib/yit-plugin-panel.php:
|
271 |
msgid "The added file is not valid."
|
272 |
msgstr "Het toegevoegde bestand is ongeldig."
|
273 |
|
274 |
-
#: lib/yit-plugin-panel.php:
|
275 |
msgid "Sorry, import is disabled."
|
276 |
msgstr "Sorry, importeren is uitgeschakeld."
|
277 |
|
278 |
-
#: lib/yit-plugin-panel.php:
|
279 |
msgid "Sorting successful."
|
280 |
msgstr "Sorteren succesvol."
|
281 |
|
282 |
-
#: lib/yit-plugin-panel.php:
|
283 |
msgid "We need your support"
|
284 |
msgstr "We hebben uw hulp nodig"
|
285 |
|
286 |
-
#: lib/yit-plugin-panel.php:
|
287 |
msgid "to keep updating and improving the plugin. Please,"
|
288 |
msgstr "om de plugin te blijven updaten en verbeteren. A.u.b.,"
|
289 |
|
290 |
-
#: lib/yit-plugin-panel.php:
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "help ons door een vijf-sterenbeoordeling achter te laten"
|
293 |
|
294 |
-
#: lib/yit-plugin-panel.php:
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) Bedankt!"
|
297 |
|
@@ -362,82 +362,178 @@ msgstr ""
|
|
362 |
"Er is een fout opgetreden, wat waarschijnlijk betekend dat de feed uit te "
|
363 |
"lucht is. Probeer het later opnieuw."
|
364 |
|
365 |
-
#: lib/yith-system-status.php:
|
366 |
msgid "WordPress Version"
|
367 |
msgstr "WordPress Versie"
|
368 |
|
369 |
-
#: lib/yith-system-status.php:
|
370 |
msgid "WooCommerce Version"
|
371 |
msgstr "WooCommerce Versie"
|
372 |
|
373 |
-
#: lib/yith-system-status.php:
|
374 |
msgid "Available Memory"
|
375 |
msgstr "Beschikbaar geheugen"
|
376 |
|
377 |
-
#: lib/yith-system-status.php:
|
378 |
msgid "PHP Version"
|
379 |
msgstr "PHP Versie"
|
380 |
|
381 |
-
#: lib/yith-system-status.php:
|
382 |
msgid "TLS Version"
|
383 |
msgstr "TLS Versie"
|
384 |
|
385 |
-
#: lib/yith-system-status.php:
|
386 |
msgid "WordPress Cron"
|
387 |
msgstr "WordPress Cron"
|
388 |
|
389 |
-
#: lib/yith-system-status.php:
|
390 |
msgid "SimpleXML"
|
391 |
msgstr "SimpleXML"
|
392 |
|
393 |
-
#: lib/yith-system-status.php:
|
394 |
msgid "MultiByte String"
|
395 |
msgstr "MultiByte String"
|
396 |
|
397 |
-
#: lib/yith-system-status.php:
|
398 |
msgid "ImageMagick Version"
|
399 |
msgstr "ImageMagick Versie"
|
400 |
|
401 |
-
#: lib/yith-system-status.php:
|
402 |
msgid "GD Library"
|
403 |
msgstr "GD Library"
|
404 |
|
405 |
-
#: lib/yith-system-status.php:
|
406 |
msgid "Iconv Module"
|
407 |
msgstr "Iconv Module"
|
408 |
|
409 |
-
#: lib/yith-system-status.php:
|
410 |
msgid "OPCache Save Comments"
|
411 |
msgstr "OPCache Save Comments"
|
412 |
|
413 |
-
#: lib/yith-system-status.php:
|
414 |
msgid "URL FOpen"
|
415 |
msgstr "URL FOpen"
|
416 |
|
417 |
-
#: lib/yith-system-status.php:
|
418 |
msgid "System Status"
|
419 |
msgstr "Systeem Status"
|
420 |
|
421 |
-
#: lib/yith-system-status.php:
|
422 |
msgid "YITH Plugins"
|
423 |
msgstr "YITH Plugins"
|
424 |
|
425 |
-
#: lib/yith-system-status.php:
|
426 |
msgid "WooCommerce"
|
427 |
msgstr "WooCommerce"
|
428 |
|
429 |
-
#: lib/yith-system-status.php:
|
430 |
msgid "Warning!"
|
431 |
msgstr "Waarschuwing!"
|
432 |
|
433 |
-
|
|
|
|
|
434 |
msgid ""
|
435 |
-
"The system check has detected some compatibility issues on your "
|
436 |
-
"
|
437 |
msgstr ""
|
438 |
"Het systeem heeft enkele compatibiliteitsproblemen gevonden op uw "
|
439 |
"installatie. %sKlik hier%s om meer te weten te komen"
|
440 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
441 |
#: templates/fields/ajax-customers.php:57
|
442 |
msgid "Search Customers"
|
443 |
msgstr "Zoek klanten"
|
@@ -568,108 +664,54 @@ msgstr "(Default: <i %s></i> )"
|
|
568 |
msgid "Reset Defaults"
|
569 |
msgstr "Herstellen naar standaard"
|
570 |
|
571 |
-
#: templates/sysinfo/system-information-panel.php:
|
572 |
msgid "YITH System Information"
|
573 |
msgstr "YITH System Informatie"
|
574 |
|
575 |
-
#: templates/sysinfo/system-information-panel.php:
|
576 |
-
msgid "
|
577 |
-
msgstr "Site URL"
|
578 |
-
|
579 |
-
#: templates/sysinfo/system-information-panel.php:46
|
580 |
-
msgid "Output IP Address"
|
581 |
-
msgstr "Output IP Address"
|
582 |
-
|
583 |
-
#: templates/sysinfo/system-information-panel.php:76
|
584 |
-
msgid "Enabled"
|
585 |
-
msgstr "Ingeschakeld"
|
586 |
-
|
587 |
-
#: templates/sysinfo/system-information-panel.php:76
|
588 |
-
msgid "Disabled"
|
589 |
-
msgstr "Uitgeschakeld"
|
590 |
-
|
591 |
-
#: templates/sysinfo/system-information-panel.php:82
|
592 |
-
msgid "N/A"
|
593 |
-
msgstr "N.V.T"
|
594 |
-
|
595 |
-
#: templates/sysinfo/system-information-panel.php:96
|
596 |
-
msgid "%s needs %s enabled"
|
597 |
-
msgstr "%s heeft nodig %s ingeschakeld"
|
598 |
-
|
599 |
-
#: templates/sysinfo/system-information-panel.php:98
|
600 |
-
msgid "%s needs at least %s of available memory"
|
601 |
-
msgstr "%s heeft ten minste %s beschikbaar geheugen nodig"
|
602 |
-
|
603 |
-
#: templates/sysinfo/system-information-panel.php:100
|
604 |
-
#: templates/sysinfo/system-information-panel.php:149
|
605 |
-
msgid ""
|
606 |
-
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
607 |
-
"available memory"
|
608 |
msgstr ""
|
609 |
-
"Voor het optimaal functioneren van de plugins, adviseren wij minstens %s "
|
610 |
-
"beschikbaar geheugen te hebben"
|
611 |
|
612 |
-
#: templates/sysinfo/system-information-panel.php:
|
613 |
-
|
614 |
-
#: templates/sysinfo/system-information-panel.php:151
|
615 |
-
msgid ""
|
616 |
-
"Read more %s here%s or contact your hosting company in order to increase it."
|
617 |
msgstr ""
|
618 |
-
"Lees %s hier%s meer, of neem contact op met uw hostingmaatschappij om het te "
|
619 |
-
"verhogen."
|
620 |
|
621 |
-
#: templates/sysinfo/system-information-panel.php:
|
622 |
-
|
623 |
-
|
|
|
624 |
|
625 |
-
#: templates/sysinfo/system-information-panel.php:
|
626 |
-
msgid ""
|
627 |
-
"
|
628 |
-
"security updates."
|
629 |
-
msgstr ""
|
630 |
-
"Bijwerken naar de nieuwste versie om te profiteren van alle nieuwe functies "
|
631 |
-
"en beveiligingsupdates."
|
632 |
|
633 |
-
#: templates/sysinfo/system-information-panel.php:
|
634 |
-
msgid "
|
635 |
-
msgstr "
|
636 |
|
637 |
-
#: templates/sysinfo/system-information-panel.php:
|
638 |
-
msgid "
|
639 |
-
msgstr "
|
640 |
|
641 |
-
#: templates/sysinfo/system-information-panel.php:
|
642 |
-
msgid "
|
643 |
-
msgstr "
|
644 |
|
645 |
-
#: templates/sysinfo/system-information-panel.php:
|
646 |
-
msgid ""
|
647 |
-
"We cannot determine which <b>TLS</b> version is installed because <b>cURL</"
|
648 |
-
"b> module is disabled. Ask your hosting company to enable it."
|
649 |
msgstr ""
|
650 |
-
"We kunnen niet bepalen welke <b>TLS</b> versie is geïnstalleerd omdat de "
|
651 |
-
"<b>cURL</b> module is uitgeschakeld. Vraag uw hostingmaatschappij om het in "
|
652 |
-
"te schakelen."
|
653 |
|
654 |
-
#: templates/sysinfo/system-information-panel.php:
|
655 |
-
msgid ""
|
656 |
-
"<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
657 |
-
"install it."
|
658 |
msgstr ""
|
659 |
-
"<b>ImageMagick</b> module is niet geïnstalleerd. Vraag uw "
|
660 |
-
"hositngmaatschappij om het te installeren."
|
661 |
|
662 |
-
#: templates/sysinfo/system-information-panel.php:
|
663 |
msgid "Show full PHPInfo"
|
664 |
msgstr "Toon volledige PHPInfo"
|
665 |
|
666 |
-
#: templates/sysinfo/system-information-panel.php:
|
667 |
-
msgid "
|
668 |
-
msgstr "
|
669 |
-
|
670 |
-
#: templates/sysinfo/system-information-panel.php:193
|
671 |
-
msgid "Back to top"
|
672 |
-
msgstr "Terug naar boven"
|
673 |
|
674 |
#: yit-plugin.php:194
|
675 |
msgid "License"
|
@@ -813,6 +855,13 @@ msgctxt "Action links"
|
|
813 |
msgid "Settings"
|
814 |
msgstr "Instellingen"
|
815 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
816 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
817 |
#~ msgid "ON"
|
818 |
#~ msgstr "AAN"
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: YITH Plugin Starter 1.0.0 Plugin FW\n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-02 07:21:31+00:00\n"
|
8 |
"PO-Revision-Date: 2020-04-06 15:05+0200\n"
|
9 |
"Last-Translator: \n"
|
10 |
"Language-Team: Your Inspiration Themes <info@yithemes.com>\n"
|
206 |
msgid "Upload multiple files"
|
207 |
msgstr "Upload meerdere bestanden"
|
208 |
|
209 |
+
#: lib/yit-plugin-panel-wc.php:403
|
210 |
msgid "The changes you have made will be lost if you leave this page."
|
211 |
msgstr "Als je deze pagina verlaat zullen alle wijzigingen verloren gaan."
|
212 |
|
214 |
msgid "Plugin Settings"
|
215 |
msgstr "Plugin instellingen"
|
216 |
|
217 |
+
#: lib/yit-plugin-panel.php:454 lib/yit-plugin-panel.php:457
|
218 |
msgid "How to install premium version"
|
219 |
msgstr "Hoe installeer ik de premium versie"
|
220 |
|
221 |
+
#: lib/yit-plugin-panel.php:617 lib/yit-plugin-subpanel.php:151
|
222 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
223 |
msgid "Save Changes"
|
224 |
msgstr "Wijzigingen opslaan"
|
225 |
|
226 |
+
#: lib/yit-plugin-panel.php:621 lib/yit-plugin-subpanel.php:154
|
227 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
228 |
msgid ""
|
229 |
"If you continue with this action, you will reset all options in this page."
|
230 |
msgstr "Als u deze actie voortzet, zult u alle opties op deze pagina resetten."
|
231 |
|
232 |
+
#: lib/yit-plugin-panel.php:624 lib/yit-plugin-subpanel.php:156
|
233 |
msgid "Reset to default"
|
234 |
msgstr "Resetten naar standaard"
|
235 |
|
236 |
+
#: lib/yit-plugin-panel.php:625 lib/yit-plugin-subpanel.php:157
|
237 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
238 |
msgid "Are you sure?"
|
239 |
msgstr "Weet u het zeker?"
|
240 |
|
241 |
+
#: lib/yit-plugin-panel.php:823
|
242 |
msgid ""
|
243 |
"The element you have entered already exists. Please, enter another name."
|
244 |
msgstr "Het element dat u hebt ingevoerd bestaat al. Voer een andere naam in."
|
245 |
|
246 |
+
#: lib/yit-plugin-panel.php:824
|
247 |
msgid "Settings saved"
|
248 |
msgstr "Instellingen opgeslagen"
|
249 |
|
250 |
+
#: lib/yit-plugin-panel.php:825
|
251 |
msgid "Settings reset"
|
252 |
msgstr "Instellingen resetten"
|
253 |
|
254 |
+
#: lib/yit-plugin-panel.php:826
|
255 |
msgid "Element deleted correctly."
|
256 |
msgstr "Element succesvol verwijderd."
|
257 |
|
258 |
+
#: lib/yit-plugin-panel.php:827 lib/yit-plugin-panel.php:828
|
259 |
msgid "Element updated correctly."
|
260 |
msgstr "Element juist bijgewerkt."
|
261 |
|
262 |
+
#: lib/yit-plugin-panel.php:829
|
263 |
msgid "Database imported correctly."
|
264 |
msgstr "Database juist geïmporteerd."
|
265 |
|
266 |
+
#: lib/yit-plugin-panel.php:830
|
267 |
msgid "An error has occurred during import. Please try again."
|
268 |
msgstr "Er is een fout opgetreden tijdens importeren. Probeer opnieuw."
|
269 |
|
270 |
+
#: lib/yit-plugin-panel.php:831
|
271 |
msgid "The added file is not valid."
|
272 |
msgstr "Het toegevoegde bestand is ongeldig."
|
273 |
|
274 |
+
#: lib/yit-plugin-panel.php:832
|
275 |
msgid "Sorry, import is disabled."
|
276 |
msgstr "Sorry, importeren is uitgeschakeld."
|
277 |
|
278 |
+
#: lib/yit-plugin-panel.php:833
|
279 |
msgid "Sorting successful."
|
280 |
msgstr "Sorteren succesvol."
|
281 |
|
282 |
+
#: lib/yit-plugin-panel.php:1281
|
283 |
msgid "We need your support"
|
284 |
msgstr "We hebben uw hulp nodig"
|
285 |
|
286 |
+
#: lib/yit-plugin-panel.php:1282
|
287 |
msgid "to keep updating and improving the plugin. Please,"
|
288 |
msgstr "om de plugin te blijven updaten en verbeteren. A.u.b.,"
|
289 |
|
290 |
+
#: lib/yit-plugin-panel.php:1284
|
291 |
msgid "help us by leaving a five-star rating"
|
292 |
msgstr "help ons door een vijf-sterenbeoordeling achter te laten"
|
293 |
|
294 |
+
#: lib/yit-plugin-panel.php:1285
|
295 |
msgid ":) Thanks!"
|
296 |
msgstr ":) Bedankt!"
|
297 |
|
362 |
"Er is een fout opgetreden, wat waarschijnlijk betekend dat de feed uit te "
|
363 |
"lucht is. Probeer het later opnieuw."
|
364 |
|
365 |
+
#: lib/yith-system-status.php:111
|
366 |
msgid "WordPress Version"
|
367 |
msgstr "WordPress Versie"
|
368 |
|
369 |
+
#: lib/yith-system-status.php:112
|
370 |
msgid "WooCommerce Version"
|
371 |
msgstr "WooCommerce Versie"
|
372 |
|
373 |
+
#: lib/yith-system-status.php:113
|
374 |
msgid "Available Memory"
|
375 |
msgstr "Beschikbaar geheugen"
|
376 |
|
377 |
+
#: lib/yith-system-status.php:114
|
378 |
msgid "PHP Version"
|
379 |
msgstr "PHP Versie"
|
380 |
|
381 |
+
#: lib/yith-system-status.php:115
|
382 |
msgid "TLS Version"
|
383 |
msgstr "TLS Versie"
|
384 |
|
385 |
+
#: lib/yith-system-status.php:116
|
386 |
msgid "WordPress Cron"
|
387 |
msgstr "WordPress Cron"
|
388 |
|
389 |
+
#: lib/yith-system-status.php:117
|
390 |
msgid "SimpleXML"
|
391 |
msgstr "SimpleXML"
|
392 |
|
393 |
+
#: lib/yith-system-status.php:118
|
394 |
msgid "MultiByte String"
|
395 |
msgstr "MultiByte String"
|
396 |
|
397 |
+
#: lib/yith-system-status.php:119
|
398 |
msgid "ImageMagick Version"
|
399 |
msgstr "ImageMagick Versie"
|
400 |
|
401 |
+
#: lib/yith-system-status.php:120
|
402 |
msgid "GD Library"
|
403 |
msgstr "GD Library"
|
404 |
|
405 |
+
#: lib/yith-system-status.php:121
|
406 |
msgid "Iconv Module"
|
407 |
msgstr "Iconv Module"
|
408 |
|
409 |
+
#: lib/yith-system-status.php:122
|
410 |
msgid "OPCache Save Comments"
|
411 |
msgstr "OPCache Save Comments"
|
412 |
|
413 |
+
#: lib/yith-system-status.php:123
|
414 |
msgid "URL FOpen"
|
415 |
msgstr "URL FOpen"
|
416 |
|
417 |
+
#: lib/yith-system-status.php:141 lib/yith-system-status.php:142
|
418 |
msgid "System Status"
|
419 |
msgstr "Systeem Status"
|
420 |
|
421 |
+
#: lib/yith-system-status.php:184
|
422 |
msgid "YITH Plugins"
|
423 |
msgstr "YITH Plugins"
|
424 |
|
425 |
+
#: lib/yith-system-status.php:192
|
426 |
msgid "WooCommerce"
|
427 |
msgstr "WooCommerce"
|
428 |
|
429 |
+
#: lib/yith-system-status.php:330
|
430 |
msgid "Warning!"
|
431 |
msgstr "Waarschuwing!"
|
432 |
|
433 |
+
#. translators: %1$s open link tag, %2$s open link tag
|
434 |
+
#: lib/yith-system-status.php:334
|
435 |
+
#, fuzzy
|
436 |
msgid ""
|
437 |
+
"The system check has detected some compatibility issues on your installation."
|
438 |
+
"%1$sClick here%2$s to know more"
|
439 |
msgstr ""
|
440 |
"Het systeem heeft enkele compatibiliteitsproblemen gevonden op uw "
|
441 |
"installatie. %sKlik hier%s om meer te weten te komen"
|
442 |
|
443 |
+
#: lib/yith-system-status.php:473
|
444 |
+
msgid "Enabled"
|
445 |
+
msgstr "Ingeschakeld"
|
446 |
+
|
447 |
+
#: lib/yith-system-status.php:473
|
448 |
+
msgid "Disabled"
|
449 |
+
msgstr "Uitgeschakeld"
|
450 |
+
|
451 |
+
#: lib/yith-system-status.php:478
|
452 |
+
msgid "N/A"
|
453 |
+
msgstr "N.V.T"
|
454 |
+
|
455 |
+
#. translators: %1$s plugin name, %2$s requirement name
|
456 |
+
#: lib/yith-system-status.php:506
|
457 |
+
#, fuzzy
|
458 |
+
msgid "%1$s needs %2$s enabled"
|
459 |
+
msgstr "%s heeft nodig %s ingeschakeld"
|
460 |
+
|
461 |
+
#. translators: %1$s plugin name, %2$s required memory amount
|
462 |
+
#: lib/yith-system-status.php:509
|
463 |
+
#, fuzzy
|
464 |
+
msgid "%1$s needs at least %2$s of available memory"
|
465 |
+
msgstr "%s heeft ten minste %s beschikbaar geheugen nodig"
|
466 |
+
|
467 |
+
#. translators: %1$s plugin name, %2$s version number
|
468 |
+
#: lib/yith-system-status.php:512
|
469 |
+
#, fuzzy
|
470 |
+
msgid "%1$s needs at least %2$s version"
|
471 |
+
msgstr "%s heeft minstens %s versie nodig"
|
472 |
+
|
473 |
+
#: lib/yith-system-status.php:537
|
474 |
+
msgid ""
|
475 |
+
"Update it to the latest version in order to benefit of all new features and "
|
476 |
+
"security updates."
|
477 |
+
msgstr ""
|
478 |
+
"Bijwerken naar de nieuwste versie om te profiteren van alle nieuwe functies "
|
479 |
+
"en beveiligingsupdates."
|
480 |
+
|
481 |
+
#: lib/yith-system-status.php:541 lib/yith-system-status.php:547
|
482 |
+
msgid "Contact your hosting company in order to update it."
|
483 |
+
msgstr "Neem contact op met uw hostingmaatschappij om het bij te werken."
|
484 |
+
|
485 |
+
#: lib/yith-system-status.php:545
|
486 |
+
#, fuzzy
|
487 |
+
msgid "Contact your hosting company in order to install it."
|
488 |
+
msgstr "Neem contact op met uw hostingmaatschappij om dit in te schakelen."
|
489 |
+
|
490 |
+
#. translators: %1$s code, %2$s file name
|
491 |
+
#: lib/yith-system-status.php:552
|
492 |
+
#, fuzzy
|
493 |
+
msgid "Remove %1$s from %2$s file"
|
494 |
+
msgstr "Verwijder %s uit %s bestand"
|
495 |
+
|
496 |
+
#: lib/yith-system-status.php:560
|
497 |
+
msgid "Contact your hosting company in order to enable it."
|
498 |
+
msgstr "Neem contact op met uw hostingmaatschappij om dit in te schakelen."
|
499 |
+
|
500 |
+
#. translators: %1$s opening link tag, %2$s closing link tag
|
501 |
+
#: lib/yith-system-status.php:564 lib/yith-system-status.php:588
|
502 |
+
#, fuzzy
|
503 |
+
msgid ""
|
504 |
+
"Read more %1$shere%2$s or contact your hosting company in order to increase "
|
505 |
+
"it."
|
506 |
+
msgstr ""
|
507 |
+
"Lees %s hier%s meer, of neem contact op met uw hostingmaatschappij om het te "
|
508 |
+
"verhogen."
|
509 |
+
|
510 |
+
#. translators: %s recommended memory amount
|
511 |
+
#: lib/yith-system-status.php:585
|
512 |
+
msgid ""
|
513 |
+
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
514 |
+
"available memory"
|
515 |
+
msgstr ""
|
516 |
+
"Voor het optimaal functioneren van de plugins, adviseren wij minstens %s "
|
517 |
+
"beschikbaar geheugen te hebben"
|
518 |
+
|
519 |
+
#. translators: %1$s TLS label, %2$s cURL label
|
520 |
+
#: lib/yith-system-status.php:593
|
521 |
+
#, fuzzy
|
522 |
+
msgid ""
|
523 |
+
"The system check cannot determine which %1$s version is installed because "
|
524 |
+
"%2$s module is disabled. Ask your hosting company to enable it."
|
525 |
+
msgstr ""
|
526 |
+
"We kunnen niet bepalen welke <b>TLS</b> versie is geïnstalleerd omdat de "
|
527 |
+
"<b>cURL</b> module is uitgeschakeld. Vraag uw hostingmaatschappij om het in "
|
528 |
+
"te schakelen."
|
529 |
+
|
530 |
+
#. translators: %1$s TLS label
|
531 |
+
#: lib/yith-system-status.php:596
|
532 |
+
msgid ""
|
533 |
+
"The system check cannot determine which %1$s version is installed due to a "
|
534 |
+
"connection issue between your site and our server."
|
535 |
+
msgstr ""
|
536 |
+
|
537 |
#: templates/fields/ajax-customers.php:57
|
538 |
msgid "Search Customers"
|
539 |
msgstr "Zoek klanten"
|
664 |
msgid "Reset Defaults"
|
665 |
msgstr "Herstellen naar standaard"
|
666 |
|
667 |
+
#: templates/sysinfo/system-information-panel.php:39
|
668 |
msgid "YITH System Information"
|
669 |
msgstr "YITH System Informatie"
|
670 |
|
671 |
+
#: templates/sysinfo/system-information-panel.php:50
|
672 |
+
msgid "WP debug.log file"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
673 |
msgstr ""
|
|
|
|
|
674 |
|
675 |
+
#: templates/sysinfo/system-information-panel.php:54
|
676 |
+
msgid "PHP error_log file"
|
|
|
|
|
|
|
677 |
msgstr ""
|
|
|
|
|
678 |
|
679 |
+
#: templates/sysinfo/system-information-panel.php:59
|
680 |
+
#: templates/sysinfo/system-information-panel.php:83
|
681 |
+
msgid "Back to System panel"
|
682 |
+
msgstr "Terug naar systeempaneel"
|
683 |
|
684 |
+
#: templates/sysinfo/system-information-panel.php:96
|
685 |
+
msgid "Back to top"
|
686 |
+
msgstr "Terug naar boven"
|
|
|
|
|
|
|
|
|
687 |
|
688 |
+
#: templates/sysinfo/system-information-panel.php:104
|
689 |
+
msgid "Site URL"
|
690 |
+
msgstr "Site URL"
|
691 |
|
692 |
+
#: templates/sysinfo/system-information-panel.php:112
|
693 |
+
msgid "Output IP Address"
|
694 |
+
msgstr "Output IP Address"
|
695 |
|
696 |
+
#: templates/sysinfo/system-information-panel.php:120
|
697 |
+
msgid "Defined WP_CACHE"
|
698 |
+
msgstr ""
|
699 |
|
700 |
+
#: templates/sysinfo/system-information-panel.php:123
|
701 |
+
msgid "Yes"
|
|
|
|
|
702 |
msgstr ""
|
|
|
|
|
|
|
703 |
|
704 |
+
#: templates/sysinfo/system-information-panel.php:123
|
705 |
+
msgid "No"
|
|
|
|
|
706 |
msgstr ""
|
|
|
|
|
707 |
|
708 |
+
#: templates/sysinfo/system-information-panel.php:159
|
709 |
msgid "Show full PHPInfo"
|
710 |
msgstr "Toon volledige PHPInfo"
|
711 |
|
712 |
+
#: templates/sysinfo/system-information-panel.php:167
|
713 |
+
msgid "Show log files"
|
714 |
+
msgstr ""
|
|
|
|
|
|
|
|
|
715 |
|
716 |
#: yit-plugin.php:194
|
717 |
msgid "License"
|
855 |
msgid "Settings"
|
856 |
msgstr "Instellingen"
|
857 |
|
858 |
+
#~ msgid ""
|
859 |
+
#~ "<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
860 |
+
#~ "install it."
|
861 |
+
#~ msgstr ""
|
862 |
+
#~ "<b>ImageMagick</b> module is niet geïnstalleerd. Vraag uw "
|
863 |
+
#~ "hositngmaatschappij om het te installeren."
|
864 |
+
|
865 |
#~ msgctxt "ON/OFF button: use MAX 3 characters!"
|
866 |
#~ msgid "ON"
|
867 |
#~ msgstr "AAN"
|
plugin-fw/languages/yith-plugin-fw.pot
CHANGED
@@ -4,7 +4,7 @@ msgid ""
|
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
-
"POT-Creation-Date: 2020-
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
@@ -198,7 +198,7 @@ msgstr ""
|
|
198 |
msgid "Upload multiple files"
|
199 |
msgstr ""
|
200 |
|
201 |
-
#: lib/yit-plugin-panel-wc.php:
|
202 |
msgid "The changes you have made will be lost if you leave this page."
|
203 |
msgstr ""
|
204 |
|
@@ -206,82 +206,82 @@ msgstr ""
|
|
206 |
msgid "Plugin Settings"
|
207 |
msgstr ""
|
208 |
|
209 |
-
#: lib/yit-plugin-panel.php:
|
210 |
msgid "How to install premium version"
|
211 |
msgstr ""
|
212 |
|
213 |
-
#: lib/yit-plugin-panel.php:
|
214 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
215 |
msgid "Save Changes"
|
216 |
msgstr ""
|
217 |
|
218 |
-
#: lib/yit-plugin-panel.php:
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
220 |
msgid "If you continue with this action, you will reset all options in this page."
|
221 |
msgstr ""
|
222 |
|
223 |
-
#: lib/yit-plugin-panel.php:
|
224 |
msgid "Reset to default"
|
225 |
msgstr ""
|
226 |
|
227 |
-
#: lib/yit-plugin-panel.php:
|
228 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
229 |
msgid "Are you sure?"
|
230 |
msgstr ""
|
231 |
|
232 |
-
#: lib/yit-plugin-panel.php:
|
233 |
msgid "The element you have entered already exists. Please, enter another name."
|
234 |
msgstr ""
|
235 |
|
236 |
-
#: lib/yit-plugin-panel.php:
|
237 |
msgid "Settings saved"
|
238 |
msgstr ""
|
239 |
|
240 |
-
#: lib/yit-plugin-panel.php:
|
241 |
msgid "Settings reset"
|
242 |
msgstr ""
|
243 |
|
244 |
-
#: lib/yit-plugin-panel.php:
|
245 |
msgid "Element deleted correctly."
|
246 |
msgstr ""
|
247 |
|
248 |
-
#: lib/yit-plugin-panel.php:
|
249 |
msgid "Element updated correctly."
|
250 |
msgstr ""
|
251 |
|
252 |
-
#: lib/yit-plugin-panel.php:
|
253 |
msgid "Database imported correctly."
|
254 |
msgstr ""
|
255 |
|
256 |
-
#: lib/yit-plugin-panel.php:
|
257 |
msgid "An error has occurred during import. Please try again."
|
258 |
msgstr ""
|
259 |
|
260 |
-
#: lib/yit-plugin-panel.php:
|
261 |
msgid "The added file is not valid."
|
262 |
msgstr ""
|
263 |
|
264 |
-
#: lib/yit-plugin-panel.php:
|
265 |
msgid "Sorry, import is disabled."
|
266 |
msgstr ""
|
267 |
|
268 |
-
#: lib/yit-plugin-panel.php:
|
269 |
msgid "Sorting successful."
|
270 |
msgstr ""
|
271 |
|
272 |
-
#: lib/yit-plugin-panel.php:
|
273 |
msgid "We need your support"
|
274 |
msgstr ""
|
275 |
|
276 |
-
#: lib/yit-plugin-panel.php:
|
277 |
msgid "to keep updating and improving the plugin. Please,"
|
278 |
msgstr ""
|
279 |
|
280 |
-
#: lib/yit-plugin-panel.php:
|
281 |
msgid "help us by leaving a five-star rating"
|
282 |
msgstr ""
|
283 |
|
284 |
-
#: lib/yit-plugin-panel.php:
|
285 |
msgid ":) Thanks!"
|
286 |
msgstr ""
|
287 |
|
@@ -339,78 +339,157 @@ msgid ""
|
|
339 |
"later."
|
340 |
msgstr ""
|
341 |
|
342 |
-
#: lib/yith-system-status.php:
|
343 |
msgid "WordPress Version"
|
344 |
msgstr ""
|
345 |
|
346 |
-
#: lib/yith-system-status.php:
|
347 |
msgid "WooCommerce Version"
|
348 |
msgstr ""
|
349 |
|
350 |
-
#: lib/yith-system-status.php:
|
351 |
msgid "Available Memory"
|
352 |
msgstr ""
|
353 |
|
354 |
-
#: lib/yith-system-status.php:
|
355 |
msgid "PHP Version"
|
356 |
msgstr ""
|
357 |
|
358 |
-
#: lib/yith-system-status.php:
|
359 |
msgid "TLS Version"
|
360 |
msgstr ""
|
361 |
|
362 |
-
#: lib/yith-system-status.php:
|
363 |
msgid "WordPress Cron"
|
364 |
msgstr ""
|
365 |
|
366 |
-
#: lib/yith-system-status.php:
|
367 |
msgid "SimpleXML"
|
368 |
msgstr ""
|
369 |
|
370 |
-
#: lib/yith-system-status.php:
|
371 |
msgid "MultiByte String"
|
372 |
msgstr ""
|
373 |
|
374 |
-
#: lib/yith-system-status.php:
|
375 |
msgid "ImageMagick Version"
|
376 |
msgstr ""
|
377 |
|
378 |
-
#: lib/yith-system-status.php:
|
379 |
msgid "GD Library"
|
380 |
msgstr ""
|
381 |
|
382 |
-
#: lib/yith-system-status.php:
|
383 |
msgid "Iconv Module"
|
384 |
msgstr ""
|
385 |
|
386 |
-
#: lib/yith-system-status.php:
|
387 |
msgid "OPCache Save Comments"
|
388 |
msgstr ""
|
389 |
|
390 |
-
#: lib/yith-system-status.php:
|
391 |
msgid "URL FOpen"
|
392 |
msgstr ""
|
393 |
|
394 |
-
#: lib/yith-system-status.php:
|
395 |
msgid "System Status"
|
396 |
msgstr ""
|
397 |
|
398 |
-
#: lib/yith-system-status.php:
|
399 |
msgid "YITH Plugins"
|
400 |
msgstr ""
|
401 |
|
402 |
-
#: lib/yith-system-status.php:
|
403 |
msgid "WooCommerce"
|
404 |
msgstr ""
|
405 |
|
406 |
-
#: lib/yith-system-status.php:
|
407 |
msgid "Warning!"
|
408 |
msgstr ""
|
409 |
|
410 |
-
#: lib/yith-system-status.php:
|
|
|
411 |
msgid ""
|
412 |
"The system check has detected some compatibility issues on your "
|
413 |
-
"installation
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
414 |
msgstr ""
|
415 |
|
416 |
#: templates/fields/ajax-customers.php:57
|
@@ -543,95 +622,53 @@ msgstr ""
|
|
543 |
msgid "Reset Defaults"
|
544 |
msgstr ""
|
545 |
|
546 |
-
#: templates/sysinfo/system-information-panel.php:
|
547 |
msgid "YITH System Information"
|
548 |
msgstr ""
|
549 |
|
550 |
-
#: templates/sysinfo/system-information-panel.php:
|
551 |
-
msgid "
|
552 |
-
msgstr ""
|
553 |
-
|
554 |
-
#: templates/sysinfo/system-information-panel.php:46
|
555 |
-
msgid "Output IP Address"
|
556 |
-
msgstr ""
|
557 |
-
|
558 |
-
#: templates/sysinfo/system-information-panel.php:76
|
559 |
-
msgid "Enabled"
|
560 |
msgstr ""
|
561 |
|
562 |
-
#: templates/sysinfo/system-information-panel.php:
|
563 |
-
msgid "
|
564 |
msgstr ""
|
565 |
|
566 |
-
#: templates/sysinfo/system-information-panel.php:
|
567 |
-
|
|
|
568 |
msgstr ""
|
569 |
|
570 |
#: templates/sysinfo/system-information-panel.php:96
|
571 |
-
msgid "
|
572 |
-
msgstr ""
|
573 |
-
|
574 |
-
#: templates/sysinfo/system-information-panel.php:98
|
575 |
-
msgid "%s needs at least %s of available memory"
|
576 |
-
msgstr ""
|
577 |
-
|
578 |
-
#: templates/sysinfo/system-information-panel.php:100
|
579 |
-
#: templates/sysinfo/system-information-panel.php:149
|
580 |
-
msgid ""
|
581 |
-
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
582 |
-
"available memory"
|
583 |
-
msgstr ""
|
584 |
-
|
585 |
-
#: templates/sysinfo/system-information-panel.php:102
|
586 |
-
#: templates/sysinfo/system-information-panel.php:137
|
587 |
-
#: templates/sysinfo/system-information-panel.php:151
|
588 |
-
msgid "Read more %s here%s or contact your hosting company in order to increase it."
|
589 |
-
msgstr ""
|
590 |
-
|
591 |
-
#: templates/sysinfo/system-information-panel.php:105
|
592 |
-
msgid "%s needs at least %s version"
|
593 |
-
msgstr ""
|
594 |
-
|
595 |
-
#: templates/sysinfo/system-information-panel.php:116
|
596 |
-
msgid ""
|
597 |
-
"Update it to the latest version in order to benefit of all new features and "
|
598 |
-
"security updates."
|
599 |
msgstr ""
|
600 |
|
601 |
-
#: templates/sysinfo/system-information-panel.php:
|
602 |
-
msgid "
|
603 |
msgstr ""
|
604 |
|
605 |
-
#: templates/sysinfo/system-information-panel.php:
|
606 |
-
msgid "
|
607 |
msgstr ""
|
608 |
|
609 |
-
#: templates/sysinfo/system-information-panel.php:
|
610 |
-
msgid "
|
611 |
msgstr ""
|
612 |
|
613 |
-
#: templates/sysinfo/system-information-panel.php:
|
614 |
-
msgid ""
|
615 |
-
"We cannot determine which <b>TLS</b> version is installed because "
|
616 |
-
"<b>cURL</b> module is disabled. Ask your hosting company to enable it."
|
617 |
msgstr ""
|
618 |
|
619 |
-
#: templates/sysinfo/system-information-panel.php:
|
620 |
-
msgid ""
|
621 |
-
"<b>ImageMagick</b> module is not installed. Ask your hosting company to "
|
622 |
-
"install it."
|
623 |
msgstr ""
|
624 |
|
625 |
-
#: templates/sysinfo/system-information-panel.php:
|
626 |
msgid "Show full PHPInfo"
|
627 |
msgstr ""
|
628 |
|
629 |
-
#: templates/sysinfo/system-information-panel.php:
|
630 |
-
msgid "
|
631 |
-
msgstr ""
|
632 |
-
|
633 |
-
#: templates/sysinfo/system-information-panel.php:193
|
634 |
-
msgid "Back to top"
|
635 |
msgstr ""
|
636 |
|
637 |
#: yit-plugin.php:194
|
4 |
msgstr ""
|
5 |
"Project-Id-Version: \n"
|
6 |
"Report-Msgid-Bugs-To: YITH <plugins@yithemes.com>\n"
|
7 |
+
"POT-Creation-Date: 2020-07-02 07:21:31+00:00\n"
|
8 |
"MIME-Version: 1.0\n"
|
9 |
"Content-Type: text/plain; charset=utf-8\n"
|
10 |
"Content-Transfer-Encoding: 8bit\n"
|
198 |
msgid "Upload multiple files"
|
199 |
msgstr ""
|
200 |
|
201 |
+
#: lib/yit-plugin-panel-wc.php:403
|
202 |
msgid "The changes you have made will be lost if you leave this page."
|
203 |
msgstr ""
|
204 |
|
206 |
msgid "Plugin Settings"
|
207 |
msgstr ""
|
208 |
|
209 |
+
#: lib/yit-plugin-panel.php:454 lib/yit-plugin-panel.php:457
|
210 |
msgid "How to install premium version"
|
211 |
msgstr ""
|
212 |
|
213 |
+
#: lib/yit-plugin-panel.php:617 lib/yit-plugin-subpanel.php:151
|
214 |
#: templates/panel/woocommerce/woocommerce-form.php:14
|
215 |
msgid "Save Changes"
|
216 |
msgstr ""
|
217 |
|
218 |
+
#: lib/yit-plugin-panel.php:621 lib/yit-plugin-subpanel.php:154
|
219 |
#: templates/panel/woocommerce/woocommerce-form.php:17
|
220 |
msgid "If you continue with this action, you will reset all options in this page."
|
221 |
msgstr ""
|
222 |
|
223 |
+
#: lib/yit-plugin-panel.php:624 lib/yit-plugin-subpanel.php:156
|
224 |
msgid "Reset to default"
|
225 |
msgstr ""
|
226 |
|
227 |
+
#: lib/yit-plugin-panel.php:625 lib/yit-plugin-subpanel.php:157
|
228 |
#: templates/panel/woocommerce/woocommerce-form.php:21
|
229 |
msgid "Are you sure?"
|
230 |
msgstr ""
|
231 |
|
232 |
+
#: lib/yit-plugin-panel.php:823
|
233 |
msgid "The element you have entered already exists. Please, enter another name."
|
234 |
msgstr ""
|
235 |
|
236 |
+
#: lib/yit-plugin-panel.php:824
|
237 |
msgid "Settings saved"
|
238 |
msgstr ""
|
239 |
|
240 |
+
#: lib/yit-plugin-panel.php:825
|
241 |
msgid "Settings reset"
|
242 |
msgstr ""
|
243 |
|
244 |
+
#: lib/yit-plugin-panel.php:826
|
245 |
msgid "Element deleted correctly."
|
246 |
msgstr ""
|
247 |
|
248 |
+
#: lib/yit-plugin-panel.php:827 lib/yit-plugin-panel.php:828
|
249 |
msgid "Element updated correctly."
|
250 |
msgstr ""
|
251 |
|
252 |
+
#: lib/yit-plugin-panel.php:829
|
253 |
msgid "Database imported correctly."
|
254 |
msgstr ""
|
255 |
|
256 |
+
#: lib/yit-plugin-panel.php:830
|
257 |
msgid "An error has occurred during import. Please try again."
|
258 |
msgstr ""
|
259 |
|
260 |
+
#: lib/yit-plugin-panel.php:831
|
261 |
msgid "The added file is not valid."
|
262 |
msgstr ""
|
263 |
|
264 |
+
#: lib/yit-plugin-panel.php:832
|
265 |
msgid "Sorry, import is disabled."
|
266 |
msgstr ""
|
267 |
|
268 |
+
#: lib/yit-plugin-panel.php:833
|
269 |
msgid "Sorting successful."
|
270 |
msgstr ""
|
271 |
|
272 |
+
#: lib/yit-plugin-panel.php:1281
|
273 |
msgid "We need your support"
|
274 |
msgstr ""
|
275 |
|
276 |
+
#: lib/yit-plugin-panel.php:1282
|
277 |
msgid "to keep updating and improving the plugin. Please,"
|
278 |
msgstr ""
|
279 |
|
280 |
+
#: lib/yit-plugin-panel.php:1284
|
281 |
msgid "help us by leaving a five-star rating"
|
282 |
msgstr ""
|
283 |
|
284 |
+
#: lib/yit-plugin-panel.php:1285
|
285 |
msgid ":) Thanks!"
|
286 |
msgstr ""
|
287 |
|
339 |
"later."
|
340 |
msgstr ""
|
341 |
|
342 |
+
#: lib/yith-system-status.php:111
|
343 |
msgid "WordPress Version"
|
344 |
msgstr ""
|
345 |
|
346 |
+
#: lib/yith-system-status.php:112
|
347 |
msgid "WooCommerce Version"
|
348 |
msgstr ""
|
349 |
|
350 |
+
#: lib/yith-system-status.php:113
|
351 |
msgid "Available Memory"
|
352 |
msgstr ""
|
353 |
|
354 |
+
#: lib/yith-system-status.php:114
|
355 |
msgid "PHP Version"
|
356 |
msgstr ""
|
357 |
|
358 |
+
#: lib/yith-system-status.php:115
|
359 |
msgid "TLS Version"
|
360 |
msgstr ""
|
361 |
|
362 |
+
#: lib/yith-system-status.php:116
|
363 |
msgid "WordPress Cron"
|
364 |
msgstr ""
|
365 |
|
366 |
+
#: lib/yith-system-status.php:117
|
367 |
msgid "SimpleXML"
|
368 |
msgstr ""
|
369 |
|
370 |
+
#: lib/yith-system-status.php:118
|
371 |
msgid "MultiByte String"
|
372 |
msgstr ""
|
373 |
|
374 |
+
#: lib/yith-system-status.php:119
|
375 |
msgid "ImageMagick Version"
|
376 |
msgstr ""
|
377 |
|
378 |
+
#: lib/yith-system-status.php:120
|
379 |
msgid "GD Library"
|
380 |
msgstr ""
|
381 |
|
382 |
+
#: lib/yith-system-status.php:121
|
383 |
msgid "Iconv Module"
|
384 |
msgstr ""
|
385 |
|
386 |
+
#: lib/yith-system-status.php:122
|
387 |
msgid "OPCache Save Comments"
|
388 |
msgstr ""
|
389 |
|
390 |
+
#: lib/yith-system-status.php:123
|
391 |
msgid "URL FOpen"
|
392 |
msgstr ""
|
393 |
|
394 |
+
#: lib/yith-system-status.php:141 lib/yith-system-status.php:142
|
395 |
msgid "System Status"
|
396 |
msgstr ""
|
397 |
|
398 |
+
#: lib/yith-system-status.php:184
|
399 |
msgid "YITH Plugins"
|
400 |
msgstr ""
|
401 |
|
402 |
+
#: lib/yith-system-status.php:192
|
403 |
msgid "WooCommerce"
|
404 |
msgstr ""
|
405 |
|
406 |
+
#: lib/yith-system-status.php:330
|
407 |
msgid "Warning!"
|
408 |
msgstr ""
|
409 |
|
410 |
+
#: lib/yith-system-status.php:334
|
411 |
+
#. translators: %1$s open link tag, %2$s open link tag
|
412 |
msgid ""
|
413 |
"The system check has detected some compatibility issues on your "
|
414 |
+
"installation.%1$sClick here%2$s to know more"
|
415 |
+
msgstr ""
|
416 |
+
|
417 |
+
#: lib/yith-system-status.php:473
|
418 |
+
msgid "Enabled"
|
419 |
+
msgstr ""
|
420 |
+
|
421 |
+
#: lib/yith-system-status.php:473
|
422 |
+
msgid "Disabled"
|
423 |
+
msgstr ""
|
424 |
+
|
425 |
+
#: lib/yith-system-status.php:478
|
426 |
+
msgid "N/A"
|
427 |
+
msgstr ""
|
428 |
+
|
429 |
+
#: lib/yith-system-status.php:506
|
430 |
+
#. translators: %1$s plugin name, %2$s requirement name
|
431 |
+
msgid "%1$s needs %2$s enabled"
|
432 |
+
msgstr ""
|
433 |
+
|
434 |
+
#: lib/yith-system-status.php:509
|
435 |
+
#. translators: %1$s plugin name, %2$s required memory amount
|
436 |
+
msgid "%1$s needs at least %2$s of available memory"
|
437 |
+
msgstr ""
|
438 |
+
|
439 |
+
#: lib/yith-system-status.php:512
|
440 |
+
#. translators: %1$s plugin name, %2$s version number
|
441 |
+
msgid "%1$s needs at least %2$s version"
|
442 |
+
msgstr ""
|
443 |
+
|
444 |
+
#: lib/yith-system-status.php:537
|
445 |
+
msgid ""
|
446 |
+
"Update it to the latest version in order to benefit of all new features and "
|
447 |
+
"security updates."
|
448 |
+
msgstr ""
|
449 |
+
|
450 |
+
#: lib/yith-system-status.php:541 lib/yith-system-status.php:547
|
451 |
+
msgid "Contact your hosting company in order to update it."
|
452 |
+
msgstr ""
|
453 |
+
|
454 |
+
#: lib/yith-system-status.php:545
|
455 |
+
msgid "Contact your hosting company in order to install it."
|
456 |
+
msgstr ""
|
457 |
+
|
458 |
+
#: lib/yith-system-status.php:552
|
459 |
+
#. translators: %1$s code, %2$s file name
|
460 |
+
msgid "Remove %1$s from %2$s file"
|
461 |
+
msgstr ""
|
462 |
+
|
463 |
+
#: lib/yith-system-status.php:560
|
464 |
+
msgid "Contact your hosting company in order to enable it."
|
465 |
+
msgstr ""
|
466 |
+
|
467 |
+
#: lib/yith-system-status.php:564 lib/yith-system-status.php:588
|
468 |
+
#. translators: %1$s opening link tag, %2$s closing link tag
|
469 |
+
msgid ""
|
470 |
+
"Read more %1$shere%2$s or contact your hosting company in order to increase "
|
471 |
+
"it."
|
472 |
+
msgstr ""
|
473 |
+
|
474 |
+
#: lib/yith-system-status.php:585
|
475 |
+
#. translators: %s recommended memory amount
|
476 |
+
msgid ""
|
477 |
+
"For optimal functioning of our plugins, we suggest setting at least %s of "
|
478 |
+
"available memory"
|
479 |
+
msgstr ""
|
480 |
+
|
481 |
+
#: lib/yith-system-status.php:593
|
482 |
+
#. translators: %1$s TLS label, %2$s cURL label
|
483 |
+
msgid ""
|
484 |
+
"The system check cannot determine which %1$s version is installed because "
|
485 |
+
"%2$s module is disabled. Ask your hosting company to enable it."
|
486 |
+
msgstr ""
|
487 |
+
|
488 |
+
#: lib/yith-system-status.php:596
|
489 |
+
#. translators: %1$s TLS label
|
490 |
+
msgid ""
|
491 |
+
"The system check cannot determine which %1$s version is installed due to a "
|
492 |
+
"connection issue between your site and our server."
|
493 |
msgstr ""
|
494 |
|
495 |
#: templates/fields/ajax-customers.php:57
|
622 |
msgid "Reset Defaults"
|
623 |
msgstr ""
|
624 |
|
625 |
+
#: templates/sysinfo/system-information-panel.php:39
|
626 |
msgid "YITH System Information"
|
627 |
msgstr ""
|
628 |
|
629 |
+
#: templates/sysinfo/system-information-panel.php:50
|
630 |
+
msgid "WP debug.log file"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
631 |
msgstr ""
|
632 |
|
633 |
+
#: templates/sysinfo/system-information-panel.php:54
|
634 |
+
msgid "PHP error_log file"
|
635 |
msgstr ""
|
636 |
|
637 |
+
#: templates/sysinfo/system-information-panel.php:59
|
638 |
+
#: templates/sysinfo/system-information-panel.php:83
|
639 |
+
msgid "Back to System panel"
|
640 |
msgstr ""
|
641 |
|
642 |
#: templates/sysinfo/system-information-panel.php:96
|
643 |
+
msgid "Back to top"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
644 |
msgstr ""
|
645 |
|
646 |
+
#: templates/sysinfo/system-information-panel.php:104
|
647 |
+
msgid "Site URL"
|
648 |
msgstr ""
|
649 |
|
650 |
+
#: templates/sysinfo/system-information-panel.php:112
|
651 |
+
msgid "Output IP Address"
|
652 |
msgstr ""
|
653 |
|
654 |
+
#: templates/sysinfo/system-information-panel.php:120
|
655 |
+
msgid "Defined WP_CACHE"
|
656 |
msgstr ""
|
657 |
|
658 |
+
#: templates/sysinfo/system-information-panel.php:123
|
659 |
+
msgid "Yes"
|
|
|
|
|
660 |
msgstr ""
|
661 |
|
662 |
+
#: templates/sysinfo/system-information-panel.php:123
|
663 |
+
msgid "No"
|
|
|
|
|
664 |
msgstr ""
|
665 |
|
666 |
+
#: templates/sysinfo/system-information-panel.php:159
|
667 |
msgid "Show full PHPInfo"
|
668 |
msgstr ""
|
669 |
|
670 |
+
#: templates/sysinfo/system-information-panel.php:167
|
671 |
+
msgid "Show log files"
|
|
|
|
|
|
|
|
|
672 |
msgstr ""
|
673 |
|
674 |
#: yit-plugin.php:194
|
plugin-fw/lib/yit-plugin-panel-sidebar.php
DELETED
@@ -1,430 +0,0 @@
|
|
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 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
if ( !class_exists( 'YIT_Plugin_Panel_Sidebar' ) ) {
|
16 |
-
/**
|
17 |
-
* YIT Plugin Panel Sidebar
|
18 |
-
*
|
19 |
-
* @class YIT_Plugin_Panel_Sidebar
|
20 |
-
* @package Yithemes
|
21 |
-
* @since 1.0
|
22 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
23 |
-
*/
|
24 |
-
class YIT_Plugin_Panel_Sidebar {
|
25 |
-
/**
|
26 |
-
* @var string version of class
|
27 |
-
*/
|
28 |
-
public $version = '1.0.1';
|
29 |
-
|
30 |
-
|
31 |
-
/**
|
32 |
-
* @var array array of widgets
|
33 |
-
*/
|
34 |
-
public $widgets = array();
|
35 |
-
|
36 |
-
/**
|
37 |
-
* @type string
|
38 |
-
*/
|
39 |
-
protected $_remote_widget_xml = 'http://bit.ly/1UJ83xN';
|
40 |
-
|
41 |
-
/**
|
42 |
-
* default priority for Remote Widgets
|
43 |
-
*
|
44 |
-
* @type int
|
45 |
-
*/
|
46 |
-
public $default_remote_widget_priority = 40;
|
47 |
-
|
48 |
-
/**
|
49 |
-
* parent panel
|
50 |
-
*
|
51 |
-
* @var YIT_Plugin_Panel
|
52 |
-
*/
|
53 |
-
public $panel;
|
54 |
-
|
55 |
-
private $_is_collapsed;
|
56 |
-
|
57 |
-
/**
|
58 |
-
* @type string
|
59 |
-
*/
|
60 |
-
public static $transient_remote_widgets = 'yit_panel_sidebar_remote_widgets';
|
61 |
-
|
62 |
-
/**
|
63 |
-
* @type string
|
64 |
-
*/
|
65 |
-
public static $transient_updated_remote_widgets = 'yit_panel_sidebar_remote_widgets_update';
|
66 |
-
|
67 |
-
/**
|
68 |
-
* @type string
|
69 |
-
*/
|
70 |
-
public static $collapse_option = 'yith_plugin_panel_sidebar_collapse';
|
71 |
-
|
72 |
-
/**
|
73 |
-
* Constructor
|
74 |
-
*
|
75 |
-
* @param YIT_Plugin_Panel $panel the parent panel
|
76 |
-
*
|
77 |
-
* @since 1.0
|
78 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
79 |
-
*/
|
80 |
-
private function __construct( $panel ) {
|
81 |
-
$this->panel = $panel;
|
82 |
-
|
83 |
-
/* load and sort default widgets and remote widgets */
|
84 |
-
$this->load_widgets();
|
85 |
-
|
86 |
-
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
87 |
-
add_filter( 'yit_admin_panel_content_class', array( $this, 'filter_admin_panel_content_class' ) );
|
88 |
-
}
|
89 |
-
|
90 |
-
/**
|
91 |
-
* get instance
|
92 |
-
*
|
93 |
-
* @static
|
94 |
-
* @return YIT_Plugin_Panel_Sidebar
|
95 |
-
*
|
96 |
-
* @since 1.0
|
97 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
98 |
-
*/
|
99 |
-
public static function instance( $panel ) {
|
100 |
-
return new self( $panel );
|
101 |
-
}
|
102 |
-
|
103 |
-
/**
|
104 |
-
* return true if is collapsed by option
|
105 |
-
*
|
106 |
-
* @return bool
|
107 |
-
*/
|
108 |
-
public function is_collapsed() {
|
109 |
-
if ( !isset( $this->_is_collapsed ) ) {
|
110 |
-
$this->_is_collapsed = get_option( self::$collapse_option, 'no' ) === 'yes';
|
111 |
-
}
|
112 |
-
|
113 |
-
return $this->_is_collapsed;
|
114 |
-
}
|
115 |
-
|
116 |
-
/**
|
117 |
-
* if is collapsed add a class to panel wrapper
|
118 |
-
*
|
119 |
-
* @param $class
|
120 |
-
*
|
121 |
-
* @return string
|
122 |
-
*/
|
123 |
-
public function filter_admin_panel_content_class( $class ) {
|
124 |
-
if ( $this->is_collapsed() ) {
|
125 |
-
$class .= ' yit-admin-panel-content-wrap-full';
|
126 |
-
}
|
127 |
-
|
128 |
-
return $class;
|
129 |
-
}
|
130 |
-
|
131 |
-
/**
|
132 |
-
* Add one or more widgets to $this->widgets
|
133 |
-
*
|
134 |
-
* @param array $widgets
|
135 |
-
*/
|
136 |
-
public function add_widgets( $widgets ) {
|
137 |
-
$this->widgets = array_merge( $this->widgets, $widgets );
|
138 |
-
}
|
139 |
-
|
140 |
-
/**
|
141 |
-
* delete transients
|
142 |
-
*/
|
143 |
-
public static function delete_transients() {
|
144 |
-
delete_transient( self::$transient_remote_widgets );
|
145 |
-
delete_transient( self::$transient_updated_remote_widgets );
|
146 |
-
}
|
147 |
-
|
148 |
-
/**
|
149 |
-
* filter and sort widgets
|
150 |
-
*/
|
151 |
-
private function _filter_and_sort_widgets() {
|
152 |
-
/* filter widgets */
|
153 |
-
$page_name = isset( $this->panel->settings[ 'page' ] ) ? $this->panel->settings[ 'page' ] : '';
|
154 |
-
$this->widgets = apply_filters( 'yit_plugin_panel_sidebar_widgets', $this->widgets, $page_name );
|
155 |
-
|
156 |
-
/*sort widgets*/
|
157 |
-
uasort( $this->widgets, array( $this, 'sort_widgets' ) );
|
158 |
-
}
|
159 |
-
|
160 |
-
/**
|
161 |
-
* get Remote Widget by XML from YIThemes
|
162 |
-
*
|
163 |
-
* @return array
|
164 |
-
*
|
165 |
-
* @since 1.0
|
166 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
167 |
-
*/
|
168 |
-
public function get_remote_widgets() {
|
169 |
-
$load_remote_widgets = apply_filters( 'yit_panel_sidebar_load_remote_widgets', true );
|
170 |
-
if ( !$load_remote_widgets )
|
171 |
-
return array();
|
172 |
-
|
173 |
-
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
174 |
-
$updated = get_transient( self::$transient_updated_remote_widgets );
|
175 |
-
$is_debug = defined( 'YIT_FW_REMOTE_WIDGETS_DEBUG' ) && YIT_FW_REMOTE_WIDGETS_DEBUG;
|
176 |
-
|
177 |
-
if ( $is_debug || $updated === false || $remote_widgets === false ) {
|
178 |
-
$remote_widgets = array();
|
179 |
-
} else {
|
180 |
-
return $remote_widgets;
|
181 |
-
}
|
182 |
-
|
183 |
-
$expiration = 1 * DAY_IN_SECONDS;
|
184 |
-
$updated_expiration = DAY_IN_SECONDS; // update frequency
|
185 |
-
|
186 |
-
$remote_xml = wp_remote_get( $this->_remote_widget_xml );
|
187 |
-
if ( !is_wp_error( $remote_xml ) && isset( $remote_xml[ 'response' ][ 'code' ] ) && '200' == $remote_xml[ 'response' ][ 'code' ] && class_exists( 'SimpleXmlElement' ) ) {
|
188 |
-
try {
|
189 |
-
// suppress all XML errors when loading the document
|
190 |
-
libxml_use_internal_errors( true );
|
191 |
-
|
192 |
-
$xml_data = new SimpleXmlElement( $remote_xml[ 'body' ] );
|
193 |
-
$xml_remote_widgets = isset( $xml_data->widget ) ? $xml_data->widget : array();
|
194 |
-
|
195 |
-
$enabled_args = array(
|
196 |
-
'title',
|
197 |
-
'icon',
|
198 |
-
'content',
|
199 |
-
'class',
|
200 |
-
'title_class',
|
201 |
-
'badge',
|
202 |
-
'badge_text',
|
203 |
-
'image',
|
204 |
-
'image_class',
|
205 |
-
'priority',
|
206 |
-
'starting',
|
207 |
-
'expiration',
|
208 |
-
);
|
209 |
-
|
210 |
-
$last_remote_priority = $this->default_remote_widget_priority;
|
211 |
-
|
212 |
-
foreach ( $xml_remote_widgets as $xml_widget ) {
|
213 |
-
if ( !isset( $xml_widget->id ) )
|
214 |
-
continue;
|
215 |
-
|
216 |
-
$widget_id = (string) $xml_widget->id;
|
217 |
-
$widget_array = array();
|
218 |
-
foreach ( $enabled_args as $key ) {
|
219 |
-
if ( isset( $xml_widget->$key ) ) {
|
220 |
-
$widget_array[ $key ] = (string) $xml_widget->$key;
|
221 |
-
} else {
|
222 |
-
if ( $key == 'priority' ) {
|
223 |
-
$widget_array[ $key ] = $last_remote_priority;
|
224 |
-
$last_remote_priority += 10;
|
225 |
-
}
|
226 |
-
}
|
227 |
-
}
|
228 |
-
$remote_widgets[ $widget_id ] = $widget_array;
|
229 |
-
}
|
230 |
-
|
231 |
-
$xml_expiration = isset( $xml_data->expiration ) ? (string) $xml_data->expiration : '';
|
232 |
-
if ( !empty( $xml_expiration ) ) {
|
233 |
-
$expiration = strtotime( $xml_expiration ) - strtotime( 'now' );
|
234 |
-
// if the XML is expired removes widgets
|
235 |
-
if ( $expiration < 1 )
|
236 |
-
$remote_widgets = array();
|
237 |
-
|
238 |
-
$is_urgent = isset( $xml_data->urgent ) ? !!$xml_data->urgent : false;
|
239 |
-
$is_urgent = true;
|
240 |
-
if ( !$is_urgent ) {
|
241 |
-
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
242 |
-
$expiration += $four_days_random;
|
243 |
-
} else {
|
244 |
-
/**
|
245 |
-
* - - - - - U R G E N T - - - - -
|
246 |
-
* it will be updated the exact day, BUT in different time! :)
|
247 |
-
* [to prevent too many request at the same time]
|
248 |
-
*/
|
249 |
-
$one_day_random = mt_rand( 0, DAY_IN_SECONDS );
|
250 |
-
$expiration += $one_day_random;
|
251 |
-
}
|
252 |
-
}
|
253 |
-
|
254 |
-
$four_days_random = mt_rand( 0, 4 * DAY_IN_SECONDS );
|
255 |
-
|
256 |
-
/* to prevent multiple request if it's expired */
|
257 |
-
if ( $expiration < 1 ) {
|
258 |
-
$expiration = 1 * DAY_IN_SECONDS + $four_days_random;
|
259 |
-
}
|
260 |
-
} catch ( Exception $e ) {
|
261 |
-
|
262 |
-
}
|
263 |
-
|
264 |
-
//$updated_expiration = 30 * DAY_IN_SECONDS + $four_days_random;
|
265 |
-
}
|
266 |
-
|
267 |
-
set_transient( self::$transient_remote_widgets, $remote_widgets, $expiration );
|
268 |
-
set_transient( self::$transient_updated_remote_widgets, true, $updated_expiration );
|
269 |
-
|
270 |
-
return $remote_widgets;
|
271 |
-
}
|
272 |
-
|
273 |
-
/**
|
274 |
-
* load and sort default widgets and remote widgets
|
275 |
-
*
|
276 |
-
* @since 1.0
|
277 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
278 |
-
*/
|
279 |
-
public function load_widgets() {
|
280 |
-
/* get static widgets */
|
281 |
-
$this->widgets = include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/widgets/widgets.php' );
|
282 |
-
|
283 |
-
/* get remote widgets */
|
284 |
-
$remote_widgets = $this->get_remote_widgets();
|
285 |
-
$this->add_widgets( $remote_widgets );
|
286 |
-
}
|
287 |
-
|
288 |
-
/**
|
289 |
-
* Print the panel sidebar
|
290 |
-
*
|
291 |
-
* @return void
|
292 |
-
*
|
293 |
-
* @since 1.0
|
294 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
295 |
-
*/
|
296 |
-
public function print_panel_sidebar() {
|
297 |
-
do_action( 'yit_panel_before_sidebar' );
|
298 |
-
|
299 |
-
include( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sidebar/sidebar.php' );
|
300 |
-
|
301 |
-
do_action( 'yit_panel_after_sidebar' );
|
302 |
-
}
|
303 |
-
|
304 |
-
/**
|
305 |
-
* Print the panel sidebar widgets
|
306 |
-
*
|
307 |
-
* @return void
|
308 |
-
*
|
309 |
-
* @since 1.0
|
310 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
311 |
-
*/
|
312 |
-
public function print_panel_sidebar_widgets() {
|
313 |
-
$basename = YIT_CORE_PLUGIN_PATH;
|
314 |
-
$path = '/panel/sidebar/widget.php';
|
315 |
-
|
316 |
-
$default_args = array(
|
317 |
-
'id' => '',
|
318 |
-
'title' => '',
|
319 |
-
'icon' => '',
|
320 |
-
'content' => '',
|
321 |
-
'class' => '',
|
322 |
-
'title_class' => '',
|
323 |
-
'template' => '',
|
324 |
-
'badge' => '',
|
325 |
-
'badge_text' => '',
|
326 |
-
'image' => '',
|
327 |
-
'image_class' => '',
|
328 |
-
'args' => array(),
|
329 |
-
'hide_if_empty_args' => '',
|
330 |
-
'priority' => 10,
|
331 |
-
'starting' => '',
|
332 |
-
'expiration' => '',
|
333 |
-
);
|
334 |
-
|
335 |
-
$this->_filter_and_sort_widgets();
|
336 |
-
|
337 |
-
foreach ( $this->widgets as $widget_id => $widget ) {
|
338 |
-
$args = array_merge( $widget, array( 'id' => $widget_id ) );
|
339 |
-
$args = wp_parse_args( $args, $default_args );
|
340 |
-
|
341 |
-
$is_started = empty( $args[ 'starting' ] ) || strtotime( $args[ 'starting' ] . ' midnight' ) <= strtotime( 'midnight' );
|
342 |
-
$is_expired = !empty( $args[ 'expiration' ] ) && strtotime( $args[ 'expiration' ] . ' midnight' ) < strtotime( 'midnight' );
|
343 |
-
|
344 |
-
if ( $is_expired || !$is_started )
|
345 |
-
continue;
|
346 |
-
|
347 |
-
if ( !empty( $args[ 'hide_if_empty_args' ] ) ) {
|
348 |
-
$hide_if_empty_args = $args[ 'hide_if_empty_args' ];
|
349 |
-
$continue = false;
|
350 |
-
foreach ( $hide_if_empty_args as $hide_if_empty_arg ) {
|
351 |
-
if ( empty( $args[ 'args' ][ $hide_if_empty_arg ] ) ) {
|
352 |
-
$continue = true;
|
353 |
-
break;
|
354 |
-
}
|
355 |
-
}
|
356 |
-
if ( $continue )
|
357 |
-
continue;
|
358 |
-
}
|
359 |
-
|
360 |
-
do_action( 'yit_panel_sidebar_before_widget', $widget_id, $widget );
|
361 |
-
|
362 |
-
yit_plugin_get_template( $basename, $path, $args );
|
363 |
-
|
364 |
-
do_action( 'yit_panel_sidebar_after_widget', $widget_id, $widget );
|
365 |
-
}
|
366 |
-
}
|
367 |
-
|
368 |
-
/**
|
369 |
-
* set transient for first activation
|
370 |
-
* to prevent too many calls to YIThemes
|
371 |
-
*/
|
372 |
-
public static function set_transient_for_first_activation() {
|
373 |
-
$remote_widgets = get_transient( self::$transient_remote_widgets );
|
374 |
-
$updated = get_transient( self::$transient_updated_remote_widgets );
|
375 |
-
|
376 |
-
$first_activation = $updated === false && $remote_widgets === false;
|
377 |
-
if ( $first_activation ) {
|
378 |
-
$seven_days_random = mt_rand( 0, 7 * DAY_IN_SECONDS );
|
379 |
-
$expiration = 1 * DAY_IN_SECONDS + $seven_days_random;
|
380 |
-
|
381 |
-
set_transient( self::$transient_remote_widgets, array(), $expiration );
|
382 |
-
set_transient( self::$transient_updated_remote_widgets, true, $expiration );
|
383 |
-
}
|
384 |
-
}
|
385 |
-
|
386 |
-
/**
|
387 |
-
* Sort widgets by priority
|
388 |
-
*
|
389 |
-
* @param $a
|
390 |
-
* @param $b
|
391 |
-
*
|
392 |
-
* @return bool
|
393 |
-
*
|
394 |
-
* @since 1.0
|
395 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
396 |
-
*/
|
397 |
-
public function sort_widgets( $a, $b ) {
|
398 |
-
$priority_a = isset( $a[ 'priority' ] ) ? intval( $a[ 'priority' ] ) : $this->default_remote_widget_priority;
|
399 |
-
$priority_b = isset( $b[ 'priority' ] ) ? intval( $b[ 'priority' ] ) : $this->default_remote_widget_priority;
|
400 |
-
if ( $priority_a == $priority_b ) {
|
401 |
-
return 0;
|
402 |
-
} elseif ( $priority_a > $priority_b ) {
|
403 |
-
return 1;
|
404 |
-
} else {
|
405 |
-
return -1;
|
406 |
-
}
|
407 |
-
}
|
408 |
-
|
409 |
-
/**
|
410 |
-
* Add Admin WC Style and Scripts
|
411 |
-
*
|
412 |
-
* @return void
|
413 |
-
*
|
414 |
-
* @since 1.0
|
415 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com
|
416 |
-
*/
|
417 |
-
public function admin_enqueue_scripts() {
|
418 |
-
$min = defined( 'SCRIPT_DEBUG' ) && SCRIPT_DEBUG ? '' : '.min';
|
419 |
-
|
420 |
-
wp_enqueue_style( 'opensans-font', '//fonts.googleapis.com/css?family=Open+Sans:400,500,600,700,800,100,200,300,900' );
|
421 |
-
wp_enqueue_style( 'yit-plugin-sidebar-style', YIT_CORE_PLUGIN_URL . '/assets/css/yit-plugin-panel-sidebar.css', $this->version );
|
422 |
-
wp_enqueue_script( 'yit-plugin-sidebar-js', YIT_CORE_PLUGIN_URL . '/assets/js/yit-plugin-panel-sidebar' . $min . '.js', array( 'jquery' ), $this->version, true );
|
423 |
-
wp_localize_script( 'yit-plugin-sidebar-js', 'sidebar_labels', array(
|
424 |
-
'hide_sidebar' => __( 'Hide sidebar', 'yith-plugin-fw' ),
|
425 |
-
'show_sidebar' => __( 'Show sidebar', 'yith-plugin-fw' ),
|
426 |
-
'wrapper_class' => 'yit-admin-panel-content-wrap',
|
427 |
-
) );
|
428 |
-
}
|
429 |
-
}
|
430 |
-
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/lib/yit-plugin-panel-wc.php
CHANGED
@@ -94,8 +94,9 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
94 |
add_action( 'yith_plugin_fw_get_field_after', array( $this, 'add_yith_ui' ) );
|
95 |
add_action( 'yith_plugin_fw_before_woocommerce_panel', array( $this, 'add_plugin_banner' ), 10, 1 );
|
96 |
add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
|
|
|
97 |
|
98 |
-
|
99 |
add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
|
100 |
|
101 |
// init actions once to prevent multiple actions
|
@@ -302,12 +303,13 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
302 |
|
303 |
$yit_options = $this->get_main_array_options();
|
304 |
$option_key = $this->get_current_option_key();
|
|
|
305 |
|
306 |
if ( version_compare( WC()->version, '2.4.0', '>=' ) ) {
|
307 |
if ( !empty( $yit_options[ $option_key ] ) ) {
|
308 |
foreach ( $yit_options[ $option_key ] as $option ) {
|
309 |
if ( isset( $option[ 'id' ] ) && isset( $_POST[ $option[ 'id' ] ] ) && isset( $option[ 'type' ] ) && !in_array( $option[ 'type' ], self::$wc_type ) ) {
|
310 |
-
|
311 |
}
|
312 |
}
|
313 |
}
|
@@ -327,7 +329,7 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
327 |
}
|
328 |
}
|
329 |
|
330 |
-
|
331 |
|
332 |
do_action( 'yit_panel_wc_after_update' );
|
333 |
|
@@ -339,6 +341,8 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
339 |
|
340 |
$yit_options = $this->get_main_array_options();
|
341 |
$option_key = $this->get_current_option_key();
|
|
|
|
|
342 |
foreach ( $yit_options[ $option_key ] as $id => $option ) {
|
343 |
if ( isset( $option[ 'yith-type' ] ) && $option[ 'yith-type' ] == 'multi-colorpicker' && !empty( $option[ 'colorpickers' ] ) ) {
|
344 |
$default = [];
|
@@ -460,25 +464,26 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
460 |
delete_option( 'yit_plugin_fw_panel_wc_default_options_set' );
|
461 |
}
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
$assets_screen_ids = (array) apply_filters( 'yith_plugin_fw_wc_panel_screen_ids_for_assets', array() );
|
475 |
|
|
|
476 |
|
477 |
-
|
478 |
-
|
|
|
|
|
479 |
|
480 |
-
|
481 |
-
|
482 |
|
483 |
/**
|
484 |
* Maybe unserialize panel data
|
@@ -491,8 +496,8 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
491 |
* @since 2.0
|
492 |
*/
|
493 |
public function maybe_unserialize_panel_data( $value, $option, $raw_value ) {
|
494 |
-
if ( !version_compare( WC()->version, '2.4.0', '>=' ) || !isset( $option[ 'type' ] ) || in_array( $option[ 'type' ], self::$wc_type ) ) {
|
495 |
-
|
496 |
}
|
497 |
|
498 |
$yit_options = $this->get_main_array_options();
|
@@ -618,6 +623,9 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
618 |
}
|
619 |
$field[ 'value' ] = $value;
|
620 |
|
|
|
|
|
|
|
621 |
require( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-option-row.php' );
|
622 |
}
|
623 |
}
|
@@ -687,5 +695,47 @@ if ( !class_exists( 'YIT_Plugin_Panel_WooCommerce' ) ) {
|
|
687 |
|
688 |
parent::print_tabs_nav( $args );
|
689 |
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
690 |
}
|
691 |
}
|
94 |
add_action( 'yith_plugin_fw_get_field_after', array( $this, 'add_yith_ui' ) );
|
95 |
add_action( 'yith_plugin_fw_before_woocommerce_panel', array( $this, 'add_plugin_banner' ), 10, 1 );
|
96 |
add_action( 'admin_action_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
|
97 |
+
add_filter( 'woocommerce_admin_settings_sanitize_option', array( $this, 'sanitize_onoff_value' ), 20, 3 );
|
98 |
|
99 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
|
100 |
add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
|
101 |
|
102 |
// init actions once to prevent multiple actions
|
303 |
|
304 |
$yit_options = $this->get_main_array_options();
|
305 |
$option_key = $this->get_current_option_key();
|
306 |
+
$yit_options = $this->check_for_save_single_option( $yit_options );
|
307 |
|
308 |
if ( version_compare( WC()->version, '2.4.0', '>=' ) ) {
|
309 |
if ( !empty( $yit_options[ $option_key ] ) ) {
|
310 |
foreach ( $yit_options[ $option_key ] as $option ) {
|
311 |
if ( isset( $option[ 'id' ] ) && isset( $_POST[ $option[ 'id' ] ] ) && isset( $option[ 'type' ] ) && !in_array( $option[ 'type' ], self::$wc_type ) ) {
|
312 |
+
$_POST[ $option[ 'id' ] ] = maybe_serialize( $_POST[ $option[ 'id' ] ] );
|
313 |
}
|
314 |
}
|
315 |
}
|
329 |
}
|
330 |
}
|
331 |
|
332 |
+
woocommerce_update_options( $yit_options[ $option_key ] );
|
333 |
|
334 |
do_action( 'yit_panel_wc_after_update' );
|
335 |
|
341 |
|
342 |
$yit_options = $this->get_main_array_options();
|
343 |
$option_key = $this->get_current_option_key();
|
344 |
+
$yit_options = $this->check_for_save_single_option( $yit_options );
|
345 |
+
|
346 |
foreach ( $yit_options[ $option_key ] as $id => $option ) {
|
347 |
if ( isset( $option[ 'yith-type' ] ) && $option[ 'yith-type' ] == 'multi-colorpicker' && !empty( $option[ 'colorpickers' ] ) ) {
|
348 |
$default = [];
|
464 |
delete_option( 'yit_plugin_fw_panel_wc_default_options_set' );
|
465 |
}
|
466 |
|
467 |
+
/**
|
468 |
+
* Add the WooCommerce body class in plugin panel page
|
469 |
+
*
|
470 |
+
* @param string $admin_body_classes The body classes.
|
471 |
+
* @return string Filtered body classes
|
472 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
473 |
+
* @since 2.0
|
474 |
+
*/
|
475 |
+
public static function admin_body_class( $admin_body_classes ) {
|
476 |
+
global $pagenow;
|
|
|
|
|
477 |
|
478 |
+
$assets_screen_ids = (array) apply_filters( 'yith_plugin_fw_wc_panel_screen_ids_for_assets', array() );
|
479 |
|
480 |
+
if ( ( 'admin.php' == $pagenow && ( strpos( get_current_screen()->id, 'yith-plugins_page' ) !== false || in_array( get_current_screen()->id, $assets_screen_ids ) ) ) ) {
|
481 |
+
$admin_body_classes = substr_count( $admin_body_classes, self::$body_class ) == 0 ? $admin_body_classes . self::$body_class : $admin_body_classes;
|
482 |
+
$admin_body_classes = substr_count( $admin_body_classes, 'woocommerce' ) == 0 ? $admin_body_classes . ' woocommerce ' : $admin_body_classes;
|
483 |
+
}
|
484 |
|
485 |
+
return $admin_body_classes;
|
486 |
+
}
|
487 |
|
488 |
/**
|
489 |
* Maybe unserialize panel data
|
496 |
* @since 2.0
|
497 |
*/
|
498 |
public function maybe_unserialize_panel_data( $value, $option, $raw_value ) {
|
499 |
+
if ( ! version_compare( WC()->version, '2.4.0', '>=' ) || !isset( $option[ 'type' ] ) || in_array( $option[ 'type' ], self::$wc_type ) ) {
|
500 |
+
return $value;
|
501 |
}
|
502 |
|
503 |
$yit_options = $this->get_main_array_options();
|
623 |
}
|
624 |
$field[ 'value' ] = $value;
|
625 |
|
626 |
+
// let's filter field data just before print
|
627 |
+
$field = apply_filters( 'yith_plugin_fw_wc_panel_field_data', $field );
|
628 |
+
|
629 |
require( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/woocommerce/woocommerce-option-row.php' );
|
630 |
}
|
631 |
}
|
695 |
|
696 |
parent::print_tabs_nav( $args );
|
697 |
}
|
698 |
+
|
699 |
+
/**
|
700 |
+
* Sanitize OnOff Option
|
701 |
+
*
|
702 |
+
* @param $value mixed Option value
|
703 |
+
* @param $option mixed Option settings array
|
704 |
+
* @param $raw_value string Raw option value
|
705 |
+
* @return mixed Filtered return value
|
706 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
707 |
+
* @since 3.0.0
|
708 |
+
*/
|
709 |
+
public static function sanitize_onoff_value( $value, $option, $raw_value ) {
|
710 |
+
if ( isset( $option[ 'type' ] ) && in_array( $option[ 'type' ], array( 'checkbox', 'onoff' ) ) ) {
|
711 |
+
$value = yith_plugin_fw_is_true( $raw_value ) ? 'yes' : 'no';
|
712 |
+
|
713 |
+
if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
|
714 |
+
$value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
|
715 |
+
}
|
716 |
+
}
|
717 |
+
|
718 |
+
return $value;
|
719 |
+
}
|
720 |
+
|
721 |
+
/**
|
722 |
+
* Check if need to save the toggle element to a single options instead of an array
|
723 |
+
*
|
724 |
+
* @param $yit_options mixed|array Original options array
|
725 |
+
*
|
726 |
+
* @return mixed|array New options array
|
727 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
728 |
+
* @since 3.0.0
|
729 |
+
*/
|
730 |
+
public function check_for_save_single_option( $yit_options ){
|
731 |
+
foreach ( $yit_options as $key => $options_list ){
|
732 |
+
foreach ( $options_list as $value ){
|
733 |
+
if( ! empty( $value['yith-type'] ) && 'toggle-element-fixed' == $value['yith-type'] && isset( $value['save_single_options'] ) && true === $value['save_single_options'] ){
|
734 |
+
$yit_options[ $key ] = array_merge( $yit_options[ $key ] , $value['elements'] );
|
735 |
+
}
|
736 |
+
}
|
737 |
+
}
|
738 |
+
return $yit_options;
|
739 |
+
}
|
740 |
}
|
741 |
}
|
plugin-fw/lib/yit-plugin-panel.php
CHANGED
@@ -7,116 +7,115 @@
|
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
|
10 |
-
if ( !defined( 'ABSPATH' ) ) {
|
11 |
-
|
12 |
} // Exit if accessed directly
|
13 |
|
14 |
-
if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
15 |
-
|
16 |
-
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
|
21 |
-
|
22 |
-
|
23 |
-
|
24 |
-
|
25 |
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
|
31 |
-
|
32 |
-
|
33 |
-
|
34 |
-
|
35 |
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
|
41 |
-
|
42 |
-
|
43 |
-
|
44 |
-
|
45 |
|
46 |
-
|
47 |
-
|
48 |
-
|
49 |
-
|
50 |
|
51 |
-
|
52 |
-
|
53 |
-
|
54 |
-
|
55 |
|
56 |
-
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
|
75 |
-
|
76 |
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
85 |
|
86 |
-
|
87 |
-
|
88 |
-
|
89 |
|
90 |
-
|
91 |
-
|
92 |
|
93 |
-
|
94 |
-
|
95 |
-
|
96 |
|
97 |
-
|
98 |
-
|
99 |
-
|
100 |
|
101 |
-
|
102 |
-
|
103 |
-
|
104 |
-
|
105 |
-
|
106 |
|
107 |
-
|
108 |
add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
|
109 |
|
110 |
-
|
111 |
-
|
112 |
-
|
113 |
|
114 |
-
|
115 |
|
116 |
//yith-plugin-ui
|
117 |
add_action( 'yith_plugin_fw_before_yith_panel', array( $this, 'add_plugin_banner' ), 10, 1 );
|
118 |
add_action( 'wp_ajax_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
|
119 |
-
|
120 |
}
|
121 |
|
122 |
/**
|
@@ -131,7 +130,7 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
131 |
$excluded_post_types = array( 'product', 'page', 'post' );
|
132 |
|
133 |
return in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) &&
|
134 |
-
|
135 |
}
|
136 |
|
137 |
/**
|
@@ -146,1213 +145,1230 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
146 |
$excluded_taxonomies = array( 'category', 'post_tag', 'product_cat', 'product_tag' );
|
147 |
|
148 |
return in_array( $pagenow, array( 'edit-tags.php', 'term.php' ), true ) &&
|
149 |
-
|
150 |
}
|
151 |
|
152 |
-
|
153 |
-
|
154 |
-
|
155 |
-
|
156 |
-
|
157 |
-
|
158 |
-
|
159 |
-
|
160 |
-
|
161 |
-
|
162 |
|
163 |
-
|
164 |
-
|
165 |
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
179 |
|
180 |
-
|
181 |
-
|
182 |
-
|
183 |
-
|
184 |
-
|
185 |
-
|
186 |
-
|
187 |
-
|
188 |
-
|
189 |
-
add_filter( 'submenu_file', array( $this, 'set_submenu_file_to_handle_menu_for_wp_pages' ), 10, 2 );
|
190 |
-
}
|
191 |
-
}
|
192 |
-
}
|
193 |
|
194 |
-
|
195 |
-
|
196 |
-
|
197 |
-
* @since 3.0.0
|
198 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
199 |
-
*/
|
200 |
-
protected static function _init_actions() {
|
201 |
-
if ( !static::$_actions_initialized ) {
|
202 |
-
add_filter( 'admin_body_class', array( __CLASS__, 'add_body_class' ) );
|
203 |
|
204 |
-
// sort plugins by name in YITH Plugins menu
|
205 |
-
add_action( 'admin_menu', array( __CLASS__, 'sort_plugins' ), 90 );
|
206 |
-
add_filter( 'add_menu_classes', array( __CLASS__, 'add_menu_class_in_yith_plugin' ) );
|
207 |
|
|
|
|
|
|
|
208 |
|
209 |
-
|
210 |
-
|
211 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
212 |
|
213 |
-
|
214 |
-
|
215 |
-
|
216 |
-
|
217 |
-
|
218 |
-
|
219 |
-
|
220 |
-
|
221 |
-
|
222 |
-
|
223 |
-
|
224 |
-
|
225 |
-
$sub_tabs = $this->get_sub_tabs( $_tab );
|
226 |
-
$current_tab_key = array_keys( $_tab )[ 0 ];
|
227 |
-
|
228 |
-
$this->_tabs_hierarchy[ $current_tab_key ] = array_merge( array( 'parent' => '', 'has_sub_tabs' => !!$sub_tabs ), $this->get_tab_info_by_options( $_tab[ $current_tab_key ] ) );
|
229 |
-
|
230 |
-
foreach ( $sub_tabs as $sub_item => $sub_options ) {
|
231 |
-
if ( strpos( $sub_item, $item . '-' ) === 0 ) {
|
232 |
-
$sub_item = substr( $sub_item, strlen( $item ) + 1 );
|
233 |
-
}
|
234 |
-
$sub_tab_path = $options_path . '/' . $item . '/' . $sub_item . '-options.php';
|
235 |
-
$sub_tab_path = apply_filters( 'yith_plugin_panel_sub_tab_item_options_path', $sub_tab_path, $sub_tabs, $sub_item, $this );
|
236 |
-
|
237 |
-
if ( file_exists( $sub_tab_path ) ) {
|
238 |
-
$_sub_tab = include $sub_tab_path;
|
239 |
-
$this->_main_array_options = array_merge( $this->_main_array_options, $_sub_tab );
|
240 |
-
|
241 |
-
$current_sub_tab_key = array_keys( $_sub_tab )[ 0 ];
|
242 |
-
$this->_tabs_hierarchy[ $current_sub_tab_key ] = array_merge( array( 'parent' => $current_tab_key ), $this->get_tab_info_by_options( $_sub_tab[ $current_sub_tab_key ] ) );
|
243 |
-
}
|
244 |
-
}
|
245 |
-
}
|
246 |
-
}
|
247 |
-
}
|
248 |
-
}
|
249 |
|
250 |
-
|
251 |
-
|
252 |
-
*
|
253 |
-
* @param $admin_body_classes
|
254 |
-
* @return string
|
255 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
256 |
-
* @since 3.0.0
|
257 |
-
*/
|
258 |
-
public static function add_body_class( $admin_body_classes ) {
|
259 |
-
global $pagenow;
|
260 |
-
if ( ( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith-plugins_page' ) !== false ) )
|
261 |
-
$admin_body_classes = substr_count( $admin_body_classes, ' yith-plugin-fw-panel ' ) == 0 ? $admin_body_classes . ' yith-plugin-fw-panel ' : $admin_body_classes;
|
262 |
|
263 |
-
|
264 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
265 |
|
266 |
-
|
267 |
-
|
268 |
-
|
269 |
-
|
270 |
-
|
271 |
-
|
272 |
-
|
273 |
-
|
274 |
-
|
275 |
-
|
276 |
-
|
277 |
-
|
278 |
-
$capability = apply_filters( 'yit_plugin_panel_menu_page_capability', 'manage_options' );
|
279 |
-
$show = apply_filters( 'yit_plugin_panel_menu_page_show', true );
|
280 |
-
|
281 |
-
// YITH text must not be translated
|
282 |
-
if ( !!$show ) {
|
283 |
-
add_menu_page( 'yith_plugin_panel', 'YITH', $capability, 'yith_plugin_panel', null, yith_plugin_fw_get_default_logo(), $position );
|
284 |
-
$admin_page_hooks[ 'yith_plugin_panel' ] = 'yith-plugins'; // prevent issues for backward compatibility
|
285 |
-
}
|
286 |
-
}
|
287 |
-
}
|
288 |
|
289 |
-
|
290 |
-
|
291 |
-
|
292 |
-
|
293 |
-
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
301 |
|
302 |
-
|
303 |
-
|
304 |
-
|
305 |
-
|
306 |
-
|
307 |
-
* @since 1.0
|
308 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
309 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
310 |
-
*/
|
311 |
-
public function admin_enqueue_scripts() {
|
312 |
-
global $pagenow;
|
313 |
-
|
314 |
-
// enqueue styles only in the current panel page
|
315 |
-
if ( 'admin.php' === $pagenow && strpos( get_current_screen()->id, $this->settings[ 'page' ] ) !== false || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) {
|
316 |
-
wp_enqueue_media();
|
317 |
-
|
318 |
-
wp_enqueue_style( 'yith-plugin-fw-fields' );
|
319 |
-
wp_enqueue_style( 'yit-jquery-ui-style' );
|
320 |
-
wp_enqueue_style( 'raleway-font' );
|
321 |
-
|
322 |
-
wp_enqueue_script( 'jquery-ui' );
|
323 |
-
wp_enqueue_script( 'jquery-ui-core' );
|
324 |
-
wp_enqueue_script( 'jquery-ui-dialog' );
|
325 |
-
wp_enqueue_script( 'yith_how_to' );
|
326 |
-
wp_enqueue_script( 'yith-plugin-fw-fields' );
|
327 |
-
}
|
328 |
|
329 |
-
|
330 |
-
|
331 |
-
|
332 |
-
|
333 |
-
}
|
334 |
|
335 |
-
|
336 |
-
wp_enqueue_style( 'yit-upgrade-to-pro' );
|
337 |
-
wp_enqueue_script( 'colorbox' );
|
338 |
-
}
|
339 |
|
340 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
341 |
|
342 |
-
|
343 |
-
|
344 |
-
|
345 |
-
|
346 |
-
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
353 |
|
354 |
-
|
355 |
-
|
356 |
-
* a callback function called by Register Settings function
|
357 |
-
*
|
358 |
-
* @param $input
|
359 |
-
* @return array validate input fields
|
360 |
-
* @since 1.0
|
361 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
362 |
-
*/
|
363 |
-
public function options_validate( $input ) {
|
364 |
-
|
365 |
-
$option_key = !empty( $input[ 'option_key' ] ) ? $input[ 'option_key' ] : 'general';
|
366 |
-
|
367 |
-
$yit_options = $this->get_main_array_options();
|
368 |
-
|
369 |
-
// default
|
370 |
-
$valid_input = $this->get_options();
|
371 |
-
|
372 |
-
$submit = ( !empty( $input[ 'submit-general' ] ) ? true : false );
|
373 |
-
$reset = ( !empty( $input[ 'reset-general' ] ) ? true : false );
|
374 |
-
|
375 |
-
foreach ( $yit_options[ $option_key ] as $section => $data ) {
|
376 |
-
foreach ( $data as $option ) {
|
377 |
-
if ( isset( $option[ 'sanitize_call' ] ) && isset( $option[ 'id' ] ) ) { //yiw_debug($option, false);
|
378 |
-
if ( is_array( $option[ 'sanitize_call' ] ) ) :
|
379 |
-
foreach ( $option[ 'sanitize_call' ] as $callback ) {
|
380 |
-
if ( is_array( $input[ $option[ 'id' ] ] ) ) {
|
381 |
-
$valid_input[ $option[ 'id' ] ] = array_map( $callback, $input[ $option[ 'id' ] ] );
|
382 |
-
} else {
|
383 |
-
$valid_input[ $option[ 'id' ] ] = call_user_func( $callback, $input[ $option[ 'id' ] ] );
|
384 |
-
}
|
385 |
-
}
|
386 |
-
else :
|
387 |
-
if ( is_array( $input[ $option[ 'id' ] ] ) ) {
|
388 |
-
$valid_input[ $option[ 'id' ] ] = array_map( $option[ 'sanitize_call' ], $input[ $option[ 'id' ] ] );
|
389 |
-
} else {
|
390 |
-
$valid_input[ $option[ 'id' ] ] = call_user_func( $option[ 'sanitize_call' ], $input[ $option[ 'id' ] ] );
|
391 |
-
}
|
392 |
-
endif;
|
393 |
-
} else {
|
394 |
-
if ( isset( $option[ 'id' ] ) ) {
|
395 |
-
$value = isset( $input[ $option[ 'id' ] ] ) ? $input[ $option[ 'id' ] ] : false;
|
396 |
-
if ( isset( $option[ 'type' ] ) && in_array( $option[ 'type' ], array( 'checkbox', 'onoff' ) ) ) {
|
397 |
-
$value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
|
398 |
-
}
|
399 |
-
|
400 |
-
if ( !empty( $option[ 'yith-sanitize-callback' ] ) && is_callable( $option[ 'yith-sanitize-callback' ] ) ) {
|
401 |
-
$value = call_user_func( $option[ 'yith-sanitize-callback' ], $value );
|
402 |
-
}
|
403 |
-
|
404 |
-
$valid_input[ $option[ 'id' ] ] = $value;
|
405 |
-
}
|
406 |
-
}
|
407 |
-
|
408 |
-
}
|
409 |
-
}
|
410 |
|
411 |
-
|
412 |
-
|
413 |
|
414 |
-
|
415 |
-
|
416 |
-
|
417 |
-
|
418 |
-
|
419 |
-
|
420 |
-
|
421 |
-
|
422 |
-
|
423 |
-
|
424 |
-
|
425 |
-
|
426 |
-
|
427 |
-
|
428 |
-
|
429 |
-
|
430 |
-
|
431 |
-
|
432 |
-
|
433 |
-
|
434 |
-
|
435 |
|
436 |
|
437 |
-
|
438 |
|
439 |
-
|
440 |
-
|
441 |
-
|
442 |
-
|
443 |
-
|
444 |
-
|
445 |
-
|
446 |
-
|
447 |
-
|
448 |
-
|
449 |
-
|
450 |
-
|
451 |
|
452 |
-
|
453 |
-
|
454 |
-
|
455 |
-
|
456 |
-
|
457 |
-
|
458 |
-
|
459 |
-
|
460 |
-
|
461 |
-
|
462 |
|
463 |
-
|
464 |
-
|
465 |
-
|
466 |
-
|
467 |
-
|
468 |
-
|
469 |
-
|
470 |
-
|
471 |
-
|
472 |
-
|
473 |
-
|
474 |
-
|
475 |
-
|
476 |
-
|
477 |
-
|
478 |
-
|
479 |
-
|
480 |
-
|
481 |
-
|
482 |
-
|
483 |
-
|
484 |
-
|
485 |
-
|
486 |
-
|
487 |
-
|
488 |
-
|
489 |
-
|
490 |
-
|
491 |
-
|
492 |
-
|
493 |
-
$active_class
|
494 |
-
|
495 |
-
|
496 |
-
|
497 |
-
|
498 |
-
|
499 |
-
|
500 |
-
|
501 |
-
|
502 |
-
|
503 |
-
|
504 |
-
|
505 |
-
|
506 |
-
|
507 |
-
|
508 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
509 |
|
510 |
-
|
511 |
-
|
512 |
-
|
513 |
-
|
514 |
-
|
515 |
-
|
516 |
-
|
517 |
-
|
518 |
-
|
519 |
-
|
520 |
-
|
521 |
-
|
522 |
-
|
523 |
-
|
524 |
-
|
525 |
-
|
526 |
-
|
527 |
-
|
528 |
-
|
529 |
-
|
530 |
-
|
531 |
|
532 |
-
|
533 |
-
|
534 |
|
535 |
-
|
536 |
-
|
537 |
-
|
538 |
-
|
539 |
-
|
540 |
-
|
541 |
-
|
542 |
-
|
543 |
-
|
544 |
-
|
545 |
-
|
546 |
-
|
547 |
-
|
548 |
-
|
549 |
-
|
550 |
-
|
551 |
-
|
552 |
-
|
553 |
-
|
554 |
-
|
555 |
-
|
556 |
-
|
557 |
-
|
558 |
-
|
559 |
-
|
560 |
-
|
561 |
-
|
562 |
-
|
563 |
|
564 |
-
|
565 |
-
|
566 |
-
|
567 |
-
|
568 |
-
|
569 |
-
|
570 |
-
|
571 |
-
|
572 |
-
|
573 |
-
|
574 |
-
|
575 |
-
|
576 |
-
|
577 |
-
|
578 |
-
|
579 |
-
|
580 |
-
|
581 |
-
|
582 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
583 |
|
584 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
585 |
|
586 |
-
|
587 |
-
|
588 |
-
|
589 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
590 |
|
591 |
-
|
592 |
-
|
593 |
-
<div id="wrap" class="yith-plugin-fw plugin-option yit-admin-panel-container">
|
594 |
-
<?php $this->message(); ?>
|
595 |
-
<div class="<?php echo $panel_content_class; ?>">
|
596 |
-
<h2><?php echo $this->get_tab_title() ?></h2>
|
597 |
-
<?php if ( $this->is_show_form() ) : ?>
|
598 |
-
<form id="yith-plugin-fw-panel" method="post" action="options.php">
|
599 |
-
<?php do_settings_sections( 'yit' ); ?>
|
600 |
-
<p> </p>
|
601 |
-
<?php settings_fields( 'yit_' . $this->settings[ 'parent' ] . '_options' ); ?>
|
602 |
-
<input type="hidden" name="<?php echo $this->get_name_field( 'option_key' ) ?>" value="<?php echo esc_attr( $option_key ) ?>"/>
|
603 |
-
<input type="submit" class="button-primary" value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>" style="float:left;margin-right:10px;"/>
|
604 |
-
</form>
|
605 |
-
<form method="post">
|
606 |
-
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
|
607 |
-
<input type="hidden" name="yit-action" value="reset"/>
|
608 |
-
<input type="submit" name="yit-reset" class="button-secondary" value="<?php _e( 'Reset to default', 'yith-plugin-fw' ) ?>"
|
609 |
-
onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
|
610 |
-
</form>
|
611 |
-
<p> </p>
|
612 |
-
<?php endif ?>
|
613 |
-
</div>
|
614 |
-
</div>
|
615 |
-
</div>
|
616 |
-
<?php
|
617 |
-
}
|
618 |
|
619 |
-
|
620 |
-
|
621 |
-
|
622 |
-
|
623 |
-
|
624 |
-
|
625 |
-
*/
|
626 |
-
public function is_custom_tab( $options, $option_key ) {
|
627 |
-
foreach ( $options[ $option_key ] as $section => $option ) {
|
628 |
-
if ( isset( $option[ 'type' ] ) && isset( $option[ 'action' ] ) && 'custom_tab' == $option[ 'type' ] && !empty( $option[ 'action' ] ) ) {
|
629 |
-
return $option[ 'action' ];
|
630 |
-
} else {
|
631 |
-
return false;
|
632 |
-
}
|
633 |
-
}
|
634 |
|
635 |
-
|
636 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
637 |
|
638 |
-
|
639 |
-
|
640 |
-
$type = isset( $first[ 'type' ] ) ? $first[ 'type' ] : 'options';
|
641 |
-
$special_types = array( 'post_type', 'taxonomy', 'custom_tab', 'multi_tab' );
|
642 |
-
return in_array( $type, $special_types ) ? $type : 'options';
|
643 |
-
}
|
644 |
|
645 |
-
|
646 |
-
|
647 |
-
|
648 |
-
|
649 |
-
|
650 |
-
|
651 |
-
|
652 |
-
|
653 |
-
|
|
|
|
|
|
|
654 |
|
655 |
-
|
656 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
657 |
|
658 |
-
|
659 |
-
|
660 |
-
|
661 |
-
|
662 |
-
|
663 |
-
|
664 |
-
|
665 |
-
|
666 |
-
|
667 |
-
|
668 |
-
|
669 |
-
|
670 |
|
671 |
-
/**
|
672 |
-
* Add sections and fields to setting panel
|
673 |
-
* read all options and show sections and fields
|
674 |
-
*
|
675 |
-
* @return void
|
676 |
-
* @since 1.0
|
677 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
678 |
-
*/
|
679 |
-
public function add_fields() {
|
680 |
-
$yit_options = $this->get_main_array_options();
|
681 |
-
$option_key = $this->get_current_option_key();
|
682 |
|
683 |
-
|
684 |
-
|
685 |
-
|
686 |
-
|
687 |
-
|
688 |
-
|
689 |
-
|
690 |
-
|
691 |
-
|
692 |
-
}
|
693 |
-
}
|
694 |
-
}
|
695 |
|
|
|
696 |
|
697 |
-
|
698 |
-
|
699 |
-
|
700 |
-
*
|
701 |
-
* @return void|array return void when capability is false
|
702 |
-
* @since 1.0
|
703 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
704 |
-
*/
|
705 |
-
public function add_admin_bar_menu() {
|
706 |
|
707 |
-
|
|
|
708 |
|
709 |
-
|
710 |
-
|
711 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
|
713 |
-
if ( !empty( $this->settings[ 'admin_tabs' ] ) ) {
|
714 |
-
foreach ( $this->settings[ 'admin-tabs' ] as $item => $title ) {
|
715 |
|
716 |
-
|
717 |
-
|
718 |
-
|
719 |
-
|
720 |
-
|
721 |
-
|
722 |
-
|
723 |
-
|
724 |
-
|
|
|
725 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
726 |
|
727 |
-
|
728 |
-
|
729 |
-
|
730 |
-
|
731 |
-
|
732 |
-
|
733 |
-
|
734 |
-
|
735 |
-
|
736 |
-
|
737 |
|
738 |
-
|
739 |
-
|
740 |
-
|
741 |
-
|
742 |
-
|
743 |
-
|
744 |
-
|
745 |
-
} elseif ( isset( $admin_tabs[ 0 ] ) ) {
|
746 |
-
return $admin_tabs[ 0 ];
|
747 |
-
} else {
|
748 |
-
return 'general';
|
749 |
-
}
|
750 |
-
}
|
751 |
|
752 |
-
|
753 |
-
|
754 |
-
*
|
755 |
-
* @return string the key of the sub-tab if exists, empty string otherwise
|
756 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
757 |
-
* @since 3.4.0
|
758 |
-
*/
|
759 |
-
public function get_current_sub_tab() {
|
760 |
-
$sub_tabs = $this->get_sub_tabs();
|
761 |
-
$sub_tab = isset( $_REQUEST[ 'sub_tab' ] ) ? $_REQUEST[ 'sub_tab' ] : '';
|
762 |
-
|
763 |
-
if ( $sub_tabs ) {
|
764 |
-
if ( $sub_tab && !isset( $sub_tabs[ $sub_tab ] ) || !$sub_tab ) {
|
765 |
-
$sub_tab = current( array_keys( $sub_tabs ) );
|
766 |
-
}
|
767 |
-
} else {
|
768 |
-
$sub_tab = '';
|
769 |
-
}
|
770 |
|
771 |
-
|
772 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
773 |
|
774 |
-
|
775 |
-
|
776 |
-
|
777 |
-
* fot normal tabs, it will return the current tab
|
778 |
-
*
|
779 |
-
* @return string the current sub-tab, if exists; the current tab otherwise
|
780 |
-
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
781 |
-
* @since 3.4.0
|
782 |
-
*/
|
783 |
-
public function get_current_option_key() {
|
784 |
-
$current_tab = $this->get_current_tab();
|
785 |
-
$current_sub_tab = $this->get_current_sub_tab();
|
786 |
|
787 |
-
|
788 |
-
|
789 |
-
}
|
790 |
|
791 |
-
return $current_sub_tab ? $current_sub_tab : $current_tab;
|
792 |
-
}
|
793 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
794 |
|
795 |
-
|
796 |
-
|
797 |
-
|
798 |
-
|
799 |
-
|
800 |
-
|
801 |
-
|
802 |
-
|
803 |
-
|
804 |
-
|
805 |
-
|
806 |
-
|
807 |
-
|
808 |
-
|
809 |
-
|
810 |
-
|
811 |
-
'updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
812 |
-
'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
813 |
-
'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
814 |
-
'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
815 |
-
'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
816 |
-
'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
817 |
-
'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yith-plugin-fw' ) . '</strong>', 'updated', false )
|
818 |
-
);
|
819 |
-
|
820 |
-
foreach ( $message as $key => $value ) {
|
821 |
-
if ( isset( $_GET[ $key ] ) ) {
|
822 |
-
echo $message[ $key ];
|
823 |
-
}
|
824 |
-
}
|
825 |
|
826 |
-
|
|
|
827 |
|
828 |
-
/**
|
829 |
-
* Get Message
|
830 |
-
* return html code of message
|
831 |
-
*
|
832 |
-
* @param $message
|
833 |
-
* @param string $type can be 'error' or 'updated'
|
834 |
-
* @param bool $echo
|
835 |
-
* @return string
|
836 |
-
* @since 1.0
|
837 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
838 |
-
*/
|
839 |
-
public function get_message( $message, $type = 'error', $echo = true ) {
|
840 |
-
$message = '<div id="message" class="' . $type . ' fade"><p>' . $message . '</p></div>';
|
841 |
-
if ( $echo ) {
|
842 |
-
echo $message;
|
843 |
-
}
|
844 |
|
845 |
-
|
846 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
847 |
|
|
|
848 |
|
849 |
-
|
850 |
-
* Get Tab Path Files
|
851 |
-
* return an array with file names of tabs
|
852 |
-
*
|
853 |
-
* @return array
|
854 |
-
* @since 1.0
|
855 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
856 |
-
*/
|
857 |
-
function get_tabs_path_files() {
|
858 |
|
859 |
-
|
|
|
860 |
|
861 |
-
|
|
|
|
|
862 |
|
863 |
-
|
864 |
-
preg_match( '/(.*)-options\.(.*)/', basename( $filename ), $filename_parts );
|
865 |
|
866 |
-
|
867 |
-
|
868 |
-
}
|
869 |
|
870 |
-
|
|
|
871 |
|
872 |
-
|
873 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
874 |
|
875 |
-
|
876 |
-
|
877 |
|
878 |
-
|
879 |
-
|
880 |
-
* return an array with all options defined on options-files
|
881 |
-
*
|
882 |
-
* @return array
|
883 |
-
* @since 1.0
|
884 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
885 |
-
*/
|
886 |
-
function get_main_array_options() {
|
887 |
-
$this->_maybe_init_vars();
|
888 |
|
889 |
-
|
890 |
-
|
891 |
|
892 |
-
|
893 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
894 |
|
895 |
-
|
896 |
-
|
|
|
|
|
|
|
|
|
|
|
897 |
|
898 |
-
|
899 |
-
|
900 |
-
|
901 |
-
|
902 |
-
|
903 |
-
|
904 |
-
|
905 |
-
*/
|
906 |
-
public function get_sub_tabs( $_tab = false ) {
|
907 |
-
if ( false === $_tab ) {
|
908 |
-
$_tab = $this->get_current_tab();
|
909 |
-
}
|
910 |
|
911 |
-
|
912 |
-
|
913 |
-
|
914 |
-
|
915 |
-
|
916 |
-
|
917 |
-
|
|
|
|
|
918 |
|
919 |
-
|
920 |
-
|
921 |
-
|
922 |
-
return $_first[ 'sub-tabs' ];
|
923 |
-
}
|
924 |
-
return array();
|
925 |
-
}
|
926 |
|
927 |
-
|
928 |
-
|
929 |
-
if ( is_string( $_tab ) ) {
|
930 |
-
$main_array_options = $this->get_main_array_options();
|
931 |
-
$current_tab_options = isset( $main_array_options[ $_tab ] ) ? $main_array_options[ $_tab ] : array();
|
932 |
-
if ( $current_tab_options ) {
|
933 |
-
$_tab = array( $_tab => $current_tab_options );
|
934 |
-
}
|
935 |
-
}
|
936 |
|
937 |
-
if ( ( $sub_tabs = $this->get_sub_tabs( $_tab ) ) ) {
|
938 |
-
$key = current( array_keys( $sub_tabs ) );
|
939 |
-
}
|
940 |
|
941 |
-
|
942 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
943 |
|
|
|
944 |
|
945 |
-
|
946 |
-
|
947 |
-
* put default options in an array
|
948 |
-
*
|
949 |
-
* @return array
|
950 |
-
* @since 1.0
|
951 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
952 |
-
*/
|
953 |
-
public function get_default_options() {
|
954 |
-
$yit_options = $this->get_main_array_options();
|
955 |
-
$default_options = array();
|
956 |
-
|
957 |
-
foreach ( $yit_options as $tab => $sections ) {
|
958 |
-
foreach ( $sections as $section ) {
|
959 |
-
foreach ( $section as $id => $value ) {
|
960 |
-
if ( isset( $value[ 'std' ] ) && isset( $value[ 'id' ] ) ) {
|
961 |
-
$default_options[ $value[ 'id' ] ] = $value[ 'std' ];
|
962 |
-
}
|
963 |
-
}
|
964 |
-
}
|
965 |
-
}
|
966 |
|
967 |
-
unset( $yit_options );
|
968 |
|
969 |
-
|
970 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
971 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
972 |
|
973 |
-
|
974 |
-
|
975 |
-
|
976 |
-
|
977 |
-
|
978 |
-
|
979 |
-
|
980 |
-
*/
|
981 |
-
function get_tab_title() {
|
982 |
-
$yit_options = $this->get_main_array_options();
|
983 |
-
$option_key = $this->get_current_option_key();
|
984 |
-
|
985 |
-
foreach ( $yit_options[ $option_key ] as $sections => $data ) {
|
986 |
-
foreach ( $data as $option ) {
|
987 |
-
if ( isset( $option[ 'type' ] ) && $option[ 'type' ] == 'title' ) {
|
988 |
-
return $option[ 'name' ];
|
989 |
-
}
|
990 |
-
}
|
991 |
-
}
|
992 |
-
return '';
|
993 |
-
}
|
994 |
|
995 |
-
|
996 |
-
|
997 |
-
|
998 |
-
|
999 |
-
|
1000 |
-
|
1001 |
-
|
1002 |
-
|
1003 |
-
|
1004 |
-
|
1005 |
-
|
1006 |
-
|
1007 |
-
|
1008 |
-
foreach ( $yit_options[ $option_key ][ $section ] as $option ) {
|
1009 |
-
if ( isset( $option[ 'type' ] ) && $option[ 'type' ] == 'section' ) {
|
1010 |
-
return $option[ 'name' ];
|
1011 |
-
}
|
1012 |
-
}
|
1013 |
-
return '';
|
1014 |
-
}
|
1015 |
|
1016 |
-
|
1017 |
-
|
1018 |
-
|
1019 |
-
|
1020 |
-
|
1021 |
-
|
1022 |
-
|
1023 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1024 |
-
*/
|
1025 |
-
function get_section_description( $section ) {
|
1026 |
-
$yit_options = $this->get_main_array_options();
|
1027 |
-
$option_key = $this->get_current_option_key();
|
1028 |
-
|
1029 |
-
foreach ( $yit_options[ $option_key ][ $section ] as $option ) {
|
1030 |
-
if ( isset( $option[ 'type' ] ) && $option[ 'type' ] == 'section' && isset( $option[ 'desc' ] ) ) {
|
1031 |
-
return '<p>' . $option[ 'desc' ] . '</p>';
|
1032 |
-
}
|
1033 |
-
}
|
1034 |
-
return '';
|
1035 |
-
}
|
1036 |
|
1037 |
|
1038 |
-
|
1039 |
-
|
1040 |
-
|
1041 |
-
|
1042 |
-
|
1043 |
-
|
1044 |
-
|
1045 |
-
|
1046 |
-
|
1047 |
-
|
1048 |
-
|
1049 |
-
|
1050 |
-
|
1051 |
-
|
1052 |
-
|
1053 |
-
|
1054 |
-
|
1055 |
-
|
1056 |
-
|
1057 |
-
|
1058 |
-
|
1059 |
-
|
1060 |
-
|
1061 |
-
|
1062 |
-
|
1063 |
|
1064 |
-
|
1065 |
-
|
1066 |
-
|
1067 |
-
|
1068 |
-
|
1069 |
-
|
1070 |
-
|
1071 |
-
|
1072 |
-
|
1073 |
-
|
1074 |
-
|
1075 |
-
|
1076 |
|
1077 |
-
|
1078 |
-
|
1079 |
-
|
1080 |
-
|
1081 |
-
|
1082 |
-
|
1083 |
-
|
1084 |
-
|
1085 |
-
|
1086 |
-
|
1087 |
-
|
1088 |
-
|
1089 |
|
1090 |
|
1091 |
-
|
1092 |
-
|
1093 |
-
|
1094 |
-
|
1095 |
-
|
1096 |
-
|
1097 |
-
|
1098 |
-
|
1099 |
-
|
1100 |
-
|
1101 |
-
|
1102 |
|
1103 |
-
|
1104 |
-
|
1105 |
-
|
1106 |
|
1107 |
-
|
1108 |
|
1109 |
-
|
1110 |
-
|
1111 |
-
|
1112 |
-
|
1113 |
-
|
1114 |
|
1115 |
-
|
1116 |
-
|
1117 |
-
|
1118 |
|
1119 |
-
|
1120 |
-
|
1121 |
|
1122 |
-
|
1123 |
-
|
1124 |
|
1125 |
-
|
1126 |
-
|
1127 |
-
|
1128 |
-
|
1129 |
-
|
1130 |
-
|
1131 |
-
|
1132 |
-
|
1133 |
|
1134 |
-
|
1135 |
-
|
1136 |
-
|
1137 |
-
|
1138 |
-
|
1139 |
-
|
1140 |
-
|
1141 |
-
|
1142 |
-
|
1143 |
-
|
1144 |
-
|
1145 |
-
|
1146 |
-
|
1147 |
-
|
1148 |
|
1149 |
-
|
1150 |
-
|
1151 |
|
1152 |
-
|
1153 |
-
|
1154 |
-
|
1155 |
-
|
1156 |
-
|
1157 |
-
|
1158 |
-
|
1159 |
-
|
1160 |
-
|
1161 |
-
|
1162 |
-
|
1163 |
-
|
1164 |
-
|
1165 |
-
|
1166 |
|
1167 |
-
|
1168 |
-
|
1169 |
-
|
1170 |
-
|
1171 |
-
|
1172 |
-
|
1173 |
-
|
1174 |
-
|
1175 |
|
1176 |
-
|
1177 |
|
1178 |
-
|
1179 |
-
|
1180 |
-
|
1181 |
-
|
1182 |
-
|
1183 |
-
|
1184 |
-
|
1185 |
|
1186 |
-
|
1187 |
|
1188 |
-
|
1189 |
-
|
1190 |
-
|
1191 |
-
|
1192 |
-
|
1193 |
-
|
1194 |
-
|
1195 |
-
|
1196 |
-
|
1197 |
-
|
1198 |
|
1199 |
-
|
1200 |
-
|
1201 |
-
|
1202 |
|
1203 |
-
|
1204 |
-
|
1205 |
-
|
1206 |
|
1207 |
-
|
1208 |
-
|
1209 |
-
|
1210 |
-
|
1211 |
-
|
1212 |
-
|
1213 |
-
|
1214 |
-
|
1215 |
-
|
1216 |
-
|
1217 |
-
|
1218 |
-
|
1219 |
-
|
1220 |
-
|
1221 |
-
|
1222 |
-
|
1223 |
-
|
1224 |
-
|
1225 |
-
|
1226 |
-
|
1227 |
-
|
1228 |
-
|
1229 |
-
|
1230 |
-
|
1231 |
-
|
1232 |
-
|
1233 |
|
1234 |
-
|
1235 |
-
|
1236 |
|
1237 |
-
|
1238 |
-
|
1239 |
-
|
1240 |
-
|
1241 |
-
|
1242 |
-
|
1243 |
-
|
1244 |
-
|
1245 |
-
|
1246 |
|
1247 |
-
|
1248 |
-
|
1249 |
-
|
1250 |
-
|
1251 |
|
1252 |
-
|
1253 |
-
|
1254 |
-
|
1255 |
|
1256 |
-
|
1257 |
-
|
1258 |
-
|
1259 |
-
|
1260 |
-
|
1261 |
-
|
1262 |
-
|
1263 |
-
|
1264 |
-
|
1265 |
-
|
1266 |
-
|
1267 |
-
|
1268 |
-
|
1269 |
-
|
1270 |
-
|
1271 |
-
|
1272 |
-
|
1273 |
-
|
1274 |
-
|
1275 |
-
|
1276 |
-
|
1277 |
-
|
1278 |
-
|
1279 |
|
1280 |
-
|
1281 |
-
|
1282 |
-
|
1283 |
-
|
1284 |
-
|
1285 |
-
|
1286 |
-
|
1287 |
-
|
1288 |
|
1289 |
-
|
1290 |
|
1291 |
-
|
1292 |
-
|
1293 |
-
|
1294 |
-
|
1295 |
-
|
1296 |
-
|
1297 |
-
|
1298 |
-
|
1299 |
-
|
1300 |
-
|
1301 |
-
|
1302 |
-
|
1303 |
-
|
1304 |
|
1305 |
|
1306 |
-
|
1307 |
-
|
1308 |
|
1309 |
-
|
1310 |
-
|
1311 |
-
|
1312 |
-
|
1313 |
-
|
1314 |
-
|
1315 |
-
|
1316 |
-
|
1317 |
-
|
1318 |
-
|
1319 |
|
1320 |
$panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
|
1321 |
|
1322 |
return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_post_type_tabs", $tabs, $post_type );
|
1323 |
-
|
1324 |
|
1325 |
-
|
1326 |
-
|
1327 |
-
|
1328 |
-
|
1329 |
-
|
1330 |
-
|
1331 |
-
|
1332 |
-
|
1333 |
-
|
1334 |
-
|
1335 |
-
|
1336 |
-
|
1337 |
-
|
1338 |
|
1339 |
$panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
|
1340 |
|
1341 |
return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_taxonomy_tabs", $tabs, $taxonomy );
|
1342 |
-
|
1343 |
|
1344 |
|
1345 |
-
|
1346 |
-
|
1347 |
-
|
1348 |
-
|
1349 |
-
|
1350 |
-
|
1351 |
-
|
1352 |
-
|
1353 |
-
|
1354 |
if ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && $this->settings['page'] === $_GET['page'] &&
|
1355 |
-
|
1356 |
$url = $this->get_nav_url( $this->settings['page'], $this->get_current_tab(), $this->get_current_sub_tab() );
|
1357 |
if ( strpos( $url, 'edit.php' ) !== false || strpos( $url, 'edit-tags.php' ) !== false ) {
|
1358 |
wp_safe_redirect( add_query_arg( array( 'yith-plugin-fw-panel-skip-redirect' => 1 ), $url ) );
|
@@ -1371,6 +1387,8 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1371 |
public function print_panel_tabs_in_wp_pages() {
|
1372 |
if ( self::$_panel_tabs_in_wp_pages ) {
|
1373 |
wp_enqueue_style( 'yit-plugin-style' );
|
|
|
|
|
1374 |
$wrap_class = isset( $this->settings[ 'class' ] ) ? $this->settings[ 'class' ] : '';
|
1375 |
|
1376 |
?>
|
@@ -1418,6 +1436,4 @@ if ( !class_exists( 'YIT_Plugin_Panel' ) ) {
|
|
1418 |
return true;
|
1419 |
}
|
1420 |
}
|
1421 |
-
|
1422 |
-
|
1423 |
}
|
7 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
8 |
*/
|
9 |
|
10 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
+
exit;
|
12 |
} // Exit if accessed directly
|
13 |
|
14 |
+
if ( ! class_exists( 'YIT_Plugin_Panel' ) ) {
|
15 |
+
/**
|
16 |
+
* YIT Plugin Panel
|
17 |
+
* Setting Page to Manage Plugins
|
18 |
+
*
|
19 |
+
* @class YIT_Plugin_Panel
|
20 |
+
* @package YITH
|
21 |
+
* @since 1.0
|
22 |
+
* @author Your Inspiration Themes
|
23 |
+
*/
|
24 |
+
class YIT_Plugin_Panel {
|
25 |
|
26 |
+
/**
|
27 |
+
* @var string version of class
|
28 |
+
*/
|
29 |
+
public $version = '1.0.0';
|
30 |
|
31 |
+
/**
|
32 |
+
* @var array a setting list of parameters
|
33 |
+
*/
|
34 |
+
public $settings = array();
|
35 |
|
36 |
+
/**
|
37 |
+
* @var array
|
38 |
+
*/
|
39 |
+
protected $_tabs_path_files;
|
40 |
|
41 |
+
/**
|
42 |
+
* @var array
|
43 |
+
*/
|
44 |
+
protected $_main_array_options;
|
45 |
|
46 |
+
/**
|
47 |
+
* @var array
|
48 |
+
*/
|
49 |
+
protected $_tabs_hierarchy;
|
50 |
|
51 |
+
/**
|
52 |
+
* @var array
|
53 |
+
*/
|
54 |
+
protected static $_panel_tabs_in_wp_pages = array();
|
55 |
|
56 |
+
/**
|
57 |
+
* @var array
|
58 |
+
*/
|
59 |
+
public $links;
|
60 |
|
61 |
+
/**
|
62 |
+
* @var bool
|
63 |
+
*/
|
64 |
+
protected static $_actions_initialized = false;
|
65 |
|
66 |
+
/**
|
67 |
+
* Constructor
|
68 |
+
*
|
69 |
+
* @param array $args
|
70 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
71 |
+
* @since 1.0
|
72 |
+
*/
|
73 |
+
public function __construct( $args = array() ) {
|
74 |
|
75 |
+
if ( ! empty( $args ) ) {
|
76 |
|
77 |
+
$default_args = array(
|
78 |
+
'parent_slug' => 'edit.php?',
|
79 |
+
'page_title' => __( 'Plugin Settings', 'yith-plugin-fw' ),
|
80 |
+
'menu_title' => __( 'Settings', 'yith-plugin-fw' ),
|
81 |
+
'capability' => 'manage_options',
|
82 |
+
'icon_url' => '',
|
83 |
+
'position' => null,
|
84 |
+
);
|
85 |
|
86 |
+
$args = apply_filters( 'yit_plugin_fw_panel_option_args', wp_parse_args( $args, $default_args ) );
|
87 |
+
if ( isset( $args['parent_page'] ) && 'yit_plugin_panel' === $args['parent_page'] )
|
88 |
+
$args['parent_page'] = 'yith_plugin_panel';
|
89 |
|
90 |
+
$this->settings = $args;
|
91 |
+
$this->_tabs_path_files = $this->get_tabs_path_files();
|
92 |
|
93 |
+
if ( isset( $this->settings['create_menu_page'] ) && $this->settings['create_menu_page'] ) {
|
94 |
+
$this->add_menu_page();
|
95 |
+
}
|
96 |
|
97 |
+
if ( ! empty( $this->settings['links'] ) ) {
|
98 |
+
$this->links = $this->settings['links'];
|
99 |
+
}
|
100 |
|
101 |
+
add_action( 'admin_init', array( $this, 'register_settings' ) );
|
102 |
+
add_action( 'admin_menu', array( $this, 'add_setting_page' ), 20 );
|
103 |
+
add_action( 'admin_menu', array( $this, 'add_premium_version_upgrade_to_menu' ), 100 );
|
104 |
+
add_action( 'admin_bar_menu', array( $this, 'add_admin_bar_menu' ), 100 );
|
105 |
+
add_action( 'admin_init', array( $this, 'add_fields' ) );
|
106 |
|
107 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'init_wp_with_tabs' ), 11 );
|
108 |
add_action( 'admin_init', array( $this, 'maybe_redirect_to_proper_wp_page' ) );
|
109 |
|
110 |
+
// init actions once to prevent multiple actions
|
111 |
+
static::_init_actions();
|
112 |
+
}
|
113 |
|
114 |
+
add_action( 'admin_enqueue_scripts', array( $this, 'admin_enqueue_scripts' ) );
|
115 |
|
116 |
//yith-plugin-ui
|
117 |
add_action( 'yith_plugin_fw_before_yith_panel', array( $this, 'add_plugin_banner' ), 10, 1 );
|
118 |
add_action( 'wp_ajax_yith_plugin_fw_save_toggle_element', array( $this, 'save_toggle_element_options' ) );
|
|
|
119 |
}
|
120 |
|
121 |
/**
|
130 |
$excluded_post_types = array( 'product', 'page', 'post' );
|
131 |
|
132 |
return in_array( $pagenow, array( 'post.php', 'post-new.php', 'edit.php' ), true ) &&
|
133 |
+
! in_array( $post_type, $excluded_post_types, true );
|
134 |
}
|
135 |
|
136 |
/**
|
145 |
$excluded_taxonomies = array( 'category', 'post_tag', 'product_cat', 'product_tag' );
|
146 |
|
147 |
return in_array( $pagenow, array( 'edit-tags.php', 'term.php' ), true ) &&
|
148 |
+
! in_array( $taxonomy, $excluded_taxonomies, true );
|
149 |
}
|
150 |
|
151 |
+
/**
|
152 |
+
* Init actions to show YITH Panel tabs in WP Pages
|
153 |
+
*
|
154 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
155 |
+
* @since 3.4.0
|
156 |
+
*/
|
157 |
+
public function init_wp_with_tabs() {
|
158 |
+
if ( ! current_user_can( $this->settings['capability'] ) ) {
|
159 |
+
return;
|
160 |
+
}
|
161 |
|
162 |
+
global $post_type, $taxonomy;
|
163 |
+
$tabs = false;
|
164 |
|
165 |
+
if ( $this->is_custom_post_type_page() ) {
|
166 |
+
$tabs = $this->get_post_type_tabs( $post_type );
|
167 |
+
} else if ( $this->is_custom_taxonomy_page() ) {
|
168 |
+
$tabs = $this->get_taxonomy_tabs( $taxonomy );
|
169 |
+
}
|
170 |
|
171 |
+
if ( $tabs ) {
|
172 |
+
// tabs_in_edit
|
173 |
+
$current_tab_args = array(
|
174 |
+
'page' => $this->settings['page'],
|
175 |
+
'current_tab' => isset( $tabs['tab'] ) ? $tabs['tab'] : '',
|
176 |
+
'current_sub_tab' => isset( $tabs['sub_tab'] ) ? $tabs['sub_tab'] : '',
|
177 |
+
);
|
178 |
+
|
179 |
+
wp_enqueue_style( 'yit-plugin-style' );
|
180 |
+
wp_enqueue_style( 'yith-plugin-fw-fields' );
|
181 |
+
wp_enqueue_script( 'yith-plugin-fw-wp-pages' );
|
182 |
+
|
183 |
+
if ( ! self::$_panel_tabs_in_wp_pages ) {
|
184 |
+
self::$_panel_tabs_in_wp_pages = $current_tab_args;
|
185 |
+
add_action( 'all_admin_notices', array( $this, 'print_panel_tabs_in_wp_pages' ) );
|
186 |
+
add_action( 'admin_footer', array( $this, 'print_panel_tabs_in_wp_pages_end' ) );
|
187 |
+
add_filter( 'parent_file', array( $this, 'set_parent_file_to_handle_menu_for_wp_pages' ) );
|
188 |
+
add_filter( 'submenu_file', array( $this, 'set_submenu_file_to_handle_menu_for_wp_pages' ), 10, 2 );
|
189 |
+
}
|
190 |
+
}
|
191 |
+
}
|
192 |
|
193 |
+
/**
|
194 |
+
* Init actions once to prevent multiple actions
|
195 |
+
*
|
196 |
+
* @since 3.0.0
|
197 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
198 |
+
*/
|
199 |
+
protected static function _init_actions() {
|
200 |
+
if ( ! static::$_actions_initialized ) {
|
201 |
+
add_filter( 'admin_body_class', array( __CLASS__, 'add_body_class' ) );
|
|
|
|
|
|
|
|
|
202 |
|
203 |
+
// sort plugins by name in YITH Plugins menu
|
204 |
+
add_action( 'admin_menu', array( __CLASS__, 'sort_plugins' ), 90 );
|
205 |
+
add_filter( 'add_menu_classes', array( __CLASS__, 'add_menu_class_in_yith_plugin' ) );
|
|
|
|
|
|
|
|
|
|
|
|
|
206 |
|
|
|
|
|
|
|
207 |
|
208 |
+
static::$_actions_initialized = true;
|
209 |
+
}
|
210 |
+
}
|
211 |
|
212 |
+
protected function _maybe_init_vars() {
|
213 |
+
if ( ! isset( $this->_main_array_options ) && ! isset( $this->_tabs_hierarchy ) ) {
|
214 |
+
$options_path = $this->settings['options-path'];
|
215 |
+
$this->_main_array_options = array();
|
216 |
+
$this->_tabs_hierarchy = array();
|
217 |
+
|
218 |
+
foreach ( $this->settings['admin-tabs'] as $item => $v ) {
|
219 |
+
$path = trailingslashit( $options_path ) . $item . '-options.php';
|
220 |
+
$path = apply_filters( 'yith_plugin_panel_item_options_path', $path, $options_path, $item, $this );
|
221 |
+
if ( file_exists( $path ) ) {
|
222 |
+
$_tab = include $path;
|
223 |
+
$this->_main_array_options = array_merge( $this->_main_array_options, $_tab );
|
224 |
+
$sub_tabs = $this->get_sub_tabs( $_tab );
|
225 |
+
$current_tab_key = array_keys( $_tab )[0];
|
226 |
+
|
227 |
+
$this->_tabs_hierarchy[ $current_tab_key ] = array_merge( array( 'parent' => '', 'has_sub_tabs' => ! ! $sub_tabs ), $this->get_tab_info_by_options( $_tab[ $current_tab_key ] ) );
|
228 |
+
|
229 |
+
foreach ( $sub_tabs as $sub_item => $sub_options ) {
|
230 |
+
if ( strpos( $sub_item, $item . '-' ) === 0 ) {
|
231 |
+
$sub_item = substr( $sub_item, strlen( $item ) + 1 );
|
232 |
+
}
|
233 |
+
$sub_tab_path = $options_path . '/' . $item . '/' . $sub_item . '-options.php';
|
234 |
+
$sub_tab_path = apply_filters( 'yith_plugin_panel_sub_tab_item_options_path', $sub_tab_path, $sub_tabs, $sub_item, $this );
|
235 |
+
|
236 |
+
if ( file_exists( $sub_tab_path ) ) {
|
237 |
+
$_sub_tab = include $sub_tab_path;
|
238 |
+
$this->_main_array_options = array_merge( $this->_main_array_options, $_sub_tab );
|
239 |
+
|
240 |
+
$current_sub_tab_key = array_keys( $_sub_tab )[0];
|
241 |
+
$this->_tabs_hierarchy[ $current_sub_tab_key ] = array_merge( array( 'parent' => $current_tab_key ), $this->get_tab_info_by_options( $_sub_tab[ $current_sub_tab_key ] ) );
|
242 |
+
}
|
243 |
+
}
|
244 |
+
}
|
245 |
+
}
|
246 |
+
}
|
247 |
+
}
|
248 |
|
249 |
+
/**
|
250 |
+
* Add yith-plugin-fw-panel in body classes in Panel pages
|
251 |
+
*
|
252 |
+
* @param $admin_body_classes
|
253 |
+
* @return string
|
254 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
255 |
+
* @since 3.0.0
|
256 |
+
*/
|
257 |
+
public static function add_body_class( $admin_body_classes ) {
|
258 |
+
global $pagenow;
|
259 |
+
if ( ( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith-plugins_page' ) !== false ) )
|
260 |
+
$admin_body_classes = substr_count( $admin_body_classes, ' yith-plugin-fw-panel ' ) == 0 ? $admin_body_classes . ' yith-plugin-fw-panel ' : $admin_body_classes;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
261 |
|
262 |
+
return $admin_body_classes;
|
263 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
264 |
|
265 |
+
/**
|
266 |
+
* Add Menu page link
|
267 |
+
*
|
268 |
+
* @return void
|
269 |
+
* @since 1.0
|
270 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
271 |
+
*/
|
272 |
+
public function add_menu_page() {
|
273 |
+
global $admin_page_hooks;
|
274 |
+
|
275 |
+
if ( ! isset( $admin_page_hooks['yith_plugin_panel'] ) ) {
|
276 |
+
$position = apply_filters( 'yit_plugins_menu_item_position', '62.32' );
|
277 |
+
$capability = apply_filters( 'yit_plugin_panel_menu_page_capability', 'manage_options' );
|
278 |
+
$show = apply_filters( 'yit_plugin_panel_menu_page_show', true );
|
279 |
+
|
280 |
+
// YITH text must not be translated
|
281 |
+
if ( ! ! $show ) {
|
282 |
+
add_menu_page( 'yith_plugin_panel', 'YITH', $capability, 'yith_plugin_panel', null, yith_plugin_fw_get_default_logo(), $position );
|
283 |
+
$admin_page_hooks['yith_plugin_panel'] = 'yith-plugins'; // prevent issues for backward compatibility
|
284 |
+
}
|
285 |
+
}
|
286 |
+
}
|
287 |
|
288 |
+
/**
|
289 |
+
* Remove duplicate submenu
|
290 |
+
* Submenu page hack: Remove the duplicate YIT Plugin link on subpages
|
291 |
+
*
|
292 |
+
* @return void
|
293 |
+
* @since 1.0
|
294 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
295 |
+
*/
|
296 |
+
public function remove_duplicate_submenu_page() {
|
297 |
+
/* === Duplicate Items Hack === */
|
298 |
+
remove_submenu_page( 'yith_plugin_panel', 'yith_plugin_panel' );
|
299 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
300 |
|
301 |
+
/**
|
302 |
+
* Enqueue script and styles in admin side
|
303 |
+
* Add style and scripts to administrator
|
304 |
+
*
|
305 |
+
* @return void
|
306 |
+
* @since 1.0
|
307 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
308 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
309 |
+
*/
|
310 |
+
public function admin_enqueue_scripts() {
|
311 |
+
global $pagenow;
|
312 |
+
|
313 |
+
// enqueue styles only in the current panel page
|
314 |
+
if ( 'admin.php' === $pagenow && strpos( get_current_screen()->id, $this->settings['page'] ) !== false || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) {
|
315 |
+
wp_enqueue_media();
|
316 |
+
|
317 |
+
wp_enqueue_style( 'yith-plugin-fw-fields' );
|
318 |
+
wp_enqueue_style( 'yit-jquery-ui-style' );
|
319 |
+
wp_enqueue_style( 'raleway-font' );
|
320 |
+
|
321 |
+
wp_enqueue_script( 'jquery-ui' );
|
322 |
+
wp_enqueue_script( 'jquery-ui-core' );
|
323 |
+
wp_enqueue_script( 'jquery-ui-dialog' );
|
324 |
+
wp_enqueue_script( 'yith_how_to' );
|
325 |
+
wp_enqueue_script( 'yith-plugin-fw-fields' );
|
326 |
+
}
|
327 |
|
328 |
+
if ( ( 'admin.php' == $pagenow && yith_plugin_fw_is_panel() ) || apply_filters( 'yit_plugin_panel_asset_loading', false ) ) {
|
329 |
+
wp_enqueue_media();
|
330 |
+
wp_enqueue_style( 'yit-plugin-style' );
|
331 |
+
wp_enqueue_script( 'yit-plugin-panel' );
|
332 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
333 |
|
334 |
+
if ( 'admin.php' == $pagenow && strpos( get_current_screen()->id, 'yith_upgrade_premium_version' ) !== false ) {
|
335 |
+
wp_enqueue_style( 'yit-upgrade-to-pro' );
|
336 |
+
wp_enqueue_script( 'colorbox' );
|
337 |
+
}
|
|
|
338 |
|
339 |
+
}
|
|
|
|
|
|
|
340 |
|
341 |
+
/**
|
342 |
+
* Register Settings
|
343 |
+
* Generate wp-admin settings pages by registering your settings and using a few callbacks to control the output
|
344 |
+
*
|
345 |
+
* @return void
|
346 |
+
* @since 1.0
|
347 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
348 |
+
*/
|
349 |
+
public function register_settings() {
|
350 |
+
register_setting( 'yit_' . $this->settings['parent'] . '_options', 'yit_' . $this->settings['parent'] . '_options', array( $this, 'options_validate' ) );
|
351 |
+
}
|
352 |
|
353 |
+
/**
|
354 |
+
* Options Validate
|
355 |
+
* a callback function called by Register Settings function
|
356 |
+
*
|
357 |
+
* @param $input
|
358 |
+
* @return array validate input fields
|
359 |
+
* @since 1.0
|
360 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
361 |
+
*/
|
362 |
+
public function options_validate( $input ) {
|
363 |
+
|
364 |
+
$option_key = ! empty( $input['option_key'] ) ? $input['option_key'] : 'general';
|
365 |
+
|
366 |
+
$yit_options = $this->get_main_array_options();
|
367 |
+
|
368 |
+
// default
|
369 |
+
$valid_input = $this->get_options();
|
370 |
+
|
371 |
+
$submit = ( ! empty( $input['submit-general'] ) ? true : false );
|
372 |
+
$reset = ( ! empty( $input['reset-general'] ) ? true : false );
|
373 |
+
|
374 |
+
foreach ( $yit_options[ $option_key ] as $section => $data ) {
|
375 |
+
foreach ( $data as $option ) {
|
376 |
+
if ( isset( $option['sanitize_call'] ) && isset( $option['id'] ) ) { //yiw_debug($option, false);
|
377 |
+
if ( is_array( $option['sanitize_call'] ) ) :
|
378 |
+
foreach ( $option['sanitize_call'] as $callback ) {
|
379 |
+
if ( is_array( $input[ $option['id'] ] ) ) {
|
380 |
+
$valid_input[ $option['id'] ] = array_map( $callback, $input[ $option['id'] ] );
|
381 |
+
} else {
|
382 |
+
$valid_input[ $option['id'] ] = call_user_func( $callback, $input[ $option['id'] ] );
|
383 |
+
}
|
384 |
+
}
|
385 |
+
else :
|
386 |
+
if ( is_array( $input[ $option['id'] ] ) ) {
|
387 |
+
$valid_input[ $option['id'] ] = array_map( $option['sanitize_call'], $input[ $option['id'] ] );
|
388 |
+
} else {
|
389 |
+
$valid_input[ $option['id'] ] = call_user_func( $option['sanitize_call'], $input[ $option['id'] ] );
|
390 |
+
}
|
391 |
+
endif;
|
392 |
+
} else {
|
393 |
+
if ( isset( $option['id'] ) ) {
|
394 |
+
$value = isset( $input[ $option['id'] ] ) ? $input[ $option['id'] ] : false;
|
395 |
+
if ( isset( $option['type'] ) && in_array( $option['type'], array( 'checkbox', 'onoff' ) ) ) {
|
396 |
+
$value = yith_plugin_fw_is_true( $value ) ? 'yes' : 'no';
|
397 |
+
}
|
398 |
+
|
399 |
+
if ( ! empty( $option['yith-sanitize-callback'] ) && is_callable( $option['yith-sanitize-callback'] ) ) {
|
400 |
+
$value = call_user_func( $option['yith-sanitize-callback'], $value );
|
401 |
+
}
|
402 |
+
|
403 |
+
$valid_input[ $option['id'] ] = $value;
|
404 |
+
}
|
405 |
+
}
|
406 |
|
407 |
+
}
|
408 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
409 |
|
410 |
+
return $valid_input;
|
411 |
+
}
|
412 |
|
413 |
+
/**
|
414 |
+
* Add Setting SubPage
|
415 |
+
* add Setting SubPage to wordpress administrator
|
416 |
+
*
|
417 |
+
* @return array validate input fields
|
418 |
+
* @since 1.0
|
419 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
420 |
+
*/
|
421 |
+
public function add_setting_page() {
|
422 |
+
$this->settings['icon_url'] = isset( $this->settings['icon_url'] ) ? $this->settings['icon_url'] : '';
|
423 |
+
$this->settings['position'] = isset( $this->settings['position'] ) ? $this->settings['position'] : null;
|
424 |
+
$parent = $this->settings['parent_slug'] . $this->settings['parent_page'];
|
425 |
+
|
426 |
+
if ( ! empty( $parent ) ) {
|
427 |
+
add_submenu_page( $parent, $this->settings['page_title'], $this->settings['menu_title'], $this->settings['capability'], $this->settings['page'], array( $this, 'yit_panel' ) );
|
428 |
+
} else {
|
429 |
+
add_menu_page( $this->settings['page_title'], $this->settings['menu_title'], $this->settings['capability'], $this->settings['page'], array( $this, 'yit_panel' ), $this->settings['icon_url'], $this->settings['position'] );
|
430 |
+
}
|
431 |
+
/* === Duplicate Items Hack === */
|
432 |
+
$this->remove_duplicate_submenu_page();
|
433 |
+
do_action( 'yit_after_add_settings_page' );
|
434 |
|
435 |
|
436 |
+
}
|
437 |
|
438 |
+
/**
|
439 |
+
* Add Premium Version upgrade menu item
|
440 |
+
*
|
441 |
+
* @return void
|
442 |
+
* @since 2.9.13
|
443 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
444 |
+
*/
|
445 |
+
public function add_premium_version_upgrade_to_menu() {
|
446 |
+
/* === Add the How To menu item only if the customer haven't a premium version enabled === */
|
447 |
+
if ( function_exists( 'YIT_Plugin_Licence' ) && ! ! YIT_Plugin_Licence()->get_products() ) {
|
448 |
+
return;
|
449 |
+
}
|
450 |
|
451 |
+
global $submenu;
|
452 |
+
if ( apply_filters( 'yit_show_upgrade_to_premium_version', isset( $submenu['yith_plugin_panel'] ) ) ) {
|
453 |
+
$submenu['yith_plugin_panel']['how_to'] = array(
|
454 |
+
sprintf( '%s%s%s', '<span id="yith-how-to-premium">', __( 'How to install premium version', 'yith-plugin-fw' ), '</span>' ),
|
455 |
+
'install_plugins',
|
456 |
+
'//support.yithemes.com/hc/en-us/articles/217840988',
|
457 |
+
__( 'How to install premium version', 'yith-plugin-fw' ),
|
458 |
+
);
|
459 |
+
}
|
460 |
+
}
|
461 |
|
462 |
+
/**
|
463 |
+
* Print the tabs navigation
|
464 |
+
*
|
465 |
+
* @param array $args
|
466 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
467 |
+
* @since 3.4.0
|
468 |
+
*/
|
469 |
+
public function print_tabs_nav( $args = array() ) {
|
470 |
+
$defaults = array(
|
471 |
+
'current_tab' => $this->get_current_tab(),
|
472 |
+
'premium_class' => isset( $this->settings['class'] ) ? 'yith-premium' : 'premium',
|
473 |
+
'page' => $this->settings['page'],
|
474 |
+
'parent_page' => $this->settings['parent_page'],
|
475 |
+
'wrapper_class' => 'nav-tab-wrapper',
|
476 |
+
);
|
477 |
+
$args = wp_parse_args( $args, $defaults );
|
478 |
+
/**
|
479 |
+
* @var string $current_tab
|
480 |
+
* @var string $premium_class
|
481 |
+
* @var string $page
|
482 |
+
* @var string $parent_page
|
483 |
+
* @var string $wrapper_class
|
484 |
+
*/
|
485 |
+
extract( $args );
|
486 |
+
|
487 |
+
$tabs = '<ul class="yith-plugin-fw-tabs">';
|
488 |
+
|
489 |
+
foreach ( $this->settings['admin-tabs'] as $tab => $tab_value ) {
|
490 |
+
$active_class = ( $current_tab == $tab ) ? ' nav-tab-active' : '';
|
491 |
+
$active_class .= 'premium' == $tab ? ' ' . $premium_class : '';
|
492 |
+
$active_class = apply_filters( 'yith_plugin_fw_panel_active_tab_class', $active_class, $current_tab, $tab );
|
493 |
+
|
494 |
+
$first_sub_tab = $this->get_first_sub_tab_key( $tab );
|
495 |
+
$sub_tab = ! ! $first_sub_tab ? $first_sub_tab : '';
|
496 |
+
$sub_tabs = $this->get_sub_tabs( $tab );
|
497 |
+
$url = $this->get_nav_url( $page, $tab, $sub_tab, $parent_page );
|
498 |
+
$icon = ( $current_tab !== $tab && $sub_tabs ) ? '<i class="yith-icon yith-icon-arrow_down"></i>' : '';
|
499 |
+
|
500 |
+
$tabs .= '<li class="yith-plugin-fw-tab-element">';
|
501 |
+
$tabs .= '<a class="nav-tab' . $active_class . '" href="' . $url . '">' . $tab_value . $icon . '</a>';
|
502 |
+
|
503 |
+
if ( $current_tab !== $tab && $sub_tabs ) {
|
504 |
+
$tabs .= '<div class="nav-subtab-wrap"><ul class="nav-subtab">';
|
505 |
+
foreach ( $sub_tabs as $_key => $_tab ) {
|
506 |
+
$url = $this->get_nav_url( $page, $tab, $_key );
|
507 |
+
$tabs .= '<li class="nav-subtab-item"><a href="' . $url . '">' . $_tab['title'] . '</a></li>';
|
508 |
+
}
|
509 |
+
$tabs .= '</ul></div>';
|
510 |
+
}
|
511 |
+
$tabs .= '</li>';
|
512 |
+
}
|
513 |
+
$tabs .= '</ul>';
|
514 |
+
?>
|
515 |
+
<h2 class="<?php echo $wrapper_class ?>">
|
516 |
+
<?php echo $tabs ?>
|
517 |
+
</h2>
|
518 |
+
<?php
|
519 |
+
$this->print_sub_tabs_nav( $args );
|
520 |
+
}
|
521 |
|
522 |
+
/**
|
523 |
+
* @param string $page
|
524 |
+
* @param string $tab
|
525 |
+
* @param string $sub_tab
|
526 |
+
* @param string $parent_page
|
527 |
+
* @return string
|
528 |
+
*/
|
529 |
+
public function get_nav_url( $page, $tab, $sub_tab = '', $parent_page = '' ) {
|
530 |
+
$tab_hierarchy = $this->get_tabs_hierarchy();
|
531 |
+
$key = ! ! $sub_tab ? $sub_tab : $tab;
|
532 |
+
|
533 |
+
if ( isset( $tab_hierarchy[ $key ], $tab_hierarchy[ $key ]['type'], $tab_hierarchy[ $key ]['post_type'] ) && 'post_type' === $tab_hierarchy[ $key ]['type'] ) {
|
534 |
+
$url = admin_url( "edit.php?post_type={$tab_hierarchy[$key]['post_type']}" );
|
535 |
+
} elseif ( isset( $tab_hierarchy[ $key ], $tab_hierarchy[ $key ]['type'], $tab_hierarchy[ $key ]['taxonomy'] ) && 'taxonomy' === $tab_hierarchy[ $key ]['type'] ) {
|
536 |
+
$url = admin_url( "edit-tags.php?taxonomy={$tab_hierarchy[$key]['taxonomy']}" );
|
537 |
+
} else {
|
538 |
+
$url = ! ! $parent_page ? "?{$parent_page}&" : '?';
|
539 |
+
$url .= "page={$page}&tab={$tab}";
|
540 |
+
$url .= ! ! $sub_tab ? "&sub_tab={$sub_tab}" : '';
|
541 |
+
$url = admin_url( "admin.php{$url}" );
|
542 |
+
}
|
543 |
|
544 |
+
return apply_filters( 'yith_plugin_fw_panel_url', $url, $page, $tab, $sub_tab, $parent_page );
|
545 |
+
}
|
546 |
|
547 |
+
/**
|
548 |
+
* Print the Sub-tabs navigation if the current tab has sub-tabs
|
549 |
+
*
|
550 |
+
* @param array $args
|
551 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
552 |
+
* @since 3.4.0
|
553 |
+
*/
|
554 |
+
public function print_sub_tabs_nav( $args = array() ) {
|
555 |
+
$defaults = array(
|
556 |
+
'current_tab' => $this->get_current_tab(),
|
557 |
+
'page' => $this->settings['page'],
|
558 |
+
'current_sub_tab' => $this->get_current_sub_tab(),
|
559 |
+
);
|
560 |
+
$args = wp_parse_args( $args, $defaults );
|
561 |
+
|
562 |
+
/**
|
563 |
+
* @var string $current_tab
|
564 |
+
* @var string $page
|
565 |
+
* @var string $current_sub_tab
|
566 |
+
*/
|
567 |
+
extract( $args );
|
568 |
+
|
569 |
+
$sub_tabs = $this->get_sub_tabs( $current_tab );
|
570 |
+
|
571 |
+
if ( $sub_tabs && $current_sub_tab ) {
|
572 |
+
include YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/sub-tabs-nav.php';
|
573 |
+
}
|
574 |
+
}
|
575 |
|
576 |
+
/**
|
577 |
+
* Show a tabbed panel to setting page
|
578 |
+
* a callback function called by add_setting_page => add_submenu_page
|
579 |
+
*
|
580 |
+
* @return void
|
581 |
+
* @since 1.0
|
582 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
583 |
+
*/
|
584 |
+
public function yit_panel() {
|
585 |
+
$yit_options = $this->get_main_array_options();
|
586 |
+
$wrap_class = isset( $this->settings['class'] ) ? $this->settings['class'] : '';
|
587 |
+
|
588 |
+
$option_key = $this->get_current_option_key();
|
589 |
+
$custom_tab_action = $this->is_custom_tab( $yit_options, $option_key );
|
590 |
+
?>
|
591 |
+
<div class="wrap <?php echo $wrap_class ?>">
|
592 |
+
<div id="icon-themes" class="icon32"><br/></div>
|
593 |
+
<?php
|
594 |
+
do_action( 'yith_plugin_fw_before_yith_panel', $this->settings['page'] );
|
595 |
+
|
596 |
+
$this->print_tabs_nav();
|
597 |
+
|
598 |
+
if ( $custom_tab_action ) {
|
599 |
+
$this->print_custom_tab( $custom_tab_action );
|
600 |
+
return;
|
601 |
+
}
|
602 |
|
603 |
+
$panel_content_class = apply_filters( 'yit_admin_panel_content_class', 'yit-admin-panel-content-wrap' );
|
604 |
+
?>
|
605 |
+
<div id="wrap" class="yith-plugin-fw plugin-option yit-admin-panel-container">
|
606 |
+
<?php $this->message(); ?>
|
607 |
+
<div class="<?php echo $panel_content_class; ?>">
|
608 |
+
<h2><?php echo $this->get_tab_title() ?></h2>
|
609 |
+
<?php if ( $this->is_show_form() ) : ?>
|
610 |
+
<form id="yith-plugin-fw-panel" method="post" action="options.php">
|
611 |
+
<?php do_settings_sections( 'yit' ); ?>
|
612 |
+
<p> </p>
|
613 |
+
<?php settings_fields( 'yit_' . $this->settings['parent'] . '_options' ); ?>
|
614 |
+
<input type="hidden" name="<?php echo $this->get_name_field( 'option_key' ) ?>"
|
615 |
+
value="<?php echo esc_attr( $option_key ) ?>"/>
|
616 |
+
<input type="submit" class="button-primary"
|
617 |
+
value="<?php _e( 'Save Changes', 'yith-plugin-fw' ) ?>"
|
618 |
+
style="float:left;margin-right:10px;"/>
|
619 |
+
</form>
|
620 |
+
<form method="post">
|
621 |
+
<?php $warning = __( 'If you continue with this action, you will reset all options in this page.', 'yith-plugin-fw' ) ?>
|
622 |
+
<input type="hidden" name="yit-action" value="reset"/>
|
623 |
+
<input type="submit" name="yit-reset" class="button-secondary"
|
624 |
+
value="<?php _e( 'Reset to default', 'yith-plugin-fw' ) ?>"
|
625 |
+
onclick="return confirm('<?php echo $warning . '\n' . __( 'Are you sure?', 'yith-plugin-fw' ) ?>');"/>
|
626 |
+
</form>
|
627 |
+
<p> </p>
|
628 |
+
<?php endif ?>
|
629 |
+
</div>
|
630 |
+
</div>
|
631 |
+
</div>
|
632 |
+
<?php
|
633 |
+
}
|
634 |
|
635 |
+
/**
|
636 |
+
* Check if is a custom tab
|
637 |
+
*
|
638 |
+
* @param array $options
|
639 |
+
* @param string $option_key
|
640 |
+
* @return bool
|
641 |
+
*/
|
642 |
+
public function is_custom_tab( $options, $option_key ) {
|
643 |
+
foreach ( $options[ $option_key ] as $section => $option ) {
|
644 |
+
if ( isset( $option['type'] ) && isset( $option['action'] ) && 'custom_tab' == $option['type'] && ! empty( $option['action'] ) ) {
|
645 |
+
return $option['action'];
|
646 |
+
} else {
|
647 |
+
return false;
|
648 |
+
}
|
649 |
+
}
|
650 |
|
651 |
+
return false;
|
652 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
653 |
|
654 |
+
public function get_tab_type_by_options( $tab_options ) {
|
655 |
+
$first = ! ! $tab_options && is_array( $tab_options ) ? current( $tab_options ) : array();
|
656 |
+
$type = isset( $first['type'] ) ? $first['type'] : 'options';
|
657 |
+
$special_types = array( 'post_type', 'taxonomy', 'custom_tab', 'multi_tab' );
|
658 |
+
return in_array( $type, $special_types ) ? $type : 'options';
|
659 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
660 |
|
661 |
+
public function get_tab_info_by_options( $tab_options ) {
|
662 |
+
$type = $this->get_tab_type_by_options( $tab_options );
|
663 |
+
$info = array( 'type' => $type );
|
664 |
+
$first = ! ! $tab_options && is_array( $tab_options ) ? current( $tab_options ) : array();
|
665 |
+
if ( 'post_type' === $type ) {
|
666 |
+
$info['post_type'] = isset( $first['post_type'] ) ? $first['post_type'] : '';
|
667 |
+
} else if ( 'taxonomy' === $type ) {
|
668 |
+
$info['taxonomy'] = isset( $first['taxonomy'] ) ? $first['taxonomy'] : '';
|
669 |
+
}
|
670 |
|
671 |
+
return $info;
|
672 |
+
}
|
|
|
|
|
|
|
|
|
673 |
|
674 |
+
/**
|
675 |
+
* Fire the action to print the custom tab
|
676 |
+
*
|
677 |
+
* @param string $action Action to fire
|
678 |
+
* @return void
|
679 |
+
* @since 1.0
|
680 |
+
* @author Andrea Grillo <andrea.grillo@yithemes.com>
|
681 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
682 |
+
*/
|
683 |
+
public function print_custom_tab( $action ) {
|
684 |
+
do_action( $action );
|
685 |
+
}
|
686 |
|
687 |
+
/**
|
688 |
+
* Add sections and fields to setting panel
|
689 |
+
* read all options and show sections and fields
|
690 |
+
*
|
691 |
+
* @return void
|
692 |
+
* @since 1.0
|
693 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
694 |
+
*/
|
695 |
+
public function add_fields() {
|
696 |
+
$yit_options = $this->get_main_array_options();
|
697 |
+
$option_key = $this->get_current_option_key();
|
698 |
|
699 |
+
if ( ! $option_key ) {
|
700 |
+
return;
|
701 |
+
}
|
702 |
+
foreach ( $yit_options[ $option_key ] as $section => $data ) {
|
703 |
+
add_settings_section( "yit_settings_{$option_key}_{$section}", $this->get_section_title( $section ), $this->get_section_description( $section ), 'yit' );
|
704 |
+
foreach ( $data as $option ) {
|
705 |
+
if ( isset( $option['id'] ) && isset( $option['type'] ) && isset( $option['name'] ) ) {
|
706 |
+
add_settings_field( "yit_setting_" . $option['id'], $option['name'], array( $this, 'render_field' ), 'yit', "yit_settings_{$option_key}_{$section}", array( 'option' => $option, 'label_for' => $this->get_id_field( $option['id'] ) ) );
|
707 |
+
}
|
708 |
+
}
|
709 |
+
}
|
710 |
+
}
|
711 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
712 |
|
713 |
+
/**
|
714 |
+
* Add the tabs to admin bar menu
|
715 |
+
* set all tabs of settings page on wp admin bar
|
716 |
+
*
|
717 |
+
* @return void|array return void when capability is false
|
718 |
+
* @since 1.0
|
719 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
720 |
+
*/
|
721 |
+
public function add_admin_bar_menu() {
|
|
|
|
|
|
|
722 |
|
723 |
+
global $wp_admin_bar;
|
724 |
|
725 |
+
if ( ! current_user_can( 'manage_options' ) ) {
|
726 |
+
return;
|
727 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
728 |
|
729 |
+
if ( ! empty( $this->settings['admin_tabs'] ) ) {
|
730 |
+
foreach ( $this->settings['admin-tabs'] as $item => $title ) {
|
731 |
|
732 |
+
$wp_admin_bar->add_menu( array(
|
733 |
+
'parent' => $this->settings['parent'],
|
734 |
+
'title' => $title,
|
735 |
+
'id' => $this->settings['parent'] . '-' . $item,
|
736 |
+
'href' => admin_url( 'themes.php' ) . '?page=' . $this->settings['parent_page'] . '&tab=' . $item,
|
737 |
+
) );
|
738 |
+
}
|
739 |
+
}
|
740 |
+
}
|
741 |
|
|
|
|
|
742 |
|
743 |
+
/**
|
744 |
+
* Get current tab
|
745 |
+
* get the id of tab showed, return general is the current tab is not defined
|
746 |
+
*
|
747 |
+
* @return string
|
748 |
+
* @since 1.0
|
749 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
750 |
+
*/
|
751 |
+
function get_current_tab() {
|
752 |
+
$admin_tabs = array_keys( $this->settings['admin-tabs'] );
|
753 |
|
754 |
+
if ( ! isset( $_GET['page'] ) || $_GET['page'] != $this->settings['page'] ) {
|
755 |
+
return false;
|
756 |
+
}
|
757 |
+
if ( isset( $_REQUEST['yit_tab_options'] ) ) {
|
758 |
+
return $_REQUEST['yit_tab_options'];
|
759 |
+
} elseif ( isset( $_GET['tab'] ) ) {
|
760 |
+
return $_GET['tab'];
|
761 |
+
} elseif ( isset( $admin_tabs[0] ) ) {
|
762 |
+
return $admin_tabs[0];
|
763 |
+
} else {
|
764 |
+
return 'general';
|
765 |
+
}
|
766 |
+
}
|
767 |
|
768 |
+
/**
|
769 |
+
* Get the current sub-tab
|
770 |
+
*
|
771 |
+
* @return string the key of the sub-tab if exists, empty string otherwise
|
772 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
773 |
+
* @since 3.4.0
|
774 |
+
*/
|
775 |
+
public function get_current_sub_tab() {
|
776 |
+
$sub_tabs = $this->get_sub_tabs();
|
777 |
+
$sub_tab = isset( $_REQUEST['sub_tab'] ) ? $_REQUEST['sub_tab'] : '';
|
778 |
|
779 |
+
if ( $sub_tabs ) {
|
780 |
+
if ( $sub_tab && ! isset( $sub_tabs[ $sub_tab ] ) || ! $sub_tab ) {
|
781 |
+
$sub_tab = current( array_keys( $sub_tabs ) );
|
782 |
+
}
|
783 |
+
} else {
|
784 |
+
$sub_tab = '';
|
785 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
786 |
|
787 |
+
return $sub_tab;
|
788 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
789 |
|
790 |
+
/**
|
791 |
+
* Return the option key related to the current page
|
792 |
+
* for sub-tabbed tabs, it will return the current sub-tab
|
793 |
+
* fot normal tabs, it will return the current tab
|
794 |
+
*
|
795 |
+
* @return string the current sub-tab, if exists; the current tab otherwise
|
796 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
797 |
+
* @since 3.4.0
|
798 |
+
*/
|
799 |
+
public function get_current_option_key() {
|
800 |
+
$current_tab = $this->get_current_tab();
|
801 |
+
$current_sub_tab = $this->get_current_sub_tab();
|
802 |
|
803 |
+
if ( ! $current_tab ) {
|
804 |
+
return false;
|
805 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
806 |
|
807 |
+
return $current_sub_tab ? $current_sub_tab : $current_tab;
|
808 |
+
}
|
|
|
809 |
|
|
|
|
|
810 |
|
811 |
+
/**
|
812 |
+
* Message
|
813 |
+
* define an array of message and show the content od message if
|
814 |
+
* is find in the query string
|
815 |
+
*
|
816 |
+
* @return void
|
817 |
+
* @since 1.0
|
818 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
819 |
+
*/
|
820 |
+
public function message() {
|
821 |
+
|
822 |
+
$message = array(
|
823 |
+
'element_exists' => $this->get_message( '<strong>' . __( 'The element you have entered already exists. Please, enter another name.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
824 |
+
'saved' => $this->get_message( '<strong>' . __( 'Settings saved', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
|
825 |
+
'reset' => $this->get_message( '<strong>' . __( 'Settings reset', 'yith-plugin-fw' ) . '.</strong>', 'updated', false ),
|
826 |
+
'delete' => $this->get_message( '<strong>' . __( 'Element deleted correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
827 |
+
'updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
828 |
+
'settings-updated' => $this->get_message( '<strong>' . __( 'Element updated correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
829 |
+
'imported' => $this->get_message( '<strong>' . __( 'Database imported correctly.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
830 |
+
'no-imported' => $this->get_message( '<strong>' . __( 'An error has occurred during import. Please try again.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
831 |
+
'file-not-valid' => $this->get_message( '<strong>' . __( 'The added file is not valid.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
832 |
+
'cant-import' => $this->get_message( '<strong>' . __( 'Sorry, import is disabled.', 'yith-plugin-fw' ) . '</strong>', 'error', false ),
|
833 |
+
'ord' => $this->get_message( '<strong>' . __( 'Sorting successful.', 'yith-plugin-fw' ) . '</strong>', 'updated', false ),
|
834 |
+
);
|
835 |
+
|
836 |
+
foreach ( $message as $key => $value ) {
|
837 |
+
if ( isset( $_GET[ $key ] ) ) {
|
838 |
+
echo $message[ $key ];
|
839 |
+
}
|
840 |
+
}
|
841 |
+
|
842 |
+
}
|
843 |
|
844 |
+
/**
|
845 |
+
* Get Message
|
846 |
+
* return html code of message
|
847 |
+
*
|
848 |
+
* @param $message
|
849 |
+
* @param string $type can be 'error' or 'updated'
|
850 |
+
* @param bool $echo
|
851 |
+
* @return string
|
852 |
+
* @since 1.0
|
853 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
854 |
+
*/
|
855 |
+
public function get_message( $message, $type = 'error', $echo = true ) {
|
856 |
+
$message = '<div id="message" class="' . $type . ' fade"><p>' . $message . '</p></div>';
|
857 |
+
if ( $echo ) {
|
858 |
+
echo $message;
|
859 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
860 |
|
861 |
+
return $message;
|
862 |
+
}
|
863 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
864 |
|
865 |
+
/**
|
866 |
+
* Get Tab Path Files
|
867 |
+
* return an array with file names of tabs
|
868 |
+
*
|
869 |
+
* @return array
|
870 |
+
* @since 1.0
|
871 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
872 |
+
*/
|
873 |
+
function get_tabs_path_files() {
|
874 |
|
875 |
+
$option_files_path = $this->settings['options-path'] . '/';
|
876 |
|
877 |
+
$tabs = array();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
878 |
|
879 |
+
foreach ( ( array )glob( $option_files_path . '*.php' ) as $filename ) {
|
880 |
+
preg_match( '/(.*)-options\.(.*)/', basename( $filename ), $filename_parts );
|
881 |
|
882 |
+
if ( ! isset( $filename_parts[1] ) ) {
|
883 |
+
continue;
|
884 |
+
}
|
885 |
|
886 |
+
$tab = $filename_parts[1];
|
|
|
887 |
|
888 |
+
$tabs[ $tab ] = $filename;
|
889 |
+
}
|
|
|
890 |
|
891 |
+
return $tabs;
|
892 |
+
}
|
893 |
|
894 |
+
/**
|
895 |
+
* Get main array options
|
896 |
+
* return an array with all options defined on options-files
|
897 |
+
*
|
898 |
+
* @return array
|
899 |
+
* @since 1.0
|
900 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
901 |
+
*/
|
902 |
+
function get_main_array_options() {
|
903 |
+
$this->_maybe_init_vars();
|
904 |
|
905 |
+
return $this->_main_array_options;
|
906 |
+
}
|
907 |
|
908 |
+
function get_tabs_hierarchy() {
|
909 |
+
$this->_maybe_init_vars();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
910 |
|
911 |
+
return $this->_tabs_hierarchy;
|
912 |
+
}
|
913 |
|
914 |
+
/**
|
915 |
+
* Return the sub-tabs array of a specific tab
|
916 |
+
*
|
917 |
+
* @param array|bool $_tab the tab; if not set it'll be the current tab
|
918 |
+
* @since 3.4.0
|
919 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
920 |
+
* @return array sub-tabs array
|
921 |
+
*/
|
922 |
+
public function get_sub_tabs( $_tab = false ) {
|
923 |
+
if ( false === $_tab ) {
|
924 |
+
$_tab = $this->get_current_tab();
|
925 |
+
}
|
926 |
|
927 |
+
if ( is_string( $_tab ) ) {
|
928 |
+
$main_array_options = $this->get_main_array_options();
|
929 |
+
$current_tab_options = isset( $main_array_options[ $_tab ] ) ? $main_array_options[ $_tab ] : array();
|
930 |
+
if ( $current_tab_options ) {
|
931 |
+
$_tab = array( $_tab => $current_tab_options );
|
932 |
+
}
|
933 |
+
}
|
934 |
|
935 |
+
$_tab_options = ! ! $_tab && is_array( $_tab ) ? current( $_tab ) : false;
|
936 |
+
$_first = ! ! $_tab_options && is_array( $_tab_options ) ? current( $_tab_options ) : false;
|
937 |
+
if ( $_first && is_array( $_first ) && isset( $_first['type'] ) && 'multi_tab' === $_first['type'] && ! empty( $_first['sub-tabs'] ) ) {
|
938 |
+
return $_first['sub-tabs'];
|
939 |
+
}
|
940 |
+
return array();
|
941 |
+
}
|
|
|
|
|
|
|
|
|
|
|
942 |
|
943 |
+
public function get_first_sub_tab_key( $_tab = false ) {
|
944 |
+
$key = false;
|
945 |
+
if ( is_string( $_tab ) ) {
|
946 |
+
$main_array_options = $this->get_main_array_options();
|
947 |
+
$current_tab_options = isset( $main_array_options[ $_tab ] ) ? $main_array_options[ $_tab ] : array();
|
948 |
+
if ( $current_tab_options ) {
|
949 |
+
$_tab = array( $_tab => $current_tab_options );
|
950 |
+
}
|
951 |
+
}
|
952 |
|
953 |
+
if ( ( $sub_tabs = $this->get_sub_tabs( $_tab ) ) ) {
|
954 |
+
$key = current( array_keys( $sub_tabs ) );
|
955 |
+
}
|
|
|
|
|
|
|
|
|
956 |
|
957 |
+
return $key;
|
958 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
959 |
|
|
|
|
|
|
|
960 |
|
961 |
+
/**
|
962 |
+
* Set an array with all default options
|
963 |
+
* put default options in an array
|
964 |
+
*
|
965 |
+
* @return array
|
966 |
+
* @since 1.0
|
967 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
968 |
+
*/
|
969 |
+
public function get_default_options() {
|
970 |
+
$yit_options = $this->get_main_array_options();
|
971 |
+
$default_options = array();
|
972 |
+
|
973 |
+
foreach ( $yit_options as $tab => $sections ) {
|
974 |
+
foreach ( $sections as $section ) {
|
975 |
+
foreach ( $section as $id => $value ) {
|
976 |
+
if ( isset( $value['std'] ) && isset( $value['id'] ) ) {
|
977 |
+
$default_options[ $value['id'] ] = $value['std'];
|
978 |
+
}
|
979 |
+
}
|
980 |
+
}
|
981 |
+
}
|
982 |
|
983 |
+
unset( $yit_options );
|
984 |
|
985 |
+
return $default_options;
|
986 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
987 |
|
|
|
988 |
|
989 |
+
/**
|
990 |
+
* Get the title of the tab
|
991 |
+
* return the title of tab
|
992 |
+
*
|
993 |
+
* @return string
|
994 |
+
* @since 1.0
|
995 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
996 |
+
*/
|
997 |
+
function get_tab_title() {
|
998 |
+
$yit_options = $this->get_main_array_options();
|
999 |
+
$option_key = $this->get_current_option_key();
|
1000 |
+
|
1001 |
+
foreach ( $yit_options[ $option_key ] as $sections => $data ) {
|
1002 |
+
foreach ( $data as $option ) {
|
1003 |
+
if ( isset( $option['type'] ) && $option['type'] == 'title' ) {
|
1004 |
+
return $option['name'];
|
1005 |
+
}
|
1006 |
+
}
|
1007 |
+
}
|
1008 |
+
return '';
|
1009 |
+
}
|
1010 |
|
1011 |
+
/**
|
1012 |
+
* Get the title of the section
|
1013 |
+
* return the title of section
|
1014 |
+
*
|
1015 |
+
* @param $section
|
1016 |
+
* @return string
|
1017 |
+
* @since 1.0
|
1018 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1019 |
+
*/
|
1020 |
+
function get_section_title( $section ) {
|
1021 |
+
$yit_options = $this->get_main_array_options();
|
1022 |
+
$option_key = $this->get_current_option_key();
|
1023 |
|
1024 |
+
foreach ( $yit_options[ $option_key ][ $section ] as $option ) {
|
1025 |
+
if ( isset( $option['type'] ) && $option['type'] == 'section' ) {
|
1026 |
+
return $option['name'];
|
1027 |
+
}
|
1028 |
+
}
|
1029 |
+
return '';
|
1030 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1031 |
|
1032 |
+
/**
|
1033 |
+
* Get the description of the section
|
1034 |
+
* return the description of section if is set
|
1035 |
+
*
|
1036 |
+
* @param $section
|
1037 |
+
* @return string
|
1038 |
+
* @since 1.0
|
1039 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1040 |
+
*/
|
1041 |
+
function get_section_description( $section ) {
|
1042 |
+
$yit_options = $this->get_main_array_options();
|
1043 |
+
$option_key = $this->get_current_option_key();
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1044 |
|
1045 |
+
foreach ( $yit_options[ $option_key ][ $section ] as $option ) {
|
1046 |
+
if ( isset( $option['type'] ) && $option['type'] == 'section' && isset( $option['desc'] ) ) {
|
1047 |
+
return '<p>' . $option['desc'] . '</p>';
|
1048 |
+
}
|
1049 |
+
}
|
1050 |
+
return '';
|
1051 |
+
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1052 |
|
1053 |
|
1054 |
+
/**
|
1055 |
+
* Show form when necessary
|
1056 |
+
* return true if 'showform' is not defined
|
1057 |
+
*
|
1058 |
+
* @return bool
|
1059 |
+
* @since 1.0
|
1060 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1061 |
+
*/
|
1062 |
+
function is_show_form() {
|
1063 |
+
$yit_options = $this->get_main_array_options();
|
1064 |
+
$option_key = $this->get_current_option_key();
|
1065 |
+
|
1066 |
+
foreach ( $yit_options[ $option_key ] as $sections => $data ) {
|
1067 |
+
foreach ( $data as $option ) {
|
1068 |
+
if ( ! isset( $option['type'] ) || $option['type'] != 'title' ) {
|
1069 |
+
continue;
|
1070 |
+
}
|
1071 |
+
if ( isset( $option['showform'] ) ) {
|
1072 |
+
return $option['showform'];
|
1073 |
+
} else {
|
1074 |
+
return true;
|
1075 |
+
}
|
1076 |
+
}
|
1077 |
+
}
|
1078 |
+
}
|
1079 |
|
1080 |
+
/**
|
1081 |
+
* Get name field
|
1082 |
+
* return a string with the name of the input field
|
1083 |
+
*
|
1084 |
+
* @param string $name
|
1085 |
+
* @return string
|
1086 |
+
* @since 1.0
|
1087 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1088 |
+
*/
|
1089 |
+
function get_name_field( $name = '' ) {
|
1090 |
+
return 'yit_' . $this->settings['parent'] . '_options[' . $name . ']';
|
1091 |
+
}
|
1092 |
|
1093 |
+
/**
|
1094 |
+
* Get id field
|
1095 |
+
* return a string with the id of the input field
|
1096 |
+
*
|
1097 |
+
* @param string $id
|
1098 |
+
* @return string
|
1099 |
+
* @since 1.0
|
1100 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1101 |
+
*/
|
1102 |
+
function get_id_field( $id ) {
|
1103 |
+
return 'yit_' . $this->settings['parent'] . '_options_' . $id;
|
1104 |
+
}
|
1105 |
|
1106 |
|
1107 |
+
/**
|
1108 |
+
* Render the field showed in the setting page
|
1109 |
+
* include the file of the option type, if file do not exists
|
1110 |
+
* return a text area
|
1111 |
+
*
|
1112 |
+
* @param array $param
|
1113 |
+
* @return void
|
1114 |
+
* @since 1.0
|
1115 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1116 |
+
*/
|
1117 |
+
function render_field( $param ) {
|
1118 |
|
1119 |
+
if ( ! empty( $param ) && isset( $param ['option'] ) ) {
|
1120 |
+
$option = $param ['option'];
|
1121 |
+
$db_options = $this->get_options();
|
1122 |
|
1123 |
+
$custom_attributes = array();
|
1124 |
|
1125 |
+
if ( ! empty( $option['custom_attributes'] ) && is_array( $option['custom_attributes'] ) ) {
|
1126 |
+
foreach ( $option['custom_attributes'] as $attribute => $attribute_value ) {
|
1127 |
+
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
|
1128 |
+
}
|
1129 |
+
}
|
1130 |
|
1131 |
+
$custom_attributes = implode( ' ', $custom_attributes );
|
1132 |
+
$std = isset( $option['std'] ) ? $option['std'] : '';
|
1133 |
+
$db_value = ( isset( $db_options[ $option['id'] ] ) ) ? $db_options[ $option['id'] ] : $std;
|
1134 |
|
1135 |
+
if ( isset( $option['deps'] ) )
|
1136 |
+
$deps = $option['deps'];
|
1137 |
|
1138 |
+
if ( 'on-off' === $option['type'] )
|
1139 |
+
$option['type'] = 'onoff';
|
1140 |
|
1141 |
+
if ( $field_template_path = yith_plugin_fw_get_field_template_path( $option ) ) {
|
1142 |
+
$field_container_path = apply_filters( 'yith_plugin_fw_panel_field_container_template_path', YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/panel-field-container.php', $option );
|
1143 |
+
file_exists( $field_container_path ) && include( $field_container_path );
|
1144 |
+
} else {
|
1145 |
+
do_action( "yit_panel_{$option['type']}", $option, $db_value, $custom_attributes );
|
1146 |
+
}
|
1147 |
+
}
|
1148 |
+
}
|
1149 |
|
1150 |
+
/**
|
1151 |
+
* Get options from db
|
1152 |
+
* return the options from db, if the options aren't defined in the db,
|
1153 |
+
* get the default options ad add the options in the db
|
1154 |
+
*
|
1155 |
+
* @return array
|
1156 |
+
* @since 1.0
|
1157 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
1158 |
+
*/
|
1159 |
+
public function get_options() {
|
1160 |
+
$options = get_option( 'yit_' . $this->settings['parent'] . '_options' );
|
1161 |
+
if ( $options === false || ( isset( $_REQUEST['yit-action'] ) && $_REQUEST['yit-action'] == 'reset' ) ) {
|
1162 |
+
$options = $this->get_default_options();
|
1163 |
+
}
|
1164 |
|
1165 |
+
return $options;
|
1166 |
+
}
|
1167 |
|
1168 |
+
/**
|
1169 |
+
* Show a box panel with specific content in two columns as a new woocommerce type
|
1170 |
+
*
|
1171 |
+
* @param array $args
|
1172 |
+
* @return void
|
1173 |
+
* @since 1.0
|
1174 |
+
* @author Emanuela Castorina <emanuela.castorina@yithemes.com>
|
1175 |
+
*/
|
1176 |
+
public static function add_infobox( $args = array() ) {
|
1177 |
+
if ( ! empty( $args ) ) {
|
1178 |
+
extract( $args );
|
1179 |
+
require_once( YIT_CORE_PLUGIN_TEMPLATE_PATH . '/panel/boxinfo.php' );
|
1180 |
+
}
|
1181 |
+
}
|
1182 |
|
1183 |
+
/**
|
1184 |
+
* Show a box panel with specific content in two columns as a new woocommerce type
|
1185 |
+
*
|
1186 |
+
* @param array $args
|
1187 |
+
* @return void
|
1188 |
+
* @deprecated 3.0.12 Do nothing! Method left to prevent Fatal Error if called directly
|
1189 |
+
*/
|
1190 |
+
public static function add_videobox( $args = array() ) {
|
1191 |
|
1192 |
+
}
|
1193 |
|
1194 |
+
/**
|
1195 |
+
* Fire the action to print the custom tab
|
1196 |
+
*
|
1197 |
+
* @return void
|
1198 |
+
* @deprecated 3.0.12 Do nothing! Method left to prevent Fatal Error if called directly
|
1199 |
+
*/
|
1200 |
+
public function print_video_box() {
|
1201 |
|
1202 |
+
}
|
1203 |
|
1204 |
+
/**
|
1205 |
+
* sort plugins by name in YITH Plugins menu
|
1206 |
+
*
|
1207 |
+
* @since 3.0.0
|
1208 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
1209 |
+
*/
|
1210 |
+
public static function sort_plugins() {
|
1211 |
+
global $submenu;
|
1212 |
+
if ( ! empty( $submenu['yith_plugin_panel'] ) ) {
|
1213 |
+
$sorted_plugins = $submenu['yith_plugin_panel'];
|
1214 |
|
1215 |
+
usort( $sorted_plugins, function ( $a, $b ) {
|
1216 |
+
return strcmp( current( $a ), current( $b ) );
|
1217 |
+
} );
|
1218 |
|
1219 |
+
$submenu['yith_plugin_panel'] = $sorted_plugins;
|
1220 |
+
}
|
1221 |
+
}
|
1222 |
|
1223 |
+
/**
|
1224 |
+
* add menu class in YITH Plugins menu
|
1225 |
+
*
|
1226 |
+
* @since 3.0.0
|
1227 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
1228 |
+
*/
|
1229 |
+
public static function add_menu_class_in_yith_plugin( $menu ) {
|
1230 |
+
global $submenu;
|
1231 |
+
|
1232 |
+
if ( ! empty( $submenu['yith_plugin_panel'] ) ) {
|
1233 |
+
$item_count = count( $submenu['yith_plugin_panel'] );
|
1234 |
+
$columns = absint( $item_count / 20 ) + 1;
|
1235 |
+
$columns = max( 1, min( $columns, 3 ) );
|
1236 |
+
$columns = apply_filters( 'yith_plugin_fw_yith_plugins_menu_columns', $columns, $item_count );
|
1237 |
+
|
1238 |
+
if ( $columns > 1 ) {
|
1239 |
+
$class = "yith-plugin-fw-menu-$columns-columns";
|
1240 |
+
foreach ( $menu as $order => $top ) {
|
1241 |
+
if ( 'yith_plugin_panel' === $top[2] ) {
|
1242 |
+
$c = $menu[ $order ][4];
|
1243 |
+
$menu[ $order ][4] = add_cssclass( $class, $c );
|
1244 |
+
break;
|
1245 |
+
}
|
1246 |
+
}
|
1247 |
+
}
|
1248 |
+
}
|
1249 |
|
1250 |
+
return $menu;
|
1251 |
+
}
|
1252 |
|
1253 |
+
/**
|
1254 |
+
* Check if inside the admin tab there's the premium tab to
|
1255 |
+
* check if the plugin is a free or not
|
1256 |
+
*
|
1257 |
+
* @author Emanuela Castorina
|
1258 |
+
*/
|
1259 |
+
function is_free() {
|
1260 |
+
return ( ! empty( $this->settings['admin-tabs'] ) && isset( $this->settings['admin-tabs']['premium'] ) );
|
1261 |
+
}
|
1262 |
|
1263 |
+
/**
|
1264 |
+
* Add plugin banner
|
1265 |
+
*/
|
1266 |
+
public function add_plugin_banner( $page ) {
|
1267 |
|
1268 |
+
if ( $page != $this->settings['page'] || ! isset( $this->settings['class'] ) ) {
|
1269 |
+
return;
|
1270 |
+
}
|
1271 |
|
1272 |
+
if ( $this->is_free() && isset( $this->settings['plugin_slug'] ) ):
|
1273 |
+
$rate_link = apply_filters( 'yith_plugin_fw_rate_url', 'https://wordpress.org/support/plugin/' . $this->settings['plugin_slug'] . '/reviews/?rate=5#new-post' );
|
1274 |
+
?>
|
1275 |
+
<h1 class="notice-container"></h1>
|
1276 |
+
<div class="yith-plugin-fw-banner">
|
1277 |
+
<h1><?php echo esc_html( $this->settings['page_title'] ) ?></h1>
|
1278 |
+
</div>
|
1279 |
+
<div class="yith-plugin-fw-rate">
|
1280 |
+
<?php printf( '<strong>%s</strong> %s <a href="%s" target="_blank"><u>%s</u> <span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span><span class="dashicons dashicons-star-filled"></span></a> %s',
|
1281 |
+
__( 'We need your support', 'yith-plugin-fw' ),
|
1282 |
+
__( 'to keep updating and improving the plugin. Please,', 'yith-plugin-fw' ),
|
1283 |
+
$rate_link,
|
1284 |
+
__( 'help us by leaving a five-star rating', 'yith-plugin-fw' ),
|
1285 |
+
__( ':) Thanks!', 'yith-plugin-fw' ) ) ?>
|
1286 |
+
</div>
|
1287 |
+
<?php else: ?>
|
1288 |
+
<h1 class="notice-container"></h1>
|
1289 |
+
<div class="yith-plugin-fw-banner">
|
1290 |
+
<h1><?php echo esc_html( $this->settings['page_title'] ) ?></h1>
|
1291 |
+
</div>
|
1292 |
+
<?php endif ?>
|
1293 |
+
<?php
|
1294 |
+
}
|
1295 |
|
1296 |
+
/**
|
1297 |
+
* Add additional element after print the field.
|
1298 |
+
*
|
1299 |
+
* @since 3.2
|
1300 |
+
* @author Emanuela Castorina
|
1301 |
+
*/
|
1302 |
+
public function add_yith_ui( $field ) {
|
1303 |
+
global $pagenow;
|
1304 |
|
1305 |
+
$screen = function_exists( 'get_current_screen' ) ? get_current_screen() : false;
|
1306 |
|
1307 |
+
if ( empty( $this->settings['class'] ) || ! isset( $field['type'] ) ) {
|
1308 |
+
return;
|
1309 |
+
}
|
1310 |
+
if ( 'admin.php' === $pagenow && $screen && strpos( $screen->id, $this->settings['page'] ) !== false ) {
|
1311 |
+
switch ( $field['type'] ) {
|
1312 |
+
case 'datepicker':
|
1313 |
+
echo '<span class="yith-icon icon-calendar"></span>';
|
1314 |
+
break;
|
1315 |
+
default:
|
1316 |
+
break;
|
1317 |
+
}
|
1318 |
+
}
|
1319 |
+
}
|
1320 |
|
1321 |
|
1322 |
+
public function get_post_type_tabs( $post_type ) {
|
1323 |
+
$tabs = array();
|
1324 |
|
1325 |
+
foreach ( $this->get_tabs_hierarchy() as $key => $info ) {
|
1326 |
+
if ( isset( $info['type'], $info['post_type'] ) && 'post_type' === $info['type'] && $post_type === $info['post_type'] ) {
|
1327 |
+
if ( ! empty( $info['parent'] ) ) {
|
1328 |
+
$tabs = array( 'tab' => $info['parent'], 'sub_tab' => $key );
|
1329 |
+
} else {
|
1330 |
+
$tabs = array( 'tab' => $key );
|
1331 |
+
}
|
1332 |
+
break;
|
1333 |
+
}
|
1334 |
+
}
|
1335 |
|
1336 |
$panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
|
1337 |
|
1338 |
return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_post_type_tabs", $tabs, $post_type );
|
1339 |
+
}
|
1340 |
|
1341 |
+
public function get_taxonomy_tabs( $taxonomy ) {
|
1342 |
+
$tabs = array();
|
1343 |
+
|
1344 |
+
foreach ( $this->get_tabs_hierarchy() as $key => $info ) {
|
1345 |
+
if ( isset( $info['type'], $info['taxonomy'] ) && 'taxonomy' === $info['type'] && $taxonomy === $info['taxonomy'] ) {
|
1346 |
+
if ( ! empty( $info['parent'] ) ) {
|
1347 |
+
$tabs = array( 'tab' => $info['parent'], 'sub_tab' => $key );
|
1348 |
+
} else {
|
1349 |
+
$tabs = array( 'tab' => $key );
|
1350 |
+
}
|
1351 |
+
break;
|
1352 |
+
}
|
1353 |
+
}
|
1354 |
|
1355 |
$panel_page = isset( $this->settings['page'] ) ? $this->settings['page'] : 'general';
|
1356 |
|
1357 |
return apply_filters( "yith_plugin_fw_panel_{$panel_page}_get_taxonomy_tabs", $tabs, $taxonomy );
|
1358 |
+
}
|
1359 |
|
1360 |
|
1361 |
+
/**
|
1362 |
+
* If the panel page is a WP Page, this will redirect you to the correct page
|
1363 |
+
* useful when a Post Type (Taxonomy) is the first tab of your panel, so when you open your panel it'll open the Post Type (Taxonomy) list
|
1364 |
+
*
|
1365 |
+
* @since 3.4.0
|
1366 |
+
* @author Leanza Francesco <leanzafrancesco@gmail.com>
|
1367 |
+
*/
|
1368 |
+
public function maybe_redirect_to_proper_wp_page() {
|
1369 |
+
global $pagenow;
|
1370 |
if ( 'admin.php' === $pagenow && isset( $_GET['page'] ) && $this->settings['page'] === $_GET['page'] &&
|
1371 |
+
! $this->is_custom_taxonomy_page() && ! $this->is_custom_post_type_page() && ! isset( $_REQUEST['yith-plugin-fw-panel-skip-redirect'] ) ) {
|
1372 |
$url = $this->get_nav_url( $this->settings['page'], $this->get_current_tab(), $this->get_current_sub_tab() );
|
1373 |
if ( strpos( $url, 'edit.php' ) !== false || strpos( $url, 'edit-tags.php' ) !== false ) {
|
1374 |
wp_safe_redirect( add_query_arg( array( 'yith-plugin-fw-panel-skip-redirect' => 1 ), $url ) );
|
1387 |
public function print_panel_tabs_in_wp_pages() {
|
1388 |
if ( self::$_panel_tabs_in_wp_pages ) {
|
1389 |
wp_enqueue_style( 'yit-plugin-style' );
|
1390 |
+
wp_enqueue_script( 'yit-plugin-panel' );
|
1391 |
+
|
1392 |
$wrap_class = isset( $this->settings[ 'class' ] ) ? $this->settings[ 'class' ] : '';
|
1393 |
|
1394 |
?>
|
1436 |
return true;
|
1437 |
}
|
1438 |
}
|
|
|
|
|
1439 |
}
|
plugin-fw/lib/yith-system-status.php
CHANGED
@@ -13,6 +13,7 @@ if ( ! defined( 'ABSPATH' ) ) {
|
|
13 |
} // Exit if accessed directly
|
14 |
|
15 |
if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
|
16 |
/**
|
17 |
* YITH System Status Panel
|
18 |
*
|
@@ -38,13 +39,18 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
38 |
/**
|
39 |
* @var array requirements labels
|
40 |
*/
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
42 |
|
43 |
/**
|
44 |
* Single instance of the class
|
45 |
*
|
46 |
* @since 1.0.0
|
47 |
-
* @var
|
48 |
*/
|
49 |
protected static $_instance = null;
|
50 |
|
@@ -102,19 +108,19 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
102 |
public function set_requirements_labels() {
|
103 |
|
104 |
$this->_requirement_labels = array(
|
105 |
-
'min_wp_version' =>
|
106 |
-
'min_wc_version' =>
|
107 |
-
'wp_memory_limit' =>
|
108 |
-
'min_php_version' =>
|
109 |
-
'min_tls_version' =>
|
110 |
-
'wp_cron_enabled' =>
|
111 |
-
'simplexml_enabled' =>
|
112 |
-
'mbstring_enabled' =>
|
113 |
-
'imagick_version' =>
|
114 |
-
'gd_enabled' =>
|
115 |
-
'iconv_enabled' =>
|
116 |
-
'opcache_enabled' =>
|
117 |
-
'url_fopen_enabled' =>
|
118 |
);
|
119 |
|
120 |
}
|
@@ -129,11 +135,11 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
129 |
public function add_submenu_page() {
|
130 |
|
131 |
$system_info = get_option( 'yith_system_info', array() );
|
132 |
-
$error_notice = ( isset( $system_info['errors'] ) && $system_info['errors']
|
133 |
$settings = array(
|
134 |
'parent_page' => 'yith_plugin_panel',
|
135 |
-
'page_title' =>
|
136 |
-
'menu_title' =>
|
137 |
'capability' => 'manage_options',
|
138 |
'page' => $this->_page,
|
139 |
);
|
@@ -157,8 +163,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
157 |
*/
|
158 |
public function show_information_panel() {
|
159 |
|
160 |
-
$path
|
161 |
-
$labels = $this->_requirement_labels;
|
162 |
|
163 |
require_once( $path . '/templates/sysinfo/system-information-panel.php' );
|
164 |
|
@@ -173,15 +178,26 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
173 |
*/
|
174 |
public function check_system_status() {
|
175 |
|
176 |
-
|
177 |
-
|
178 |
-
|
179 |
-
|
180 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
181 |
|
182 |
$system_info = $this->get_system_info();
|
183 |
$check_results = array();
|
184 |
-
$errors =
|
185 |
|
186 |
foreach ( $system_info as $key => $value ) {
|
187 |
$check_results[ $key ] = array( 'value' => $value );
|
@@ -191,44 +207,61 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
191 |
foreach ( $this->_plugins_requirements[ $key ] as $plugin_name => $required_value ) {
|
192 |
|
193 |
switch ( $key ) {
|
194 |
-
case 'wp_cron_enabled'
|
195 |
-
case 'mbstring_enabled'
|
196 |
case 'simplexml_enabled':
|
197 |
case 'gd_enabled':
|
198 |
case 'iconv_enabled':
|
199 |
case 'url_fopen_enabled':
|
200 |
-
case 'opcache_enabled'
|
201 |
-
|
202 |
if ( ! $value ) {
|
203 |
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
204 |
-
$errors
|
205 |
}
|
206 |
break;
|
207 |
|
208 |
-
case 'wp_memory_limit'
|
209 |
$required_memory = $this->memory_size_to_num( $required_value );
|
210 |
|
211 |
if ( $required_memory > $value ) {
|
212 |
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
213 |
-
$errors
|
|
|
|
|
|
|
214 |
}
|
215 |
break;
|
216 |
|
217 |
default:
|
218 |
-
if (
|
219 |
-
$
|
220 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
221 |
}
|
222 |
-
|
223 |
}
|
224 |
-
|
225 |
}
|
226 |
-
|
227 |
}
|
228 |
-
|
229 |
}
|
230 |
|
231 |
-
update_option(
|
|
|
|
|
|
|
|
|
|
|
|
|
232 |
|
233 |
}
|
234 |
|
@@ -251,7 +284,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
251 |
|
252 |
foreach ( $requirements as $requirement => $value ) {
|
253 |
|
254 |
-
if ( in_array( $requirement, $allowed_requirements ) ) {
|
255 |
$this->_plugins_requirements[ $requirement ][ $plugin_name ] = $value;
|
256 |
}
|
257 |
}
|
@@ -267,8 +300,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
267 |
*/
|
268 |
public function dismissable_notice() {
|
269 |
$script_path = defined( 'YIT_CORE_PLUGIN_URL' ) ? YIT_CORE_PLUGIN_URL : get_template_directory_uri() . '/core/plugin-fw';
|
270 |
-
|
271 |
-
wp_register_script( 'yith-system-info', $script_path . '/assets/js/yith-system-info' . $suffix . '.js', array( 'jquery' ), '1.0.0', true );
|
272 |
}
|
273 |
|
274 |
/**
|
@@ -282,25 +314,31 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
282 |
|
283 |
$system_info = get_option( 'yith_system_info', '' );
|
284 |
|
285 |
-
if ( ( isset( $_GET['page'] ) && $_GET['page']
|
286 |
return;
|
287 |
}
|
288 |
|
289 |
$show_notice = true;
|
290 |
|
291 |
-
if ( true === $show_notice )
|
292 |
wp_enqueue_script( 'yith-system-info' );
|
293 |
?>
|
294 |
-
|
295 |
-
|
296 |
-
|
297 |
-
|
298 |
-
|
299 |
-
|
300 |
-
|
301 |
-
|
302 |
-
|
303 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
304 |
}
|
305 |
|
306 |
/**
|
@@ -312,7 +350,8 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
312 |
*/
|
313 |
public function get_system_info() {
|
314 |
|
315 |
-
$tls
|
|
|
316 |
|
317 |
if ( function_exists( 'curl_init' ) && apply_filters( 'yith_system_status_check_ssl', true ) ) {
|
318 |
//Get TLS version
|
@@ -324,44 +363,70 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
324 |
$data = curl_exec( $ch );
|
325 |
curl_close( $ch );
|
326 |
$json = json_decode( $data );
|
327 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
328 |
}
|
329 |
|
330 |
//Get PHP version
|
331 |
-
preg_match(
|
332 |
$php_version = $match[0];
|
333 |
|
334 |
// WP memory limit.
|
335 |
$wp_memory_limit = $this->memory_size_to_num( WP_MEMORY_LIMIT );
|
336 |
if ( function_exists( 'memory_get_usage' ) ) {
|
337 |
-
$wp_memory_limit = max( $wp_memory_limit, $this->memory_size_to_num( @ini_get( 'memory_limit' ) ) );
|
338 |
}
|
339 |
|
340 |
if ( class_exists( 'Imagick' ) && is_callable( array( 'Imagick', 'getVersion' ) ) ) {
|
341 |
-
preg_match(
|
342 |
$imagick_version = $imatch[0];
|
343 |
}
|
344 |
|
345 |
-
return apply_filters(
|
346 |
-
'
|
347 |
-
|
348 |
-
|
349 |
-
|
350 |
-
|
351 |
-
|
352 |
-
|
353 |
-
|
354 |
-
|
355 |
-
|
356 |
-
|
357 |
-
|
358 |
-
|
359 |
-
|
|
|
|
|
|
|
360 |
|
361 |
}
|
362 |
|
363 |
/**
|
364 |
-
* Convert
|
365 |
*
|
366 |
* @param $memory_size string
|
367 |
*
|
@@ -391,6 +456,149 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
391 |
return $size;
|
392 |
}
|
393 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
394 |
}
|
395 |
}
|
396 |
|
@@ -402,7 +610,7 @@ if ( ! class_exists( 'YITH_System_Status' ) ) {
|
|
402 |
* @author Alberto Ruggiero
|
403 |
*/
|
404 |
if ( ! function_exists( 'YITH_System_Status' ) ) {
|
405 |
-
function YITH_System_Status() {
|
406 |
return YITH_System_Status::instance();
|
407 |
}
|
408 |
}
|
13 |
} // Exit if accessed directly
|
14 |
|
15 |
if ( ! class_exists( 'YITH_System_Status' ) ) {
|
16 |
+
|
17 |
/**
|
18 |
* YITH System Status Panel
|
19 |
*
|
39 |
/**
|
40 |
* @var array requirements labels
|
41 |
*/
|
42 |
+
public $_requirement_labels = array();
|
43 |
+
|
44 |
+
/**
|
45 |
+
* @var int recommended memory amount 134217728 = 128M
|
46 |
+
*/
|
47 |
+
private $_recommended_memory = 134217728;
|
48 |
|
49 |
/**
|
50 |
* Single instance of the class
|
51 |
*
|
52 |
* @since 1.0.0
|
53 |
+
* @var YITH_System_Status
|
54 |
*/
|
55 |
protected static $_instance = null;
|
56 |
|
108 |
public function set_requirements_labels() {
|
109 |
|
110 |
$this->_requirement_labels = array(
|
111 |
+
'min_wp_version' => esc_html__( 'WordPress Version', 'yith-plugin-fw' ),
|
112 |
+
'min_wc_version' => esc_html__( 'WooCommerce Version', 'yith-plugin-fw' ),
|
113 |
+
'wp_memory_limit' => esc_html__( 'Available Memory', 'yith-plugin-fw' ),
|
114 |
+
'min_php_version' => esc_html__( 'PHP Version', 'yith-plugin-fw' ),
|
115 |
+
'min_tls_version' => esc_html__( 'TLS Version', 'yith-plugin-fw' ),
|
116 |
+
'wp_cron_enabled' => esc_html__( 'WordPress Cron', 'yith-plugin-fw' ),
|
117 |
+
'simplexml_enabled' => esc_html__( 'SimpleXML', 'yith-plugin-fw' ),
|
118 |
+
'mbstring_enabled' => esc_html__( 'MultiByte String', 'yith-plugin-fw' ),
|
119 |
+
'imagick_version' => esc_html__( 'ImageMagick Version', 'yith-plugin-fw' ),
|
120 |
+
'gd_enabled' => esc_html__( 'GD Library', 'yith-plugin-fw' ),
|
121 |
+
'iconv_enabled' => esc_html__( 'Iconv Module', 'yith-plugin-fw' ),
|
122 |
+
'opcache_enabled' => esc_html__( 'OPCache Save Comments', 'yith-plugin-fw' ),
|
123 |
+
'url_fopen_enabled' => esc_html__( 'URL FOpen', 'yith-plugin-fw' ),
|
124 |
);
|
125 |
|
126 |
}
|
135 |
public function add_submenu_page() {
|
136 |
|
137 |
$system_info = get_option( 'yith_system_info', array() );
|
138 |
+
$error_notice = ( isset( $system_info['errors'] ) && true === $system_info['errors'] ? ' <span class="yith-system-info-menu update-plugins">!</span>' : '' );
|
139 |
$settings = array(
|
140 |
'parent_page' => 'yith_plugin_panel',
|
141 |
+
'page_title' => esc_html__( 'System Status', 'yith-plugin-fw' ),
|
142 |
+
'menu_title' => esc_html__( 'System Status', 'yith-plugin-fw' ) . $error_notice,
|
143 |
'capability' => 'manage_options',
|
144 |
'page' => $this->_page,
|
145 |
);
|
163 |
*/
|
164 |
public function show_information_panel() {
|
165 |
|
166 |
+
$path = defined( 'YIT_CORE_PLUGIN_PATH' ) ? YIT_CORE_PLUGIN_PATH : get_template_directory() . '/core/plugin-fw/';
|
|
|
167 |
|
168 |
require_once( $path . '/templates/sysinfo/system-information-panel.php' );
|
169 |
|
178 |
*/
|
179 |
public function check_system_status() {
|
180 |
|
181 |
+
if ( '' === get_option( 'yith_system_info' ) || ( isset( $_GET['page'] ) && $_GET['page'] === $this->_page ) ) {
|
182 |
+
|
183 |
+
$this->add_requirements(
|
184 |
+
esc_html__( 'YITH Plugins', 'yith-plugin-fw' ),
|
185 |
+
array(
|
186 |
+
'min_wp_version' => '4.9',
|
187 |
+
'min_wc_version' => '3.4',
|
188 |
+
'min_php_version' => '5.6.20',
|
189 |
+
)
|
190 |
+
);
|
191 |
+
$this->add_requirements(
|
192 |
+
esc_html__( 'WooCommerce', 'yith-plugin-fw' ),
|
193 |
+
array(
|
194 |
+
'wp_memory_limit' => '64M',
|
195 |
+
)
|
196 |
+
);
|
197 |
|
198 |
$system_info = $this->get_system_info();
|
199 |
$check_results = array();
|
200 |
+
$errors = 0;
|
201 |
|
202 |
foreach ( $system_info as $key => $value ) {
|
203 |
$check_results[ $key ] = array( 'value' => $value );
|
207 |
foreach ( $this->_plugins_requirements[ $key ] as $plugin_name => $required_value ) {
|
208 |
|
209 |
switch ( $key ) {
|
210 |
+
case 'wp_cron_enabled':
|
211 |
+
case 'mbstring_enabled':
|
212 |
case 'simplexml_enabled':
|
213 |
case 'gd_enabled':
|
214 |
case 'iconv_enabled':
|
215 |
case 'url_fopen_enabled':
|
216 |
+
case 'opcache_enabled':
|
|
|
217 |
if ( ! $value ) {
|
218 |
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
219 |
+
$errors ++;
|
220 |
}
|
221 |
break;
|
222 |
|
223 |
+
case 'wp_memory_limit':
|
224 |
$required_memory = $this->memory_size_to_num( $required_value );
|
225 |
|
226 |
if ( $required_memory > $value ) {
|
227 |
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
228 |
+
$errors ++;
|
229 |
+
|
230 |
+
} elseif ( $this->_recommended_memory > $value && $value > $required_value ) {
|
231 |
+
$check_results[ $key ]['warnings'] = 'yes';
|
232 |
}
|
233 |
break;
|
234 |
|
235 |
default:
|
236 |
+
if ( 'imagick_version' === $key ) {
|
237 |
+
if ( ! version_compare( $value, $required_value, '>=' ) ) {
|
238 |
+
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
239 |
+
$errors ++;
|
240 |
+
}
|
241 |
+
} else {
|
242 |
+
if ( 'n/a' !== $value ) {
|
243 |
+
if ( ! version_compare( $value, $required_value, '>=' ) ) {
|
244 |
+
$check_results[ $key ]['errors'][ $plugin_name ] = $required_value;
|
245 |
+
$errors ++;
|
246 |
+
}
|
247 |
+
} else {
|
248 |
+
if ( 'min_wc_version' !== $key ) {
|
249 |
+
$check_results[ $key ]['warnings'][ $plugin_name ] = $required_value;
|
250 |
+
}
|
251 |
+
}
|
252 |
}
|
|
|
253 |
}
|
|
|
254 |
}
|
|
|
255 |
}
|
|
|
256 |
}
|
257 |
|
258 |
+
update_option(
|
259 |
+
'yith_system_info',
|
260 |
+
array(
|
261 |
+
'system_info' => $check_results,
|
262 |
+
'errors' => $errors > 0,
|
263 |
+
)
|
264 |
+
);
|
265 |
|
266 |
}
|
267 |
|
284 |
|
285 |
foreach ( $requirements as $requirement => $value ) {
|
286 |
|
287 |
+
if ( in_array( $requirement, $allowed_requirements, true ) ) {
|
288 |
$this->_plugins_requirements[ $requirement ][ $plugin_name ] = $value;
|
289 |
}
|
290 |
}
|
300 |
*/
|
301 |
public function dismissable_notice() {
|
302 |
$script_path = defined( 'YIT_CORE_PLUGIN_URL' ) ? YIT_CORE_PLUGIN_URL : get_template_directory_uri() . '/core/plugin-fw';
|
303 |
+
wp_register_script( 'yith-system-info', yit_load_js_file( $script_path . '/assets/js/yith-system-info.js' ), array( 'jquery' ), '1.0.0', true );
|
|
|
304 |
}
|
305 |
|
306 |
/**
|
314 |
|
315 |
$system_info = get_option( 'yith_system_info', '' );
|
316 |
|
317 |
+
if ( ( isset( $_GET['page'] ) && $_GET['page'] === $this->_page ) || ( ! empty( $_COOKIE['hide_yith_system_alert'] ) && 'yes' === $_COOKIE['hide_yith_system_alert'] ) || ( '' === $system_info ) || ( '' !== $system_info && false === $system_info['errors'] ) ) {
|
318 |
return;
|
319 |
}
|
320 |
|
321 |
$show_notice = true;
|
322 |
|
323 |
+
if ( true === $show_notice ) {
|
324 |
wp_enqueue_script( 'yith-system-info' );
|
325 |
?>
|
326 |
+
<div id="yith-system-alert" class="notice notice-error is-dismissible" style="position: relative;">
|
327 |
+
<p>
|
328 |
+
<span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo(); ?>" /></span>
|
329 |
+
<b>
|
330 |
+
<?php esc_html_e( 'Warning!', 'yith-plugin-fw' ); ?>
|
331 |
+
</b><br />
|
332 |
+
<?php
|
333 |
+
/* translators: %1$s open link tag, %2$s open link tag*/
|
334 |
+
echo sprintf( esc_html__( 'The system check has detected some compatibility issues on your installation.%1$sClick here%2$s to know more', 'yith-plugin-fw' ), '<a href="' . esc_url( add_query_arg( array( 'page' => $this->_page ), admin_url( 'admin.php' ) ) ) . '">', '</a>' );
|
335 |
+
?>
|
336 |
+
</p>
|
337 |
+
<span class="notice-dismiss"></span>
|
338 |
+
|
339 |
+
</div>
|
340 |
+
<?php
|
341 |
+
}
|
342 |
}
|
343 |
|
344 |
/**
|
350 |
*/
|
351 |
public function get_system_info() {
|
352 |
|
353 |
+
$tls = 'n/a';
|
354 |
+
$imagick_version = 'n/a';
|
355 |
|
356 |
if ( function_exists( 'curl_init' ) && apply_filters( 'yith_system_status_check_ssl', true ) ) {
|
357 |
//Get TLS version
|
363 |
$data = curl_exec( $ch );
|
364 |
curl_close( $ch );
|
365 |
$json = json_decode( $data );
|
366 |
+
|
367 |
+
if ( is_string( $json ) && strpos( $json, '<!DOCTYPE html>' ) !== false ) {
|
368 |
+
$tls = 'n/a';
|
369 |
+
} else {
|
370 |
+
$tls = null !== $json ? str_replace( 'TLS ', '', $json->tls_version ) : '';
|
371 |
+
}
|
372 |
+
|
373 |
+
if ( 'n/a' === $tls || '' === $tls ) {
|
374 |
+
//run backup service
|
375 |
+
$ch = curl_init();
|
376 |
+
curl_setopt( $ch, CURLOPT_URL, 'https://ttl-version.yithemes.workers.dev/' );
|
377 |
+
curl_setopt( $ch, CURLOPT_SSL_VERIFYHOST, 0 );
|
378 |
+
curl_setopt( $ch, CURLOPT_SSL_VERIFYPEER, 0 );
|
379 |
+
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
|
380 |
+
$data = curl_exec( $ch );
|
381 |
+
curl_close( $ch );
|
382 |
+
$json = json_decode( $data );
|
383 |
+
|
384 |
+
if ( is_string( $json ) && strpos( $json, '<!DOCTYPE html>' ) !== false ) {
|
385 |
+
$tls = 'n/a';
|
386 |
+
} else {
|
387 |
+
$tls = null !== $json ? str_replace( 'TLSv', '', $json->tlsVersion ) : 'n/a'; //phpcs:ignore
|
388 |
+
}
|
389 |
+
}
|
390 |
}
|
391 |
|
392 |
//Get PHP version
|
393 |
+
preg_match( '#^\d+(\.\d+)*#', PHP_VERSION, $match );
|
394 |
$php_version = $match[0];
|
395 |
|
396 |
// WP memory limit.
|
397 |
$wp_memory_limit = $this->memory_size_to_num( WP_MEMORY_LIMIT );
|
398 |
if ( function_exists( 'memory_get_usage' ) ) {
|
399 |
+
$wp_memory_limit = max( $wp_memory_limit, $this->memory_size_to_num( @ini_get( 'memory_limit' ) ) ); //phpcs:ignore
|
400 |
}
|
401 |
|
402 |
if ( class_exists( 'Imagick' ) && is_callable( array( 'Imagick', 'getVersion' ) ) ) {
|
403 |
+
preg_match( '/([0-9]+\.[0-9]+\.[0-9]+)/', Imagick::getVersion()['versionString'], $imatch );
|
404 |
$imagick_version = $imatch[0];
|
405 |
}
|
406 |
|
407 |
+
return apply_filters(
|
408 |
+
'yith_system_additional_check',
|
409 |
+
array(
|
410 |
+
'min_wp_version' => get_bloginfo( 'version' ),
|
411 |
+
'min_wc_version' => function_exists( 'WC' ) ? WC()->version : 'n/a',
|
412 |
+
'wp_memory_limit' => $wp_memory_limit,
|
413 |
+
'min_php_version' => $php_version,
|
414 |
+
'min_tls_version' => $tls,
|
415 |
+
'imagick_version' => $imagick_version,
|
416 |
+
'wp_cron_enabled' => ( ! ( defined( 'DISABLE_WP_CRON' ) && DISABLE_WP_CRON ) || apply_filters( 'yith_system_status_server_cron', false ) ),
|
417 |
+
'mbstring_enabled' => extension_loaded( 'mbstring' ),
|
418 |
+
'simplexml_enabled' => extension_loaded( 'simplexml' ),
|
419 |
+
'gd_enabled' => extension_loaded( 'gd' ) && function_exists( 'gd_info' ),
|
420 |
+
'iconv_enabled' => extension_loaded( 'iconv' ),
|
421 |
+
'opcache_enabled' => ini_get( 'opcache.save_comments' ),
|
422 |
+
'url_fopen_enabled' => ini_get( 'allow_url_fopen' ),
|
423 |
+
)
|
424 |
+
);
|
425 |
|
426 |
}
|
427 |
|
428 |
/**
|
429 |
+
* Convert size into number
|
430 |
*
|
431 |
* @param $memory_size string
|
432 |
*
|
456 |
return $size;
|
457 |
}
|
458 |
|
459 |
+
/**
|
460 |
+
* Format requirement value
|
461 |
+
*
|
462 |
+
* @param $key string
|
463 |
+
* @param $value mixed
|
464 |
+
*
|
465 |
+
* @return string
|
466 |
+
* @since 1.0.0
|
467 |
+
*
|
468 |
+
* @author Alberto Ruggiero
|
469 |
+
*/
|
470 |
+
public function format_requirement_value( $key, $value ) {
|
471 |
+
|
472 |
+
if ( strpos( $key, '_enabled' ) !== false ) {
|
473 |
+
return $value ? esc_html__( 'Enabled', 'yith-plugin-fw' ) : esc_html__( 'Disabled', 'yith-plugin-fw' );
|
474 |
+
} elseif ( 'wp_memory_limit' === $key ) {
|
475 |
+
return esc_html( size_format( $value ) );
|
476 |
+
} else {
|
477 |
+
if ( 'n/a' === $value ) {
|
478 |
+
return esc_html__( 'N/A', 'yith-plugin-fw' );
|
479 |
+
} else {
|
480 |
+
return $value;
|
481 |
+
}
|
482 |
+
}
|
483 |
+
|
484 |
+
}
|
485 |
+
|
486 |
+
/**
|
487 |
+
* Print error messages
|
488 |
+
*
|
489 |
+
* @param $key string
|
490 |
+
* @param $item array
|
491 |
+
* @param $label string
|
492 |
+
*
|
493 |
+
* @return void
|
494 |
+
* @since 1.0.0
|
495 |
+
*
|
496 |
+
* @author Alberto Ruggiero
|
497 |
+
*/
|
498 |
+
public function print_error_messages( $key, $item, $label ) {
|
499 |
+
?>
|
500 |
+
<ul>
|
501 |
+
<?php foreach ( $item['errors'] as $plugin => $requirement ) : ?>
|
502 |
+
<li>
|
503 |
+
<?php
|
504 |
+
if ( strpos( $key, '_enabled' ) !== false ) {
|
505 |
+
/* translators: %1$s plugin name, %2$s requirement name */
|
506 |
+
echo sprintf( esc_html__( '%1$s needs %2$s enabled', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<b>' . $label . '</b>' );
|
507 |
+
} elseif ( 'wp_memory_limit' === $key ) {
|
508 |
+
/* translators: %1$s plugin name, %2$s required memory amount */
|
509 |
+
echo sprintf( esc_html__( '%1$s needs at least %2$s of available memory', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . esc_html( size_format( $this->memory_size_to_num( $requirement ) ) ) . '</span>' );
|
510 |
+
} else {
|
511 |
+
/* translators: %1$s plugin name, %2$s version number */
|
512 |
+
echo sprintf( esc_html__( '%1$s needs at least %2$s version', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . $requirement . '</span>' );
|
513 |
+
}
|
514 |
+
?>
|
515 |
+
</li>
|
516 |
+
<?php endforeach; ?>
|
517 |
+
</ul>
|
518 |
+
<?php
|
519 |
+
}
|
520 |
+
|
521 |
+
/**
|
522 |
+
* Print solution suggestions
|
523 |
+
*
|
524 |
+
* @param $key string
|
525 |
+
* @param $item array
|
526 |
+
* @param $label string
|
527 |
+
*
|
528 |
+
* @return void
|
529 |
+
* @since 1.0.0
|
530 |
+
*
|
531 |
+
* @author Alberto Ruggiero
|
532 |
+
*/
|
533 |
+
public function print_solution_suggestion( $key, $item, $label ) {
|
534 |
+
switch ( $key ) {
|
535 |
+
case 'min_wp_version':
|
536 |
+
case 'min_wc_version':
|
537 |
+
esc_html_e( 'Update it to the latest version in order to benefit of all new features and security updates.', 'yith-plugin-fw' );
|
538 |
+
break;
|
539 |
+
case 'min_php_version':
|
540 |
+
case 'min_tls_version':
|
541 |
+
esc_html_e( 'Contact your hosting company in order to update it.', 'yith-plugin-fw' );
|
542 |
+
break;
|
543 |
+
case 'imagick_version':
|
544 |
+
if ( 'n/a' === $item['value'] ) {
|
545 |
+
esc_html_e( 'Contact your hosting company in order to install it.', 'yith-plugin-fw' );
|
546 |
+
} else {
|
547 |
+
esc_html_e( 'Contact your hosting company in order to update it.', 'yith-plugin-fw' );
|
548 |
+
}
|
549 |
+
break;
|
550 |
+
case 'wp_cron_enabled':
|
551 |
+
/* translators: %1$s code, %2$s file name */
|
552 |
+
echo sprintf( esc_html__( 'Remove %1$s from %2$s file', 'yith-plugin-fw' ), '<code>define( \'DISABLE_WP_CRON\', true );</code>', '<b>wp-config.php</b>' );
|
553 |
+
break;
|
554 |
+
case 'mbstring_enabled':
|
555 |
+
case 'simplexml_enabled':
|
556 |
+
case 'gd_enabled':
|
557 |
+
case 'iconv_enabled':
|
558 |
+
case 'opcache_enabled':
|
559 |
+
case 'url_fopen_enabled':
|
560 |
+
esc_html_e( 'Contact your hosting company in order to enable it.', 'yith-plugin-fw' );
|
561 |
+
break;
|
562 |
+
case 'wp_memory_limit':
|
563 |
+
/* translators: %1$s opening link tag, %2$s closing link tag */
|
564 |
+
echo sprintf( esc_html__( 'Read more %1$shere%2$s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
|
565 |
+
break;
|
566 |
+
default:
|
567 |
+
echo apply_filters( 'yith_system_generic_message', '', $key, $item, $label );
|
568 |
+
}
|
569 |
+
}
|
570 |
+
|
571 |
+
/**
|
572 |
+
* Print warning messages
|
573 |
+
*
|
574 |
+
* @param $key string
|
575 |
+
*
|
576 |
+
* @return void
|
577 |
+
* @since 1.0.0
|
578 |
+
*
|
579 |
+
* @author Alberto Ruggiero
|
580 |
+
*/
|
581 |
+
public function print_warning_messages( $key ) {
|
582 |
+
switch ( $key ) {
|
583 |
+
case 'wp_memory_limit':
|
584 |
+
/* translators: %s recommended memory amount */
|
585 |
+
echo sprintf( esc_html__( 'For optimal functioning of our plugins, we suggest setting at least %s of available memory', 'yith-plugin-fw' ), '<span class="warning">' . esc_html( size_format( $this->_recommended_memory ) ) . '</span>' );
|
586 |
+
echo '<br/>';
|
587 |
+
/* translators: %1$s opening link tag, %2$s closing link tag */
|
588 |
+
echo sprintf( esc_html__( 'Read more %1$shere%2$s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
|
589 |
+
break;
|
590 |
+
case 'min_tls_version':
|
591 |
+
if ( ! function_exists( 'curl_init' ) ) {
|
592 |
+
/* translators: %1$s TLS label, %2$s cURL label */
|
593 |
+
echo sprintf( esc_html__( 'The system check cannot determine which %1$s version is installed because %2$s module is disabled. Ask your hosting company to enable it.', 'yith-plugin-fw' ), '<b>TLS</b>', '<b>cURL</b>' );
|
594 |
+
} else {
|
595 |
+
/* translators: %1$s TLS label */
|
596 |
+
echo sprintf( esc_html__( 'The system check cannot determine which %1$s version is installed due to a connection issue between your site and our server.', 'yith-plugin-fw' ), '<b>TLS</b>' );
|
597 |
+
}
|
598 |
+
break;
|
599 |
+
}
|
600 |
+
}
|
601 |
+
|
602 |
}
|
603 |
}
|
604 |
|
610 |
* @author Alberto Ruggiero
|
611 |
*/
|
612 |
if ( ! function_exists( 'YITH_System_Status' ) ) {
|
613 |
+
function YITH_System_Status() {//phpcs:ignore
|
614 |
return YITH_System_Status::instance();
|
615 |
}
|
616 |
}
|
plugin-fw/templates/fields/inline-fields.php
ADDED
@@ -0,0 +1,60 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 |
+
* @var array $field
|
11 |
+
*/
|
12 |
+
|
13 |
+
if ( ! defined( 'ABSPATH' ) ) {
|
14 |
+
exit; // Exit if accessed directly.
|
15 |
+
}
|
16 |
+
|
17 |
+
extract( $field );
|
18 |
+
$value = maybe_unserialize( $value );
|
19 |
+
if ( ! empty( $fields ) && is_array( $fields ) ) { ?>
|
20 |
+
<div id="<?php echo esc_attr( $id ); ?>" class="<?php echo isset( $class ) ? $class : ''; ?> yith-inline-fields">
|
21 |
+
<?php
|
22 |
+
foreach ( $fields as $key => $field ) {
|
23 |
+
$allowed_types = array( 'select', 'select-buttons', 'number', 'text', 'slider', 'hidden', 'html' );
|
24 |
+
$default_args = array( 'type' => 'select' );
|
25 |
+
|
26 |
+
// set default
|
27 |
+
if ( ! isset( $field[ 'default' ] ) && isset( $field[ 'std' ] ) ) {
|
28 |
+
$field['default'] = $field['std'];
|
29 |
+
}
|
30 |
+
$std = isset( $field['default'] ) ? $field['default'] : '';
|
31 |
+
|
32 |
+
$field['value'] = isset( $value[ $key ] ) ? maybe_unserialize( $value[ $key ] ) : $std;
|
33 |
+
$field['class'] = isset( $field['class'] ) ? $field['class'] : '';
|
34 |
+
$field['id'] = $id . '_' . $key;
|
35 |
+
$field['name'] = $name . '[' . $key . ']';
|
36 |
+
|
37 |
+
if ( ! in_array( $field['type'], $allowed_types, true ) ) {
|
38 |
+
continue;
|
39 |
+
}
|
40 |
+
|
41 |
+
if ( in_array( $field['type'], array( 'select', 'select-buttons' ), true ) ) {
|
42 |
+
$field['class'] = 'wc-enhanced-select';
|
43 |
+
}
|
44 |
+
?>
|
45 |
+
<?php if ( isset( $field['inline-label'] ) && '' !== $field['inline-label'] ) : ?>
|
46 |
+
<div class="option-element">
|
47 |
+
<span><?php echo $field['inline-label']; ?></span>
|
48 |
+
</div>
|
49 |
+
<?php endif; ?>
|
50 |
+
<div class="option-element <?php echo $field['type']; ?> <?php echo $field['class']; ?>">
|
51 |
+
<?php if ( isset( $field['label'] ) && '' !== $field['label'] ) : ?>
|
52 |
+
<label for="<?php echo $field['id']; ?>"><?php echo $field['label']; ?></label>
|
53 |
+
<?php endif; ?>
|
54 |
+
<?php yith_plugin_fw_get_field( $field, true ); ?>
|
55 |
+
</div>
|
56 |
+
<?php } ?>
|
57 |
+
</div>
|
58 |
+
<?php
|
59 |
+
|
60 |
+
}
|
plugin-fw/templates/fields/textarea-editor.php
CHANGED
@@ -18,6 +18,8 @@ if ( !function_exists( 'wp_editor' ) ) :
|
|
18 |
else:
|
19 |
extract( $field );
|
20 |
|
|
|
|
|
21 |
$editor_args = wp_parse_args( $field, array(
|
22 |
'wpautop' => true, // use wpautop?
|
23 |
'media_buttons' => true, // show insert/upload button(s)
|
@@ -32,7 +34,7 @@ else:
|
|
32 |
'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
|
33 |
) );
|
34 |
?>
|
35 |
-
<div class="editor" <?php echo $custom_attributes ?>
|
36 |
<?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>><?php wp_editor( $value, $id, $editor_args ); ?></div>
|
37 |
|
38 |
<?php endif; ?>
|
18 |
else:
|
19 |
extract( $field );
|
20 |
|
21 |
+
$classes = isset( $classes ) ? ' '.$classes : '';
|
22 |
+
|
23 |
$editor_args = wp_parse_args( $field, array(
|
24 |
'wpautop' => true, // use wpautop?
|
25 |
'media_buttons' => true, // show insert/upload button(s)
|
34 |
'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
|
35 |
) );
|
36 |
?>
|
37 |
+
<div class="editor<?php echo $classes ?>" <?php echo $custom_attributes ?>
|
38 |
<?php if ( isset( $data ) ) echo yith_plugin_fw_html_data_to_string( $data ); ?>><?php wp_editor( $value, $id, $editor_args ); ?></div>
|
39 |
|
40 |
<?php endif; ?>
|
plugin-fw/templates/fields/toggle-element-fixed.php
CHANGED
@@ -10,6 +10,7 @@ $defaults = array(
|
|
10 |
'custom_attributes' => '',
|
11 |
'elements' => [],
|
12 |
'onoff_field' => true,
|
|
|
13 |
|
14 |
);
|
15 |
$field = wp_parse_args( $field, $defaults );
|
@@ -48,10 +49,17 @@ $value = get_option( $name, [] );
|
|
48 |
<?php foreach ( $elements as $element ):
|
49 |
// build correct name and id
|
50 |
$field_id = $element['id'];
|
51 |
-
$element['name'] = "{$name}[{$field_id}]";
|
52 |
$element['id'] = "{$id}_{$field_id}";
|
53 |
// get value
|
54 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
55 |
?>
|
56 |
<div class="yith-toggle-content-row <?php echo $element['type'] ?>">
|
57 |
<label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
|
@@ -65,4 +73,4 @@ $value = get_option( $name, [] );
|
|
65 |
</div>
|
66 |
</div>
|
67 |
</div>
|
68 |
-
</div>
|
10 |
'custom_attributes' => '',
|
11 |
'elements' => [],
|
12 |
'onoff_field' => true,
|
13 |
+
'save_single_options' => false,
|
14 |
|
15 |
);
|
16 |
$field = wp_parse_args( $field, $defaults );
|
49 |
<?php foreach ( $elements as $element ):
|
50 |
// build correct name and id
|
51 |
$field_id = $element['id'];
|
52 |
+
$element['name'] = false === $save_single_options ? "{$name}[{$field_id}]" : $field_id;
|
53 |
$element['id'] = "{$id}_{$field_id}";
|
54 |
// get value
|
55 |
+
$element['value'] = '';
|
56 |
+
if( false === $save_single_options ){
|
57 |
+
$element['value'] = isset( $value[ $field_id ] ) ? $value[ $field_id ] : ( isset( $element['default'] ) ? $element['default'] : '' );
|
58 |
+
}
|
59 |
+
|
60 |
+
else {
|
61 |
+
$element['value'] = get_option( $field_id, $element['default'] );
|
62 |
+
}
|
63 |
?>
|
64 |
<div class="yith-toggle-content-row <?php echo $element['type'] ?>">
|
65 |
<label for="<?php echo $element['id']; ?>"><?php echo $element['title']; ?></label>
|
73 |
</div>
|
74 |
</div>
|
75 |
</div>
|
76 |
+
</div>
|
plugin-fw/templates/metaboxes/types/ajax-products.php
DELETED
@@ -1,63 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
wp_enqueue_script( 'woocommerce_admin' );
|
15 |
-
extract( $args );
|
16 |
-
$is_multiple = isset( $multiple ) && $multiple;
|
17 |
-
$multiple = ( $is_multiple ) ? ' multiple' : '';
|
18 |
-
?>
|
19 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
20 |
-
|
21 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
22 |
-
|
23 |
-
<select id="<?php echo $id ?>" name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="ajax_chosen_select_products" multiple="multiple" data-placeholder="<?php _e('Search for a product','yith-plugin-fw') ?>">
|
24 |
-
<?php
|
25 |
-
if ( $value ) {
|
26 |
-
foreach ( $value as $product_id ) {
|
27 |
-
$product = wc_get_product( $product_id );
|
28 |
-
if ( $product ) {
|
29 |
-
echo '<option value="' . esc_attr( $product_id ) . '" selected="selected">' . esc_html( $product->get_formatted_name() ) . '</option>';
|
30 |
-
}
|
31 |
-
}
|
32 |
-
}
|
33 |
-
?>
|
34 |
-
</select>
|
35 |
-
|
36 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
37 |
-
</div>
|
38 |
-
<script>
|
39 |
-
|
40 |
-
(function ($) {
|
41 |
-
$(document).ready(function(){
|
42 |
-
$("select.ajax_chosen_select_products").ajaxChosen({
|
43 |
-
method: 'GET',
|
44 |
-
url: '<?php echo admin_url('admin-ajax.php') ?>',
|
45 |
-
dataType: 'json',
|
46 |
-
afterTypeDelay: 100,
|
47 |
-
data: {
|
48 |
-
action: 'woocommerce_json_search_products',
|
49 |
-
security: '<?php echo wp_create_nonce("search-products") ?>'
|
50 |
-
}
|
51 |
-
}, function (data) {
|
52 |
-
var terms = {};
|
53 |
-
|
54 |
-
$.each(data, function (i, val) {
|
55 |
-
terms[i] = val;
|
56 |
-
});
|
57 |
-
|
58 |
-
return terms;
|
59 |
-
});
|
60 |
-
})
|
61 |
-
|
62 |
-
})(jQuery);
|
63 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/categories.php
DELETED
@@ -1,88 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
global $post;
|
16 |
-
|
17 |
-
extract( $args );
|
18 |
-
|
19 |
-
if ( empty( $value ) || ! is_array( $value ) )
|
20 |
-
$value = array();
|
21 |
-
|
22 |
-
$categories = yit_get_model('cpt_unlimited')->get_setting( 'categories', $post->ID );
|
23 |
-
?>
|
24 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
25 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
26 |
-
<div class="categories-panel">
|
27 |
-
<div class="box">
|
28 |
-
<ul id="<?php echo $id ?>-category-list" class="category-list">
|
29 |
-
<?php if ( ! empty( $categories ) ) : ?>
|
30 |
-
<?php foreach ( $categories as $cat_slug => $cat_name ) : ?>
|
31 |
-
<li>
|
32 |
-
<label class="selectit"><input type="checkbox" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $cat_slug ) ?>"<?php checked( in_array( $cat_slug, $value ) ) ?> /> <?php echo $cat_name ?> <a class="remove_cat" href="#">X</a></label>
|
33 |
-
</li>
|
34 |
-
<?php endforeach; ?>
|
35 |
-
<?php else : ?>
|
36 |
-
<li class="remove-after-add"><i><?php _e( 'No categories.', 'yith-plugin-fw' ); ?></i></li>
|
37 |
-
<?php endif; ?>
|
38 |
-
</ul>
|
39 |
-
</div>
|
40 |
-
<div class="wp-hidden-children">
|
41 |
-
<h4>
|
42 |
-
<a tabindex="3" class="hide-if-no-js" href="#category-add" id="<?php echo $id ?>-category-add"><?php _e( '+ Add New Category', 'yith-plugin-fw' ); ?></a>
|
43 |
-
</h4>
|
44 |
-
<p class="category-add-field" id="<?php echo $id ?>-category-field">
|
45 |
-
<input type="text" class="newcategory" name="newcategory" style="width:100%;" id="<?php echo $id ?>-new-category" />
|
46 |
-
<input type="button" value="<?php esc_attr_e( 'Add', 'yit' ); ?>" class="add:categorychecklist:category-add button category-add-submit" id="<?php echo $id ?>-category-add-submit" />
|
47 |
-
</p>
|
48 |
-
</div>
|
49 |
-
</div>
|
50 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
51 |
-
</div>
|
52 |
-
<script type="text/javascript">
|
53 |
-
jQuery(document).ready(function($){
|
54 |
-
$('#<?php echo $id ?>-category-field').hide();
|
55 |
-
$(document).on('click', '#<?php echo $id ?>-category-add', function(){
|
56 |
-
$('#<?php echo $id ?>-category-field').toggle();
|
57 |
-
return false;
|
58 |
-
});
|
59 |
-
|
60 |
-
$(document).on('click', '#<?php echo $id ?>-category-add-submit', function(){
|
61 |
-
var t = $(this);
|
62 |
-
var new_category = $('#<?php echo $id ?>-new-category').val();
|
63 |
-
|
64 |
-
var data = {
|
65 |
-
action: 'add_category_post_type',
|
66 |
-
post_id: <?php echo $post->ID; ?>,
|
67 |
-
new_category: new_category
|
68 |
-
};
|
69 |
-
|
70 |
-
$.post(ajaxurl, data, function(response) {
|
71 |
-
t.prev().val('');
|
72 |
-
var new_cat = response;
|
73 |
-
|
74 |
-
$('.remove-after-add').hide();
|
75 |
-
$('.category-list').each(function(){
|
76 |
-
var this_post_id = $(this).attr('id');
|
77 |
-
var name = '<?php echo $name ?>';
|
78 |
-
this_post_id = this_post_id.match( /([0-9]+)/gi );
|
79 |
-
name = name.replace( /[0-9]+/g, this_post_id[0] );
|
80 |
-
$(this).prepend('<li><label class="selectit"><input type="checkbox" name="'+name+'[]" value="'+new_cat.slug+'" /> '+new_cat.name+' <a class="remove_cat" href="#">X</a></label></li>');
|
81 |
-
$('#<?php echo $id ?>-category-list li:first-child .selectit input').attr('checked', true);
|
82 |
-
});
|
83 |
-
}, 'json');
|
84 |
-
|
85 |
-
});
|
86 |
-
|
87 |
-
});
|
88 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/checkbox.php
DELETED
@@ -1,23 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
19 |
-
<p>
|
20 |
-
<input type="checkbox" id="<?php echo $id ?>" name="<?php echo $name ?>" value="1" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>" <?php endif; checked( $value, 1 ) ?> />
|
21 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
22 |
-
</p>
|
23 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/chosen.php
DELETED
@@ -1,32 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
$is_multiple = isset( $multiple ) && $multiple;
|
17 |
-
$multiple = ( $is_multiple ) ? ' multiple' : '';
|
18 |
-
?>
|
19 |
-
<div id="<?php echo $id ?>-container" class="chosen" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
20 |
-
|
21 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
22 |
-
|
23 |
-
<div class="select_wrapper">
|
24 |
-
<select<?php echo $multiple ?> id="<?php echo $id ?>" class="chosen" name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo ( $is_multiple )? implode(' ,', $std) : $std ?>"<?php endif ?>>
|
25 |
-
<?php foreach ( $options as $key => $item ) : ?>
|
26 |
-
<option value="<?php echo esc_attr( $key ) ?>" <?php if( $is_multiple ): selected( true, in_array( $key, $value ) ); else: selected( $key, $value ); endif; ?> ><?php echo $item ?></option>
|
27 |
-
<?php endforeach; ?>
|
28 |
-
</select>
|
29 |
-
</div>
|
30 |
-
|
31 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
32 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/colorpicker.php
DELETED
@@ -1,22 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
19 |
-
|
20 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $value ) ?>" <?php if( isset( $std ) ) : ?>data-default-color="<?php echo $std ?>"<?php endif ?> class="panel-colorpicker"/>
|
21 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
22 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/contactform.php
DELETED
@@ -1,557 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
extract( $args );
|
5 |
-
|
6 |
-
$types = array(
|
7 |
-
'text' => __( 'Text Input', 'yith-plugin-fw' ),
|
8 |
-
'checkbox' => __( 'Checkbox', 'yith-plugin-fw' ),
|
9 |
-
'select' => __( 'Select', 'yith-plugin-fw' ),
|
10 |
-
'textarea' => __( 'Textarea', 'yith-plugin-fw' ),
|
11 |
-
'radio' => __( 'Radio Input', 'yith-plugin-fw' ),
|
12 |
-
'password' => __( 'Password Field', 'yith-plugin-fw' ),
|
13 |
-
'file' => __( 'File Upload', 'yith-plugin-fw' ),
|
14 |
-
);
|
15 |
-
|
16 |
-
$defaults = array(
|
17 |
-
'order' => 0,
|
18 |
-
'title' => '',
|
19 |
-
'data_name' => '',
|
20 |
-
'type' => 'text',
|
21 |
-
'already_checked' => '',
|
22 |
-
'options' => array(),
|
23 |
-
'option_selected' => '',
|
24 |
-
'error' => '',
|
25 |
-
'required' => '',
|
26 |
-
'is_email' => '',
|
27 |
-
'reply_to' => '',
|
28 |
-
'class' => '',
|
29 |
-
'select-icon' => 'none',
|
30 |
-
'icon' => '',
|
31 |
-
'custom-icon' => ''
|
32 |
-
);
|
33 |
-
|
34 |
-
if ( ! is_array( $value ) ) {
|
35 |
-
$value = array();
|
36 |
-
}
|
37 |
-
foreach ( $value as $i => $v ) {
|
38 |
-
$value[$i] = wp_parse_args( $value[$i], $defaults );
|
39 |
-
}
|
40 |
-
|
41 |
-
$index = 1;
|
42 |
-
|
43 |
-
|
44 |
-
/* Select Font Awesome */
|
45 |
-
|
46 |
-
$options["select"]=array(
|
47 |
-
'icon' => __( 'Theme Icon', 'yith-plugin-fw' ),
|
48 |
-
'custom' => __( 'Custom Icon', 'yith-plugin-fw' ),
|
49 |
-
'none' => __( 'None', 'yith-plugin-fw' )
|
50 |
-
);
|
51 |
-
|
52 |
-
$options["icon"] = YIT_Plugin_Common::get_awesome_icons();
|
53 |
-
|
54 |
-
/* End select Font Awesome */
|
55 |
-
?>
|
56 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
57 |
-
<?php if( isset( $label ) ):?><label for="<?php echo $id ?>"><?php echo $label ?></label><?php endif;?>
|
58 |
-
|
59 |
-
<p class="field-row">
|
60 |
-
<a href="" class="button-secondary add-items"><?php _e( 'Add field', 'yith-plugin-fw' ) ?></a>
|
61 |
-
<img src="<?php echo esc_url( admin_url( 'images/wpspin_light.gif' ) ); ?>" class="ajax-loading" id="add-items-ajax-loading" alt="" />
|
62 |
-
</p>
|
63 |
-
|
64 |
-
|
65 |
-
<div class="contactform_items panel" id="panel_form">
|
66 |
-
<?php while ( $index <= count( $value ) ): ?>
|
67 |
-
<div class="contactform_item closed">
|
68 |
-
<h3>
|
69 |
-
<button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yith-plugin-fw' ) ?></button>
|
70 |
-
<div class="handlediv" title="<?php _e( 'Click to toggle', 'yith-plugin-fw' ) ?>"></div>
|
71 |
-
<strong><?php echo $value[$index]['title'] ?> <?php yit_string( '(', $types[$value[$index]['type']], ')' ) ?></strong>
|
72 |
-
<input type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[<?php echo $index ?>][order]" value="<?php echo esc_attr( $index ) ?>" />
|
73 |
-
</h3>
|
74 |
-
<div class="inside">
|
75 |
-
|
76 |
-
<div class="the-metabox text clearfix">
|
77 |
-
<label for="<?php echo $id ?>_title_<?php echo $index ?>"><?php _e( 'Field Title', 'yith-plugin-fw' ) ?></label>
|
78 |
-
|
79 |
-
<p>
|
80 |
-
<input type="text" value="<?php echo esc_attr( $value[$index]['title'] ) ?>" id="<?php echo $id ?>_title_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][title]" />
|
81 |
-
<span class="desc inline"><?php _e( 'Insert the title for the field.', 'yith-plugin-fw' ) ?></span>
|
82 |
-
</p>
|
83 |
-
</div>
|
84 |
-
|
85 |
-
<div class="the-metabox text clearfix">
|
86 |
-
<label for="<?php echo $id ?>_data_name_<?php echo $index ?>"><?php _e( 'Data Name', 'yith-plugin-fw' ) ?></label>
|
87 |
-
|
88 |
-
<p>
|
89 |
-
<input type="text" value="<?php echo esc_attr( $value[$index]['data_name'] ) ?>" id="<?php echo $id ?>_data_name_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][data_name]" />
|
90 |
-
<span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yith-plugin-fw' ) ?></span>
|
91 |
-
</p>
|
92 |
-
</div>
|
93 |
-
|
94 |
-
<div class="the-metabox select clearfix text-field-type">
|
95 |
-
<label for="<?php echo $id ?>_type_<?php echo $index ?>"><?php _e( 'Field Type', 'yith-plugin-fw' ) ?></label>
|
96 |
-
|
97 |
-
<p>
|
98 |
-
<select id="<?php echo $id ?>_type_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[type]">
|
99 |
-
<?php foreach ( $types as $type => $name_type ) : ?>
|
100 |
-
<option value="<?php echo esc_attr( $type ) ?>"<?php selected( $type, $value[$index]['type'] ) ?>><?php echo $name_type ?></option>
|
101 |
-
<?php endforeach; ?>
|
102 |
-
</select>
|
103 |
-
<span class="desc inline"><?php _e( 'Select the type for this field.', 'yith-plugin-fw' ) ?></span>
|
104 |
-
</p>
|
105 |
-
</div>
|
106 |
-
|
107 |
-
<div class="the-metabox checkbox clearfix deps_checkbox deps">
|
108 |
-
<label for="<?php echo $id ?>_already_checked_<?php echo $index ?>"><?php _e( 'Checked', 'yith-plugin-fw' ) ?></label>
|
109 |
-
|
110 |
-
<p>
|
111 |
-
<input type="checkbox" id="<?php echo $id ?>_already_checked_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][already_checked]" value="1"<?php checked( $value[$index]['already_checked'] ) ?> />
|
112 |
-
<span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yith-plugin-fw' ) ?></span>
|
113 |
-
</p>
|
114 |
-
</div>
|
115 |
-
|
116 |
-
<div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
|
117 |
-
<label for=""><?php _e( 'Add options ', 'yith-plugin-fw' ) ?></label>
|
118 |
-
<a href="#" class="add-field-option button-secondary" data-index="<?php echo $index ?>"><?php _e( 'Add option', 'yith-plugin-fw' ) ?></a><br /><br />
|
119 |
-
<?php foreach ( $value[$index]['options'] as $key => $option ) : ?>
|
120 |
-
<p class="option">
|
121 |
-
<label><input type="radio" name="<?php echo $name ?>[<?php echo $index ?>][option_selected]" value="<?php echo esc_attr( $key ) ?>"<?php checked( $value[$index]['option_selected'], $key ) ?> /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?>
|
122 |
-
</label>
|
123 |
-
<input type="text" name="<?php echo $name ?>[<?php echo $index ?>][options][]" value="<?php echo $option ?>" style="width:200px" />
|
124 |
-
<a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a>
|
125 |
-
</p>
|
126 |
-
<?php endforeach; ?>
|
127 |
-
</div>
|
128 |
-
|
129 |
-
<div class="the-metabox text clearfix">
|
130 |
-
<label for="<?php echo $id ?>_error_<?php echo $index ?>"><?php _e( 'Error Message', 'yith-plugin-fw' ) ?></label>
|
131 |
-
|
132 |
-
<p>
|
133 |
-
<input type="text" value="<?php echo esc_attr( $value[$index]['error'] ) ?>" id="<?php echo $id ?>_error_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][error]" />
|
134 |
-
<span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yith-plugin-fw' ) ?></span>
|
135 |
-
</p>
|
136 |
-
</div>
|
137 |
-
|
138 |
-
<div class="the-metabox checkbox clearfix">
|
139 |
-
<label for="<?php echo $id ?>_required_<?php echo $index ?>"><?php _e( 'Required', 'yith-plugin-fw' ) ?></label>
|
140 |
-
|
141 |
-
<p>
|
142 |
-
<input type="checkbox" id="<?php echo $id ?>_required_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][required]" value="1"<?php checked( $value[$index]['required'] ) ?> />
|
143 |
-
<span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yith-plugin-fw' ) ?></span>
|
144 |
-
</p>
|
145 |
-
</div>
|
146 |
-
|
147 |
-
<div class="the-metabox checkbox clearfix">
|
148 |
-
<label for="<?php echo $id ?>_is_email_<?php echo $index ?>"><?php _e( 'Email', 'yith-plugin-fw' ) ?></label>
|
149 |
-
|
150 |
-
<p>
|
151 |
-
<input type="checkbox" id="<?php echo $id ?>_is_email_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][is_email]" value="1"<?php checked( $value[$index]['is_email'] ) ?> />
|
152 |
-
<span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yith-plugin-fw' ) ?></span>
|
153 |
-
</p>
|
154 |
-
</div>
|
155 |
-
|
156 |
-
<div class="the-metabox checkbox clearfix">
|
157 |
-
<label for="<?php echo $id ?>_reply_to_<?php echo $index ?>"><?php _e( 'Reply To', 'yith-plugin-fw' ) ?></label>
|
158 |
-
|
159 |
-
<p>
|
160 |
-
<input type="checkbox" id="<?php echo $id ?>_reply_to_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][reply_to]" value="1"<?php checked( $value[$index]['reply_to'] ) ?> />
|
161 |
-
<span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yith-plugin-fw' ) ?></span>
|
162 |
-
</p>
|
163 |
-
</div>
|
164 |
-
|
165 |
-
<div class="the-metabox text clearfix">
|
166 |
-
<label for="<?php echo $id ?>_class_<?php echo $index ?>"><?php _e( 'Class', 'yith-plugin-fw' ) ?></label>
|
167 |
-
|
168 |
-
<p>
|
169 |
-
<input type="text" value="<?php echo esc_attr( $value[$index]['class'] ) ?>" id="<?php echo $id ?>_class_<?php echo $index ?>" name="<?php echo $name ?>[<?php echo $index ?>][class]" />
|
170 |
-
<span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yith-plugin-fw' ) ?></span>
|
171 |
-
</p>
|
172 |
-
</div>
|
173 |
-
|
174 |
-
<div class="the-metabox text clearfix">
|
175 |
-
<label for="<?php echo $id ?>_icon_<?php echo $index ?>"><?php _e( 'Icon', 'yith-plugin-fw' ) ?></label>
|
176 |
-
|
177 |
-
<p>
|
178 |
-
|
179 |
-
<div class="option">
|
180 |
-
|
181 |
-
<div class="icon_type">
|
182 |
-
<select name="<?php echo $name ?>[<?php echo $index ?>][select-icon]" id="<?php echo $id ?>_icon_<?php echo $index ?>">
|
183 |
-
<?php foreach ( $options['select'] as $val => $option ) { ?>
|
184 |
-
<option value="<?php echo esc_attr( $val ) ?>"<?php selected( $value[$index]['select-icon'], $val ) ?>><?php echo $option; ?></option>
|
185 |
-
<?php } ?>
|
186 |
-
</select>
|
187 |
-
</div>
|
188 |
-
|
189 |
-
|
190 |
-
|
191 |
-
<div class="awesome_icon" style="font-family: 'FontAwesome'">
|
192 |
-
<select style="font-family: 'FontAwesome'" name="<?php echo $name ?>[<?php echo $index ?>][icon]" id="<?php echo $id ?>_icon_<?php echo $index ?>[icon]">
|
193 |
-
<?php foreach ( $options['icon'] as $option => $val ) { ?>
|
194 |
-
<option value="<?php echo esc_attr( $val ) ?>"<?php selected( $value[$index]['icon'], $val ); ?>>
|
195 |
-
<?php echo '&#x' . $option . '; ' . $val; ?>
|
196 |
-
</option>
|
197 |
-
<?php } ?>
|
198 |
-
</select>
|
199 |
-
</div>
|
200 |
-
|
201 |
-
<div class="input_wrapper custom_icon">
|
202 |
-
<input type="text" name="<?php echo $name ?>[<?php echo $index ?>][custom]" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]" value="<?php echo esc_attr( $value[$index]['custom'] ); ?>" class="upload_img_url upload_custom_icon" />
|
203 |
-
<input type="button" name="<?php echo $name ?>[<?php echo $index ?>][custom]-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>_icon_<?php echo $index ?>[custom-icon]-button" class="upload_button button" />
|
204 |
-
|
205 |
-
<div class="upload_img_preview" style="margin-top:10px;">
|
206 |
-
<?php
|
207 |
-
$file = $current_options['custom'];
|
208 |
-
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
209 |
-
echo __('Image preview', 'yith-plugin-fw') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
|
210 |
-
}
|
211 |
-
?>
|
212 |
-
</div>
|
213 |
-
|
214 |
-
</div>
|
215 |
-
</div>
|
216 |
-
|
217 |
-
<span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yith-plugin-fw' ) ?></span>
|
218 |
-
</p>
|
219 |
-
</div>
|
220 |
-
|
221 |
-
<div class="the-metabox text clearfix">
|
222 |
-
<label for="<?php echo $id ?>_width_<?php echo $index ?>"><?php _e( 'Width', 'yith-plugin-fw' ) ?></label>
|
223 |
-
|
224 |
-
<p>
|
225 |
-
<select id="<?php echo $id ?>_width_<?php echo $index ?>" name="<?php echo $name . '[' . $index . ']' ?>[width]">
|
226 |
-
<?php
|
227 |
-
for ( $i = 1; $i < 13; $i ++ ) {
|
228 |
-
?>
|
229 |
-
<option value="col-sm-<?php echo $i ?>"
|
230 |
-
<?php
|
231 |
-
if ( isset( $value[$index]['width'] ) ) {
|
232 |
-
selected( 'col-sm-' . $i, $value[$index]['width'] );
|
233 |
-
}
|
234 |
-
else {
|
235 |
-
if ( $value['type'] == 'textarea' ) {
|
236 |
-
selected( 'col-sm-' . $i, 'col-sm-9' );
|
237 |
-
}
|
238 |
-
else {
|
239 |
-
selected( 'col-sm-' . $i, 'col-sm-3' );
|
240 |
-
}
|
241 |
-
}
|
242 |
-
?>><?php echo $i ?></option>
|
243 |
-
<?php
|
244 |
-
}
|
245 |
-
?>
|
246 |
-
</select>
|
247 |
-
<span class="desc inline"><?php _e( 'Set field length.', 'yith-plugin-fw' ) ?></span>
|
248 |
-
</p>
|
249 |
-
</div>
|
250 |
-
</div>
|
251 |
-
</div>
|
252 |
-
<?php
|
253 |
-
$index ++;
|
254 |
-
endwhile;
|
255 |
-
?>
|
256 |
-
|
257 |
-
</div>
|
258 |
-
|
259 |
-
<div class="contactform_item closed" id="stamp_form" style="display:none;">
|
260 |
-
<h3>
|
261 |
-
<button type="button" class="remove_item button" rel=""><?php _e( 'Remove', 'yith-plugin-fw' ) ?></button>
|
262 |
-
<div class="handlediv" title="<?php _e( 'Click to toggle', 'yith-plugin-fw' ) ?>"></div>
|
263 |
-
<strong></strong>
|
264 |
-
<input disabled type="hidden" class="contactform_menu_order" name="<?php echo $name ?>[][order]" value=""/>
|
265 |
-
</h3>
|
266 |
-
<div class="inside">
|
267 |
-
|
268 |
-
<div class="the-metabox text clearfix">
|
269 |
-
<label for="<?php echo $id ?>_title"><?php _e( 'Field Title', 'yith-plugin-fw' ) ?></label>
|
270 |
-
|
271 |
-
<p>
|
272 |
-
<input disabled type="text" value="" id="<?php echo $id ?>_title" name="<?php echo $name ?>[][title]" />
|
273 |
-
<span class="desc inline"><?php _e( 'Insert the title for the field.', 'yith-plugin-fw' ) ?></span>
|
274 |
-
</p>
|
275 |
-
</div>
|
276 |
-
|
277 |
-
<div class="the-metabox text clearfix">
|
278 |
-
<label for="<?php echo $id ?>_data_name"><?php _e( 'Data Name', 'yith-plugin-fw' ) ?></label>
|
279 |
-
|
280 |
-
<p>
|
281 |
-
<input disabled type="text" value="" id="<?php echo $id ?>_data_name" name="<?php echo $name ?>[][data_name]" />
|
282 |
-
<span class="desc inline"><?php _e( 'REQUIRED: Field identification name to be entered into email body. <strong>Note:</strong>Use only lowercase characters and underscores.', 'yith-plugin-fw' ) ?></span>
|
283 |
-
</p>
|
284 |
-
</div>
|
285 |
-
|
286 |
-
<div class="the-metabox select clearfix text-field-type">
|
287 |
-
<label for="<?php echo $id ?>_type"><?php _e( 'Field Type', 'yith-plugin-fw' ) ?></label>
|
288 |
-
|
289 |
-
<p>
|
290 |
-
<select disabled id="<?php echo $id ?>_type" name="<?php echo $name ?>[][type]">
|
291 |
-
<?php foreach ( $types as $type => $name_type ) : ?>
|
292 |
-
<option value="<?php echo esc_attr( $type ) ?>"><?php echo $name_type ?></option>
|
293 |
-
<?php endforeach; ?>
|
294 |
-
</select>
|
295 |
-
<span class="desc inline"><?php _e( 'Select the type for this field.', 'yith-plugin-fw' ) ?></span>
|
296 |
-
</p>
|
297 |
-
</div>
|
298 |
-
|
299 |
-
<div class="the-metabox checkbox clearfix deps_checkbox deps">
|
300 |
-
<label for="<?php echo $id ?>_already_checked"><?php _e( 'Checked', 'yith-plugin-fw' ) ?></label>
|
301 |
-
|
302 |
-
<p>
|
303 |
-
<input disabled type="checkbox" id="<?php echo $id ?>_already_checked" name="<?php echo $name ?>[][already_checked]" value="1" />
|
304 |
-
<span class="desc inline"><?php _e( 'Select this option if you want this field appears as already checked.', 'yith-plugin-fw' ) ?></span>
|
305 |
-
</p>
|
306 |
-
</div>
|
307 |
-
|
308 |
-
<div id="<?php echo $id ?>_addoptions" class="the-metabox addoptions clearfix deps_radio deps_select deps">
|
309 |
-
<label for=""><?php _e( 'Add options ', 'yith-plugin-fw' ) ?></label>
|
310 |
-
<a href="#" class="add-field-option button-secondary"><?php _e( 'Add option', 'yith-plugin-fw' ) ?></a><br /><br />
|
311 |
-
|
312 |
-
<p class="option">
|
313 |
-
<label><input disabled type="radio" name="<?php echo $name ?>[][option_selected]" value="" /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?>
|
314 |
-
</label>
|
315 |
-
<input disabled type="text" name="<?php echo $name ?>[][options][]" value="" style="width:200px" />
|
316 |
-
<a href="#" class="del-field-option button-secondary"><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a>
|
317 |
-
</p>
|
318 |
-
|
319 |
-
</div>
|
320 |
-
|
321 |
-
<div class="the-metabox text clearfix">
|
322 |
-
<label for="<?php echo $id ?>_error"><?php _e( 'Error Message', 'yith-plugin-fw' ) ?></label>
|
323 |
-
|
324 |
-
<p>
|
325 |
-
<input disabled type="text" value="" id="<?php echo $id ?>_error" name="<?php echo $name ?>[][error]" />
|
326 |
-
<span class="desc inline"><?php _e( 'Insert the error message for validation.', 'yith-plugin-fw' ) ?></span>
|
327 |
-
</p>
|
328 |
-
</div>
|
329 |
-
|
330 |
-
<div class="the-metabox checkbox clearfix">
|
331 |
-
<label for="<?php echo $id ?>_required"><?php _e( 'Required', 'yith-plugin-fw' ) ?></label>
|
332 |
-
|
333 |
-
<p>
|
334 |
-
<input disabled type="checkbox" id="<?php echo $id ?>_required" name="<?php echo $name ?>[][required]" value="1" />
|
335 |
-
<span class="desc inline"><?php _e( 'Select this option if it must be required.', 'yith-plugin-fw' ) ?></span>
|
336 |
-
</p>
|
337 |
-
</div>
|
338 |
-
|
339 |
-
<div class="the-metabox checkbox clearfix">
|
340 |
-
<label for="<?php echo $id ?>_is_email"><?php _e( 'Email', 'yith-plugin-fw' ) ?></label>
|
341 |
-
|
342 |
-
<p>
|
343 |
-
<input disabled type="checkbox" id="<?php echo $id ?>_is_email" name="<?php echo $name ?>[][is_email]" value="1" />
|
344 |
-
<span class="desc inline"><?php _e( 'Select this option if the email must be valid.', 'yith-plugin-fw' ) ?></span>
|
345 |
-
</p>
|
346 |
-
</div>
|
347 |
-
|
348 |
-
<div class="the-metabox checkbox clearfix">
|
349 |
-
<label for="<?php echo $id ?>_reply_to"><?php _e( 'Reply To', 'yith-plugin-fw' ) ?></label>
|
350 |
-
|
351 |
-
<p>
|
352 |
-
<input disabled type="checkbox" id="<?php echo $id ?>_reply_to" name="<?php echo $name ?>[][reply_to]" value="1" />
|
353 |
-
<span class="desc inline"><?php _e( 'Select this if it is the email you can reply to.', 'yith-plugin-fw' ) ?></span>
|
354 |
-
</p>
|
355 |
-
</div>
|
356 |
-
|
357 |
-
<div class="the-metabox text clearfix">
|
358 |
-
<label for="<?php echo $id ?>_class"><?php _e( 'Class', 'yith-plugin-fw' ) ?></label>
|
359 |
-
|
360 |
-
<p>
|
361 |
-
<input disabled type="text" value="" id="<?php echo $id ?>_class" name="<?php echo $name ?>[][class]" />
|
362 |
-
<span class="desc inline"><?php _e( 'Insert additional class(es) (separated by commas) for more personalization.', 'yith-plugin-fw' ) ?></span>
|
363 |
-
</p>
|
364 |
-
</div>
|
365 |
-
|
366 |
-
<div class="the-metabox text clearfix">
|
367 |
-
<label for="<?php echo $id ?>_icon"><?php _e( 'Icon', 'yith-plugin-fw' ) ?></label>
|
368 |
-
|
369 |
-
<div class="option">
|
370 |
-
|
371 |
-
<div class="icon_type">
|
372 |
-
<select disabled name="<?php echo $name ?>[][select-icon]" id="<?php echo $id ?>_icon">
|
373 |
-
<?php foreach ( $options['select'] as $val => $option ) { ?>
|
374 |
-
<option value="<?php echo esc_attr( $val ) ?>"><?php echo $option; ?></option>
|
375 |
-
<?php } ?>
|
376 |
-
</select>
|
377 |
-
</div>
|
378 |
-
|
379 |
-
<div class="awesome_icon" style="font-family: 'FontAwesome'">
|
380 |
-
<select disabled style="font-family: 'FontAwesome'" name="<?php echo $name ?>[][icon]" id="<?php echo $id ?>_icon[icon]">
|
381 |
-
<?php foreach ( $options['icon'] as $option => $val ) { ?>
|
382 |
-
<option value="<?php echo esc_attr( $val ) ?>">
|
383 |
-
<?php echo '&#x' . $option . '; ' . $val; ?>
|
384 |
-
</option>
|
385 |
-
<?php } ?>
|
386 |
-
</select>
|
387 |
-
</div>
|
388 |
-
|
389 |
-
<div class="input_wrapper custom_icon">
|
390 |
-
<input disabled type="text" name="<?php echo $name ?>[][custom]" id="<?php echo $id ?>_icon[custom-icon]" value="" class="upload_img_url upload_custom_icon" />
|
391 |
-
<input disabled type="button" name="<?php echo $name ?>[][custom]-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>_icon[custom-icon]-button" class="upload_button button" />
|
392 |
-
|
393 |
-
<div class="upload_img_preview" style="margin-top:10px;">
|
394 |
-
<?php
|
395 |
-
$file = '';
|
396 |
-
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
397 |
-
echo __('Image preview', 'yith-plugin-fw') . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
|
398 |
-
}
|
399 |
-
?>
|
400 |
-
</div>
|
401 |
-
|
402 |
-
</div>
|
403 |
-
</div>
|
404 |
-
|
405 |
-
<span class="desc inline"><?php _e( 'Insert an icon for more personalization.', 'yith-plugin-fw' ) ?></span>
|
406 |
-
</div>
|
407 |
-
|
408 |
-
<div class="the-metabox text clearfix">
|
409 |
-
<label for="<?php echo $id ?>_width"><?php _e( 'Width', 'yith-plugin-fw' ) ?></label>
|
410 |
-
|
411 |
-
<p>
|
412 |
-
<select disabled id="<?php echo $id ?>_width" name="<?php echo $name?>[][width]">
|
413 |
-
<?php
|
414 |
-
for ( $i = 1; $i < 13; $i ++ ) {
|
415 |
-
?>
|
416 |
-
<option value="col-sm-<?php echo $i ?>"> <?php echo $i ?> </option>
|
417 |
-
<?php
|
418 |
-
}
|
419 |
-
?>
|
420 |
-
</select>
|
421 |
-
<span class="desc inline"><?php _e( 'Set field length.', 'yith-plugin-fw' ) ?></span>
|
422 |
-
</p>
|
423 |
-
</div>
|
424 |
-
</div>
|
425 |
-
</div>
|
426 |
-
</div>
|
427 |
-
|
428 |
-
<script>
|
429 |
-
|
430 |
-
var index = <?php echo $index ?>;
|
431 |
-
|
432 |
-
jQuery(document).ready(function ($) {
|
433 |
-
|
434 |
-
$(document).on('click', '#<?php echo $id ?>_addoptions .add-field-option', function(){
|
435 |
-
var select_index = $(this).data('index');
|
436 |
-
var option = "<p class='option'><label><input type='radio' name='<?php echo $name ?>[option_selected]' value='' /> <?php _e( 'Selected', 'yith-plugin-fw' ) ?></label><input type='text' name='<?php echo $name ?>[" + select_index + "][options][]' style='width:200px' /> <a href='#' class='del-field-option button-secondary'><?php _e( 'Delete option', 'yith-plugin-fw' ) ?></a></p>";
|
437 |
-
|
438 |
-
$(option).appendTo( $(this).parents('#<?php echo $id ?>_addoptions') );
|
439 |
-
return false;
|
440 |
-
});
|
441 |
-
|
442 |
-
//toggle items
|
443 |
-
$(document).on('click', '.contactform_item h3, .contactform_item .handlediv', function () {
|
444 |
-
var p = $(this).parent('.contactform_item'), id = p.attr('id');
|
445 |
-
p.toggleClass('closed');
|
446 |
-
|
447 |
-
if (!p.hasClass('closed')) {
|
448 |
-
p.find('.inside').show();
|
449 |
-
} else {
|
450 |
-
p.find('.inside').hide();
|
451 |
-
}
|
452 |
-
|
453 |
-
});
|
454 |
-
|
455 |
-
//add item
|
456 |
-
$(".add-items").click(function () {
|
457 |
-
|
458 |
-
|
459 |
-
var a = $("#stamp_form").clone();
|
460 |
-
a.appendTo("#panel_form").attr("id", "").show();
|
461 |
-
|
462 |
-
a.find("input, select").each(function(){
|
463 |
-
$(this).prop('disabled', false);
|
464 |
-
var str = $(this).attr("name");
|
465 |
-
|
466 |
-
var nam = str.replace("[]","["+ index +"]");
|
467 |
-
$(this).attr("name", nam );
|
468 |
-
});
|
469 |
-
|
470 |
-
index++;
|
471 |
-
|
472 |
-
$('body').trigger('yit_contact_form_added_item');
|
473 |
-
|
474 |
-
return false;
|
475 |
-
});
|
476 |
-
|
477 |
-
//remove item
|
478 |
-
$(document).on('click', '.remove_item', function () {
|
479 |
-
if ($('.remove_item').length > 1) {
|
480 |
-
var str = $(this).parents('.contactform_item').find("input:first-child").attr("name").match( /(.*)\[(.*)\](.*)\[(.*)\]/ );
|
481 |
-
|
482 |
-
var i = parseInt(str[2]);
|
483 |
-
|
484 |
-
$('.contactform_item:gt('+ --i +')').find("input, select").each(function(){
|
485 |
-
var str = $(this).attr("name").match( /(.*)\[(.*)\](.*)\[(.*)\]/ );
|
486 |
-
var indice = parseInt(str[2]);
|
487 |
-
var nam = $(this).attr('name').replace("[" + indice + "]", "[" + --indice + "]");
|
488 |
-
$(this).attr("name", nam );
|
489 |
-
});
|
490 |
-
|
491 |
-
$(this).parents('.contactform_item').remove();
|
492 |
-
|
493 |
-
index--;
|
494 |
-
|
495 |
-
$('body').trigger('yit_contact_form_removed_item');
|
496 |
-
}
|
497 |
-
|
498 |
-
return false;
|
499 |
-
});
|
500 |
-
|
501 |
-
//sortable
|
502 |
-
$('.contactform_items').sortable({
|
503 |
-
items:'.contactform_item',
|
504 |
-
cursor:'move',
|
505 |
-
axis:'y',
|
506 |
-
handle: 'h3',
|
507 |
-
scrollSensitivity:60,
|
508 |
-
forcePlaceholderSize: true,
|
509 |
-
helper: 'clone',
|
510 |
-
opacity: 0.65,
|
511 |
-
placeholder: 'metabox-sortable-placeholder',
|
512 |
-
start:function(event,ui){
|
513 |
-
ui.item.css('background-color','#f6f6f6');
|
514 |
-
},
|
515 |
-
stop:function(event,ui){
|
516 |
-
ui.item.removeAttr('style');
|
517 |
-
|
518 |
-
|
519 |
-
variation_row_indexes();
|
520 |
-
}
|
521 |
-
});
|
522 |
-
|
523 |
-
|
524 |
-
function variation_row_indexes() {
|
525 |
-
$('.contactform_items .contactform_item').each(function(index){
|
526 |
-
index++;
|
527 |
-
$(this).find("input,select").each(function(){
|
528 |
-
var str = $(this).attr('name').match( /(.*)\[(.*)\](.*)\[(.*)\]/ );
|
529 |
-
var nam = $(this).attr('name').replace("[" +parseInt(str[2])+ "]", "[" +index+ "]");
|
530 |
-
$(this).attr('name', nam);
|
531 |
-
});
|
532 |
-
});
|
533 |
-
}
|
534 |
-
|
535 |
-
//
|
536 |
-
var field_type_handler = function(){
|
537 |
-
var this_item = $(this);
|
538 |
-
$(this_item).on('change', '.text-field-type select', function(){
|
539 |
-
var val = $(this).val();
|
540 |
-
$('.deps', this_item).hide().filter(function(i){ return $(this).hasClass( 'deps_' + val ); }).show();
|
541 |
-
});
|
542 |
-
$('.text-field-type select').change();
|
543 |
-
};
|
544 |
-
$('.contactform_item').each(field_type_handler);
|
545 |
-
|
546 |
-
|
547 |
-
//
|
548 |
-
$(document).on('click', '.del-field-option', function(){
|
549 |
-
if( $('.option').length > 1 ) {
|
550 |
-
$(this).parents('.option').remove();
|
551 |
-
}
|
552 |
-
|
553 |
-
return false;
|
554 |
-
});
|
555 |
-
|
556 |
-
});
|
557 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/customtabs.php
DELETED
@@ -1,152 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract($args);
|
16 |
-
|
17 |
-
$args['labels'] = array(
|
18 |
-
'plural_name' => 'Tabs',
|
19 |
-
'singular_name' => 'Tab',
|
20 |
-
'item_name_sing' => 'Tab',
|
21 |
-
'item_name_plur' => 'Tabs',
|
22 |
-
);
|
23 |
-
|
24 |
-
?>
|
25 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
26 |
-
<div id="yit_custom_tabs" class="panel wc-metaboxes-wrapper" style="display: block;">
|
27 |
-
<p class="toolbar">
|
28 |
-
<a href="#" class="close_all"><?php _e('Close all', 'yith-plugin-fw') ?></a><a href="#" class="expand_all"><?php _e('Expand all', 'yith-plugin-fw') ?></a>
|
29 |
-
</p>
|
30 |
-
|
31 |
-
<div class="yit_custom_tabs wc-metaboxes ui-sortable" style="">
|
32 |
-
|
33 |
-
<?php if( !empty($value) ): ?>
|
34 |
-
<?php foreach( $value as $i=>$tab ): ?>
|
35 |
-
<div class="yit_custom_tab wc-metabox closed" rel="0">
|
36 |
-
<h3>
|
37 |
-
<button type="button" class="remove_row button"><?php _e('Remove', 'yith-plugin-fw') ?></button>
|
38 |
-
<div class="handlediv" title="Click to toggle"></div>
|
39 |
-
<strong class="attribute_name"><?php echo $tab['name'] ?></strong>
|
40 |
-
</h3>
|
41 |
-
|
42 |
-
<table cellpadding="0" cellspacing="0" class="woocommerce_attribute_data wc-metabox-content" style="display: table;">
|
43 |
-
<tbody>
|
44 |
-
<tr>
|
45 |
-
<td class="attribute_name">
|
46 |
-
<label><?php _e('Name', 'yith-plugin-fw') ?>:</label>
|
47 |
-
<input type="text" class="attribute_name" name="<?php echo $name ?>[<?php echo $i ?>][name]" value="<?php echo esc_attr( $tab['name'] ) ?>">
|
48 |
-
<input type="hidden" name="<?php echo $name ?>[<?php echo $i ?>][position]" class="attribute_position" value="<?php echo $i ?>">
|
49 |
-
</td>
|
50 |
-
|
51 |
-
<td rowspan="3">
|
52 |
-
<label><?php _e('Value', 'yith-plugin-fw') ?>:</label>
|
53 |
-
<textarea name="<?php echo $name ?>[<?php echo $i ?>][value]" cols="5" rows="5" placeholder="<?php _e('Content of the tab. (HTML is supported)','yith-plugin-fw') ?>"><?php echo $tab['value'] ?></textarea>
|
54 |
-
</td>
|
55 |
-
</tr>
|
56 |
-
</tbody>
|
57 |
-
</table>
|
58 |
-
|
59 |
-
</div>
|
60 |
-
<?php endforeach ?>
|
61 |
-
<?php endif ?>
|
62 |
-
</div>
|
63 |
-
|
64 |
-
<p class="toolbar">
|
65 |
-
<button type="button" class="button button-primary add_custom_tab"><?php _e( 'Add custom product tab', 'yith-plugin-fw' ) ?></button>
|
66 |
-
</p>
|
67 |
-
|
68 |
-
<div class="clear"></div>
|
69 |
-
</div>
|
70 |
-
</div>
|
71 |
-
|
72 |
-
<script>
|
73 |
-
jQuery(document).ready(function($){
|
74 |
-
// Add rows
|
75 |
-
$('button.add_custom_tab').on('click', function(){
|
76 |
-
|
77 |
-
var size = $('.yit_custom_tabs .yit_custom_tab').size() + 1;
|
78 |
-
|
79 |
-
// Add custom attribute row
|
80 |
-
$('.yit_custom_tabs').append('<div class="yit_custom_tab wc-metabox">\
|
81 |
-
<h3>\
|
82 |
-
<button type="button" class="remove_row button"><?php _e('Remove', 'yith-plugin-fw') ?></button>\
|
83 |
-
<div class="handlediv" title="Click to toggle"></div>\
|
84 |
-
<strong class="attribute_name"></strong>\
|
85 |
-
</h3>\
|
86 |
-
<table cellpadding="0" cellspacing="0" class="woocommerce_attribute_data">\
|
87 |
-
<tbody>\
|
88 |
-
<tr>\
|
89 |
-
<td class="attribute_name">\
|
90 |
-
<label><?php _e('Name', 'yith-plugin-fw') ?>:</label>\
|
91 |
-
<input type="text" class="attribute_name" name="<?php echo $name ?>[' + size + '][name]" />\
|
92 |
-
<input type="hidden" name="<?php echo $name ?>[' + size + '][position]" class="attribute_position" value="' + size + '" />\
|
93 |
-
</td>\
|
94 |
-
<td rowspan="3">\
|
95 |
-
<label><?php _e('Value', 'yith-plugin-fw') ?>:</label>\
|
96 |
-
<textarea name="<?php echo $name ?>[' + size + '][value]" cols="5" rows="5" placeholder="<?php echo addslashes( __('Content of the tab. (HTML is supported)','yith-plugin-fw') ) ?>"></textarea>\
|
97 |
-
</td>\
|
98 |
-
</tr>\
|
99 |
-
</tbody>\
|
100 |
-
</table>\
|
101 |
-
</div>');
|
102 |
-
|
103 |
-
});
|
104 |
-
|
105 |
-
|
106 |
-
$('.yit_custom_tabs').on('click', 'button.remove_row', function() {
|
107 |
-
var answer = confirm("<?php _e('Do you want to remove the custom tab?', 'yith-plugin-fw') ?>");
|
108 |
-
if (answer){
|
109 |
-
var $parent = $(this).parent().parent();
|
110 |
-
|
111 |
-
$parent.remove();
|
112 |
-
attribute_row_indexes();
|
113 |
-
}
|
114 |
-
return false;
|
115 |
-
});
|
116 |
-
|
117 |
-
// Attribute ordering
|
118 |
-
$('.yit_custom_tabs').sortable({
|
119 |
-
items:'.yit_custom_tab',
|
120 |
-
cursor:'move',
|
121 |
-
axis:'y',
|
122 |
-
handle: 'h3',
|
123 |
-
scrollSensitivity:40,
|
124 |
-
forcePlaceholderSize: true,
|
125 |
-
helper: 'clone',
|
126 |
-
opacity: 0.65,
|
127 |
-
placeholder: 'wc-metabox-sortable-placeholder',
|
128 |
-
start:function(event,ui){
|
129 |
-
ui.item.css('background-color','#f6f6f6');
|
130 |
-
},
|
131 |
-
stop:function(event,ui){
|
132 |
-
ui.item.removeAttr('style');
|
133 |
-
attribute_row_indexes();
|
134 |
-
}
|
135 |
-
});
|
136 |
-
|
137 |
-
function attribute_row_indexes() {
|
138 |
-
$('.yit_custom_tabs .yit_custom_tab').each(function(index, el){
|
139 |
-
var newVal = '[' + $(el).index('.yit_custom_tabs .yit_custom_tab') + ']';
|
140 |
-
var oldVal = '[' + $('.attribute_position', el).val() + ']';
|
141 |
-
|
142 |
-
$(':input:not(button)', el).each(function(){
|
143 |
-
var name = $(this).attr('name');
|
144 |
-
$(this).attr('name', name.replace(oldVal, newVal));
|
145 |
-
});
|
146 |
-
|
147 |
-
$('.attribute_position', el).val( $(el).index('.yit_custom_tabs .yit_custom_tab') );
|
148 |
-
});
|
149 |
-
};
|
150 |
-
|
151 |
-
});
|
152 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/datepicker.php
DELETED
@@ -1,21 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
19 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $value ) ?>" class="panel-datepicker"/>
|
20 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
21 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/hidden.php
DELETED
@@ -1,18 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
extract( $args );
|
17 |
-
?>
|
18 |
-
<input type="hidden" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $val ) ?>" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> />
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/image-gallery.php
DELETED
@@ -1,48 +0,0 @@
|
|
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 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
$array_id = array();
|
17 |
-
if ( !empty( $value ) ) {
|
18 |
-
$array_id = array_filter( explode( ',', $value ) );
|
19 |
-
}
|
20 |
-
|
21 |
-
?>
|
22 |
-
<div id="<?php echo $id ?>-container" class="image-gallery" <?php if (isset( $deps )): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
23 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
24 |
-
|
25 |
-
<p>
|
26 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
27 |
-
<ul id="<?php echo $id ?>-extra-images" class="slides-wrapper extra-images ui-sortable clearfix">
|
28 |
-
<?php if ( !empty( $array_id ) ) : ?>
|
29 |
-
<?php foreach ( $array_id as $image_id ) : ?>
|
30 |
-
<li class="image" data-attachment_id = <?php echo esc_attr($image_id) ?>>
|
31 |
-
<a href="#">
|
32 |
-
<?php
|
33 |
-
if( function_exists( 'yit_image' ) ) :
|
34 |
-
yit_image( "id=$image_id&size=admin-post-type-thumbnails" );
|
35 |
-
else:
|
36 |
-
echo wp_get_attachment_image( $image_id, array( 80, 80 ) );
|
37 |
-
endif; ?>
|
38 |
-
</a>
|
39 |
-
<ul class="actions">
|
40 |
-
<li><a href="#" class="delete" title="<?php _e( 'Delete image', 'yith-plugin-fw' ); ?>">x</a></li>
|
41 |
-
</ul>
|
42 |
-
</li>
|
43 |
-
<?php endforeach; endif; ?>
|
44 |
-
</ul>
|
45 |
-
<input type="button" data-choose="<?php _e( 'Add Images to Gallery', 'yith-plugin-fw' ); ?>" data-update="<?php _e( 'Add to gallery', 'yith-plugin-fw' ); ?>" value="<?php _e( 'Add images', 'yith-plugin-fw' ) ?>" data-delete="<?php _e( 'Delete image', 'yith-plugin-fw' ); ?>" data-text="<?php _e( 'Delete', 'yith-plugin-fw' ); ?>" id="<?php echo $id ?>-button" class="image-gallery-button button" />
|
46 |
-
<input type="hidden" class="image_gallery_ids" id="image_gallery_ids" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ); ?>" />
|
47 |
-
</p>
|
48 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/images.php
DELETED
@@ -1,90 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
global $post;
|
15 |
-
|
16 |
-
extract( $args );
|
17 |
-
|
18 |
-
if ( empty( $value ) || ! is_array( $value ) )
|
19 |
-
$value = array();
|
20 |
-
|
21 |
-
//$categories = yit_get_model('cpt_unlimited')->get_setting( 'categories', $post->ID );
|
22 |
-
?>
|
23 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
24 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
25 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
26 |
-
<ul id="<?php echo $id ?>-extra-images" class="slides-wrapper extra-images ui-sortable clearfix" style="">
|
27 |
-
<?php if ( ! empty( $value ) ) : foreach ( $value as $image_id ) : ?>
|
28 |
-
<li>
|
29 |
-
<a href="#">
|
30 |
-
<?php
|
31 |
-
if( function_exists( 'yit_image' ) ) :
|
32 |
-
yit_image( "id=$image_id&size=admin-post-type-thumbnails" );
|
33 |
-
else:
|
34 |
-
echo wp_get_attachment_image( $image_id, array( 80, 80 ) );
|
35 |
-
endif; ?>
|
36 |
-
<input type="hidden" name="<?php echo $name ?>[]" value="<?php echo esc_attr( $image_id ) ?>" />
|
37 |
-
</a>
|
38 |
-
<a href="#" title="<?php _e( 'Delete image', 'yith-plugin-fw' ) ?>" class="delete">X</a>
|
39 |
-
</li>
|
40 |
-
<?php endforeach; endif; ?>
|
41 |
-
</ul>
|
42 |
-
<a href="#" class="button-secondary upload-extra-images" id="<?php echo $id ?>-upload-extra-images"><?php _e( 'Upload new images', 'yith-plugin-fw' ) ?></a>
|
43 |
-
</div>
|
44 |
-
<script type="text/javascript">
|
45 |
-
jQuery(document).ready(function($){
|
46 |
-
$('#<?php echo $id ?>-upload-extra-images').on( 'click', function(){
|
47 |
-
tb_show('', 'media-upload.php?post_id=0&TB_iframe=1&width=700');
|
48 |
-
|
49 |
-
window.send_to_editor = function(html) {
|
50 |
-
|
51 |
-
var imgurl = $('a', '<div>' + html + '</div>').attr('href');
|
52 |
-
var image_id = $('img', html).attr('class').replace(/(.*?)wp-image-/, '');
|
53 |
-
|
54 |
-
var data = {
|
55 |
-
action: 'generate_preview_image_post_type',
|
56 |
-
item_id: image_id
|
57 |
-
};
|
58 |
-
|
59 |
-
$.post(ajaxurl, data, function(response) {
|
60 |
-
var thumburl = imgurl.split('.').reverse();
|
61 |
-
var baseurl = imgurl.replace( '.' + thumburl[0], '' );
|
62 |
-
thumburl = baseurl + '-140x100.' + thumburl[0];
|
63 |
-
|
64 |
-
$('#<?php echo $id ?>-extra-images.slides-wrapper').append('<li><a href="#"><img src="'+thumburl+'" width="140" height="100" /> <input type="hidden" name="<?php echo $name ?>[]" value="'+image_id+'" /></a><a href="#" title="<?php echo addslashes( __( 'Delete image', 'yith-plugin-fw' ) ) ?>" class="delete">X</a></li>');
|
65 |
-
});
|
66 |
-
|
67 |
-
tb_remove();
|
68 |
-
|
69 |
-
}
|
70 |
-
|
71 |
-
return false;
|
72 |
-
});
|
73 |
-
|
74 |
-
$('#<?php echo $id ?>-extra-images a.delete').on( 'click', function(){
|
75 |
-
if ( confirm( "<?php _e( 'Are you sure you want to remove this image?', 'yith-plugin-fw' ) ?>" ) ) {
|
76 |
-
$(this).parent().remove();
|
77 |
-
}
|
78 |
-
|
79 |
-
return false;
|
80 |
-
});
|
81 |
-
|
82 |
-
// SORTABLE
|
83 |
-
$('#<?php echo $id ?>-extra-images').sortable({
|
84 |
-
axis: 'x',
|
85 |
-
stop: function(e, ui) {}
|
86 |
-
});
|
87 |
-
|
88 |
-
$('.extra-images a:not(.delete)').click(function(){ return false; });
|
89 |
-
});
|
90 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/number.php
DELETED
@@ -1,50 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
$min_max_attr = $step_attr = '';
|
18 |
-
|
19 |
-
if( isset( $min ) ){
|
20 |
-
$min_max_attr .= " min='{$min}'";
|
21 |
-
}
|
22 |
-
|
23 |
-
if( isset( $max ) ){
|
24 |
-
$min_max_attr .= " max='{$max}'";
|
25 |
-
}
|
26 |
-
|
27 |
-
if( isset( $step ) ){
|
28 |
-
$step_attr .= "step='{$step}'";
|
29 |
-
}
|
30 |
-
?>
|
31 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
32 |
-
<div class="rm_number">
|
33 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
34 |
-
<span class="field">
|
35 |
-
<input class="number" type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" <?php echo $step_attr ?> <?php echo $min_max_attr ?> value="<?php echo esc_attr( $value ) ?>" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>" />
|
36 |
-
<?php yit_string( '<span class="description">', $desc, '</span>' ); ?>
|
37 |
-
</span>
|
38 |
-
</div>
|
39 |
-
</div>
|
40 |
-
<script type="text/javascript" charset="utf-8">
|
41 |
-
jQuery(document).ready( function( $ ) {
|
42 |
-
$('#<?php echo $id ?>').spinner({
|
43 |
-
<?php if( isset( $min )): ?>min: <?php echo $min ?>, <?php endif ?>
|
44 |
-
<?php if( isset( $max )): ?>max: <?php echo $max ?>, <?php endif ?>
|
45 |
-
showOn: 'always',
|
46 |
-
upIconClass: "ui-icon-plus",
|
47 |
-
downIconClass: "ui-icon-minus"
|
48 |
-
});
|
49 |
-
});
|
50 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/onoff.php
DELETED
@@ -1,30 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
if ( !isset( $desc ) ) {
|
18 |
-
$desc='';
|
19 |
-
}
|
20 |
-
?>
|
21 |
-
|
22 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?> class="rm_onoff onoff_container">
|
23 |
-
|
24 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
25 |
-
<p>
|
26 |
-
<input type="checkbox" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php checked( $value, 'yes' ) ?> class="on_off" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> />
|
27 |
-
<span class="onoff"> </span>
|
28 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
29 |
-
</p>
|
30 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/preview.php
DELETED
@@ -1,19 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
extract( $args );
|
15 |
-
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?> data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<img src="<?php echo $value ?>" class="yit-preview">
|
19 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/responsivesliders.php
DELETED
@@ -1,31 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
extract( $args );
|
15 |
-
|
16 |
-
$options = yit_get_responsive_sliders();
|
17 |
-
?>
|
18 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
19 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
20 |
-
|
21 |
-
<div class="select_wrapper">
|
22 |
-
<select id="<?php echo $id ?>" name="<?php echo $name ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>>
|
23 |
-
<option></option>
|
24 |
-
<option value="none"><?php _e( 'None', 'yith-plugin-fw' ) ?></option>
|
25 |
-
<?php foreach ( $options as $key => $item ) : ?>
|
26 |
-
<option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $value ) ?>><?php echo $item ?></option>
|
27 |
-
<?php endforeach; ?>
|
28 |
-
</select>
|
29 |
-
</div>
|
30 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
31 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/select-icon.php
DELETED
@@ -1,72 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
|
3 |
-
|
4 |
-
extract( $args );
|
5 |
-
|
6 |
-
$current_options = wp_parse_args( $args['value'], $args['std'] );
|
7 |
-
|
8 |
-
?>
|
9 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?> class="select_icon">
|
10 |
-
|
11 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
12 |
-
|
13 |
-
<div class="option">
|
14 |
-
|
15 |
-
<div class="select_wrapper icon_type">
|
16 |
-
<select id="<?php echo $id ?>[select]" name="<?php echo $name ?>[select]" <?php if ( isset( $std['select'] ) ) : ?>data-std="<?php echo $std['select']; ?>"<?php endif; ?>>
|
17 |
-
<?php foreach ( $options['select'] as $val => $option ) : ?>
|
18 |
-
<option value="<?php echo $val ?>" <?php selected( $current_options['select'], $val ); ?> ><?php echo $option ?></option>
|
19 |
-
<?php endforeach; ?>
|
20 |
-
</select>
|
21 |
-
</div>
|
22 |
-
|
23 |
-
<div class="select_wrapper awesome_icon" style="font-family: 'FontAwesome'">
|
24 |
-
<select style="font-family: 'FontAwesome'" id="<?php echo $id ?>[icon]" name="<?php echo $name ?>[icon]">
|
25 |
-
<?php foreach ( $options['icon'] as $val => $option ) : $esc_icon = ! empty( $val ) ? '&#x' . $val . '; ' : ''; ?>
|
26 |
-
<option value="<?php echo $option ?>" <?php selected( $current_options['icon'], $option ); ?> ><?php echo $esc_icon . $option; ?></option>
|
27 |
-
<?php endforeach; ?>
|
28 |
-
</select>
|
29 |
-
</div>
|
30 |
-
|
31 |
-
<div class="input_wrapper custom_icon">
|
32 |
-
<input type="text" name="<?php echo $name ?>[custom]" id="<?php echo $id ?>[custom]" value="<?php echo $current_options['custom'] ?>" class="upload_img_url upload_custom_icon" />
|
33 |
-
<input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id; ?>-custom-button" class="upload_button button" />
|
34 |
-
|
35 |
-
<div class="upload_img_preview" style="margin-top:10px;">
|
36 |
-
<?php
|
37 |
-
$file = $current_options['custom'];
|
38 |
-
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
39 |
-
echo __( 'Image preview', 'yith-plugin-fw' ) . ': ' . "<img src=\"" . YIT_CORE_ASSETS_URL . "/images/sleep.png\" data-src=\"$file\" />";
|
40 |
-
}
|
41 |
-
?>
|
42 |
-
</div>
|
43 |
-
|
44 |
-
</div>
|
45 |
-
</div>
|
46 |
-
|
47 |
-
<div class="clear"></div>
|
48 |
-
|
49 |
-
<div class="description">
|
50 |
-
<?php echo $desc ?>
|
51 |
-
</div>
|
52 |
-
|
53 |
-
</div>
|
54 |
-
|
55 |
-
<script>
|
56 |
-
|
57 |
-
jQuery(document).ready( function($){
|
58 |
-
|
59 |
-
$('.select_wrapper.icon_type').on('change', function(){
|
60 |
-
var t = $(this);
|
61 |
-
var parents = $('#' + t.parents('div.select_icon').attr('id'));
|
62 |
-
var option = $('option:selected', this).val();
|
63 |
-
var to_show = option == 'none' ? '' : option == 'icon' ? '.awesome_icon' : '.custom_icon';
|
64 |
-
|
65 |
-
parents.find('.option > div:not(.icon_type)').addClass('hidden').removeClass( 'show' );
|
66 |
-
parents.find( to_show ).removeClass( 'hidden' ).addClass( 'show' );
|
67 |
-
});
|
68 |
-
|
69 |
-
$('.select_wrapper.icon_type').trigger('change');
|
70 |
-
});
|
71 |
-
|
72 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/select-mailchimp.php
DELETED
@@ -1,32 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
$multiple = ( isset( $multiple ) && $multiple ) ? ' multiple' : '';
|
17 |
-
?>
|
18 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
19 |
-
|
20 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
21 |
-
|
22 |
-
<div class="select_wrapper">
|
23 |
-
<select<?php echo $multiple ?> id="<?php echo $id ?>" name="<?php echo $name ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>>
|
24 |
-
<?php foreach ( $options as $key => $item ) : ?>
|
25 |
-
<option value="<?php echo $key ?>"<?php selected( $key, $value ) ?>><?php echo $item ?></option>
|
26 |
-
<?php endforeach; ?>
|
27 |
-
</select>
|
28 |
-
</div>
|
29 |
-
<input type="button" class="button-secondary <?php echo $class?>" value="<?php echo $button_name?>"/>
|
30 |
-
<span class="spinner"></span>
|
31 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
32 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/select.php
DELETED
@@ -1,32 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
$is_multiple = isset( $multiple ) && $multiple;
|
17 |
-
$multiple = ( $is_multiple ) ? ' multiple' : '';
|
18 |
-
?>
|
19 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
20 |
-
|
21 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
22 |
-
|
23 |
-
<div class="select_wrapper">
|
24 |
-
<select<?php echo $multiple ?> id="<?php echo $id ?>" name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo ( $is_multiple )? implode(' ,', $std) : $std ?>"<?php endif ?>>
|
25 |
-
<?php foreach ( $options as $key => $item ) : ?>
|
26 |
-
<option value="<?php echo esc_attr( $key ) ?>" <?php if( $is_multiple ): selected( true, in_array( $key, $value ) ); else: selected( $key, $value ); endif; ?> ><?php echo $item ?></option>
|
27 |
-
<?php endforeach; ?>
|
28 |
-
</select>
|
29 |
-
</div>
|
30 |
-
|
31 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
32 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/sep.php
DELETED
@@ -1,18 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
// doesn't do nothing, allow to stamp the container of this option with sep class:
|
17 |
-
// <div class="the-metabox sep"></div>
|
18 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/sidebar-layout.php
DELETED
@@ -1,61 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
$layout = ! isset( $value['layout'] ) ? 'sidebar-right' : $value['layout'];
|
18 |
-
$sidebar = ! isset( $value['sidebar'] ) ? '' : $value['sidebar'];
|
19 |
-
?>
|
20 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
21 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
22 |
-
|
23 |
-
<p class="yit-sidebar-layout">
|
24 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
|
25 |
-
<img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideleft.png" title="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" />
|
26 |
-
|
27 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
|
28 |
-
<img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/noside.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" />
|
29 |
-
|
30 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
|
31 |
-
<img src="<?php echo YIT_CORE_ASSETS_URL ?>/images/sideright.png" title="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" />
|
32 |
-
|
33 |
-
<select name="<?php echo $name ?>[sidebar]" id="<?php echo $id ?>-sidebar">
|
34 |
-
<option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
|
35 |
-
<?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
|
36 |
-
<option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar, $val ) ?>><?php echo $option; ?></option>
|
37 |
-
<?php } ?>
|
38 |
-
</select>
|
39 |
-
<script type="text/javascript">
|
40 |
-
jQuery(document).ready(function ($) {
|
41 |
-
$('.yit-sidebar-layout img').click(function () {
|
42 |
-
$(this).parent().children(':radio').attr('checked', false);
|
43 |
-
$(this).prev(':radio').attr('checked', true);
|
44 |
-
});
|
45 |
-
|
46 |
-
if ($('#<?php echo $id . '-no' ?>').attr('checked')) {
|
47 |
-
$('#<?php echo $id ?>-sidebar').hide();
|
48 |
-
}
|
49 |
-
|
50 |
-
$('.yit-sidebar-layout :radio').next('img').click(function () {
|
51 |
-
|
52 |
-
if ($(this).prev(':radio').val() == 'sidebar-no') {
|
53 |
-
$('#<?php echo $id ?>-sidebar').fadeOut();
|
54 |
-
} else {
|
55 |
-
$('#<?php echo $id ?>-sidebar').fadeIn();
|
56 |
-
}
|
57 |
-
});
|
58 |
-
});
|
59 |
-
</script>
|
60 |
-
</p>
|
61 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/sidebarlist.php
DELETED
@@ -1,29 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
$options = yit_registered_sidebars();
|
18 |
-
?>
|
19 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
20 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
21 |
-
<div class="select_wrapper">
|
22 |
-
<select id="<?php echo $id ?>" name="<?php echo $name ?>">
|
23 |
-
<?php foreach ( $options as $key => $item ) : ?>
|
24 |
-
<option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $value ) ?>><?php echo $item ?></option>
|
25 |
-
<?php endforeach; ?>
|
26 |
-
</select>
|
27 |
-
</div>
|
28 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
29 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/sidebars.php
DELETED
@@ -1,124 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Select Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
extract( $args );
|
20 |
-
//
|
21 |
-
//$layout = ! isset( $value['layout'] ) ? 'sidebar-right' : $value['layout'];
|
22 |
-
//$sidebar1 = ! isset( $value['sidebar1'] ) ? '-1' : $value['sidebar1'];
|
23 |
-
//$sidebar2 = ! isset( $value['sidebar2'] ) ? '-1' : $value['sidebar2'];
|
24 |
-
|
25 |
-
|
26 |
-
$layout = ! isset( $value['layout'] ) ? 'sidebar-no' : $value['layout'];
|
27 |
-
$sidebar_left = ! isset( $value['sidebar-left'] ) ? '-1' : $value['sidebar-left'];
|
28 |
-
$sidebar_right = ! isset( $value['sidebar-right'] ) ? '-1' : $value['sidebar-right'];
|
29 |
-
|
30 |
-
?>
|
31 |
-
<div class="yit-sidebar-layout">
|
32 |
-
<div class="option">
|
33 |
-
<label for="_slider_name"><?php echo $label ?></label>
|
34 |
-
|
35 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-left' ?>" value="sidebar-left" <?php checked( $layout, 'sidebar-left' ) ?> />
|
36 |
-
<img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-left.png" title="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Left sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-left' ?>" />
|
37 |
-
|
38 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-right' ?>" value="sidebar-right" <?php checked( $layout, 'sidebar-right' ) ?> />
|
39 |
-
<img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/sidebar-right.png" title="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'Right sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-right' ?>" />
|
40 |
-
|
41 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-double' ?>" value="sidebar-double" <?php checked( $layout, 'sidebar-double' ) ?> />
|
42 |
-
<img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/double-sidebar.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-double' ?>" />
|
43 |
-
|
44 |
-
<input type="radio" name="<?php echo $name ?>[layout]" id="<?php echo $id . '-no' ?>" value="sidebar-no" <?php checked( $layout, 'sidebar-no' ) ?> />
|
45 |
-
<img src="<?php echo YIT_CORE_PLUGIN_URL ?>/assets/images/no-sidebar.png" title="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" alt="<?php _e( 'No sidebar', 'yith-plugin-fw' ) ?>" class="<?php echo $id . '-no' ?>" />
|
46 |
-
</div>
|
47 |
-
<div class="clearfix"></div>
|
48 |
-
<div class="option" id="choose-sidebars">
|
49 |
-
<div class="side">
|
50 |
-
<div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-left' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-left-container">
|
51 |
-
<label for ="<?php echo $id ?>-sidebar-left"><?php _e('Left Sidebar','yith-plugin-fw') ?></label>
|
52 |
-
<select name="<?php echo $name ?>[sidebar-left]" id="<?php echo $id ?>-sidebar-left">
|
53 |
-
<option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
|
54 |
-
<?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
|
55 |
-
<option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_left, $val ) ?>><?php echo $option; ?></option>
|
56 |
-
<?php } ?>
|
57 |
-
</select>
|
58 |
-
</div>
|
59 |
-
</div>
|
60 |
-
<div class="side" style="clear: both">
|
61 |
-
<div class="select-mask" <?php if ( $layout != 'sidebar-double' && $layout != 'sidebar-right' ) { echo 'style="display:none"'; } ?> id="<?php echo $id ?>-sidebar-right-container">
|
62 |
-
<label for ="<?php echo $id ?>-sidebar-right"><?php _e('Right Sidebar','yith-plugin-fw') ?></label>
|
63 |
-
<select name="<?php echo $name ?>[sidebar-right]" id="<?php echo $id ?>-sidebar-right">
|
64 |
-
<option value="-1"><?php _e( 'Choose a sidebar', 'yith-plugin-fw' ) ?></option>
|
65 |
-
<?php foreach ( yit_registered_sidebars() as $val => $option ) { ?>
|
66 |
-
<option value="<?php echo esc_attr( $val ) ?>" <?php selected( $sidebar_right, $val ) ?>><?php echo $option; ?></option>
|
67 |
-
<?php } ?>
|
68 |
-
</select>
|
69 |
-
</div>
|
70 |
-
</div>
|
71 |
-
</div>
|
72 |
-
|
73 |
-
</div>
|
74 |
-
|
75 |
-
<script type="text/javascript">
|
76 |
-
(function ($){
|
77 |
-
|
78 |
-
$(document).on('click', '.yit-sidebar-layout img' , function(e) {
|
79 |
-
|
80 |
-
$( this ).parent().children( ':radio' ).attr( 'checked', false );
|
81 |
-
$( this ).prev( ':radio' ).attr( 'checked', true );
|
82 |
-
});
|
83 |
-
|
84 |
-
$(document).on('click', 'img._sidebars-no' , function(e) {
|
85 |
-
$( '#_sidebars-sidebar-left-container, #_sidebars-sidebar-right-container' ).hide();
|
86 |
-
});
|
87 |
-
|
88 |
-
$(document).on('click', 'img._sidebars-left' , function(e) {
|
89 |
-
$('#_sidebars-sidebar-right-container' ).hide();
|
90 |
-
$('#_sidebars-sidebar-left-container' ).show();
|
91 |
-
});
|
92 |
-
|
93 |
-
$(document).on('click', 'img._sidebars-right' , function(e) {
|
94 |
-
$('#_sidebars-sidebar-right-container' ).show();
|
95 |
-
$('#_sidebars-sidebar-left-container' ).hide();
|
96 |
-
});
|
97 |
-
|
98 |
-
$(document).on('click', 'img._sidebars-double' , function(e) {
|
99 |
-
$( '#_sidebars-sidebar-right-container, #_sidebars-sidebar-left-container' ).show();
|
100 |
-
});
|
101 |
-
|
102 |
-
//
|
103 |
-
// $(document).on('click', '.yit-sidebar-layout img' , function() {
|
104 |
-
//
|
105 |
-
// $( this ).parent().children( ':radio' ).attr( 'checked', false );
|
106 |
-
// $( this ).prev( ':radio' ).attr( 'checked', true );
|
107 |
-
// });
|
108 |
-
//
|
109 |
-
// $('img._sidebar-no').click( function() {
|
110 |
-
// $( '#_sidebar-sidebar1-container, #_sidebar-sidebar2-container' ).hide();
|
111 |
-
// });
|
112 |
-
//
|
113 |
-
// $( 'img._sidebar-left, img._sidebar-right').click( function() {
|
114 |
-
// $('#_sidebar-sidebar2-container' ).hide();
|
115 |
-
// $('#_sidebar-sidebar1-container' ).show();
|
116 |
-
// });
|
117 |
-
//
|
118 |
-
// $('img._sidebar-double').click( function() {
|
119 |
-
// $( '#_sidebar-sidebar1-container, #_sidebar-sidebar2-container' ).show();
|
120 |
-
// });
|
121 |
-
|
122 |
-
|
123 |
-
})(jQuery);
|
124 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/simple-text.php
DELETED
@@ -1,20 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
extract( $args );
|
17 |
-
|
18 |
-
$id = empty( $id ) ? '' : " id=\"$id\"";
|
19 |
-
?>
|
20 |
-
<p<?php echo $id ?>><?php echo $desc ?></p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/slider.php
DELETED
@@ -1,35 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
extract( $args );
|
17 |
-
|
18 |
-
if ( ! isset( $labels ) ) {
|
19 |
-
$labels = '';
|
20 |
-
}
|
21 |
-
|
22 |
-
?>
|
23 |
-
<div id="<?php echo $id ?>-container" class="slider_container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
24 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
25 |
-
<div class="ui-slider">
|
26 |
-
<span class="minCaption"><?php echo $min ?></span>
|
27 |
-
<span class="maxCaption"><?php echo $max ?></span>
|
28 |
-
<span id="<?php echo $id ?>-feedback" class="feedback"><strong><?php echo $value ?></strong></span>
|
29 |
-
|
30 |
-
<div id="<?php echo $id ?>-div" data-step="<?php echo isset( $step ) ? $step : 1 ?>" data-labels="<?php echo '' ?>" data-min="<?php echo $min ?>" data-max="<?php echo $max ?>" data-val="<?php echo $value; ?>" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
|
31 |
-
<input id="<?php echo $id ?>" type="hidden" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ); ?>" />
|
32 |
-
</div>
|
33 |
-
</div>
|
34 |
-
<span class="description"><?php echo $desc ?></span>
|
35 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/text-array.php
DELETED
@@ -1,30 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
$size = isset( $size ) ? " style=\"width:{$size}px;\"" : '';
|
18 |
-
?>
|
19 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
20 |
-
<label for="<?php echo $id ?>"><?php echo $label ?>
|
21 |
-
<small><?php echo $desc ?></small>
|
22 |
-
</label>
|
23 |
-
|
24 |
-
<p>
|
25 |
-
<?php foreach ( $fields as $field_name => $field_label ) : ?>
|
26 |
-
<?php echo $field_label ?>:
|
27 |
-
<input type="text" name="<?php echo $name ?>[<?php echo $field_name ?>]" id="<?php echo $id ?>_<?php echo $field_name ?>" value="<?php echo isset( $value[$field_name] ) ? esc_attr( $value[$field_name] ) : '' ?>"<?php echo $size ?> />
|
28 |
-
<?php endforeach ?>
|
29 |
-
</p>
|
30 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/text.php
DELETED
@@ -1,24 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
extract( $args );
|
15 |
-
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?> data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
19 |
-
|
20 |
-
<p>
|
21 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $value ) ?>" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> />
|
22 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
23 |
-
</p>
|
24 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/textarea-editor.php
DELETED
@@ -1,42 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
// wp_editor is includes since 3.3 of wordpress
|
17 |
-
if ( ! function_exists( 'wp_editor' ) ) {
|
18 |
-
include 'textarea.php';
|
19 |
-
return;
|
20 |
-
}
|
21 |
-
|
22 |
-
extract( $args );
|
23 |
-
|
24 |
-
$editor_args = array(
|
25 |
-
'wpautop' => true, // use wpautop?
|
26 |
-
'media_buttons' => true, // show insert/upload button(s)
|
27 |
-
'textarea_name' => $name, // set the textarea name to something different, square brackets [] can be used here
|
28 |
-
'textarea_rows' => 20, // rows="..."
|
29 |
-
'tabindex' => '',
|
30 |
-
'editor_css' => '', // intended for extra styles for both visual and HTML editors buttons, needs to include the <style> tags, can use "scoped".
|
31 |
-
'editor_class' => '', // add extra class(es) to the editor textarea
|
32 |
-
'teeny' => false, // output the minimal editor config used in Press This
|
33 |
-
'dfw' => false, // replace the default fullscreen with DFW (needs specific DOM elements and css)
|
34 |
-
'tinymce' => true, // load TinyMCE, can be used to pass settings directly to TinyMCE using an array()
|
35 |
-
'quicktags' => true // load Quicktags, can be used to pass settings directly to Quicktags using an array()
|
36 |
-
);
|
37 |
-
?>
|
38 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?> >
|
39 |
-
<?php if ( ! empty( $title ) ) : ?><label for="<?php echo $id ?>"><?php echo $title ?></label><?php endif; ?>
|
40 |
-
<div class="editor"><?php wp_editor( $value, $id, $editor_args ); ?></div>
|
41 |
-
<p><span class="desc"><?php echo $desc ?></span></p>
|
42 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/textarea.php
DELETED
@@ -1,25 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
extract( $args );
|
17 |
-
?>
|
18 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
19 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
20 |
-
|
21 |
-
<p>
|
22 |
-
<textarea id="<?php echo $id ?>" name="<?php echo $name ?>" rows="5" cols="50" <?php if ( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?>><?php echo $value ?></textarea>
|
23 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
24 |
-
</p>
|
25 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/title.php
DELETED
@@ -1,18 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
11 |
-
exit;
|
12 |
-
} // Exit if accessed directly
|
13 |
-
|
14 |
-
extract( $args );
|
15 |
-
?>
|
16 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
17 |
-
<h3 style="margin: 0 -10px;"><?php echo $desc ?></h3>
|
18 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/typography.php
DELETED
@@ -1,255 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
|
17 |
-
$defaults = array(
|
18 |
-
'size' => 12,
|
19 |
-
'unit' => 'px',
|
20 |
-
'family' => '',
|
21 |
-
'style' => 'regular',
|
22 |
-
'color' => '#000000'
|
23 |
-
);
|
24 |
-
$value = wp_parse_args( $value, $defaults );
|
25 |
-
?>
|
26 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $deps ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?> >
|
27 |
-
<div id="<?php echo $id ?>" class="rm_typography rm_option">
|
28 |
-
<div class="option">
|
29 |
-
<label for="<?php echo $id ?>"><?php echo $label ?>
|
30 |
-
<small><?php echo $desc ?></small>
|
31 |
-
</label>
|
32 |
-
|
33 |
-
<?php if ( strpos( $style['properties'], 'font-size' ) !== false ) : ?>
|
34 |
-
<!-- Size -->
|
35 |
-
<div class="spinner_container">
|
36 |
-
<input class="number" type="text" name="<?php echo $name ?>[size]" id="<?php echo $id ?>-size" value="<?php echo esc_attr( $value['size'] ) ?>" />
|
37 |
-
</div>
|
38 |
-
|
39 |
-
<!-- Unit -->
|
40 |
-
<div class="select_wrapper font-unit">
|
41 |
-
<select name="<?php echo $name ?>[unit]" id="<?php echo $id ?>-unit">
|
42 |
-
<option value="px" <?php selected( $value['unit'], 'px' ) ?>><?php _e( 'px', 'yith-plugin-fw' ) ?></option>
|
43 |
-
<option value="em" <?php selected( $value['unit'], 'em' ) ?>><?php _e( 'em', 'yith-plugin-fw' ) ?></option>
|
44 |
-
<option value="pt" <?php selected( $value['unit'], 'pt' ) ?>><?php _e( 'pt', 'yith-plugin-fw' ) ?></option>
|
45 |
-
<option value="rem" <?php selected( $value['unit'], 'rem' ) ?>><?php _e( 'rem', 'yith-plugin-fw' ) ?></option>
|
46 |
-
</select>
|
47 |
-
</div>
|
48 |
-
<?php endif; ?>
|
49 |
-
|
50 |
-
<?php if ( strpos( $style['properties'], 'font-family' ) !== false ) : ?>
|
51 |
-
<!-- Family -->
|
52 |
-
<div class="select_wrapper font-family">
|
53 |
-
<select name="<?php echo $name ?>[family]" id="<?php echo $id ?>-family">
|
54 |
-
<?php
|
55 |
-
$web_fonts = yit_get_web_fonts();
|
56 |
-
$google_fonts = yit_get_google_fonts();
|
57 |
-
|
58 |
-
if ( ! empty( $web_fonts ) ) {
|
59 |
-
echo '<optgroup label="' . __( 'Web fonts', 'yith-plugin-fw' ) . '">';
|
60 |
-
|
61 |
-
foreach ( $web_fonts as $font_name => $rule ) {
|
62 |
-
?>
|
63 |
-
<option value='<?php echo esc_attr( $rule ) ?>' <?php selected( stripslashes( $value['family'] ), $rule ) ?>><?php echo $font_name ?></option>
|
64 |
-
<?php
|
65 |
-
}
|
66 |
-
|
67 |
-
echo '</optgroup>';
|
68 |
-
}
|
69 |
-
|
70 |
-
if ( ! empty( $google_fonts ) ) {
|
71 |
-
echo '<optgroup label="' . __( 'Google fonts', 'yith-plugin-fw' ) . '">';
|
72 |
-
|
73 |
-
foreach ( $google_fonts->items as $font ) {
|
74 |
-
// $font_human = trim( stripslashes( end( array_slice( explode( ',', $font ), 0, 1 ) ) ), "'" );
|
75 |
-
// $std_human = trim( stripslashes( end( array_slice( explode( ',', $value['family'] ), 0, 1 ) ) ), "'" );
|
76 |
-
|
77 |
-
//if( isset($font->family) ):
|
78 |
-
//Only me and god know what happen on this line...
|
79 |
-
?>
|
80 |
-
<option value="<?php echo stripslashes( $font ) ?>" <?php selected( $value['family'], $font ) ?>><?php echo $font ?></option>
|
81 |
-
<?php
|
82 |
-
//endif;
|
83 |
-
}
|
84 |
-
|
85 |
-
echo '</optgroup>';
|
86 |
-
}
|
87 |
-
?>
|
88 |
-
</select>
|
89 |
-
</div>
|
90 |
-
<?php endif; ?>
|
91 |
-
|
92 |
-
<?php if ( strpos( $style['properties'], 'font-style' ) !== false ) : ?>
|
93 |
-
<!-- Style -->
|
94 |
-
<div class="select_wrapper font-style">
|
95 |
-
<select name="<?php echo $name ?>[style]" id="<?php echo $id ?>-style">
|
96 |
-
<option value="regular" <?php selected( $value['style'], 'regular' ) ?>><?php _e( 'Regular', 'yith-plugin-fw' ) ?></option>
|
97 |
-
<option value="bold" <?php selected( $value['style'], 'bold' ) ?>><?php _e( 'Bold', 'yith-plugin-fw' ) ?></option>
|
98 |
-
<option value="extra-bold" <?php selected( $std['style'], 'extra-bold' ) ?>><?php _e( 'Extra bold', 'yith-plugin-fw' ) ?></option>
|
99 |
-
<option value="italic" <?php selected( $value['style'], 'italic' ) ?>><?php _e( 'Italic', 'yith-plugin-fw' ) ?></option>
|
100 |
-
<option value="bold-italic" <?php selected( $value['style'], 'bold-italic' ) ?>><?php _e( 'Italic bold', 'yith-plugin-fw' ) ?></option>
|
101 |
-
</select>
|
102 |
-
</div>
|
103 |
-
<?php endif; ?>
|
104 |
-
|
105 |
-
<?php if ( strpos( $style['properties'], 'color' ) !== false ) : ?>
|
106 |
-
<!-- Color -->
|
107 |
-
<div id="<?php echo $id ?>_container" class="colorpicker_container">
|
108 |
-
<div style="background-color: <?php echo $value['color'] ?>"></div>
|
109 |
-
</div>
|
110 |
-
<input type="text" name="<?php echo $name ?>[color]" id="<?php echo $id ?>-color" style="width:150px" value="<?php echo esc_attr( $value['color'] ) ?>" />
|
111 |
-
<?php endif; ?>
|
112 |
-
</div>
|
113 |
-
<div class="clear"></div>
|
114 |
-
<div class="font-preview">
|
115 |
-
<p>The quick brown fox jumps over the lazy dog</p>
|
116 |
-
</div>
|
117 |
-
</div>
|
118 |
-
</div>
|
119 |
-
<script type="text/javascript" charset="utf-8">
|
120 |
-
jQuery(document).ready(function ($) {
|
121 |
-
var container = $('#<?php echo $id ?>');
|
122 |
-
var preview = container.children('.font-preview').children('p');
|
123 |
-
|
124 |
-
//Set current value, before trigger change event
|
125 |
-
|
126 |
-
//Color
|
127 |
-
preview.css('color', '<?php echo $value['color'] ?>');
|
128 |
-
//Font size
|
129 |
-
var size = $('#<?php echo $id ?>-size').val();
|
130 |
-
var unit = $('#<?php echo $id ?>-unit').val();
|
131 |
-
|
132 |
-
preview.css('font-size', size + unit);
|
133 |
-
preview.css('line-height', ( unit == 'em' || unit == 'rem' ? Number(size) + 0.4 : Number(size) + 4 ) + unit);
|
134 |
-
//Font style
|
135 |
-
var style = $('#<?php echo $id ?>-style').val();
|
136 |
-
|
137 |
-
if (style == 'italic') {
|
138 |
-
preview.css({ 'font-weight': 'normal', 'font-style': 'italic' });
|
139 |
-
} else if (style == 'bold') {
|
140 |
-
preview.css({ 'font-weight': 'bold', 'font-style': 'normal' });
|
141 |
-
} else if (style == 'extra-bold') {
|
142 |
-
preview.css({ 'font-weight': '800', 'font-style': 'normal' });
|
143 |
-
} else if (style == 'bold-italic') {
|
144 |
-
preview.css({ 'font-weight': 'bold', 'font-style': 'italic' });
|
145 |
-
} else {
|
146 |
-
preview.css({ 'font-weight': 'normal', 'font-style': 'normal' });
|
147 |
-
}
|
148 |
-
|
149 |
-
//Font Family
|
150 |
-
var group = $('#<?php echo $id ?>-family').find('option:selected').parent().attr('label');
|
151 |
-
|
152 |
-
if ($('#<?php echo $id ?>-family').length > 0) {
|
153 |
-
if (group == '<?php _e( 'Web fonts', 'yith-plugin-fw' ) ?>') {
|
154 |
-
//Web font
|
155 |
-
preview.css('font-family', $('#<?php echo $id ?>-family').val());
|
156 |
-
} else {
|
157 |
-
//Google font
|
158 |
-
WebFontConfig = {
|
159 |
-
google: { families: [ $('#<?php echo $id ?>-family :selected').text() ] }
|
160 |
-
};
|
161 |
-
(function () {
|
162 |
-
var wf = document.createElement('script');
|
163 |
-
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
164 |
-
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
165 |
-
wf.type = 'text/javascript';
|
166 |
-
wf.async = 'true';
|
167 |
-
|
168 |
-
var s = document.getElementsByTagName('script')[0];
|
169 |
-
s.parentNode.insertBefore(wf, s);
|
170 |
-
})();
|
171 |
-
|
172 |
-
var preview_font = $('#<?php echo $id ?>-family').val()
|
173 |
-
preview.css('font-family', preview_font.replace(/:(.*)?/g, ''));
|
174 |
-
}
|
175 |
-
}
|
176 |
-
|
177 |
-
$('#<?php echo $id ?>-size').spinner({
|
178 |
-
<?php if( isset( $min )): ?>min: <?php echo $min ?>, <?php endif ?>
|
179 |
-
<?php if( isset( $max )): ?>max: <?php echo $max ?>, <?php endif ?>
|
180 |
-
showOn : 'always',
|
181 |
-
upIconClass : "ui-icon-plus",
|
182 |
-
downIconClass : "ui-icon-minus",
|
183 |
-
});
|
184 |
-
|
185 |
-
$('#<?php echo $id ?>_container').ColorPicker({
|
186 |
-
color : '<?php echo $value['color'] ?>',
|
187 |
-
onShow : function (colpkr) {
|
188 |
-
$(colpkr).fadeIn(500);
|
189 |
-
return false;
|
190 |
-
},
|
191 |
-
onHide : function (colpkr) {
|
192 |
-
$(colpkr).fadeOut(500);
|
193 |
-
return false;
|
194 |
-
},
|
195 |
-
onChange: function (hsb, hex, rgb) {
|
196 |
-
$('#<?php echo $id ?>_container div').css('backgroundColor', '#' + hex);
|
197 |
-
$('#<?php echo $id ?>_container').next('input').attr('value', '#' + hex);
|
198 |
-
|
199 |
-
//Preview color change
|
200 |
-
preview.css('color', '#' + hex);
|
201 |
-
}
|
202 |
-
});
|
203 |
-
|
204 |
-
//Font Size Change
|
205 |
-
$('#<?php echo $id ?>-size, #<?php echo $id ?>-unit').change(function () {
|
206 |
-
var size = $('#<?php echo $id ?>-size').val();
|
207 |
-
var unit = $('#<?php echo $id ?>-unit').val();
|
208 |
-
|
209 |
-
preview.css('font-size', size + unit);
|
210 |
-
preview.css('line-height', ( unit == 'em' || unit == 'rem' ? Number(size) + 0.4 : Number(size) + 4 ) + unit);
|
211 |
-
});
|
212 |
-
|
213 |
-
//Font Family Change
|
214 |
-
$('#<?php echo $id ?>-family').change(function () {
|
215 |
-
var group = $(this).find('option:selected').parent().attr('label');
|
216 |
-
|
217 |
-
if (group == '<?php _e( 'Web fonts', 'yith-plugin-fw' ) ?>') {
|
218 |
-
//Web font
|
219 |
-
preview.css('font-family', $(this).val());
|
220 |
-
} else {
|
221 |
-
//Google font
|
222 |
-
WebFontConfig = {
|
223 |
-
google: { families: [ $(':selected', this).text() ] }
|
224 |
-
};
|
225 |
-
(function () {
|
226 |
-
var wf = document.createElement('script');
|
227 |
-
wf.src = ('https:' == document.location.protocol ? 'https' : 'http') +
|
228 |
-
'://ajax.googleapis.com/ajax/libs/webfont/1/webfont.js';
|
229 |
-
wf.type = 'text/javascript';
|
230 |
-
wf.async = 'true';
|
231 |
-
var s = document.getElementsByTagName('script')[0];
|
232 |
-
s.parentNode.insertBefore(wf, s);
|
233 |
-
})();
|
234 |
-
|
235 |
-
var preview_font = $(this).val();
|
236 |
-
preview.css('font-family', preview_font.replace(/:(.*)?/g, ''));
|
237 |
-
}
|
238 |
-
});
|
239 |
-
|
240 |
-
//Font Style Change
|
241 |
-
$('#<?php echo $id ?>-style').change(function () {
|
242 |
-
var style = $(this).val();
|
243 |
-
|
244 |
-
if (style == 'italic') {
|
245 |
-
preview.css({ 'font-weight': 'normal', 'font-style': 'italic' });
|
246 |
-
} else if (style == 'bold') {
|
247 |
-
preview.css({ 'font-weight': 'bold', 'font-style': 'normal' });
|
248 |
-
} else if (style == 'bold-italic') {
|
249 |
-
preview.css({ 'font-weight': 'bold', 'font-style': 'italic' });
|
250 |
-
} else {
|
251 |
-
preview.css({ 'font-weight': 'normal', 'font-style': 'normal' });
|
252 |
-
}
|
253 |
-
});
|
254 |
-
});
|
255 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/metaboxes/types/upload.php
DELETED
@@ -1,24 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
extract( $args );
|
16 |
-
?>
|
17 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset($deps) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $deps['ids'] ?>" data-value="<?php echo $deps['values'] ?>" <?php endif ?>>
|
18 |
-
<label for="<?php echo $id ?>"><?php echo $label ?></label>
|
19 |
-
<p>
|
20 |
-
<input type="text" id="<?php echo $id ?>" name="<?php echo $name ?>" value="<?php echo esc_attr( $value ) ?>" <?php if( isset( $std ) ) : ?>data-std="<?php echo $std ?>"<?php endif ?> class="upload_img_url"/>
|
21 |
-
<input type="button" class="button-secondary upload_button" id="<?php echo $id ?>-button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" />
|
22 |
-
<span class="desc inline"><?php echo $desc ?></span>
|
23 |
-
</p>
|
24 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/sidebar.php
DELETED
@@ -1,20 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$sidebar_action_hide_class = $this->is_collapsed() ? '' : 'hide-on-click';
|
3 |
-
$sidebar_action_hide_title = $this->is_collapsed() ? __( 'Show sidebar', 'yith-plugin-fw' ) : __( 'Hide sidebar', 'yith-plugin-fw' );
|
4 |
-
$sidebar_class = $this->is_collapsed() ? 'yith-panel-sidebar-hidden' : '';
|
5 |
-
?>
|
6 |
-
|
7 |
-
|
8 |
-
<div id="yit-panel-sidebar" class="<?php echo $sidebar_class; ?>">
|
9 |
-
<div id="yit-panel-sidebar-actions">
|
10 |
-
<div id="yit-panel-sidebar-action-hide" class="<?php echo $sidebar_action_hide_class; ?>">
|
11 |
-
<span class="yit-panel-sidebar-action-title"><?php echo $sidebar_action_hide_title; ?></span>
|
12 |
-
<span class="yit-panel-sidebar-action-hide-icon dashicons dashicons-arrow-left"></span>
|
13 |
-
</div>
|
14 |
-
</div>
|
15 |
-
<div id="yit-panel-sidebar-widgets-container">
|
16 |
-
<?php
|
17 |
-
$this->print_panel_sidebar_widgets();
|
18 |
-
?>
|
19 |
-
</div>
|
20 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widget.php
DELETED
@@ -1,53 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @var string $id
|
4 |
-
* @var string $title
|
5 |
-
* @var string $content
|
6 |
-
* @var string $class
|
7 |
-
* @var string $title_class
|
8 |
-
* @var string $template
|
9 |
-
* @var string $badge
|
10 |
-
* @var string $badge_text
|
11 |
-
* @var string $image
|
12 |
-
* @var array $args
|
13 |
-
* @var string $icon
|
14 |
-
*
|
15 |
-
*/
|
16 |
-
|
17 |
-
if ( !empty( $template ) ) {
|
18 |
-
ob_start();
|
19 |
-
$basename = YIT_CORE_PLUGIN_PATH;
|
20 |
-
$path = '/panel/sidebar/widgets/widget-' . $template . '.php';
|
21 |
-
yit_plugin_get_template( $basename, $path, $args );
|
22 |
-
$content = ob_get_clean();
|
23 |
-
}
|
24 |
-
|
25 |
-
if ( !empty( $icon ) ) {
|
26 |
-
$title_class .= ' yit-panel-sidebar-widget-icon ' . $icon . '-icon';
|
27 |
-
}
|
28 |
-
|
29 |
-
?>
|
30 |
-
|
31 |
-
<div id="yit-panel-sidebar-<?php echo $id ?>-widget" class="yit-panel-sidebar-widget-wrapper <?php echo $class; ?>">
|
32 |
-
<div class="yit-panel-sidebar-widget-container">
|
33 |
-
<?php if ( !empty( $title ) ): ?>
|
34 |
-
<div class="yit-panel-sidebar-widget-title <?php echo $title_class; ?>">
|
35 |
-
<?php echo $title; ?>
|
36 |
-
</div>
|
37 |
-
<?php endif; ?>
|
38 |
-
<div class="yit-panel-sidebar-widget-content"><?php echo $content; ?></div>
|
39 |
-
<?php
|
40 |
-
if ( !empty( $image ) ) {
|
41 |
-
$path = YIT_CORE_PLUGIN_URL . '/assets/images/widgets/' . $image;
|
42 |
-
echo "<img class='yit-panel-sidebar-widget-image $image_class' src='{$path}' alt='' width='100%'/>";
|
43 |
-
}
|
44 |
-
?>
|
45 |
-
</div>
|
46 |
-
<?php
|
47 |
-
if ( !empty( $badge ) ) {
|
48 |
-
$basename = YIT_CORE_PLUGIN_PATH;
|
49 |
-
$path = '/panel/sidebar/widgets/badges/badge.php';
|
50 |
-
yit_plugin_get_template( $basename, $path, array( 'text' => $badge_text, 'type' => $badge ) );
|
51 |
-
}
|
52 |
-
?>
|
53 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/badges/badge.php
DELETED
@@ -1,11 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
/**
|
3 |
-
* @var string $type
|
4 |
-
*/
|
5 |
-
?>
|
6 |
-
|
7 |
-
<div class="yit-panel-sidebar-widget-badge <?php echo $type; ?>">
|
8 |
-
<div class="yit-panel-sidebar-widget-badge-s1"></div>
|
9 |
-
<div class="yit-panel-sidebar-widget-badge-s2"></div>
|
10 |
-
<div class="yit-panel-sidebar-widget-badge-text"><?php echo $text ?></div>
|
11 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/widget-despacho.php
DELETED
@@ -1,19 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
?>
|
15 |
-
<p>We are happy to present Despacho, our new cutting edge WordPress theme for e-commerce sites.
|
16 |
-
Conceived to include all the best and hi-quality features for shops,
|
17 |
-
this powerful theme offers a wide range of options to
|
18 |
-
<strong>easily customize and shape the appearande of your site. <a href="//despacho.yithemes.com" target="_blank">Discover More ></a></strong>
|
19 |
-
</p>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/widget-links.php
DELETED
@@ -1,34 +0,0 @@
|
|
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 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
/**
|
16 |
-
* @var array $links
|
17 |
-
*/
|
18 |
-
$links = !empty( $links ) ? $links : array();
|
19 |
-
|
20 |
-
$link_default_args = array(
|
21 |
-
'url' => '',
|
22 |
-
'title' => '',
|
23 |
-
'target' => '_blank'
|
24 |
-
);
|
25 |
-
?>
|
26 |
-
|
27 |
-
<ul class="yit-panel-sidebar-links-list">
|
28 |
-
<?php foreach ( $links as $link ) {
|
29 |
-
$link = wp_parse_args( $link, $link_default_args );
|
30 |
-
$link = (object)$link;
|
31 |
-
echo "<li><a href='$link->url' target='$link->target'>$link->title</a></li>";
|
32 |
-
}
|
33 |
-
?>
|
34 |
-
</ul>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/widget-membership.php
DELETED
@@ -1,29 +0,0 @@
|
|
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 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
?>
|
15 |
-
|
16 |
-
<div class="membership-wrapper">
|
17 |
-
<div class="membership-row">
|
18 |
-
<div class="membership-total-price">$10.000+</div>
|
19 |
-
<div class="membership-offer-text">worth of themes<br/>and plugins<br/>for WooCommerce</div>
|
20 |
-
</div>
|
21 |
-
<div class="membership-row">
|
22 |
-
<div class="membership-offer-text2">on a</div>
|
23 |
-
<div class="membership-offer-sale-text">95% OFF DISCOUNT</div>
|
24 |
-
</div>
|
25 |
-
<div class="membership-buttons">
|
26 |
-
<a class="button green" href="//yithemes.com/themes/membership/annual-yithemes-club-subscription/"
|
27 |
-
target="_blank">Discover More!</a>
|
28 |
-
</div>
|
29 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/sidebar/widgets/widgets.php
DELETED
@@ -1,42 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* @var YIT_Plugin_Panel_Sidebar $this
|
13 |
-
*/
|
14 |
-
|
15 |
-
$widgets = array(
|
16 |
-
'membership' => array(
|
17 |
-
'title' => __( 'Join the club', 'yit' ),
|
18 |
-
'title_class' => 'orange',
|
19 |
-
'icon' => 'box-white',
|
20 |
-
'template' => 'membership',
|
21 |
-
'priority' => 10,
|
22 |
-
),
|
23 |
-
'despacho' => array(
|
24 |
-
'title' => __( 'Despacho Theme - 100% FREE', 'yit' ),
|
25 |
-
'icon' => 'info',
|
26 |
-
'template' => 'despacho',
|
27 |
-
'badge' => 'gift-tape',
|
28 |
-
'badge_text' => __( 'FREE!', 'yit' ),
|
29 |
-
'image' => 'despacho.png',
|
30 |
-
'image_class' => 'yit-panel-sidebar-widget-despacho-image',
|
31 |
-
'priority' => 20,
|
32 |
-
),
|
33 |
-
'links' => array(
|
34 |
-
'title' => __( 'Important Links', 'yit' ),
|
35 |
-
'icon' => 'link',
|
36 |
-
'template' => 'links',
|
37 |
-
'args' => array( 'links' => $this->panel->links ),
|
38 |
-
'hide_if_empty_args' => array( 'links' ),
|
39 |
-
'priority' => 30,
|
40 |
-
),
|
41 |
-
);
|
42 |
-
return apply_filters( 'yit_panel_widgets_array', $widgets );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/chosen.php
DELETED
@@ -1,36 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
$id = $this->get_id_field( $option['id'] );
|
16 |
-
$name = $this->get_name_field( $option['id'] );
|
17 |
-
|
18 |
-
$is_multiple = isset( $option['multiple'] ) && $option['multiple'];
|
19 |
-
$multiple = ( $is_multiple ) ? ' multiple' : '';
|
20 |
-
|
21 |
-
$db_value = ( $is_multiple && ! is_array( $db_value ) ) ? array() : $db_value;
|
22 |
-
?>
|
23 |
-
<div id="<?php echo $id ?>-container" class="chosen yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
24 |
-
<div class="option">
|
25 |
-
<div class="select_wrapper">
|
26 |
-
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" class="chosen" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
|
27 |
-
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
28 |
-
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
29 |
-
<?php endforeach; ?>
|
30 |
-
</select>
|
31 |
-
</div>
|
32 |
-
</div>
|
33 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
34 |
-
|
35 |
-
<div class="clear"></div>
|
36 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/colorpicker.php
DELETED
@@ -1,38 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Text Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
wp_enqueue_style('wp-color-picker');
|
24 |
-
|
25 |
-
$id = $this->get_id_field( $option['id'] );
|
26 |
-
$name = $this->get_name_field( $option['id'] );
|
27 |
-
|
28 |
-
?>
|
29 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_colorpicker">
|
30 |
-
<div class="option">
|
31 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php if( isset( $std ) ) : ?>data-default-color="<?php echo $std ?>"<?php endif ?> class="panel-colorpicker"/>
|
32 |
-
|
33 |
-
</div>
|
34 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
35 |
-
|
36 |
-
<div class="clear"></div>
|
37 |
-
</div>
|
38 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/connected-list.php
DELETED
@@ -1,27 +0,0 @@
|
|
1 |
-
<?php
|
2 |
-
$id = $this->get_id_field( $option['id'] );
|
3 |
-
$name = $this->get_name_field( $option['id'] );
|
4 |
-
?>
|
5 |
-
|
6 |
-
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_connectedlist" <?php if( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
7 |
-
<div class="option">
|
8 |
-
<?php $yit_option = json_decode( stripslashes( $db_value ), true ); ?>
|
9 |
-
<?php $lists = is_array($yit_option) ? $yit_option : $option['lists']; ?>
|
10 |
-
|
11 |
-
<?php foreach( $lists as $list => $options ): ?>
|
12 |
-
<div class="list_container">
|
13 |
-
<h4><?php echo $option['heads'][ $list ] ?></h4>
|
14 |
-
<ul id="list_<?php echo $list ?>" class="connectedSortable" data-list="<?php echo $list ?>" <?php echo $custom_attributes ?>>
|
15 |
-
<?php foreach( $options as $value => $label ): ?>
|
16 |
-
<li data-option="<?php echo $value ?>" class="ui-state-default"><?php echo $label ?></li>
|
17 |
-
<?php endforeach ?>
|
18 |
-
</ul>
|
19 |
-
</div>
|
20 |
-
<?php endforeach ?>
|
21 |
-
<input type="hidden" name="<?php echo $name ?>" id="<?php echo $id ?>" value='<?php echo esc_attr( $db_value ) ?>' />
|
22 |
-
</div>
|
23 |
-
<div class="description">
|
24 |
-
<?php echo $option['desc'] ?>
|
25 |
-
</div>
|
26 |
-
<div class="clear"></div>
|
27 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/layout-panel.php
DELETED
File without changes
|
plugin-fw/templates/panel/types/number.php
DELETED
@@ -1,35 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Number Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
|
28 |
-
<div class="option">
|
29 |
-
<input type="number" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php echo $custom_attributes ?> />
|
30 |
-
</div>
|
31 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
-
|
33 |
-
<div class="clear"></div>
|
34 |
-
</div>
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/on-off.php
DELETED
@@ -1,34 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* ON-OFF Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="onoff_container yit_options rm_option rm_input rm_onoff">
|
28 |
-
<div class="option">
|
29 |
-
<input type="checkbox" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php checked( $db_value, 'yes' ); ?> class="on_off<?php if ( $db_value == 'yes' ): ?> onoffchecked<?php endif ?>" <?php echo $custom_attributes ?>/>
|
30 |
-
<span> </span>
|
31 |
-
</div>
|
32 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
33 |
-
</div>
|
34 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/select-mailchimp.php
DELETED
@@ -1,36 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Select Mailchimp Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Antonio La Rocca <antonio.larocca@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) exit; // Exit if accessed directly
|
20 |
-
?>
|
21 |
-
|
22 |
-
<div id="<?php echo $this->get_id_field( $option['id'] ) ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
23 |
-
<div class="option">
|
24 |
-
<div class="select_wrapper">
|
25 |
-
<select name="<?php echo $this->get_name_field( $option['id'] ) ?>" id="<?php echo $this->get_id_field( $option['id'] ) ?>" <?php echo $custom_attributes ?>>
|
26 |
-
<?php foreach( $option['options'] as $key => $value ) : ?>
|
27 |
-
<option value="<?php echo esc_attr( $key ) ?>"<?php selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
28 |
-
<?php endforeach; ?>
|
29 |
-
</select>
|
30 |
-
</div>
|
31 |
-
<input type="button" class="button-secondary <?php echo $option['class']?>" value="<?php echo esc_attr( $option['button_name'] ) ?>"/>
|
32 |
-
<span class="spinner"></span>
|
33 |
-
</div>
|
34 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
35 |
-
<div class="clear"></div>
|
36 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/select.php
DELETED
@@ -1,41 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Select Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
$id = $this->get_id_field( $option['id'] );
|
23 |
-
$name = $this->get_name_field( $option['id'] );
|
24 |
-
|
25 |
-
$is_multiple = isset( $option['multiple'] ) && $option['multiple'];
|
26 |
-
$multiple = ( $is_multiple ) ? ' multiple' : '';
|
27 |
-
?>
|
28 |
-
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
29 |
-
<div class="option">
|
30 |
-
<div class="select_wrapper">
|
31 |
-
<select name="<?php echo $name ?><?php if( $is_multiple ) echo "[]" ?>" id="<?php echo $id ?>" <?php echo $multiple ?> <?php echo $custom_attributes ?> >
|
32 |
-
<?php foreach ( $option['options'] as $key => $value ) : ?>
|
33 |
-
<option value="<?php echo esc_attr( $key ) ?>"<?php ($is_multiple) ? selected( true, in_array( $key, $db_value) ) : selected( $key, $db_value ) ?>><?php echo $value ?></option>
|
34 |
-
<?php endforeach; ?>
|
35 |
-
</select>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
39 |
-
|
40 |
-
<div class="clear"></div>
|
41 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/slider.php
DELETED
@@ -1,40 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Slider Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
?>
|
26 |
-
<div id="<?php echo $id ?>-container" class="slider_container yit_options rm_option rm_input slider_control slider" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
27 |
-
<div class="option">
|
28 |
-
<div class="ui-slider">
|
29 |
-
<span class="minCaption"><?php echo $option['min'] ?></span>
|
30 |
-
<span class="maxCaption"><?php echo $option['max'] ?></span>
|
31 |
-
<span id="<?php echo $id ?>-feedback" class="feedback"><strong><?php echo $db_value ?></strong></span>
|
32 |
-
|
33 |
-
<div id="<?php echo $id ?>-div" data-step="<?php echo isset( $option['step'] ) ? $option['step'] : 1 ?>" data-labels="<?php echo '' ?>" data-min="<?php echo $option['min'] ?>" data-max="<?php echo $option['max'] ?>" data-val="<?php echo $db_value; ?>" class="ui-slider ui-slider-horizontal ui-widget ui-widget-content ui-corner-all">
|
34 |
-
<input id="<?php echo $id ?>" type="hidden" name="<?php echo $name ?>" value="<?php echo esc_attr( $db_value ); ?>" />
|
35 |
-
</div>
|
36 |
-
</div>
|
37 |
-
</div>
|
38 |
-
|
39 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
40 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/text-button.php
DELETED
@@ -1,36 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Text Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Antonio La Rocca <antonio.larocca@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
|
28 |
-
<div class="option">
|
29 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" />
|
30 |
-
<input type="button" class="<?php echo $option['button-class']?> button button-secondary" value="<?php echo esc_attr( $option['button-name'] ) ?>" <?php if ( isset( $option['data'] ) && ! empty( $option['data'] ) ): foreach( $option['data'] as $id => $data ): ?> data-<?php echo $id?>="<?php echo $data?>" <?php endforeach; endif;?> />
|
31 |
-
</div>
|
32 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
33 |
-
|
34 |
-
<div class="clear"></div>
|
35 |
-
</div>
|
36 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/text.php
DELETED
@@ -1,35 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Text Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?> class="yit_options rm_option rm_input rm_text">
|
28 |
-
<div class="option">
|
29 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo esc_attr( $db_value ) ?>" <?php echo $custom_attributes ?> />
|
30 |
-
</div>
|
31 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
-
|
33 |
-
<div class="clear"></div>
|
34 |
-
</div>
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/textarea-codemirror.php
DELETED
@@ -1,40 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Textarea Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Antonio La Rocca <antonio.larocca@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
-
<div class="option">
|
29 |
-
<textarea name="<?php echo $name ?>" class="codemirror" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
|
30 |
-
</div>
|
31 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
-
|
33 |
-
<div class="clear"></div>
|
34 |
-
</div>
|
35 |
-
|
36 |
-
<?php
|
37 |
-
wp_enqueue_script('codemirror');
|
38 |
-
wp_enqueue_script('codemirror-javascript');
|
39 |
-
wp_enqueue_style('codemirror');
|
40 |
-
?>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/textarea.php
DELETED
@@ -1,35 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Textarea Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
28 |
-
<div class="option">
|
29 |
-
<textarea name="<?php echo $name ?>" id="<?php echo $id ?>" rows="8" cols="50" <?php echo $custom_attributes ?>><?php echo $db_value ?></textarea>
|
30 |
-
</div>
|
31 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
32 |
-
|
33 |
-
<div class="clear"></div>
|
34 |
-
</div>
|
35 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/types/upload.php
DELETED
@@ -1,46 +0,0 @@
|
|
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 |
-
/**
|
12 |
-
* Upload Plugin Admin View
|
13 |
-
*
|
14 |
-
* @package Yithemes
|
15 |
-
* @author Emanuela Castorina <emanuela.castorina@yithemes.it>
|
16 |
-
* @since 1.0.0
|
17 |
-
*/
|
18 |
-
|
19 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
20 |
-
exit;
|
21 |
-
} // Exit if accessed directly
|
22 |
-
|
23 |
-
$id = $this->get_id_field( $option['id'] );
|
24 |
-
$name = $this->get_name_field( $option['id'] );
|
25 |
-
|
26 |
-
?>
|
27 |
-
<div id="<?php echo $id ?>-container" >
|
28 |
-
<div id="<?php echo $id ?>-container" class="yit_options rm_option rm_input rm_text rm_upload" <?php if ( isset( $option['deps'] ) ): ?>data-field="<?php echo $id ?>" data-dep="<?php echo $this->get_id_field( $option['deps']['ids'] ) ?>" data-value="<?php echo $option['deps']['values'] ?>" <?php endif ?>>
|
29 |
-
<div class="option yit-upload">
|
30 |
-
<input type="text" name="<?php echo $name ?>" id="<?php echo $id ?>" value="<?php echo $db_value == '1' ? '' : esc_attr( $db_value ) ?>" class="upload_img_url" />
|
31 |
-
<input type="button" value="<?php _e( 'Upload', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>-button" class="upload_button button" />
|
32 |
-
<input type="button" value="<?php _e( 'Reset', 'yith-plugin-fw' ) ?>" id="<?php echo $id ?>-button_reset" class="upload_button_reset button" data-default="<?php echo $option['std'] ?>"/>
|
33 |
-
</div>
|
34 |
-
<div class="clear"></div>
|
35 |
-
<span class="description"><?php echo $option['desc'] ?></span>
|
36 |
-
</div>
|
37 |
-
<div class="upload_img_preview" style="margin-top:10px;">
|
38 |
-
<?php
|
39 |
-
$file = $db_value;
|
40 |
-
if ( preg_match( '/(jpg|jpeg|png|gif|ico)$/', $file ) ) {
|
41 |
-
echo isset( $this->settings['plugin-url'] ) ? "<img src=\"" . $this->settings['plugin-url'] . "/plugin-fw/assets/images/sleep.png\" data-src=\"$file\" />" : '';
|
42 |
-
}
|
43 |
-
?>
|
44 |
-
</div>
|
45 |
-
</div>
|
46 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/panel/videobox.php
DELETED
@@ -1,83 +0,0 @@
|
|
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 |
-
if ( ! defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
/**
|
16 |
-
* Example to call this template
|
17 |
-
*
|
18 |
-
* 'section_general_settings_videobox' => array(
|
19 |
-
* 'name' => __( 'Title of box', 'yith-plugin-fw' ),
|
20 |
-
* 'type' => 'videobox',
|
21 |
-
* 'default' => array(
|
22 |
-
* 'plugin_name' => __( 'Plugin Name', 'yith-plugin-fw' ),
|
23 |
-
* 'title_first_column' => __( 'Title first column', 'yith-plugin-fw' ),
|
24 |
-
* 'description_first_column' => __('Lorem ipsum ... ', 'yith-plugin-fw'),
|
25 |
-
* 'video' => array(
|
26 |
-
* 'video_id' => 'vimeo_code',
|
27 |
-
* 'video_image_url' => '#',
|
28 |
-
* 'video_description' => __( 'Lorem ipsum dolor sit amet....', 'yith-plugin-fw' ),
|
29 |
-
* ),
|
30 |
-
* 'title_second_column' => __( 'Title first column', 'yith-plugin-fw' ),
|
31 |
-
* 'description_second_column' => __('Lorem ipsum dolor sit amet.... ', 'yith-plugin-fw'),
|
32 |
-
* 'button' => array(
|
33 |
-
* 'href' => 'http://www.yithemes.com',
|
34 |
-
* 'title' => 'Get Support and Pro Features'
|
35 |
-
* )
|
36 |
-
* ),
|
37 |
-
* 'id' => 'yith_wcas_general_videobox'
|
38 |
-
* ),
|
39 |
-
*/
|
40 |
-
?>
|
41 |
-
<div id="normal-sortables" class="meta-box-sortables yith-videobox-wrapper">
|
42 |
-
<div id="<?php echo $id ?>" class="postbox">
|
43 |
-
<h3><span><?php echo $name ?></span></h3>
|
44 |
-
<div class="inside">
|
45 |
-
<div class="yith_videobox">
|
46 |
-
<div class="column"><h2><?php echo $default['title_first_column'] ?></h2>
|
47 |
-
<?php if ( isset( $default['video'] ) && !empty( $default['video'] ) ): ?>
|
48 |
-
<a class="yith-video-link" href="#" data-video-id="yith-video-iframe">
|
49 |
-
<img src="<?php echo $default['video']['video_image_url'] ?>">
|
50 |
-
</a>
|
51 |
-
|
52 |
-
<p class="yit-video-description">
|
53 |
-
<?php echo $default['video']['video_description'] ?>
|
54 |
-
</p>
|
55 |
-
|
56 |
-
<p class="yith-video-iframe">
|
57 |
-
<iframe src="//player.vimeo.com/video/<?php echo $default['video']['video_id'] ?>?title=0&byline=0&portrait=0" width="853" height="480" frameborder="0"></iframe>
|
58 |
-
</p>
|
59 |
-
<?php endif ?>
|
60 |
-
<?php if ( isset( $default['image'] ) && !empty( $default['image'] ) ): ?>
|
61 |
-
<a href="<?php echo $default['image']['image_link'] ?>" target="_blank" class="yith-image-frame">
|
62 |
-
<img src="<?php echo $default['image']['image_url'] ?>">
|
63 |
-
</a>
|
64 |
-
<?php endif ?>
|
65 |
-
<?php if ( isset( $default['description_first_column'] ) && $default['description_first_column'] != '' ): ?>
|
66 |
-
<p><?php echo $default['description_first_column'] ?></p>
|
67 |
-
<?php endif ?>
|
68 |
-
</div>
|
69 |
-
<div class="column two">
|
70 |
-
<h2><?php echo $default['title_second_column'] ?>?</h2>
|
71 |
-
|
72 |
-
<p><?php echo $default['description_second_column'] ?></p>
|
73 |
-
|
74 |
-
<?php if ( isset( $default['button'] ) && !empty( $default['button'] ) ): ?>
|
75 |
-
<p>
|
76 |
-
<a class="button-primary" href="<?php echo $default['button']['href'] ?>" target="_blank"><?php echo $default['button']['title'] ?></a>
|
77 |
-
</p>
|
78 |
-
<?php endif ?>
|
79 |
-
</div>
|
80 |
-
</div>
|
81 |
-
</div>
|
82 |
-
</div>
|
83 |
-
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/sysinfo/system-information-panel.php
CHANGED
@@ -8,11 +8,12 @@
|
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*/
|
10 |
|
11 |
-
$system_info
|
12 |
-
$
|
13 |
-
$output_ip
|
|
|
14 |
|
15 |
-
if ( function_exists( 'curl_init' ) && apply_filters( 'yith_system_status_check_ip', true ) ) {
|
16 |
//Get Output IP Address
|
17 |
$ch = curl_init();
|
18 |
curl_setopt( $ch, CURLOPT_URL, 'https://ifconfig.co/ip' );
|
@@ -21,176 +22,153 @@ if ( function_exists( 'curl_init' ) && apply_filters( 'yith_system_status_check_
|
|
21 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
|
22 |
$data = curl_exec( $ch );
|
23 |
curl_close( $ch );
|
24 |
-
$output_ip = $data != '' ? $data : 'n/a';
|
25 |
-
}
|
26 |
-
|
27 |
-
?>
|
28 |
-
<div id="yith-sysinfo" class="wrap yith-system-info">
|
29 |
-
<h1>
|
30 |
-
<span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo() ?>" /></span> <?php _e( 'YITH System Information', 'yith-plugin-fw' ) ?>
|
31 |
-
</h1>
|
32 |
-
|
33 |
-
<?php if ( ! isset( $_GET['yith-phpinfo'] ) || $_GET['yith-phpinfo'] != 'true' ): ?>
|
34 |
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
42 |
-
</td>
|
43 |
-
</tr>
|
44 |
-
<tr>
|
45 |
-
<th>
|
46 |
-
<?php _e( 'Output IP Address', 'yith-plugin-fw' ); ?>
|
47 |
-
</th>
|
48 |
-
<td class="requirement-value">
|
49 |
-
<?php echo $output_ip ?>
|
50 |
-
</td>
|
51 |
-
</tr>
|
52 |
-
</table>
|
53 |
|
54 |
-
|
55 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
56 |
<?php
|
57 |
-
|
58 |
-
|
59 |
-
|
60 |
-
|
61 |
-
|
62 |
-
|
63 |
-
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
|
68 |
-
|
69 |
-
|
70 |
-
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
76 |
-
|
77 |
-
|
78 |
-
|
79 |
-
|
80 |
-
|
81 |
-
|
82 |
-
|
83 |
-
|
84 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
85 |
}
|
86 |
|
87 |
-
|
88 |
-
|
89 |
-
</td>
|
90 |
-
<td class="requirement-messages">
|
91 |
-
<?php if ( $has_errors ) : ?>
|
92 |
-
<ul>
|
93 |
-
<?php foreach ( $item['errors'] as $plugin => $requirement ) : ?>
|
94 |
-
<li>
|
95 |
-
<?php if ( $to_be_enabled ) {
|
96 |
-
echo sprintf( __( '%s needs %s enabled', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<b>' . $labels[ $key ] . '</b>' );
|
97 |
-
} elseif ( $key == 'wp_memory_limit' ) {
|
98 |
-
echo sprintf( __( '%s needs at least %s of available memory', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . esc_html( size_format( YITH_System_Status()->memory_size_to_num( $requirement ) ) ) . '</span>' );
|
99 |
-
echo '<br/>';
|
100 |
-
echo sprintf( __( 'For optimal functioning of our plugins, we suggest setting at least %s of available memory', 'yith-plugin-fw' ), '<span class="error">' . esc_html( size_format( $recommended_memory ) ) . '</span>' );
|
101 |
-
echo '<br/>';
|
102 |
-
echo sprintf( __( 'Read more %s here%s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
|
103 |
-
|
104 |
-
} else {
|
105 |
-
echo sprintf( __( '%s needs at least %s version', 'yith-plugin-fw' ), '<b>' . $plugin . '</b>', '<span class="error">' . $requirement . '</span>' );
|
106 |
-
|
107 |
-
|
108 |
-
} ?>
|
109 |
-
</li>
|
110 |
-
<?php endforeach; ?>
|
111 |
-
</ul>
|
112 |
-
<?php switch ( $key ) {
|
113 |
-
|
114 |
-
case 'min_wp_version':
|
115 |
-
case 'min_wc_version':
|
116 |
-
echo __( 'Update it to the latest version in order to benefit of all new features and security updates.', 'yith-plugin-fw' );
|
117 |
-
break;
|
118 |
-
case 'min_php_version':
|
119 |
-
case 'min_tls_version':
|
120 |
-
case 'imagick_version':
|
121 |
-
if ( $item['value'] != 'n/a' ) {
|
122 |
-
echo __( 'Contact your hosting company in order to update it.', 'yith-plugin-fw' );
|
123 |
-
}
|
124 |
-
break;
|
125 |
-
case 'wp_cron_enabled':
|
126 |
-
echo sprintf( __( 'Remove %s from %s file', 'yith-plugin-fw' ), '<code>define( \'DISABLE_WP_CRON\', true );</code>', '<b>wp-config.php</b>' );
|
127 |
-
break;
|
128 |
-
case 'mbstring_enabled':
|
129 |
-
case 'simplexml_enabled':
|
130 |
-
case 'gd_enabled':
|
131 |
-
case 'iconv_enabled':
|
132 |
-
case 'opcache_enabled':
|
133 |
-
case 'url_fopen_enabled':
|
134 |
-
echo __( 'Contact your hosting company in order to enable it.', 'yith-plugin-fw' );
|
135 |
-
break;
|
136 |
-
case 'wp_memory_limit':
|
137 |
-
echo sprintf( __( 'Read more %s here%s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
|
138 |
-
break;
|
139 |
-
default:
|
140 |
-
echo apply_filters( 'yith_system_generic_message', '', $item );
|
141 |
-
|
142 |
-
} ?>
|
143 |
-
<?php endif; ?>
|
144 |
|
145 |
-
|
146 |
-
|
147 |
-
if ( $item['value'] != 'n/a' ) {
|
148 |
-
|
149 |
-
echo sprintf( __( 'For optimal functioning of our plugins, we suggest setting at least %s of available memory', 'yith-plugin-fw' ), '<span class="error">' . esc_html( size_format( $recommended_memory ) ) . '</span>' );
|
150 |
-
echo '<br/>';
|
151 |
-
echo sprintf( __( 'Read more %s here%s or contact your hosting company in order to increase it.', 'yith-plugin-fw' ), '<a href="https://codex.wordpress.org/Editing_wp-config.php#Increasing_memory_allocated_to_PHP" target="_blank">', '</a>' );
|
152 |
-
|
153 |
-
} else {
|
154 |
-
|
155 |
-
switch ( $key ) {
|
156 |
-
case 'min_tls_version':
|
157 |
-
echo __( 'We cannot determine which <b>TLS</b> version is installed because <b>cURL</b> module is disabled. Ask your hosting company to enable it.', 'yith-plugin-fw' );
|
158 |
-
break;
|
159 |
-
case 'imagick_version':
|
160 |
-
echo __( '<b>ImageMagick</b> module is not installed. Ask your hosting company to install it.', 'yith-plugin-fw' );
|
161 |
-
break;
|
162 |
}
|
163 |
-
|
|
|
|
|
164 |
}
|
165 |
-
|
166 |
-
|
167 |
-
|
168 |
-
|
169 |
-
|
170 |
-
|
171 |
-
|
172 |
-
|
173 |
-
|
174 |
-
|
175 |
-
|
176 |
-
|
177 |
-
|
178 |
-
<?php
|
179 |
-
|
180 |
-
ob_start();
|
181 |
-
phpinfo( 61 );
|
182 |
-
$pinfo = ob_get_contents();
|
183 |
-
ob_end_clean();
|
184 |
-
|
185 |
-
$pinfo = preg_replace( '%^.*<div class="center">(.*)</div>.*$%ms', '$1', $pinfo );
|
186 |
-
$pinfo = preg_replace( '%(^.*)<a name=\".*\">(.*)</a>(.*$)%m', '$1$2$3', $pinfo );
|
187 |
-
$pinfo = str_replace( '<table>', '<table class="widefat striped yith-phpinfo">', $pinfo );
|
188 |
-
$pinfo = str_replace( '<td class="e">', '<th class="e">', $pinfo );
|
189 |
-
echo $pinfo;
|
190 |
-
|
191 |
-
?>
|
192 |
-
|
193 |
-
<a href="#yith-sysinfo"><?php _e( 'Back to top', 'yith-plugin-fw' ) ?></a>
|
194 |
-
|
195 |
-
<?php endif; ?>
|
196 |
-
</div>
|
8 |
* http://www.gnu.org/licenses/gpl-3.0.txt
|
9 |
*/
|
10 |
|
11 |
+
$system_info = get_option( 'yith_system_info' );
|
12 |
+
$saved_ip = get_transient( 'yith-sysinfo-ip' );
|
13 |
+
$output_ip = ( '' === (string) $saved_ip ? 'n/a' : $saved_ip );
|
14 |
+
$labels = YITH_System_Status()->_requirement_labels;
|
15 |
|
16 |
+
if ( 'n/a' === $output_ip && function_exists( 'curl_init' ) && apply_filters( 'yith_system_status_check_ip', true ) ) {
|
17 |
//Get Output IP Address
|
18 |
$ch = curl_init();
|
19 |
curl_setopt( $ch, CURLOPT_URL, 'https://ifconfig.co/ip' );
|
22 |
curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1 );
|
23 |
$data = curl_exec( $ch );
|
24 |
curl_close( $ch );
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
25 |
|
26 |
+
//CHECK IF IS IPv4
|
27 |
+
preg_match( '/((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])/', $data, $matches );
|
28 |
+
//CHECK IF IS IPv6
|
29 |
+
if ( empty( $matches ) ) {
|
30 |
+
preg_match( '/(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)|fe80:(:[0-9a-fA-F]{0,4}){0,4}%[0-9a-zA-Z]{1,}|::(ffff(:0{1,4}){0,1}:){0,1}((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])|([0-9a-fA-F]{1,4}:){1,4}:((25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9])\.){3,3}(25[0-5]|(2[0-4]|1{0,1}[0-9]){0,1}[0-9]))/', $data, $matches );
|
31 |
+
}
|
32 |
+
$output_ip = ! empty( $matches ) ? $matches[0] : 'n/a';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
+
set_transient( 'yith-sysinfo-ip', $output_ip, 300 );
|
35 |
+
}
|
36 |
+
?>
|
37 |
+
<div id="yith-sysinfo" class="wrap yith-system-info yith-plugin-ui">
|
38 |
+
<h2 class="yith-sysinfo-title">
|
39 |
+
<span class="yith-logo"><img src="<?php echo yith_plugin_fw_get_default_logo(); ?>" /></span> <?php _e( 'YITH System Information', 'yith-plugin-fw' ); ?>
|
40 |
+
</h2>
|
41 |
+
<?php
|
42 |
+
|
43 |
+
$tab = isset( $_GET['tab'] ) ? $_GET['tab'] : '';
|
44 |
+
|
45 |
+
switch ( $tab ) {
|
46 |
+
case 'error-log':
|
47 |
+
$debug_files = array(
|
48 |
+
//debug.log file
|
49 |
+
'debug.log' => array(
|
50 |
+
'label' => esc_html__( 'WP debug.log file', 'yith-plugin-fw' ),
|
51 |
+
'path' => WP_CONTENT_DIR . '/debug.log',
|
52 |
+
),
|
53 |
+
'error_log' => array(
|
54 |
+
'label' => esc_html__( 'PHP error_log file', 'yith-plugin-fw' ),
|
55 |
+
'path' => ABSPATH . 'error_log',
|
56 |
+
),
|
57 |
+
);
|
58 |
+
?>
|
59 |
+
<a href="<?php echo add_query_arg( array( 'tab' => 'main' ) ); ?> "><?php esc_html_e( 'Back to System panel', 'yith-plugin-fw' ); ?></a>
|
60 |
+
<table class="widefat striped">
|
61 |
<?php
|
62 |
+
foreach ( $debug_files as $debug_file ) :
|
63 |
+
|
64 |
+
if ( ! file_exists( $debug_file['path'] ) ) {
|
65 |
+
continue;
|
66 |
+
}
|
67 |
+
|
68 |
+
?>
|
69 |
+
<tr>
|
70 |
+
<th>
|
71 |
+
<?php echo $debug_file['label']; ?>
|
72 |
+
</th>
|
73 |
+
<td>
|
74 |
+
<textarea class="yith-system-info-debug" readonly> <?php include $debug_file['path']; ?></textarea>
|
75 |
+
</td>
|
76 |
+
</tr>
|
77 |
+
<?php endforeach; ?>
|
78 |
+
</table>
|
79 |
+
<?php
|
80 |
+
break;
|
81 |
+
case 'php-info':
|
82 |
+
?>
|
83 |
+
<a href="<?php echo add_query_arg( array( 'tab' => 'main' ) ); ?> "><?php esc_html_e( 'Back to System panel', 'yith-plugin-fw' ); ?></a>
|
84 |
+
<?php
|
85 |
+
ob_start();
|
86 |
+
phpinfo( 61 );
|
87 |
+
$pinfo = ob_get_contents();
|
88 |
+
ob_end_clean();
|
89 |
+
|
90 |
+
$pinfo = preg_replace( '%^.*<div class="center">(.*)</div>.*$%ms', '$1', $pinfo );
|
91 |
+
$pinfo = preg_replace( '%(^.*)<a name=\".*\">(.*)</a>(.*$)%m', '$1$2$3', $pinfo );
|
92 |
+
$pinfo = str_replace( '<table>', '<table class="widefat striped yith-phpinfo">', $pinfo );
|
93 |
+
$pinfo = str_replace( '<td class="e">', '<th class="e">', $pinfo );
|
94 |
+
echo $pinfo;
|
95 |
+
?>
|
96 |
+
<a href="#yith-sysinfo"><?php esc_html_e( 'Back to top', 'yith-plugin-fw' ); ?></a>
|
97 |
+
<?php
|
98 |
+
break;
|
99 |
+
default:
|
100 |
+
?>
|
101 |
+
<table class="widefat striped">
|
102 |
+
<tr>
|
103 |
+
<th>
|
104 |
+
<?php esc_html_e( 'Site URL', 'yith-plugin-fw' ); ?>
|
105 |
+
</th>
|
106 |
+
<td class="requirement-value">
|
107 |
+
<?php echo get_site_url(); ?>
|
108 |
+
</td>
|
109 |
+
</tr>
|
110 |
+
<tr>
|
111 |
+
<th>
|
112 |
+
<?php esc_html_e( 'Output IP Address', 'yith-plugin-fw' ); ?>
|
113 |
+
</th>
|
114 |
+
<td class="requirement-value">
|
115 |
+
<?php echo $output_ip; ?>
|
116 |
+
</td>
|
117 |
+
</tr>
|
118 |
+
<tr>
|
119 |
+
<th>
|
120 |
+
<?php esc_html_e( 'Defined WP_CACHE', 'yith-plugin-fw' ); ?>
|
121 |
+
</th>
|
122 |
+
<td class="requirement-value">
|
123 |
+
<?php echo( defined( 'WP_CACHE' ) && WP_CACHE ? esc_html__( 'Yes', 'yith-plugin-fw' ) : esc_html__( 'No', 'yith-plugin-fw' ) ); ?>
|
124 |
+
</td>
|
125 |
+
</tr>
|
126 |
+
</table>
|
127 |
+
|
128 |
+
<table class="widefat striped">
|
129 |
+
<?php foreach ( $system_info['system_info'] as $key => $item ) : ?>
|
130 |
+
<?php
|
131 |
+
$has_errors = isset( $item['errors'] );
|
132 |
+
$has_warnings = isset( $item['warnings'] );
|
133 |
+
?>
|
134 |
+
<tr>
|
135 |
+
<th class="requirement-name">
|
136 |
+
<?php echo $labels[ $key ]; ?>
|
137 |
+
</th>
|
138 |
+
<td class="requirement-value <?php echo( $has_errors ? 'has-errors' : '' ); ?> <?php echo( $has_warnings ? 'has-warnings' : '' ); ?>">
|
139 |
+
<span class="dashicons dashicons-<?php echo( $has_errors || $has_warnings ? 'warning' : 'yes' ); ?>"></span>
|
140 |
+
<?php
|
141 |
+
echo YITH_System_Status()->format_requirement_value( $key, $item['value'] );
|
142 |
+
?>
|
143 |
+
</td>
|
144 |
+
<td class="requirement-messages">
|
145 |
+
<?php
|
146 |
+
if ( $has_errors ) {
|
147 |
+
YITH_System_Status()->print_error_messages( $key, $item, $labels[ $key ] );
|
148 |
+
YITH_System_Status()->print_solution_suggestion( $key, $item, $labels[ $key ] );
|
149 |
+
} elseif ( $has_warnings ) {
|
150 |
+
YITH_System_Status()->print_warning_messages( $key );
|
151 |
}
|
152 |
|
153 |
+
if ( 'min_php_version' === $key ) {
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
154 |
|
155 |
+
if ( $has_errors || $has_warnings ) {
|
156 |
+
echo '<br />';
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
157 |
}
|
158 |
+
?>
|
159 |
+
<a href="<?php echo add_query_arg( array( 'tab' => 'php-info' ) ); ?> "><?php esc_html_e( 'Show full PHPInfo', 'yith-plugin-fw' ); ?></a>
|
160 |
+
<?php
|
161 |
}
|
162 |
+
?>
|
163 |
+
</td>
|
164 |
+
</tr>
|
165 |
+
<?php endforeach; ?>
|
166 |
+
</table>
|
167 |
+
<a href="<?php echo add_query_arg( array( 'tab' => 'error-log' ) ); ?> "><?php esc_html_e( 'Show log files', 'yith-plugin-fw' ); ?></a>
|
168 |
+
|
169 |
+
<?php
|
170 |
+
break;
|
171 |
+
}
|
172 |
+
|
173 |
+
?>
|
174 |
+
</div>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/templates/upgrade/upgrade-to-pro-version.php
DELETED
@@ -1,75 +0,0 @@
|
|
1 |
-
<div id="upgrade-to-premium">
|
2 |
-
<h1><?php _e( 'Upgrade to Premium Version', 'yith-plugin-fw' ) ?></h1>
|
3 |
-
<h3><?php _e( "Have you purchased the premium version of a plugin? Don't you know how to activate the license after the purchase?", 'yith-plugin-fw' ) ?></h3>
|
4 |
-
<p class="upgrade-how-to">
|
5 |
-
<?php echo _e( "To upgrade from a FREE to a PREMIUM plugin is not suffice to insert the license key provided after the purchase.
|
6 |
-
The reason is that they are two distinct products, with significant differences both for available options and for number of files included in the plugin package.
|
7 |
-
To start to use the PREMIUM version of the plugin, you simply need to download the PREMIUM packet and install it on your site.", 'yith-plugin-fw' ); ?>
|
8 |
-
</p>
|
9 |
-
<p class="highlighted"><?php echo sprintf( __( '%1$sDo you need to know how to do it?%2$s Easy! %1$sFollow this list of steps%2$s and in a few minutes the plugin you purchased will be installed on your site', 'yith-plugin-fw' ),'<b>','</b>' ); ?></p>
|
10 |
-
<ol class="upgrade-steps">
|
11 |
-
<li class="step">
|
12 |
-
<?php _e( 'Go to yithemes.com and login to "My Account" page', 'yith-plugin-fw' ); ?>
|
13 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/01.jpg" title="YIThemes - Login">
|
14 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/01.jpg" alt="YIThemes - Login">
|
15 |
-
</a>
|
16 |
-
</li>
|
17 |
-
<li class="step">
|
18 |
-
<?php _e( 'From the menu on the left, click on "My Downloads", look for the plugin you want to install among the available downloads and click on "Download" button' , 'yith-plugin-fw' ); ?>
|
19 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/02.jpg" title="My Account -> My Downloads">
|
20 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/02.jpg" alt="My Account -> My Downloads">
|
21 |
-
</a>
|
22 |
-
</li>
|
23 |
-
<li class="step">
|
24 |
-
<?php _e( "After downloading the packet, go to your website and login to WordPress administration area.", 'yith-plugin-fw' ); ?>
|
25 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/03.jpg" title="Login to WordPress">
|
26 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/03.jpg" alt="Login to WordPress">
|
27 |
-
</a>
|
28 |
-
</li>
|
29 |
-
<li class="step">
|
30 |
-
<?php _e( 'From the menu on the left, click on "Plugins". You will be redirected to the page where you will find the complete list of all the plugins available on your site. Click on "Add New" button that you find above on the left to add a new plugin', 'yith-plugin-fw' ); ?>
|
31 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/04.jpg" title="Add new plugin">
|
32 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/04.jpg" alt="Add new plugin">
|
33 |
-
</a>
|
34 |
-
</li>
|
35 |
-
<li class="step">
|
36 |
-
<?php _e( 'You will be redirected to a new page where you will find, above on the left next to the page title, the "Upload Plugin" button.', 'yith-plugin-fw' ); ?>
|
37 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/05.jpg" title="Upload plugin">
|
38 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/05.jpg" alt="Upload plugin">
|
39 |
-
</a>
|
40 |
-
</li>
|
41 |
-
<li class="step">
|
42 |
-
<?php _e( 'Click on "Upload Plugins" button to start the upload of the PREMIUM version of the plugin previously downloaded. Click on "Select File", search for the download folder related to the plugin and upload the package. Now you only need to wait a few minutes for the upload and the installation on your site. (We used YITH Live Chat plugin by way of example)', 'yith-plugin-fw' ); ?>
|
43 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/06.jpg" title="Select plugin package">
|
44 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/06.jpg" alt="Select plugin package">
|
45 |
-
</a>
|
46 |
-
</li>
|
47 |
-
<li class="step">
|
48 |
-
<?php _e( 'After completing the installation, click on "Activate plugin"', 'yith-plugin-fw' ); ?>
|
49 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/07.jpg" title="Activate plugin">
|
50 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/07.jpg" alt="Activate plugin">
|
51 |
-
</a>
|
52 |
-
<?php _e( 'If everything worked allright, your plugin is now correctly installed on your website. Enjoy it :-)', 'yith-plugin-fw' ); ?>
|
53 |
-
</li>
|
54 |
-
<li class="step">
|
55 |
-
<?php _e( 'The last step is the activation of the plugin through its license key you received after the purchase. Click on "License Activation" that you find in "YITH Plugins" and insert the license key and the email address you used during the purchase.', 'yith-plugin-fw' ); ?>
|
56 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" title="Activate license">
|
57 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/08.jpg" alt="Activate license">
|
58 |
-
</a>
|
59 |
-
</li>
|
60 |
-
<li class="step">
|
61 |
-
<?php _e( 'In case you had difficulty to recover the license key we sent you by email, you can easily find it in "My Licenses" section of your account on yithemes.com', 'yith-plugin-fw' ); ?>
|
62 |
-
<a class="image-lightbox" href="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/09.jpg" title="Section My License">
|
63 |
-
<img class="img-responsive" src="<?php echo $core_plugin_url; ?>/assets/images/upgrade-page/09.jpg" alt="Section My License">
|
64 |
-
</a>
|
65 |
-
</li>
|
66 |
-
</ol>
|
67 |
-
</div>
|
68 |
-
|
69 |
-
<script>
|
70 |
-
// Lightbox image
|
71 |
-
jQuery('document').ready(function($){
|
72 |
-
$(".image-lightbox").colorbox({rel:'image-lightbox'});
|
73 |
-
});
|
74 |
-
|
75 |
-
</script>
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
plugin-fw/yit-functions.php
CHANGED
@@ -969,21 +969,34 @@ if ( !function_exists( 'yith_plugin_fw_get_field' ) ) {
|
|
969 |
* @return string|void
|
970 |
*/
|
971 |
function yith_plugin_fw_get_field( $field, $echo = false, $show_container = true ) {
|
972 |
-
if ( empty( $field[ 'type' ] ) )
|
973 |
-
|
|
|
974 |
|
975 |
-
if ( !isset( $field[ 'value' ] ) )
|
976 |
-
|
|
|
977 |
|
978 |
-
if ( !isset( $field[ 'name' ] ) )
|
979 |
-
|
|
|
980 |
|
981 |
-
if ( !isset( $field[ 'custom_attributes' ] ) )
|
982 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
983 |
|
984 |
-
|
985 |
-
|
986 |
|
|
|
|
|
|
|
987 |
|
988 |
$field_template = yith_plugin_fw_get_field_template_path( $field );
|
989 |
|
969 |
* @return string|void
|
970 |
*/
|
971 |
function yith_plugin_fw_get_field( $field, $echo = false, $show_container = true ) {
|
972 |
+
if ( empty( $field[ 'type' ] ) ) {
|
973 |
+
return '';
|
974 |
+
}
|
975 |
|
976 |
+
if ( !isset( $field[ 'value' ] ) ) {
|
977 |
+
$field['value'] = '';
|
978 |
+
}
|
979 |
|
980 |
+
if ( !isset( $field[ 'name' ] ) ) {
|
981 |
+
$field['name'] = '';
|
982 |
+
}
|
983 |
|
984 |
+
if ( ! isset( $field[ 'custom_attributes' ] ) ) {
|
985 |
+
$field['custom_attributes'] = '';
|
986 |
+
}
|
987 |
+
elseif( is_array( $field[ 'custom_attributes' ] ) ) {
|
988 |
+
// let's build custom attributes as string
|
989 |
+
$custom_attributes = array();
|
990 |
+
foreach ( $field[ 'custom_attributes' ] as $attribute => $attribute_value ) {
|
991 |
+
$custom_attributes[] = esc_attr( $attribute ) . '="' . esc_attr( $attribute_value ) . '"';
|
992 |
+
}
|
993 |
|
994 |
+
$field['custom_attributes'] = implode( ' ', $custom_attributes );
|
995 |
+
}
|
996 |
|
997 |
+
if ( ! isset( $field[ 'default' ] ) && isset( $field[ 'std' ] ) ) {
|
998 |
+
$field['default'] = $field['std'];
|
999 |
+
}
|
1000 |
|
1001 |
$field_template = yith_plugin_fw_get_field_template_path( $field );
|
1002 |
|
plugin-options/premium-landing-options.php
DELETED
@@ -1,23 +0,0 @@
|
|
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 |
-
if ( !defined( 'ABSPATH' ) ) {
|
12 |
-
exit;
|
13 |
-
} // Exit if accessed directly
|
14 |
-
|
15 |
-
|
16 |
-
return array(
|
17 |
-
'premium-landing' => array(
|
18 |
-
'home' => array(
|
19 |
-
'type' => 'custom_tab',
|
20 |
-
'action' => 'yith_catalog_mode_premium'
|
21 |
-
)
|
22 |
-
)
|
23 |
-
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Contributors: yithemes
|
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
-
Stable tag: 2.0.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -131,6 +131,11 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
131 |
|
132 |
== Changelog ==
|
133 |
|
|
|
|
|
|
|
|
|
|
|
134 |
= Version 2.0.1 - Released: 06 May 2020 =
|
135 |
|
136 |
* New: Support for WooCommerce 4.1
|
@@ -357,7 +362,7 @@ yith-woocommerce-catalog-mode-<WORDPRESS LOCALE >.mo
|
|
357 |
|
358 |
== Upgrade Notice ==
|
359 |
|
360 |
-
Last Stable Tag 2.0.
|
361 |
|
362 |
== Suggestions ==
|
363 |
|
4 |
Tags: woocommerce catalog mode plugin, woocommerce catalog only, woocommerce, products, themes, yit, yith, yithemes, e-commerce, shop, catalog mode, catalogue mode, remove add to cart, ask for price, ask price, asking for price, asking price, button remove, call, call for price, call me, call us, contact, email, hide add to cart, hide price
|
5 |
Requires at least: 4.0
|
6 |
Tested up to: 5.4
|
7 |
+
Stable tag: 2.0.2
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
131 |
|
132 |
== Changelog ==
|
133 |
|
134 |
+
= Version 2.0.2 - Released: 09 July 2020 =
|
135 |
+
|
136 |
+
* New: Support for WooCommerce 4.3
|
137 |
+
* Update: plugin framework
|
138 |
+
|
139 |
= Version 2.0.1 - Released: 06 May 2020 =
|
140 |
|
141 |
* New: Support for WooCommerce 4.1
|
362 |
|
363 |
== Upgrade Notice ==
|
364 |
|
365 |
+
Last Stable Tag 2.0.2
|
366 |
|
367 |
== Suggestions ==
|
368 |
|