Changeset 3187292
- Timestamp:
- 11/13/2024 09:40:44 AM (17 months ago)
- Location:
- block-for-woo-product-table
- Files:
-
- 8 added
- 6 deleted
- 36 edited
- 1 copied
-
tags/1.0.11 (copied) (copied from block-for-woo-product-table/trunk)
-
tags/1.0.11/.git/FETCH_HEAD (modified) (1 diff)
-
tags/1.0.11/.git/HEAD (modified) (1 diff)
-
tags/1.0.11/.git/index (modified) (previous)
-
tags/1.0.11/.git/logs/HEAD (modified) (1 diff)
-
tags/1.0.11/.git/logs/refs/remotes/origin/block-redesign (modified) (1 diff)
-
tags/1.0.11/.git/logs/refs/remotes/origin/master (modified) (1 diff)
-
tags/1.0.11/.git/logs/refs/remotes/origin/trello-478--free-trial-language (modified) (1 diff)
-
tags/1.0.11/.git/logs/refs/remotes/origin/update/compatibility-changes (modified) (1 diff)
-
tags/1.0.11/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.idx (deleted)
-
tags/1.0.11/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.pack (deleted)
-
tags/1.0.11/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.rev (deleted)
-
tags/1.0.11/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.idx (added)
-
tags/1.0.11/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.pack (added)
-
tags/1.0.11/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.rev (added)
-
tags/1.0.11/.git/refs/remotes/origin/master (modified) (1 diff)
-
tags/1.0.11/.git/refs/tags/1.0.11 (added)
-
tags/1.0.11/.gitignore (modified) (1 diff)
-
tags/1.0.11/assets/js/editor.js (modified) (3 diffs)
-
tags/1.0.11/assets/js/editor.min.js (modified) (1 diff)
-
tags/1.0.11/block-for-woo-product-table.php (modified) (3 diffs)
-
tags/1.0.11/package.json (modified) (1 diff)
-
tags/1.0.11/readme.txt (modified) (4 diffs)
-
tags/1.0.11/src/class-block.php (modified) (3 diffs)
-
tags/1.0.11/src/class-compat.php (modified) (1 diff)
-
tags/1.0.11/src/class-plugin.php (modified) (1 diff)
-
trunk/.git/FETCH_HEAD (modified) (1 diff)
-
trunk/.git/HEAD (modified) (1 diff)
-
trunk/.git/index (modified) (previous)
-
trunk/.git/logs/HEAD (modified) (1 diff)
-
trunk/.git/logs/refs/remotes/origin/block-redesign (modified) (1 diff)
-
trunk/.git/logs/refs/remotes/origin/master (modified) (1 diff)
-
trunk/.git/logs/refs/remotes/origin/trello-478--free-trial-language (modified) (1 diff)
-
trunk/.git/logs/refs/remotes/origin/update/compatibility-changes (modified) (1 diff)
-
trunk/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.idx (deleted)
-
trunk/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.pack (deleted)
-
trunk/.git/objects/pack/pack-af8ee60e62b819a08a2fa03f6e894742a78af347.rev (deleted)
-
trunk/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.idx (added)
-
trunk/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.pack (added)
-
trunk/.git/objects/pack/pack-cd22e391d4d14647d81eb191f486c73a7b4e155e.rev (added)
-
trunk/.git/refs/remotes/origin/master (modified) (1 diff)
-
trunk/.git/refs/tags/1.0.11 (added)
-
trunk/.gitignore (modified) (1 diff)
-
trunk/assets/js/editor.js (modified) (3 diffs)
-
trunk/assets/js/editor.min.js (modified) (1 diff)
-
trunk/block-for-woo-product-table.php (modified) (3 diffs)
-
trunk/package.json (modified) (1 diff)
-
trunk/readme.txt (modified) (4 diffs)
-
trunk/src/class-block.php (modified) (3 diffs)
-
trunk/src/class-compat.php (modified) (1 diff)
-
trunk/src/class-plugin.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
block-for-woo-product-table/tags/1.0.11/.git/FETCH_HEAD
r3076543 r3187292 1 1 0667d5c0f615e2ade3284ed989af5cd5f16244a0 branch 'block-redesign' of https://github.com/barn2plugins/block-for-woo-product-table 2 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27branch 'master' of https://github.com/barn2plugins/block-for-woo-product-table2 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 branch 'master' of https://github.com/barn2plugins/block-for-woo-product-table 3 3 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 branch 'trello-478--free-trial-language' of https://github.com/barn2plugins/block-for-woo-product-table 4 4 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 branch 'update/compatibility-changes' of https://github.com/barn2plugins/block-for-woo-product-table 5 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 not-for-merge tag '1.0.11' of https://github.com/barn2plugins/block-for-woo-product-table 5 6 74b67b8ee5c36a9b0c761779800ad0d71ebb9362 not-for-merge tag '1.0.2' of https://github.com/barn2plugins/block-for-woo-product-table 6 7 d8199e55b21d73344125923e181a7a2663c8ae3c not-for-merge tag '1.0.3' of https://github.com/barn2plugins/block-for-woo-product-table -
block-for-woo-product-table/tags/1.0.11/.git/HEAD
r3076543 r3187292 1 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 1 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/tags/1.0.11/.git/logs/HEAD
r3076543 r3187292 1 0000000000000000000000000000000000000000 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 runner <runner@fv-az1153-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830 +0000 checkout: moving from master to 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e271 0000000000000000000000000000000000000000 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 checkout: moving from master to b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/tags/1.0.11/.git/logs/refs/remotes/origin/block-redesign
r3076543 r3187292 1 0000000000000000000000000000000000000000 0667d5c0f615e2ade3284ed989af5cd5f16244a0 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 0667d5c0f615e2ade3284ed989af5cd5f16244a0 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/tags/1.0.11/.git/logs/refs/remotes/origin/master
r3076543 r3187292 1 0000000000000000000000000000000000000000 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 runner <runner@fv-az1153-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/tags/1.0.11/.git/logs/refs/remotes/origin/trello-478--free-trial-language
r3076543 r3187292 1 0000000000000000000000000000000000000000 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/tags/1.0.11/.git/logs/refs/remotes/origin/update/compatibility-changes
r3076543 r3187292 1 0000000000000000000000000000000000000000 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/tags/1.0.11/.git/refs/remotes/origin/master
r3076543 r3187292 1 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 1 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/tags/1.0.11/.gitignore
r2879989 r3187292 10 10 package-lock.json 11 11 config.json 12 block-for-woo-product-table.zip -
block-for-woo-product-table/tags/1.0.11/assets/js/editor.js
r2726306 r3187292 30 30 31 31 let description = __( 'Display a searchable table listing any or all of your products.', 'block-for-woo-product-table' ); 32 if ( typeof wcptbInvalid!== 'undefined' ) {32 if ( typeof info !== 'undefined' ) { 33 33 description = [ description, ' ', el( 34 34 'strong', … … 92 92 let blockStructure; 93 93 94 if ( typeof wcptbInvalid!== 'undefined' ) {94 if ( typeof info !== 'undefined' ) { 95 95 96 96 let messageSplit = wcptbInvalid.message.split('%s'), message; … … 157 157 { className: 'block-description' }, 158 158 [ 159 __( 'Lists products in a table view using the WooCommerce Product Table plugin. ', 'block-for-woo-product-table' ),159 __( 'Lists products in a table view using the WooCommerce Product Table plugin. For more features, use the ', 'block-for-woo-product-table' ), 160 160 el( 161 161 'a', 162 { href: 'https://barn2.co.uk/kb/woocommerce-product-table-gutenberg/', target: '_blank' },163 __( ' Documentation', 'block-for-woo-product-table' )162 { href: info.table_builder, target: '_blank' }, 163 __( 'central table builder.', 'block-for-woo-product-table' ) 164 164 ) 165 165 ] -
block-for-woo-product-table/tags/1.0.11/assets/js/editor.min.js
r2726306 r3187292 3 3 * Copyright 2021 Barn2 Plugins 4 4 */ 5 "use strict";function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}(function(c,e){var i=c.i18n.__,t=c.element,s=t.Fragment,r=t.createElement,u=t.RawHTML,f=c.blockEditor.InspectorControls,o=c.components,d=o.Placeholder,b=o.Icon,p=e.ProductTableColumns,m=e.ProductSelection,v=e.SettingsPanel,y=r,g=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},c.element.createElement("path",{d:"M4,21h15.893c1.103,0,2-0.897,2-2V7V5v0l0,0c0-1.103-0.897-2-2-2H4C2.897,3,2,3.897,2,5v14C2,20.103,2.897,21,4,21z M4,19 v-5h4v5H4z M14,7v5h-4V7H14z M8,7v5H4V7H8z M10,19v-5h4v5H10z M16,19v-5h3.894v5H16z M19.893,12H16V7h3.893V12z"})),n=i("Display a searchable table listing any or all of your products.","block-for-woo-product-table");"undefined"!=typeof wcptbInvalid&&(n=[n," ",y("strong",{},i("Warning! This block is an add-on for the WooCommerce Product Table plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.","block-for-woo-product-table"))]),c.blocks.registerBlockType("barn2/wc-product-table",{title:i("WooCommerce Product Table","block-for-woo-product-table"),description:n,icon:g,category:"woocommerce",attributes:{columns:{type:"array",default:[]},filters:{type:"array",default:[]},settings:{type:"array",default:[]},preview:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,align:["wide","full"]},example:{attributes:{preview:!0}},edit:function(e){var t=e.attributes,r=e.setAttributes;if(t.preview)return y(s,{},y("img",{src:wcptbPreviewImage.src}));var o,n=c.element.createRef();if("undefined"!=typeof wcptbInvalid){var a,l=wcptbInvalid.message.split("%s");a=1<l.length?[l[0],y("a",{href:wcptbInvalid.link,target:"_blank"},wcptbInvalid.link_text),l[1]]:l[0],o=y(d,{icon:g,label:"Product Table",instructions:a})}else o=y(s,null,[y(f,null,[y(v,{onChange:function(e){r({settings:e})},attributes:t})]),y("div",{className:"components-placeholder barn2-wc-product-table-block"},[y("div",{className:"components-placeholder__label"},[y(b,{icon:g,alt:""}),i("Product Table","block-for-woo-product-table")]),y("div",{className:"components-placeholder__fieldset"},[y("span",{className:"block-description"},[i("Lists products in a table view using the WooCommerce Product Table plugin. ","block-for-woo-product-table"),y("a",{href:"https://barn2.co.uk/kb/woocommerce-product-table-gutenberg/",target:"_blank"},i("Documentation","block-for-woo-product-table"))]),y("div",{className:"barn2-wc-product-table-block__options"},[y(p,{columns:t.columns,saveColumns:function(e){r({columns:e})}}),y(m,{attributes:t,saveFilters:function(e){r({filters:e})},ref:n})])],y("p",{className:"additional-settings-notice"},i("You can configure additional settings in the 'Block' tab in the sidebar.","block-for-woo-product-table")))])]);return o},save:function(e){var t="",r=e.attributes;if(r){if(r.columns&&r.columns.length&&(t+=' columns="'+r.columns.join(",")+'"'),r.filters&&r.filters.length){var o,n=_createForOfIteratorHelper(r.filters);try{for(n.s();!(o=n.n()).done;){var a=o.value;t+=" ".concat(a.key,'="').concat(a.value,'"')}}catch(e){n.e(e)}finally{n.f()}}if(r.settings&&r.settings.length){var l,c=_createForOfIteratorHelper(r.settings);try{for(c.s();!(l=c.n()).done;){var i=l.value;if(""!==i.value)if("additional"===i.key)t="".concat(i.value," ")+t;else if("customFilters"!==i.key){if("filters"===i.key&&"custom"===i.value)continue;t+=" ".concat(i.key,'="').concat(i.value,'"')}else t+=' filters="'.concat(i.value,'"')}}catch(e){c.e(e)}finally{c.f()}}(t=t.trim()).length&&(t=" "+t)}return y(u,{},"[product_table".concat(t,"]"))}})})(window.wp,window.productTableBlockComponents);5 "use strict";function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}(function(c,e){var i=c.i18n.__,t=c.element,s=t.Fragment,r=t.createElement,u=t.RawHTML,f=c.blockEditor.InspectorControls,o=c.components,d=o.Placeholder,b=o.Icon,p=e.ProductTableColumns,m=e.ProductSelection,v=e.SettingsPanel,y=r,g=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},c.element.createElement("path",{d:"M4,21h15.893c1.103,0,2-0.897,2-2V7V5v0l0,0c0-1.103-0.897-2-2-2H4C2.897,3,2,3.897,2,5v14C2,20.103,2.897,21,4,21z M4,19 v-5h4v5H4z M14,7v5h-4V7H14z M8,7v5H4V7H8z M10,19v-5h4v5H10z M16,19v-5h3.894v5H16z M19.893,12H16V7h3.893V12z"})),n=i("Display a searchable table listing any or all of your products.","block-for-woo-product-table");"undefined"!=typeof wcptbInvalid&&(n=[n," ",y("strong",{},i("Warning! This block is an add-on for the WooCommerce Product Table plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.","block-for-woo-product-table"))]),c.blocks.registerBlockType("barn2/wc-product-table",{title:i("WooCommerce Product Table","block-for-woo-product-table"),description:n,icon:g,category:"woocommerce",attributes:{columns:{type:"array",default:[]},filters:{type:"array",default:[]},settings:{type:"array",default:[]},preview:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,align:["wide","full"]},example:{attributes:{preview:!0}},edit:function(e){var t=e.attributes,r=e.setAttributes;if(t.preview)return y(s,{},y("img",{src:wcptbPreviewImage.src}));var o,n=c.element.createRef();if("undefined"!=typeof wcptbInvalid){var a,l=wcptbInvalid.message.split("%s");a=1<l.length?[l[0],y("a",{href:wcptbInvalid.link,target:"_blank"},wcptbInvalid.link_text),l[1]]:l[0],o=y(d,{icon:g,label:"Product Table",instructions:a})}else o=y(s,null,[y(f,null,[y(v,{onChange:function(e){r({settings:e})},attributes:t})]),y("div",{className:"components-placeholder barn2-wc-product-table-block"},[y("div",{className:"components-placeholder__label"},[y(b,{icon:g,alt:""}),i("Product Table","block-for-woo-product-table")]),y("div",{className:"components-placeholder__fieldset"},[y("span",{className:"block-description"},[i("Lists products in a table view using the WooCommerce Product Table plugin. For more features, use the ","block-for-woo-product-table"),y("a",{href:info.table_builder,target:"_blank"},i("central table builder","block-for-woo-product-table"))]),y("div",{className:"barn2-wc-product-table-block__options"},[y(p,{columns:t.columns,saveColumns:function(e){r({columns:e})}}),y(m,{attributes:t,saveFilters:function(e){r({filters:e})},ref:n})])],y("p",{className:"additional-settings-notice"},i("You can configure additional settings in the 'Block' tab in the sidebar.","block-for-woo-product-table")))])]);return o},save:function(e){var t="",r=e.attributes;if(r){if(r.columns&&r.columns.length&&(t+=' columns="'+r.columns.join(",")+'"'),r.filters&&r.filters.length){var o,n=_createForOfIteratorHelper(r.filters);try{for(n.s();!(o=n.n()).done;){var a=o.value;t+=" ".concat(a.key,'="').concat(a.value,'"')}}catch(e){n.e(e)}finally{n.f()}}if(r.settings&&r.settings.length){var l,c=_createForOfIteratorHelper(r.settings);try{for(c.s();!(l=c.n()).done;){var i=l.value;if(""!==i.value)if("additional"===i.key)t="".concat(i.value," ")+t;else if("customFilters"!==i.key){if("filters"===i.key&&"custom"===i.value)continue;t+=" ".concat(i.key,'="').concat(i.value,'"')}else t+=' filters="'.concat(i.value,'"')}}catch(e){c.e(e)}finally{c.f()}}(t=t.trim()).length&&(t=" "+t)}return y(u,{},"[product_table".concat(t,"]"))}})})(window.wp,window.productTableBlockComponents); -
block-for-woo-product-table/tags/1.0.11/block-for-woo-product-table.php
r3076543 r3187292 14 14 * Plugin URI: https://barn2.co.uk/wordpress-plugins/block-for-woo-product-table/ 15 15 * Description: Adds an editor block to the WooCommerce Product Table plugin by Barn2, making it quick and easy to create product tables with the block editor. 16 * Version: 1.0.1 016 * Version: 1.0.11 17 17 * Author: Barn2 Plugins 18 18 * Author URI: https://barn2.co.uk … … 21 21 * 22 22 * WC requires at least: 7.2 23 * WC tested up to: 8.8.2 23 * WC tested up to: 9.3.3 24 * Requires at least: 6.1.0 25 * Requires PHP: 7.4 24 26 * 25 27 * Copyright: Barn2 Media Ltd … … 34 36 } 35 37 36 const PLUGIN_VERSION = '1.0.1 0';38 const PLUGIN_VERSION = '1.0.11'; 37 39 const PLUGIN_FILE = __FILE__; 38 40 -
block-for-woo-product-table/tags/1.0.11/package.json
r3076543 r3187292 1 1 { 2 2 "name": "wc-product-table-block", 3 "version": "1.0.1 0",3 "version": "1.0.11", 4 4 "description": "Build package for plugins", 5 5 "main": "gulpfile.js", -
block-for-woo-product-table/tags/1.0.11/readme.txt
r3076543 r3187292 5 5 Tags: gutenberg block, blocks, block, product table, order form 6 6 Requires at least: 6.1 7 Tested up to: 6. 5.27 Tested up to: 6.7 8 8 Requires PHP: 7.4 9 Stable tag: 1.0.1 09 Stable tag: 1.0.11 10 10 License: GPL-3.0 11 11 License URI: https://www.gnu.org/licenses/gpl.html … … 15 15 == Description == 16 16 17 * Gutenberg Block for WooCommerce Product Table* adds a user-friendly editor block to the [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) plugin by Barn2, providing an easier way for Gutenberg users to create product tables. It requires WooCommerce Product Table (available separately) to work.17 *Note: Since building this block plugin, we have added an interactive table builder to the main WooCommerce Product Table plugin. This makes it easy to create product tables and insert them into the block editor or any page builder. While you can still use the block plugin, it is no longer actively being developed and we recommend using the built-in table builder instead, which has more features.* 18 18 19 [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) lists products in a quick order form layout designed to increase your sales and average order value. Instead of having to visit a separate page for each product, customers can select products, quantities and variations from the product table and quickly add them to the cart. 19 Gutenberg Block for WooCommerce Product Table adds a user-friendly editor block to the [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) plugin by Barn2, providing an easier way for Gutenberg users to create product tables. It requires WooCommerce Product Table (available separately) to work. 20 21 WooCommerce Product Table lists products in a quick order form layout designed to increase your sales and average order value. Instead of having to visit a separate page for each product, customers can select products, quantities and variations from the product table and quickly add them to the cart. 20 22 21 23 WooCommerce Product Table is highly flexible and you can choose which products to include, a wide range of column options, filters, instant AJAX search, add to cart button styles, and more. 22 24 23 *Gutenberg Block for WooCommerce Product Table* makes it easy to insert product tables anywhere on your site using the Gutenberg editor. This gives you full control over your product tables , without having to use shortcodes.25 *Gutenberg Block for WooCommerce Product Table* makes it easy to insert product tables anywhere on your site using the Gutenberg editor. This gives you full control over your product tables. 24 26 25 27 https://www.youtube.com/watch?v=yEsK8KEi0mk … … 76 78 77 79 = Can I create product tables if I’m not using Gutenberg? = 78 If you’re not using Gutenberg then you can use [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) without Gutenberg Block for WooCommerce Product Table. 79 80 You can create product tables by adding the [[product_table] shortcode](https://barn2.co.uk/kb/product-table-options/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) anywhere on your site, including text, HTML or shortcode blocks in other page builders such as Elementor, Divi Builder and Visual Composer. 81 82 There are also options on the WooCommerce Product Table plugin settings page which automatically enable the product table layout on your shop and/or product category pages. 80 Yes, [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) comes with a built-in table builder which works with all WordPress editors and page builders. Simply install WooCommerce Product Table and go to *Products > Product Tables > Add New* to create tables. The final page of the table builder provides a shortcode which you can use to insert the table anywhere on your site. You can also enable tables automatically on your main shop page templates, without having to use a block or shortcode. 83 81 84 82 == Screenshots == … … 89 87 90 88 == Changelog == 89 90 = 1.0.11 = 91 * Tested with the latest version of WordPress and WooCommerce 92 * Added the integration with PHP 8.3 93 * Integrated with the latest version of WooCommerce Product Table 94 95 <!-- more --> 91 96 92 97 = 1.0.10 = -
block-for-woo-product-table/tags/1.0.11/src/class-block.php
r2726306 r3187292 11 11 namespace Barn2\Plugin\WC_Product_Table_Block; 12 12 13 use Barn2\Plugin\WC_Product_Table\Util\Columns _Util;13 use Barn2\Plugin\WC_Product_Table\Util\Columns as Columns_Util; 14 14 15 15 /** … … 113 113 ); 114 114 115 wp_localize_script( 116 'barn2-wc-product-table-block', 117 'info', 118 [ 119 'table_builder' => admin_url( 'edit.php?post_type=product&page=tables&add-new' ) 120 ] 121 ); 122 123 115 124 if ( ! Plugin::is_wpt_safe() ) { 116 125 … … 122 131 'message' => __( 'Warning! This block is an add-on for the %s plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.', 'block-for-woo-product-table' ), 123 132 'link_text' => __( 'WooCommerce Product Table', 'block-for-woo-product-table' ), 124 'link' => 'https://barn2.co .uk/wordpress-plugins/woocommerce-product-table/?utm_source=plugin&utm_medium=wptblock&utm_campaign=wptaddblock&utm_content=wptblockdashboard'133 'link' => 'https://barn2.com/wordpress-plugins/woocommerce-product-table/?utm_source=plugin&utm_medium=wptblock&utm_campaign=wptaddblock&utm_content=wptblockdashboard', 125 134 ] 126 135 ); -
block-for-woo-product-table/tags/1.0.11/src/class-compat.php
r2448554 r3187292 91 91 public static function wcpt_version() { 92 92 93 return Plugin::is_wpt_safe() ? \Barn2\Plugin\WC_Product_Table\PLUGIN_VERSION : null;93 return Plugin::is_wpt_safe() ? \Barn2\Plugin\WC_Product_Table\PLUGIN_VERSION : ''; 94 94 95 95 } -
block-for-woo-product-table/tags/1.0.11/src/class-plugin.php
r2726306 r3187292 100 100 return $this->is_php_version_safe() 101 101 && $this->is_wordpress_safe() 102 && $this->is_woocommerce_safe() ;103 //&& $this->is_wpt_safe();102 && $this->is_woocommerce_safe() 103 && $this->is_wpt_safe(); 104 104 } 105 105 -
block-for-woo-product-table/trunk/.git/FETCH_HEAD
r3076543 r3187292 1 1 0667d5c0f615e2ade3284ed989af5cd5f16244a0 branch 'block-redesign' of https://github.com/barn2plugins/block-for-woo-product-table 2 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27branch 'master' of https://github.com/barn2plugins/block-for-woo-product-table2 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 branch 'master' of https://github.com/barn2plugins/block-for-woo-product-table 3 3 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 branch 'trello-478--free-trial-language' of https://github.com/barn2plugins/block-for-woo-product-table 4 4 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 branch 'update/compatibility-changes' of https://github.com/barn2plugins/block-for-woo-product-table 5 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 not-for-merge tag '1.0.11' of https://github.com/barn2plugins/block-for-woo-product-table 5 6 74b67b8ee5c36a9b0c761779800ad0d71ebb9362 not-for-merge tag '1.0.2' of https://github.com/barn2plugins/block-for-woo-product-table 6 7 d8199e55b21d73344125923e181a7a2663c8ae3c not-for-merge tag '1.0.3' of https://github.com/barn2plugins/block-for-woo-product-table -
block-for-woo-product-table/trunk/.git/HEAD
r3076543 r3187292 1 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 1 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/trunk/.git/logs/HEAD
r3076543 r3187292 1 0000000000000000000000000000000000000000 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 runner <runner@fv-az1153-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830 +0000 checkout: moving from master to 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e271 0000000000000000000000000000000000000000 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 checkout: moving from master to b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/trunk/.git/logs/refs/remotes/origin/block-redesign
r3076543 r3187292 1 0000000000000000000000000000000000000000 0667d5c0f615e2ade3284ed989af5cd5f16244a0 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 0667d5c0f615e2ade3284ed989af5cd5f16244a0 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/trunk/.git/logs/refs/remotes/origin/master
r3076543 r3187292 1 0000000000000000000000000000000000000000 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 runner <runner@fv-az1153-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/trunk/.git/logs/refs/remotes/origin/trello-478--free-trial-language
r3076543 r3187292 1 0000000000000000000000000000000000000000 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 f59f8d53bcc2153c2f98e5f2ec41b0ab7dd9d8b5 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/trunk/.git/logs/refs/remotes/origin/update/compatibility-changes
r3076543 r3187292 1 0000000000000000000000000000000000000000 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 runner <runner@fv-az11 53-853.j2xen23xrnaetdgy434mngmvif.cx.internal.cloudapp.net> 1713969830+0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head1 0000000000000000000000000000000000000000 195fa274d6c20cde4648bb8ffc5bb08c53d1b297 runner <runner@fv-az1116-512.iopidld3wkhelkdxw22dv3nexc.bx.internal.cloudapp.net> 1731490825 +0000 fetch --tags --prune --progress --no-recurse-submodules origin +refs/heads/*:refs/remotes/origin/*: storing head -
block-for-woo-product-table/trunk/.git/refs/remotes/origin/master
r3076543 r3187292 1 51ea65c1e7c5a87a47b4e2c1ff263eea4e638e27 1 b6f0e9d43d3b40f9f4d4666d39ce6739eac85ce3 -
block-for-woo-product-table/trunk/.gitignore
r2879989 r3187292 10 10 package-lock.json 11 11 config.json 12 block-for-woo-product-table.zip -
block-for-woo-product-table/trunk/assets/js/editor.js
r2726306 r3187292 30 30 31 31 let description = __( 'Display a searchable table listing any or all of your products.', 'block-for-woo-product-table' ); 32 if ( typeof wcptbInvalid!== 'undefined' ) {32 if ( typeof info !== 'undefined' ) { 33 33 description = [ description, ' ', el( 34 34 'strong', … … 92 92 let blockStructure; 93 93 94 if ( typeof wcptbInvalid!== 'undefined' ) {94 if ( typeof info !== 'undefined' ) { 95 95 96 96 let messageSplit = wcptbInvalid.message.split('%s'), message; … … 157 157 { className: 'block-description' }, 158 158 [ 159 __( 'Lists products in a table view using the WooCommerce Product Table plugin. ', 'block-for-woo-product-table' ),159 __( 'Lists products in a table view using the WooCommerce Product Table plugin. For more features, use the ', 'block-for-woo-product-table' ), 160 160 el( 161 161 'a', 162 { href: 'https://barn2.co.uk/kb/woocommerce-product-table-gutenberg/', target: '_blank' },163 __( ' Documentation', 'block-for-woo-product-table' )162 { href: info.table_builder, target: '_blank' }, 163 __( 'central table builder.', 'block-for-woo-product-table' ) 164 164 ) 165 165 ] -
block-for-woo-product-table/trunk/assets/js/editor.min.js
r2726306 r3187292 3 3 * Copyright 2021 Barn2 Plugins 4 4 */ 5 "use strict";function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}(function(c,e){var i=c.i18n.__,t=c.element,s=t.Fragment,r=t.createElement,u=t.RawHTML,f=c.blockEditor.InspectorControls,o=c.components,d=o.Placeholder,b=o.Icon,p=e.ProductTableColumns,m=e.ProductSelection,v=e.SettingsPanel,y=r,g=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},c.element.createElement("path",{d:"M4,21h15.893c1.103,0,2-0.897,2-2V7V5v0l0,0c0-1.103-0.897-2-2-2H4C2.897,3,2,3.897,2,5v14C2,20.103,2.897,21,4,21z M4,19 v-5h4v5H4z M14,7v5h-4V7H14z M8,7v5H4V7H8z M10,19v-5h4v5H10z M16,19v-5h3.894v5H16z M19.893,12H16V7h3.893V12z"})),n=i("Display a searchable table listing any or all of your products.","block-for-woo-product-table");"undefined"!=typeof wcptbInvalid&&(n=[n," ",y("strong",{},i("Warning! This block is an add-on for the WooCommerce Product Table plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.","block-for-woo-product-table"))]),c.blocks.registerBlockType("barn2/wc-product-table",{title:i("WooCommerce Product Table","block-for-woo-product-table"),description:n,icon:g,category:"woocommerce",attributes:{columns:{type:"array",default:[]},filters:{type:"array",default:[]},settings:{type:"array",default:[]},preview:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,align:["wide","full"]},example:{attributes:{preview:!0}},edit:function(e){var t=e.attributes,r=e.setAttributes;if(t.preview)return y(s,{},y("img",{src:wcptbPreviewImage.src}));var o,n=c.element.createRef();if("undefined"!=typeof wcptbInvalid){var a,l=wcptbInvalid.message.split("%s");a=1<l.length?[l[0],y("a",{href:wcptbInvalid.link,target:"_blank"},wcptbInvalid.link_text),l[1]]:l[0],o=y(d,{icon:g,label:"Product Table",instructions:a})}else o=y(s,null,[y(f,null,[y(v,{onChange:function(e){r({settings:e})},attributes:t})]),y("div",{className:"components-placeholder barn2-wc-product-table-block"},[y("div",{className:"components-placeholder__label"},[y(b,{icon:g,alt:""}),i("Product Table","block-for-woo-product-table")]),y("div",{className:"components-placeholder__fieldset"},[y("span",{className:"block-description"},[i("Lists products in a table view using the WooCommerce Product Table plugin. ","block-for-woo-product-table"),y("a",{href:"https://barn2.co.uk/kb/woocommerce-product-table-gutenberg/",target:"_blank"},i("Documentation","block-for-woo-product-table"))]),y("div",{className:"barn2-wc-product-table-block__options"},[y(p,{columns:t.columns,saveColumns:function(e){r({columns:e})}}),y(m,{attributes:t,saveFilters:function(e){r({filters:e})},ref:n})])],y("p",{className:"additional-settings-notice"},i("You can configure additional settings in the 'Block' tab in the sidebar.","block-for-woo-product-table")))])]);return o},save:function(e){var t="",r=e.attributes;if(r){if(r.columns&&r.columns.length&&(t+=' columns="'+r.columns.join(",")+'"'),r.filters&&r.filters.length){var o,n=_createForOfIteratorHelper(r.filters);try{for(n.s();!(o=n.n()).done;){var a=o.value;t+=" ".concat(a.key,'="').concat(a.value,'"')}}catch(e){n.e(e)}finally{n.f()}}if(r.settings&&r.settings.length){var l,c=_createForOfIteratorHelper(r.settings);try{for(c.s();!(l=c.n()).done;){var i=l.value;if(""!==i.value)if("additional"===i.key)t="".concat(i.value," ")+t;else if("customFilters"!==i.key){if("filters"===i.key&&"custom"===i.value)continue;t+=" ".concat(i.key,'="').concat(i.value,'"')}else t+=' filters="'.concat(i.value,'"')}}catch(e){c.e(e)}finally{c.f()}}(t=t.trim()).length&&(t=" "+t)}return y(u,{},"[product_table".concat(t,"]"))}})})(window.wp,window.productTableBlockComponents);5 "use strict";function _createForOfIteratorHelper(e,t){var r;if("undefined"==typeof Symbol||null==e[Symbol.iterator]){if(Array.isArray(e)||(r=_unsupportedIterableToArray(e))||t&&e&&"number"==typeof e.length){r&&(e=r);var o=0,n=function(){};return{s:n,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var a,l=!0,c=!1;return{s:function(){r=e[Symbol.iterator]()},n:function(){var e=r.next();return l=e.done,e},e:function(e){c=!0,a=e},f:function(){try{l||null==r.return||r.return()}finally{if(c)throw a}}}}function _unsupportedIterableToArray(e,t){if(e){if("string"==typeof e)return _arrayLikeToArray(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_arrayLikeToArray(e,t):void 0}}function _arrayLikeToArray(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,o=new Array(t);r<t;r++)o[r]=e[r];return o}(function(c,e){var i=c.i18n.__,t=c.element,s=t.Fragment,r=t.createElement,u=t.RawHTML,f=c.blockEditor.InspectorControls,o=c.components,d=o.Placeholder,b=o.Icon,p=e.ProductTableColumns,m=e.ProductSelection,v=e.SettingsPanel,y=r,g=y("svg",{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24"},c.element.createElement("path",{d:"M4,21h15.893c1.103,0,2-0.897,2-2V7V5v0l0,0c0-1.103-0.897-2-2-2H4C2.897,3,2,3.897,2,5v14C2,20.103,2.897,21,4,21z M4,19 v-5h4v5H4z M14,7v5h-4V7H14z M8,7v5H4V7H8z M10,19v-5h4v5H10z M16,19v-5h3.894v5H16z M19.893,12H16V7h3.893V12z"})),n=i("Display a searchable table listing any or all of your products.","block-for-woo-product-table");"undefined"!=typeof wcptbInvalid&&(n=[n," ",y("strong",{},i("Warning! This block is an add-on for the WooCommerce Product Table plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.","block-for-woo-product-table"))]),c.blocks.registerBlockType("barn2/wc-product-table",{title:i("WooCommerce Product Table","block-for-woo-product-table"),description:n,icon:g,category:"woocommerce",attributes:{columns:{type:"array",default:[]},filters:{type:"array",default:[]},settings:{type:"array",default:[]},preview:{type:"boolean",default:!1}},supports:{customClassName:!1,className:!1,html:!1,align:["wide","full"]},example:{attributes:{preview:!0}},edit:function(e){var t=e.attributes,r=e.setAttributes;if(t.preview)return y(s,{},y("img",{src:wcptbPreviewImage.src}));var o,n=c.element.createRef();if("undefined"!=typeof wcptbInvalid){var a,l=wcptbInvalid.message.split("%s");a=1<l.length?[l[0],y("a",{href:wcptbInvalid.link,target:"_blank"},wcptbInvalid.link_text),l[1]]:l[0],o=y(d,{icon:g,label:"Product Table",instructions:a})}else o=y(s,null,[y(f,null,[y(v,{onChange:function(e){r({settings:e})},attributes:t})]),y("div",{className:"components-placeholder barn2-wc-product-table-block"},[y("div",{className:"components-placeholder__label"},[y(b,{icon:g,alt:""}),i("Product Table","block-for-woo-product-table")]),y("div",{className:"components-placeholder__fieldset"},[y("span",{className:"block-description"},[i("Lists products in a table view using the WooCommerce Product Table plugin. For more features, use the ","block-for-woo-product-table"),y("a",{href:info.table_builder,target:"_blank"},i("central table builder","block-for-woo-product-table"))]),y("div",{className:"barn2-wc-product-table-block__options"},[y(p,{columns:t.columns,saveColumns:function(e){r({columns:e})}}),y(m,{attributes:t,saveFilters:function(e){r({filters:e})},ref:n})])],y("p",{className:"additional-settings-notice"},i("You can configure additional settings in the 'Block' tab in the sidebar.","block-for-woo-product-table")))])]);return o},save:function(e){var t="",r=e.attributes;if(r){if(r.columns&&r.columns.length&&(t+=' columns="'+r.columns.join(",")+'"'),r.filters&&r.filters.length){var o,n=_createForOfIteratorHelper(r.filters);try{for(n.s();!(o=n.n()).done;){var a=o.value;t+=" ".concat(a.key,'="').concat(a.value,'"')}}catch(e){n.e(e)}finally{n.f()}}if(r.settings&&r.settings.length){var l,c=_createForOfIteratorHelper(r.settings);try{for(c.s();!(l=c.n()).done;){var i=l.value;if(""!==i.value)if("additional"===i.key)t="".concat(i.value," ")+t;else if("customFilters"!==i.key){if("filters"===i.key&&"custom"===i.value)continue;t+=" ".concat(i.key,'="').concat(i.value,'"')}else t+=' filters="'.concat(i.value,'"')}}catch(e){c.e(e)}finally{c.f()}}(t=t.trim()).length&&(t=" "+t)}return y(u,{},"[product_table".concat(t,"]"))}})})(window.wp,window.productTableBlockComponents); -
block-for-woo-product-table/trunk/block-for-woo-product-table.php
r3076543 r3187292 14 14 * Plugin URI: https://barn2.co.uk/wordpress-plugins/block-for-woo-product-table/ 15 15 * Description: Adds an editor block to the WooCommerce Product Table plugin by Barn2, making it quick and easy to create product tables with the block editor. 16 * Version: 1.0.1 016 * Version: 1.0.11 17 17 * Author: Barn2 Plugins 18 18 * Author URI: https://barn2.co.uk … … 21 21 * 22 22 * WC requires at least: 7.2 23 * WC tested up to: 8.8.2 23 * WC tested up to: 9.3.3 24 * Requires at least: 6.1.0 25 * Requires PHP: 7.4 24 26 * 25 27 * Copyright: Barn2 Media Ltd … … 34 36 } 35 37 36 const PLUGIN_VERSION = '1.0.1 0';38 const PLUGIN_VERSION = '1.0.11'; 37 39 const PLUGIN_FILE = __FILE__; 38 40 -
block-for-woo-product-table/trunk/package.json
r3076543 r3187292 1 1 { 2 2 "name": "wc-product-table-block", 3 "version": "1.0.1 0",3 "version": "1.0.11", 4 4 "description": "Build package for plugins", 5 5 "main": "gulpfile.js", -
block-for-woo-product-table/trunk/readme.txt
r3076543 r3187292 5 5 Tags: gutenberg block, blocks, block, product table, order form 6 6 Requires at least: 6.1 7 Tested up to: 6. 5.27 Tested up to: 6.7 8 8 Requires PHP: 7.4 9 Stable tag: 1.0.1 09 Stable tag: 1.0.11 10 10 License: GPL-3.0 11 11 License URI: https://www.gnu.org/licenses/gpl.html … … 15 15 == Description == 16 16 17 * Gutenberg Block for WooCommerce Product Table* adds a user-friendly editor block to the [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) plugin by Barn2, providing an easier way for Gutenberg users to create product tables. It requires WooCommerce Product Table (available separately) to work.17 *Note: Since building this block plugin, we have added an interactive table builder to the main WooCommerce Product Table plugin. This makes it easy to create product tables and insert them into the block editor or any page builder. While you can still use the block plugin, it is no longer actively being developed and we recommend using the built-in table builder instead, which has more features.* 18 18 19 [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) lists products in a quick order form layout designed to increase your sales and average order value. Instead of having to visit a separate page for each product, customers can select products, quantities and variations from the product table and quickly add them to the cart. 19 Gutenberg Block for WooCommerce Product Table adds a user-friendly editor block to the [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) plugin by Barn2, providing an easier way for Gutenberg users to create product tables. It requires WooCommerce Product Table (available separately) to work. 20 21 WooCommerce Product Table lists products in a quick order form layout designed to increase your sales and average order value. Instead of having to visit a separate page for each product, customers can select products, quantities and variations from the product table and quickly add them to the cart. 20 22 21 23 WooCommerce Product Table is highly flexible and you can choose which products to include, a wide range of column options, filters, instant AJAX search, add to cart button styles, and more. 22 24 23 *Gutenberg Block for WooCommerce Product Table* makes it easy to insert product tables anywhere on your site using the Gutenberg editor. This gives you full control over your product tables , without having to use shortcodes.25 *Gutenberg Block for WooCommerce Product Table* makes it easy to insert product tables anywhere on your site using the Gutenberg editor. This gives you full control over your product tables. 24 26 25 27 https://www.youtube.com/watch?v=yEsK8KEi0mk … … 76 78 77 79 = Can I create product tables if I’m not using Gutenberg? = 78 If you’re not using Gutenberg then you can use [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) without Gutenberg Block for WooCommerce Product Table. 79 80 You can create product tables by adding the [[product_table] shortcode](https://barn2.co.uk/kb/product-table-options/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) anywhere on your site, including text, HTML or shortcode blocks in other page builders such as Elementor, Divi Builder and Visual Composer. 81 82 There are also options on the WooCommerce Product Table plugin settings page which automatically enable the product table layout on your shop and/or product category pages. 80 Yes, [WooCommerce Product Table](https://barn2.co.uk/wordpress-plugins/woocommerce-product-table/?utm_source=wporg&utm_medium=freeplugin&utm_campaign=gutenbergwpt&utm_content=gutenbergwpt) comes with a built-in table builder which works with all WordPress editors and page builders. Simply install WooCommerce Product Table and go to *Products > Product Tables > Add New* to create tables. The final page of the table builder provides a shortcode which you can use to insert the table anywhere on your site. You can also enable tables automatically on your main shop page templates, without having to use a block or shortcode. 83 81 84 82 == Screenshots == … … 89 87 90 88 == Changelog == 89 90 = 1.0.11 = 91 * Tested with the latest version of WordPress and WooCommerce 92 * Added the integration with PHP 8.3 93 * Integrated with the latest version of WooCommerce Product Table 94 95 <!-- more --> 91 96 92 97 = 1.0.10 = -
block-for-woo-product-table/trunk/src/class-block.php
r2726306 r3187292 11 11 namespace Barn2\Plugin\WC_Product_Table_Block; 12 12 13 use Barn2\Plugin\WC_Product_Table\Util\Columns _Util;13 use Barn2\Plugin\WC_Product_Table\Util\Columns as Columns_Util; 14 14 15 15 /** … … 113 113 ); 114 114 115 wp_localize_script( 116 'barn2-wc-product-table-block', 117 'info', 118 [ 119 'table_builder' => admin_url( 'edit.php?post_type=product&page=tables&add-new' ) 120 ] 121 ); 122 123 115 124 if ( ! Plugin::is_wpt_safe() ) { 116 125 … … 122 131 'message' => __( 'Warning! This block is an add-on for the %s plugin, which is not currently installed. Please sign up for a free trial and install the plugin before continuing.', 'block-for-woo-product-table' ), 123 132 'link_text' => __( 'WooCommerce Product Table', 'block-for-woo-product-table' ), 124 'link' => 'https://barn2.co .uk/wordpress-plugins/woocommerce-product-table/?utm_source=plugin&utm_medium=wptblock&utm_campaign=wptaddblock&utm_content=wptblockdashboard'133 'link' => 'https://barn2.com/wordpress-plugins/woocommerce-product-table/?utm_source=plugin&utm_medium=wptblock&utm_campaign=wptaddblock&utm_content=wptblockdashboard', 125 134 ] 126 135 ); -
block-for-woo-product-table/trunk/src/class-compat.php
r2448554 r3187292 91 91 public static function wcpt_version() { 92 92 93 return Plugin::is_wpt_safe() ? \Barn2\Plugin\WC_Product_Table\PLUGIN_VERSION : null;93 return Plugin::is_wpt_safe() ? \Barn2\Plugin\WC_Product_Table\PLUGIN_VERSION : ''; 94 94 95 95 } -
block-for-woo-product-table/trunk/src/class-plugin.php
r2726306 r3187292 100 100 return $this->is_php_version_safe() 101 101 && $this->is_wordpress_safe() 102 && $this->is_woocommerce_safe() ;103 //&& $this->is_wpt_safe();102 && $this->is_woocommerce_safe() 103 && $this->is_wpt_safe(); 104 104 } 105 105
Note: See TracChangeset
for help on using the changeset viewer.