Version Description
- January 9th, 2018 =
- Happy new year!
- The editor is now vertically resizeable.
- The default capability for interacting with saved tabs is now Publish Products (publish_products)
Download this release
Release Info
Developer | yikesitskevin |
Plugin | Custom Product Tabs for WooCommerce |
Version | 1.6.4 |
Comparing to | |
See all releases |
Code changes from version 1.6.3 to 1.6.4
- admin/class.premium.php +1 -1
- admin/class.support.php +1 -1
- admin/class.yikes-woo-saved-tabs.php +1 -1
- css/repeatable-custom-tabs.css +1 -21
- css/repeatable-custom-tabs.min.css +1 -1
- js/repeatable-custom-tabs-shared.js +5 -2
- js/repeatable-custom-tabs-shared.min.js +1 -1
- readme.txt +6 -1
- yikes-inc-easy-custom-woocommerce-product-tabs.php +3 -3
admin/class.premium.php
CHANGED
@@ -48,7 +48,7 @@
|
|
48 |
YIKES_Custom_Product_Tabs_Settings_Page, // Parent menu item slug
|
49 |
__( 'Go Pro', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), // Tab title name (HTML title)
|
50 |
__( 'Go Pro', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), // Menu page name
|
51 |
-
apply_filters( 'yikes-woo-premium-capability', '
|
52 |
YIKES_Custom_Product_Tabs_Premium_Page, // Page slug (?page=slug-name)
|
53 |
array( $this, 'premium_page' ) // Function to generate page
|
54 |
);
|
48 |
YIKES_Custom_Product_Tabs_Settings_Page, // Parent menu item slug
|
49 |
__( 'Go Pro', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), // Tab title name (HTML title)
|
50 |
__( 'Go Pro', 'yikes-inc-easy-custom-woocommerce-product-tabs' ), // Menu page name
|
51 |
+
apply_filters( 'yikes-woo-premium-capability', 'publish_products' ), // Capability required
|
52 |
YIKES_Custom_Product_Tabs_Premium_Page, // Page slug (?page=slug-name)
|
53 |
array( $this, 'premium_page' ) // Function to generate page
|
54 |
);
|
admin/class.support.php
CHANGED
@@ -40,7 +40,7 @@
|
|
40 |
YIKES_Custom_Product_Tabs_Settings_Page, // Parent menu item slug
|
41 |
__( 'Support', YIKES_Custom_Product_Tabs_Settings_Page ), // Tab title name (HTML title)
|
42 |
__( 'Support', YIKES_Custom_Product_Tabs_Settings_Page ), // Menu page name
|
43 |
-
apply_filters( 'yikes-woo-support-capability', '
|
44 |
YIKES_Custom_Product_Tabs_Support_Page, // Page slug (?page=slug-name)
|
45 |
array( $this, 'support_page' ) // Function to generate page
|
46 |
);
|
40 |
YIKES_Custom_Product_Tabs_Settings_Page, // Parent menu item slug
|
41 |
__( 'Support', YIKES_Custom_Product_Tabs_Settings_Page ), // Tab title name (HTML title)
|
42 |
__( 'Support', YIKES_Custom_Product_Tabs_Settings_Page ), // Menu page name
|
43 |
+
apply_filters( 'yikes-woo-support-capability', 'publish_products' ), // Capability required
|
44 |
YIKES_Custom_Product_Tabs_Support_Page, // Page slug (?page=slug-name)
|
45 |
array( $this, 'support_page' ) // Function to generate page
|
46 |
);
|
admin/class.yikes-woo-saved-tabs.php
CHANGED
@@ -501,7 +501,7 @@ if ( ! class_exists( 'YIKES_Custom_Product_Tabs_Saved_Tabs' ) ) {
|
|
501 |
add_menu_page(
|
502 |
apply_filters( 'yikes-woo-settings-menu-title', __( 'Custom Product Tabs', 'yikes-inc-easy-custom-woocommerce-product-tabs' ) ), // Tab title name (HTML title)
|
503 |
apply_filters( 'yikes-woo-settings-menu-title', __( 'Custom Product Tabs', 'yikes-inc-easy-custom-woocommerce-product-tabs' ) ), // Menu page name
|
504 |
-
apply_filters( 'yikes-woo-settings-menu-capability', '
|
505 |
YIKES_Custom_Product_Tabs_Settings_Page, // Page slug (?page=slug-name)
|
506 |
array( $this, 'generate_yikes_settings_page' ), // Function to generate page
|
507 |
'dashicons-exerpt-view', // Icon
|
501 |
add_menu_page(
|
502 |
apply_filters( 'yikes-woo-settings-menu-title', __( 'Custom Product Tabs', 'yikes-inc-easy-custom-woocommerce-product-tabs' ) ), // Tab title name (HTML title)
|
503 |
apply_filters( 'yikes-woo-settings-menu-title', __( 'Custom Product Tabs', 'yikes-inc-easy-custom-woocommerce-product-tabs' ) ), // Menu page name
|
504 |
+
apply_filters( 'yikes-woo-settings-menu-capability', 'publish_products' ), // Capability required
|
505 |
YIKES_Custom_Product_Tabs_Settings_Page, // Page slug (?page=slug-name)
|
506 |
array( $this, 'generate_yikes_settings_page' ), // Function to generate page
|
507 |
'dashicons-exerpt-view', // Icon
|
css/repeatable-custom-tabs.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
|
2 |
Global
|
3 |
========================================================================== */
|
4 |
-
---------------------------------------------- */
|
5 |
Woo Product Editing Screen
|
6 |
========================================================================== */
|
7 |
font-family: Dashicons;
|
8 |
content: '\f164';
|
9 |
-
---------------------------------------------- */
|
10 |
position: absolute;
|
11 |
right: 1em;
|
12 |
top: 12px;
|
13 |
-
---------------------------------------------- */
|
14 |
border-top: 1px solid #a0a5aa;
|
15 |
-
---------------------------------------------- */
|
16 |
width: 100%;
|
17 |
white-space: nowrap;
|
18 |
-
---------------------------------------------- */
|
19 |
Settings Pages
|
20 |
========================================================================== */
|
21 |
-
---------------------------------------------- */
|
22 |
-
---------------------------------------------- */
|
23 |
-
---------------------------------------------- */
|
24 |
border-top: 1px solid #ccc;
|
25 |
margin-top: 2rem;
|
26 |
padding-top: 1rem;
|
27 |
Promotional Items
|
28 |
========================================================================== */
|
29 |
-
---------------------------------------------- */
|
30 |
-
---------------------------------------------- */
|
31 |
Responsive Styles
|
32 |
========================================================================== */
|
33 |
width: 22%;
|
34 |
text-align: center;
|
35 |
display: inline-block;
|
36 |
}
|
37 |
.button-holder .button-secondary.remove_this_tab {
|
|
|
38 |
Global
|
39 |
========================================================================== */
|
40 |
-
---------------------------------------------- */
|
41 |
Woo Product Editing Screen
|
42 |
========================================================================== */
|
43 |
font-family: Dashicons;
|
44 |
content: '\f164';
|
45 |
-
---------------------------------------------- */
|
46 |
position: absolute;
|
47 |
right: 1em;
|
48 |
top: 12px;
|
49 |
-
---------------------------------------------- */
|
50 |
border-top: 1px solid #a0a5aa;
|
51 |
-
---------------------------------------------- */
|
52 |
width: 100%;
|
53 |
white-space: nowrap;
|
54 |
-
---------------------------------------------- */
|
55 |
Settings Pages
|
56 |
========================================================================== */
|
57 |
-
---------------------------------------------- */
|
58 |
-
---------------------------------------------- */
|
59 |
-
---------------------------------------------- */
|
60 |
border-top: 1px solid #ccc;
|
61 |
margin-top: 2rem;
|
62 |
padding-top: 1rem;
|
63 |
Promotional Items
|
64 |
========================================================================== */
|
65 |
-
---------------------------------------------- */
|
66 |
-
---------------------------------------------- */
|
|
|
1 |
Global
|
2 |
========================================================================== */
|
|
|
3 |
Woo Product Editing Screen
|
4 |
========================================================================== */
|
5 |
font-family: Dashicons;
|
6 |
content: '\f164';
|
|
|
7 |
position: absolute;
|
8 |
right: 1em;
|
9 |
top: 12px;
|
|
|
10 |
border-top: 1px solid #a0a5aa;
|
|
|
11 |
width: 100%;
|
12 |
white-space: nowrap;
|
|
|
13 |
Settings Pages
|
14 |
========================================================================== */
|
|
|
|
|
|
|
15 |
border-top: 1px solid #ccc;
|
16 |
margin-top: 2rem;
|
17 |
padding-top: 1rem;
|
18 |
Promotional Items
|
19 |
========================================================================== */
|
|
|
|
|
20 |
Responsive Styles
|
21 |
========================================================================== */
|
22 |
width: 22%;
|
23 |
text-align: center;
|
24 |
display: inline-block;
|
25 |
}
|
26 |
.button-holder .button-secondary.remove_this_tab {
|
27 |
+
|
28 |
Global
|
29 |
========================================================================== */
|
|
|
30 |
Woo Product Editing Screen
|
31 |
========================================================================== */
|
32 |
font-family: Dashicons;
|
33 |
content: '\f164';
|
|
|
34 |
position: absolute;
|
35 |
right: 1em;
|
36 |
top: 12px;
|
|
|
37 |
border-top: 1px solid #a0a5aa;
|
|
|
38 |
width: 100%;
|
39 |
white-space: nowrap;
|
|
|
40 |
Settings Pages
|
41 |
========================================================================== */
|
|
|
|
|
|
|
42 |
border-top: 1px solid #ccc;
|
43 |
margin-top: 2rem;
|
44 |
padding-top: 1rem;
|
45 |
Promotional Items
|
46 |
========================================================================== */
|
|
|
|
css/repeatable-custom-tabs.min.css
CHANGED
@@ -1 +1 @@
|
|
1 |
-
.loading-wp-editor-gif{margin-left:50%;margin-right:50%}.loading-wp-editor-gif-settings{padding-left:50px}.dashicons.inline-button-dashicons{font-size:15px;vertical-align:bottom}.yikes_woo_tabs_title_field{width:70
|
1 |
+
.loading-wp-editor-gif{margin-left:50%;margin-right:50%}.loading-wp-editor-gif-settings{padding-left:50px}.dashicons.inline-button-dashicons{font-size:15px;vertical-align:bottom}.yikes_woo_tabs_title_field{width:70%!important}#duplicate_this_row{display:none}#woocommerce-product-data ul.wc-tabs li.yikes_wc_product_tabs_tab a::before{font-family:Dashicons;content:'\f164'}#yikes_woocommerce_custom_product_tabs hr{margin:1.5em 0}#yikes_woocommerce_custom_product_tabs .options_group{padding:0 1em}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field{max-width:100%;padding-left:0}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce{display:inline-block;padding-left:0;vertical-align:top;width:80%}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce div.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce .mce-edit-area.mce-container,._yikes_wc_custom_repeatable_product_tabs_tab_content_field .mce-edit-area.mce-container{min-height:10rem}textarea.yikes_woo_custom_editor_styles{border:1px solid #ddd;min-height:10rem}.yikes_woo_custom_editor_styles{position:relative;z-index:9}._yikes_wc_custom_repeatable_product_tabs_tab_content_field{display:inline-block}.button-holder{display:inline-block;padding-top:20px;text-align:center;vertical-align:top;width:18%}.yikes_wc_move_tab_container{margin-top:.5em;text-align:center}.woocommerce_options_panel p.yikes_wc_move_tab{line-height:1;margin:0;padding:0}.button-holder .button-secondary.remove_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer;margin-top:20px}.button-holder .button-secondary.remove_this_tab .dashicons{margin-top:-2px;vertical-align:middle}.move-tab-data-down,.move-tab-data-up{font-size:25px;transition:color .2s}.move-tab-data-down:hover,.move-tab-data-up:hover{cursor:pointer;color:#4c9cce}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field{padding:5px 0 5px!important}#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel .form-field label{font-size:1.1em;font-weight:700;margin:2px 8px 0 0;width:auto}.yikes-woo-custom-tab-divider{display:block;height:2px;margin:2em 0 1.5em;border-bottom:1px solid #0073aa}.yikes-woo-tabs-hidden-how-to-info{display:none;font-family:"Open Sans",sans-serif!important;margin-right:30px}.woocommerce_options_panel p.yikes_woo_how_to_info{margin:9px 0 0 0;padding:0;text-align:right}.yikes-tabs-how-to-toggle{font-size:20px;position:absolute;right:1em;top:12px}.yikes-tabs-how-to-toggle:hover{cursor:pointer}.yikes_woo_how_to_info{padding-left:23px!important}.yikes_woo_save_success{color:#31843f;float:left;padding-top:1em}._yikes_wc_add_tab_center,.add_tabs_container{border-top:1px solid #a0a5aa;margin:2em 2px 0 0;text-align:right;width:100%}.add_tabs_container .button.button-primary{margin-top:10px}._yikes_wc_add_tab_center{border-top:none;text-align:center}.add_tabs_container._yikes_wc_add_tab_center_new .button.button-primary{display:none}#add_another_tab{background:#cc99c2;border-color:#b366a4;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none!important;margin-bottom:10px;margin-top:10px}#_yikes_wc_apply_a_saved_tab{background:#cc99c2;border-color:#b366a4;-webkit-box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);box-shadow:inset 0 1px 0 rgba(255,255,255,.25),0 1px 0 rgba(0,0,0,.15);color:#fff;text-decoration:none!important;margin:10px 0 0 8px}.yikes_woo_using_reusable_tab{opacity:.6;pointer-events:none}.lity-container{background:#fff;border-radius:6px;padding:.6em 1em 1em}.lity-container .lity-content::after{box-shadow:none}[class*=yikes_wc_lity_col]{float:left}.yikes_wc_lity_col_title{width:93%;padding:4px 20px 4px 2px;white-space:nowrap}.yikes_wc_lity_col_select{width:7%;padding-right:8px;padding-top:4px;cursor:pointer}.yikes_wc_lity_header{border-bottom:1px solid #555d66;margin-bottom:.4em;line-height:1;font-size:1.2em;font-weight:700;padding:0 0 8px 0;text-align:center;width:100%}.yikes_wc_lity_header>span{width:100px;text-align:center;white-space:nowrap}.display_saved_tabs_lity{min-width:300px}._yikes_wc_feedback_message{display:none;padding-left:3px}#yikes_woo_tab_error_message{color:red}#yikes_woo_tab_success_message{color:#31843f;margin-top:4px}.yikes_woo_settings_info{font-family:"Open Sans",sans-serif}.woo-ct-admin-page-wrap h1 .dashicons{font-size:30px;height:30px;width:30px}.cptpro-savedtabs-pro-container{display:inline-block;max-width:1200px;vertical-align:top;width:80%}.cptpro-savedtabs-pro-container.cptpro-savedtabs-pro-active{max-width:1400px;width:100%}.cptpro-savedtabs-pro-container.cptpro-savedtabs-single-pro-container.cptpro-savedtabs-pro-active{max-width:1000px;width:100%}.yikes_woo_delete_this_tab{color:#0073aa;cursor:pointer}.yikes_woo_delete_this_tab:hover{color:#00a0d2}.yikes_woo_go_back_url{margin-top:.4rem}.yikes_woo_reusable_tab_title_label{display:inline-block;text-align:right;vertical-align:bottom;width:80px}.yikes_woo_reusable_tab_title>input{display:inline-block;vertical-align:bottom;width:60%}.yikes_woo_reusable_tab_title .yikes_woo_reusable_tab_title_note{padding-left:86px}.yikes_woo_reusable_tab_content>label h3,.yikes_woo_reusable_tab_title>label h3{margin-bottom:6px}.yikes_woo_reusable_tab_content,.yikes_woo_reusable_tab_title{margin-bottom:20px}.wp-core-ui .button-secondary.yikes_woo_delete_this_tab{background:#e35b5b;border-color:#dc3232;box-shadow:0 1px 0 #dc3232;color:#fff;cursor:pointer}.yikes_woo_add_another_tab:hover>a{color:#fff}.yikes_woo_number_of_products{font-weight:700}.yikes_woo_save_and_delete_tab_buttons{border-top:1px solid #ccc;margin-top:2rem;padding-top:1rem}._yikes_wc_title_red_overlay{background-color:#e68989!important}.woocommerce_options_panel p.yikes_wc_override_reusable_tab_container{line-height:1.1;margin-top:0;font-weight:600;font-size:14px;margin-bottom:20px}.woocommerce_options_panel label._yikes_wc_override_reusable_tab_label{margin:0 0 0 4px;float:none}.yikes-woo-all-about-us{display:inline-block;margin:96px 0 0 2rem;text-align:center;vertical-align:top;width:280px}.yikes-woo-all-about-us .yikes-woo-buy-us-body,.yikes-woo-all-about-us .yikes-woo-review-us-body{padding:0 1rem 1rem}.yikes-woo-all-about-us h3{margin:0;padding:8px 12px;color:#fff;background-color:#00a0d2;font-weight:800;font-size:14px}.yikes-woo-review-us .star-container .dashicons.dashicons-star-filled{color:#e6b800}.yikes-woo-review-us .star-container a{text-decoration:none}.yikes-woo-review-us-footer .yikes-love{color:pink}.cptpro-settings-pro-container{max-width:800px}#lightslider{text-align:center}.cptpro-image{max-width:800px;max-height:600px}@media screen and (max-width:1720px){.cptpro-savedtabs-pro-container{max-width:1000px}}@media screen and (max-width:1520px){.cptpro-savedtabs-pro-container{max-width:900px}}@media screen and (max-width:1400px){#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce{width:76%}.button-holder{width:22%}.add_tabs_container{text-align:center}.cptpro-savedtabs-pro-container{max-width:100%;width:100%}.yikes-woo-all-about-us{display:block;margin:1rem 0;width:100%}.postbox.yikes-woo-review-us,.postbox.yikes-woo-buy-us{display:inline-block;vertical-align:top}.postbox.yikes-woo-buy-us{height:234px;margin-left:1rem;min-width:240px;width:240px}}@media screen and (max-width:1200px){#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel p.form-field-tinymce,#yikes_woocommerce_custom_product_tabs.woocommerce_options_panel div.form-field-tinymce{display:block;width:100%}.button-holder{clear:both;display:block;width:100%}.woocommerce_options_panel p.yikes_wc_move_tab{display:inline-block}.move-tab-data-down,.move-tab-data-up{margin-top:-6px}.button-holder .button-secondary.remove_this_tab{margin-top:0}}
|
js/repeatable-custom-tabs-shared.js
CHANGED
@@ -83,7 +83,7 @@
|
|
83 |
wpeditimage_disable_captions: false,
|
84 |
wpeditimage_html5_captions: true,
|
85 |
plugins: 'charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview',
|
86 |
-
resize:
|
87 |
menubar: false,
|
88 |
wpautop: true,
|
89 |
indent: false,
|
@@ -166,7 +166,10 @@
|
|
166 |
menubar: false,
|
167 |
wpautop: true,
|
168 |
indent: false,
|
169 |
-
resize:
|
|
|
|
|
|
|
170 |
toolbar1: 'formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv',
|
171 |
toolbar2: 'strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help',
|
172 |
toolbar3: '',
|
83 |
wpeditimage_disable_captions: false,
|
84 |
wpeditimage_html5_captions: true,
|
85 |
plugins: 'charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview',
|
86 |
+
resize: true,
|
87 |
menubar: false,
|
88 |
wpautop: true,
|
89 |
indent: false,
|
166 |
menubar: false,
|
167 |
wpautop: true,
|
168 |
indent: false,
|
169 |
+
resize: true,
|
170 |
+
theme_advanced_resizing: true,
|
171 |
+
theme_advanced_resize_horizontal: false,
|
172 |
+
statusbar: true,
|
173 |
toolbar1: 'formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv',
|
174 |
toolbar2: 'strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help',
|
175 |
toolbar3: '',
|
js/repeatable-custom-tabs-shared.min.js
CHANGED
@@ -1 +1 @@
|
|
1 |
-
function yikes_woo_get_wp_editor_ajax(e,t,s){var i={action:"yikes_woo_get_wp_editor",textarea_id:e,tab_content:s,security_nonce:repeatable_custom_tabs_shared.get_wp_editor_security_nonce};jQuery.post(repeatable_custom_tabs_shared.ajaxurl,i,function(t){if(yikes_woo_toggle_controls("enable"),void 0!==t.success&&!1===t.success)return jQuery("."+e+"_field").html("<p>"+repeatable_custom_tabs_shared.get_wp_editor_failure_message+"</p>"),!1;jQuery("."+e+"_field").html(t).addClass("_yikes_wc_custom_repeatable_product_tabs_tab_content_field _yikes_wc_custom_repeatable_product_tabs_tab_content_field_dynamic"),"undefined"!=typeof QTags&&(quicktags(e),QTags._buttonsInit()),tinymce.init({branding:!1,selector:"#"+e,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",resize
|
1 |
+
function yikes_woo_get_wp_editor_ajax(e,t,s){var i={action:"yikes_woo_get_wp_editor",textarea_id:e,tab_content:s,security_nonce:repeatable_custom_tabs_shared.get_wp_editor_security_nonce};jQuery.post(repeatable_custom_tabs_shared.ajaxurl,i,function(t){if(yikes_woo_toggle_controls("enable"),void 0!==t.success&&!1===t.success)return jQuery("."+e+"_field").html("<p>"+repeatable_custom_tabs_shared.get_wp_editor_failure_message+"</p>"),!1;jQuery("."+e+"_field").html(t).addClass("_yikes_wc_custom_repeatable_product_tabs_tab_content_field _yikes_wc_custom_repeatable_product_tabs_tab_content_field_dynamic"),"undefined"!=typeof QTags&&(quicktags(e),QTags._buttonsInit()),tinymce.init({branding:!1,selector:"#"+e,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",resize:!0,menubar:!1,wpautop:!0,indent:!1,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",body_class:"id post-type-post post-status-publish post-format-standard",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333"})}}),"undefined"!=typeof tinymce&&tinymce.execCommand("mceAddEditor",!1,e);var s=yikes_woo_get_tab_number_from_id(e);return jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+s).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",s)),!0})}function yikes_woo_get_wp_editor_foureight(e,t,s){if(!wp&&!wp.editor&&!wp.editor.initialize)return yikes_woo_get_wp_editor_ajax(e,t,s),!1;yikes_woo_toggle_controls("enable");var i={tinymce:{branding:!1,theme:"modern",skin:"lightgray",language:"en",formats:{alignleft:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"left"}},{selector:"img,table,dl.wp-caption",classes:"alignleft"}],aligncenter:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"center"}},{selector:"img,table,dl.wp-caption",classes:"aligncenter"}],alignright:[{selector:"p,h1,h2,h3,h4,h5,h6,td,th,div,ul,ol,li",styles:{textAlign:"right"}},{selector:"img,table,dl.wp-caption",classes:"alignright"}],strikethrough:{inline:"del"}},relative_urls:!1,remove_script_host:!1,convert_urls:!1,browser_spellcheck:!0,fix_list_elements:!0,entities:"38,amp,60,lt,62,gt",entity_encoding:"raw",keep_styles:!1,paste_webkit_styles:"font-weight font-style color",preview_styles:"font-family font-size font-weight font-style text-decoration text-transform",end_container_on_empty_block:!0,wpeditimage_disable_captions:!1,wpeditimage_html5_captions:!0,plugins:"charmap,colorpicker,hr,lists,media,paste,tabfocus,textcolor,fullscreen,wordpress,wpautoresize,wpeditimage,wpemoji,wpgallery,wplink,wpdialogs,wptextpattern,wpview",menubar:!1,wpautop:!0,indent:!1,resize:!0,theme_advanced_resizing:!0,theme_advanced_resize_horizontal:!1,statusbar:!0,toolbar1:"formatselect,bold,italic,bullist,numlist,blockquote,alignleft,aligncenter,alignright,link,unlink,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help",toolbar3:"",toolbar4:"",tabfocus_elements:":prev,:next",setup:function(e){e.on("init",function(){this.getBody().style.fontFamily='Georgia, "Times New Roman", "Bitstream Charter", Times, serif',this.getBody().style.fontSize="16px",this.getBody().style.color="#333",s.length>0&&this.setContent(s)})}},quicktags:{buttons:"strong,em,link,block,del,ins,img,ul,ol,li,code,more,close"}};wp.editor.initialize(e,i);var o=yikes_woo_get_tab_number_from_id(e);jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).hasClass("yikes_woo_disable_this_tab")&&(jQuery("#_yikes_wc_custom_repeatable_product_tabs_tab_title_"+o).removeClass("yikes_woo_disable_this_tab"),yikes_woo_toggle_reusable_override_overlay("disable",o));var a='<div id="wp-'+e+'-media-buttons" class="wp-media-buttons"> \t\t\t<button type="button" id="insert-media-button" class="button insert-media add_media" data-editor="'+e+'"><span class="wp-media-buttons-icon"></span> Add Media</button>\t\t</div>';return jQuery("#wp-_yikes_wc_custom_repeatable_product_tabs_tab_content_"+o+"-wrap > .wp-editor-tools").prepend(a),!0}function yikes_woo_get_tab_number_from_id(e){return e.slice(e.lastIndexOf("_")+1)}function yikes_woo_toggle_controls(e){"disable"===e?(jQuery(".remove_this_tab").attr("disabled","disabled"),jQuery("#add_another_tab").attr("disabled","disabled"),jQuery("._yikes_wc_apply_a_saved_tab").attr("disabled","disabled"),jQuery(".move-tab-data-up").hide(),jQuery(".move-tab-data-down").hide()):(jQuery(".remove_this_tab").removeAttr("disabled"),jQuery("#add_another_tab").removeAttr("disabled"),jQuery("._yikes_wc_apply_a_saved_tab").removeAttr("disabled"),jQuery(".move-tab-data-up").show(),jQuery(".move-tab-data-down").show())}function yikes_woo_display_feedback_messages(e,t,s,i){var o={inline:!1,classes:[],css_string:"",time:3e3},a=jQuery.extend(o,i);jQuery("._yikes_wc_feedback_message").remove();var l="";a.css_string.length>0&&(l=a.css_string);var n=o.classes;a.classes.length>0&&a.classes.each(function(e,t){n+=t});var r="";r=!0===a.inline?'<span id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</span>":'<p id="'+t+'" class="_yikes_wc_feedback_message '+n+'" style="'+l+'">'+s+"</p>",jQuery(e).after(r),jQuery("#"+t).fadeIn(500).delay(a.time).fadeOut(500)}function yikes_woo_toggle_how_to(){jQuery(".yikes-woo-tabs-hidden-how-to-info").slideToggle("fast",function(){jQuery("#yikes-woo-help-me-icon").hasClass("dashicons-editor-help")?jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-editor-help").addClass("dashicons-dismiss"):jQuery("#yikes-woo-help-me-icon").removeClass("dashicons-dismiss").addClass("dashicons-editor-help")})}function yikes_woo_get_content_from_wysiwyg(e){var t="";return"undefined"!==tinymce&&null!==tinymce.get(e)?0===(t=tinymce.get(e).getContent()).length&&jQuery("#"+e).val().length>0&&(t=jQuery("#"+e).val()):t=jQuery("#"+e).val(),t}function yikes_woo_set_content_for_wysiwyg(e,t){"undefined"!==tinymce&&null!==tinymce.get(e)?(tinymce.get(e).setContent(t),jQuery("#"+e).val(t)):jQuery("#"+e).val(t)}
|
readme.txt
CHANGED
@@ -4,7 +4,7 @@ Donate link: http://yikesinc.com
|
|
4 |
Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9.1
|
7 |
-
Stable tag: 1.6.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -75,6 +75,11 @@ Yes! Since v1.4 we've added the necessary code to ensure the custom tab data is
|
|
75 |
|
76 |
== Changelog ==
|
77 |
|
|
|
|
|
|
|
|
|
|
|
78 |
= 1.6.3 - November 1st, 2017 =
|
79 |
* Declaring compatibility with WooCommerce and WordPress
|
80 |
|
4 |
Tags: woocommerce, product tabs, repeatable, duplicate, customize, custom, tabs, product, woo, commerce
|
5 |
Requires at least: 3.8
|
6 |
Tested up to: 4.9.1
|
7 |
+
Stable tag: 1.6.4
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
75 |
|
76 |
== Changelog ==
|
77 |
|
78 |
+
= 1.6.4 - January 9th, 2018 =
|
79 |
+
* Happy new year!
|
80 |
+
* The editor is now vertically resizeable.
|
81 |
+
* The default capability for interacting with saved tabs is now Publish Products (publish_products)
|
82 |
+
|
83 |
= 1.6.3 - November 1st, 2017 =
|
84 |
* Declaring compatibility with WooCommerce and WordPress
|
85 |
|
yikes-inc-easy-custom-woocommerce-product-tabs.php
CHANGED
@@ -5,12 +5,12 @@
|
|
5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
6 |
* Author: YIKES, Inc.
|
7 |
* Author URI: http://www.yikesinc.com
|
8 |
-
* Version: 1.6.
|
9 |
* Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
|
10 |
* Domain Path: languages/
|
11 |
*
|
12 |
* WC requires at least: 3.0.0
|
13 |
-
* WC tested up to: 3.2.
|
14 |
*
|
15 |
* Copyright: (c) 2014-2015 YIKES Inc.
|
16 |
*
|
@@ -107,7 +107,7 @@
|
|
107 |
* Define the plugin's version
|
108 |
*/
|
109 |
if ( ! defined( 'YIKES_Custom_Product_Tabs_Version' ) ) {
|
110 |
-
define( 'YIKES_Custom_Product_Tabs_Version', '1.6.
|
111 |
}
|
112 |
|
113 |
/**
|
5 |
* Description: Extend WooCommerce to add and manage custom product tabs. Create as many product tabs as needed per product.
|
6 |
* Author: YIKES, Inc.
|
7 |
* Author URI: http://www.yikesinc.com
|
8 |
+
* Version: 1.6.4
|
9 |
* Text Domain: yikes-inc-easy-custom-woocommerce-product-tabs
|
10 |
* Domain Path: languages/
|
11 |
*
|
12 |
* WC requires at least: 3.0.0
|
13 |
+
* WC tested up to: 3.2.6
|
14 |
*
|
15 |
* Copyright: (c) 2014-2015 YIKES Inc.
|
16 |
*
|
107 |
* Define the plugin's version
|
108 |
*/
|
109 |
if ( ! defined( 'YIKES_Custom_Product_Tabs_Version' ) ) {
|
110 |
+
define( 'YIKES_Custom_Product_Tabs_Version', '1.6.4' );
|
111 |
}
|
112 |
|
113 |
/**
|