VK All in One Expansion Unit - Version 9.64.1.0

Version Description

  • [ Bug fix ][ Banner Widget ] Fix change banner image on widget setting page
Download this release

Release Info

Developer kurudrive
Plugin Icon 128x128 VK All in One Expansion Unit
Version 9.64.1.0
Comparing to
See all releases

Code changes from version 9.63.1.0 to 9.64.1.0

assets/js/block.min.js CHANGED
@@ -1,5 +1,5 @@
1
  "use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,C=e.components,n=C.ServerSideRender,a=(C.PanelBody,e.element.Fragment),c=e.element,e=c.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.05 5.4L18.95 6.6L11.75 12L18.95 17.4L18.05 18.6L9.25 12L18.05 5.4Z",fill:"black"}),c.createElement("path",{d:"M8 11C8 10.4477 8.44772 10 9 10H11C11.5523 10 12 10.4477 12 11V13C12 13.5523 11.5523 14 11 14H9C8.44772 14 8 13.5523 8 13V11Z",fill:"black"}),c.createElement("path",{d:"M18 5C18 4.44772 18.4477 4 19 4H21C21.5523 4 22 4.44772 22 5V7C22 7.55228 21.5523 8 21 8H19C18.4477 8 18 7.55228 18 7V5Z",fill:"black"}),c.createElement("path",{d:"M18 17C18 16.4477 18.4477 16 19 16H21C21.5523 16 22 16.4477 22 17V19C22 19.5523 21.5523 20 21 20H19C18.4477 20 18 19.5523 18 19V17Z",fill:"black"}),c.createElement("path",{d:"M9.02166 11.5C10.126 11.5 10.6918 12.4565 10.6183 13.2832L12.8895 13.2779C14.3071 13.2779 15.0309 14.9832 14.0553 16.0035L11.5983 18.5904L12.6845 22.0882C12.9884 23.0594 12.3009 24.1799 11.1501 24.1799H7.86199C7.49242 24.1799 7.18431 24.0623 6.94092 23.887L6.74798 24.4359L6.74336 24.4483C6.22239 25.8506 4.24664 25.8506 3.72567 24.4483L3.72013 24.4334L0.575389 15.3852L0.564442 15.3474C0.311387 14.4742 0.872943 13.2779 2.10792 13.2779H5.2686L5.51343 12.59C5.73899 11.9389 6.35249 11.5096 7.02799 11.5076L7.03268 11.5076L9.02166 11.5Z",fill:"white"}),c.createElement("path",{d:"M12.8895 14.7778L9.62346 14.7854C9.57942 14.7854 9.53538 14.8158 9.5207 14.8614L9.27116 15.5832C9.24915 15.6592 9.30052 15.7352 9.37392 15.7352H10.6436C10.7391 15.7352 10.7904 15.8567 10.7244 15.9251L8.69869 18.1058H8.70603L9.74823 21.5021C9.77025 21.578 9.71887 21.6464 9.64548 21.6464H8.62529C8.57392 21.6464 8.53722 21.616 8.52254 21.5704L8.00144 19.8305C7.97208 19.7241 7.83264 19.7241 7.79594 19.8229L7.37025 21.0462C7.36291 21.069 7.36291 21.0918 7.37025 21.1146L7.75924 22.5962C7.77392 22.6418 7.81796 22.6797 7.86199 22.6797H11.1501C11.2235 22.6797 11.2748 22.6038 11.2528 22.5354L9.92437 18.2577C9.90969 18.2197 9.92437 18.1741 9.95373 18.1437L12.9702 14.9678C13.0363 14.8994 12.9849 14.7778 12.8895 14.7778Z",fill:"black"}),c.createElement("path",{d:"M9.02164 13L7.03265 13.0076C6.98862 13.0076 6.94458 13.038 6.9299 13.0836L6.67302 13.8054C6.64366 13.8814 6.70238 13.9573 6.77577 13.9573H7.61247C7.68586 13.9573 7.73724 14.0333 7.71522 14.1093L5.34458 20.8259C5.30789 20.9247 5.17578 20.9247 5.13908 20.8259L3.43633 15.9784C3.40697 15.9024 3.46569 15.8265 3.53908 15.8265H4.3978C4.44183 15.8265 4.48587 15.8568 4.50055 15.9024L5.11706 17.65C5.15376 17.7487 5.28587 17.7487 5.32257 17.65L6.27669 14.9299C6.30605 14.8539 6.24733 14.7779 6.17394 14.7779H2.10789C2.0345 14.7779 1.98312 14.8539 2.00514 14.9299L5.13174 23.9259C5.16844 24.0247 5.30055 24.0247 5.33724 23.9259L9.12439 13.152C9.14641 13.076 9.09503 13 9.02164 13Z",fill:"#D8141C"}));l("vk-blocks/share-button",{title:t("Share button","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return c.createElement(a,null,c.createElement("div",{className:"".concat(e," veu_share_button_block")},c.createElement(n,{block:"vk-blocks/share-button",attributes:{position:"After"}})))},save:function(){return null}})}(wp);
2
  "use strict";!function(e){var i=e.i18n.__,t=e.blocks.registerBlockType,C=(e.blockEditor&&e.blockEditor.BlockEdit?e.blockEditor:e.editor).InspectorControls,l=e.components,d=l.ServerSideRender,s=l.PanelBody,u=l.SelectControl,n=e.data,l=n.withSelect,H=(n.select,e.element.Fragment),p=e.element,e=p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),p.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}),p.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 6.5V1.5H9.5V6.5H1.5ZM0 1C0 0.447715 0.447715 0 1 0H10C10.5523 0 11 0.447715 11 1V7C11 7.55228 10.5523 8 10 8H1C0.447715 8 0 7.55228 0 7V1ZM1.5 13.2779V11.5H7.02166H9.5V13.2812L10.8895 13.2779C10.9268 13.2779 10.9637 13.2791 11 13.2814V11C11 10.4477 10.5523 10 10 10H1C0.447715 10 0 10.4477 0 11V13.281C0.0353798 13.279 0.0713537 13.2779 0.107918 13.2779H1.5ZM3.36751 13L3.2686 13.2779H3V13H3.36751ZM10.1733 17.985C10.6035 17.9099 10.9392 17.5598 10.9926 17.1225L10.1733 17.985ZM14.5 1.5V6.5H22.5V1.5H14.5ZM14 0C13.4477 0 13 0.447715 13 1V7C13 7.55228 13.4477 8 14 8H23C23.5523 8 24 7.55228 24 7V1C24 0.447715 23.5523 0 23 0H14ZM14.5 16.5V11.5H22.5V16.5H14.5ZM13 11C13 10.4477 13.4477 10 14 10H23C23.5523 10 24 10.4477 24 11V17C24 17.5523 23.5523 18 23 18H14C13.4477 18 13 17.5523 13 17V11ZM3 3V5H5V3H3ZM16 3V5H18V3H16ZM16 15V13H18V15H16Z",fill:"black"}));t("vk-blocks/child-page-index",{title:i("Child page index","veu-block"),icon:e,category:"veu-block",attributes:{postId:{type:"number",default:-1}},edit:l(function(e){return{pages:e("core").getEntityRecords("postType","page",{_embed:!0,per_page:-1})}})(function(e){var t=e.attributes,l=e.setAttributes,n=e.pages,e=t.postId,a=(t.className,[{label:i("This Page","veu-block"),value:-1}]);if(null!=n){for(var r=n.length,o=[],c=0,c=0;c<r;c++)0!==n[c].parent&&o.push(n[c].parent);for(c=0;c<r;c++)o.includes(n[c].id)&&a.push({label:n[c].title.rendered,value:n[c].id})}return p.createElement(H,null,p.createElement(C,null,p.createElement(s,{label:i("Parent Page","veu-block")},p.createElement(u,{label:i("Parent Page","veu-block"),value:e,options:a,onChange:function(e){l({postId:parseInt(e,10)})}}))),p.createElement("div",{className:"veu_child_page_list_block"},p.createElement(d,{block:"vk-blocks/child-page-index",attributes:t})))}),save:function(){return null}})}(wp);
3
  "use strict";!function(e){var n=e.i18n.__,t=e.blocks.registerBlockType,c=e.serverSideRender,l=e.components,a=l.PanelBody,o=l.BaseControl,i=l.CheckboxControl,r=e.element.Fragment,C=e.blockEditor.InspectorControls,s=e.element,e=s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),s.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}),s.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 0H10.5C11.05 0 11.5 0.45 11.5 1C11.5 2.25 11.7 3.45 12.07 4.57C12.18 4.92 12.1 5.31 11.82 5.59L9.62 7.79C11.06 10.62 13.38 12.93 16.21 14.38L18.41 12.18C18.61 11.99 18.86 11.89 19.12 11.89C19.22 11.89 19.33 11.9 19.43 11.94C20.55 12.31 21.76 12.51 23 12.51C23.55 12.51 24 12.96 24 13.51V17C24 17.55 23.55 18 23 18C18.98 18 15.2862 16.6052 12.3762 14.2731C12.1893 13.8229 11.8056 13.4545 11.2918 13.3264C8.0321 10.2292 6 5.85228 6 1C6 0.45 6.45 0 7 0Z",fill:"black"}));t("vk-blocks/contact-section",{title:n("Contact section","veu-block"),icon:e,category:"veu-block",attributes:{vertical:{type:"boolean",default:!1}},edit:function(e){var t=e.attributes,l=e.setAttributes,t=(e.className,t.vertical);return s.createElement(r,null,s.createElement(C,null,s.createElement(a,{title:n("Display conditions","vk-all-in-one-expansion-unit"),initialOpen:!1},s.createElement(o,{label:n("Set telephone and mail form vertically","vk-all-in-one-expansion-unit")},s.createElement(i,{className:"mb-1",checked:t,onChange:function(e){return l({vertical:e})}})))),s.createElement("div",{className:"veu_contact_section_block"},s.createElement(c,{block:"vk-blocks/contact-section",attributes:e.attributes})))},save:function(){return null}})}(wp);
4
- "use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,n=e.components,c=n.ServerSideRender,a=(n.PanelBody,e.element.Fragment),C=e.element,e=C.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8C6.32 8 7 7.33 7 6.5C7 5.68 6.32 5 5.5 5C4.67 5 4 5.68 4 6.5ZM20 6H9V7H20V6ZM7 11.5001L5.03268 11.5076L5.02799 11.5076C4.66401 11.5087 4.31804 11.6338 4.04105 11.8509C4.01421 11.7383 4 11.6209 4 11.5C4 10.68 4.67 10 5.5 10C6.32 10 7 10.68 7 11.5C7 11.5 7 11.5001 7 11.5001ZM11.1089 17L12.0553 16.0035C12.0565 16.0024 12.0576 16.0012 12.0587 16H20V17H11.1089ZM20 11H9V12H20V11Z",fill:"black"}),C.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),C.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}));l("vk-blocks/page-list-ancestor",{title:t("Page list ancestor","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return C.createElement(a,null,C.createElement("div",{className:"".concat(e," veu_page_list_ancestor_block")},C.createElement(c,{block:"vk-blocks/page-list-ancestor",attributes:{className:e}})))},save:function(){return null}})}(wp);
5
  "use strict";!function(e){var l=e.i18n.__,t=e.blocks.registerBlockType,c=e.components.ServerSideRender,a=e.element.Fragment,n=e.element,e=n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{"clip-path":"url(#clip0)"},n.createElement("path",{d:"M11.5 6V7H5.5V9H6.5V8H17.5V9H18.5V7H12.5V6H11.5Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.5 1.5V4H14.5V1.5H9.5ZM9 0C8.44772 0 8 0.447715 8 1V4.5C8 5.05228 8.44772 5.5 9 5.5H15C15.5523 5.5 16 5.05228 16 4.5V1C16 0.447715 15.5523 0 15 0H9Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.5 11V13.5H8.5V11H3.5ZM3 9.5C2.44772 9.5 2 9.94772 2 10.5V14C2 14.5523 2.44772 15 3 15H9C9.55228 15 10 14.5523 10 14V10.5C10 9.94772 9.55228 9.5 9 9.5H3Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 11V13.5H20.5V11H15.5ZM15 9.5C14.4477 9.5 14 9.94772 14 10.5V14C14 14.5523 14.4477 15 15 15H21C21.5523 15 22 14.5523 22 14V10.5C22 9.94772 21.5523 9.5 21 9.5H15Z",fill:"black"}),n.createElement("path",{d:"M7.02166 11.5C8.12596 11.5 8.69181 12.4565 8.61827 13.2832L10.8895 13.2779C12.3071 13.2779 13.0309 14.9832 12.0553 16.0035L9.59833 18.5904L10.6845 22.0882C10.9884 23.0594 10.3009 24.1799 9.15005 24.1799H5.86199C5.49242 24.1799 5.18431 24.0623 4.94092 23.887L4.74798 24.4359L4.74336 24.4483C4.22239 25.8506 2.24664 25.8506 1.72567 24.4483L1.72013 24.4334L-1.42461 15.3852L-1.43556 15.3474C-1.68861 14.4742 -1.12706 13.2779 0.107918 13.2779H3.2686L3.51343 12.59C3.73899 11.9389 4.35249 11.5096 5.02799 11.5076L5.03268 11.5076L7.02166 11.5Z",fill:"white"}),n.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),n.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0"},n.createElement("rect",{width:"24",height:"24",fill:"white"}))));t("vk-blocks/sitemap",{title:l("HTML Sitemap","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return n.createElement(a,null,n.createElement("div",{className:"".concat(e," veu_sitemap_block")},n.createElement(c,{block:"vk-blocks/sitemap",attributes:{className:e}})))},save:function(){return null}})}(wp);
1
  "use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,C=e.components,n=C.ServerSideRender,a=(C.PanelBody,e.element.Fragment),c=e.element,e=c.createElement("svg",{width:"26",height:"26",viewBox:"0 0 26 26",fill:"none",xmlns:"http://www.w3.org/2000/svg"},c.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18.05 5.4L18.95 6.6L11.75 12L18.95 17.4L18.05 18.6L9.25 12L18.05 5.4Z",fill:"black"}),c.createElement("path",{d:"M8 11C8 10.4477 8.44772 10 9 10H11C11.5523 10 12 10.4477 12 11V13C12 13.5523 11.5523 14 11 14H9C8.44772 14 8 13.5523 8 13V11Z",fill:"black"}),c.createElement("path",{d:"M18 5C18 4.44772 18.4477 4 19 4H21C21.5523 4 22 4.44772 22 5V7C22 7.55228 21.5523 8 21 8H19C18.4477 8 18 7.55228 18 7V5Z",fill:"black"}),c.createElement("path",{d:"M18 17C18 16.4477 18.4477 16 19 16H21C21.5523 16 22 16.4477 22 17V19C22 19.5523 21.5523 20 21 20H19C18.4477 20 18 19.5523 18 19V17Z",fill:"black"}),c.createElement("path",{d:"M9.02166 11.5C10.126 11.5 10.6918 12.4565 10.6183 13.2832L12.8895 13.2779C14.3071 13.2779 15.0309 14.9832 14.0553 16.0035L11.5983 18.5904L12.6845 22.0882C12.9884 23.0594 12.3009 24.1799 11.1501 24.1799H7.86199C7.49242 24.1799 7.18431 24.0623 6.94092 23.887L6.74798 24.4359L6.74336 24.4483C6.22239 25.8506 4.24664 25.8506 3.72567 24.4483L3.72013 24.4334L0.575389 15.3852L0.564442 15.3474C0.311387 14.4742 0.872943 13.2779 2.10792 13.2779H5.2686L5.51343 12.59C5.73899 11.9389 6.35249 11.5096 7.02799 11.5076L7.03268 11.5076L9.02166 11.5Z",fill:"white"}),c.createElement("path",{d:"M12.8895 14.7778L9.62346 14.7854C9.57942 14.7854 9.53538 14.8158 9.5207 14.8614L9.27116 15.5832C9.24915 15.6592 9.30052 15.7352 9.37392 15.7352H10.6436C10.7391 15.7352 10.7904 15.8567 10.7244 15.9251L8.69869 18.1058H8.70603L9.74823 21.5021C9.77025 21.578 9.71887 21.6464 9.64548 21.6464H8.62529C8.57392 21.6464 8.53722 21.616 8.52254 21.5704L8.00144 19.8305C7.97208 19.7241 7.83264 19.7241 7.79594 19.8229L7.37025 21.0462C7.36291 21.069 7.36291 21.0918 7.37025 21.1146L7.75924 22.5962C7.77392 22.6418 7.81796 22.6797 7.86199 22.6797H11.1501C11.2235 22.6797 11.2748 22.6038 11.2528 22.5354L9.92437 18.2577C9.90969 18.2197 9.92437 18.1741 9.95373 18.1437L12.9702 14.9678C13.0363 14.8994 12.9849 14.7778 12.8895 14.7778Z",fill:"black"}),c.createElement("path",{d:"M9.02164 13L7.03265 13.0076C6.98862 13.0076 6.94458 13.038 6.9299 13.0836L6.67302 13.8054C6.64366 13.8814 6.70238 13.9573 6.77577 13.9573H7.61247C7.68586 13.9573 7.73724 14.0333 7.71522 14.1093L5.34458 20.8259C5.30789 20.9247 5.17578 20.9247 5.13908 20.8259L3.43633 15.9784C3.40697 15.9024 3.46569 15.8265 3.53908 15.8265H4.3978C4.44183 15.8265 4.48587 15.8568 4.50055 15.9024L5.11706 17.65C5.15376 17.7487 5.28587 17.7487 5.32257 17.65L6.27669 14.9299C6.30605 14.8539 6.24733 14.7779 6.17394 14.7779H2.10789C2.0345 14.7779 1.98312 14.8539 2.00514 14.9299L5.13174 23.9259C5.16844 24.0247 5.30055 24.0247 5.33724 23.9259L9.12439 13.152C9.14641 13.076 9.09503 13 9.02164 13Z",fill:"#D8141C"}));l("vk-blocks/share-button",{title:t("Share button","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return c.createElement(a,null,c.createElement("div",{className:"".concat(e," veu_share_button_block")},c.createElement(n,{block:"vk-blocks/share-button",attributes:{position:"After"}})))},save:function(){return null}})}(wp);
2
  "use strict";!function(e){var i=e.i18n.__,t=e.blocks.registerBlockType,C=(e.blockEditor&&e.blockEditor.BlockEdit?e.blockEditor:e.editor).InspectorControls,l=e.components,d=l.ServerSideRender,s=l.PanelBody,u=l.SelectControl,n=e.data,l=n.withSelect,H=(n.select,e.element.Fragment),p=e.element,e=p.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},p.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),p.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}),p.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M1.5 6.5V1.5H9.5V6.5H1.5ZM0 1C0 0.447715 0.447715 0 1 0H10C10.5523 0 11 0.447715 11 1V7C11 7.55228 10.5523 8 10 8H1C0.447715 8 0 7.55228 0 7V1ZM1.5 13.2779V11.5H7.02166H9.5V13.2812L10.8895 13.2779C10.9268 13.2779 10.9637 13.2791 11 13.2814V11C11 10.4477 10.5523 10 10 10H1C0.447715 10 0 10.4477 0 11V13.281C0.0353798 13.279 0.0713537 13.2779 0.107918 13.2779H1.5ZM3.36751 13L3.2686 13.2779H3V13H3.36751ZM10.1733 17.985C10.6035 17.9099 10.9392 17.5598 10.9926 17.1225L10.1733 17.985ZM14.5 1.5V6.5H22.5V1.5H14.5ZM14 0C13.4477 0 13 0.447715 13 1V7C13 7.55228 13.4477 8 14 8H23C23.5523 8 24 7.55228 24 7V1C24 0.447715 23.5523 0 23 0H14ZM14.5 16.5V11.5H22.5V16.5H14.5ZM13 11C13 10.4477 13.4477 10 14 10H23C23.5523 10 24 10.4477 24 11V17C24 17.5523 23.5523 18 23 18H14C13.4477 18 13 17.5523 13 17V11ZM3 3V5H5V3H3ZM16 3V5H18V3H16ZM16 15V13H18V15H16Z",fill:"black"}));t("vk-blocks/child-page-index",{title:i("Child page index","veu-block"),icon:e,category:"veu-block",attributes:{postId:{type:"number",default:-1}},edit:l(function(e){return{pages:e("core").getEntityRecords("postType","page",{_embed:!0,per_page:-1})}})(function(e){var t=e.attributes,l=e.setAttributes,n=e.pages,e=t.postId,a=(t.className,[{label:i("This Page","veu-block"),value:-1}]);if(null!=n){for(var r=n.length,o=[],c=0,c=0;c<r;c++)0!==n[c].parent&&o.push(n[c].parent);for(c=0;c<r;c++)o.includes(n[c].id)&&a.push({label:n[c].title.rendered,value:n[c].id})}return p.createElement(H,null,p.createElement(C,null,p.createElement(s,{label:i("Parent Page","veu-block")},p.createElement(u,{label:i("Parent Page","veu-block"),value:e,options:a,onChange:function(e){l({postId:parseInt(e,10)})}}))),p.createElement("div",{className:"veu_child_page_list_block"},p.createElement(d,{block:"vk-blocks/child-page-index",attributes:t})))}),save:function(){return null}})}(wp);
3
  "use strict";!function(e){var n=e.i18n.__,t=e.blocks.registerBlockType,c=e.serverSideRender,l=e.components,a=l.PanelBody,o=l.BaseControl,i=l.CheckboxControl,r=e.element.Fragment,C=e.blockEditor.InspectorControls,s=e.element,e=s.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},s.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),s.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}),s.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7 0H10.5C11.05 0 11.5 0.45 11.5 1C11.5 2.25 11.7 3.45 12.07 4.57C12.18 4.92 12.1 5.31 11.82 5.59L9.62 7.79C11.06 10.62 13.38 12.93 16.21 14.38L18.41 12.18C18.61 11.99 18.86 11.89 19.12 11.89C19.22 11.89 19.33 11.9 19.43 11.94C20.55 12.31 21.76 12.51 23 12.51C23.55 12.51 24 12.96 24 13.51V17C24 17.55 23.55 18 23 18C18.98 18 15.2862 16.6052 12.3762 14.2731C12.1893 13.8229 11.8056 13.4545 11.2918 13.3264C8.0321 10.2292 6 5.85228 6 1C6 0.45 6.45 0 7 0Z",fill:"black"}));t("vk-blocks/contact-section",{title:n("Contact section","veu-block"),icon:e,category:"veu-block",attributes:{vertical:{type:"boolean",default:!1}},edit:function(e){var t=e.attributes,l=e.setAttributes,t=(e.className,t.vertical);return s.createElement(r,null,s.createElement(C,null,s.createElement(a,{title:n("Display conditions","vk-all-in-one-expansion-unit"),initialOpen:!1},s.createElement(o,{label:n("Set telephone and mail form vertically","vk-all-in-one-expansion-unit")},s.createElement(i,{className:"mb-1",checked:t,onChange:function(e){return l({vertical:e})}})))),s.createElement("div",{className:"veu_contact_section_block"},s.createElement(c,{block:"vk-blocks/contact-section",attributes:e.attributes})))},save:function(){return null}})}(wp);
4
+ "use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,n=e.components,c=n.ServerSideRender,a=(n.PanelBody,e.element.Fragment),C=e.element,e=C.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},C.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 6.5C4 7.33 4.67 8 5.5 8C6.32 8 7 7.33 7 6.5C7 5.68 6.32 5 5.5 5C4.67 5 4 5.68 4 6.5ZM20 6H9V7H20V6ZM7 11.5001L5.03268 11.5076L5.02799 11.5076C4.66401 11.5087 4.31804 11.6338 4.04105 11.8509C4.01421 11.7383 4 11.6209 4 11.5C4 10.68 4.67 10 5.5 10C6.32 10 7 10.68 7 11.5C7 11.5 7 11.5001 7 11.5001ZM11.1089 17L12.0553 16.0035C12.0565 16.0024 12.0576 16.0012 12.0587 16H20V17H11.1089ZM20 11H9V12H20V11Z",fill:"black"}),C.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),C.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"}));l("vk-blocks/page-list-ancestor",{title:t("Page list from ancestor","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return C.createElement(a,null,C.createElement("div",{className:"".concat(e," veu_page_list_ancestor_block")},C.createElement(c,{block:"vk-blocks/page-list-ancestor",attributes:{className:e}})))},save:function(){return null}})}(wp);
5
  "use strict";!function(e){var l=e.i18n.__,t=e.blocks.registerBlockType,c=e.components.ServerSideRender,a=e.element.Fragment,n=e.element,e=n.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},n.createElement("g",{"clip-path":"url(#clip0)"},n.createElement("path",{d:"M11.5 6V7H5.5V9H6.5V8H17.5V9H18.5V7H12.5V6H11.5Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.5 1.5V4H14.5V1.5H9.5ZM9 0C8.44772 0 8 0.447715 8 1V4.5C8 5.05228 8.44772 5.5 9 5.5H15C15.5523 5.5 16 5.05228 16 4.5V1C16 0.447715 15.5523 0 15 0H9Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.5 11V13.5H8.5V11H3.5ZM3 9.5C2.44772 9.5 2 9.94772 2 10.5V14C2 14.5523 2.44772 15 3 15H9C9.55228 15 10 14.5523 10 14V10.5C10 9.94772 9.55228 9.5 9 9.5H3Z",fill:"black"}),n.createElement("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M15.5 11V13.5H20.5V11H15.5ZM15 9.5C14.4477 9.5 14 9.94772 14 10.5V14C14 14.5523 14.4477 15 15 15H21C21.5523 15 22 14.5523 22 14V10.5C22 9.94772 21.5523 9.5 21 9.5H15Z",fill:"black"}),n.createElement("path",{d:"M7.02166 11.5C8.12596 11.5 8.69181 12.4565 8.61827 13.2832L10.8895 13.2779C12.3071 13.2779 13.0309 14.9832 12.0553 16.0035L9.59833 18.5904L10.6845 22.0882C10.9884 23.0594 10.3009 24.1799 9.15005 24.1799H5.86199C5.49242 24.1799 5.18431 24.0623 4.94092 23.887L4.74798 24.4359L4.74336 24.4483C4.22239 25.8506 2.24664 25.8506 1.72567 24.4483L1.72013 24.4334L-1.42461 15.3852L-1.43556 15.3474C-1.68861 14.4742 -1.12706 13.2779 0.107918 13.2779H3.2686L3.51343 12.59C3.73899 11.9389 4.35249 11.5096 5.02799 11.5076L5.03268 11.5076L7.02166 11.5Z",fill:"white"}),n.createElement("path",{d:"M10.8895 14.7778L7.62346 14.7854C7.57942 14.7854 7.53538 14.8158 7.5207 14.8614L7.27116 15.5832C7.24915 15.6592 7.30052 15.7352 7.37392 15.7352H8.64364C8.73905 15.7352 8.79043 15.8567 8.72437 15.9251L6.69869 18.1058H6.70603L7.74823 21.5021C7.77025 21.578 7.71887 21.6464 7.64548 21.6464H6.62529C6.57392 21.6464 6.53722 21.616 6.52254 21.5704L6.00144 19.8305C5.97208 19.7241 5.83264 19.7241 5.79594 19.8229L5.37025 21.0462C5.36291 21.069 5.36291 21.0918 5.37025 21.1146L5.75924 22.5962C5.77392 22.6418 5.81796 22.6797 5.86199 22.6797H9.15006C9.22345 22.6797 9.27483 22.6038 9.25281 22.5354L7.92437 18.2577C7.90969 18.2197 7.92437 18.1741 7.95373 18.1437L10.9702 14.9678C11.0363 14.8994 10.9849 14.7778 10.8895 14.7778Z",fill:"black"}),n.createElement("path",{d:"M7.02164 13L5.03265 13.0076C4.98862 13.0076 4.94458 13.038 4.9299 13.0836L4.67302 13.8054C4.64366 13.8814 4.70238 13.9573 4.77577 13.9573H5.61247C5.68586 13.9573 5.73724 14.0333 5.71522 14.1093L3.34458 20.8259C3.30789 20.9247 3.17578 20.9247 3.13908 20.8259L1.43633 15.9784C1.40697 15.9024 1.46569 15.8265 1.53908 15.8265H2.3978C2.44183 15.8265 2.48587 15.8568 2.50055 15.9024L3.11706 17.65C3.15376 17.7487 3.28587 17.7487 3.32257 17.65L4.27669 14.9299C4.30605 14.8539 4.24733 14.7779 4.17394 14.7779H0.107895C0.0345005 14.7779 -0.0168755 14.8539 0.0051428 14.9299L3.13174 23.9259C3.16844 24.0247 3.30055 24.0247 3.33724 23.9259L7.12439 13.152C7.14641 13.076 7.09503 13 7.02164 13Z",fill:"#D8141C"})),n.createElement("defs",null,n.createElement("clipPath",{id:"clip0"},n.createElement("rect",{width:"24",height:"24",fill:"white"}))));t("vk-blocks/sitemap",{title:l("HTML Sitemap","veu-block"),icon:e,category:"veu-block",edit:function(e){e=e.className;return n.createElement(a,null,n.createElement("div",{className:"".concat(e," veu_sitemap_block")},n.createElement(c,{block:"vk-blocks/sitemap",attributes:{className:e}})))},save:function(){return null}})}(wp);
inc/call-to-action/package/class-vk-call-to-action.php CHANGED
@@ -17,14 +17,10 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
17
  add_action( 'widgets_init', array( __CLASS__, 'widget_init' ) );
18
 
19
  $options = get_option( 'vkExUnit_cta_settings' );
20
- if ( ! empty( $options['hook_point'] ) ){
21
  add_action( $options['hook_point'], array( __CLASS__, 'display_cta_to_hook' ), self::CONTENT_NUMBER, 1 );
22
  } else {
23
- if ( veu_content_filter_state() == 'content' ) {
24
- add_filter( 'the_content', array( __CLASS__, 'content_filter' ), self::CONTENT_NUMBER, 1 );
25
- } else {
26
- add_action( 'loop_end', array( __CLASS__, 'set_content_loopend' ), self::CONTENT_NUMBER, 1 );
27
- }
28
  }
29
 
30
  require_once dirname( __FILE__ ) . '/widget-call-to-action.php';
@@ -42,16 +38,28 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
42
  );
43
  }
44
 
45
- public static function set_content_loopend( $query ) {
46
- if ( ! $query->is_main_query() ) {
47
- return;
48
- }
49
- if ( ! is_single() ) {
50
- return;
51
- }
52
- echo self::content_filter( '' );
53
- }
54
-
 
 
 
 
 
 
 
 
 
 
 
 
55
 
56
  public static function option_init() {
57
  vkExUnit_register_setting(
@@ -409,6 +417,16 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
409
 
410
  global $vk_call_to_action_textdomain;
411
 
 
 
 
 
 
 
 
 
 
 
412
  if ( ! $id ) {
413
  return ''; }
414
  $post = self::get_cta_post( $id );
@@ -498,6 +516,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
498
  }
499
 
500
  public static function content_filter( $content ) {
 
501
  // 固定ページウィジェットの場合
502
  if ( self::is_pagewidget() ) {
503
  return $content; }
@@ -508,12 +527,13 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
508
  if ( vkExUnit_is_excerpt() ) {
509
  return $content;
510
  }
 
511
  // 上記以外の場合に出力
512
  $content .= self::render_cta_content( self::is_cta_id() );
513
  return $content;
514
  }
515
 
516
- public static function display_cta_to_hook(){
517
  echo self::render_cta_content( self::is_cta_id() );
518
  }
519
 
@@ -553,7 +573,7 @@ if ( ! class_exists( 'Vk_Call_To_Action' ) ) {
553
  if ( $value == 'random' ) {
554
  $option[ $key ] = 'random';
555
  } else {
556
- if ( 'hook_point' === $key ){
557
  $option[ $key ] = sanitize_text_field( $value );
558
  } else {
559
  $option[ $key ] = ( is_numeric( $value ) ) ? $value : 0;
17
  add_action( 'widgets_init', array( __CLASS__, 'widget_init' ) );
18
 
19
  $options = get_option( 'vkExUnit_cta_settings' );
20
+ if ( ! empty( $options['hook_point'] ) ) {
21
  add_action( $options['hook_point'], array( __CLASS__, 'display_cta_to_hook' ), self::CONTENT_NUMBER, 1 );
22
  } else {
23
+ add_filter( 'the_content', array( __CLASS__, 'content_filter' ), self::CONTENT_NUMBER, 1 );
 
 
 
 
24
  }
25
 
26
  require_once dirname( __FILE__ ) . '/widget-call-to-action.php';
38
  );
39
  }
40
 
41
+ /**
42
+ * option_init
43
+ * set_posttype
44
+ * add_metabox_cta_register
45
+ * save_custom_field
46
+ * widget_init
47
+ * setting_page_url
48
+ * render_meta_box_cta
49
+ * get_cta_post
50
+ * render_cta_content
51
+ * cta_id_random
52
+ * is_cta_id
53
+ * content_filter
54
+ * display_cta_to_hook
55
+ * is_pagewidget
56
+ * is_contentsarea_posts_widget
57
+ * sanitize_config
58
+ * get_default_option
59
+ * get_option
60
+ * get_ctas
61
+ * render_configPage
62
+ */
63
 
64
  public static function option_init() {
65
  vkExUnit_register_setting(
417
 
418
  global $vk_call_to_action_textdomain;
419
 
420
+ global $post;
421
+
422
+ // 各記事で非表示指定されてたら表示しない
423
+ if ( is_singular() ){
424
+ $post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true );
425
+ if ( 'disable' === $post_config ) {
426
+ return;
427
+ }
428
+ }
429
+
430
  if ( ! $id ) {
431
  return ''; }
432
  $post = self::get_cta_post( $id );
516
  }
517
 
518
  public static function content_filter( $content ) {
519
+
520
  // 固定ページウィジェットの場合
521
  if ( self::is_pagewidget() ) {
522
  return $content; }
527
  if ( vkExUnit_is_excerpt() ) {
528
  return $content;
529
  }
530
+
531
  // 上記以外の場合に出力
532
  $content .= self::render_cta_content( self::is_cta_id() );
533
  return $content;
534
  }
535
 
536
+ public static function display_cta_to_hook() {
537
  echo self::render_cta_content( self::is_cta_id() );
538
  }
539
 
573
  if ( $value == 'random' ) {
574
  $option[ $key ] = 'random';
575
  } else {
576
+ if ( 'hook_point' === $key ) {
577
  $option[ $key ] = sanitize_text_field( $value );
578
  } else {
579
  $option[ $key ] = ( is_numeric( $value ) ) ? $value : 0;
inc/call-to-action/package/widget-call-to-action.php CHANGED
@@ -30,6 +30,14 @@ class Widget_CTA extends \WP_Widget {
30
 
31
 
32
  function widget( $args, $instance ) {
 
 
 
 
 
 
 
 
33
  if ( isset( $instance['id'] ) && $instance['id'] ) {
34
  echo $args['before_widget'];
35
  if ( $instance['id'] == 'random' ) {
30
 
31
 
32
  function widget( $args, $instance ) {
33
+
34
+ // 各記事で非表示指定されてたら表示しない
35
+ global $post;
36
+ $post_config = get_post_meta( $post->ID, 'vkexunit_cta_each_option', true );
37
+ if ( 'disable' === $post_config ) {
38
+ return;
39
+ }
40
+
41
  if ( isset( $instance['id'] ) && $instance['id'] ) {
42
  echo $args['before_widget'];
43
  if ( $instance['id'] == 'random' ) {
inc/contact-section/contact-section.php CHANGED
@@ -198,7 +198,7 @@ class VkExUnit_Contact {
198
  'contact_image' => '',
199
  'contact_html' => '',
200
  );
201
- $option = get_option( 'vkExUnit_contact', $default );
202
  // オプション値が無い時は get_option の第2引数で登録されるが、
203
  // 既に値が存在しているが、項目があとから追加された時用に wp_parse_args をしている
204
  return wp_parse_args( $option, $default );
198
  'contact_image' => '',
199
  'contact_html' => '',
200
  );
201
+ $option = get_option( 'vkExUnit_contact' );
202
  // オプション値が無い時は get_option の第2引数で登録されるが、
203
  // 既に値が存在しているが、項目があとから追加された時用に wp_parse_args をしている
204
  return wp_parse_args( $option, $default );
inc/other-widget/common.php CHANGED
@@ -1,88 +1,89 @@
1
  <?php
2
 
3
- /*-------------------------------------------*/
4
- /* color picker
5
- /*-------------------------------------------*/
 
6
  // color picker js
7
  add_action( 'admin_enqueue_scripts', 'vkExUnit_admin_scripts_color_picker' );
8
  function vkExUnit_admin_scripts_color_picker() {
9
- wp_enqueue_style( 'wp-color-picker' );
10
- wp_enqueue_script( 'wp-color-picker' );
11
- // カラーピッカー対象class指定 ( 外観 > ウィジェット 画面で効かないので一旦コメントアウト )
12
- // wp_enqueue_script( 'colorpicker_script', plugins_url( 'js/admin-widget.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
13
  }
14
  // 外観 > ウィジェット 画面で動作させるために必要
15
  add_action( 'admin_footer-widgets.php', 'print_scripts_pr_color' );
16
  function print_scripts_pr_color() {
17
- ?>
18
  <script type="text/javascript">
19
  (function($){
20
- function initColorPicker(widget) {
21
- widget.find( '.color_picker' ).wpColorPicker( {
22
- change: _.throttle( function() {
23
- $(this).trigger('change');
24
- }, 3000 )
25
- });
26
- }
27
 
28
- function onFormUpdate(event, widget) {
29
- initColorPicker(widget);
30
- }
31
- $(document).on('widget-added widget-updated', onFormUpdate );
32
- $(document).ready( function() {
33
- $('#widgets-right .widget:has(.color_picker)').each( function () {
34
- initColorPicker( $(this) );
35
- });
36
- });
37
  }(jQuery));
38
  </script>
39
- <?php
40
  }
41
 
42
- /*-------------------------------------------*/
43
- /* archives_where
44
- /*-------------------------------------------*/
45
  add_filter( 'getarchives_where', 'vkExUnit_info_getarchives_where', 10, 2 );
46
  function vkExUnit_info_getarchives_where( $where, $r ) {
47
- global $my_archives_post_type;
48
- if ( isset( $r['post_type'] ) ) {
49
- $my_archives_post_type = $r['post_type'];
50
- $where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
51
- } else {
52
- $my_archives_post_type = '';
53
- }
54
- return $where;
55
  }
56
 
57
  add_filter( 'get_archives_link', 'vkExUnit_rewrite_archives_link' );
58
  function vkExUnit_rewrite_archives_link( $link_html ) {
59
- global $my_archives_post_type;
60
- if ( $my_archives_post_type && $my_archives_post_type != 'post' ) {
61
 
62
- $link_url_before = preg_replace( "/^.+<a.+href=\'(.+)\'.+$/is", '$1', $link_html );
63
- if ( $link_html == $link_url_before ) {
64
- return $link_html;
65
- }
66
 
67
- $olink = parse_url( $link_url_before );
68
- if ( preg_match( '/\/' . $my_archives_post_type . '\/?/', $olink['path'] ) ) {
69
- return $link_html;
70
- }
71
 
72
- if ( ! isset( $olink['query'] ) ) {
73
- $olink['query'] = '';
74
- }
75
- parse_str( $olink['query'], $query );
76
- if ( isset( $query['post_type'] ) && $query['post_type'] ) {
77
- return $link_html;
78
- }
79
 
80
- $query['post_type'] = $my_archives_post_type;
81
- $new_query = '?' . http_build_query( $query );
82
- $new_url = $olink['scheme'] . '://' . $olink['host'] . $olink['path'] . $new_query;
83
 
84
- $link_html = preg_replace( "/href=\'(.+)\'/", "href='" . $new_url . "'", $link_html );
85
- return $link_html;
86
- }
87
- return $link_html;
88
  }
1
  <?php
2
 
3
+ /*********************************************
4
+ * Color picker
5
+ */
6
+
7
  // color picker js
8
  add_action( 'admin_enqueue_scripts', 'vkExUnit_admin_scripts_color_picker' );
9
  function vkExUnit_admin_scripts_color_picker() {
10
+ wp_enqueue_style( 'wp-color-picker' );
11
+ wp_enqueue_script( 'wp-color-picker' );
12
+ // カラーピッカー対象class指定 ( 外観 > ウィジェット 画面で効かないので一旦コメントアウト )
13
+ // wp_enqueue_script( 'colorpicker_script', plugins_url( 'js/admin-widget.js', __FILE__ ), array( 'wp-color-picker' ), false, true );
14
  }
15
  // 外観 > ウィジェット 画面で動作させるために必要
16
  add_action( 'admin_footer-widgets.php', 'print_scripts_pr_color' );
17
  function print_scripts_pr_color() {
18
+ ?>
19
  <script type="text/javascript">
20
  (function($){
21
+ function initColorPicker(widget) {
22
+ widget.find( '.color_picker' ).wpColorPicker( {
23
+ change: _.throttle( function() {
24
+ $(this).trigger('change');
25
+ }, 3000 )
26
+ });
27
+ }
28
 
29
+ function onFormUpdate(event, widget) {
30
+ initColorPicker(widget);
31
+ }
32
+ $(document).on('widget-added widget-updated', onFormUpdate );
33
+ $(document).ready( function() {
34
+ $('#widgets-right .widget:has(.color_picker)').each( function () {
35
+ initColorPicker( $(this) );
36
+ });
37
+ });
38
  }(jQuery));
39
  </script>
40
+ <?php
41
  }
42
 
43
+ /*********************************************
44
+ * Archives_where
45
+ */
46
  add_filter( 'getarchives_where', 'vkExUnit_info_getarchives_where', 10, 2 );
47
  function vkExUnit_info_getarchives_where( $where, $r ) {
48
+ global $my_archives_post_type;
49
+ if ( isset( $r['post_type'] ) ) {
50
+ $my_archives_post_type = $r['post_type'];
51
+ $where = str_replace( '\'post\'', '\'' . $r['post_type'] . '\'', $where );
52
+ } else {
53
+ $my_archives_post_type = '';
54
+ }
55
+ return $where;
56
  }
57
 
58
  add_filter( 'get_archives_link', 'vkExUnit_rewrite_archives_link' );
59
  function vkExUnit_rewrite_archives_link( $link_html ) {
60
+ global $my_archives_post_type;
61
+ if ( $my_archives_post_type && $my_archives_post_type != 'post' ) {
62
 
63
+ $link_url_before = preg_replace( "/^.+<a.+href=\'(.+)\'.+$/is", '$1', $link_html );
64
+ if ( $link_html == $link_url_before ) {
65
+ return $link_html;
66
+ }
67
 
68
+ $olink = parse_url( $link_url_before );
69
+ if ( preg_match( '/\/' . $my_archives_post_type . '\/?/', $olink['path'] ) ) {
70
+ return $link_html;
71
+ }
72
 
73
+ if ( ! isset( $olink['query'] ) ) {
74
+ $olink['query'] = '';
75
+ }
76
+ parse_str( $olink['query'], $query );
77
+ if ( isset( $query['post_type'] ) && $query['post_type'] ) {
78
+ return $link_html;
79
+ }
80
 
81
+ $query['post_type'] = $my_archives_post_type;
82
+ $new_query = '?' . http_build_query( $query );
83
+ $new_url = $olink['scheme'] . '://' . $olink['host'] . $olink['path'] . $new_query;
84
 
85
+ $link_html = preg_replace( "/href=\'(.+)\'/", "href='" . $new_url . "'", $link_html );
86
+ return $link_html;
87
+ }
88
+ return $link_html;
89
  }
inc/other-widget/js/admin-widget.js CHANGED
@@ -1,40 +1,46 @@
1
  /*-------------------------------------------*/
2
  /* 画像登録処理
3
  /*-------------------------------------------*/
4
- /* 画像削除処理
5
- /*-------------------------------------------*/
6
 
7
  // 画像登録処理( ボタンに直接 onclick="javascript:vk_title_bg_image_addiditional(this);return false;" を記述している )
8
  if ( vk_widget_image_add == undefined ){
 
 
9
  var vk_widget_image_add = function(e){
10
- // プレビュー画像を表示するdiv
 
11
  var thumb_outer=jQuery(e).parent().children("._display");
12
- // 画像IDを保存するinputタグ
 
13
  var thumb_id=jQuery(e).parent().children("._form").children('._id')[0];
14
  var thumb_url=jQuery(e).parent().children("._form").children('._url')[0];
15
- var thumb_alt=jQuery(e).parent().children("._form").children('._alt')[0];
 
16
  var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
17
- u.state().get('selection').each(function(file){
18
- // プレビュー画像の枠の中の要素を一旦削除
19
- thumb_outer.children().remove();
20
- // ウィジェットフォームでのプレビュー画像を設定
21
- // thumb_outer.append(jQuery('<img class="admin-custom-thumb">').attr('src',f.toJSON().url).attr('alt',f.toJSON().url));
22
- thumb_outer.append('<img class="admin-custom-thumb" src="'+ file.toJSON().url +'" alt="'+ file.toJSON().title +'" />');
23
- /*
24
- file.toJSON().id で id
25
- file.toJSON().title で titleが返せる
26
- */
27
- // hiddeになってるinputタグのvalueも変更
28
- jQuery(thumb_id).val(file.toJSON().id);
29
- jQuery(thumb_url).val(file.toJSON().url);
30
- jQuery(thumb_alt).val(file.toJSON().title).change();
31
- });
32
  });
33
  u.open();
34
  };
35
  }
36
 
37
- // 画像削除処理( ボタンに直接 onclick="javascript:vk_title_bg_image_delete(this);return false;" を記述している )
 
 
 
38
  if ( vk_widget_image_del == undefined ){
39
  var vk_widget_image_del = function(e){
40
  // プレビュー画像を表示するdiv
1
  /*-------------------------------------------*/
2
  /* 画像登録処理
3
  /*-------------------------------------------*/
 
 
4
 
5
  // 画像登録処理( ボタンに直接 onclick="javascript:vk_title_bg_image_addiditional(this);return false;" を記述している )
6
  if ( vk_widget_image_add == undefined ){
7
+
8
+ // 画像追加処理
9
  var vk_widget_image_add = function(e){
10
+
11
+ // プレビュー画像を表示するdiv
12
  var thumb_outer=jQuery(e).parent().children("._display");
13
+
14
+ // 画像IDを保存するinputタグ
15
  var thumb_id=jQuery(e).parent().children("._form").children('._id')[0];
16
  var thumb_url=jQuery(e).parent().children("._form").children('._url')[0];
17
+ var thumb_alt=jQuery(e).parent().children("._form").children('._alt')[0];
18
+
19
  var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
20
+ u.state().get('selection').each(function(file){
21
+ // プレビュー画像の枠の中の要素を一旦削除
22
+ thumb_outer.children().remove();
23
+ // ウィジェットフォームでのプレビュー画像を設定
24
+ // thumb_outer.append(jQuery('<img class="admin-custom-thumb">').attr('src',f.toJSON().url).attr('alt',f.toJSON().url));
25
+ thumb_outer.append('<img class="admin-custom-thumb" src="'+ file.toJSON().url +'" alt="'+ file.toJSON().title +'" />');
26
+ /*
27
+ file.toJSON().id で id
28
+ file.toJSON().title で titleが返せる
29
+ */
30
+ // hiddeになってるinputタグのvalueも変更
31
+ jQuery(thumb_id).val(file.toJSON().id);
32
+ jQuery(thumb_url).val(file.toJSON().url);
33
+ jQuery(thumb_alt).val(file.toJSON().title).change();
34
+ });
35
  });
36
  u.open();
37
  };
38
  }
39
 
40
+ /*-------------------------------------------*/
41
+ /* 画像削除処理
42
+ /*-------------------------------------------*/
43
+ // 画像削除処理( ボタンに直接 onclick="javascript:vk_widget_image_del(this);return false;" を記述している )
44
  if ( vk_widget_image_del == undefined ){
45
  var vk_widget_image_del = function(e){
46
  // プレビュー画像を表示するdiv
inc/other-widget/other-widget.php CHANGED
@@ -13,7 +13,7 @@ require dirname( __FILE__ ) . '/widget-side-child-page-list.php';
13
  require dirname( __FILE__ ) . '/widget-button.php';
14
  require dirname( __FILE__ ) . '/widget-banner.php';
15
 
16
- if (is_admin()) {
17
  // ウィジェットの個別有効化機能管理画面読み込み
18
  require_once veu_get_directory() . '/inc/other-widget/class-veu-other-widget-admin-control.php';
19
  }
@@ -21,47 +21,47 @@ if (is_admin()) {
21
  function veu_widget_packages() {
22
  return array(
23
  array(
24
- 'id' => 'post_list',
25
  'class' => 'WP_Widget_vkExUnit_post_list',
26
  ),
27
  array(
28
- 'id' => 'profile',
29
- 'class' => 'WP_Widget_vkExUnit_profile',
30
  ),
31
  array(
32
- 'id' => '3pr_area',
33
- 'class' => 'WP_Widget_vkExUnit_3PR_area',
34
  ),
35
  array(
36
- 'id' => 'widget_page',
37
- 'class' => 'WP_Widget_vkExUnit_widget_page',
38
  ),
39
  array(
40
- 'id' => 'taxonomy_list',
41
- 'class' => 'WP_Widget_VK_taxonomy_list',
42
  ),
43
  array(
44
- 'id' => 'archive_list',
45
- 'class' => 'WP_Widget_VK_archive_list',
46
  ),
47
  array(
48
- 'id' => 'pr_blocks',
49
- 'class' => 'WP_Widget_vkExUnit_PR_Blocks',
50
  ),
51
  array(
52
- 'id' => 'child_page_list',
53
- 'class' => 'WP_Widget_vkExUnit_ChildPageList',
54
  ),
55
  array(
56
- 'id' => 'button',
57
  'class' => 'WP_Widget_Button',
58
  ),
59
  array(
60
- 'id' => 'banner',
61
  'class' => 'WidgetBanner',
62
- )
63
  );
64
  // next id is 11.
65
  }
66
 
67
- add_action('widgets_init', array('VEU_Widget_Control', 'widgets_init'));
13
  require dirname( __FILE__ ) . '/widget-button.php';
14
  require dirname( __FILE__ ) . '/widget-banner.php';
15
 
16
+ if ( is_admin() ) {
17
  // ウィジェットの個別有効化機能管理画面読み込み
18
  require_once veu_get_directory() . '/inc/other-widget/class-veu-other-widget-admin-control.php';
19
  }
21
  function veu_widget_packages() {
22
  return array(
23
  array(
24
+ 'id' => 'post_list',
25
  'class' => 'WP_Widget_vkExUnit_post_list',
26
  ),
27
  array(
28
+ 'id' => 'archive_list',
29
+ 'class' => 'WP_Widget_VK_archive_list',
30
  ),
31
  array(
32
+ 'id' => 'taxonomy_list',
33
+ 'class' => 'WP_Widget_VK_taxonomy_list',
34
  ),
35
  array(
36
+ 'id' => 'child_page_list',
37
+ 'class' => 'WP_Widget_vkExUnit_ChildPageList',
38
  ),
39
  array(
40
+ 'id' => 'profile',
41
+ 'class' => 'WP_Widget_vkExUnit_profile',
42
  ),
43
  array(
44
+ 'id' => 'widget_page',
45
+ 'class' => 'WP_Widget_vkExUnit_widget_page',
46
  ),
47
  array(
48
+ 'id' => '3pr_area',
49
+ 'class' => 'WP_Widget_vkExUnit_3PR_area',
50
  ),
51
  array(
52
+ 'id' => 'pr_blocks',
53
+ 'class' => 'WP_Widget_vkExUnit_PR_Blocks',
54
  ),
55
  array(
56
+ 'id' => 'button',
57
  'class' => 'WP_Widget_Button',
58
  ),
59
  array(
60
+ 'id' => 'banner',
61
  'class' => 'WidgetBanner',
62
+ ),
63
  );
64
  // next id is 11.
65
  }
66
 
67
+ add_action( 'widgets_init', array( 'VEU_Widget_Control', 'widgets_init' ) );
inc/other-widget/widget-3pr-area.php CHANGED
@@ -13,7 +13,9 @@ class WP_Widget_vkExUnit_3PR_area extends WP_Widget {
13
  }
14
 
15
  public static function veu_widget_name() {
16
- return veu_get_prefix() . __( '3PR area', 'vk-all-in-one-expansion-unit' );
 
 
17
  }
18
 
19
  public static function veu_widget_description() {
13
  }
14
 
15
  public static function veu_widget_name() {
16
+ $name = veu_get_prefix() . __( '3PR area', 'vk-all-in-one-expansion-unit' );
17
+ // $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )';
18
+ return $name;
19
  }
20
 
21
  public static function veu_widget_description() {
inc/other-widget/widget-banner.php CHANGED
@@ -10,11 +10,15 @@ class WidgetBanner extends WP_Widget {
10
  }
11
 
12
  public static function veu_widget_name() {
13
- return veu_get_prefix() . __( 'Banner', 'vk-all-in-one-expansion-unit' );
 
 
14
  }
15
 
16
  public static function veu_widget_description() {
17
- return sprintf( __( 'You can easily set up a banner simply by registering images and link destinations.', 'vk-all-in-one-expansion-unit' ), vkExUnit_get_little_short_name());
 
 
18
  }
19
 
20
  public function widget( $args, $instance ) {
@@ -40,7 +44,6 @@ class WidgetBanner extends WP_Widget {
40
  return;
41
  }
42
 
43
-
44
  public function update( $new_instance, $old_instance ) {
45
  $instance['id'] = $new_instance['id'];
46
  $instance['href'] = $new_instance['href'];
@@ -49,7 +52,6 @@ class WidgetBanner extends WP_Widget {
49
  return $new_instance;
50
  }
51
 
52
-
53
  public static function get_bnr_option( $instance = array() ) {
54
 
55
  // 以前は alt に格納していたが後から titile に変更した
@@ -78,43 +80,47 @@ class WidgetBanner extends WP_Widget {
78
  $instance = self::get_bnr_option( $instance );
79
  $image = null;
80
  if ( is_numeric( $instance['id'] ) ) {
81
- $image = wp_get_attachment_image_src( $instance['id'], 'full' );
82
  }
83
  ?>
84
- <div class="vkExUnit_banner_area" style="padding: 2em 0;">
85
- <div class="_display" style="height:auto">
86
- <?php if ( $image ) : ?>
87
- <img src="<?php echo $image[0]; ?>" style="width:100%;height:auto;" />
88
- <?php endif; ?>
89
- </div>
90
- <button class="button button-default button-block" style="display:block;width:100%;text-align: center; margin:4px 0;" onclick="javascript:vkEx_banner_addiditional(this);return false;"><?php _e( 'Set image', 'vk-all-in-one-expansion-unit' ); ?></button>
91
- <div class="_form" style="line-height: 2em">
92
- <input type="hidden" class="__id" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" />
93
- <label>URL : <input type="text" name="<?php echo $this->get_field_name( 'href' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['href'] ); ?>" /></label><br/>
94
- <label><input type="checkbox" name="<?php echo $this->get_field_name( 'blank' ); ?>" value="true"
95
- <?php
96
- if ( $instance['blank'] ) {
97
- echo 'checked';}
98
- ?>
99
- /> <?php _e( 'Open link new tab.', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
100
- <label><?php _e( 'Alternative text', 'vk-all-in-one-expansion-unit' ); ?> :
101
- <input type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['title'] ); ?>" />
102
- </label><br/>
103
- </div>
104
- </div>
105
- <script type="text/javascript">
106
- if(vkEx_banner_addiditional == undefined){
107
- var vkEx_banner_addiditional = function(e){
108
- var d=jQuery(e).parent().children("._display");
109
- var w=jQuery(e).parent().children("._form").children('.__id')[0];
110
- var u=wp.media({library:{type:'image'},multiple:false}).on('select', function(e){
111
- u.state().get('selection').each(function(f){ d.children().remove();d.append(jQuery('<img style="width:100%;mheight:auto">').attr('src',f.toJSON().url));jQuery(w).val(f.toJSON().id).change(); });
112
- });
113
- u.open();
114
- };
115
- }
116
- </script>
117
- <?php
 
 
 
 
118
  return $instance;
119
  }
120
  }
10
  }
11
 
12
  public static function veu_widget_name() {
13
+ $name = veu_get_prefix() . __( 'Banner', 'vk-all-in-one-expansion-unit' );
14
+ // $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )';
15
+ return $name;
16
  }
17
 
18
  public static function veu_widget_description() {
19
+ $description = __( 'You can easily set up a banner simply by registering images and link destinations.', 'vk-all-in-one-expansion-unit' );
20
+ // $description .= '<br>* * * * * * * * * * * * * * * * * * * * * * * *<br>' . __( '現在はWordPress標準の画像ウィジェットかブロックエディタの画像ブロックで代用可能です。', 'vk-all-in-one-expansion-unit' );
21
+ return $description;
22
  }
23
 
24
  public function widget( $args, $instance ) {
44
  return;
45
  }
46
 
 
47
  public function update( $new_instance, $old_instance ) {
48
  $instance['id'] = $new_instance['id'];
49
  $instance['href'] = $new_instance['href'];
52
  return $new_instance;
53
  }
54
 
 
55
  public static function get_bnr_option( $instance = array() ) {
56
 
57
  // 以前は alt に格納していたが後から titile に変更した
80
  $instance = self::get_bnr_option( $instance );
81
  $image = null;
82
  if ( is_numeric( $instance['id'] ) ) {
83
+ $image = wp_get_attachment_image_src( $instance['id'], 'large' );
84
  }
85
  ?>
86
+
87
+ <div class="vkExUnit_banner_area" style="padding: 2em 0;">
88
+
89
+
90
+ <!-- [ .media_image_section ] -->
91
+ <div class="media_image_section">
92
+
93
+ <div class="_display admin-custom-thumb-outer" style="height:auto">
94
+ <?php if ( ! empty( $image ) ) : ?>
95
+ <img src="<?php echo esc_url( $image[0] ); ?>" class="admin-custom-thumb" />
96
+ <?php endif; ?>
97
+ </div>
98
+
99
+ <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
100
+ <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
101
+
102
+ <div class="_form" style="line-height: 2em">
103
+ <input type="hidden" class="_id" name="<?php echo $this->get_field_name( 'id' ); ?>" value="<?php echo esc_attr( $instance['id'] ); ?>" />
104
+ </div>
105
+
106
+ </div><!-- [ /.media_image_section ] -->
107
+
108
+ <label><?php _e( 'Alternative text', 'vk-all-in-one-expansion-unit' ); ?> :
109
+ <input class="_alt" type="text" id="<?php echo $this->get_field_id( 'title' ); ?>" name="<?php echo $this->get_field_name( 'title' ); ?>" style="width: 100%" value="<?php echo esc_attr( $instance['title'] ); ?>" />
110
+ </label>
111
+
112
+ <br/>
113
+
114
+ <label><input type="checkbox" name="<?php echo $this->get_field_name( 'blank' ); ?>" value="true"
115
+ <?php
116
+ if ( $instance['blank'] ) {
117
+ echo 'checked';}
118
+ ?>
119
+ /> <?php _e( 'Open link new tab.', 'vk-all-in-one-expansion-unit' ); ?></label>
120
+
121
+ </div>
122
+
123
+ <?php
124
  return $instance;
125
  }
126
  }
inc/other-widget/widget-button.php CHANGED
@@ -37,11 +37,15 @@ class WP_Widget_Button extends WP_Widget {
37
  }
38
 
39
  public static function veu_widget_name() {
40
- return veu_get_prefix() . __( 'Button', 'vk-all-in-one-expansion-unit' );
 
 
41
  }
42
 
43
  public static function veu_widget_description() {
44
- return __( 'You can set buttons for arbitrary text.', 'vk-all-in-one-expansion-unit' );
 
 
45
  }
46
 
47
  function widget( $args, $instance ) {
37
  }
38
 
39
  public static function veu_widget_name() {
40
+ $name = veu_get_prefix() . __( 'Button', 'vk-all-in-one-expansion-unit' );
41
+ // $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )';
42
+ return $name;
43
  }
44
 
45
  public static function veu_widget_description() {
46
+ $description = __( 'You can set buttons for arbitrary text.', 'vk-all-in-one-expansion-unit' );
47
+ // $description .= '<br>* * * * * * * * * * * * * * * * * * * * * * * *<br>' . __( '現在はブロックエディタで「VK ボタン」ブロックか WordPress標準の「ボタン」ブロックで代用可能です。', 'vk-all-in-one-expansion-unit' );
48
+ return $description;
49
  }
50
 
51
  function widget( $args, $instance ) {
inc/other-widget/widget-page.php CHANGED
@@ -14,7 +14,9 @@ class WP_Widget_vkExUnit_widget_page extends WP_Widget {
14
  }
15
 
16
  public static function veu_widget_name() {
17
- return veu_get_prefix() . __( 'page content to widget', 'vk-all-in-one-expansion-unit' );
 
 
18
  }
19
 
20
  public static function veu_widget_description() {
14
  }
15
 
16
  public static function veu_widget_name() {
17
+ $name = veu_get_prefix() . __( 'Page content to widget', 'vk-all-in-one-expansion-unit' );
18
+ // $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )';
19
+ return $name;
20
  }
21
 
22
  public static function veu_widget_description() {
inc/other-widget/widget-pr-blocks.php CHANGED
@@ -22,7 +22,9 @@ class WP_Widget_vkExUnit_PR_Blocks extends WP_Widget {
22
  }
23
 
24
  public static function veu_widget_name() {
25
- return veu_get_prefix() . __( 'PR Blocks', 'vk-all-in-one-expansion-unit' );
 
 
26
  }
27
 
28
  public static function veu_widget_description() {
22
  }
23
 
24
  public static function veu_widget_name() {
25
+ $name = veu_get_prefix() . __( 'PR Blocks', 'vk-all-in-one-expansion-unit' );
26
+ // $name .= ' ( ' . __( 'Not recommended', 'vk-all-in-one-expansion-unit' ) . ' )';
27
+ return $name;
28
  }
29
 
30
  public static function veu_widget_description() {
inc/other-widget/widget-profile.php CHANGED
@@ -64,22 +64,27 @@ class WP_Widget_vkExUnit_profile extends WP_Widget {
64
  <?php //media uploader ?>
65
  <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Select Profile image:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
66
 
 
 
67
  <div class="media_image_section">
 
68
  <div class="_display admin-custom-thumb-outer" style="height:auto">
69
- <?php
70
- if ( ! empty( $instance['mediaFile'] ) ) :
71
- ?>
72
  <img src="<?php echo esc_url( $instance['mediaFile'] ); ?>" class="admin-custom-thumb" />
73
  <?php endif; ?>
74
  </div>
 
75
  <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
76
  <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
 
77
  <div class="_form" style="line-height: 2em">
78
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'mediaFile' ); ?>" value="<?php echo esc_attr( $instance['mediaFile'] ); ?>" />
79
- <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'mediaAlt' ); ?>" value="<?php echo esc_attr( $instance['mediaAlt'] ); ?>" />
80
  </div>
 
81
  </div><!-- [ /.media_image_section ] -->
82
 
 
83
  <?php //image round setting ?>
84
  <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaRound' ); ?>" name="<?php echo $this->get_field_name( 'mediaRound' ); ?>" value="true" <?php echo ( $instance['mediaRound'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaRound' ); ?>"><?php _e( 'Cut out round the image.', 'vk-all-in-one-expansion-unit' ); ?></label>
85
  </p>
64
  <?php //media uploader ?>
65
  <p><label for="<?php echo $this->get_field_id( 'profile' ); ?>"><?php _e( 'Select Profile image:', 'vk-all-in-one-expansion-unit' ); ?></label><br/>
66
 
67
+
68
+ <!-- [ .media_image_section ] -->
69
  <div class="media_image_section">
70
+
71
  <div class="_display admin-custom-thumb-outer" style="height:auto">
72
+ <?php if ( ! empty( $instance['mediaFile'] ) ) : ?>
 
 
73
  <img src="<?php echo esc_url( $instance['mediaFile'] ); ?>" class="admin-custom-thumb" />
74
  <?php endif; ?>
75
  </div>
76
+
77
  <button class="button button-default widget_media_btn_select" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_add(this);return false;"><?php _e( 'Select image', 'vk-all-in-one-expansion-unit' ); ?></button>
78
  <button class="button button-default widget_media_btn_reset" style="text-align: center; margin:4px 0;" onclick="javascript:vk_widget_image_del(this);return false;"><?php _e( 'Clear image', 'vk-all-in-one-expansion-unit' ); ?></button>
79
+
80
  <div class="_form" style="line-height: 2em">
81
  <input type="hidden" class="_url" name="<?php echo $this->get_field_name( 'mediaFile' ); ?>" value="<?php echo esc_attr( $instance['mediaFile'] ); ?>" />
82
+ <input type="hidden" class="_alt" name="<?php echo $this->get_field_name( 'mediaAlt' ); ?>" value="<?php echo esc_attr( $instance['mediaAlt'] ); ?>" />
83
  </div>
84
+
85
  </div><!-- [ /.media_image_section ] -->
86
 
87
+
88
  <?php //image round setting ?>
89
  <p><input type="checkbox" id="<?php echo $this->get_field_id( 'mediaRound' ); ?>" name="<?php echo $this->get_field_name( 'mediaRound' ); ?>" value="true" <?php echo ( $instance['mediaRound'] ) ? 'checked' : ''; ?> ><label for="<?php echo $this->get_field_id( 'mediaRound' ); ?>"><?php _e( 'Cut out round the image.', 'vk-all-in-one-expansion-unit' ); ?></label>
90
  </p>
inc/page-list-ancestor/block.jsx CHANGED
@@ -13,7 +13,7 @@
13
  );
14
 
15
  registerBlockType("vk-blocks/page-list-ancestor", {
16
- title: __("Page list ancestor", "veu-block"),
17
  icon: BlockIcon,
18
  category: "veu-block",
19
  edit: ({className}) => {
13
  );
14
 
15
  registerBlockType("vk-blocks/page-list-ancestor", {
16
+ title: __("Page list from ancestor", "veu-block"),
17
  icon: BlockIcon,
18
  category: "veu-block",
19
  edit: ({className}) => {
languages/veu-block.pot CHANGED
@@ -28,7 +28,7 @@ msgid "Set telephone and mail form vertically"
28
  msgstr ""
29
 
30
  #: inc/page-list-ancestor/block.jsx:16
31
- msgid "Page list ancestor"
32
  msgstr ""
33
 
34
  #: inc/sitemap-page/block.jsx:27
28
  msgstr ""
29
 
30
  #: inc/page-list-ancestor/block.jsx:16
31
+ msgid "Page list from ancestor"
32
  msgstr ""
33
 
34
  #: inc/sitemap-page/block.jsx:27
package-lock.json CHANGED
@@ -1071,19 +1071,18 @@
1071
  "dev": true
1072
  },
1073
  "@npmcli/git": {
1074
- "version": "2.0.6",
1075
- "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.0.6.tgz",
1076
- "integrity": "sha512-a1MnTfeRPBaKbFY07fd+6HugY1WAkKJzdiJvlRub/9o5xz2F/JtPacZZapx5zRJUQFIzSL677vmTSxEcDMrDbg==",
1077
  "dev": true,
1078
  "requires": {
1079
- "@npmcli/promise-spawn": "^1.1.0",
1080
  "lru-cache": "^6.0.0",
1081
- "mkdirp": "^1.0.3",
1082
- "npm-pick-manifest": "^6.0.0",
1083
  "promise-inflight": "^1.0.1",
1084
  "promise-retry": "^2.0.1",
1085
- "semver": "^7.3.2",
1086
- "unique-filename": "^1.1.1",
1087
  "which": "^2.0.2"
1088
  },
1089
  "dependencies": {
1071
  "dev": true
1072
  },
1073
  "@npmcli/git": {
1074
+ "version": "2.1.0",
1075
+ "resolved": "https://registry.npmjs.org/@npmcli/git/-/git-2.1.0.tgz",
1076
+ "integrity": "sha512-/hBFX/QG1b+N7PZBFs0bi+evgRZcK9nWBxQKZkGoXUT5hJSwl5c4d7y8/hm+NQZRPhQ67RzFaj5UM9YeyKoryw==",
1077
  "dev": true,
1078
  "requires": {
1079
+ "@npmcli/promise-spawn": "^1.3.2",
1080
  "lru-cache": "^6.0.0",
1081
+ "mkdirp": "^1.0.4",
1082
+ "npm-pick-manifest": "^6.1.1",
1083
  "promise-inflight": "^1.0.1",
1084
  "promise-retry": "^2.0.1",
1085
+ "semver": "^7.3.5",
 
1086
  "which": "^2.0.2"
1087
  },
1088
  "dependencies": {
readme.txt CHANGED
@@ -4,7 +4,7 @@ Donate link:
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.0
7
- Stable tag: 9.63.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
@@ -81,6 +81,12 @@ e.g.
81
 
82
  == Changelog ==
83
 
 
 
 
 
 
 
84
  = 9.63.1.0 =
85
  * [ Other ][ CTA ] text only.
86
 
4
  Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
5
  Requires at least: 5.3.0
6
  Tested up to: 5.8.0
7
+ Stable tag: 9.64.1.0
8
  License: GPLv2 or later
9
  License URI: http://www.gnu.org/licenses/gpl-2.0.html
10
 
81
 
82
  == Changelog ==
83
 
84
+ = 9.64.1.0 =
85
+ * [ Bug fix ][ Banner Widget ] Fix change banner image on widget setting page
86
+
87
+ = 9.64.0.0 =
88
+ * [ Specification Change ][ CTA ] Change disable priority by individual post
89
+
90
  = 9.63.1.0 =
91
  * [ Other ][ CTA ] text only.
92
 
vkExUnit.php CHANGED
@@ -3,7 +3,7 @@
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
- * Version: 9.63.1.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages
3
  * Plugin Name: VK All in One Expansion Unit
4
  * Plugin URI: https://ex-unit.nagoya
5
  * Description: This plug-in is an integrated plug-in with a variety of features that make it powerful your web site. Many features can be stopped individually. Example Facebook Page Plugin,Social Bookmarks,Print OG Tags,Print Twitter Card Tags,Print Google Analytics tag,New post widget,Insert Related Posts and more!
6
+ * Version: 9.64.1.0
7
  * Author: Vektor,Inc.
8
  * Text Domain: vk-all-in-one-expansion-unit
9
  * Domain Path: /languages