Version Description
[ bug fix ][ Block ] Fix Attributes Error
Download this release
Release Info
Developer | kurudrive |
Plugin | VK All in One Expansion Unit |
Version | 9.31.10.0 |
Comparing to | |
See all releases |
Code changes from version 9.31.9.0 to 9.31.10.0
- assets/js/block.min.js +1 -1
- inc/child-page-index/block.jsx +4 -2
- inc/child-page-index/child-page-index.php +1 -1
- inc/common-block.php +77 -0
- inc/contact-section/contact-section.php +15 -33
- inc/page-list-ancestor/page-list-ancestor.php +1 -2
- inc/sitemap-page/sitemap-page.php +1 -2
- inc/sns/sns.php +1 -1
- initialize.php +5 -5
- languages/veu-block.pot +1 -5
- readme.txt +4 -1
- vkExUnit.php +1 -1
assets/js/block.min.js
CHANGED
@@ -1,5 +1,5 @@
|
|
1 |
"use strict";!function(e){var t=e.i18n.__,n=e.blocks.registerBlockType,r=e.components,o=r.ServerSideRender,c=(r.PanelBody,e.element.Fragment),l=e.element;n("vk-blocks/share-button",{title:t("Share button","veu-block"),icon:"share",category:"veu-block",edit:function(e){var t=e.className;return l.createElement(c,null,l.createElement("div",{className:"".concat(t," veu_share_button_block")},l.createElement(o,{block:"vk-blocks/share-button",attributes:{position:"After"}})))},save:function(){return null}})}(wp);
|
2 |
-
"use strict";!function(e){var d=e.i18n.__,l=e.blocks.registerBlockType,
|
3 |
"use strict";!function(e){var c=e.i18n.__,t=e.blocks.registerBlockType,o=e.serverSideRender,n=e.components,a=n.PanelBody,i=n.BaseControl,r=n.CheckboxControl,s=e.element.Fragment,u=e.blockEditor.InspectorControls,b=e.element;t("vk-blocks/contact-section",{title:c("Contact section","veu-block"),icon:"phone",category:"veu-block",attributes:{vertical:{type:"boolean",default:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=(e.className,t.vertical);return b.createElement(s,null,b.createElement(u,null,b.createElement(a,{title:c("Display conditions","vk-all-in-one-expansion-unit"),initialOpen:!1},b.createElement(i,{label:c("Set telephone and mail form vertically","vk-all-in-one-expansion-unit")},b.createElement(r,{className:"mb-1",checked:l,onChange:function(e){return n({vertical:e})}})))),b.createElement("div",{className:"veu_contact_section_block"},b.createElement(o,{block:"vk-blocks/contact-section",attributes:e.attributes})))},save:function(){return null}})}(wp);
|
4 |
"use strict";!function(e){var t=e.i18n.__,c=e.blocks.registerBlockType,l=e.components,n=l.ServerSideRender,a=(l.PanelBody,e.element.Fragment),r=e.element;c("vk-blocks/page-list-ancestor",{title:t("Page list ancestor","veu-block"),icon:"editor-ul",category:"veu-block",edit:function(e){var t=e.className;return r.createElement(a,null,r.createElement("div",{className:"".concat(t," veu_page_list_ancestor_block")},r.createElement(n,{block:"vk-blocks/page-list-ancestor",attributes:{className:t}})))},save:function(){return null}})}(wp);
|
5 |
"use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,c=e.components.ServerSideRender,n=e.element.Fragment,a=e.element,r=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 576 512"},a.createElement("g",null,a.createElement("path",{d:"M177.8,325L49,324.9c-20.6,0-37.3,16.7-37.3,37.3l-0.1,110.7c0,20.6,16.7,37.3,37.3,37.4l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C215.1,341.8,198.4,325,177.8,325z M57.5,464.3l0.1-93.4L169,371v93.4L57.5,464.3z"}),a.createElement("path",{d:"M532.7,325.3l-128.8-0.1c-20.6,0-37.3,16.7-37.3,37.3l-0.1,110.7c0,10,3.9,19.4,10.9,26.4c7,7.1,16.4,11,26.4,11l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C570,342.1,553.2,325.3,532.7,325.3z M412.4,464.6l0.1-93.4l111.4,0.1l-0.1,93.4L412.4,464.6 z"}),a.createElement("path",{d:"M355.2,0.1L226.4,0c-20.6,0-37.3,16.7-37.3,37.3L189,148c0,10,3.9,19.4,10.9,26.4c7,7.1,16.4,11,26.4,11l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C392.5,16.9,375.7,0.1,355.2,0.1z M234.9,139.4L235,46l111.4,0.1l-0.1,93.4L234.9,139.4z"})),a.createElement("polygon",{points:"308.7,237.7 308.8,200.1 272.8,200 272.7,237.7 92.1,237.5 92.1,310.2 128.1,310.2 128.1,273.5 453.4,273.9 453.4,310.2 489.4,310.2 489.4,237.9 "}));l("vk-blocks/sitemap",{title:t("HTML Sitemap","veu-block"),icon:r,category:"veu-block",edit:function(e){var t=e.className;return a.createElement(n,null,a.createElement("div",{className:"".concat(t," veu_sitemap_block")},a.createElement(c,{block:"vk-blocks/sitemap",attributes:{className:t}})))},save:function(){return null}})}(wp);
|
1 |
"use strict";!function(e){var t=e.i18n.__,n=e.blocks.registerBlockType,r=e.components,o=r.ServerSideRender,c=(r.PanelBody,e.element.Fragment),l=e.element;n("vk-blocks/share-button",{title:t("Share button","veu-block"),icon:"share",category:"veu-block",edit:function(e){var t=e.className;return l.createElement(c,null,l.createElement("div",{className:"".concat(t," veu_share_button_block")},l.createElement(o,{block:"vk-blocks/share-button",attributes:{position:"After"}})))},save:function(){return null}})}(wp);
|
2 |
+
"use strict";!function(e){var d=e.i18n.__,l=e.blocks.registerBlockType,u=(e.blockEditor&&e.blockEditor.BlockEdit?e.blockEditor:e.editor).InspectorControls,t=e.components,p=t.ServerSideRender,s=t.PanelBody,m=t.SelectControl,c=e.data,n=c.withSelect,E=(c.select,e.element.Fragment),g=e.element,a=g.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 576 512"},g.createElement("g",null,g.createElement("path",{d:"M236.2,272l-198.8-0.1c-20.6,0-37.3,16.7-37.3,37.3L0,449.9c0,20.6,16.7,37.3,37.3,37.4l198.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-140.7C273.5,288.8,256.8,272,236.2,272z M45.9,431.2L46,328c0-5.6,4.5-10.1,10.1-10.1l161.3,0.1 c5.6,0,10.1,4.5,10.1,10.1v103.3c0,5.6-4.5,10.1-10.1,10.1L56,441.3C50.4,441.3,45.9,436.8,45.9,431.2z"})),g.createElement("g",null,g.createElement("path",{d:"M136.8,337.8l-57,0c-6.8,0-12.2,5.5-12.2,12.2l0,41.9c0,6.8,5.5,12.2,12.2,12.3l57,0c6.8,0,12.2-5.5,12.2-12.2l0-41.9 C149.1,343.3,143.6,337.8,136.8,337.8z"})),g.createElement("g",null,g.createElement("path",{d:"M538.7,272l-198.8-0.1c-20.6,0-37.3,16.7-37.3,37.3l-0.1,140.7c0,20.6,16.7,37.3,37.3,37.4l198.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-140.7C576,288.8,559.3,272,538.7,272z M348.4,431.2l0.1-103.3c0-5.6,4.5-10.1,10.1-10.1l161.3,0.1 c5.6,0,10.1,4.5,10.1,10.1v103.3c0,5.6-4.5,10.1-10.1,10.1l-161.4-0.1C352.9,441.3,348.4,436.8,348.4,431.2z"})),g.createElement("g",null,g.createElement("path",{d:"M439.3,337.8l-57,0c-6.8,0-12.2,5.5-12.2,12.2l0,41.9c0,6.8,5.5,12.2,12.2,12.3l57,0c6.8,0,12.2-5.5,12.2-12.2l0-41.9 C451.6,343.3,446.1,337.8,439.3,337.8z"})),g.createElement("g",null,g.createElement("path",{d:"M236.2,30.8L37.4,30.7C16.8,30.7,0.1,47.4,0.1,68L0,208.7c0,20.6,16.7,37.3,37.3,37.4l198.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-140.7C273.5,47.6,256.8,30.8,236.2,30.8z M45.9,190L46,86.8c0-5.6,4.5-10.1,10.1-10.1l161.3,0.1 c5.6,0,10.1,4.5,10.1,10.1v103.3c0,5.6-4.5,10.1-10.1,10.1L56,200.1C50.4,200.1,45.9,195.6,45.9,190z"})),g.createElement("g",null,g.createElement("path",{d:"M136.8,96.6l-57,0c-6.8,0-12.2,5.5-12.2,12.2l0,41.9c0,6.8,5.5,12.2,12.2,12.3l57,0c6.8,0,12.2-5.5,12.2-12.2l0-41.9 C149.1,102.2,143.6,96.6,136.8,96.6z"})),g.createElement("g",null,g.createElement("path",{d:"M538.7,30.8l-198.8-0.1c-20.6,0-37.3,16.7-37.3,37.3l-0.1,140.7c0,20.6,16.7,37.3,37.3,37.4l198.8,0.1 c20.6,0,37.3-16.7,37.3-37.3L576,68.2C576,47.6,559.3,30.8,538.7,30.8z M348.4,190l0.1-103.3c0-5.6,4.5-10.1,10.1-10.1l161.3,0.1 c5.6,0,10.1,4.5,10.1,10.1v103.3c0,5.6-4.5,10.1-10.1,10.1l-161.4-0.1C352.9,200.1,348.4,195.6,348.4,190z"})),g.createElement("g",null,g.createElement("path",{d:"M439.3,96.6l-57,0c-6.8,0-12.2,5.5-12.2,12.2l0,41.9c0,6.8,5.5,12.2,12.2,12.3l57,0c6.8,0,12.2-5.5,12.2-12.2l0-41.9 C451.6,102.2,446.1,96.6,439.3,96.6z"})));l("vk-blocks/child-page-index",{title:d("Child page index","veu-block"),icon:a,category:"veu-block",attributes:{postId:{type:"number",default:-1}},edit:n(function(e){return{pages:e("core").getEntityRecords("postType","page",{_embed:!0,per_page:-1})}})(function(e){var l=e.attributes,t=e.setAttributes,c=e.pages,n=l.postId,a=(l.className,[]);if(null!=c){for(var r=c.length,o=[],i=0,i=0;i<r;i++)0!=c[i].parent&&o.push(c[i].parent);for(i=0;i<r;i++)o.includes(c[i].id)&&a.push({label:c[i].title.rendered,value:c[i].id})}return g.createElement(E,null,g.createElement(u,null,g.createElement(s,{label:d("Parent Page","veu-block")},g.createElement(m,{label:d("Parent Page","veu-block"),value:n,options:a,onChange:function(e){t({postId:parseInt(e,10)})}}))),g.createElement("div",{className:"veu_child_page_list_block"},g.createElement(p,{block:"vk-blocks/child-page-index",attributes:l})))}),save:function(){return null}})}(wp);
|
3 |
"use strict";!function(e){var c=e.i18n.__,t=e.blocks.registerBlockType,o=e.serverSideRender,n=e.components,a=n.PanelBody,i=n.BaseControl,r=n.CheckboxControl,s=e.element.Fragment,u=e.blockEditor.InspectorControls,b=e.element;t("vk-blocks/contact-section",{title:c("Contact section","veu-block"),icon:"phone",category:"veu-block",attributes:{vertical:{type:"boolean",default:!1}},edit:function(e){var t=e.attributes,n=e.setAttributes,l=(e.className,t.vertical);return b.createElement(s,null,b.createElement(u,null,b.createElement(a,{title:c("Display conditions","vk-all-in-one-expansion-unit"),initialOpen:!1},b.createElement(i,{label:c("Set telephone and mail form vertically","vk-all-in-one-expansion-unit")},b.createElement(r,{className:"mb-1",checked:l,onChange:function(e){return n({vertical:e})}})))),b.createElement("div",{className:"veu_contact_section_block"},b.createElement(o,{block:"vk-blocks/contact-section",attributes:e.attributes})))},save:function(){return null}})}(wp);
|
4 |
"use strict";!function(e){var t=e.i18n.__,c=e.blocks.registerBlockType,l=e.components,n=l.ServerSideRender,a=(l.PanelBody,e.element.Fragment),r=e.element;c("vk-blocks/page-list-ancestor",{title:t("Page list ancestor","veu-block"),icon:"editor-ul",category:"veu-block",edit:function(e){var t=e.className;return r.createElement(a,null,r.createElement("div",{className:"".concat(t," veu_page_list_ancestor_block")},r.createElement(n,{block:"vk-blocks/page-list-ancestor",attributes:{className:t}})))},save:function(){return null}})}(wp);
|
5 |
"use strict";!function(e){var t=e.i18n.__,l=e.blocks.registerBlockType,c=e.components.ServerSideRender,n=e.element.Fragment,a=e.element,r=a.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",x:"0px",y:"0px",viewBox:"0 0 576 512"},a.createElement("g",null,a.createElement("path",{d:"M177.8,325L49,324.9c-20.6,0-37.3,16.7-37.3,37.3l-0.1,110.7c0,20.6,16.7,37.3,37.3,37.4l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C215.1,341.8,198.4,325,177.8,325z M57.5,464.3l0.1-93.4L169,371v93.4L57.5,464.3z"}),a.createElement("path",{d:"M532.7,325.3l-128.8-0.1c-20.6,0-37.3,16.7-37.3,37.3l-0.1,110.7c0,10,3.9,19.4,10.9,26.4c7,7.1,16.4,11,26.4,11l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C570,342.1,553.2,325.3,532.7,325.3z M412.4,464.6l0.1-93.4l111.4,0.1l-0.1,93.4L412.4,464.6 z"}),a.createElement("path",{d:"M355.2,0.1L226.4,0c-20.6,0-37.3,16.7-37.3,37.3L189,148c0,10,3.9,19.4,10.9,26.4c7,7.1,16.4,11,26.4,11l128.8,0.1 c20.6,0,37.3-16.7,37.3-37.3l0.1-110.7C392.5,16.9,375.7,0.1,355.2,0.1z M234.9,139.4L235,46l111.4,0.1l-0.1,93.4L234.9,139.4z"})),a.createElement("polygon",{points:"308.7,237.7 308.8,200.1 272.8,200 272.7,237.7 92.1,237.5 92.1,310.2 128.1,310.2 128.1,273.5 453.4,273.9 453.4,310.2 489.4,310.2 489.4,237.9 "}));l("vk-blocks/sitemap",{title:t("HTML Sitemap","veu-block"),icon:r,category:"veu-block",edit:function(e){var t=e.className;return a.createElement(n,null,a.createElement("div",{className:"".concat(t," veu_sitemap_block")},a.createElement(c,{block:"vk-blocks/sitemap",attributes:{className:t}})))},save:function(){return null}})}(wp);
|
inc/child-page-index/block.jsx
CHANGED
@@ -68,7 +68,8 @@
|
|
68 |
const { attributes, setAttributes, pages } = props;
|
69 |
const { postId, className } = attributes;
|
70 |
|
71 |
-
let options = [ { label: __( "This Page", "veu-block" ), value: -1 } ]
|
|
|
72 |
|
73 |
if (pages != undefined) {
|
74 |
const l = pages.length
|
@@ -88,11 +89,12 @@
|
|
88 |
}
|
89 |
}
|
90 |
}
|
91 |
-
|
92 |
let currentPostId = select("core/editor").getCurrentPostId();
|
93 |
if(currentPostId){
|
94 |
options = options.filter(option => option.value !== currentPostId)
|
95 |
}
|
|
|
96 |
|
97 |
return (
|
98 |
<Fragment>
|
68 |
const { attributes, setAttributes, pages } = props;
|
69 |
const { postId, className } = attributes;
|
70 |
|
71 |
+
// let options = [ { label: __( "This Page", "veu-block" ), value: -1 } ]
|
72 |
+
let options = [];
|
73 |
|
74 |
if (pages != undefined) {
|
75 |
const l = pages.length
|
89 |
}
|
90 |
}
|
91 |
}
|
92 |
+
/*
|
93 |
let currentPostId = select("core/editor").getCurrentPostId();
|
94 |
if(currentPostId){
|
95 |
options = options.filter(option => option.value !== currentPostId)
|
96 |
}
|
97 |
+
*/
|
98 |
|
99 |
return (
|
100 |
<Fragment>
|
inc/child-page-index/child-page-index.php
CHANGED
@@ -209,7 +209,7 @@ function veu_child_page_index_save_custom_field( $post_id ) {
|
|
209 |
|
210 |
add_action( 'init', 'veu_child_page_index_setup', 15 );
|
211 |
function veu_child_page_index_setup() {
|
212 |
-
|
213 |
|
214 |
register_block_type(
|
215 |
'vk-blocks/child-page-index',
|
209 |
|
210 |
add_action( 'init', 'veu_child_page_index_setup', 15 );
|
211 |
function veu_child_page_index_setup() {
|
212 |
+
global $common_attributes;
|
213 |
|
214 |
register_block_type(
|
215 |
'vk-blocks/child-page-index',
|
inc/common-block.php
ADDED
@@ -0,0 +1,77 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
<?php
|
2 |
+
/**
|
3 |
+
* Common Block Option
|
4 |
+
*
|
5 |
+
* @package VK All in One Expansion Unit
|
6 |
+
*/
|
7 |
+
|
8 |
+
global $common_attributes;
|
9 |
+
$common_attributes = array(
|
10 |
+
'vkb_hidden' => array(
|
11 |
+
'type' => 'boolean',
|
12 |
+
'default' => false,
|
13 |
+
),
|
14 |
+
'vkb_hidden_xxl' => array(
|
15 |
+
'type' => 'boolean',
|
16 |
+
'default' => false,
|
17 |
+
),
|
18 |
+
'vkb_hidden_xl_v2' => array(
|
19 |
+
'type' => 'boolean',
|
20 |
+
'default' => false,
|
21 |
+
),
|
22 |
+
'vkb_hidden_xl' => array(
|
23 |
+
'type' => 'boolean',
|
24 |
+
'default' => false,
|
25 |
+
),
|
26 |
+
'vkb_hidden_lg' => array(
|
27 |
+
'type' => 'boolean',
|
28 |
+
'default' => false,
|
29 |
+
),
|
30 |
+
'vkb_hidden_md' => array(
|
31 |
+
'type' => 'boolean',
|
32 |
+
'default' => false,
|
33 |
+
),
|
34 |
+
'vkb_hidden_sm' => array(
|
35 |
+
'type' => 'boolean',
|
36 |
+
'default' => false,
|
37 |
+
),
|
38 |
+
'vkb_hidden_xs' => array(
|
39 |
+
'type' => 'boolean',
|
40 |
+
'default' => false,
|
41 |
+
),
|
42 |
+
);
|
43 |
+
|
44 |
+
if ( ! function_exists( 'vk_add_hidden_class' ) ) {
|
45 |
+
/**
|
46 |
+
* Hidden Class Options
|
47 |
+
*
|
48 |
+
* @param string $classes added classes.
|
49 |
+
* @param string $attributes attributes.
|
50 |
+
*/
|
51 |
+
function vk_add_hidden_class( $classes = '', $attributes ) {
|
52 |
+
|
53 |
+
if ( isset( $attributes['vkb_hidden'] ) && $attributes['vkb_hidden'] ) {
|
54 |
+
$classes .= ' vk_hidden';
|
55 |
+
}
|
56 |
+
if ( isset( $attributes['vkb_hidden_xxl'] ) && $attributes['vkb_hidden_xxl'] ) {
|
57 |
+
$classes .= ' vk_hidden-xxl';
|
58 |
+
}
|
59 |
+
if ( isset( $attributes['vkb_hidden_xl_v2'] ) && $attributes['vkb_hidden_xl_v2'] ) {
|
60 |
+
$classes .= ' vk_hidden-xl';
|
61 |
+
}
|
62 |
+
if ( isset( $attributes['vkb_hidden_lg'] ) && $attributes['vkb_hidden_lg'] ) {
|
63 |
+
$classes .= ' vk_hidden-lg';
|
64 |
+
}
|
65 |
+
if ( isset( $attributes['vkb_hidden_md'] ) && $attributes['vkb_hidden_md'] ) {
|
66 |
+
$classes .= ' vk_hidden-md';
|
67 |
+
}
|
68 |
+
if ( isset( $attributes['vkb_hidden_sm'] ) && $attributes['vkb_hidden_sm'] ) {
|
69 |
+
$classes .= ' vk_hidden-sm';
|
70 |
+
}
|
71 |
+
if ( isset( $attributes['vkb_hidden_xs'] ) && $attributes['vkb_hidden_xs'] ) {
|
72 |
+
$classes .= ' vk_hidden-xs';
|
73 |
+
}
|
74 |
+
|
75 |
+
return $classes;
|
76 |
+
}
|
77 |
+
}
|
inc/contact-section/contact-section.php
CHANGED
@@ -90,43 +90,25 @@ class VkExUnit_Contact {
|
|
90 |
}
|
91 |
|
92 |
public static function veu_contact_section_register_block() {
|
93 |
-
if ( ! function_exists( 'register_block_type' ) ) {
|
|
|
|
|
|
|
94 |
register_block_type(
|
95 |
'vk-blocks/contact-section',
|
96 |
array(
|
97 |
-
'attributes' =>
|
98 |
-
|
99 |
-
'
|
100 |
-
|
101 |
-
|
102 |
-
|
103 |
-
'
|
104 |
-
|
105 |
-
|
106 |
-
|
107 |
-
'type' => 'boolean',
|
108 |
-
'default' => false,
|
109 |
-
),
|
110 |
-
'vkb_hidden_lg' => array(
|
111 |
-
'type' => 'boolean',
|
112 |
-
'default' => false,
|
113 |
-
),
|
114 |
-
'vkb_hidden_md' => array(
|
115 |
-
'type' => 'boolean',
|
116 |
-
'default' => false,
|
117 |
-
),
|
118 |
-
'vkb_hidden_sm' => array(
|
119 |
-
'type' => 'boolean',
|
120 |
-
'default' => false,
|
121 |
-
),
|
122 |
-
'vkb_hidden_xs' => array(
|
123 |
-
'type' => 'boolean',
|
124 |
-
'default' => false,
|
125 |
-
),
|
126 |
-
'vertical' => array(
|
127 |
-
'type' => 'boolean',
|
128 |
-
'default' => false,
|
129 |
),
|
|
|
130 |
),
|
131 |
'editor_script' => 'veu-block',
|
132 |
'editor_style' => 'veu-block-editor',
|
90 |
}
|
91 |
|
92 |
public static function veu_contact_section_register_block() {
|
93 |
+
if ( ! function_exists( 'register_block_type' ) ) {
|
94 |
+
return;
|
95 |
+
}
|
96 |
+
global $common_attributes;
|
97 |
register_block_type(
|
98 |
'vk-blocks/contact-section',
|
99 |
array(
|
100 |
+
'attributes' => array_merge(
|
101 |
+
array(
|
102 |
+
'className' => array(
|
103 |
+
'type' => 'string',
|
104 |
+
'default' => ''
|
105 |
+
),
|
106 |
+
'vertical' => array(
|
107 |
+
'type' => 'boolean',
|
108 |
+
'default' => false,
|
109 |
+
),
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
110 |
),
|
111 |
+
$common_attributes
|
112 |
),
|
113 |
'editor_script' => 'veu-block',
|
114 |
'editor_style' => 'veu-block-editor',
|
inc/page-list-ancestor/page-list-ancestor.php
CHANGED
@@ -141,8 +141,7 @@ function veu_page_list_ancestor_save_custom_field( $post_id ) {
|
|
141 |
|
142 |
add_action( 'init', 'veu_page_list_ancestor_block_setup', 15 );
|
143 |
function veu_page_list_ancestor_block_setup() {
|
144 |
-
|
145 |
-
|
146 |
register_block_type(
|
147 |
'vk-blocks/page-list-ancestor',
|
148 |
array(
|
141 |
|
142 |
add_action( 'init', 'veu_page_list_ancestor_block_setup', 15 );
|
143 |
function veu_page_list_ancestor_block_setup() {
|
144 |
+
global $common_attributes;
|
|
|
145 |
register_block_type(
|
146 |
'vk-blocks/page-list-ancestor',
|
147 |
array(
|
inc/sitemap-page/sitemap-page.php
CHANGED
@@ -280,8 +280,7 @@ function vkExUnit_save_custom_field_sitemapData( $post_id ) {
|
|
280 |
|
281 |
add_action( 'init', 'veu_sitemap_block_setup', 15 );
|
282 |
function veu_sitemap_block_setup() {
|
283 |
-
|
284 |
-
|
285 |
register_block_type(
|
286 |
'vk-blocks/sitemap',
|
287 |
array(
|
280 |
|
281 |
add_action( 'init', 'veu_sitemap_block_setup', 15 );
|
282 |
function veu_sitemap_block_setup() {
|
283 |
+
global $common_attributes;
|
|
|
284 |
register_block_type(
|
285 |
'vk-blocks/sitemap',
|
286 |
array(
|
inc/sns/sns.php
CHANGED
@@ -17,7 +17,7 @@ function vew_sns_block_setup() {
|
|
17 |
if ( ! function_exists( 'register_block_type' ) ) {
|
18 |
return; }
|
19 |
|
20 |
-
|
21 |
|
22 |
register_block_type(
|
23 |
'vk-blocks/share-button',
|
17 |
if ( ! function_exists( 'register_block_type' ) ) {
|
18 |
return; }
|
19 |
|
20 |
+
global $common_attributes;
|
21 |
|
22 |
register_block_type(
|
23 |
'vk-blocks/share-button',
|
initialize.php
CHANGED
@@ -12,7 +12,7 @@ require veu_get_directory() . '/veu-package-manager.php';
|
|
12 |
// template-tags-veuでpackageの関数を使うので package-managerを先に読み込んでいる
|
13 |
require_once veu_get_directory() . '/inc/template-tags/template-tags-config.php';
|
14 |
require_once veu_get_directory() . '/inc/vk-css-optimize/vk-css-optimize-config.php';
|
15 |
-
|
16 |
require_once veu_get_directory() . '/admin/admin.php';
|
17 |
require veu_get_directory() . '/inc/footer-copyright-change.php';
|
18 |
|
@@ -52,10 +52,10 @@ add_action( 'after_setup_theme', 'veu_print_editor_css' );
|
|
52 |
|
53 |
// ブロックエディタ用のCSS読み込み( ↑ だけだと効かない )
|
54 |
function veu_print_block_editor_css() {
|
55 |
-
wp_register_style(
|
56 |
-
'veu-block-editor',
|
57 |
plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_editor_style.css',
|
58 |
-
array(),
|
59 |
filemtime( plugin_dir_path( __FILE__ ) )
|
60 |
);
|
61 |
}
|
@@ -146,7 +146,7 @@ function veu_inline_styles() {
|
|
146 |
src: url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' ) . '") format("embedded-opentype"),
|
147 |
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' ) . '") format("woff"),
|
148 |
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' ) . '") format("truetype"),
|
149 |
-
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' ). '") format("svg");
|
150 |
}';
|
151 |
|
152 |
// delete before after space
|
12 |
// template-tags-veuでpackageの関数を使うので package-managerを先に読み込んでいる
|
13 |
require_once veu_get_directory() . '/inc/template-tags/template-tags-config.php';
|
14 |
require_once veu_get_directory() . '/inc/vk-css-optimize/vk-css-optimize-config.php';
|
15 |
+
require_once veu_get_directory() . '/inc/common-block.php';
|
16 |
require_once veu_get_directory() . '/admin/admin.php';
|
17 |
require veu_get_directory() . '/inc/footer-copyright-change.php';
|
18 |
|
52 |
|
53 |
// ブロックエディタ用のCSS読み込み( ↑ だけだと効かない )
|
54 |
function veu_print_block_editor_css() {
|
55 |
+
wp_register_style(
|
56 |
+
'veu-block-editor',
|
57 |
plugins_url( '', __FILE__ ) . '/assets/css/vkExUnit_editor_style.css',
|
58 |
+
array(),
|
59 |
filemtime( plugin_dir_path( __FILE__ ) )
|
60 |
);
|
61 |
}
|
146 |
src: url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.eot?#iefix-bq20cj' ) . '") format("embedded-opentype"),
|
147 |
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.woff?-bq20cj' ) . '") format("woff"),
|
148 |
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.ttf?-bq20cj' ) . '") format("truetype"),
|
149 |
+
url("' . veu_get_directory_uri( '/inc/sns/icons/fonts/vk_sns.svg?-bq20cj#vk_sns' ) . '") format("svg");
|
150 |
}';
|
151 |
|
152 |
// delete before after space
|
languages/veu-block.pot
CHANGED
@@ -3,7 +3,7 @@ msgstr ""
|
|
3 |
"Content-Type: text/plain; charset=utf-8\n"
|
4 |
"X-Generator: babel-plugin-makepot\n"
|
5 |
|
6 |
-
#: inc/child-page-index/block.jsx:
|
7 |
msgid "Parent Page"
|
8 |
msgstr ""
|
9 |
|
@@ -11,10 +11,6 @@ msgstr ""
|
|
11 |
msgid "Child page index"
|
12 |
msgstr ""
|
13 |
|
14 |
-
#: inc/child-page-index/block.jsx:71
|
15 |
-
msgid "This Page"
|
16 |
-
msgstr ""
|
17 |
-
|
18 |
#: inc/contact-section/block.jsx:11
|
19 |
msgid "Contact section"
|
20 |
msgstr ""
|
3 |
"Content-Type: text/plain; charset=utf-8\n"
|
4 |
"X-Generator: babel-plugin-makepot\n"
|
5 |
|
6 |
+
#: inc/child-page-index/block.jsx:106
|
7 |
msgid "Parent Page"
|
8 |
msgstr ""
|
9 |
|
11 |
msgid "Child page index"
|
12 |
msgstr ""
|
13 |
|
|
|
|
|
|
|
|
|
14 |
#: inc/contact-section/block.jsx:11
|
15 |
msgid "Contact section"
|
16 |
msgstr ""
|
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.0.0
|
6 |
Tested up to: 5.5.1
|
7 |
-
Stable tag: 9.31.
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
@@ -99,6 +99,9 @@ e.g.
|
|
99 |
|
100 |
== Changelog ==
|
101 |
|
|
|
|
|
|
|
102 |
= 9.31.9.0 =
|
103 |
[ bug fix ][ Default thumbnail ] Thumbnail doesn't display on VK Posts
|
104 |
|
4 |
Tags: Google Analytics, New posts, Related Posts, sitemap, sns, twitter card, Facebook Page Plugin, OG tags,
|
5 |
Requires at least: 5.0.0
|
6 |
Tested up to: 5.5.1
|
7 |
+
Stable tag: 9.31.10.0
|
8 |
License: GPLv2 or later
|
9 |
License URI: http://www.gnu.org/licenses/gpl-2.0.html
|
10 |
|
99 |
|
100 |
== Changelog ==
|
101 |
|
102 |
+
= 9.31.10.0 =
|
103 |
+
[ bug fix ][ Block ] Fix Attributes Error
|
104 |
+
|
105 |
= 9.31.9.0 =
|
106 |
[ bug fix ][ Default thumbnail ] Thumbnail doesn't display on VK Posts
|
107 |
|
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.31.
|
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.31.10.0
|
7 |
* Author: Vektor,Inc.
|
8 |
* Text Domain: vk-all-in-one-expansion-unit
|
9 |
* Domain Path: /languages
|