From 354e73a4b3d486cc360173105dbe8c4b49f6e958 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 26 Aug 2022 14:43:21 +0900
Subject: [PATCH 01/56] add / css custom-css-extension
---
package-lock.json | 231 ++++++++++++++++++
package.json | 6 +-
src/blocks/bundle-pro.js | 5 +
.../common/custom-css-extension/index.js | 165 +++++++++++++
4 files changed, 406 insertions(+), 1 deletion(-)
create mode 100644 src/extensions/common/custom-css-extension/index.js
diff --git a/package-lock.json b/package-lock.json
index ac3363166..a52af060d 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -1317,6 +1317,107 @@
"integrity": "sha512-0hYQ8SB4Db5zvZB4axdMHGwEaQjkZzFjQiN9LVYvIFB2nSUHW9tYpxWriPrWDASIxiaXax83REcLxuSdnGPZtw==",
"dev": true
},
+ "@codemirror/autocomplete": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/autocomplete/-/autocomplete-6.1.0.tgz",
+ "integrity": "sha512-wtO4O5WDyXhhCd4q4utDIDZxnQfmJ++3dGBCG9LMtI79+92OcA1DVk/n7BEupKmjIr8AzvptDz7YQ9ud6OkU+A==",
+ "dev": true,
+ "requires": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "@codemirror/commands": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/commands/-/commands-6.1.0.tgz",
+ "integrity": "sha512-qCj2YqmbBjj0P1iumnlL5lBqZvJPzT+t2UvgjcaXErp5ZvMqFRVgQyrEfdXX6SX5UcvcHKBjXqno+MkUp0aYvQ==",
+ "dev": true,
+ "requires": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "@codemirror/lang-css": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/lang-css/-/lang-css-6.0.0.tgz",
+ "integrity": "sha512-jBqc+BTuwhNOTlrimFghLlSrN6iFuE44HULKWoR4qKYObhOIl9Lci1iYj6zMIte1XTQmZguNvjXMyr43LUKwSw==",
+ "dev": true,
+ "requires": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@lezer/css": "^1.0.0"
+ }
+ },
+ "@codemirror/language": {
+ "version": "6.2.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/language/-/language-6.2.1.tgz",
+ "integrity": "sha512-MC3svxuvIj0MRpFlGHxLS6vPyIdbTr2KKPEW46kCoCXw2ktb4NTkpkPBI/lSP/FoNXLCBJ0mrnUi1OoZxtpW1Q==",
+ "dev": true,
+ "requires": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/common": "^1.0.0",
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0",
+ "style-mod": "^4.0.0"
+ }
+ },
+ "@codemirror/lint": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/lint/-/lint-6.0.0.tgz",
+ "integrity": "sha512-nUUXcJW1Xp54kNs+a1ToPLK8MadO0rMTnJB8Zk4Z8gBdrN0kqV7uvUraU/T2yqg+grDNR38Vmy/MrhQN/RgwiA==",
+ "dev": true,
+ "requires": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "crelt": "^1.0.5"
+ }
+ },
+ "@codemirror/search": {
+ "version": "6.1.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/search/-/search-6.1.0.tgz",
+ "integrity": "sha512-ye6m0jFHSgQ4qnfWVwArvm7XrCMNppMYnL5f4M0WdBScslnckomf5eVacYCw8P0UBWeq72lCSXA0/eo1piZxLA==",
+ "dev": true,
+ "requires": {
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "crelt": "^1.0.5"
+ }
+ },
+ "@codemirror/state": {
+ "version": "6.1.1",
+ "resolved": "https://registry.npmjs.org/@codemirror/state/-/state-6.1.1.tgz",
+ "integrity": "sha512-2s+aXsxmAwnR3Rd+JDHPG/1lw0YsA9PEwl7Re88gHJHGfxyfEzKBmsN4rr53RyPIR4lzbbhJX0DCq0WlqlBIRw==",
+ "dev": true
+ },
+ "@codemirror/theme-one-dark": {
+ "version": "6.0.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/theme-one-dark/-/theme-one-dark-6.0.0.tgz",
+ "integrity": "sha512-jTCfi1I8QT++3m21Ui6sU8qwu3F/hLv161KLxfvkV1cYWSBwyUanmQFs89ChobQjBHi2x7s2k71wF9WYvE8fdw==",
+ "dev": true,
+ "requires": {
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0",
+ "@lezer/highlight": "^1.0.0"
+ }
+ },
+ "@codemirror/view": {
+ "version": "6.2.0",
+ "resolved": "https://registry.npmjs.org/@codemirror/view/-/view-6.2.0.tgz",
+ "integrity": "sha512-3emW1symh+GoteFMBPsltjmF790U/trouLILATh3JodbF/z98HvcQh2g3+H6dfNIHx16uNonsAF4mNzVr1TJNA==",
+ "dev": true,
+ "requires": {
+ "@codemirror/state": "^6.0.0",
+ "style-mod": "^4.0.0",
+ "w3c-keyname": "^2.2.4"
+ }
+ },
"@discoveryjs/json-ext": {
"version": "0.5.6",
"resolved": "https://registry.npmjs.org/@discoveryjs/json-ext/-/json-ext-0.5.6.tgz",
@@ -2276,6 +2377,59 @@
"integrity": "sha512-GaHYm+c0O9MjZRu0ongGBRbinu8gVAMd2UZjji6jVmqKtZluZnptXGWhz1E8j8D2HJ3f/yMxKAUC0b+57wncIw==",
"dev": true
},
+ "@lezer/common": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@lezer/common/-/common-1.0.0.tgz",
+ "integrity": "sha512-ohydQe+Hb+w4oMDvXzs8uuJd2NoA3D8YDcLiuDsLqH+yflDTPEpgCsWI3/6rH5C3BAedtH1/R51dxENldQceEA==",
+ "dev": true
+ },
+ "@lezer/css": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@lezer/css/-/css-1.0.0.tgz",
+ "integrity": "sha512-616VqgDKumHmYIuxs3tnX1irEQmoDHgF/TlP4O5ICWwyHwLMErq+8iKVuzTkOdBqvYAVmObqThcDEAaaMJjAdg==",
+ "dev": true,
+ "requires": {
+ "@lezer/highlight": "^1.0.0",
+ "@lezer/lr": "^1.0.0"
+ }
+ },
+ "@lezer/highlight": {
+ "version": "1.0.0",
+ "resolved": "https://registry.npmjs.org/@lezer/highlight/-/highlight-1.0.0.tgz",
+ "integrity": "sha512-nsCnNtim90UKsB5YxoX65v3GEIw3iCHw9RM2DtdgkiqAbKh9pCdvi8AWNwkYf10Lu6fxNhXPpkpHbW6mihhvJA==",
+ "dev": true,
+ "requires": {
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "@lezer/lr": {
+ "version": "1.2.3",
+ "resolved": "https://registry.npmjs.org/@lezer/lr/-/lr-1.2.3.tgz",
+ "integrity": "sha512-qpB7rBzH8f6Mzjv2AVZRahcm+2Cf7nbIH++uXbvVOL1yIRvVWQ3HAM/saeBLCyz/togB7LGo76qdJYL1uKQlqA==",
+ "dev": true,
+ "requires": {
+ "@lezer/common": "^1.0.0"
+ }
+ },
+ "@monaco-editor/loader": {
+ "version": "1.3.2",
+ "resolved": "https://registry.npmjs.org/@monaco-editor/loader/-/loader-1.3.2.tgz",
+ "integrity": "sha512-BTDbpHl3e47r3AAtpfVFTlAi7WXv4UQ/xZmz8atKl4q7epQV5e7+JbigFDViWF71VBi4IIBdcWP57Hj+OWuc9g==",
+ "dev": true,
+ "requires": {
+ "state-local": "^1.0.6"
+ }
+ },
+ "@monaco-editor/react": {
+ "version": "4.4.5",
+ "resolved": "https://registry.npmjs.org/@monaco-editor/react/-/react-4.4.5.tgz",
+ "integrity": "sha512-IImtzU7sRc66OOaQVCG+5PFHkSWnnhrUWGBuH6zNmH2h0YgmAhcjHZQc/6MY9JWEbUtVF1WPBMJ9u1XuFbRrVA==",
+ "dev": true,
+ "requires": {
+ "@monaco-editor/loader": "^1.3.2",
+ "prop-types": "^15.7.2"
+ }
+ },
"@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@@ -3742,6 +3896,44 @@
}
}
},
+ "@uiw/codemirror-extensions-basic-setup": {
+ "version": "4.11.6",
+ "resolved": "https://registry.npmjs.org/@uiw/codemirror-extensions-basic-setup/-/codemirror-extensions-basic-setup-4.11.6.tgz",
+ "integrity": "sha512-VW9tmkHvdD5u3osksBrDU/DQYNGcifK3qJPmmMKmje106pZTgIhvxABVhNCEJlDIrG5zYV5cqLtwb9TPbkd5qQ==",
+ "dev": true,
+ "requires": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/commands": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/lint": "^6.0.0",
+ "@codemirror/search": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0"
+ }
+ },
+ "@uiw/react-codemirror": {
+ "version": "4.11.6",
+ "resolved": "https://registry.npmjs.org/@uiw/react-codemirror/-/react-codemirror-4.11.6.tgz",
+ "integrity": "sha512-xPBOHtWE1MqHp8H/hTnOTxnz1ZQiQ2CHi1neiTpnjUxQUNv5mm5vTSgw2POxPh1AJqAVFuS6L1p3EZZPiVyehQ==",
+ "dev": true,
+ "requires": {
+ "@babel/runtime": "^7.18.6",
+ "@codemirror/theme-one-dark": "^6.0.0",
+ "@uiw/codemirror-extensions-basic-setup": "4.11.6",
+ "codemirror": "^6.0.0"
+ },
+ "dependencies": {
+ "@babel/runtime": {
+ "version": "7.18.9",
+ "resolved": "https://registry.npmjs.org/@babel/runtime/-/runtime-7.18.9.tgz",
+ "integrity": "sha512-lkqXDcvlFT5rvEjiu6+QYO+1GXrEHRo2LOtS7E4GtX5ESIZOgepqsZBVIj6Pv+a6zqsya9VCgiK1KAK4BvJDAw==",
+ "dev": true,
+ "requires": {
+ "regenerator-runtime": "^0.13.4"
+ }
+ }
+ }
+ },
"@use-gesture/core": {
"version": "10.2.7",
"resolved": "https://registry.npmjs.org/@use-gesture/core/-/core-10.2.7.tgz",
@@ -7343,6 +7535,21 @@
"integrity": "sha1-DQcLTQQ6W+ozovGkDi7bPZpMz3c=",
"dev": true
},
+ "codemirror": {
+ "version": "6.0.1",
+ "resolved": "https://registry.npmjs.org/codemirror/-/codemirror-6.0.1.tgz",
+ "integrity": "sha512-J8j+nZ+CdWmIeFIGXEFbFPtpiYacFMDR8GlHK3IyHQJMCaVRfGx9NT+Hxivv1ckLWPvNdZqndbr/7lVhrf/Svg==",
+ "dev": true,
+ "requires": {
+ "@codemirror/autocomplete": "^6.0.0",
+ "@codemirror/commands": "^6.0.0",
+ "@codemirror/language": "^6.0.0",
+ "@codemirror/lint": "^6.0.0",
+ "@codemirror/search": "^6.0.0",
+ "@codemirror/state": "^6.0.0",
+ "@codemirror/view": "^6.0.0"
+ }
+ },
"collect-v8-coverage": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/collect-v8-coverage/-/collect-v8-coverage-1.0.1.tgz",
@@ -8018,6 +8225,12 @@
}
}
},
+ "crelt": {
+ "version": "1.0.5",
+ "resolved": "https://registry.npmjs.org/crelt/-/crelt-1.0.5.tgz",
+ "integrity": "sha512-+BO9wPPi+DWTDcNYhr/W90myha8ptzftZT+LwcmUbbok0rcP/fequmFYCw8NMoH7pkAZQzU78b3kYrlua5a9eA==",
+ "dev": true
+ },
"cross-env": {
"version": "7.0.3",
"resolved": "https://registry.npmjs.org/cross-env/-/cross-env-7.0.3.tgz",
@@ -21423,6 +21636,12 @@
"integrity": "sha512-h88QkzREN/hy8eRdyNhhsO7RSJ5oyTqxxmmn0dzBIMUclZsjpfmrsg81vp8mjjAs2vAZ72nyWxRUwSwmh0e4xg==",
"dev": true
},
+ "state-local": {
+ "version": "1.0.7",
+ "resolved": "https://registry.npmjs.org/state-local/-/state-local-1.0.7.tgz",
+ "integrity": "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==",
+ "dev": true
+ },
"static-extend": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
@@ -21626,6 +21845,12 @@
}
}
},
+ "style-mod": {
+ "version": "4.0.0",
+ "resolved": "https://registry.npmjs.org/style-mod/-/style-mod-4.0.0.tgz",
+ "integrity": "sha512-OPhtyEjyyN9x3nhPsu76f52yUGXiZcgvsrFVtvTkyGRQJ0XK+GPc6ov1z+lRpbeabka+MYEQxOYRnt5nF30aMw==",
+ "dev": true
+ },
"style-search": {
"version": "0.1.0",
"resolved": "https://registry.npmjs.org/style-search/-/style-search-0.1.0.tgz",
@@ -23170,6 +23395,12 @@
"browser-process-hrtime": "^1.0.0"
}
},
+ "w3c-keyname": {
+ "version": "2.2.6",
+ "resolved": "https://registry.npmjs.org/w3c-keyname/-/w3c-keyname-2.2.6.tgz",
+ "integrity": "sha512-f+fciywl1SJEniZHD6H+kUO8gOnwIr7f4ijKA6+ZvJFjeGi1r4PDLl53Ayud9O/rk64RqgoQine0feoeOU0kXg==",
+ "dev": true
+ },
"w3c-xmlserializer": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/w3c-xmlserializer/-/w3c-xmlserializer-2.0.0.tgz",
diff --git a/package.json b/package.json
index 4069f3cef..1a6f3c246 100644
--- a/package.json
+++ b/package.json
@@ -46,7 +46,11 @@
"> 5%"
],
"devDependencies": {
+ "@codemirror/lang-css": "^6.0.0",
+ "@codemirror/view": "^6.2.0",
"@emotion/babel-plugin": "^11.7.2",
+ "@monaco-editor/react": "^4.4.5",
+ "@uiw/react-codemirror": "^4.11.6",
"@wordpress/babel-plugin-makepot": "^4.2.1",
"@wordpress/block-editor": "^8.2.0",
"@wordpress/block-library": "^7.0.2",
@@ -102,4 +106,4 @@
"rimraf": "^3.0.2",
"sass": "1.32.12"
}
-}
\ No newline at end of file
+}
diff --git a/src/blocks/bundle-pro.js b/src/blocks/bundle-pro.js
index 68b866f6c..7e5d73dd9 100644
--- a/src/blocks/bundle-pro.js
+++ b/src/blocks/bundle-pro.js
@@ -31,6 +31,11 @@ import * as tableofContentsNew from './_pro/table-of-contents-new';
import * as timeline from './_pro/timeline';
import * as timelineItem from './_pro/timeline-item';
+/**
+ * Extensions
+ */
+import '@vkblocks/extensions/common/custom-css-extension';
+
const vkblocksPro = [
accordion,
accordionTarget,
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
new file mode 100644
index 000000000..a57e208da
--- /dev/null
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -0,0 +1,165 @@
+/**
+ * WordPress dependencies
+ */
+import { addFilter } from '@wordpress/hooks';
+import { PanelBody } from '@wordpress/components';
+import { InspectorControls } from '@wordpress/block-editor';
+import { createHigherOrderComponent } from '@wordpress/compose';
+import { hasBlockSupport } from '@wordpress/blocks';
+import { __ } from '@wordpress/i18n';
+
+/**
+ * External dependencies
+ */
+import { assign } from 'lodash';
+import MonacoEditor from '@monaco-editor/react';
+import CodeMirror from '@uiw/react-codemirror';
+import { css } from '@codemirror/lang-css';
+import { EditorView } from '@codemirror/view';
+
+/**
+ * Internal dependencies
+ */
+
+export const inString = (str, keyword) => {
+ return str.indexOf(keyword) !== -1;
+};
+
+export const isAddBlockCss = (blockName) => {
+ const allowed = ['core', 'vk-blocks'];
+ const returnBool =
+ allowed.find((item) => inString(blockName, item)) !== undefined;
+ return returnBool;
+};
+
+/**
+ * Block.json
+ *
+ * @param {string} settings
+ */
+addFilter(
+ 'blocks.registerBlockType',
+ 'vk-blocks/custom-css',
+ (settings) => {
+ if (
+ isAddBlockCss(settings.name) &&
+ hasBlockSupport(settings.name, 'customClassName', true)
+ ) {
+ settings.attributes = assign(settings.attributes, {
+ vkbCustomCss: {
+ type: 'string',
+ default: null,
+ },
+ });
+ }
+ return settings;
+ }
+);
+
+/**
+ * edit.js
+ */
+addFilter(
+ 'editor.BlockEdit',
+ 'vk-blocks/custom-css',
+ createHigherOrderComponent((BlockEdit) => {
+ return (props) => {
+ const { name, attributes, setAttributes, isSelected } = props;
+ const { vkbCustomCss } = attributes;
+ const hasCustomClassName = hasBlockSupport(
+ name,
+ 'customClassName',
+ true
+ );
+ if (isAddBlockCss(name) && hasCustomClassName && isSelected) {
+ return (
+ <>
+
+
+
+ CodeMirror
+ {
+ setAttributes({ vkbCustomCss: value })
+ }}
+ />
+ MonacoEditor
+ {
+ setAttributes({ vkbCustomCss: value })
+ }}
+ />
+
+
+ >
+ );
+ }
+ return ;
+ };
+ }, 'vkbCustomCss')
+);
+
+/**
+ * edit.js
+ */
+addFilter(
+ 'editor.BlockListBlock',
+ 'vk-blocks/custom-css',
+ createHigherOrderComponent((BlockListBlock) => {
+ return (props) => {
+ const cssTag = props.attributes.vkbCustomCss
+ ? props.attributes.vkbCustomCss
+ : '';
+ return (
+ <>
+ {cssTag ? : null}
+
+ >
+ );
+ };
+ }, 'vkbCustomCss')
+);
+
+/**
+ * save.js
+ */
+addFilter(
+ 'blocks.getSaveElement',
+ 'vk-blocks/custom-css',
+ (el, type, attributes) => {
+ const cssTag = attributes.vkbCustomCss;
+ if (!cssTag) {
+ return el;
+ }
+ // NOTE: useBlockProps + style要素を挿入する場合、useBlockPropsを使った要素が最初(上)にこないと、
+ // カスタムクラスを追加する処理が失敗する
+ return (
+ <>
+ {el}
+
+ >
+ );
+ }
+);
From f1562b4ca4879f1a2cf58dd669c197b3781121ea Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 26 Aug 2022 14:44:11 +0900
Subject: [PATCH 02/56] lint
---
.../common/custom-css-extension/index.js | 42 +++++++++----------
1 file changed, 19 insertions(+), 23 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index a57e208da..869dfa849 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -37,24 +37,20 @@ export const isAddBlockCss = (blockName) => {
*
* @param {string} settings
*/
-addFilter(
- 'blocks.registerBlockType',
- 'vk-blocks/custom-css',
- (settings) => {
- if (
- isAddBlockCss(settings.name) &&
- hasBlockSupport(settings.name, 'customClassName', true)
- ) {
- settings.attributes = assign(settings.attributes, {
- vkbCustomCss: {
- type: 'string',
- default: null,
- },
- });
- }
- return settings;
+addFilter('blocks.registerBlockType', 'vk-blocks/custom-css', (settings) => {
+ if (
+ isAddBlockCss(settings.name) &&
+ hasBlockSupport(settings.name, 'customClassName', true)
+ ) {
+ settings.attributes = assign(settings.attributes, {
+ vkbCustomCss: {
+ type: 'string',
+ default: null,
+ },
+ });
}
-);
+ return settings;
+});
/**
* edit.js
@@ -86,13 +82,13 @@ addFilter(
className="custom-css-editor"
height="200px"
// https://uiwjs.github.io/react-codemirror/#/extensions/color
- extensions={ [
+ extensions={[
css(),
EditorView.lineWrapping,
- ] }
- value={ vkbCustomCss ? vkbCustomCss : '' }
+ ]}
+ value={vkbCustomCss ? vkbCustomCss : ''}
onChange={(value) => {
- setAttributes({ vkbCustomCss: value })
+ setAttributes({ vkbCustomCss: value });
}}
/>
MonacoEditor
@@ -106,9 +102,9 @@ addFilter(
wordWrap: true,
quickSuggestions: false, //コンテンツエリアに被るため無効
}}
- value={ vkbCustomCss ? vkbCustomCss : '' }
+ value={vkbCustomCss ? vkbCustomCss : ''}
onChange={(value) => {
- setAttributes({ vkbCustomCss: value })
+ setAttributes({ vkbCustomCss: value });
}}
/>
From aea15e40a431893f104a8403a30f7b0b94c9b225 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 31 Aug 2022 14:21:55 +0900
Subject: [PATCH 03/56] add / custom-css-extension unique selector method
---
editor-css/_editor_before.scss | 2 +
.../_editor_before_custom-css-extension.scss | 16 ++
.../common/custom-css-extension.php | 28 +++
inc/vk-blocks/utils/minify-css.php | 25 +++
inc/vk-blocks/vk-blocks-functions.php | 10 +-
.../common/custom-css-extension/icon.svg | 1 +
.../common/custom-css-extension/index.js | 189 +++++++++++++-----
7 files changed, 216 insertions(+), 55 deletions(-)
create mode 100644 editor-css/_editor_before_custom-css-extension.scss
create mode 100644 inc/vk-blocks/extensions/common/custom-css-extension.php
create mode 100644 inc/vk-blocks/utils/minify-css.php
create mode 100644 src/extensions/common/custom-css-extension/icon.svg
diff --git a/editor-css/_editor_before.scss b/editor-css/_editor_before.scss
index b97e5d580..e3ee353ea 100644
--- a/editor-css/_editor_before.scss
+++ b/editor-css/_editor_before.scss
@@ -127,6 +127,8 @@ button.image-button:not(.button-delete) {
@import "./editor_before_breadcrumb";
// slider
@import "./editor_before_slider";
+// edit custom css extension
+@import "./editor_before_custom-css-extension";
// VK Outer 編集パネル
$color-danger: #dd3333;
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
new file mode 100644
index 000000000..5e05cff60
--- /dev/null
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -0,0 +1,16 @@
+// animationブロックにカスタムCSSを使った時にどうする?
+.vk_edit_custom_css {
+ border: 1px dashed #ccc;
+ min-height:3em;
+ left:0;
+ &:before {
+ position:absolute;
+ right:0;
+ top:0;
+ font-size:10px;
+ background: #eeeeee;
+ padding: .2em .6em;
+ z-index:1000;
+ content:'Custom Css';
+ }
+}
diff --git a/inc/vk-blocks/extensions/common/custom-css-extension.php b/inc/vk-blocks/extensions/common/custom-css-extension.php
new file mode 100644
index 000000000..cf3c8ca1c
--- /dev/null
+++ b/inc/vk-blocks/extensions/common/custom-css-extension.php
@@ -0,0 +1,28 @@
+' . $css . '' . $block_content;
+ }
+ return $block_content;
+}
+add_filter( 'render_block', 'vk_blocks_custom_css_extension', 10, 2 );
diff --git a/inc/vk-blocks/utils/minify-css.php b/inc/vk-blocks/utils/minify-css.php
new file mode 100644
index 000000000..f9f4300a1
--- /dev/null
+++ b/inc/vk-blocks/utils/minify-css.php
@@ -0,0 +1,25 @@
+
\ No newline at end of file
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 869dfa849..c65167c90 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -2,17 +2,18 @@
* WordPress dependencies
*/
import { addFilter } from '@wordpress/hooks';
-import { PanelBody } from '@wordpress/components';
+import { PanelBody, Icon } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
import { createHigherOrderComponent } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
import { __ } from '@wordpress/i18n';
+import { useEffect } from '@wordpress/element';
/**
* External dependencies
*/
+import classnames from 'classnames';
import { assign } from 'lodash';
-import MonacoEditor from '@monaco-editor/react';
import CodeMirror from '@uiw/react-codemirror';
import { css } from '@codemirror/lang-css';
import { EditorView } from '@codemirror/view';
@@ -20,6 +21,8 @@ import { EditorView } from '@codemirror/view';
/**
* Internal dependencies
*/
+import { isParentReusableBlock } from '@vkblocks/utils/is-parent-reusable-block';
+import { ReactComponent as IconSVG } from './icon.svg';
export const inString = (str, keyword) => {
return str.indexOf(keyword) !== -1;
@@ -60,24 +63,86 @@ addFilter(
'vk-blocks/custom-css',
createHigherOrderComponent((BlockEdit) => {
return (props) => {
- const { name, attributes, setAttributes, isSelected } = props;
- const { vkbCustomCss } = attributes;
+ const { name, attributes, setAttributes, isSelected, clientId } =
+ props;
+ const { vkbCustomCss, className } = attributes;
const hasCustomClassName = hasBlockSupport(
name,
'customClassName',
true
);
+ // 追加CSSクラスを半角文字列で分けて配列化
+ const nowClassArray = className ? className.split(' ') : [];
+ // clientId サンプル7cdd8cf7-7645-4cf5-9d73-1181f8734cfb
+ const customCssRegex = /vk_custom_css-(|)/;
+ const customCssSelectorRegex = /selector/;
+
+ // vkbCustomCssが変わった時にclassNameに追加CSSが無いかつ、selectorがあったら追加cssクラスにクラス名を追加する
+ useEffect(() => {
+ // vk_custom_css-${clientId}が無いかつselectorがあればユニーククラスを追加
+ if (
+ !customCssRegex.test(className) &&
+ customCssSelectorRegex.test(vkbCustomCss)
+ ) {
+ const newClassName = classnames(
+ className,
+ `vk_custom_css-${clientId}`
+ );
+ setAttributes({ className: newClassName });
+ }
+
+ // selectorがなければユニーククラスを削除
+ if (!customCssSelectorRegex.test(vkbCustomCss)) {
+ const deleteClass =
+ nowClassArray.indexOf(/vk_custom_css-(.+)/);
+ nowClassArray.splice(deleteClass, 1);
+ const newClassName = classnames(nowClassArray);
+ setAttributes({ className: newClassName });
+ }
+ }, [vkbCustomCss]);
+
+ // 複製されたら再利用ブロック以外の時は以前付いていたクラス名vk-custom_css-${clientId}は削除する
+ useEffect(() => {
+ if (
+ customCssSelectorRegex.test(vkbCustomCss) &&
+ isParentReusableBlock(clientId) === false
+ ) {
+ // 前のクラス名を削除する
+ // const deleteClass = nowClassArray.find(/vk_custom_css-(|)/);
+ const deleteClass =
+ nowClassArray.indexOf(/vk_custom_css-(.+)/);
+ nowClassArray.splice(deleteClass, 1);
+ const newClassName = classnames(
+ nowClassArray,
+ `vk_custom_css-${clientId}`
+ );
+ setAttributes({ className: newClassName });
+ }
+ }, [clientId]);
+
+ let iconStyle = {
+ width: '24px',
+ height: '24px',
+ };
+ if (vkbCustomCss) {
+ iconStyle = {
+ ...iconStyle,
+ color: '#fff',
+ background: '#1e1e1e',
+ };
+ }
+
if (isAddBlockCss(name) && hasCustomClassName && isSelected) {
return (
<>
}
title={__('Custom CSS', 'vk-blocks')}
initialOpen={false}
>
- CodeMirror
- MonacoEditor
- {
- setAttributes({ vkbCustomCss: value });
- }}
- />
+
+ {__(
+ 'If selector is set to "selector", it will be replaced with a block-specific CSS class.',
+ 'vk-blocks'
+ )}
+
+
+ {'selector {\n background: black;\n}'}
+
>
@@ -114,7 +172,7 @@ addFilter(
}
return ;
};
- }, 'vkbCustomCss')
+ }, 'vkbCustomCssSection')
);
/**
@@ -125,37 +183,70 @@ addFilter(
'vk-blocks/custom-css',
createHigherOrderComponent((BlockListBlock) => {
return (props) => {
- const cssTag = props.attributes.vkbCustomCss
- ? props.attributes.vkbCustomCss
- : '';
- return (
- <>
- {cssTag ? : null}
-
- >
+ const { name, attributes } = props;
+ const hasCustomClassName = hasBlockSupport(
+ name,
+ 'customClassName',
+ true
);
+ const { vkbCustomCss, className } = attributes;
+
+ // editor class
+ const attachedClass = classnames(className, {
+ [`vk_edit_custom_css`]: vkbCustomCss,
+ });
+
+ // selectorをvk_custom_css-${clientId}に変換する
+ let cssTag;
+ const classes =
+ vkbCustomCss && className?.includes('vk_custom_css-')
+ ? className
+ .split(' ')
+ .find((i) => i.includes('vk_custom_css'))
+ : null;
+ if (vkbCustomCss) {
+ cssTag = vkbCustomCss.replace('selector', '.' + classes);
+ }
+
+ if (isAddBlockCss(name) && hasCustomClassName) {
+ return (
+ <>
+
+ {(() => {
+ if (cssTag) {
+ return ;
+ }
+ })()}
+ >
+ );
+ }
+ return ;
};
}, 'vkbCustomCss')
);
/**
* save.js
+ * attributeの内容を変更するのでsave.jsの内容とedit.js
+ * フロントエンドの出力はrender_blockする?
*/
-addFilter(
- 'blocks.getSaveElement',
- 'vk-blocks/custom-css',
- (el, type, attributes) => {
- const cssTag = attributes.vkbCustomCss;
- if (!cssTag) {
- return el;
- }
- // NOTE: useBlockProps + style要素を挿入する場合、useBlockPropsを使った要素が最初(上)にこないと、
- // カスタムクラスを追加する処理が失敗する
- return (
- <>
- {el}
-
- >
- );
- }
-);
+// addFilter(
+// 'blocks.getSaveElement',
+// 'vk-blocks/custom-css',
+// (el, type, attributes) => {
+// const cssTag = attributes.vkbCustomCss;
+// if (!cssTag) {
+// return el;
+// }
+// // selectorというクラス名をvk_custom_css-${clientId}に変更する
+
+// // NOTE: useBlockProps + style要素を挿入する場合、useBlockPropsを使った要素が最初(上)にこないと、
+// // カスタムクラスを追加する処理が失敗する
+// return (
+// <>
+// {el}
+//
+// >
+// );
+// }
+// );
From 4d2e0e1d4ccaec1fe56c387af1fde4f63c2656d4 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Mon, 5 Sep 2022 16:26:40 +0900
Subject: [PATCH 04/56] =?UTF-8?q?add=20/=20custom-css-extension=20attribut?=
=?UTF-8?q?es=E3=82=92=E8=BF=BD=E5=8A=A0=E3=82=92php=E3=81=8B=E3=82=89?=
=?UTF-8?q?=E8=A1=8C=E3=81=86=E6=96=B9=E5=BC=8F=E3=81=AB=E5=A4=89=E6=9B=B4?=
=?UTF-8?q?(dynamic=20block=E3=81=AB=E5=AF=BE=E5=BF=9C=E3=81=99=E3=82=8B?=
=?UTF-8?q?=E3=81=9F=E3=82=81)?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension.php | 61 +++++++++++++
inc/vk-blocks-pro/vk-blocks-pro-functions.php | 2 +
.../common/custom-css-extension.php | 28 ------
inc/vk-blocks/vk-blocks-functions.php | 2 -
.../common/custom-css-extension/index.js | 85 +++++--------------
5 files changed, 82 insertions(+), 96 deletions(-)
create mode 100644 inc/vk-blocks-pro/extensions/common/custom-css-extension.php
delete mode 100644 inc/vk-blocks/extensions/common/custom-css-extension.php
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
new file mode 100644
index 000000000..8625ea1cd
--- /dev/null
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -0,0 +1,61 @@
+' . $css . '' . $block_content;
+ }
+ return $block_content;
+ }
+ return $block_content;
+}
+add_filter( 'render_block', 'vk_blocks_custom_css_extension', 10, 2 );
+
+/**
+ * 各ブロックにvkbCustomCssのattributesを追加する
+ *
+ * @param string $settings settings.
+ * @param array $metadata metadata.
+ * @return string
+ */
+function vk_blocks_add_custom_css_attributes( $settings, $metadata ) {
+ if ( preg_match( '/core|vk-blocks/', $metadata['name'] ) ) {
+ $attributes = array();
+ if ( ! empty( $settings['attributes'] ) ) {
+ $attributes = $settings['attributes'];
+ }
+ $add_attributes = array(
+ 'vkbCustomCss' => array(
+ 'type' => 'string',
+ 'default' => '',
+ ),
+ );
+
+ $settings['attributes'] = array_merge(
+ $attributes,
+ $add_attributes
+ );
+ }
+ return $settings;
+}
+add_filter( 'block_type_metadata_settings', 'vk_blocks_add_custom_css_attributes', 10, 2 );
diff --git a/inc/vk-blocks-pro/vk-blocks-pro-functions.php b/inc/vk-blocks-pro/vk-blocks-pro-functions.php
index 06e381e8a..a6c2ea253 100644
--- a/inc/vk-blocks-pro/vk-blocks-pro-functions.php
+++ b/inc/vk-blocks-pro/vk-blocks-pro-functions.php
@@ -11,6 +11,8 @@
require_once dirname( __FILE__ ) . '/class-vk-blocks-pro-options.php';
VK_Blocks_Pro_Options::init();
+require_once dirname( __FILE__ ) . '/extensions/common/custom-css-extension.php';
+
/**
* Pro 専用のスクリプトの読み込み
*/
diff --git a/inc/vk-blocks/extensions/common/custom-css-extension.php b/inc/vk-blocks/extensions/common/custom-css-extension.php
deleted file mode 100644
index cf3c8ca1c..000000000
--- a/inc/vk-blocks/extensions/common/custom-css-extension.php
+++ /dev/null
@@ -1,28 +0,0 @@
-' . $css . '' . $block_content;
- }
- return $block_content;
-}
-add_filter( 'render_block', 'vk_blocks_custom_css_extension', 10, 2 );
diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php
index 3a1773d29..3c7b93aba 100644
--- a/inc/vk-blocks/vk-blocks-functions.php
+++ b/inc/vk-blocks/vk-blocks-functions.php
@@ -16,8 +16,6 @@
require_once dirname( __FILE__ ) . '/class-vk-blocks-print-css-variables.php';
-require_once dirname( __FILE__ ) . '/extensions/common/custom-css-extension.php';
-
// オプション値を定義
require_once dirname( __FILE__ ) . '/class-vk-blocks-options.php';
VK_Blocks_Options::init();
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index c65167c90..d628808c3 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -1,19 +1,18 @@
/**
* WordPress dependencies
*/
+import { __ } from '@wordpress/i18n';
import { addFilter } from '@wordpress/hooks';
import { PanelBody, Icon } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
import { createHigherOrderComponent } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
-import { __ } from '@wordpress/i18n';
import { useEffect } from '@wordpress/element';
/**
* External dependencies
*/
import classnames from 'classnames';
-import { assign } from 'lodash';
import CodeMirror from '@uiw/react-codemirror';
import { css } from '@codemirror/lang-css';
import { EditorView } from '@codemirror/view';
@@ -35,26 +34,6 @@ export const isAddBlockCss = (blockName) => {
return returnBool;
};
-/**
- * Block.json
- *
- * @param {string} settings
- */
-addFilter('blocks.registerBlockType', 'vk-blocks/custom-css', (settings) => {
- if (
- isAddBlockCss(settings.name) &&
- hasBlockSupport(settings.name, 'customClassName', true)
- ) {
- settings.attributes = assign(settings.attributes, {
- vkbCustomCss: {
- type: 'string',
- default: null,
- },
- });
- }
- return settings;
-});
-
/**
* edit.js
*/
@@ -74,7 +53,7 @@ addFilter(
// 追加CSSクラスを半角文字列で分けて配列化
const nowClassArray = className ? className.split(' ') : [];
// clientId サンプル7cdd8cf7-7645-4cf5-9d73-1181f8734cfb
- const customCssRegex = /vk_custom_css-(|)/;
+ const customCssRegex = /vk_custom_css-(.+)/;
const customCssSelectorRegex = /selector/;
// vkbCustomCssが変わった時にclassNameに追加CSSが無いかつ、selectorがあったら追加cssクラスにクラス名を追加する
@@ -93,30 +72,27 @@ addFilter(
// selectorがなければユニーククラスを削除
if (!customCssSelectorRegex.test(vkbCustomCss)) {
- const deleteClass =
- nowClassArray.indexOf(/vk_custom_css-(.+)/);
+ const deleteClass = nowClassArray.indexOf(customCssRegex);
nowClassArray.splice(deleteClass, 1);
- const newClassName = classnames(nowClassArray);
- setAttributes({ className: newClassName });
+ setAttributes({ className: classnames(nowClassArray) });
}
}, [vkbCustomCss]);
- // 複製されたら再利用ブロック以外の時は以前付いていたクラス名vk-custom_css-${clientId}は削除する
+ // 複製されたら再利用ブロック以外の時は以前付いていたクラス名vk-custom_css-${clientId}を振り直す
useEffect(() => {
if (
customCssSelectorRegex.test(vkbCustomCss) &&
isParentReusableBlock(clientId) === false
) {
// 前のクラス名を削除する
- // const deleteClass = nowClassArray.find(/vk_custom_css-(|)/);
- const deleteClass =
- nowClassArray.indexOf(/vk_custom_css-(.+)/);
+ const deleteClass = nowClassArray.indexOf(customCssRegex);
nowClassArray.splice(deleteClass, 1);
- const newClassName = classnames(
- nowClassArray,
- `vk_custom_css-${clientId}`
- );
- setAttributes({ className: newClassName });
+ setAttributes({
+ className: classnames(
+ nowClassArray,
+ `vk_custom_css-${clientId}`
+ ),
+ });
}
}, [clientId]);
@@ -124,7 +100,8 @@ addFilter(
width: '24px',
height: '24px',
};
- if (vkbCustomCss) {
+ // vkbCustomCssが存在するかつ空白文字のみではない
+ if (vkbCustomCss && vkbCustomCss.match(/\S/g)) {
iconStyle = {
...iconStyle,
color: '#fff',
@@ -192,8 +169,10 @@ addFilter(
const { vkbCustomCss, className } = attributes;
// editor class
- const attachedClass = classnames(className, {
- [`vk_edit_custom_css`]: vkbCustomCss,
+ const customCssClass = classnames(props.className, {
+ // vkbCustomCssが存在するかつ空白文字のみではない
+ [`vk_edit_custom_css`]:
+ vkbCustomCss && vkbCustomCss.match(/\S/g),
});
// selectorをvk_custom_css-${clientId}に変換する
@@ -211,7 +190,7 @@ addFilter(
if (isAddBlockCss(name) && hasCustomClassName) {
return (
<>
-
+
{(() => {
if (cssTag) {
return ;
@@ -224,29 +203,3 @@ addFilter(
};
}, 'vkbCustomCss')
);
-
-/**
- * save.js
- * attributeの内容を変更するのでsave.jsの内容とedit.js
- * フロントエンドの出力はrender_blockする?
- */
-// addFilter(
-// 'blocks.getSaveElement',
-// 'vk-blocks/custom-css',
-// (el, type, attributes) => {
-// const cssTag = attributes.vkbCustomCss;
-// if (!cssTag) {
-// return el;
-// }
-// // selectorというクラス名をvk_custom_css-${clientId}に変更する
-
-// // NOTE: useBlockProps + style要素を挿入する場合、useBlockPropsを使った要素が最初(上)にこないと、
-// // カスタムクラスを追加する処理が失敗する
-// return (
-// <>
-// {el}
-//
-// >
-// );
-// }
-// );
From 9e096ab4488b6863f510a798d93a59b99d5d6d3e Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 6 Sep 2022 12:33:09 +0900
Subject: [PATCH 05/56] =?UTF-8?q?add=20/=20custom-css-extension=20?=
=?UTF-8?q?=E3=82=AF=E3=83=A9=E3=82=B9=E5=90=8D=E5=8F=96=E5=BE=97=E6=96=B9?=
=?UTF-8?q?=E6=B3=95=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 67 +++++++++++--------
1 file changed, 39 insertions(+), 28 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index d628808c3..b4f73ae68 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -34,6 +34,9 @@ export const isAddBlockCss = (blockName) => {
return returnBool;
};
+export const customCssRegex = /vk_custom_css-(.+)/;
+export const customCssSelectorRegex = /selector/;
+
/**
* edit.js
*/
@@ -50,24 +53,24 @@ addFilter(
'customClassName',
true
);
- // 追加CSSクラスを半角文字列で分けて配列化
+ // 追加CSSを半角文字列で分けて配列化
const nowClassArray = className ? className.split(' ') : [];
- // clientId サンプル7cdd8cf7-7645-4cf5-9d73-1181f8734cfb
- const customCssRegex = /vk_custom_css-(.+)/;
- const customCssSelectorRegex = /selector/;
- // vkbCustomCssが変わった時にclassNameに追加CSSが無いかつ、selectorがあったら追加cssクラスにクラス名を追加する
+ // 追加CSSにUniqueクラスを追加したクラス名を取得する
+ const getUniqueClassName = (_nowClassArray, _clientId) => {
+ return classnames(_nowClassArray, `vk_custom_css-${_clientId}`);
+ };
+
+ // vkbCustomCssが変更されたときにclassNameにUniqueクラスが無いかつvkbCustomCssにselectorがあったらクラス名を追加
useEffect(() => {
- // vk_custom_css-${clientId}が無いかつselectorがあればユニーククラスを追加
+ // Uniqueクラスが無いかつselectorがあればユニーククラスを追加
if (
!customCssRegex.test(className) &&
customCssSelectorRegex.test(vkbCustomCss)
) {
- const newClassName = classnames(
- className,
- `vk_custom_css-${clientId}`
- );
- setAttributes({ className: newClassName });
+ setAttributes({
+ className: getUniqueClassName(nowClassArray, clientId),
+ });
}
// selectorがなければユニーククラスを削除
@@ -78,20 +81,29 @@ addFilter(
}
}, [vkbCustomCss]);
- // 複製されたら再利用ブロック以外の時は以前付いていたクラス名vk-custom_css-${clientId}を振り直す
+ // classNameが変更されたときにvkbCustomCssにselectorがあるかつclassNameにUniqueクラスが無かったらクラス名を追加
useEffect(() => {
if (
customCssSelectorRegex.test(vkbCustomCss) &&
+ !customCssRegex.test(className)
+ ) {
+ setAttributes({
+ className: getUniqueClassName(nowClassArray, clientId),
+ });
+ }
+ }, [className]);
+
+ // 複製されたときにclassNameにUniqueクラスがあるかつ再利用ブロックではない時はUniqueクラスを振り直す
+ useEffect(() => {
+ if (
+ customCssRegex.test(className) &&
isParentReusableBlock(clientId) === false
) {
// 前のクラス名を削除する
const deleteClass = nowClassArray.indexOf(customCssRegex);
nowClassArray.splice(deleteClass, 1);
setAttributes({
- className: classnames(
- nowClassArray,
- `vk_custom_css-${clientId}`
- ),
+ className: getUniqueClassName(nowClassArray, clientId),
});
}
}, [clientId]);
@@ -167,35 +179,34 @@ addFilter(
true
);
const { vkbCustomCss, className } = attributes;
+ // 追加CSSを半角文字列で分けて配列化
+ const nowClassArray = className ? className.split(' ') : [];
- // editor class
+ // editor用のクラス名
const customCssClass = classnames(props.className, {
// vkbCustomCssが存在するかつ空白文字のみではない
[`vk_edit_custom_css`]:
vkbCustomCss && vkbCustomCss.match(/\S/g),
});
- // selectorをvk_custom_css-${clientId}に変換する
+ // selectorをUniqueクラスに変換する
let cssTag;
- const classes =
- vkbCustomCss && className?.includes('vk_custom_css-')
- ? className
- .split(' ')
- .find((i) => i.includes('vk_custom_css'))
- : null;
- if (vkbCustomCss) {
- cssTag = vkbCustomCss.replace('selector', '.' + classes);
+ const uniqueClass = customCssRegex.test(className)
+ ? nowClassArray.find((i) => i.includes('vk_custom_css'))
+ : null;
+ if (vkbCustomCss && uniqueClass) {
+ cssTag = vkbCustomCss.replace('selector', '.' + uniqueClass);
}
if (isAddBlockCss(name) && hasCustomClassName) {
return (
<>
-
{(() => {
if (cssTag) {
- return ;
+ return ;
}
})()}
+
>
);
}
From 1b957a4d30888d661d36a935a36789c0ea1c59c7 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 6 Sep 2022 15:25:29 +0900
Subject: [PATCH 06/56] add / css-extension add e2e test
---
.../common/custom-css-extension/index.js | 1 +
.../specs/custom-css-extension.test.js | 109 ++++++++++++++++++
2 files changed, 110 insertions(+)
create mode 100644 test/e2e-tests/specs/custom-css-extension.test.js
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index b4f73ae68..35736a6b1 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -133,6 +133,7 @@ addFilter(
initialOpen={false}
>
{
+ let oldLanguage;
+ beforeEach( async () => {
+ oldLanguage = await changeSiteLang( 'en' );
+ await createNewPost();
+ } );
+ afterEach( async () => {
+ await changeSiteLang( oldLanguage );
+ });
+
+ /**
+ * カスタムCSSテストブロック
+ */
+ const testBlockTitleLists = [
+ // コアブロック
+ 'Paragraph',
+ // コアブロック dynamic block
+ 'Calendar',
+ // VK Blockブロック
+ 'Alert',
+ // VK Blockブロック dynamic block
+ 'Breadcrumb',
+ ]
+
+
+ it( `CustomCssExtension Paragraph`, async () => {
+ // ブロックを追加
+ await insertBlock('Paragraph');
+ // Open the sidebar.
+ await openDocumentSettingsSidebar();
+ // 設定パネルを開く
+ const openButton = await findSidebarPanelWithTitle( 'Custom CSS' );
+ await openButton.click();
+ // Custom CSSコードエディタをクリックする
+ await page.click( '[id$="vk-custom-css-code-mirror"]' );
+ // cssを記述
+ await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
+
+ const clientId = ( await getAllBlocks() )[ 0 ].clientId;
+ const regexBefore = new RegExp(
+ `
+
+`
+ );
+ expect(await getEditedPostContent()).toMatch(regexBefore);
+ } )
+
+ it( `CustomCssExtension Archives`, async () => {
+ await insertBlock('Archives');
+ await openDocumentSettingsSidebar();
+ const openButton = await findSidebarPanelWithTitle( 'Custom CSS' );
+ await openButton.click();
+ await page.click( '[id$="vk-custom-css-code-mirror"]' );
+ await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
+ const clientId = ( await getAllBlocks() )[ 0 ].clientId;
+ const regexBefore = new RegExp(
+ ``
+ );
+ expect(await getEditedPostContent()).toMatch(regexBefore);
+ } )
+
+ it( `CustomCssExtension Alert`, async () => {
+ await insertBlock('Alert');
+ await openDocumentSettingsSidebar();
+ const openButton = await findSidebarPanelWithTitle( 'Custom CSS' );
+ await openButton.click();
+ await page.click( '[id$="vk-custom-css-code-mirror"]' );
+ await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
+ const clientId = ( await getAllBlocks() )[ 0 ].clientId;
+ const regexBefore = new RegExp(
+ `
+
+`
+ );
+ expect(await getEditedPostContent()).toMatch(regexBefore);
+ } )
+
+ it( `CustomCssExtension Breadcrumb`, async () => {
+ await insertBlock('Breadcrumb');
+ await openDocumentSettingsSidebar();
+ const openButton = await findSidebarPanelWithTitle( 'Custom CSS' );
+ await openButton.click();
+ await page.click( '[id$="vk-custom-css-code-mirror"]' );
+ await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
+ const clientId = ( await getAllBlocks() )[ 0 ].clientId;
+ const regexBefore = new RegExp(
+ ``
+ );
+ expect(await getEditedPostContent()).toMatch(regexBefore);
+ } )
+
+});
From e21e0ae02e56df163168fa69f7b132280a6564fb Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 6 Sep 2022 15:56:46 +0900
Subject: [PATCH 07/56] =?UTF-8?q?add=20/=20custom-css-extension=20?=
=?UTF-8?q?=E3=82=B5=E3=83=B3=E3=83=97=E3=83=AB=E3=82=B3=E3=83=BC=E3=83=89?=
=?UTF-8?q?=E5=BE=AE=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 4 ++--
test/e2e-tests/specs/custom-css-extension.test.js | 15 ---------------
2 files changed, 2 insertions(+), 17 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 35736a6b1..a5833887a 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -152,8 +152,8 @@ addFilter(
'vk-blocks'
)}
-
- {'selector {\n background: black;\n}'}
+
+ {'selector {\n background: #f5f5f5;\n}'}
diff --git a/test/e2e-tests/specs/custom-css-extension.test.js b/test/e2e-tests/specs/custom-css-extension.test.js
index 3ad9e75ff..f2b919241 100644
--- a/test/e2e-tests/specs/custom-css-extension.test.js
+++ b/test/e2e-tests/specs/custom-css-extension.test.js
@@ -25,21 +25,6 @@ describe( 'CustomCssExtension', () => {
await changeSiteLang( oldLanguage );
});
- /**
- * カスタムCSSテストブロック
- */
- const testBlockTitleLists = [
- // コアブロック
- 'Paragraph',
- // コアブロック dynamic block
- 'Calendar',
- // VK Blockブロック
- 'Alert',
- // VK Blockブロック dynamic block
- 'Breadcrumb',
- ]
-
-
it( `CustomCssExtension Paragraph`, async () => {
// ブロックを追加
await insertBlock('Paragraph');
From 0586beef23c14b46c03d1880f0fc3543e0a470b7 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 6 Sep 2022 15:57:04 +0900
Subject: [PATCH 08/56] lint
---
src/extensions/common/custom-css-extension/index.js | 9 ++++++++-
1 file changed, 8 insertions(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index a5833887a..93b03f4d5 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -152,7 +152,14 @@ addFilter(
'vk-blocks'
)}
-
+
{'selector {\n background: #f5f5f5;\n}'}
From 7d81fb1d1cf9a3dfa326735b5ee2055475a72155 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 6 Sep 2022 16:18:20 +0900
Subject: [PATCH 09/56] fix / custom-css fix content css
---
editor-css/_editor_before_custom-css-extension.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 5e05cff60..40786abb4 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -11,6 +11,6 @@
background: #eeeeee;
padding: .2em .6em;
z-index:1000;
- content:'Custom Css';
+ content:'Custom CSS';
}
}
From d518d4ad68a22142a68b711c96f80fcecd584d63 Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Wed, 7 Sep 2022 03:06:07 +0900
Subject: [PATCH 10/56] =?UTF-8?q?update=20/=20=E3=82=AB=E3=82=B9=E3=82=BF?=
=?UTF-8?q?=E3=83=A0CSS=20:=20animation=20=E3=83=96=E3=83=AD=E3=83=83?=
=?UTF-8?q?=E3=82=AF=E3=81=AE=E4=B8=AD=E3=81=A7=E4=BD=BF=E3=82=8F=E3=82=8C?=
=?UTF-8?q?=E3=81=9F=E5=A0=B4=E5=90=88=E3=81=AE=E8=A3=9C=E6=AD=A3=E8=BF=BD?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
editor-css/_editor_before_custom-css-extension.scss | 7 +++++++
1 file changed, 7 insertions(+)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 40786abb4..063e744b9 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -14,3 +14,10 @@
content:'Custom CSS';
}
}
+
+// animationブロックの中のブロックにカスタムCSSを使われた時にラベルがかぶらないようにずらす
+.vk_animation>.block-editor-inner-blocks>.block-editor-block-list__layout {
+ &>*[class*="vk_custom_css-"]:before {
+ top: 2em;
+ }
+}
\ No newline at end of file
From f0b9b409212574644b1ed21be3298f0942d35d27 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 11:34:58 +0900
Subject: [PATCH 11/56] =?UTF-8?q?fix=20/=20custom-css=20selector=E4=BB=A5?=
=?UTF-8?q?=E5=A4=96=E3=81=AEcss=20selector=E3=81=AB=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
editor-css/_editor_before_custom-css-extension.scss | 3 +--
inc/vk-blocks-pro/extensions/common/custom-css-extension.php | 2 +-
src/extensions/common/custom-css-extension/index.js | 4 ++--
3 files changed, 4 insertions(+), 5 deletions(-)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 063e744b9..4da278efb 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -1,4 +1,3 @@
-// animationブロックにカスタムCSSを使った時にどうする?
.vk_edit_custom_css {
border: 1px dashed #ccc;
min-height:3em;
@@ -20,4 +19,4 @@
&>*[class*="vk_custom_css-"]:before {
top: 2em;
}
-}
\ No newline at end of file
+}
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 8625ea1cd..a8d38a3bd 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -15,7 +15,7 @@
function vk_blocks_custom_css_extension( $block_content, $block ) {
if ( ! empty( $block['attrs']['vkbCustomCss'] ) ) {
$css = $block['attrs']['vkbCustomCss'];
- $class_name = $block['attrs']['className'];
+ $class_name = ! empty( $block['attrs']['className']) ? $block['attrs']['className'] : '';
// 追加CSSクラスを半角文字列で分けて配列化
$now_class_array = ! empty( $class_name ) ? explode( ' ', $class_name ) : array();
$custom_css_class = preg_grep( '/vk_custom_css-[\S]/', $now_class_array );
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 93b03f4d5..c98973179 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -198,11 +198,11 @@ addFilter(
});
// selectorをUniqueクラスに変換する
- let cssTag;
+ let cssTag = vkbCustomCss ? vkbCustomCss : '';
const uniqueClass = customCssRegex.test(className)
? nowClassArray.find((i) => i.includes('vk_custom_css'))
: null;
- if (vkbCustomCss && uniqueClass) {
+ if (cssTag && uniqueClass) {
cssTag = vkbCustomCss.replace('selector', '.' + uniqueClass);
}
From b3b5989e7020dd7e51bce595705239f8048d0c55 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 13:21:10 +0900
Subject: [PATCH 12/56] =?UTF-8?q?fix=20/=20custom-css=20custom-css?=
=?UTF-8?q?=E3=81=AE=E3=82=AF=E3=83=A9=E3=82=B9=E5=90=8D=E3=81=AE=E3=81=BF?=
=?UTF-8?q?=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=E3=82=88=E3=81=86=E3=81=AB?=
=?UTF-8?q?=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 23 +++++++++++--------
1 file changed, 13 insertions(+), 10 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index c98973179..f500a3242 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -63,7 +63,7 @@ addFilter(
// vkbCustomCssが変更されたときにclassNameにUniqueクラスが無いかつvkbCustomCssにselectorがあったらクラス名を追加
useEffect(() => {
- // Uniqueクラスが無いかつselectorがあればユニーククラスを追加
+ // Uniqueクラスが無いかつselectorがあればUniqueクラスを追加
if (
!customCssRegex.test(className) &&
customCssSelectorRegex.test(vkbCustomCss)
@@ -73,11 +73,12 @@ addFilter(
});
}
- // selectorがなければユニーククラスを削除
+ // selectorがなければUniqueクラスを削除
if (!customCssSelectorRegex.test(vkbCustomCss)) {
- const deleteClass = nowClassArray.indexOf(customCssRegex);
- nowClassArray.splice(deleteClass, 1);
- setAttributes({ className: classnames(nowClassArray) });
+ const newClassArray = nowClassArray.filter(
+ (x) => !customCssRegex.test(x)
+ );
+ setAttributes({ className: classnames(newClassArray) });
}
}, [vkbCustomCss]);
@@ -93,21 +94,23 @@ addFilter(
}
}, [className]);
- // 複製されたときにclassNameにUniqueクラスがあるかつ再利用ブロックではない時はUniqueクラスを振り直す
+ // 複製された時にclassNameにUniqueクラスがあるかつ再利用ブロックではない時はUniqueクラスを振り直す
useEffect(() => {
if (
customCssRegex.test(className) &&
isParentReusableBlock(clientId) === false
) {
- // 前のクラス名を削除する
- const deleteClass = nowClassArray.indexOf(customCssRegex);
- nowClassArray.splice(deleteClass, 1);
+ // 以前のUniqueクラスを削除する
+ const newClassArray = nowClassArray.filter(
+ (x) => !customCssRegex.test(x)
+ );
setAttributes({
- className: getUniqueClassName(nowClassArray, clientId),
+ className: getUniqueClassName(newClassArray, clientId),
});
}
}, [clientId]);
+ // アイコンのスタイル
let iconStyle = {
width: '24px',
height: '24px',
From 284e306566c5e6bcb14af3a5555cdc05049543cc Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 13:22:07 +0900
Subject: [PATCH 13/56] phpcs
---
inc/vk-blocks-pro/extensions/common/custom-css-extension.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index a8d38a3bd..27ce5c37e 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -15,7 +15,7 @@
function vk_blocks_custom_css_extension( $block_content, $block ) {
if ( ! empty( $block['attrs']['vkbCustomCss'] ) ) {
$css = $block['attrs']['vkbCustomCss'];
- $class_name = ! empty( $block['attrs']['className']) ? $block['attrs']['className'] : '';
+ $class_name = ! empty( $block['attrs']['className'] ) ? $block['attrs']['className'] : '';
// 追加CSSクラスを半角文字列で分けて配列化
$now_class_array = ! empty( $class_name ) ? explode( ' ', $class_name ) : array();
$custom_css_class = preg_grep( '/vk_custom_css-[\S]/', $now_class_array );
From 4b9bb2325ca0b58d4ded7ff26dd908ba34f74e88 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 14:43:11 +0900
Subject: [PATCH 14/56] add / custom-css add editor flag option
---
inc/vk-blocks-pro/admin-pro/admin-pro.php | 1 +
.../class-vk-blocks-pro-options.php | 6 +++
inc/vk-blocks/vk-blocks-functions.php | 9 +++-
src/admin/custom-css.js | 48 +++++++++++++++++++
src/admin/index.js | 2 +
.../common/custom-css-extension/index.js | 5 +-
test/phpunit/pro/test-get-options.php | 33 +++++++++++++
test/phpunit/pro/test-vk-blocks-options.php | 8 ++++
8 files changed, 110 insertions(+), 2 deletions(-)
create mode 100644 src/admin/custom-css.js
diff --git a/inc/vk-blocks-pro/admin-pro/admin-pro.php b/inc/vk-blocks-pro/admin-pro/admin-pro.php
index 571138b07..6c7ddd103 100644
--- a/inc/vk-blocks-pro/admin-pro/admin-pro.php
+++ b/inc/vk-blocks-pro/admin-pro/admin-pro.php
@@ -12,6 +12,7 @@
*/
function vk_blocks_pro_menu( $pro_menu_html ) {
$pro_menu_html = '' . __( 'FAQ Setting', 'vk-blocks' ) . ' ';
+ $pro_menu_html = '' . __( 'Custom CSS Setting', 'vk-blocks' ) . ' ';
return $pro_menu_html;
}
add_action( 'vk_blocks_pro_menu', 'vk_blocks_pro_menu' );
diff --git a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
index 7e27303bd..82a0a50be 100644
--- a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
+++ b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
@@ -24,6 +24,12 @@ class VK_Blocks_Pro_Options {
'type' => 'string',
'default' => 'disable',
),
+ // 後から追加したbooleanは値がない時にupdate_option出来なくなるのでstringで保存
+ // https://core.trac.wordpress.org/ticket/40007
+ 'show_custom_css_editor_flag' => array(
+ 'type' => 'string',
+ 'default' => 'true',
+ ),
);
/**
diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php
index d8dbcbc7e..9cd16e4ca 100644
--- a/inc/vk-blocks/vk-blocks-functions.php
+++ b/inc/vk-blocks/vk-blocks-functions.php
@@ -102,7 +102,14 @@ function vk_blocks_blocks_assets() {
wp_localize_script( 'vk-blocks-build-js', 'vk_blocks_check', array( 'is_pro' => false ) );
}
// ホーム URL を渡す用.
- wp_localize_script( 'vk-blocks-build-js', 'vk_blocks_params', array( 'home_url' => home_url( '/' ) ) );
+ wp_localize_script(
+ 'vk-blocks-build-js',
+ 'vk_blocks_params',
+ array(
+ 'home_url' => home_url( '/' ),
+ 'show_custom_css_editor_flag' => $vk_blocks_options['show_custom_css_editor_flag']
+ )
+ );
if ( vk_blocks_is_lager_than_wp( '5.0' ) ) {
global $vk_blocks_common_attributes;
diff --git a/src/admin/custom-css.js b/src/admin/custom-css.js
new file mode 100644
index 000000000..4c06157c7
--- /dev/null
+++ b/src/admin/custom-css.js
@@ -0,0 +1,48 @@
+/**
+ * WordPress dependencies
+ */
+import { __ } from '@wordpress/i18n';
+import { useContext } from '@wordpress/element';
+import { ToggleControl } from '@wordpress/components';
+
+/**
+ * Internal dependencies
+ */
+import { AdminContext } from '@vkblocks/admin/index';
+
+export default function AdminCustomCss() {
+ const { vkBlocksOption, setVkBlocksOption } = useContext(AdminContext);
+ // 後から追加したbooleanは値がない時にupdate_optionできない
+ // https://core.trac.wordpress.org/ticket/40007
+ let migrateLoadSeparateOption;
+ if (vkBlocksOption.show_custom_css_editor_flag === 'true') {
+ migrateLoadSeparateOption = true;
+ } else {
+ migrateLoadSeparateOption = false;
+ }
+ return (
+ <>
+
+
+ {__('Custom CSS Setting', 'vk-blocks')}
+
+ {
+ if (newValue) {
+ newValue = 'true';
+ } else {
+ newValue = 'false';
+ }
+ setVkBlocksOption({
+ ...vkBlocksOption,
+ show_custom_css_editor_flag: newValue,
+ });
+ }}
+ />
+
+ >
+ );
+}
diff --git a/src/admin/index.js b/src/admin/index.js
index 95188b8f4..665ceb303 100644
--- a/src/admin/index.js
+++ b/src/admin/index.js
@@ -11,6 +11,7 @@ import AdminBalloon from '@vkblocks/admin/balloon';
import AdminMargin from '@vkblocks/admin/margin';
import AdminLoadSeparate from '@vkblocks/admin/load-separate';
import AdminNewFaq from '@vkblocks/admin/new-faq';
+import AdminCustomCss from '@vkblocks/admin/custom-css';
import { SaveButton } from '@vkblocks/admin/save-button';
/*globals vkBlocksObject */
@@ -40,6 +41,7 @@ export default function VKBlocksAdmin() {
{vkBlocksObject.isPro && }
+ {vkBlocksObject.isPro && }
{
return str.indexOf(keyword) !== -1;
@@ -197,7 +198,9 @@ addFilter(
const customCssClass = classnames(props.className, {
// vkbCustomCssが存在するかつ空白文字のみではない
[`vk_edit_custom_css`]:
- vkbCustomCss && vkbCustomCss.match(/\S/g),
+ vk_blocks_params.show_custom_css_editor_flag === 'true' &&
+ vkbCustomCss &&
+ vkbCustomCss.match(/\S/g),
});
// selectorをUniqueクラスに変換する
diff --git a/test/phpunit/pro/test-get-options.php b/test/phpunit/pro/test-get-options.php
index dc4ee4cb3..97c1fc95d 100644
--- a/test/phpunit/pro/test-get-options.php
+++ b/test/phpunit/pro/test-get-options.php
@@ -77,6 +77,7 @@ public function test_vk_blocks_get_options() {
'vk_blocks_pro_license_key' => null,
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'disable',
+ 'show_custom_css_editor_flag' => 'true',
),
),
// デフォルトの表示非表示調整 v0.44.13
@@ -207,6 +208,36 @@ public function test_vk_blocks_get_options() {
),
'correct' => null
),
+ // カスタムCSS編集画面識別フラグ非表示 v
+ array(
+ 'option_check_target' => 'show_custom_css_editor_flag',
+ 'option' => array(
+ 'display_vk_block_template' => 'hide',
+ 'new_faq_accordion' => 'open',
+ 'balloon_border_width' => 2,
+ 'margin_unit' => 'px',
+ 'margin_size' => array(
+ 'lg' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ 'md' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ 'sm' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ ),
+ 'load_separate_option' => true,
+ 'vk_blocks_pro_license_key' => 'test_license_key',
+ ),
+ 'correct' => 'true'
+ ),
// 全てのオプション値を変更した時
array(
'option' => array(
@@ -233,6 +264,7 @@ public function test_vk_blocks_get_options() {
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
+ 'show_custom_css_editor_flag' => 'false',
),
'correct' => array(
'balloon_border_width' => 2,
@@ -258,6 +290,7 @@ public function test_vk_blocks_get_options() {
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
+ 'show_custom_css_editor_flag' => 'false',
),
),
);
diff --git a/test/phpunit/pro/test-vk-blocks-options.php b/test/phpunit/pro/test-vk-blocks-options.php
index 115c8f7c6..1d1e0be49 100644
--- a/test/phpunit/pro/test-vk-blocks-options.php
+++ b/test/phpunit/pro/test-vk-blocks-options.php
@@ -24,6 +24,10 @@ public function test_options_scheme() {
'type' => 'string',
'default' => 'disable',
),
+ 'show_custom_css_editor_flag' => array(
+ 'type' => 'string',
+ 'default' => 'true',
+ ),
),
'correct' => array(
'balloon_border_width' => array(
@@ -106,6 +110,10 @@ public function test_options_scheme() {
'type' => 'string',
'default' => 'disable',
),
+ 'show_custom_css_editor_flag' => array(
+ 'type' => 'string',
+ 'default' => 'true',
+ ),
),
),
);
From a89d96072c1aac42dd54dbead8581bfcee1dee81 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 14:43:50 +0900
Subject: [PATCH 15/56] phpcs
---
inc/vk-blocks-pro/class-vk-blocks-pro-options.php | 4 ++--
inc/vk-blocks/vk-blocks-functions.php | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
index 82a0a50be..7a9764062 100644
--- a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
+++ b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
@@ -16,11 +16,11 @@ class VK_Blocks_Pro_Options {
* @var array
*/
private $vk_blocks_pro_option_schema = array(
- 'display_vk_block_template' => array(
+ 'display_vk_block_template' => array(
'type' => 'string',
'default' => 'display',
),
- 'new_faq_accordion' => array(
+ 'new_faq_accordion' => array(
'type' => 'string',
'default' => 'disable',
),
diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php
index 9cd16e4ca..953c9dd26 100644
--- a/inc/vk-blocks/vk-blocks-functions.php
+++ b/inc/vk-blocks/vk-blocks-functions.php
@@ -106,8 +106,8 @@ function vk_blocks_blocks_assets() {
'vk-blocks-build-js',
'vk_blocks_params',
array(
- 'home_url' => home_url( '/' ),
- 'show_custom_css_editor_flag' => $vk_blocks_options['show_custom_css_editor_flag']
+ 'home_url' => home_url( '/' ),
+ 'show_custom_css_editor_flag' => $vk_blocks_options['show_custom_css_editor_flag'],
)
);
From 1f45de30b58af3bd527c3e2d91aee1daf121d1d3 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 15:41:29 +0900
Subject: [PATCH 16/56] =?UTF-8?q?fix=20/=20custom=20css=20=E3=83=86?=
=?UTF-8?q?=E3=82=AD=E3=82=B9=E3=83=88=E8=BF=BD=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 17 +++++++++++++++++
1 file changed, 17 insertions(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index b78cb64bb..4db1ebd62 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -8,6 +8,7 @@ import { InspectorControls } from '@wordpress/block-editor';
import { createHigherOrderComponent } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
import { useEffect } from '@wordpress/element';
+import { addQueryArgs } from '@wordpress/url';
/**
* External dependencies
@@ -166,6 +167,22 @@ addFilter(
>
{'selector {\n background: #f5f5f5;\n}'}
+
+ {__(
+ 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
+ 'vk-blocks'
+ )}
+
+
+ {__(
+ 'Custom CSS Setting',
+ 'vk-blocks'
+ )}
+
>
From 53c3cbc62fedccdf4d13139897501ca615b9666b Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 7 Sep 2022 15:41:48 +0900
Subject: [PATCH 17/56] lint
---
src/extensions/common/custom-css-extension/index.js | 5 +----
1 file changed, 1 insertion(+), 4 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 4db1ebd62..4261de837 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -178,10 +178,7 @@ addFilter(
'options-general.php?page=vk_blocks_options#custom-css-setting'
)}
>
- {__(
- 'Custom CSS Setting',
- 'vk-blocks'
- )}
+ {__('Custom CSS Setting', 'vk-blocks')}
From e0d9d337d0c04510eaa05f11ebc44ab579d08412 Mon Sep 17 00:00:00 2001
From: goutetsuguma
Date: Thu, 8 Sep 2022 13:38:10 +0900
Subject: [PATCH 18/56] =?UTF-8?q?icon=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/icon.svg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/icon.svg b/src/extensions/common/custom-css-extension/icon.svg
index 3492bf4db..b4faee82e 100644
--- a/src/extensions/common/custom-css-extension/icon.svg
+++ b/src/extensions/common/custom-css-extension/icon.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
From 3e20a19df9b9c253b274218cca529bd4eddb812a Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 03:22:50 +0900
Subject: [PATCH 19/56] =?UTF-8?q?fix=20/=20=E3=82=B3=E3=82=A2=E3=81=AE?=
=?UTF-8?q?=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=A7=20Custom=20CSS=20=E3=81=AE?=
=?UTF-8?q?=E3=83=A9=E3=83=99=E3=83=AB=E3=81=AECSS=E3=81=8C=E8=B2=A0?=
=?UTF-8?q?=E3=81=91=E3=82=8B=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
editor-css/_editor_before_custom-css-extension.scss | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 4da278efb..5c1595e49 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -9,8 +9,9 @@
font-size:10px;
background: #eeeeee;
padding: .2em .6em;
- z-index:1000;
- content:'Custom CSS';
+ z-index: 1000;
+ line-height: 1.2;
+ content: 'Custom CSS' !important;
}
}
From e3eead6750b52f102ea99072b5b567abbee7e622 Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 03:32:33 +0900
Subject: [PATCH 20/56] =?UTF-8?q?fix=20/=20=E3=82=B3=E3=82=A2=E3=81=AE?=
=?UTF-8?q?=E8=A6=8B=E5=87=BA=E3=81=97=E3=81=A7=20Custom=20CSS=20=E3=81=AE?=
=?UTF-8?q?=E8=AD=98=E5=88=A5=E7=B7=9A=E3=81=AECSS=E3=81=8C=E8=B2=A0?=
=?UTF-8?q?=E3=81=91=E3=82=8B=E3=81=AE=E3=81=A7=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
editor-css/_editor_before_custom-css-extension.scss | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 5c1595e49..e3404ca82 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -1,5 +1,5 @@
.vk_edit_custom_css {
- border: 1px dashed #ccc;
+ border: 1px dashed #ccc !important;
min-height:3em;
left:0;
&:before {
From 993c2dcbd92091c0c8725b6e4c3786360924ce45 Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 03:44:11 +0900
Subject: [PATCH 21/56] =?UTF-8?q?change=20:=20=E8=A8=AD=E5=AE=9A=E7=94=BB?=
=?UTF-8?q?=E9=9D=A2=E3=81=B8=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92?=
=?UTF-8?q?=20blank=20=E3=81=AB=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 4261de837..4403ce1d4 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -177,6 +177,7 @@ addFilter(
href={addQueryArgs(
'options-general.php?page=vk_blocks_options#custom-css-setting'
)}
+ target="_blank"
>
{__('Custom CSS Setting', 'vk-blocks')}
From 5bc32bc02cf1d772f2731040d955ac071b2202db Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 03:46:37 +0900
Subject: [PATCH 22/56] =?UTF-8?q?change=20:=20=E8=A8=AD=E5=AE=9A=E7=94=BB?=
=?UTF-8?q?=E9=9D=A2=E3=81=B8=E3=81=AE=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92?=
=?UTF-8?q?=20blank=20=E3=81=AB=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 4403ce1d4..d240776e9 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -178,6 +178,7 @@ addFilter(
'options-general.php?page=vk_blocks_options#custom-css-setting'
)}
target="_blank"
+ rel="noreferrer"
>
{__('Custom CSS Setting', 'vk-blocks')}
From 8599e333aaa8f3885a6ef3c19ded0a2a4372db07 Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 03:59:20 +0900
Subject: [PATCH 23/56] =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=AF=E3=81=AB?=
=?UTF-8?q?=E3=83=9C=E3=82=BF=E3=83=B3=E3=81=AECSS=E9=81=A9=E7=94=A8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index d240776e9..fb64737f7 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -179,6 +179,7 @@ addFilter(
)}
target="_blank"
rel="noreferrer"
+ className='components-button is-secondary is-small'
>
{__('Custom CSS Setting', 'vk-blocks')}
From a836ae7a5765f0f6d5e8a8d1ba13e1912b1c14bc Mon Sep 17 00:00:00 2001
From: kurudrive
Date: Fri, 9 Sep 2022 04:01:34 +0900
Subject: [PATCH 24/56] lint
---
src/extensions/common/custom-css-extension/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index fb64737f7..1943758c7 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -179,7 +179,7 @@ addFilter(
)}
target="_blank"
rel="noreferrer"
- className='components-button is-secondary is-small'
+ className="components-button is-secondary is-small"
>
{__('Custom CSS Setting', 'vk-blocks')}
From 477d5194965b25e1d64a656c766d136ee66f861a Mon Sep 17 00:00:00 2001
From: goutetsuguma
Date: Fri, 9 Sep 2022 09:25:07 +0900
Subject: [PATCH 25/56] =?UTF-8?q?vk=20icon=20=E3=81=AB=E5=B7=AE=E3=81=97?=
=?UTF-8?q?=E6=9B=BF=E3=81=88?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/icon.svg | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/icon.svg b/src/extensions/common/custom-css-extension/icon.svg
index b4faee82e..a2a1f5a7e 100644
--- a/src/extensions/common/custom-css-extension/icon.svg
+++ b/src/extensions/common/custom-css-extension/icon.svg
@@ -1 +1 @@
-
\ No newline at end of file
+
\ No newline at end of file
From c15dea11ea06c5510b4825b114280c2291702ede Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 13 Sep 2022 15:25:17 +0900
Subject: [PATCH 26/56] =?UTF-8?q?add=20/=20css=20ex=20unit=20=E3=81=AE?=
=?UTF-8?q?=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF=E7=94=A8=E3=81=AB=E8=AA=BF?=
=?UTF-8?q?=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 31 +++++++++++++++++++
1 file changed, 31 insertions(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 1943758c7..5e894fe4c 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -39,6 +39,37 @@ export const isAddBlockCss = (blockName) => {
export const customCssRegex = /vk_custom_css-(.+)/;
export const customCssSelectorRegex = /selector/;
+// ExUnitに入っているvk blocksブロック,
+const ex_unit_block = [
+ 'vk-blocks/share-button',
+ 'vk-blocks/child-page-index',
+ 'vk-blocks/contact-section',
+ 'vk-blocks/page-list-ancestor',
+ 'vk-blocks/sitemap',
+ 'vk-blocks/cta',
+];
+
+/**
+ * index.js
+ *
+ * vk-blocksのブロックはPHPのフックblock_type_metadata_settingsで対応できるがExUnitのブロックはjsのフックを使う必要がある
+ */
+addFilter('blocks.registerBlockType', 'vk-blocks/custom-css', (settings) => {
+ if (ex_unit_block.includes(settings.name)) {
+ settings.attributes = {
+ // Deploy original settings.attributes to array and...
+ ...settings.attributes,
+ // Add vkbCustomCss attributes
+ ...{
+ vkbCustomCss: {
+ type: 'string',
+ },
+ },
+ };
+ }
+ return settings;
+});
+
/**
* edit.js
*/
From 7976410ef9ac5583ba9c70c53d86adf16377e26d Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 13 Sep 2022 15:36:09 +0900
Subject: [PATCH 27/56] =?UTF-8?q?fix=20/=20css=20=E6=9D=9C=E6=92=B0?=
=?UTF-8?q?=E3=81=AA=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 9 +++++----
1 file changed, 5 insertions(+), 4 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 5e894fe4c..4ed022e35 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -3,7 +3,7 @@
*/
import { __ } from '@wordpress/i18n';
import { addFilter } from '@wordpress/hooks';
-import { PanelBody, Icon } from '@wordpress/components';
+import { PanelBody, Icon, Button } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
import { createHigherOrderComponent } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
@@ -204,16 +204,17 @@ addFilter(
'vk-blocks'
)}
-
{__('Custom CSS Setting', 'vk-blocks')}
-
+
>
From b5184ea03da1172226a4478608ad8de932453d5b Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 13 Sep 2022 15:38:57 +0900
Subject: [PATCH 28/56] fix / custom css letter-spacing
---
editor-css/_editor_before_custom-css-extension.scss | 1 +
1 file changed, 1 insertion(+)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index e3404ca82..5f831865a 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -11,6 +11,7 @@
padding: .2em .6em;
z-index: 1000;
line-height: 1.2;
+ letter-spacing: 1px;
content: 'Custom CSS' !important;
}
}
From ab4ce8f4e8b7b5d34200ea3743c91ee65a63df1b Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 13 Sep 2022 16:03:08 +0900
Subject: [PATCH 29/56] =?UTF-8?q?dev=20=E3=83=86=E3=82=B9=E3=83=88?=
=?UTF-8?q?=E3=83=90=E3=83=BC=E3=82=B8=E3=83=A7=E3=83=B3=E7=94=A8=E3=81=AB?=
=?UTF-8?q?=E7=BF=BB=E8=A8=B3=E3=82=92=E6=97=A5=E6=9C=AC=E8=AA=9E=E3=81=AB?=
=?UTF-8?q?=E3=81=97=E3=81=A6=E3=81=8A=E3=81=8F?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 23 +++++++++++++++++--
1 file changed, 21 insertions(+), 2 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 4ed022e35..e122797b9 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -184,10 +184,23 @@ addFilter(
/>
{__(
- 'If selector is set to "selector", it will be replaced with a block-specific CSS class.',
+ 'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
'vk-blocks'
)}
+
+ {__(
+ '"selector"以外のCSSセレクターは、ページ全体に影響する可能性があります。',
+ 'vk-blocks'
+ )}
+
+ {/*
+ {__(
+ 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
+ 'vk-blocks'
+ )}
+
*/}
+ {__('Example:', 'vk-blocks')}
{__(
- 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
+ '編集画面をできるだけ公開画面に近づけたい場合や、自作のCSSが識別表示用のCSSと干渉して編集画面で意図した通りに表示されない場合は、非表示にすることをお勧めします。',
'vk-blocks'
)}
+ {/*
+ {__(
+ 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
+ 'vk-blocks'
+ )}
+
*/}
Date: Thu, 22 Sep 2022 16:17:16 +0900
Subject: [PATCH 30/56] Merge branch 'develop' into add/block_css_filter
---
.github/workflows/develop-test.yml | 2 +-
inc/vk-blocks/class-vk-blocks-options.php | 34 ++
.../vk-blocks-ja-vk-blocks-admin-js.json | 2 +-
.../vk-blocks-ja-vk-blocks-build-js.json | 2 +-
inc/vk-blocks/languages/vk-blocks-ja.mo | Bin 58113 -> 58018 bytes
inc/vk-blocks/languages/vk-blocks-ja.po | 348 ++++++++++--------
inc/vk-blocks/languages/vk-blocks-js.pot | 162 ++++----
inc/vk-blocks/languages/vk-blocks.pot | 292 ++++++++-------
inc/vk-blocks/vk-blocks-functions.php | 99 +++--
options-css/_admin-margin.scss | 4 +
readme.txt | 10 +-
src/admin/margin.js | 18 +-
src/blocks/ancestor-page-list/index.php | 16 +-
src/blocks/spacer/deprecated/1.40.0/save.js | 36 ++
.../spacer/deprecated/1.40.0/spacers.js | 83 +++++
src/blocks/spacer/deprecated/index.js | 5 +
src/blocks/spacer/edit.js | 22 +-
src/blocks/spacer/index.php | 20 +-
src/blocks/spacer/spacers.js | 2 +
.../common/margin-extension/index.js | 37 +-
src/utils/common.scss | 26 ++
.../vk-blocks__spacer__deprecated-1-40-0.html | 7 +
test/e2e-tests/specs/margin-extension.test.js | 6 +-
test/phpunit/free/test-get-options-free.php | 10 +
test/phpunit/pro/test-ancestor-page-list.php | 15 +-
test/phpunit/pro/test-breadcrumb.php | 6 +-
test/phpunit/pro/test-get-options.php | 152 +++++++-
test/phpunit/pro/test-vk-blocks-options.php | 34 ++
vk-blocks.php | 4 +-
29 files changed, 988 insertions(+), 466 deletions(-)
create mode 100644 src/blocks/spacer/deprecated/1.40.0/save.js
create mode 100644 src/blocks/spacer/deprecated/1.40.0/spacers.js
create mode 100644 test/e2e-tests/fixtures/blocks/vk-blocks__spacer__deprecated-1-40-0.html
diff --git a/.github/workflows/develop-test.yml b/.github/workflows/develop-test.yml
index 7d54e8eb3..9c29d016a 100644
--- a/.github/workflows/develop-test.yml
+++ b/.github/workflows/develop-test.yml
@@ -14,7 +14,7 @@ jobs:
strategy:
matrix:
# これが先にdevelopにマージされたら 8.0 を追加して 8.0 でおそらく baloon関連のテストでエラーになるので修正する
- php-versions: ['7.3', '7.4']
+ php-versions: ['7.3', '7.4', '8.0', '8.1']
# これが先にdevelopにマージされたら 5.8.4 不具合修正のブランチ( https://github.com/vektor-inc/vk-blocks-pro/pull/1372 )にマージして '5.8.4' を追加
wp-versions: ['6.0.1','5.9.3','5.8.4']
name: PHP Unit test ${{ matrix.php-versions }} / WP ${{ matrix.wp-versions }} Test on ${{ matrix.operating-system }}
diff --git a/inc/vk-blocks/class-vk-blocks-options.php b/inc/vk-blocks/class-vk-blocks-options.php
index 17dfa4dd2..c698fbee0 100644
--- a/inc/vk-blocks/class-vk-blocks-options.php
+++ b/inc/vk-blocks/class-vk-blocks-options.php
@@ -46,6 +46,23 @@ public static function options_scheme() {
'margin_size' => array(
'type' => 'object',
'items' => array(
+ 'xl' => array(
+ 'type' => 'object',
+ 'items' => array(
+ 'mobile' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'tablet' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'pc' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ ),
+ ),
'lg' => array(
'type' => 'object',
'items' => array(
@@ -97,6 +114,23 @@ public static function options_scheme() {
),
),
),
+ 'xs' => array(
+ 'type' => 'object',
+ 'items' => array(
+ 'mobile' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'tablet' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'pc' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ ),
+ ),
),
),
'load_separate_option' => array(
diff --git a/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-admin-js.json b/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-admin-js.json
index 815ee06c3..3b79bec5e 100644
--- a/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-admin-js.json
+++ b/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-admin-js.json
@@ -1 +1 @@
-{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"Select":["選択"],"Delete":["削除"],"Balloon Image Name":["吹き出し画像の名前"],"Balloon Setting":["吹き出しブロック設定"],"Balloon Border Width Setting":["吹き出しの線幅の設定"],"Balloon Image Setting":["吹き出し画像設定"],"You can register frequently used icon images for speech bubble blocks.":["よく使う吹き出し用のアイコン画像を登録する事ができます。"],"If you change image or name that please click Save Changes button.":["画像を変更したら「変更を保存」ボタンをクリックしてください。"],"image":["画像"],"Enter a valid Lightning G3 Pro Pack or Lightning Pro license key.":["Lightning G3 Pro Pack あるいは Lightning Pro の有効なライセンスキーを入力してください。"],"Once you enter the license key you will be able to do a one click update from the administration screen.":["有効なライセンスキーを入力すると、管理画面からワンクリックでアップデートが可能になります。"],"License key":["ライセンスキー"],"Load Separate Setting":["分割読み込み設定"],"Note that the order in which CSS/JS are loaded will change.":["CSS / JSの読み込み順序が変わることに注意してください。"],"Load Separate Option on":["分割読み込みを有効にする"],"Small":["小"],"Medium":["中"],"Large":["大"],"PC":["PC"],"Tablet":["タブレット"],"Mobile":["モバイル"],"Common Margin Setting":["共通余白設定"],"Please specify the size of the common margin used for responsive spacers, etc.":["レスポンシブスペーサーなどで使用する共通余白のサイズを指定してください。"],"Unit":["単位"],"px":["px"],"em":["em"],"rem":["rem"],"Margin":["余白"],"FAQ Block Setting":["FAQ Blocks 設定"],"Disable accordion":["アコーディオン無効"],"Enable accordion and default open":["アコーディオン有効 / 初期状態で開く"],"Enable accordion and default close":["アコーディオン有効 / 初期状態で閉じる"],"Save setting":["変更を保存"],"Save Success":["保存しました"],"No background color":["背景なし"],"No background color / Border":["背景なし / 枠線"],"Background color":["背景あり"],"Background color / Border":["背景あり / 枠線"],"Background color / Rounded ":["背景あり / 角丸"],"Background color / Rounded / Border":[" 背景あり / 角丸 / 枠線 "],"Slow":["遅い"],"Fast":["速い"],"Very Fast":["非常に速い"],"Animation range":["アニメーションの距離"],"Short":["短い"],"Normal":["標準"],"Long":["長い"],"Animation Settings":["アニメーション設定"],"Animation effect":["アニメーションの効果"],"Fade In":["フェードイン"],"Slide Up":["スライドアップ"],"Slide Left":["スライド左"],"Slide Right":["スライド右"],"Left Right":["左右"],"Up Down":["上下"],"Trembling Y":["ぶるぶる(Y方向)"],"Trembling X":["ぶるぶる(X方向)"],"Pounding":["どきどき"],"Shaking":["ゆらゆら"],"Animation speed":["アニメーションの速度"],"Very Slow":["非常に遅い"],"Button Common Setting":["ボタン共通設定"],"Button gap size":["ボタンギャップサイズ"],"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ":["あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。"],"Title":["タイトル"],"Select image":["画像を選択"],"Delete Image":["画像を削除"],"URL":["URL"],"https://example.com":["https://example.com"],"Display item":["表示要素"],"Excerpt Text":["抜粋"],"Warning! When you hidden this item, you will lose the content.":["注意!この項目を非表示にすると入力されていた内容は失われます。"],"Image":["画像"],"Button":["ボタン"],"Button option":["ボタンオプション"],"Click each card block to set the target url. You can find the url form at it's sidebar.":["ボタンのリンク先は各カードブロックをクリックすると、サイドバーにURL入力フォームが表示されます。"],"Button text":["ボタンの文字"],"Image Height":["画像高さ"],"Slide Height for each device.":["デバイス毎の高さ"],"Current page":["現在のページ"],"Display conditions":["表示条件"],"Parent":["親ページ"],"Ignore this post":["この投稿を除く"],"Color Settings":["色設定"],"Text Color":["文字の色"],"Background Color":["背景色"],"Margin setting inside the item":["アイテム内の余白設定"],"Padding (Top)":["余白 (上)"],"Padding (Left and Right)":["余白 (左右)"],"Padding (Bottom)":["余白 (下)"],"vw":["vw"],"Layout Columns":["カラムレイアウト"],"Column Margin Bottom Setting":["カラム下部余白設定"],"Margin Bottom":["下部の余白"],"You can create a variety of layouts with grid column card blocks.":["グリッドカラムカードブロックでは柔軟なレイアウトが可能です。"],"Unlink":["リンクを解除する"],"Input Link URL":["リンクURL"],"Submit":["送信"],"Edit mode":["編集モード"],"All columns":["すべてのカラム"],"This column only":["このカラムのみ"],"Edit Lock":["編集ロック"],"Lock edits this block from the parent and other Grid Column Item block":["このブロックをロックして親ブロックや他のブロックの変更を受け取らないようにする"],"Column Setting":["カラム設定"],"Link URL:":["リンク URL:"],"Open link new tab.":["リンクを別ウィンドウで開く"],"If you set a link URL, do not place the link element (text or button) in the Grid Column Card Item. It may not be displayed correctly.":["リンクURLを設定する場合は、グリッドカラムカードアイテム内にリンク要素(テキストやボタン)を配置しないでください。 正しく表示されない場合があります。"],"Make sure that no link is specified for the image block, etc.":["画像ブロックなどにもリンクが指定されていないか注意してください。"],"Image fit to column":["画像とカラム内の余白をなくす"],"Column footer button area":["カラムフッターボタンエリア"],"Display":["表示"],"Hide":["非表示"],"Column Radius":["カラムの角丸の大きさ"],"Border":["枠線"],"Border Color":["線の色"],"Column padding":["カラムの余白"],"Column header media area":["カラムヘッダーメディアエリア"],"Column Width Setting":["カラム幅設定"],"If you specify the minimum column size on a tablet or PC with %, it will be easier to align the number of columns in the upper and lower rows according to the screen size.":["タブレットまたはPCの最小列サイズを%で指定すると、画面サイズに応じて上下の行の列数を揃えやすくなります。"],"Column min width (Mobile)":["カラムの最小サイズ(モバイル)"],"Column min width (Tablet / Optional)":["カラムの最小サイズ(タブレット / 任意)"],"Column min width (PC / Optional)":["カラムの最小サイズ(PC / 任意)"],"Column Gap Setting":["カラム間の設定"],"Column gap size":["カラム間の余白"],"Column row-gap size (optional)":["カラム間の縦余白(任意)"],"Specify all columns at once":["全カラム一括指定"],"Input Title":["タイトルを入力"],"Input Content":["文章を入力してください"],"Icon Card Setting":["アイコンカード設定"],"Icon":["アイコン"],"Icon Background:":["アイコン背景:"],"Solid color":["ベタ塗り"],"No background":["背景なし"],"Columns":["カラム"],"Align":["表示位置"],"Text":["テキスト"],"Background Setting":["背景設定"],"Color Setting":["色設定"],"Color will overcome background image. If you want to display image, set opacity 0.":["色を指定すると画像よりも優先されます。画像を表示したい場合は、不透明度を0に設定します。"],"Opacity Setting":["透過設定"],"Background Image PC":["背景画像 ( PC )"],"Background Image Tablet":["背景画像 ( タブレット )"],"Background Image Mobile":["背景画像 ( モバイル )"],"Background image Position":["背景画像の位置"],"Repeat":["リピート"],"Cover":["カバー"],"Cover fixed (Not fixed on iPhone)":["カバー 固定(iPhoneでは固定されません)"],"Parallax (Non-guaranteed)":["パララックス(非保証)"],"Layout Setting":["レイアウト設定"],"Width":["幅"],"Fit to the Content area":["コンテンツエリアに合わせる"],"Add padding to the Outer area":["アウターエリア内に余白を追加する"],"Remove padding from the Outer area":["アウターエリア内の余白を無くす"],"Padding (Top and Bottom)":["余白 (上下)"],"Use default padding":["標準の余白を使用"],"Do not use default padding":["標準の余白を使用しない"],"* If you select \"Do not use\" that, please set yourself it such as a spacer block.":["*「使用しない」を選択した場合はスペーサーブロックなどで任意に設定してください。"],"Divider Setting":["区切りの設定"],"Type":["タイプ"],"Tilt":["傾斜"],"Curve":["カーブ"],"Wave":["波状"],"Triangle":["三角"],"Upper Divider Level":["上部区切りレベル"],"Lower Divider Level":["下部区切りレベル"],"Border Setting":["枠線の設定"],"Border will disappear when divider effect is applied.":["枠線は区切りレベルを適用すると表示されなくなります。"],"Border type":["枠線の種類"],"None":["なし"],"Solid":["直線"],"Dotted":["点線"],"Dashed":["Dashed"],"Double":["二重線"],"Groove":["Groove"],"Ridge":["Ridge"],"Inset":["Inset"],"Outset":["Outset"],"Border width":["枠線の幅"],"Border radius":["枠線のRの大きさ"],"Container Inner Side Space Setting":["コンテナ内側のスペース設定"],"Unit Type":["単位"],"Filter by %s":["%sで絞り込み"],"Filter by PostTypes":["投稿タイプ"],"Number of Posts":["表示件数"],"Filter by Date":["日付で絞り込み"],"Period of Time":["期間"],"Whole Period":["全期間"],"From Today":["今日以降"],"From Now":["現在以降"],"From Tomorrow":["明日以降"],"* If you choose a future period, you will need to customize it so that future posts will be published immediately.":["※ 未来の期間を選択する場合は、未来の投稿が即時公開になるように別途カスタマイズが必要です。"],"Order":["表示順"],"ASC":["昇順"],"DESC":["降順"],"Order by":["表示順"],"Published Date":["公開日"],"Modefied Date":["更新日"],"Random":["ランダム"],"offset":["オフセット数"],"Because no post is selected, The block Will not render":["ページが選択されていないためこのブロックはレンダリングされません"],"Input Internal Post URL":["このサイトの投稿の URL を入力してください"],"Fit to the Container area":["コンテナエリアに合わせる"],"Add padding to the Slider area":["スライダーアイテムエリア内に余白を追加する"],"Remove padding from the Slider area":["スライダーアイテムエリア内の余白を無くす"],"Vertical align":["縦揃え"],"Background Image Size":["背景画像サイズ"],"cover":["カバー"],"repeat":["リピート"],"Multi-image Display Setting":["複数の表示設定"],"Display Multi Images per View":["画像を複数枚表示する"],"Images per View":["1度に表示する画像の枚数"],"Move Images per Slide":["1度の動作で動かす枚数"],"Full Wide":["全幅"],"Height":["高さ"],"Slider Settings":["スライド設定"],"Effect ":["エフェクト"],"Slide":["スライド"],"Fade":["フェード"],"Loop ":["繰り返し"],"AutoPlay":["自動再生"],"Stop AutoPlay when swipe":["スワイプ時に自動再生を停止"],"Display Time":["表示時間"],"Change Speed":["切り替え時間"],"Pagination Type":["ページネーションの種類"],"Default":["標準"],"Number of slides":["スライドの枚数"],"Navigation Position":["ナビゲーションの位置"],"Center":["中央"],"Bottom on Mobile device":["モバイルでは下部に表示"],"Color":["色"],"Style":["スタイル"],"Outlined":["アウトライン"],"Step Mark":["ステップマーク"],"If Font Awesome tags entered, it will overrides the number.":["Font Awesome の class 名が入力されている場合は数字は上書きされます。"],"Ex,6:00AM":["例) 午前 6:00"],"First Dot Number":["ステップの開始番号"],"Table of Contents":["目次"],"Note on duplicating headings":["見出し複製時の注意"],"If you duplicate a heading, the table of contents block will not work properly, please reassign the ID.":["見出しを複製すると目次ブロックが適切に動作しません。IDを振り直してください。"],"Display type":["表示タイプ"],"No frame":["枠無し"],"Default Display Status":["初期表示状態"],"OPEN":["OPEN"],"CLOSE":["CLOSE"],"label":["ラベル"],"Style Settings":["スタイル設定"],"Success":["Success"],"Info":["Info"],"Warning":["Warning"],"Danger":["Danger"],"Don't display inactive grand child pages":["非アクティブな孫ページを表示しない"],"Ancestor Page List Setting":["先祖階層からのページリスト設定"],"Display Ancestor Page Title":["先祖階層のページタイトルを表示"],"Archive title tag":["アーカイブタイトルタグ"],"h2":[""],"h3":[""],"h4":[""],"h5":[""],"h6":[""],"Ancestor page title class name":["先祖階層ページタイトルのクラス名"],"Add link to ancestor page title":["先祖階層のページタイトルにリンクを追加"],"If there is no child page, the block itself is not displayed":["子ページがない場合、このブロック自体を表示しない"]," Image Border":["画像の線"],"Add border to image":["画像に枠線を追加する"],"* You can change border width on Setting > VK Blocks":["* 線の太さは 管理画面の 設定 > VK Blocks から選択する事ができます。"],"Border color of speech balloon":["吹き出しの線の色"],"Add border to balloon":["吹き出しに枠線を追加する"],"Balloon setting":["吹き出しブロック設定"],"Position":["位置"],"Please specify the layout of the balloon.":["吹き出しの配置を指定してください。"],"Left":["左"],"Right":["右"],"Please select the type of balloon.":["吹き出しのタイプを指定してください。"],"Speech":["吹き出し"],"Thinking":["もくもく"],"Image Style":["画像スタイル"],"Rounded":["角丸2"],"Circle":["丸抜き"],"100%":["100%"],"Background color of speech balloon":["吹き出しの背景色"],"Default Icon Setting":["デフォルトアイコン設定"],"You can register default icons from Settings > VK Blocks in Admin.":["管理画面の 設定 > VK Blocks から よく使うアイコンを登録する事ができます。"],"Animation setting":["アニメーション設定"],"Please select the type of animation.":["アニメーションのタイプを指定してください。"],"Trembling":["ぶるぶる"],"Upload image":["画像をアップロード"],"Icon Name":["アイコンの名前"],"Please enter a title.":["見出しを入力してください。"],"The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.":["枠線ブロック内の最初の要素の margin-top と 最後の要素の margin-bottom は自動的に0になります。最初と最後に余白をつけたい場合はスペーサーブロックなどで margin指定ではなくheight指定でご利用ください。"],"Transparent":["透過"],"White":["白"],"Solid Angle Tab":["直線 ピン角 タブ"],"Solid Round Tab":["直線 角丸 タブ"],"Solid Angle Banner":["直線 ピン角 バナー"],"Solid Angle Onborder":["直線 ピンカド 線上"],"Solid Angle Inner":["直線 ピン角 内側"],"Solid Angle iconFeature":["直線 ピン角 アイコン"],"Button setting":["ボタン設定"],"Sub Caption":["サブテキスト"],"Button Size:":["ボタンサイズ:"],"Button Position:":["ボタンの位置:"],"Wide":["幅広"],"Block":["Block"],"Button Width:":["ボタンの幅:"],"25%":["25%"],"50%":["50%"],"75%":["75%"],"Button Style:":["ボタンスタイル:"],"Text only":["テキストのみ"],"If you select \"No background\", that you need to select a Custom Color.":["もし「背景なし」を選択した場合はカスタムカラーで色を指定してください。"],"Default Color (Bootstrap)":["標準色 (Bootstrap)"],"Primary":["Primary"],"Secondary":["Secondary"],"Light":["Light"],"Dark":["Dark"],"Custom Color":["カスタムカラー"],"Button Color":["ボタンカラー"],"This color palette overrides the default color. If you want to use the default color, click the clear button.":["このカラーパレットの色は標準色を上書きします。 デフォルトの色を使用したい場合は、クリアボタンをクリックしてください。"],"Before text":["文字の前"],"After text":["文字の後"],"Size":["サイズ"],"Input text":["文字を入力"],"If you want to be collapsing this block, you can set it at Setting > VK Blocks":["このブロックを折りたたみたい場合は 設定 > VK Blocks から指定できます"],"You can be collapsing this block at VK Blocks Pro":["Pro版は回答部分を開閉式にできます"],"Accordion Setting":["アコーディオン設定"],"Please enter a question.":["質問を入力してください。"],"Bgfill Circle":["背景塗り 円形"],"Bgfill Square":["背景塗り ピン角"],"Bgfill Rounded":["背景塗り 角丸"],"Border Circle":["枠線 円形"],"Border Square":["枠線 ピン角"],"Border Rounded":["枠線 角丸"],"Display of arrow":["矢印の表示"],"Arrow display":["矢印を表示する"],"Arrow hidden":["矢印を表示しない"],"Input title":["タイトルを入力"],"Input content":["説明を入力"],"Input sub text…":["サブテキストを入力"],"Input title…":["タイトルを入力"],"Heading style":["見出しスタイル"],"Plain":["装飾無し"],"Margin Setting":["余白設定"],"Margin between Heading and sub text (rem)":["見出しとサブテキストの余白サイズ(rem)"],"Margin bottom size of after this block (rem)":["このブロック全体の下部の余白 (rem)"],"Heading Settings":["見出し設定"],"Icon Color":["アイコンの色"],"Sub Text Settings":["サブテキスト設定"],"Text size (rem)":["文字サイズ (rem)"],"Change heading level":["見出しレベルの変更"],"Heading %d":["見出し %d"],"Reset":["リセット"],"Icon & Frame":["アイコンと枠"],"Icon only":["アイコンのみ"],"Icon Common Setting":["アイコン共通設定"],"Icon Setting":["アイコン設定"],"Link URL":["リンクURL"],"Unspecified":["指定しない"],"Page Setting":["ページ設定"],"Select Page":["ページを選択"],"PR Block1 Setting":["PR Block1 設定"],"Icon 1":["アイコン 1"],"When you have an image. Image is displayed with priority":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 1":["PR 画像 1"],"PR Block2 Setting":["PR Block2 設定"],"Icon 2":["アイコン 2"],"PR Image 2":["PR 画像 2"],"PR Block3 Setting":["PR Block3 設定"],"Icon 3":["アイコン 3"],"When you have an image. Image is displayed with priority.":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 3":["PR 画像 3"],"Input title.":["タイトルを入力してください。"],"Input content.":["本文を入力してください。"],"Select Image":["画像を選択"],"Button Setting":["ボタン設定"],"Button Text":["ボタンの文字"],"Button Type":["ボタンタイプ"],"Ghost":["ゴーストボタン"],"Default Color:":["標準色:"],"Layout Type":["レイアウトタイプ"],"Title Color":["見出しの色"],"Content Color":["本文の色"],"Image Border Color":["画像の線の色"],"height":["height"],"margin-top":["margin-top"],"margin-bottom":["margin-bottom"],"Space Type":["余白タイプ"],"Custom":["カスタム"],"You can change each common margin size from Setting > VK Blocks":["* 共通の余白サイズは管理画面の 設定 > VK Blocks から変更する事ができます。"],"Height for each device.":["デバイス毎の高さ"],"Spacer Settings":["余白の設定"],"Your Name":["名前"],"Caption":["キャプション"],"Role position":["役職"],"Profile title":["プロフィールタイトル"],"Profile text":["プロフィールテキスト"],"Layout":["レイアウト"],"Image left":["画像 左"],"Image border":["画像の線"],"Alt text":["画像の代替テキスト"],"Set the alt text for profile image":["プロフィール画像の代替テキストを設定します"],"Staff name":["名前"],"Name caption":["名前のキャプション"],"Heading Font":["見出しのフォント"],"Font":["フォント"],"minchoBody":["明朝体にする"],"Card (Image Round)":["カード(画像丸抜き)"],"Card":["カード"],"Card (No border)":["カード(線なし)"],"Card (Intext)":["カード(インテキスト)"],"Card (Horizontal)":["カード(水平)"],"Media":["メディア"],"Text 1 Column":["テキスト 1 カラム"],"Display type and columns":["表示タイプとカラム"],"Column ( Screen size : Extra large )":["カラム ( 画面サイズ : Extra large )"],"Column ( Screen size : XX large )":["カラム ( 画面サイズ : XX Large )"],"Column ( Screen size : Extra small )":["カラム ( 画面サイズ : Extra small )"],"Column ( Screen size : Small )":["カラム ( 画面サイズ : Small )"],"Column ( Screen size : Medium )":["カラム ( 画面サイズ : Medium )"],"Column ( Screen size : Large )":["カラム ( 画面サイズ : Large )"],"Button align":["ボタンの位置"],"Term's name on Image":["画像右上分類名"],"Excerpt":["抜粋"],"Author":["投稿者"],"Date":["日付"],"New mark":["新着表示"],"Taxonomies (all)":["分類(全項目)"],"New mark option":["新着表示オプション"],"Number of days to display the new post mark":["新着表示日数"],"New post mark":["新着表示"],"Link target":["リンクターゲット"],"Open in new tab":["リンクを別ウィンドウで開く"],"Link rel":["rel属性"],"Hidden Settings":["非表示設定"],"Hidden at screen size":["非表示にする画面サイズ"],"Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.":["注意 : この機能はあくまでHTMLに出力される要素を非表示にするだけです。本当に見せてはいけない要素には使わないでください。"],"Hidden ( Screen size : all )":["非表示 ( 画面サイズ : all )"],"Hidden ( Screen size : xs )":["非表示 ( 画面サイズ : xs )"],"Hidden ( Screen size : sm )":["非表示 ( 画面サイズ : sm )"],"Hidden ( Screen size : md )":["非表示 ( 画面サイズ : md )"],"Hidden ( Screen size : lg )":["非表示 ( 画面サイズ : lg )"],"Hidden ( Screen size : xl )":["非表示 ( 画面サイズ : xl )"],"Hidden ( Screen size : xxl )":["非表示 ( 画面サイズ : xxl )"],"If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.":["複数のブロックを非表示にする場合は、最初にグループブロックに設定し、そのグループブロックに対して非表示にします。"],"Highlighter":["蛍光マーカー"],"Inline Font Size":["インライン文字サイズ"],"Apply":["適用"],"Inline font size":["インライン文字サイズ"],"Big":["大"],"Extra big":["特大"],"Top lg":["上 lg"],"Margin the block":["ブロックの余白"],"Top md":["上 md"],"Top sm":["上 sm"],"Top 0":["上 0"],"Bottom 0":["下 0"],"Bottom sm":["下 sm"],"Bottom md":["下 md"],"Bottom lg":["下 lg"],"No wrap":["No wrap"],"Responsive BR":["画面サイズ毎の改行 "],"Responsive BR ":["画面サイズ毎の改行 "],"Solid Roundcorner":["直線 角丸"],"Stitch":["スティッチ"],"Border Top Bottom":["直線 上下"],"Shadow":["シャドウ"],"Both ends":["左右線"],"Brackets black":["括弧 黒"],"Background fill lightgray":["背景塗り 灰色"],"Double border top and bottom black":["二重線 上下線 黒"],"Double border bottom black":["二重線 下線 黒"],"Solid border top and bottom black":["直線 上下 黒"],"Solid border bottom black":["直線 下線 黒"],"Dotted border bottom black":["点線 下線 黒"],"Rounded02":["角丸2"],"Photo frame":["フォトフレーム"],"Photo frame Tilt Right":["フォトフレーム傾き右"],"Photo frame Tilt Left":["フォトフレーム傾き左"],"Wave01":["流体シェイプ1"],"Wave02":["流体シェイプ2"],"Wave03":["流体シェイプ3"],"Wave04":["流体シェイプ4"],"Arrow":["矢印"],"Check":["チェック"],"Check Square":["チェック(四角)"],"Check Circle":["チェック-丸"],"Handpoint":["指"],"Pencil":["鉛筆"],"Smile":["笑顔"],"Frown":["不満顔"],"Numbered Circle":["数字-丸"],"Numbered Square":["数字-四角"],"List Icon Color":["リストアイコンの色"],"Border / Stripes":["枠線 / ストライプ"],"Theoretical Physicist":["理論物理学者"],"Profile":["プロフィール"],"Albert Einstein":["アルバート・アインシュタイン"],"14 March 1879 – 18 April 1955":["1879年3月14日 - 1955年4月18日"],"Lorem ipsum dolor":["闇の中で"],"Lorem ipsum":["ロレム・アプサム"],"Font Awesome icon list":["Font Awesome アイコンリスト"],"If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.":["他のアイコンを使いたい場合は Font Awesome のアイコンリストから選んでタグを入力してください。"],"Ex) ":["例) "],"When you click save button, the window will be reloaded and this setting will be applied.":["保存ボタンをクリックすると、ウィンドウが再読み込みされて、変更が適用されます。"],"Save":["保存"],"Select Icon":["アイコンを選択"],"VK Blocks Pro":["VK Blocks Pro"],"https://github.com/vektor-inc/vk-blocks":["https://github.com/vektor-inc/vk-blocks"],"This is a plugin that extends Gutenberg's blocks.":["Gutenbergのブロックを拡張するプラグインです。"],"Vektor,Inc.":["Vektor,Inc."],"https://vektor-inc.co.jp":["https://vektor-inc.co.jp"],"We've released VK Blocks Pro!":["VK Blocks Pro を公開しました!"],"Thank you for using VK Blocks. We've released VK Blocks Pro. It has more custom blocks to build web site more easily. If you are interested in VK Blocks Pro, Please read %1$s this post %2$s for more details.":["いつもVK Blocksをご利用いただきありがとうございます。この度、VK Blocks Proをリリースしました。より簡単にWebサイトを構築するためのカスタムブロックが追加されています。VK Blocks Proに興味がある方は、詳しくは%1$sこの記事%2$sを読んでみてください。"],"https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/":["https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/"],"See more":["続きを見る"],"Dismiss this notice":["通知を無視"],"Setting saved.":["設定を保存しました。"],"Install Required Plugins":["必須プラグインのインストール"],"Install Plugins":["プラグインのインストール"],"Installing Plugin: %s":["プラグイン %s をインストール中"],"Something went wrong with the plugin API.":["プラグイン API で問題が発生しました。"],"This plugin requires the following plugin: %1$s.":["このプラグインは下記プラグインを必要としています:%1$s。"],"This plugin recommends the following plugin: %1$s. Many additional functions are available for free.":["このプラグインは次のプラグインと一緒に利用するのがオススメです:%1$s。 これらのプラグインは無償で利用可能です。"],"Sorry, but you do not have the correct permissions to install the %1$s plugin.":["%1$sプラグインをインストールするための適切な権限がありません。"],"The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.":["このプラグインとの最大の互換性を確保するには、次のプラグインを最新バージョンに更新する必要があります: %1$s。"],"There is an update available for: %1$s.":["次のプラグインの更新が利用可能です:%1$s。"],"Sorry, but you do not have the correct permissions to update the %1$s plugin.":["%1$sプラグインを更新するための適切な権限がありません。"],"The following required plugin is currently inactive: %1$s.":["必須プラグインが現在有効化されていません: %1$s。"],"The following recommended plugin is currently inactive: %1$s.":["推奨プラグインが現在有効化されていません: %1$s。"],"Sorry, but you do not have the correct permissions to activate the %1$s plugin.":["%1$sプラグインを有効化するための適切な権限がありません。"],"Begin installing plugin":["プラグインのインストールを開始"],"Begin updating plugin":["プラグインの更新を開始する"],"Begin activating plugin":["プラグインの有効化を開始"],"Return to Required Plugins Installer":["必須プラグインのインストール画面に戻る"],"Plugin activated successfully.":["プラグインを有効化しました。"],"The following plugin was activated successfully:":["次のプラグインを有効化しました:"],"No action taken. Plugin %1$s was already active.":["操作を実行しませんでした。プラグイン %1$s はすでに有効化されています。"],"Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.":["プラグインを有効化できませんでした。このテーマはプラグイン %s の現在のバージョンをサポートしていません。プラグインを更新してください。"],"All plugins installed and activated successfully. %1$s":["すべてのプラグインを正常にインストールし、有効化しました。 %1$s"],"Please contact the administrator of this site for help.":["ヘルプが必要な場合はこのサイトの管理者にお問い合わせください。"],"Sorry, there is no post":["申し訳ありませんが投稿がありません。"],"Vektor WordPress Information":["Vektor WordPress Information"],"FAQ Setting":["FAQ ブロックの設定"],"Blocks setting":["Blocks 設定"],"Blocks Setting":["Blocks 設定"],"License Key":["ライセンスキー"],"Balloon Block Setting":["吹き出しブロック設定"],"Load Separete Setting":["分割読み込み設定"],"Setting":["設定"],"Edit this area":["このエリアを編集"],"Post":["投稿"],"There are no %ss.":["該当の%sはありません。"],"Blocks":["Blocks"],"Blocks Layout":["ブロックレイアウト"],"Read more":["続きを読む"],"New!!":["New!!"],"More":[""],"Posts navigation":["投稿ナビゲーション"],"Posts":["投稿リスト"],"Page":["ページ"],"Card Noborder":["カード(線なし)"],"Card Intext":["カード(インテキスト)"],"Card Horizontal":["カード(水平)"],"CSS Optimize ( Speed up ) Settings":["CSS最適化(高速化)設定"],"Tree shaking":["Tree shaking"],"Tree shaking activation settings":["Tree shaking 有効化設定"],"Output only the main CSS of the page inline":["主要なCSSのみインラインで出力します"],"Nothing to do":["何もしない"],"Active Tree shaking (Recomend)":["Tree shakingを有効化(推奨)"],"Exclude class of Tree shaking":["CSSの軽量化から除外するCSSのclass名"],"If you choose \"Active Tree shaking\" that delete the useless css.If you using active css class that please fill in class name. Ex) btn-active,slide-active,scrolled":["Tree shaking を有効にしている場合、使用していないCSSは削除されます。もし使用している動的クラスがある場合はクラス名を入力してください。 例)btn-active,slide-active,scrolled"],"Preload CSS":["Preload CSS"],"Preload CSS activation settings":["Preload CSS 有効化設定"],"Preload css except for critical css":["クリティカルなCSSを除いてCSSをプリロードします"],"Active Preload CSS (Recomend)":["Preload CSS を有効化(推奨)"],"Exclude class of Preload CSS":["Preload CSSから除外するハンドル名"],"If you choose \"Active Preload CSS\" that css load timing was changed.If you have any do not want to preload css file that please fill in handle(id) name. Ex) pluginname_a-style,pluginname_b-css":["もし「Preload CSS を有効」に設定した場合、CSSの読み込みタイミングが変更されます。プリロードしたくないファイルがある場合は、ハンドル名(id)を入力してください。 例)pluginname_a-style,pluginname_b-css"],"Disabled Blocks module on VK All in One Expansion Unit. Because VK-Blocks Plugin running.":["VK-Blocksと競合するため、VK All in One Expansion Unitの Block機能を停止しました。"],"License Key has no registered.":["ライセンスキーが登録されていません。"],"The VK Blocks Pro license is invalid.":["VK Blocks Pro のライセンスが無効です。"],"Enter a valid license key for any of the following products on the settings screen.":["以下の製品のライセンスキーを設定画面から入力してください。"],"Enter the license key":["ライセンスキーを入力"],"If this display does not disappear even after entering a valid license key, re-acquire the update.":["有効なライセンスキーを入力してもこの表示が消えない場合は更新の再取得をしてください。"],"Re-acquisition of updates":["更新の再取得"],"Ancestor Page Title":["先祖ページのタイトル"],"Dummy Text":["ダミーテキスト"],"Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.":["サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されません。 先祖階層からのページリストの代わりにダミーテキストのリストを表示しています。"],"This message only display on the edit screen.":["このメッセージは編集画面でのみ表示されます。"],"label in admin menu\u0004Blocks":["Blocks"],"post list type\u0004Text 1 Column":["テキスト 1 カラム"],"block title\u0004Alert":["アラート"],"block title\u0004Page list from ancestor":["先祖階層からのページリスト"],"block title\u0004Ballon":["吹き出し"],"block title\u0004Border Box":["枠線ボックス"],"block title\u0004Button":["ボタン"],"block title\u0004Classic FAQ":["旧 FAQ"],"block title\u0004FAQ Answer":["FAQ 回答"],"block title\u0004FAQ Question":["FAQ 質問"],"block title\u0004New FAQ":["新 FAQ"],"block title\u0004Flow":["フロー"],"block title\u0004Heading":["見出し"],"block title\u0004Icon Outer":["横並びアイコン"],"block title\u0004Icon":["アイコン"],"block title\u0004Page Content":["固定ページ本文"],"block title\u0004PR Blocks (not recommended)":["PR Blocks (非推奨)"],"block title\u0004PR Content":["PR Content"],"block title\u0004Responsive Spacer":["レスポンシブスペーサー"],"block title\u0004Staff":["スタッフ"],"block title\u0004Accordion Target":["アコーディオン コンテンツ"],"block title\u0004Accordion Trigger":["アコーディオン タイトル"],"block title\u0004Accordion":["アコーディオン"],"block title\u0004Animation":["アニメーション"],"block title\u0004Breadcrumb":["パンくずリスト"],"block title\u0004Button Outer":["横並びボタン"],"block title\u0004Card Item":["カードアイテム"],"block title\u0004Card":["カード"],"block title\u0004Child page list":["子ページリスト"],"block title\u0004Grid Column Item":["グリッドカラムアイテム"],"block title\u0004Grid Column":["グリッドカラム"],"block title\u0004Grid Column Card Item Body":["グリッドカラムカードアイテムボディ"],"block title\u0004Grid Column Card Item Footer":["グリッドカラムカードアイテムフッター"],"block title\u0004Grid Column Card Item header":["グリッドカラムカードアイテムヘッダー"],"block title\u0004Grid Column Card Item":["グリッドカラムカードアイテム"],"block title\u0004Grid Column Card":["グリッドカラムカード"],"block title\u0004Icon Card Item":["アイコンカードアイテム"],"block title\u0004Icon Card":["アイコンカード"],"block title\u0004Outer":["Outer"],"block title\u0004Post list":["投稿リスト"],"block title\u0004Selected Post List Item":["選択投稿リストアイテム"],"block title\u0004Selected Post List":["選択投稿リスト"],"block title\u0004Slider Item":["スライダーアイテム"],"block title\u0004Slider":["スライダー"],"block title\u0004Step Item":["ステップ要素"],"block title\u0004Step":["ステップ"],"block title\u0004Table of Contents":["目次"],"block title\u0004Timeline Item":["タイムライン要素"],"block title\u0004Timeline":["タイムライン"],"block description\u0004A colored box with four statuses, including annotations and alerts.":["注釈や注意など4つのステータスがある色付きのボックスです。"],"block description\u0004Display Page list from ancestor page":["先祖階層からのページリストを表示します"],"block description\u0004These speech balloons are perfect for recreating conversations.":["会話の再現などに最適な吹き出しです。"],"block description\u0004This is a border box where you can place headings to attract attention.":["見出しを配置でき注目されやすい枠線ボックスです。"],"block description\u0004A button link that can display icons before and after.":["前後にアイコンを表示できるボタンリンクです。"],"block description\u0004Displays a combination of questions and answers.":["質問と回答を組み合わせて表示します。"],"block description\u0004Answer area where you can add blocks freely.":["自由にブロックを追加できる回答エリアです。"],"block description\u0004Question area where you can freely add blocks.":["自由にブロックを追加できる質問エリアです。"],"block description\u0004It displays a combination of questions and answers. You can freely add blocks to the question area as well.":["質問と回答を組み合わせて表示します。質問エリアにも自由にブロックを追加できます。"],"block description\u0004Displays a sequential description in time series.":["時系列で順を追った説明を表示します。"],"block description\u0004This is a heading that allows you to set text size, subtext, icon, and margin.":["文字サイズ,サブテキスト,アイコン,余白が設定できる見出しです。"],"block description\u0004Display the Font Awesome icons horizontally.":["Font Awesome のアイコンフォントを横並びに表示します"],"block description\u0004Display icons with Font Awesome.":["Font Awesome のアイコンフォントを表示します"],"block description\u0004Displays the body content of the specified parent page.":["指定した基準ページの本文内容を表示します。"],"block description\u0004This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.":["画像やアイコンを配置できるPRブロックです。 ただし、現在、列ブロックとアイコンブロックを組み合わせて同じレイアウトを作成できるため、このブロックはお勧めしません。 ブロックパターンの「カラム(Column)」のカテゴリを確認してください。"],"block description\u0004This is PR content where you can place images, headlines, text, and buttons.":["画像,見出し,テキスト,ボタンが配置できるPRコンテンツです。"],"block description\u0004Use responsive spacers to get the margins right.":["レスポンシブに対応したスペーサーで余白を適切に取ります。"],"block description\u0004Used for staff introduction, company introduction, school introduction, menu, etc.":["スタッフ紹介,会社紹介,スクール紹介,メニューなどで利用します。"],"block description\u0004This is the content area where you can add blocks freely.":["コンテンツが長い時にコンテンツを折りたたんで隠して表示します。"],"block description\u0004This is the title area where you can freely add blocks.":["自由にブロックを追加できるタイトルエリアです。"],"block description\u0004Collapses and hides content when the content is long.":["自由にブロックを追加できるコンテンツエリアです。"],"block description\u0004Add animation to elements when scrolling the page.":["ページをスクロールした時に要素に動きを加えます。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します"],"block description\u0004Display the VK Button block horizontally.":["VK ボタンブロックを横並びに表示します"],"block description\u0004A single item in a card block.":["アイコンカード内の1つのアイテムです。"],"block description\u0004A card where you can place images, headings, text, and links.":["画像,見出し,テキスト,リンクが配置できるカードです。"],"block description\u0004When a parent page is specified, a list of its child pages will be displayed.":["親となる固定ページを指定するとその子ページの一覧を表示します。"],"block description\u0004One item in a grit column block.":["グリッドカラムブロック内の1つのアイテムです。"],"block description\u0004Set the number of columns to be displayed for each screen size.":["画面サイズ毎にカラム数を設定して表示させます。"],"block description\u0004Body of Grid Column Card Block Item":["グリッドカラムカードのボディ"],"block description\u0004Footer button area of Grid Column Card Block Item":["グリッドカラムカードアイテムブロックのフッターボタンエリア"],"block description\u0004Header image area of Grid Column Card Block Item":["グリッドカードカラムアイテムブロックのヘッダー画像エリア"],"block description\u0004It is a block of single column of Grid Column Card.":["グリッドカラムカードブロックのカラムブロック"],"block description\u0004This block can flexible column layout":["柔軟なカラムレイアウトが作成できます"],"block description\u0004This is one item in an icon card.":["アイコンカード内の1つのアイテムです。"],"block description\u0004Display card with icons, headings, text, and links.":["アイコン,見出し,テキスト,リンクを設定してカードを表示します。"],"block description\u0004Set the background image, color, and border to show the layout and divisions.":["背景の画像や色,枠線の設定しレイアウトや区切りを表示します。"],"block description\u0004Displays the list of posts by setting the post type, classification, and number of posts to display.":["投稿タイプ,分類,表示件数が設定して投稿リストを表示します。"],"block description\u0004A single item in the select post list.":["選択投稿リスト内の1つのアイテムです。"],"block description\u0004Displays an arbitrarily specified page with the layout of the posting list.":["任意に指定したページを投稿リストのレイアウトで表示します。"],"block description\u0004This is one item in the slider.":["スライダー内の1つのアイテムです。"],"block description\u0004This slider allows you to place various items.Slider is do not move in edit screen.":["様々なアイテムを配置できるスライダーです。編集画面では動かないので公開画面でプレビューしてください。"],"block description\u0004This element sets the icon, color, and style of the step mark.":["ステップマークのアイコン、色、スタイルを設定する要素です。"],"block description\u0004Set and display step marks, which are useful when explaining the order.":["順番を説明する時に便利でステップマークを設定し表示します。"],"block description\u0004This is a table of contents that is automatically generated according to the headings when added.":["追加すると見出しに合わせて自動で生成される目次です。"],"block description\u0004This element sets the label, color, and style of the timeline.":["タイムラインのラベル、色、スタイルを設定する要素です。"],"block description\u0004Displays a simple schedule and other information that is useful for explaining the order.":["順番を説明する時に便利でシンプルなスケジュールなどを表示します。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page.":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロックはトップページでは表示されません。"]}}}
\ No newline at end of file
+{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"Select":["選択"],"Delete":["削除"],"Balloon Image Name":["吹き出し画像の名前"],"Balloon Setting":["吹き出しブロック設定"],"Balloon Border Width Setting":["吹き出しの線幅の設定"],"Balloon Image Setting":["吹き出し画像設定"],"You can register frequently used icon images for speech bubble blocks.":["よく使う吹き出し用のアイコン画像を登録する事ができます。"],"If you change image or name that please click Save Changes button.":["画像を変更したら「変更を保存」ボタンをクリックしてください。"],"image":["画像"],"Enter a valid Lightning G3 Pro Pack or Lightning Pro license key.":["Lightning G3 Pro Pack あるいは Lightning Pro の有効なライセンスキーを入力してください。"],"Once you enter the license key you will be able to do a one click update from the administration screen.":["有効なライセンスキーを入力すると、管理画面からワンクリックでアップデートが可能になります。"],"License key":["ライセンスキー"],"Load Separate Setting":["分割読み込み設定"],"Note that the order in which CSS/JS are loaded will change.":["CSS / JSの読み込み順序が変わることに注意してください。"],"Load Separate Option on":["分割読み込みを有効にする"],"Margin":["余白"],"XS":[""],"S":[""],"M":[""],"L":[""],"XL":[""],"PC":["PC"],"Tablet":["タブレット"],"Mobile":["モバイル"],"Common Margin Setting":["共通余白設定"],"Please specify the size of the common margin used for responsive spacers, etc.":["レスポンシブスペーサーなどで使用する共通余白のサイズを指定してください。"],"Unit":["単位"],"px":["px"],"em":["em"],"rem":["rem"],"FAQ Block Setting":["FAQ Blocks 設定"],"Disable accordion":["アコーディオン無効"],"Enable accordion and default open":["アコーディオン有効 / 初期状態で開く"],"Enable accordion and default close":["アコーディオン有効 / 初期状態で閉じる"],"Save setting":["変更を保存"],"Save Success":["保存しました"],"No background color":["背景なし"],"No background color / Border":["背景なし / 枠線"],"Background color":["背景あり"],"Background color / Border":["背景あり / 枠線"],"Background color / Rounded ":["背景あり / 角丸"],"Background color / Rounded / Border":[" 背景あり / 角丸 / 枠線 "],"Slow":["遅い"],"Fast":["速い"],"Very Fast":["非常に速い"],"Animation range":["アニメーションの距離"],"Short":["短い"],"Normal":["標準"],"Long":["長い"],"Animation Settings":["アニメーション設定"],"Animation effect":["アニメーションの効果"],"Fade In":["フェードイン"],"Slide Up":["スライドアップ"],"Slide Left":["スライド左"],"Slide Right":["スライド右"],"Left Right":["左右"],"Up Down":["上下"],"Trembling Y":["ぶるぶる(Y方向)"],"Trembling X":["ぶるぶる(X方向)"],"Pounding":["どきどき"],"Shaking":["ゆらゆら"],"Animation speed":["アニメーションの速度"],"Very Slow":["非常に遅い"],"Button Common Setting":["ボタン共通設定"],"Button gap size":["ボタンギャップサイズ"],"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ":["あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。"],"Title":["タイトル"],"Select image":["画像を選択"],"Delete Image":["画像を削除"],"URL":["URL"],"https://example.com":["https://example.com"],"Display item":["表示要素"],"Excerpt Text":["抜粋"],"Warning! When you hidden this item, you will lose the content.":["注意!この項目を非表示にすると入力されていた内容は失われます。"],"Image":["画像"],"Button":["ボタン"],"Button option":["ボタンオプション"],"Click each card block to set the target url. You can find the url form at it's sidebar.":["ボタンのリンク先は各カードブロックをクリックすると、サイドバーにURL入力フォームが表示されます。"],"Button text":["ボタンの文字"],"Image Height":["画像高さ"],"Slide Height for each device.":["デバイス毎の高さ"],"Current page":["現在のページ"],"Display conditions":["表示条件"],"Parent":["親ページ"],"Ignore this post":["この投稿を除く"],"Color Settings":["色設定"],"Text Color":["文字の色"],"Background Color":["背景色"],"Margin setting inside the item":["アイテム内の余白設定"],"Padding (Top)":["余白 (上)"],"Padding (Left and Right)":["余白 (左右)"],"Padding (Bottom)":["余白 (下)"],"vw":["vw"],"Layout Columns":["カラムレイアウト"],"Column Margin Bottom Setting":["カラム下部余白設定"],"Margin Bottom":["下部の余白"],"You can create a variety of layouts with grid column card blocks.":["グリッドカラムカードブロックでは柔軟なレイアウトが可能です。"],"Unlink":["リンクを解除する"],"Input Link URL":["リンクURL"],"Submit":["送信"],"Edit mode":["編集モード"],"All columns":["すべてのカラム"],"This column only":["このカラムのみ"],"Edit Lock":["編集ロック"],"Lock edits this block from the parent and other Grid Column Item block":["このブロックをロックして親ブロックや他のブロックの変更を受け取らないようにする"],"Column Setting":["カラム設定"],"Link URL:":["リンク URL:"],"Open link new tab.":["リンクを別ウィンドウで開く"],"If you set a link URL, do not place the link element (text or button) in the Grid Column Card Item. It may not be displayed correctly.":["リンクURLを設定する場合は、グリッドカラムカードアイテム内にリンク要素(テキストやボタン)を配置しないでください。 正しく表示されない場合があります。"],"Make sure that no link is specified for the image block, etc.":["画像ブロックなどにもリンクが指定されていないか注意してください。"],"Image fit to column":["画像とカラム内の余白をなくす"],"Column footer button area":["カラムフッターボタンエリア"],"Display":["表示"],"Hide":["非表示"],"Column Radius":["カラムの角丸の大きさ"],"Border":["枠線"],"Border Color":["線の色"],"Column padding":["カラムの余白"],"Column header media area":["カラムヘッダーメディアエリア"],"Column Width Setting":["カラム幅設定"],"If you specify the minimum column size on a tablet or PC with %, it will be easier to align the number of columns in the upper and lower rows according to the screen size.":["タブレットまたはPCの最小列サイズを%で指定すると、画面サイズに応じて上下の行の列数を揃えやすくなります。"],"Column min width (Mobile)":["カラムの最小サイズ(モバイル)"],"Column min width (Tablet / Optional)":["カラムの最小サイズ(タブレット / 任意)"],"Column min width (PC / Optional)":["カラムの最小サイズ(PC / 任意)"],"Column Gap Setting":["カラム間の設定"],"Column gap size":["カラム間の余白"],"Column row-gap size (optional)":["カラム間の縦余白(任意)"],"Specify all columns at once":["全カラム一括指定"],"Input Title":["タイトルを入力"],"Input Content":["文章を入力してください"],"Icon Card Setting":["アイコンカード設定"],"Icon":["アイコン"],"Icon Background:":["アイコン背景:"],"Solid color":["ベタ塗り"],"No background":["背景なし"],"Columns":["カラム"],"Align":["表示位置"],"Text":["テキスト"],"Background Setting":["背景設定"],"Color Setting":["色設定"],"Color will overcome background image. If you want to display image, set opacity 0.":["色を指定すると画像よりも優先されます。画像を表示したい場合は、不透明度を0に設定します。"],"Opacity Setting":["透過設定"],"Background Image PC":["背景画像 ( PC )"],"Background Image Tablet":["背景画像 ( タブレット )"],"Background Image Mobile":["背景画像 ( モバイル )"],"Background image Position":["背景画像の位置"],"Repeat":["リピート"],"Cover":["カバー"],"Cover fixed (Not fixed on iPhone)":["カバー 固定(iPhoneでは固定されません)"],"Parallax (Non-guaranteed)":["パララックス(非保証)"],"Layout Setting":["レイアウト設定"],"Width":["幅"],"Fit to the Content area":["コンテンツエリアに合わせる"],"Add padding to the Outer area":["アウターエリア内に余白を追加する"],"Remove padding from the Outer area":["アウターエリア内の余白を無くす"],"Padding (Top and Bottom)":["余白 (上下)"],"Use default padding":["標準の余白を使用"],"Do not use default padding":["標準の余白を使用しない"],"* If you select \"Do not use\" that, please set yourself it such as a spacer block.":["*「使用しない」を選択した場合はスペーサーブロックなどで任意に設定してください。"],"Divider Setting":["区切りの設定"],"Type":["タイプ"],"Tilt":["傾斜"],"Curve":["カーブ"],"Wave":["波状"],"Triangle":["三角"],"Upper Divider Level":["上部区切りレベル"],"Lower Divider Level":["下部区切りレベル"],"Border Setting":["枠線の設定"],"Border will disappear when divider effect is applied.":["枠線は区切りレベルを適用すると表示されなくなります。"],"Border type":["枠線の種類"],"None":["なし"],"Solid":["直線"],"Dotted":["点線"],"Dashed":["Dashed"],"Double":["二重線"],"Groove":["Groove"],"Ridge":["Ridge"],"Inset":["Inset"],"Outset":["Outset"],"Border width":["枠線の幅"],"Border radius":["枠線のRの大きさ"],"Container Inner Side Space Setting":["コンテナ内側のスペース設定"],"Unit Type":["単位"],"Filter by %s":["%sで絞り込み"],"Filter by PostTypes":["投稿タイプ"],"Number of Posts":["表示件数"],"Filter by Date":["日付で絞り込み"],"Period of Time":["期間"],"Whole Period":["全期間"],"From Today":["今日以降"],"From Now":["現在以降"],"From Tomorrow":["明日以降"],"* If you choose a future period, you will need to customize it so that future posts will be published immediately.":["※ 未来の期間を選択する場合は、未来の投稿が即時公開になるように別途カスタマイズが必要です。"],"Order":["表示順"],"ASC":["昇順"],"DESC":["降順"],"Order by":["表示順"],"Published Date":["公開日"],"Modefied Date":["更新日"],"Random":["ランダム"],"offset":["オフセット数"],"Because no post is selected, The block Will not render":["ページが選択されていないためこのブロックはレンダリングされません"],"Input Internal Post URL":["このサイトの投稿の URL を入力してください"],"Fit to the Container area":["コンテナエリアに合わせる"],"Add padding to the Slider area":["スライダーアイテムエリア内に余白を追加する"],"Remove padding from the Slider area":["スライダーアイテムエリア内の余白を無くす"],"Vertical align":["縦揃え"],"Background Image Size":["背景画像サイズ"],"cover":["カバー"],"repeat":["リピート"],"Multi-image Display Setting":["複数の表示設定"],"Display Multi Images per View":["画像を複数枚表示する"],"Images per View":["1度に表示する画像の枚数"],"Move Images per Slide":["1度の動作で動かす枚数"],"Full Wide":["全幅"],"Height":["高さ"],"Slider Settings":["スライド設定"],"Effect ":["エフェクト"],"Slide":["スライド"],"Fade":["フェード"],"Loop ":["繰り返し"],"AutoPlay":["自動再生"],"Stop AutoPlay when swipe":["スワイプ時に自動再生を停止"],"Display Time":["表示時間"],"Change Speed":["切り替え時間"],"Pagination Type":["ページネーションの種類"],"Default":["標準"],"Number of slides":["スライドの枚数"],"Navigation Position":["ナビゲーションの位置"],"Center":["中央"],"Bottom on Mobile device":["モバイルでは下部に表示"],"Color":["色"],"Style":["スタイル"],"Outlined":["アウトライン"],"Step Mark":["ステップマーク"],"If Font Awesome tags entered, it will overrides the number.":["Font Awesome の class 名が入力されている場合は数字は上書きされます。"],"Ex,6:00AM":["例) 午前 6:00"],"First Dot Number":["ステップの開始番号"],"Table of Contents":["目次"],"Note on duplicating headings":["見出し複製時の注意"],"If you duplicate a heading, the table of contents block will not work properly, please reassign the ID.":["見出しを複製すると目次ブロックが適切に動作しません。IDを振り直してください。"],"Display type":["表示タイプ"],"No frame":["枠無し"],"Default Display Status":["初期表示状態"],"OPEN":["OPEN"],"CLOSE":["CLOSE"],"label":["ラベル"],"Style Settings":["スタイル設定"],"Success":["Success"],"Info":["Info"],"Warning":["Warning"],"Danger":["Danger"],"Don't display inactive grand child pages":["非アクティブな孫ページを表示しない"],"Ancestor Page List Setting":["先祖階層からのページリスト設定"],"Display Ancestor Page Title":["先祖階層のページタイトルを表示"],"Archive title tag":["アーカイブタイトルタグ"],"h2":[""],"h3":[""],"h4":[""],"h5":[""],"h6":[""],"Ancestor page title class name":["先祖階層ページタイトルのクラス名"],"Add link to ancestor page title":["先祖階層のページタイトルにリンクを追加"],"If there is no child page, the block itself is not displayed":["子ページがない場合、このブロック自体を表示しない"]," Image Border":["画像の線"],"Add border to image":["画像に枠線を追加する"],"* You can change border width on Setting > VK Blocks":["* 線の太さは 管理画面の 設定 > VK Blocks から選択する事ができます。"],"Border color of speech balloon":["吹き出しの線の色"],"Add border to balloon":["吹き出しに枠線を追加する"],"Balloon setting":["吹き出しブロック設定"],"Position":["位置"],"Please specify the layout of the balloon.":["吹き出しの配置を指定してください。"],"Left":["左"],"Right":["右"],"Please select the type of balloon.":["吹き出しのタイプを指定してください。"],"Speech":["吹き出し"],"Thinking":["もくもく"],"Image Style":["画像スタイル"],"Rounded":["角丸2"],"Circle":["丸抜き"],"100%":["100%"],"Background color of speech balloon":["吹き出しの背景色"],"Default Icon Setting":["デフォルトアイコン設定"],"You can register default icons from Settings > VK Blocks in Admin.":["管理画面の 設定 > VK Blocks から よく使うアイコンを登録する事ができます。"],"Animation setting":["アニメーション設定"],"Please select the type of animation.":["アニメーションのタイプを指定してください。"],"Trembling":["ぶるぶる"],"Upload image":["画像をアップロード"],"Icon Name":["アイコンの名前"],"Please enter a title.":["見出しを入力してください。"],"The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.":["枠線ブロック内の最初の要素の margin-top と 最後の要素の margin-bottom は自動的に0になります。最初と最後に余白をつけたい場合はスペーサーブロックなどで margin指定ではなくheight指定でご利用ください。"],"Transparent":["透過"],"White":["白"],"Solid Angle Tab":["直線 ピン角 タブ"],"Solid Round Tab":["直線 角丸 タブ"],"Solid Angle Banner":["直線 ピン角 バナー"],"Solid Angle Onborder":["直線 ピンカド 線上"],"Solid Angle Inner":["直線 ピン角 内側"],"Solid Angle iconFeature":["直線 ピン角 アイコン"],"Button setting":["ボタン設定"],"Sub Caption":["サブテキスト"],"Button Size:":["ボタンサイズ:"],"Large":["大"],"Small":["小"],"Button Position:":["ボタンの位置:"],"Wide":["幅広"],"Block":["Block"],"Button Width:":["ボタンの幅:"],"25%":["25%"],"50%":["50%"],"75%":["75%"],"Button Style:":["ボタンスタイル:"],"Text only":["テキストのみ"],"If you select \"No background\", that you need to select a Custom Color.":["もし「背景なし」を選択した場合はカスタムカラーで色を指定してください。"],"Default Color (Bootstrap)":["標準色 (Bootstrap)"],"Primary":["Primary"],"Secondary":["Secondary"],"Light":["Light"],"Dark":["Dark"],"Custom Color":["カスタムカラー"],"Button Color":["ボタンカラー"],"This color palette overrides the default color. If you want to use the default color, click the clear button.":["このカラーパレットの色は標準色を上書きします。 デフォルトの色を使用したい場合は、クリアボタンをクリックしてください。"],"Before text":["文字の前"],"After text":["文字の後"],"Size":["サイズ"],"Input text":["文字を入力"],"If you want to be collapsing this block, you can set it at Setting > VK Blocks":["このブロックを折りたたみたい場合は 設定 > VK Blocks から指定できます"],"You can be collapsing this block at VK Blocks Pro":["Pro版は回答部分を開閉式にできます"],"Accordion Setting":["アコーディオン設定"],"Please enter a question.":["質問を入力してください。"],"Bgfill Circle":["背景塗り 円形"],"Bgfill Square":["背景塗り ピン角"],"Bgfill Rounded":["背景塗り 角丸"],"Border Circle":["枠線 円形"],"Border Square":["枠線 ピン角"],"Border Rounded":["枠線 角丸"],"Display of arrow":["矢印の表示"],"Arrow display":["矢印を表示する"],"Arrow hidden":["矢印を表示しない"],"Input title":["タイトルを入力"],"Input content":["説明を入力"],"Input sub text…":["サブテキストを入力"],"Input title…":["タイトルを入力"],"Heading style":["見出しスタイル"],"Plain":["装飾無し"],"Margin Setting":["余白設定"],"Margin between Heading and sub text (rem)":["見出しとサブテキストの余白サイズ(rem)"],"Margin bottom size of after this block (rem)":["このブロック全体の下部の余白 (rem)"],"Heading Settings":["見出し設定"],"Icon Color":["アイコンの色"],"Sub Text Settings":["サブテキスト設定"],"Text size (rem)":["文字サイズ (rem)"],"Change heading level":["見出しレベルの変更"],"Heading %d":["見出し %d"],"Reset":["リセット"],"Icon & Frame":["アイコンと枠"],"Icon only":["アイコンのみ"],"Icon Common Setting":["アイコン共通設定"],"Icon Setting":["アイコン設定"],"Link URL":["リンクURL"],"Unspecified":["指定しない"],"Page Setting":["ページ設定"],"Select Page":["ページを選択"],"PR Block1 Setting":["PR Block1 設定"],"Icon 1":["アイコン 1"],"When you have an image. Image is displayed with priority":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 1":["PR 画像 1"],"PR Block2 Setting":["PR Block2 設定"],"Icon 2":["アイコン 2"],"PR Image 2":["PR 画像 2"],"PR Block3 Setting":["PR Block3 設定"],"Icon 3":["アイコン 3"],"When you have an image. Image is displayed with priority.":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 3":["PR 画像 3"],"Input title.":["タイトルを入力してください。"],"Input content.":["本文を入力してください。"],"Select Image":["画像を選択"],"Button Setting":["ボタン設定"],"Button Text":["ボタンの文字"],"Button Type":["ボタンタイプ"],"Ghost":["ゴーストボタン"],"Default Color:":["標準色:"],"Layout Type":["レイアウトタイプ"],"Title Color":["見出しの色"],"Content Color":["本文の色"],"Image Border Color":["画像の線の色"],"height":["height"],"margin-top":["margin-top"],"margin-bottom":["margin-bottom"],"Space Type":["余白タイプ"],"Custom":["カスタム"],"You can change each common margin size from Setting > VK Blocks":["* 共通の余白サイズは管理画面の 設定 > VK Blocks から変更する事ができます。"],"Height for each device.":["デバイス毎の高さ"],"Spacer Settings":["余白の設定"],"Your Name":["名前"],"Caption":["キャプション"],"Role position":["役職"],"Profile title":["プロフィールタイトル"],"Profile text":["プロフィールテキスト"],"Layout":["レイアウト"],"Image left":["画像 左"],"Image border":["画像の線"],"Alt text":["画像の代替テキスト"],"Set the alt text for profile image":["プロフィール画像の代替テキストを設定します"],"Staff name":["名前"],"Name caption":["名前のキャプション"],"Heading Font":["見出しのフォント"],"Font":["フォント"],"minchoBody":["明朝体にする"],"Card (Image Round)":["カード(画像丸抜き)"],"Card":["カード"],"Card (No border)":["カード(線なし)"],"Card (Intext)":["カード(インテキスト)"],"Card (Horizontal)":["カード(水平)"],"Media":["メディア"],"Text 1 Column":["テキスト 1 カラム"],"Display type and columns":["表示タイプとカラム"],"Column ( Screen size : Extra large )":["カラム ( 画面サイズ : Extra large )"],"Column ( Screen size : XX large )":["カラム ( 画面サイズ : XX Large )"],"Column ( Screen size : Extra small )":["カラム ( 画面サイズ : Extra small )"],"Column ( Screen size : Small )":["カラム ( 画面サイズ : Small )"],"Column ( Screen size : Medium )":["カラム ( 画面サイズ : Medium )"],"Column ( Screen size : Large )":["カラム ( 画面サイズ : Large )"],"Button align":["ボタンの位置"],"Term's name on Image":["画像右上分類名"],"Excerpt":["抜粋"],"Author":["投稿者"],"Date":["日付"],"New mark":["新着表示"],"Taxonomies (all)":["分類(全項目)"],"New mark option":["新着表示オプション"],"Number of days to display the new post mark":["新着表示日数"],"New post mark":["新着表示"],"Link target":["リンクターゲット"],"Open in new tab":["リンクを別ウィンドウで開く"],"Link rel":["rel属性"],"Hidden Settings":["非表示設定"],"Hidden at screen size":["非表示にする画面サイズ"],"Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.":["注意 : この機能はあくまでHTMLに出力される要素を非表示にするだけです。本当に見せてはいけない要素には使わないでください。"],"Hidden ( Screen size : all )":["非表示 ( 画面サイズ : all )"],"Hidden ( Screen size : xs )":["非表示 ( 画面サイズ : xs )"],"Hidden ( Screen size : sm )":["非表示 ( 画面サイズ : sm )"],"Hidden ( Screen size : md )":["非表示 ( 画面サイズ : md )"],"Hidden ( Screen size : lg )":["非表示 ( 画面サイズ : lg )"],"Hidden ( Screen size : xl )":["非表示 ( 画面サイズ : xl )"],"Hidden ( Screen size : xxl )":["非表示 ( 画面サイズ : xxl )"],"If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.":["複数のブロックを非表示にする場合は、最初にグループブロックに設定し、そのグループブロックに対して非表示にします。"],"Highlighter":["蛍光マーカー"],"Inline Font Size":["インライン文字サイズ"],"Apply":["適用"],"Inline font size":["インライン文字サイズ"],"Big":["大"],"Extra big":["特大"],"Top XL":["上 XL"],"Margin the block":["ブロックの余白"],"Top L":["上 L"],"Top M":["上 M"],"Top S":["上 S"],"Top XS":["上 XS"],"Top 0":["上 0"],"Bottom 0":["下 0"],"Bottom XS":["下 XS"],"Bottom S":["下 S"],"Bottom M":["下 M"],"Bottom L":["下 L"],"Bottom XL":["下 XL"],"No wrap":["No wrap"],"Responsive BR":["画面サイズ毎の改行 "],"Responsive BR ":["画面サイズ毎の改行 "],"Solid Roundcorner":["直線 角丸"],"Stitch":["スティッチ"],"Border Top Bottom":["直線 上下"],"Shadow":["シャドウ"],"Both ends":["左右線"],"Brackets black":["括弧 黒"],"Background fill lightgray":["背景塗り 灰色"],"Double border top and bottom black":["二重線 上下線 黒"],"Double border bottom black":["二重線 下線 黒"],"Solid border top and bottom black":["直線 上下 黒"],"Solid border bottom black":["直線 下線 黒"],"Dotted border bottom black":["点線 下線 黒"],"Rounded02":["角丸2"],"Photo frame":["フォトフレーム"],"Photo frame Tilt Right":["フォトフレーム傾き右"],"Photo frame Tilt Left":["フォトフレーム傾き左"],"Wave01":["流体シェイプ1"],"Wave02":["流体シェイプ2"],"Wave03":["流体シェイプ3"],"Wave04":["流体シェイプ4"],"Arrow":["矢印"],"Check":["チェック"],"Check Square":["チェック(四角)"],"Check Circle":["チェック-丸"],"Handpoint":["指"],"Pencil":["鉛筆"],"Smile":["笑顔"],"Frown":["不満顔"],"Numbered Circle":["数字-丸"],"Numbered Square":["数字-四角"],"List Icon Color":["リストアイコンの色"],"Border / Stripes":["枠線 / ストライプ"],"Theoretical Physicist":["理論物理学者"],"Profile":["プロフィール"],"Albert Einstein":["アルバート・アインシュタイン"],"14 March 1879 – 18 April 1955":["1879年3月14日 - 1955年4月18日"],"Lorem ipsum dolor":["闇の中で"],"Lorem ipsum":["ロレム・アプサム"],"Font Awesome icon list":["Font Awesome アイコンリスト"],"If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.":["他のアイコンを使いたい場合は Font Awesome のアイコンリストから選んでタグを入力してください。"],"Ex) ":["例) "],"When you click save button, the window will be reloaded and this setting will be applied.":["保存ボタンをクリックすると、ウィンドウが再読み込みされて、変更が適用されます。"],"Save":["保存"],"Select Icon":["アイコンを選択"],"VK Blocks Pro":["VK Blocks Pro"],"https://github.com/vektor-inc/vk-blocks":["https://github.com/vektor-inc/vk-blocks"],"This is a plugin that extends Gutenberg's blocks.":["Gutenbergのブロックを拡張するプラグインです。"],"Vektor,Inc.":["Vektor,Inc."],"https://vektor-inc.co.jp":["https://vektor-inc.co.jp"],"We've released VK Blocks Pro!":["VK Blocks Pro を公開しました!"],"Thank you for using VK Blocks. We've released VK Blocks Pro. It has more custom blocks to build web site more easily. If you are interested in VK Blocks Pro, Please read %1$s this post %2$s for more details.":["いつもVK Blocksをご利用いただきありがとうございます。この度、VK Blocks Proをリリースしました。より簡単にWebサイトを構築するためのカスタムブロックが追加されています。VK Blocks Proに興味がある方は、詳しくは%1$sこの記事%2$sを読んでみてください。"],"https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/":["https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/"],"See more":["続きを見る"],"Dismiss this notice":["通知を無視"],"Setting saved.":["設定を保存しました。"],"Install Required Plugins":["必須プラグインのインストール"],"Install Plugins":["プラグインのインストール"],"Installing Plugin: %s":["プラグイン %s をインストール中"],"Something went wrong with the plugin API.":["プラグイン API で問題が発生しました。"],"This plugin requires the following plugin: %1$s.":["このプラグインは下記プラグインを必要としています:%1$s。"],"This plugin recommends the following plugin: %1$s. Many additional functions are available for free.":["このプラグインは次のプラグインと一緒に利用するのがオススメです:%1$s。 これらのプラグインは無償で利用可能です。"],"Sorry, but you do not have the correct permissions to install the %1$s plugin.":["%1$sプラグインをインストールするための適切な権限がありません。"],"The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.":["このプラグインとの最大の互換性を確保するには、次のプラグインを最新バージョンに更新する必要があります: %1$s。"],"There is an update available for: %1$s.":["次のプラグインの更新が利用可能です:%1$s。"],"Sorry, but you do not have the correct permissions to update the %1$s plugin.":["%1$sプラグインを更新するための適切な権限がありません。"],"The following required plugin is currently inactive: %1$s.":["必須プラグインが現在有効化されていません: %1$s。"],"The following recommended plugin is currently inactive: %1$s.":["推奨プラグインが現在有効化されていません: %1$s。"],"Sorry, but you do not have the correct permissions to activate the %1$s plugin.":["%1$sプラグインを有効化するための適切な権限がありません。"],"Begin installing plugin":["プラグインのインストールを開始"],"Begin updating plugin":["プラグインの更新を開始する"],"Begin activating plugin":["プラグインの有効化を開始"],"Return to Required Plugins Installer":["必須プラグインのインストール画面に戻る"],"Plugin activated successfully.":["プラグインを有効化しました。"],"The following plugin was activated successfully:":["次のプラグインを有効化しました:"],"No action taken. Plugin %1$s was already active.":["操作を実行しませんでした。プラグイン %1$s はすでに有効化されています。"],"Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.":["プラグインを有効化できませんでした。このテーマはプラグイン %s の現在のバージョンをサポートしていません。プラグインを更新してください。"],"All plugins installed and activated successfully. %1$s":["すべてのプラグインを正常にインストールし、有効化しました。 %1$s"],"Please contact the administrator of this site for help.":["ヘルプが必要な場合はこのサイトの管理者にお問い合わせください。"],"Sorry, there is no post":["申し訳ありませんが投稿がありません。"],"Vektor WordPress Information":["Vektor WordPress Information"],"FAQ Setting":["FAQ ブロックの設定"],"Blocks setting":["Blocks 設定"],"Blocks Setting":["Blocks 設定"],"License Key":["ライセンスキー"],"Balloon Block Setting":["吹き出しブロック設定"],"Load Separete Setting":["分割読み込み設定"],"Setting":["設定"],"Ancestor Page Title":["先祖ページのタイトル"],"Dummy Text":["ダミーテキスト"],"Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.":["サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されません。 先祖階層からのページリストの代わりにダミーテキストのリストを表示しています。"],"This message only display on the edit screen.":["このメッセージは編集画面でのみ表示されます。"],"Edit this area":["このエリアを編集"],"Post":["投稿"],"There are no %ss.":["該当の%sはありません。"],"Blocks":["Blocks"],"Blocks Layout":["ブロックレイアウト"],"Read more":["続きを読む"],"New!!":["New!!"],"More":[""],"Posts navigation":["投稿ナビゲーション"],"Posts":["投稿リスト"],"Page":["ページ"],"Card Noborder":["カード(線なし)"],"Card Intext":["カード(インテキスト)"],"Card Horizontal":["カード(水平)"],"CSS Optimize ( Speed up ) Settings":["CSS最適化(高速化)設定"],"Tree shaking":["Tree shaking"],"Tree shaking activation settings":["Tree shaking 有効化設定"],"Output only the main CSS of the page inline":["主要なCSSのみインラインで出力します"],"Nothing to do":["何もしない"],"Active Tree shaking (Recomend)":["Tree shakingを有効化(推奨)"],"Exclude class of Tree shaking":["CSSの軽量化から除外するCSSのclass名"],"If you choose \"Active Tree shaking\" that delete the useless css.If you using active css class that please fill in class name. Ex) btn-active,slide-active,scrolled":["Tree shaking を有効にしている場合、使用していないCSSは削除されます。もし使用している動的クラスがある場合はクラス名を入力してください。 例)btn-active,slide-active,scrolled"],"Preload CSS":["Preload CSS"],"Preload CSS activation settings":["Preload CSS 有効化設定"],"Preload css except for critical css":["クリティカルなCSSを除いてCSSをプリロードします"],"Active Preload CSS (Recomend)":["Preload CSS を有効化(推奨)"],"Exclude class of Preload CSS":["Preload CSSから除外するハンドル名"],"If you choose \"Active Preload CSS\" that css load timing was changed.If you have any do not want to preload css file that please fill in handle(id) name. Ex) pluginname_a-style,pluginname_b-css":["もし「Preload CSS を有効」に設定した場合、CSSの読み込みタイミングが変更されます。プリロードしたくないファイルがある場合は、ハンドル名(id)を入力してください。 例)pluginname_a-style,pluginname_b-css"],"Disabled Blocks module on VK All in One Expansion Unit. Because VK-Blocks Plugin running.":["VK-Blocksと競合するため、VK All in One Expansion Unitの Block機能を停止しました。"],"License Key has no registered.":["ライセンスキーが登録されていません。"],"The VK Blocks Pro license is invalid.":["VK Blocks Pro のライセンスが無効です。"],"Enter a valid license key for any of the following products on the settings screen.":["以下の製品のライセンスキーを設定画面から入力してください。"],"Enter the license key":["ライセンスキーを入力"],"If this display does not disappear even after entering a valid license key, re-acquire the update.":["有効なライセンスキーを入力してもこの表示が消えない場合は更新の再取得をしてください。"],"Re-acquisition of updates":["更新の再取得"],"label in admin menu\u0004Blocks":["Blocks"],"post list type\u0004Text 1 Column":["テキスト 1 カラム"],"block title\u0004Alert":["アラート"],"block title\u0004Page list from ancestor":["先祖階層からのページリスト"],"block title\u0004Ballon":["吹き出し"],"block title\u0004Border Box":["枠線ボックス"],"block title\u0004Button":["ボタン"],"block title\u0004Classic FAQ":["旧 FAQ"],"block title\u0004FAQ Answer":["FAQ 回答"],"block title\u0004FAQ Question":["FAQ 質問"],"block title\u0004New FAQ":["新 FAQ"],"block title\u0004Flow":["フロー"],"block title\u0004Heading":["見出し"],"block title\u0004Icon Outer":["横並びアイコン"],"block title\u0004Icon":["アイコン"],"block title\u0004Page Content":["固定ページ本文"],"block title\u0004PR Blocks (not recommended)":["PR Blocks (非推奨)"],"block title\u0004PR Content":["PR Content"],"block title\u0004Responsive Spacer":["レスポンシブスペーサー"],"block title\u0004Staff":["スタッフ"],"block title\u0004Accordion Target":["アコーディオン コンテンツ"],"block title\u0004Accordion Trigger":["アコーディオン タイトル"],"block title\u0004Accordion":["アコーディオン"],"block title\u0004Animation":["アニメーション"],"block title\u0004Breadcrumb":["パンくずリスト"],"block title\u0004Button Outer":["横並びボタン"],"block title\u0004Card Item":["カードアイテム"],"block title\u0004Card":["カード"],"block title\u0004Child page list":["子ページリスト"],"block title\u0004Grid Column Item":["グリッドカラムアイテム"],"block title\u0004Grid Column":["グリッドカラム"],"block title\u0004Grid Column Card Item Body":["グリッドカラムカードアイテムボディ"],"block title\u0004Grid Column Card Item Footer":["グリッドカラムカードアイテムフッター"],"block title\u0004Grid Column Card Item header":["グリッドカラムカードアイテムヘッダー"],"block title\u0004Grid Column Card Item":["グリッドカラムカードアイテム"],"block title\u0004Grid Column Card":["グリッドカラムカード"],"block title\u0004Icon Card Item":["アイコンカードアイテム"],"block title\u0004Icon Card":["アイコンカード"],"block title\u0004Outer":["Outer"],"block title\u0004Post list":["投稿リスト"],"block title\u0004Selected Post List Item":["選択投稿リストアイテム"],"block title\u0004Selected Post List":["選択投稿リスト"],"block title\u0004Slider Item":["スライダーアイテム"],"block title\u0004Slider":["スライダー"],"block title\u0004Step Item":["ステップ要素"],"block title\u0004Step":["ステップ"],"block title\u0004Table of Contents":["目次"],"block title\u0004Timeline Item":["タイムライン要素"],"block title\u0004Timeline":["タイムライン"],"block description\u0004A colored box with four statuses, including annotations and alerts.":["注釈や注意など4つのステータスがある色付きのボックスです。"],"block description\u0004Display Page list from ancestor page":["先祖階層からのページリストを表示します"],"block description\u0004These speech balloons are perfect for recreating conversations.":["会話の再現などに最適な吹き出しです。"],"block description\u0004This is a border box where you can place headings to attract attention.":["見出しを配置でき注目されやすい枠線ボックスです。"],"block description\u0004A button link that can display icons before and after.":["前後にアイコンを表示できるボタンリンクです。"],"block description\u0004Displays a combination of questions and answers.":["質問と回答を組み合わせて表示します。"],"block description\u0004Answer area where you can add blocks freely.":["自由にブロックを追加できる回答エリアです。"],"block description\u0004Question area where you can freely add blocks.":["自由にブロックを追加できる質問エリアです。"],"block description\u0004It displays a combination of questions and answers. You can freely add blocks to the question area as well.":["質問と回答を組み合わせて表示します。質問エリアにも自由にブロックを追加できます。"],"block description\u0004Displays a sequential description in time series.":["時系列で順を追った説明を表示します。"],"block description\u0004This is a heading that allows you to set text size, subtext, icon, and margin.":["文字サイズ,サブテキスト,アイコン,余白が設定できる見出しです。"],"block description\u0004Display the Font Awesome icons horizontally.":["Font Awesome のアイコンフォントを横並びに表示します"],"block description\u0004Display icons with Font Awesome.":["Font Awesome のアイコンフォントを表示します"],"block description\u0004Displays the body content of the specified parent page.":["指定した基準ページの本文内容を表示します。"],"block description\u0004This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.":["画像やアイコンを配置できるPRブロックです。 ただし、現在、列ブロックとアイコンブロックを組み合わせて同じレイアウトを作成できるため、このブロックはお勧めしません。 ブロックパターンの「カラム(Column)」のカテゴリを確認してください。"],"block description\u0004This is PR content where you can place images, headlines, text, and buttons.":["画像,見出し,テキスト,ボタンが配置できるPRコンテンツです。"],"block description\u0004Use responsive spacers to get the margins right.":["レスポンシブに対応したスペーサーで余白を適切に取ります。"],"block description\u0004Used for staff introduction, company introduction, school introduction, menu, etc.":["スタッフ紹介,会社紹介,スクール紹介,メニューなどで利用します。"],"block description\u0004This is the content area where you can add blocks freely.":["コンテンツが長い時にコンテンツを折りたたんで隠して表示します。"],"block description\u0004This is the title area where you can freely add blocks.":["自由にブロックを追加できるタイトルエリアです。"],"block description\u0004Collapses and hides content when the content is long.":["自由にブロックを追加できるコンテンツエリアです。"],"block description\u0004Add animation to elements when scrolling the page.":["ページをスクロールした時に要素に動きを加えます。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page.":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロックはトップページでは表示されません。"],"block description\u0004Display the VK Button block horizontally.":["VK ボタンブロックを横並びに表示します"],"block description\u0004A single item in a card block.":["アイコンカード内の1つのアイテムです。"],"block description\u0004A card where you can place images, headings, text, and links.":["画像,見出し,テキスト,リンクが配置できるカードです。"],"block description\u0004When a parent page is specified, a list of its child pages will be displayed.":["親となる固定ページを指定するとその子ページの一覧を表示します。"],"block description\u0004One item in a grit column block.":["グリッドカラムブロック内の1つのアイテムです。"],"block description\u0004Set the number of columns to be displayed for each screen size.":["画面サイズ毎にカラム数を設定して表示させます。"],"block description\u0004Body of Grid Column Card Block Item":["グリッドカラムカードのボディ"],"block description\u0004Footer button area of Grid Column Card Block Item":["グリッドカラムカードアイテムブロックのフッターボタンエリア"],"block description\u0004Header image area of Grid Column Card Block Item":["グリッドカードカラムアイテムブロックのヘッダー画像エリア"],"block description\u0004It is a block of single column of Grid Column Card.":["グリッドカラムカードブロックのカラムブロック"],"block description\u0004This block can flexible column layout":["柔軟なカラムレイアウトが作成できます"],"block description\u0004This is one item in an icon card.":["アイコンカード内の1つのアイテムです。"],"block description\u0004Display card with icons, headings, text, and links.":["アイコン,見出し,テキスト,リンクを設定してカードを表示します。"],"block description\u0004Set the background image, color, and border to show the layout and divisions.":["背景の画像や色,枠線の設定しレイアウトや区切りを表示します。"],"block description\u0004Displays the list of posts by setting the post type, classification, and number of posts to display.":["投稿タイプ,分類,表示件数が設定して投稿リストを表示します。"],"block description\u0004A single item in the select post list.":["選択投稿リスト内の1つのアイテムです。"],"block description\u0004Displays an arbitrarily specified page with the layout of the posting list.":["任意に指定したページを投稿リストのレイアウトで表示します。"],"block description\u0004This is one item in the slider.":["スライダー内の1つのアイテムです。"],"block description\u0004This slider allows you to place various items.Slider is do not move in edit screen.":["様々なアイテムを配置できるスライダーです。編集画面では動かないので公開画面でプレビューしてください。"],"block description\u0004This element sets the icon, color, and style of the step mark.":["ステップマークのアイコン、色、スタイルを設定する要素です。"],"block description\u0004Set and display step marks, which are useful when explaining the order.":["順番を説明する時に便利でステップマークを設定し表示します。"],"block description\u0004This is a table of contents that is automatically generated according to the headings when added.":["追加すると見出しに合わせて自動で生成される目次です。"],"block description\u0004This element sets the label, color, and style of the timeline.":["タイムラインのラベル、色、スタイルを設定する要素です。"],"block description\u0004Displays a simple schedule and other information that is useful for explaining the order.":["順番を説明する時に便利でシンプルなスケジュールなどを表示します。"]}}}
\ No newline at end of file
diff --git a/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-build-js.json b/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-build-js.json
index 815ee06c3..3b79bec5e 100644
--- a/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-build-js.json
+++ b/inc/vk-blocks/languages/vk-blocks-ja-vk-blocks-build-js.json
@@ -1 +1 @@
-{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"Select":["選択"],"Delete":["削除"],"Balloon Image Name":["吹き出し画像の名前"],"Balloon Setting":["吹き出しブロック設定"],"Balloon Border Width Setting":["吹き出しの線幅の設定"],"Balloon Image Setting":["吹き出し画像設定"],"You can register frequently used icon images for speech bubble blocks.":["よく使う吹き出し用のアイコン画像を登録する事ができます。"],"If you change image or name that please click Save Changes button.":["画像を変更したら「変更を保存」ボタンをクリックしてください。"],"image":["画像"],"Enter a valid Lightning G3 Pro Pack or Lightning Pro license key.":["Lightning G3 Pro Pack あるいは Lightning Pro の有効なライセンスキーを入力してください。"],"Once you enter the license key you will be able to do a one click update from the administration screen.":["有効なライセンスキーを入力すると、管理画面からワンクリックでアップデートが可能になります。"],"License key":["ライセンスキー"],"Load Separate Setting":["分割読み込み設定"],"Note that the order in which CSS/JS are loaded will change.":["CSS / JSの読み込み順序が変わることに注意してください。"],"Load Separate Option on":["分割読み込みを有効にする"],"Small":["小"],"Medium":["中"],"Large":["大"],"PC":["PC"],"Tablet":["タブレット"],"Mobile":["モバイル"],"Common Margin Setting":["共通余白設定"],"Please specify the size of the common margin used for responsive spacers, etc.":["レスポンシブスペーサーなどで使用する共通余白のサイズを指定してください。"],"Unit":["単位"],"px":["px"],"em":["em"],"rem":["rem"],"Margin":["余白"],"FAQ Block Setting":["FAQ Blocks 設定"],"Disable accordion":["アコーディオン無効"],"Enable accordion and default open":["アコーディオン有効 / 初期状態で開く"],"Enable accordion and default close":["アコーディオン有効 / 初期状態で閉じる"],"Save setting":["変更を保存"],"Save Success":["保存しました"],"No background color":["背景なし"],"No background color / Border":["背景なし / 枠線"],"Background color":["背景あり"],"Background color / Border":["背景あり / 枠線"],"Background color / Rounded ":["背景あり / 角丸"],"Background color / Rounded / Border":[" 背景あり / 角丸 / 枠線 "],"Slow":["遅い"],"Fast":["速い"],"Very Fast":["非常に速い"],"Animation range":["アニメーションの距離"],"Short":["短い"],"Normal":["標準"],"Long":["長い"],"Animation Settings":["アニメーション設定"],"Animation effect":["アニメーションの効果"],"Fade In":["フェードイン"],"Slide Up":["スライドアップ"],"Slide Left":["スライド左"],"Slide Right":["スライド右"],"Left Right":["左右"],"Up Down":["上下"],"Trembling Y":["ぶるぶる(Y方向)"],"Trembling X":["ぶるぶる(X方向)"],"Pounding":["どきどき"],"Shaking":["ゆらゆら"],"Animation speed":["アニメーションの速度"],"Very Slow":["非常に遅い"],"Button Common Setting":["ボタン共通設定"],"Button gap size":["ボタンギャップサイズ"],"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ":["あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。"],"Title":["タイトル"],"Select image":["画像を選択"],"Delete Image":["画像を削除"],"URL":["URL"],"https://example.com":["https://example.com"],"Display item":["表示要素"],"Excerpt Text":["抜粋"],"Warning! When you hidden this item, you will lose the content.":["注意!この項目を非表示にすると入力されていた内容は失われます。"],"Image":["画像"],"Button":["ボタン"],"Button option":["ボタンオプション"],"Click each card block to set the target url. You can find the url form at it's sidebar.":["ボタンのリンク先は各カードブロックをクリックすると、サイドバーにURL入力フォームが表示されます。"],"Button text":["ボタンの文字"],"Image Height":["画像高さ"],"Slide Height for each device.":["デバイス毎の高さ"],"Current page":["現在のページ"],"Display conditions":["表示条件"],"Parent":["親ページ"],"Ignore this post":["この投稿を除く"],"Color Settings":["色設定"],"Text Color":["文字の色"],"Background Color":["背景色"],"Margin setting inside the item":["アイテム内の余白設定"],"Padding (Top)":["余白 (上)"],"Padding (Left and Right)":["余白 (左右)"],"Padding (Bottom)":["余白 (下)"],"vw":["vw"],"Layout Columns":["カラムレイアウト"],"Column Margin Bottom Setting":["カラム下部余白設定"],"Margin Bottom":["下部の余白"],"You can create a variety of layouts with grid column card blocks.":["グリッドカラムカードブロックでは柔軟なレイアウトが可能です。"],"Unlink":["リンクを解除する"],"Input Link URL":["リンクURL"],"Submit":["送信"],"Edit mode":["編集モード"],"All columns":["すべてのカラム"],"This column only":["このカラムのみ"],"Edit Lock":["編集ロック"],"Lock edits this block from the parent and other Grid Column Item block":["このブロックをロックして親ブロックや他のブロックの変更を受け取らないようにする"],"Column Setting":["カラム設定"],"Link URL:":["リンク URL:"],"Open link new tab.":["リンクを別ウィンドウで開く"],"If you set a link URL, do not place the link element (text or button) in the Grid Column Card Item. It may not be displayed correctly.":["リンクURLを設定する場合は、グリッドカラムカードアイテム内にリンク要素(テキストやボタン)を配置しないでください。 正しく表示されない場合があります。"],"Make sure that no link is specified for the image block, etc.":["画像ブロックなどにもリンクが指定されていないか注意してください。"],"Image fit to column":["画像とカラム内の余白をなくす"],"Column footer button area":["カラムフッターボタンエリア"],"Display":["表示"],"Hide":["非表示"],"Column Radius":["カラムの角丸の大きさ"],"Border":["枠線"],"Border Color":["線の色"],"Column padding":["カラムの余白"],"Column header media area":["カラムヘッダーメディアエリア"],"Column Width Setting":["カラム幅設定"],"If you specify the minimum column size on a tablet or PC with %, it will be easier to align the number of columns in the upper and lower rows according to the screen size.":["タブレットまたはPCの最小列サイズを%で指定すると、画面サイズに応じて上下の行の列数を揃えやすくなります。"],"Column min width (Mobile)":["カラムの最小サイズ(モバイル)"],"Column min width (Tablet / Optional)":["カラムの最小サイズ(タブレット / 任意)"],"Column min width (PC / Optional)":["カラムの最小サイズ(PC / 任意)"],"Column Gap Setting":["カラム間の設定"],"Column gap size":["カラム間の余白"],"Column row-gap size (optional)":["カラム間の縦余白(任意)"],"Specify all columns at once":["全カラム一括指定"],"Input Title":["タイトルを入力"],"Input Content":["文章を入力してください"],"Icon Card Setting":["アイコンカード設定"],"Icon":["アイコン"],"Icon Background:":["アイコン背景:"],"Solid color":["ベタ塗り"],"No background":["背景なし"],"Columns":["カラム"],"Align":["表示位置"],"Text":["テキスト"],"Background Setting":["背景設定"],"Color Setting":["色設定"],"Color will overcome background image. If you want to display image, set opacity 0.":["色を指定すると画像よりも優先されます。画像を表示したい場合は、不透明度を0に設定します。"],"Opacity Setting":["透過設定"],"Background Image PC":["背景画像 ( PC )"],"Background Image Tablet":["背景画像 ( タブレット )"],"Background Image Mobile":["背景画像 ( モバイル )"],"Background image Position":["背景画像の位置"],"Repeat":["リピート"],"Cover":["カバー"],"Cover fixed (Not fixed on iPhone)":["カバー 固定(iPhoneでは固定されません)"],"Parallax (Non-guaranteed)":["パララックス(非保証)"],"Layout Setting":["レイアウト設定"],"Width":["幅"],"Fit to the Content area":["コンテンツエリアに合わせる"],"Add padding to the Outer area":["アウターエリア内に余白を追加する"],"Remove padding from the Outer area":["アウターエリア内の余白を無くす"],"Padding (Top and Bottom)":["余白 (上下)"],"Use default padding":["標準の余白を使用"],"Do not use default padding":["標準の余白を使用しない"],"* If you select \"Do not use\" that, please set yourself it such as a spacer block.":["*「使用しない」を選択した場合はスペーサーブロックなどで任意に設定してください。"],"Divider Setting":["区切りの設定"],"Type":["タイプ"],"Tilt":["傾斜"],"Curve":["カーブ"],"Wave":["波状"],"Triangle":["三角"],"Upper Divider Level":["上部区切りレベル"],"Lower Divider Level":["下部区切りレベル"],"Border Setting":["枠線の設定"],"Border will disappear when divider effect is applied.":["枠線は区切りレベルを適用すると表示されなくなります。"],"Border type":["枠線の種類"],"None":["なし"],"Solid":["直線"],"Dotted":["点線"],"Dashed":["Dashed"],"Double":["二重線"],"Groove":["Groove"],"Ridge":["Ridge"],"Inset":["Inset"],"Outset":["Outset"],"Border width":["枠線の幅"],"Border radius":["枠線のRの大きさ"],"Container Inner Side Space Setting":["コンテナ内側のスペース設定"],"Unit Type":["単位"],"Filter by %s":["%sで絞り込み"],"Filter by PostTypes":["投稿タイプ"],"Number of Posts":["表示件数"],"Filter by Date":["日付で絞り込み"],"Period of Time":["期間"],"Whole Period":["全期間"],"From Today":["今日以降"],"From Now":["現在以降"],"From Tomorrow":["明日以降"],"* If you choose a future period, you will need to customize it so that future posts will be published immediately.":["※ 未来の期間を選択する場合は、未来の投稿が即時公開になるように別途カスタマイズが必要です。"],"Order":["表示順"],"ASC":["昇順"],"DESC":["降順"],"Order by":["表示順"],"Published Date":["公開日"],"Modefied Date":["更新日"],"Random":["ランダム"],"offset":["オフセット数"],"Because no post is selected, The block Will not render":["ページが選択されていないためこのブロックはレンダリングされません"],"Input Internal Post URL":["このサイトの投稿の URL を入力してください"],"Fit to the Container area":["コンテナエリアに合わせる"],"Add padding to the Slider area":["スライダーアイテムエリア内に余白を追加する"],"Remove padding from the Slider area":["スライダーアイテムエリア内の余白を無くす"],"Vertical align":["縦揃え"],"Background Image Size":["背景画像サイズ"],"cover":["カバー"],"repeat":["リピート"],"Multi-image Display Setting":["複数の表示設定"],"Display Multi Images per View":["画像を複数枚表示する"],"Images per View":["1度に表示する画像の枚数"],"Move Images per Slide":["1度の動作で動かす枚数"],"Full Wide":["全幅"],"Height":["高さ"],"Slider Settings":["スライド設定"],"Effect ":["エフェクト"],"Slide":["スライド"],"Fade":["フェード"],"Loop ":["繰り返し"],"AutoPlay":["自動再生"],"Stop AutoPlay when swipe":["スワイプ時に自動再生を停止"],"Display Time":["表示時間"],"Change Speed":["切り替え時間"],"Pagination Type":["ページネーションの種類"],"Default":["標準"],"Number of slides":["スライドの枚数"],"Navigation Position":["ナビゲーションの位置"],"Center":["中央"],"Bottom on Mobile device":["モバイルでは下部に表示"],"Color":["色"],"Style":["スタイル"],"Outlined":["アウトライン"],"Step Mark":["ステップマーク"],"If Font Awesome tags entered, it will overrides the number.":["Font Awesome の class 名が入力されている場合は数字は上書きされます。"],"Ex,6:00AM":["例) 午前 6:00"],"First Dot Number":["ステップの開始番号"],"Table of Contents":["目次"],"Note on duplicating headings":["見出し複製時の注意"],"If you duplicate a heading, the table of contents block will not work properly, please reassign the ID.":["見出しを複製すると目次ブロックが適切に動作しません。IDを振り直してください。"],"Display type":["表示タイプ"],"No frame":["枠無し"],"Default Display Status":["初期表示状態"],"OPEN":["OPEN"],"CLOSE":["CLOSE"],"label":["ラベル"],"Style Settings":["スタイル設定"],"Success":["Success"],"Info":["Info"],"Warning":["Warning"],"Danger":["Danger"],"Don't display inactive grand child pages":["非アクティブな孫ページを表示しない"],"Ancestor Page List Setting":["先祖階層からのページリスト設定"],"Display Ancestor Page Title":["先祖階層のページタイトルを表示"],"Archive title tag":["アーカイブタイトルタグ"],"h2":[""],"h3":[""],"h4":[""],"h5":[""],"h6":[""],"Ancestor page title class name":["先祖階層ページタイトルのクラス名"],"Add link to ancestor page title":["先祖階層のページタイトルにリンクを追加"],"If there is no child page, the block itself is not displayed":["子ページがない場合、このブロック自体を表示しない"]," Image Border":["画像の線"],"Add border to image":["画像に枠線を追加する"],"* You can change border width on Setting > VK Blocks":["* 線の太さは 管理画面の 設定 > VK Blocks から選択する事ができます。"],"Border color of speech balloon":["吹き出しの線の色"],"Add border to balloon":["吹き出しに枠線を追加する"],"Balloon setting":["吹き出しブロック設定"],"Position":["位置"],"Please specify the layout of the balloon.":["吹き出しの配置を指定してください。"],"Left":["左"],"Right":["右"],"Please select the type of balloon.":["吹き出しのタイプを指定してください。"],"Speech":["吹き出し"],"Thinking":["もくもく"],"Image Style":["画像スタイル"],"Rounded":["角丸2"],"Circle":["丸抜き"],"100%":["100%"],"Background color of speech balloon":["吹き出しの背景色"],"Default Icon Setting":["デフォルトアイコン設定"],"You can register default icons from Settings > VK Blocks in Admin.":["管理画面の 設定 > VK Blocks から よく使うアイコンを登録する事ができます。"],"Animation setting":["アニメーション設定"],"Please select the type of animation.":["アニメーションのタイプを指定してください。"],"Trembling":["ぶるぶる"],"Upload image":["画像をアップロード"],"Icon Name":["アイコンの名前"],"Please enter a title.":["見出しを入力してください。"],"The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.":["枠線ブロック内の最初の要素の margin-top と 最後の要素の margin-bottom は自動的に0になります。最初と最後に余白をつけたい場合はスペーサーブロックなどで margin指定ではなくheight指定でご利用ください。"],"Transparent":["透過"],"White":["白"],"Solid Angle Tab":["直線 ピン角 タブ"],"Solid Round Tab":["直線 角丸 タブ"],"Solid Angle Banner":["直線 ピン角 バナー"],"Solid Angle Onborder":["直線 ピンカド 線上"],"Solid Angle Inner":["直線 ピン角 内側"],"Solid Angle iconFeature":["直線 ピン角 アイコン"],"Button setting":["ボタン設定"],"Sub Caption":["サブテキスト"],"Button Size:":["ボタンサイズ:"],"Button Position:":["ボタンの位置:"],"Wide":["幅広"],"Block":["Block"],"Button Width:":["ボタンの幅:"],"25%":["25%"],"50%":["50%"],"75%":["75%"],"Button Style:":["ボタンスタイル:"],"Text only":["テキストのみ"],"If you select \"No background\", that you need to select a Custom Color.":["もし「背景なし」を選択した場合はカスタムカラーで色を指定してください。"],"Default Color (Bootstrap)":["標準色 (Bootstrap)"],"Primary":["Primary"],"Secondary":["Secondary"],"Light":["Light"],"Dark":["Dark"],"Custom Color":["カスタムカラー"],"Button Color":["ボタンカラー"],"This color palette overrides the default color. If you want to use the default color, click the clear button.":["このカラーパレットの色は標準色を上書きします。 デフォルトの色を使用したい場合は、クリアボタンをクリックしてください。"],"Before text":["文字の前"],"After text":["文字の後"],"Size":["サイズ"],"Input text":["文字を入力"],"If you want to be collapsing this block, you can set it at Setting > VK Blocks":["このブロックを折りたたみたい場合は 設定 > VK Blocks から指定できます"],"You can be collapsing this block at VK Blocks Pro":["Pro版は回答部分を開閉式にできます"],"Accordion Setting":["アコーディオン設定"],"Please enter a question.":["質問を入力してください。"],"Bgfill Circle":["背景塗り 円形"],"Bgfill Square":["背景塗り ピン角"],"Bgfill Rounded":["背景塗り 角丸"],"Border Circle":["枠線 円形"],"Border Square":["枠線 ピン角"],"Border Rounded":["枠線 角丸"],"Display of arrow":["矢印の表示"],"Arrow display":["矢印を表示する"],"Arrow hidden":["矢印を表示しない"],"Input title":["タイトルを入力"],"Input content":["説明を入力"],"Input sub text…":["サブテキストを入力"],"Input title…":["タイトルを入力"],"Heading style":["見出しスタイル"],"Plain":["装飾無し"],"Margin Setting":["余白設定"],"Margin between Heading and sub text (rem)":["見出しとサブテキストの余白サイズ(rem)"],"Margin bottom size of after this block (rem)":["このブロック全体の下部の余白 (rem)"],"Heading Settings":["見出し設定"],"Icon Color":["アイコンの色"],"Sub Text Settings":["サブテキスト設定"],"Text size (rem)":["文字サイズ (rem)"],"Change heading level":["見出しレベルの変更"],"Heading %d":["見出し %d"],"Reset":["リセット"],"Icon & Frame":["アイコンと枠"],"Icon only":["アイコンのみ"],"Icon Common Setting":["アイコン共通設定"],"Icon Setting":["アイコン設定"],"Link URL":["リンクURL"],"Unspecified":["指定しない"],"Page Setting":["ページ設定"],"Select Page":["ページを選択"],"PR Block1 Setting":["PR Block1 設定"],"Icon 1":["アイコン 1"],"When you have an image. Image is displayed with priority":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 1":["PR 画像 1"],"PR Block2 Setting":["PR Block2 設定"],"Icon 2":["アイコン 2"],"PR Image 2":["PR 画像 2"],"PR Block3 Setting":["PR Block3 設定"],"Icon 3":["アイコン 3"],"When you have an image. Image is displayed with priority.":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 3":["PR 画像 3"],"Input title.":["タイトルを入力してください。"],"Input content.":["本文を入力してください。"],"Select Image":["画像を選択"],"Button Setting":["ボタン設定"],"Button Text":["ボタンの文字"],"Button Type":["ボタンタイプ"],"Ghost":["ゴーストボタン"],"Default Color:":["標準色:"],"Layout Type":["レイアウトタイプ"],"Title Color":["見出しの色"],"Content Color":["本文の色"],"Image Border Color":["画像の線の色"],"height":["height"],"margin-top":["margin-top"],"margin-bottom":["margin-bottom"],"Space Type":["余白タイプ"],"Custom":["カスタム"],"You can change each common margin size from Setting > VK Blocks":["* 共通の余白サイズは管理画面の 設定 > VK Blocks から変更する事ができます。"],"Height for each device.":["デバイス毎の高さ"],"Spacer Settings":["余白の設定"],"Your Name":["名前"],"Caption":["キャプション"],"Role position":["役職"],"Profile title":["プロフィールタイトル"],"Profile text":["プロフィールテキスト"],"Layout":["レイアウト"],"Image left":["画像 左"],"Image border":["画像の線"],"Alt text":["画像の代替テキスト"],"Set the alt text for profile image":["プロフィール画像の代替テキストを設定します"],"Staff name":["名前"],"Name caption":["名前のキャプション"],"Heading Font":["見出しのフォント"],"Font":["フォント"],"minchoBody":["明朝体にする"],"Card (Image Round)":["カード(画像丸抜き)"],"Card":["カード"],"Card (No border)":["カード(線なし)"],"Card (Intext)":["カード(インテキスト)"],"Card (Horizontal)":["カード(水平)"],"Media":["メディア"],"Text 1 Column":["テキスト 1 カラム"],"Display type and columns":["表示タイプとカラム"],"Column ( Screen size : Extra large )":["カラム ( 画面サイズ : Extra large )"],"Column ( Screen size : XX large )":["カラム ( 画面サイズ : XX Large )"],"Column ( Screen size : Extra small )":["カラム ( 画面サイズ : Extra small )"],"Column ( Screen size : Small )":["カラム ( 画面サイズ : Small )"],"Column ( Screen size : Medium )":["カラム ( 画面サイズ : Medium )"],"Column ( Screen size : Large )":["カラム ( 画面サイズ : Large )"],"Button align":["ボタンの位置"],"Term's name on Image":["画像右上分類名"],"Excerpt":["抜粋"],"Author":["投稿者"],"Date":["日付"],"New mark":["新着表示"],"Taxonomies (all)":["分類(全項目)"],"New mark option":["新着表示オプション"],"Number of days to display the new post mark":["新着表示日数"],"New post mark":["新着表示"],"Link target":["リンクターゲット"],"Open in new tab":["リンクを別ウィンドウで開く"],"Link rel":["rel属性"],"Hidden Settings":["非表示設定"],"Hidden at screen size":["非表示にする画面サイズ"],"Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.":["注意 : この機能はあくまでHTMLに出力される要素を非表示にするだけです。本当に見せてはいけない要素には使わないでください。"],"Hidden ( Screen size : all )":["非表示 ( 画面サイズ : all )"],"Hidden ( Screen size : xs )":["非表示 ( 画面サイズ : xs )"],"Hidden ( Screen size : sm )":["非表示 ( 画面サイズ : sm )"],"Hidden ( Screen size : md )":["非表示 ( 画面サイズ : md )"],"Hidden ( Screen size : lg )":["非表示 ( 画面サイズ : lg )"],"Hidden ( Screen size : xl )":["非表示 ( 画面サイズ : xl )"],"Hidden ( Screen size : xxl )":["非表示 ( 画面サイズ : xxl )"],"If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.":["複数のブロックを非表示にする場合は、最初にグループブロックに設定し、そのグループブロックに対して非表示にします。"],"Highlighter":["蛍光マーカー"],"Inline Font Size":["インライン文字サイズ"],"Apply":["適用"],"Inline font size":["インライン文字サイズ"],"Big":["大"],"Extra big":["特大"],"Top lg":["上 lg"],"Margin the block":["ブロックの余白"],"Top md":["上 md"],"Top sm":["上 sm"],"Top 0":["上 0"],"Bottom 0":["下 0"],"Bottom sm":["下 sm"],"Bottom md":["下 md"],"Bottom lg":["下 lg"],"No wrap":["No wrap"],"Responsive BR":["画面サイズ毎の改行 "],"Responsive BR ":["画面サイズ毎の改行 "],"Solid Roundcorner":["直線 角丸"],"Stitch":["スティッチ"],"Border Top Bottom":["直線 上下"],"Shadow":["シャドウ"],"Both ends":["左右線"],"Brackets black":["括弧 黒"],"Background fill lightgray":["背景塗り 灰色"],"Double border top and bottom black":["二重線 上下線 黒"],"Double border bottom black":["二重線 下線 黒"],"Solid border top and bottom black":["直線 上下 黒"],"Solid border bottom black":["直線 下線 黒"],"Dotted border bottom black":["点線 下線 黒"],"Rounded02":["角丸2"],"Photo frame":["フォトフレーム"],"Photo frame Tilt Right":["フォトフレーム傾き右"],"Photo frame Tilt Left":["フォトフレーム傾き左"],"Wave01":["流体シェイプ1"],"Wave02":["流体シェイプ2"],"Wave03":["流体シェイプ3"],"Wave04":["流体シェイプ4"],"Arrow":["矢印"],"Check":["チェック"],"Check Square":["チェック(四角)"],"Check Circle":["チェック-丸"],"Handpoint":["指"],"Pencil":["鉛筆"],"Smile":["笑顔"],"Frown":["不満顔"],"Numbered Circle":["数字-丸"],"Numbered Square":["数字-四角"],"List Icon Color":["リストアイコンの色"],"Border / Stripes":["枠線 / ストライプ"],"Theoretical Physicist":["理論物理学者"],"Profile":["プロフィール"],"Albert Einstein":["アルバート・アインシュタイン"],"14 March 1879 – 18 April 1955":["1879年3月14日 - 1955年4月18日"],"Lorem ipsum dolor":["闇の中で"],"Lorem ipsum":["ロレム・アプサム"],"Font Awesome icon list":["Font Awesome アイコンリスト"],"If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.":["他のアイコンを使いたい場合は Font Awesome のアイコンリストから選んでタグを入力してください。"],"Ex) ":["例) "],"When you click save button, the window will be reloaded and this setting will be applied.":["保存ボタンをクリックすると、ウィンドウが再読み込みされて、変更が適用されます。"],"Save":["保存"],"Select Icon":["アイコンを選択"],"VK Blocks Pro":["VK Blocks Pro"],"https://github.com/vektor-inc/vk-blocks":["https://github.com/vektor-inc/vk-blocks"],"This is a plugin that extends Gutenberg's blocks.":["Gutenbergのブロックを拡張するプラグインです。"],"Vektor,Inc.":["Vektor,Inc."],"https://vektor-inc.co.jp":["https://vektor-inc.co.jp"],"We've released VK Blocks Pro!":["VK Blocks Pro を公開しました!"],"Thank you for using VK Blocks. We've released VK Blocks Pro. It has more custom blocks to build web site more easily. If you are interested in VK Blocks Pro, Please read %1$s this post %2$s for more details.":["いつもVK Blocksをご利用いただきありがとうございます。この度、VK Blocks Proをリリースしました。より簡単にWebサイトを構築するためのカスタムブロックが追加されています。VK Blocks Proに興味がある方は、詳しくは%1$sこの記事%2$sを読んでみてください。"],"https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/":["https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/"],"See more":["続きを見る"],"Dismiss this notice":["通知を無視"],"Setting saved.":["設定を保存しました。"],"Install Required Plugins":["必須プラグインのインストール"],"Install Plugins":["プラグインのインストール"],"Installing Plugin: %s":["プラグイン %s をインストール中"],"Something went wrong with the plugin API.":["プラグイン API で問題が発生しました。"],"This plugin requires the following plugin: %1$s.":["このプラグインは下記プラグインを必要としています:%1$s。"],"This plugin recommends the following plugin: %1$s. Many additional functions are available for free.":["このプラグインは次のプラグインと一緒に利用するのがオススメです:%1$s。 これらのプラグインは無償で利用可能です。"],"Sorry, but you do not have the correct permissions to install the %1$s plugin.":["%1$sプラグインをインストールするための適切な権限がありません。"],"The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.":["このプラグインとの最大の互換性を確保するには、次のプラグインを最新バージョンに更新する必要があります: %1$s。"],"There is an update available for: %1$s.":["次のプラグインの更新が利用可能です:%1$s。"],"Sorry, but you do not have the correct permissions to update the %1$s plugin.":["%1$sプラグインを更新するための適切な権限がありません。"],"The following required plugin is currently inactive: %1$s.":["必須プラグインが現在有効化されていません: %1$s。"],"The following recommended plugin is currently inactive: %1$s.":["推奨プラグインが現在有効化されていません: %1$s。"],"Sorry, but you do not have the correct permissions to activate the %1$s plugin.":["%1$sプラグインを有効化するための適切な権限がありません。"],"Begin installing plugin":["プラグインのインストールを開始"],"Begin updating plugin":["プラグインの更新を開始する"],"Begin activating plugin":["プラグインの有効化を開始"],"Return to Required Plugins Installer":["必須プラグインのインストール画面に戻る"],"Plugin activated successfully.":["プラグインを有効化しました。"],"The following plugin was activated successfully:":["次のプラグインを有効化しました:"],"No action taken. Plugin %1$s was already active.":["操作を実行しませんでした。プラグイン %1$s はすでに有効化されています。"],"Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.":["プラグインを有効化できませんでした。このテーマはプラグイン %s の現在のバージョンをサポートしていません。プラグインを更新してください。"],"All plugins installed and activated successfully. %1$s":["すべてのプラグインを正常にインストールし、有効化しました。 %1$s"],"Please contact the administrator of this site for help.":["ヘルプが必要な場合はこのサイトの管理者にお問い合わせください。"],"Sorry, there is no post":["申し訳ありませんが投稿がありません。"],"Vektor WordPress Information":["Vektor WordPress Information"],"FAQ Setting":["FAQ ブロックの設定"],"Blocks setting":["Blocks 設定"],"Blocks Setting":["Blocks 設定"],"License Key":["ライセンスキー"],"Balloon Block Setting":["吹き出しブロック設定"],"Load Separete Setting":["分割読み込み設定"],"Setting":["設定"],"Edit this area":["このエリアを編集"],"Post":["投稿"],"There are no %ss.":["該当の%sはありません。"],"Blocks":["Blocks"],"Blocks Layout":["ブロックレイアウト"],"Read more":["続きを読む"],"New!!":["New!!"],"More":[""],"Posts navigation":["投稿ナビゲーション"],"Posts":["投稿リスト"],"Page":["ページ"],"Card Noborder":["カード(線なし)"],"Card Intext":["カード(インテキスト)"],"Card Horizontal":["カード(水平)"],"CSS Optimize ( Speed up ) Settings":["CSS最適化(高速化)設定"],"Tree shaking":["Tree shaking"],"Tree shaking activation settings":["Tree shaking 有効化設定"],"Output only the main CSS of the page inline":["主要なCSSのみインラインで出力します"],"Nothing to do":["何もしない"],"Active Tree shaking (Recomend)":["Tree shakingを有効化(推奨)"],"Exclude class of Tree shaking":["CSSの軽量化から除外するCSSのclass名"],"If you choose \"Active Tree shaking\" that delete the useless css.If you using active css class that please fill in class name. Ex) btn-active,slide-active,scrolled":["Tree shaking を有効にしている場合、使用していないCSSは削除されます。もし使用している動的クラスがある場合はクラス名を入力してください。 例)btn-active,slide-active,scrolled"],"Preload CSS":["Preload CSS"],"Preload CSS activation settings":["Preload CSS 有効化設定"],"Preload css except for critical css":["クリティカルなCSSを除いてCSSをプリロードします"],"Active Preload CSS (Recomend)":["Preload CSS を有効化(推奨)"],"Exclude class of Preload CSS":["Preload CSSから除外するハンドル名"],"If you choose \"Active Preload CSS\" that css load timing was changed.If you have any do not want to preload css file that please fill in handle(id) name. Ex) pluginname_a-style,pluginname_b-css":["もし「Preload CSS を有効」に設定した場合、CSSの読み込みタイミングが変更されます。プリロードしたくないファイルがある場合は、ハンドル名(id)を入力してください。 例)pluginname_a-style,pluginname_b-css"],"Disabled Blocks module on VK All in One Expansion Unit. Because VK-Blocks Plugin running.":["VK-Blocksと競合するため、VK All in One Expansion Unitの Block機能を停止しました。"],"License Key has no registered.":["ライセンスキーが登録されていません。"],"The VK Blocks Pro license is invalid.":["VK Blocks Pro のライセンスが無効です。"],"Enter a valid license key for any of the following products on the settings screen.":["以下の製品のライセンスキーを設定画面から入力してください。"],"Enter the license key":["ライセンスキーを入力"],"If this display does not disappear even after entering a valid license key, re-acquire the update.":["有効なライセンスキーを入力してもこの表示が消えない場合は更新の再取得をしてください。"],"Re-acquisition of updates":["更新の再取得"],"Ancestor Page Title":["先祖ページのタイトル"],"Dummy Text":["ダミーテキスト"],"Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.":["サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されません。 先祖階層からのページリストの代わりにダミーテキストのリストを表示しています。"],"This message only display on the edit screen.":["このメッセージは編集画面でのみ表示されます。"],"label in admin menu\u0004Blocks":["Blocks"],"post list type\u0004Text 1 Column":["テキスト 1 カラム"],"block title\u0004Alert":["アラート"],"block title\u0004Page list from ancestor":["先祖階層からのページリスト"],"block title\u0004Ballon":["吹き出し"],"block title\u0004Border Box":["枠線ボックス"],"block title\u0004Button":["ボタン"],"block title\u0004Classic FAQ":["旧 FAQ"],"block title\u0004FAQ Answer":["FAQ 回答"],"block title\u0004FAQ Question":["FAQ 質問"],"block title\u0004New FAQ":["新 FAQ"],"block title\u0004Flow":["フロー"],"block title\u0004Heading":["見出し"],"block title\u0004Icon Outer":["横並びアイコン"],"block title\u0004Icon":["アイコン"],"block title\u0004Page Content":["固定ページ本文"],"block title\u0004PR Blocks (not recommended)":["PR Blocks (非推奨)"],"block title\u0004PR Content":["PR Content"],"block title\u0004Responsive Spacer":["レスポンシブスペーサー"],"block title\u0004Staff":["スタッフ"],"block title\u0004Accordion Target":["アコーディオン コンテンツ"],"block title\u0004Accordion Trigger":["アコーディオン タイトル"],"block title\u0004Accordion":["アコーディオン"],"block title\u0004Animation":["アニメーション"],"block title\u0004Breadcrumb":["パンくずリスト"],"block title\u0004Button Outer":["横並びボタン"],"block title\u0004Card Item":["カードアイテム"],"block title\u0004Card":["カード"],"block title\u0004Child page list":["子ページリスト"],"block title\u0004Grid Column Item":["グリッドカラムアイテム"],"block title\u0004Grid Column":["グリッドカラム"],"block title\u0004Grid Column Card Item Body":["グリッドカラムカードアイテムボディ"],"block title\u0004Grid Column Card Item Footer":["グリッドカラムカードアイテムフッター"],"block title\u0004Grid Column Card Item header":["グリッドカラムカードアイテムヘッダー"],"block title\u0004Grid Column Card Item":["グリッドカラムカードアイテム"],"block title\u0004Grid Column Card":["グリッドカラムカード"],"block title\u0004Icon Card Item":["アイコンカードアイテム"],"block title\u0004Icon Card":["アイコンカード"],"block title\u0004Outer":["Outer"],"block title\u0004Post list":["投稿リスト"],"block title\u0004Selected Post List Item":["選択投稿リストアイテム"],"block title\u0004Selected Post List":["選択投稿リスト"],"block title\u0004Slider Item":["スライダーアイテム"],"block title\u0004Slider":["スライダー"],"block title\u0004Step Item":["ステップ要素"],"block title\u0004Step":["ステップ"],"block title\u0004Table of Contents":["目次"],"block title\u0004Timeline Item":["タイムライン要素"],"block title\u0004Timeline":["タイムライン"],"block description\u0004A colored box with four statuses, including annotations and alerts.":["注釈や注意など4つのステータスがある色付きのボックスです。"],"block description\u0004Display Page list from ancestor page":["先祖階層からのページリストを表示します"],"block description\u0004These speech balloons are perfect for recreating conversations.":["会話の再現などに最適な吹き出しです。"],"block description\u0004This is a border box where you can place headings to attract attention.":["見出しを配置でき注目されやすい枠線ボックスです。"],"block description\u0004A button link that can display icons before and after.":["前後にアイコンを表示できるボタンリンクです。"],"block description\u0004Displays a combination of questions and answers.":["質問と回答を組み合わせて表示します。"],"block description\u0004Answer area where you can add blocks freely.":["自由にブロックを追加できる回答エリアです。"],"block description\u0004Question area where you can freely add blocks.":["自由にブロックを追加できる質問エリアです。"],"block description\u0004It displays a combination of questions and answers. You can freely add blocks to the question area as well.":["質問と回答を組み合わせて表示します。質問エリアにも自由にブロックを追加できます。"],"block description\u0004Displays a sequential description in time series.":["時系列で順を追った説明を表示します。"],"block description\u0004This is a heading that allows you to set text size, subtext, icon, and margin.":["文字サイズ,サブテキスト,アイコン,余白が設定できる見出しです。"],"block description\u0004Display the Font Awesome icons horizontally.":["Font Awesome のアイコンフォントを横並びに表示します"],"block description\u0004Display icons with Font Awesome.":["Font Awesome のアイコンフォントを表示します"],"block description\u0004Displays the body content of the specified parent page.":["指定した基準ページの本文内容を表示します。"],"block description\u0004This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.":["画像やアイコンを配置できるPRブロックです。 ただし、現在、列ブロックとアイコンブロックを組み合わせて同じレイアウトを作成できるため、このブロックはお勧めしません。 ブロックパターンの「カラム(Column)」のカテゴリを確認してください。"],"block description\u0004This is PR content where you can place images, headlines, text, and buttons.":["画像,見出し,テキスト,ボタンが配置できるPRコンテンツです。"],"block description\u0004Use responsive spacers to get the margins right.":["レスポンシブに対応したスペーサーで余白を適切に取ります。"],"block description\u0004Used for staff introduction, company introduction, school introduction, menu, etc.":["スタッフ紹介,会社紹介,スクール紹介,メニューなどで利用します。"],"block description\u0004This is the content area where you can add blocks freely.":["コンテンツが長い時にコンテンツを折りたたんで隠して表示します。"],"block description\u0004This is the title area where you can freely add blocks.":["自由にブロックを追加できるタイトルエリアです。"],"block description\u0004Collapses and hides content when the content is long.":["自由にブロックを追加できるコンテンツエリアです。"],"block description\u0004Add animation to elements when scrolling the page.":["ページをスクロールした時に要素に動きを加えます。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します"],"block description\u0004Display the VK Button block horizontally.":["VK ボタンブロックを横並びに表示します"],"block description\u0004A single item in a card block.":["アイコンカード内の1つのアイテムです。"],"block description\u0004A card where you can place images, headings, text, and links.":["画像,見出し,テキスト,リンクが配置できるカードです。"],"block description\u0004When a parent page is specified, a list of its child pages will be displayed.":["親となる固定ページを指定するとその子ページの一覧を表示します。"],"block description\u0004One item in a grit column block.":["グリッドカラムブロック内の1つのアイテムです。"],"block description\u0004Set the number of columns to be displayed for each screen size.":["画面サイズ毎にカラム数を設定して表示させます。"],"block description\u0004Body of Grid Column Card Block Item":["グリッドカラムカードのボディ"],"block description\u0004Footer button area of Grid Column Card Block Item":["グリッドカラムカードアイテムブロックのフッターボタンエリア"],"block description\u0004Header image area of Grid Column Card Block Item":["グリッドカードカラムアイテムブロックのヘッダー画像エリア"],"block description\u0004It is a block of single column of Grid Column Card.":["グリッドカラムカードブロックのカラムブロック"],"block description\u0004This block can flexible column layout":["柔軟なカラムレイアウトが作成できます"],"block description\u0004This is one item in an icon card.":["アイコンカード内の1つのアイテムです。"],"block description\u0004Display card with icons, headings, text, and links.":["アイコン,見出し,テキスト,リンクを設定してカードを表示します。"],"block description\u0004Set the background image, color, and border to show the layout and divisions.":["背景の画像や色,枠線の設定しレイアウトや区切りを表示します。"],"block description\u0004Displays the list of posts by setting the post type, classification, and number of posts to display.":["投稿タイプ,分類,表示件数が設定して投稿リストを表示します。"],"block description\u0004A single item in the select post list.":["選択投稿リスト内の1つのアイテムです。"],"block description\u0004Displays an arbitrarily specified page with the layout of the posting list.":["任意に指定したページを投稿リストのレイアウトで表示します。"],"block description\u0004This is one item in the slider.":["スライダー内の1つのアイテムです。"],"block description\u0004This slider allows you to place various items.Slider is do not move in edit screen.":["様々なアイテムを配置できるスライダーです。編集画面では動かないので公開画面でプレビューしてください。"],"block description\u0004This element sets the icon, color, and style of the step mark.":["ステップマークのアイコン、色、スタイルを設定する要素です。"],"block description\u0004Set and display step marks, which are useful when explaining the order.":["順番を説明する時に便利でステップマークを設定し表示します。"],"block description\u0004This is a table of contents that is automatically generated according to the headings when added.":["追加すると見出しに合わせて自動で生成される目次です。"],"block description\u0004This element sets the label, color, and style of the timeline.":["タイムラインのラベル、色、スタイルを設定する要素です。"],"block description\u0004Displays a simple schedule and other information that is useful for explaining the order.":["順番を説明する時に便利でシンプルなスケジュールなどを表示します。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page.":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロックはトップページでは表示されません。"]}}}
\ No newline at end of file
+{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"Select":["選択"],"Delete":["削除"],"Balloon Image Name":["吹き出し画像の名前"],"Balloon Setting":["吹き出しブロック設定"],"Balloon Border Width Setting":["吹き出しの線幅の設定"],"Balloon Image Setting":["吹き出し画像設定"],"You can register frequently used icon images for speech bubble blocks.":["よく使う吹き出し用のアイコン画像を登録する事ができます。"],"If you change image or name that please click Save Changes button.":["画像を変更したら「変更を保存」ボタンをクリックしてください。"],"image":["画像"],"Enter a valid Lightning G3 Pro Pack or Lightning Pro license key.":["Lightning G3 Pro Pack あるいは Lightning Pro の有効なライセンスキーを入力してください。"],"Once you enter the license key you will be able to do a one click update from the administration screen.":["有効なライセンスキーを入力すると、管理画面からワンクリックでアップデートが可能になります。"],"License key":["ライセンスキー"],"Load Separate Setting":["分割読み込み設定"],"Note that the order in which CSS/JS are loaded will change.":["CSS / JSの読み込み順序が変わることに注意してください。"],"Load Separate Option on":["分割読み込みを有効にする"],"Margin":["余白"],"XS":[""],"S":[""],"M":[""],"L":[""],"XL":[""],"PC":["PC"],"Tablet":["タブレット"],"Mobile":["モバイル"],"Common Margin Setting":["共通余白設定"],"Please specify the size of the common margin used for responsive spacers, etc.":["レスポンシブスペーサーなどで使用する共通余白のサイズを指定してください。"],"Unit":["単位"],"px":["px"],"em":["em"],"rem":["rem"],"FAQ Block Setting":["FAQ Blocks 設定"],"Disable accordion":["アコーディオン無効"],"Enable accordion and default open":["アコーディオン有効 / 初期状態で開く"],"Enable accordion and default close":["アコーディオン有効 / 初期状態で閉じる"],"Save setting":["変更を保存"],"Save Success":["保存しました"],"No background color":["背景なし"],"No background color / Border":["背景なし / 枠線"],"Background color":["背景あり"],"Background color / Border":["背景あり / 枠線"],"Background color / Rounded ":["背景あり / 角丸"],"Background color / Rounded / Border":[" 背景あり / 角丸 / 枠線 "],"Slow":["遅い"],"Fast":["速い"],"Very Fast":["非常に速い"],"Animation range":["アニメーションの距離"],"Short":["短い"],"Normal":["標準"],"Long":["長い"],"Animation Settings":["アニメーション設定"],"Animation effect":["アニメーションの効果"],"Fade In":["フェードイン"],"Slide Up":["スライドアップ"],"Slide Left":["スライド左"],"Slide Right":["スライド右"],"Left Right":["左右"],"Up Down":["上下"],"Trembling Y":["ぶるぶる(Y方向)"],"Trembling X":["ぶるぶる(X方向)"],"Pounding":["どきどき"],"Shaking":["ゆらゆら"],"Animation speed":["アニメーションの速度"],"Very Slow":["非常に遅い"],"Button Common Setting":["ボタン共通設定"],"Button gap size":["ボタンギャップサイズ"],"Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ":["あのイーハトーヴォのすきとおった風、夏でも底に冷たさをもつ青いそら、うつくしい森で飾られたモリーオ市、郊外のぎらぎらひかる草の波。"],"Title":["タイトル"],"Select image":["画像を選択"],"Delete Image":["画像を削除"],"URL":["URL"],"https://example.com":["https://example.com"],"Display item":["表示要素"],"Excerpt Text":["抜粋"],"Warning! When you hidden this item, you will lose the content.":["注意!この項目を非表示にすると入力されていた内容は失われます。"],"Image":["画像"],"Button":["ボタン"],"Button option":["ボタンオプション"],"Click each card block to set the target url. You can find the url form at it's sidebar.":["ボタンのリンク先は各カードブロックをクリックすると、サイドバーにURL入力フォームが表示されます。"],"Button text":["ボタンの文字"],"Image Height":["画像高さ"],"Slide Height for each device.":["デバイス毎の高さ"],"Current page":["現在のページ"],"Display conditions":["表示条件"],"Parent":["親ページ"],"Ignore this post":["この投稿を除く"],"Color Settings":["色設定"],"Text Color":["文字の色"],"Background Color":["背景色"],"Margin setting inside the item":["アイテム内の余白設定"],"Padding (Top)":["余白 (上)"],"Padding (Left and Right)":["余白 (左右)"],"Padding (Bottom)":["余白 (下)"],"vw":["vw"],"Layout Columns":["カラムレイアウト"],"Column Margin Bottom Setting":["カラム下部余白設定"],"Margin Bottom":["下部の余白"],"You can create a variety of layouts with grid column card blocks.":["グリッドカラムカードブロックでは柔軟なレイアウトが可能です。"],"Unlink":["リンクを解除する"],"Input Link URL":["リンクURL"],"Submit":["送信"],"Edit mode":["編集モード"],"All columns":["すべてのカラム"],"This column only":["このカラムのみ"],"Edit Lock":["編集ロック"],"Lock edits this block from the parent and other Grid Column Item block":["このブロックをロックして親ブロックや他のブロックの変更を受け取らないようにする"],"Column Setting":["カラム設定"],"Link URL:":["リンク URL:"],"Open link new tab.":["リンクを別ウィンドウで開く"],"If you set a link URL, do not place the link element (text or button) in the Grid Column Card Item. It may not be displayed correctly.":["リンクURLを設定する場合は、グリッドカラムカードアイテム内にリンク要素(テキストやボタン)を配置しないでください。 正しく表示されない場合があります。"],"Make sure that no link is specified for the image block, etc.":["画像ブロックなどにもリンクが指定されていないか注意してください。"],"Image fit to column":["画像とカラム内の余白をなくす"],"Column footer button area":["カラムフッターボタンエリア"],"Display":["表示"],"Hide":["非表示"],"Column Radius":["カラムの角丸の大きさ"],"Border":["枠線"],"Border Color":["線の色"],"Column padding":["カラムの余白"],"Column header media area":["カラムヘッダーメディアエリア"],"Column Width Setting":["カラム幅設定"],"If you specify the minimum column size on a tablet or PC with %, it will be easier to align the number of columns in the upper and lower rows according to the screen size.":["タブレットまたはPCの最小列サイズを%で指定すると、画面サイズに応じて上下の行の列数を揃えやすくなります。"],"Column min width (Mobile)":["カラムの最小サイズ(モバイル)"],"Column min width (Tablet / Optional)":["カラムの最小サイズ(タブレット / 任意)"],"Column min width (PC / Optional)":["カラムの最小サイズ(PC / 任意)"],"Column Gap Setting":["カラム間の設定"],"Column gap size":["カラム間の余白"],"Column row-gap size (optional)":["カラム間の縦余白(任意)"],"Specify all columns at once":["全カラム一括指定"],"Input Title":["タイトルを入力"],"Input Content":["文章を入力してください"],"Icon Card Setting":["アイコンカード設定"],"Icon":["アイコン"],"Icon Background:":["アイコン背景:"],"Solid color":["ベタ塗り"],"No background":["背景なし"],"Columns":["カラム"],"Align":["表示位置"],"Text":["テキスト"],"Background Setting":["背景設定"],"Color Setting":["色設定"],"Color will overcome background image. If you want to display image, set opacity 0.":["色を指定すると画像よりも優先されます。画像を表示したい場合は、不透明度を0に設定します。"],"Opacity Setting":["透過設定"],"Background Image PC":["背景画像 ( PC )"],"Background Image Tablet":["背景画像 ( タブレット )"],"Background Image Mobile":["背景画像 ( モバイル )"],"Background image Position":["背景画像の位置"],"Repeat":["リピート"],"Cover":["カバー"],"Cover fixed (Not fixed on iPhone)":["カバー 固定(iPhoneでは固定されません)"],"Parallax (Non-guaranteed)":["パララックス(非保証)"],"Layout Setting":["レイアウト設定"],"Width":["幅"],"Fit to the Content area":["コンテンツエリアに合わせる"],"Add padding to the Outer area":["アウターエリア内に余白を追加する"],"Remove padding from the Outer area":["アウターエリア内の余白を無くす"],"Padding (Top and Bottom)":["余白 (上下)"],"Use default padding":["標準の余白を使用"],"Do not use default padding":["標準の余白を使用しない"],"* If you select \"Do not use\" that, please set yourself it such as a spacer block.":["*「使用しない」を選択した場合はスペーサーブロックなどで任意に設定してください。"],"Divider Setting":["区切りの設定"],"Type":["タイプ"],"Tilt":["傾斜"],"Curve":["カーブ"],"Wave":["波状"],"Triangle":["三角"],"Upper Divider Level":["上部区切りレベル"],"Lower Divider Level":["下部区切りレベル"],"Border Setting":["枠線の設定"],"Border will disappear when divider effect is applied.":["枠線は区切りレベルを適用すると表示されなくなります。"],"Border type":["枠線の種類"],"None":["なし"],"Solid":["直線"],"Dotted":["点線"],"Dashed":["Dashed"],"Double":["二重線"],"Groove":["Groove"],"Ridge":["Ridge"],"Inset":["Inset"],"Outset":["Outset"],"Border width":["枠線の幅"],"Border radius":["枠線のRの大きさ"],"Container Inner Side Space Setting":["コンテナ内側のスペース設定"],"Unit Type":["単位"],"Filter by %s":["%sで絞り込み"],"Filter by PostTypes":["投稿タイプ"],"Number of Posts":["表示件数"],"Filter by Date":["日付で絞り込み"],"Period of Time":["期間"],"Whole Period":["全期間"],"From Today":["今日以降"],"From Now":["現在以降"],"From Tomorrow":["明日以降"],"* If you choose a future period, you will need to customize it so that future posts will be published immediately.":["※ 未来の期間を選択する場合は、未来の投稿が即時公開になるように別途カスタマイズが必要です。"],"Order":["表示順"],"ASC":["昇順"],"DESC":["降順"],"Order by":["表示順"],"Published Date":["公開日"],"Modefied Date":["更新日"],"Random":["ランダム"],"offset":["オフセット数"],"Because no post is selected, The block Will not render":["ページが選択されていないためこのブロックはレンダリングされません"],"Input Internal Post URL":["このサイトの投稿の URL を入力してください"],"Fit to the Container area":["コンテナエリアに合わせる"],"Add padding to the Slider area":["スライダーアイテムエリア内に余白を追加する"],"Remove padding from the Slider area":["スライダーアイテムエリア内の余白を無くす"],"Vertical align":["縦揃え"],"Background Image Size":["背景画像サイズ"],"cover":["カバー"],"repeat":["リピート"],"Multi-image Display Setting":["複数の表示設定"],"Display Multi Images per View":["画像を複数枚表示する"],"Images per View":["1度に表示する画像の枚数"],"Move Images per Slide":["1度の動作で動かす枚数"],"Full Wide":["全幅"],"Height":["高さ"],"Slider Settings":["スライド設定"],"Effect ":["エフェクト"],"Slide":["スライド"],"Fade":["フェード"],"Loop ":["繰り返し"],"AutoPlay":["自動再生"],"Stop AutoPlay when swipe":["スワイプ時に自動再生を停止"],"Display Time":["表示時間"],"Change Speed":["切り替え時間"],"Pagination Type":["ページネーションの種類"],"Default":["標準"],"Number of slides":["スライドの枚数"],"Navigation Position":["ナビゲーションの位置"],"Center":["中央"],"Bottom on Mobile device":["モバイルでは下部に表示"],"Color":["色"],"Style":["スタイル"],"Outlined":["アウトライン"],"Step Mark":["ステップマーク"],"If Font Awesome tags entered, it will overrides the number.":["Font Awesome の class 名が入力されている場合は数字は上書きされます。"],"Ex,6:00AM":["例) 午前 6:00"],"First Dot Number":["ステップの開始番号"],"Table of Contents":["目次"],"Note on duplicating headings":["見出し複製時の注意"],"If you duplicate a heading, the table of contents block will not work properly, please reassign the ID.":["見出しを複製すると目次ブロックが適切に動作しません。IDを振り直してください。"],"Display type":["表示タイプ"],"No frame":["枠無し"],"Default Display Status":["初期表示状態"],"OPEN":["OPEN"],"CLOSE":["CLOSE"],"label":["ラベル"],"Style Settings":["スタイル設定"],"Success":["Success"],"Info":["Info"],"Warning":["Warning"],"Danger":["Danger"],"Don't display inactive grand child pages":["非アクティブな孫ページを表示しない"],"Ancestor Page List Setting":["先祖階層からのページリスト設定"],"Display Ancestor Page Title":["先祖階層のページタイトルを表示"],"Archive title tag":["アーカイブタイトルタグ"],"h2":[""],"h3":[""],"h4":[""],"h5":[""],"h6":[""],"Ancestor page title class name":["先祖階層ページタイトルのクラス名"],"Add link to ancestor page title":["先祖階層のページタイトルにリンクを追加"],"If there is no child page, the block itself is not displayed":["子ページがない場合、このブロック自体を表示しない"]," Image Border":["画像の線"],"Add border to image":["画像に枠線を追加する"],"* You can change border width on Setting > VK Blocks":["* 線の太さは 管理画面の 設定 > VK Blocks から選択する事ができます。"],"Border color of speech balloon":["吹き出しの線の色"],"Add border to balloon":["吹き出しに枠線を追加する"],"Balloon setting":["吹き出しブロック設定"],"Position":["位置"],"Please specify the layout of the balloon.":["吹き出しの配置を指定してください。"],"Left":["左"],"Right":["右"],"Please select the type of balloon.":["吹き出しのタイプを指定してください。"],"Speech":["吹き出し"],"Thinking":["もくもく"],"Image Style":["画像スタイル"],"Rounded":["角丸2"],"Circle":["丸抜き"],"100%":["100%"],"Background color of speech balloon":["吹き出しの背景色"],"Default Icon Setting":["デフォルトアイコン設定"],"You can register default icons from Settings > VK Blocks in Admin.":["管理画面の 設定 > VK Blocks から よく使うアイコンを登録する事ができます。"],"Animation setting":["アニメーション設定"],"Please select the type of animation.":["アニメーションのタイプを指定してください。"],"Trembling":["ぶるぶる"],"Upload image":["画像をアップロード"],"Icon Name":["アイコンの名前"],"Please enter a title.":["見出しを入力してください。"],"The margin-top of the first element and the margin-bottom of the last element in the border block will be automatically set to 0.If you want to add margins at the beginning and end, use a spacer block to specify height instead of margin.":["枠線ブロック内の最初の要素の margin-top と 最後の要素の margin-bottom は自動的に0になります。最初と最後に余白をつけたい場合はスペーサーブロックなどで margin指定ではなくheight指定でご利用ください。"],"Transparent":["透過"],"White":["白"],"Solid Angle Tab":["直線 ピン角 タブ"],"Solid Round Tab":["直線 角丸 タブ"],"Solid Angle Banner":["直線 ピン角 バナー"],"Solid Angle Onborder":["直線 ピンカド 線上"],"Solid Angle Inner":["直線 ピン角 内側"],"Solid Angle iconFeature":["直線 ピン角 アイコン"],"Button setting":["ボタン設定"],"Sub Caption":["サブテキスト"],"Button Size:":["ボタンサイズ:"],"Large":["大"],"Small":["小"],"Button Position:":["ボタンの位置:"],"Wide":["幅広"],"Block":["Block"],"Button Width:":["ボタンの幅:"],"25%":["25%"],"50%":["50%"],"75%":["75%"],"Button Style:":["ボタンスタイル:"],"Text only":["テキストのみ"],"If you select \"No background\", that you need to select a Custom Color.":["もし「背景なし」を選択した場合はカスタムカラーで色を指定してください。"],"Default Color (Bootstrap)":["標準色 (Bootstrap)"],"Primary":["Primary"],"Secondary":["Secondary"],"Light":["Light"],"Dark":["Dark"],"Custom Color":["カスタムカラー"],"Button Color":["ボタンカラー"],"This color palette overrides the default color. If you want to use the default color, click the clear button.":["このカラーパレットの色は標準色を上書きします。 デフォルトの色を使用したい場合は、クリアボタンをクリックしてください。"],"Before text":["文字の前"],"After text":["文字の後"],"Size":["サイズ"],"Input text":["文字を入力"],"If you want to be collapsing this block, you can set it at Setting > VK Blocks":["このブロックを折りたたみたい場合は 設定 > VK Blocks から指定できます"],"You can be collapsing this block at VK Blocks Pro":["Pro版は回答部分を開閉式にできます"],"Accordion Setting":["アコーディオン設定"],"Please enter a question.":["質問を入力してください。"],"Bgfill Circle":["背景塗り 円形"],"Bgfill Square":["背景塗り ピン角"],"Bgfill Rounded":["背景塗り 角丸"],"Border Circle":["枠線 円形"],"Border Square":["枠線 ピン角"],"Border Rounded":["枠線 角丸"],"Display of arrow":["矢印の表示"],"Arrow display":["矢印を表示する"],"Arrow hidden":["矢印を表示しない"],"Input title":["タイトルを入力"],"Input content":["説明を入力"],"Input sub text…":["サブテキストを入力"],"Input title…":["タイトルを入力"],"Heading style":["見出しスタイル"],"Plain":["装飾無し"],"Margin Setting":["余白設定"],"Margin between Heading and sub text (rem)":["見出しとサブテキストの余白サイズ(rem)"],"Margin bottom size of after this block (rem)":["このブロック全体の下部の余白 (rem)"],"Heading Settings":["見出し設定"],"Icon Color":["アイコンの色"],"Sub Text Settings":["サブテキスト設定"],"Text size (rem)":["文字サイズ (rem)"],"Change heading level":["見出しレベルの変更"],"Heading %d":["見出し %d"],"Reset":["リセット"],"Icon & Frame":["アイコンと枠"],"Icon only":["アイコンのみ"],"Icon Common Setting":["アイコン共通設定"],"Icon Setting":["アイコン設定"],"Link URL":["リンクURL"],"Unspecified":["指定しない"],"Page Setting":["ページ設定"],"Select Page":["ページを選択"],"PR Block1 Setting":["PR Block1 設定"],"Icon 1":["アイコン 1"],"When you have an image. Image is displayed with priority":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 1":["PR 画像 1"],"PR Block2 Setting":["PR Block2 設定"],"Icon 2":["アイコン 2"],"PR Image 2":["PR 画像 2"],"PR Block3 Setting":["PR Block3 設定"],"Icon 3":["アイコン 3"],"When you have an image. Image is displayed with priority.":["画像を設定した場合は画像が優先して表示されます。"],"PR Image 3":["PR 画像 3"],"Input title.":["タイトルを入力してください。"],"Input content.":["本文を入力してください。"],"Select Image":["画像を選択"],"Button Setting":["ボタン設定"],"Button Text":["ボタンの文字"],"Button Type":["ボタンタイプ"],"Ghost":["ゴーストボタン"],"Default Color:":["標準色:"],"Layout Type":["レイアウトタイプ"],"Title Color":["見出しの色"],"Content Color":["本文の色"],"Image Border Color":["画像の線の色"],"height":["height"],"margin-top":["margin-top"],"margin-bottom":["margin-bottom"],"Space Type":["余白タイプ"],"Custom":["カスタム"],"You can change each common margin size from Setting > VK Blocks":["* 共通の余白サイズは管理画面の 設定 > VK Blocks から変更する事ができます。"],"Height for each device.":["デバイス毎の高さ"],"Spacer Settings":["余白の設定"],"Your Name":["名前"],"Caption":["キャプション"],"Role position":["役職"],"Profile title":["プロフィールタイトル"],"Profile text":["プロフィールテキスト"],"Layout":["レイアウト"],"Image left":["画像 左"],"Image border":["画像の線"],"Alt text":["画像の代替テキスト"],"Set the alt text for profile image":["プロフィール画像の代替テキストを設定します"],"Staff name":["名前"],"Name caption":["名前のキャプション"],"Heading Font":["見出しのフォント"],"Font":["フォント"],"minchoBody":["明朝体にする"],"Card (Image Round)":["カード(画像丸抜き)"],"Card":["カード"],"Card (No border)":["カード(線なし)"],"Card (Intext)":["カード(インテキスト)"],"Card (Horizontal)":["カード(水平)"],"Media":["メディア"],"Text 1 Column":["テキスト 1 カラム"],"Display type and columns":["表示タイプとカラム"],"Column ( Screen size : Extra large )":["カラム ( 画面サイズ : Extra large )"],"Column ( Screen size : XX large )":["カラム ( 画面サイズ : XX Large )"],"Column ( Screen size : Extra small )":["カラム ( 画面サイズ : Extra small )"],"Column ( Screen size : Small )":["カラム ( 画面サイズ : Small )"],"Column ( Screen size : Medium )":["カラム ( 画面サイズ : Medium )"],"Column ( Screen size : Large )":["カラム ( 画面サイズ : Large )"],"Button align":["ボタンの位置"],"Term's name on Image":["画像右上分類名"],"Excerpt":["抜粋"],"Author":["投稿者"],"Date":["日付"],"New mark":["新着表示"],"Taxonomies (all)":["分類(全項目)"],"New mark option":["新着表示オプション"],"Number of days to display the new post mark":["新着表示日数"],"New post mark":["新着表示"],"Link target":["リンクターゲット"],"Open in new tab":["リンクを別ウィンドウで開く"],"Link rel":["rel属性"],"Hidden Settings":["非表示設定"],"Hidden at screen size":["非表示にする画面サイズ"],"Note : This function is display hidden only. Actually Block is output to HTML. Please don't use you must not visible item. Don't use it for blocks you really don't want to display.":["注意 : この機能はあくまでHTMLに出力される要素を非表示にするだけです。本当に見せてはいけない要素には使わないでください。"],"Hidden ( Screen size : all )":["非表示 ( 画面サイズ : all )"],"Hidden ( Screen size : xs )":["非表示 ( 画面サイズ : xs )"],"Hidden ( Screen size : sm )":["非表示 ( 画面サイズ : sm )"],"Hidden ( Screen size : md )":["非表示 ( 画面サイズ : md )"],"Hidden ( Screen size : lg )":["非表示 ( 画面サイズ : lg )"],"Hidden ( Screen size : xl )":["非表示 ( 画面サイズ : xl )"],"Hidden ( Screen size : xxl )":["非表示 ( 画面サイズ : xxl )"],"If you want to hide multiple blocks, that first you set to group block and the next, hide for the that group block.":["複数のブロックを非表示にする場合は、最初にグループブロックに設定し、そのグループブロックに対して非表示にします。"],"Highlighter":["蛍光マーカー"],"Inline Font Size":["インライン文字サイズ"],"Apply":["適用"],"Inline font size":["インライン文字サイズ"],"Big":["大"],"Extra big":["特大"],"Top XL":["上 XL"],"Margin the block":["ブロックの余白"],"Top L":["上 L"],"Top M":["上 M"],"Top S":["上 S"],"Top XS":["上 XS"],"Top 0":["上 0"],"Bottom 0":["下 0"],"Bottom XS":["下 XS"],"Bottom S":["下 S"],"Bottom M":["下 M"],"Bottom L":["下 L"],"Bottom XL":["下 XL"],"No wrap":["No wrap"],"Responsive BR":["画面サイズ毎の改行 "],"Responsive BR ":["画面サイズ毎の改行 "],"Solid Roundcorner":["直線 角丸"],"Stitch":["スティッチ"],"Border Top Bottom":["直線 上下"],"Shadow":["シャドウ"],"Both ends":["左右線"],"Brackets black":["括弧 黒"],"Background fill lightgray":["背景塗り 灰色"],"Double border top and bottom black":["二重線 上下線 黒"],"Double border bottom black":["二重線 下線 黒"],"Solid border top and bottom black":["直線 上下 黒"],"Solid border bottom black":["直線 下線 黒"],"Dotted border bottom black":["点線 下線 黒"],"Rounded02":["角丸2"],"Photo frame":["フォトフレーム"],"Photo frame Tilt Right":["フォトフレーム傾き右"],"Photo frame Tilt Left":["フォトフレーム傾き左"],"Wave01":["流体シェイプ1"],"Wave02":["流体シェイプ2"],"Wave03":["流体シェイプ3"],"Wave04":["流体シェイプ4"],"Arrow":["矢印"],"Check":["チェック"],"Check Square":["チェック(四角)"],"Check Circle":["チェック-丸"],"Handpoint":["指"],"Pencil":["鉛筆"],"Smile":["笑顔"],"Frown":["不満顔"],"Numbered Circle":["数字-丸"],"Numbered Square":["数字-四角"],"List Icon Color":["リストアイコンの色"],"Border / Stripes":["枠線 / ストライプ"],"Theoretical Physicist":["理論物理学者"],"Profile":["プロフィール"],"Albert Einstein":["アルバート・アインシュタイン"],"14 March 1879 – 18 April 1955":["1879年3月14日 - 1955年4月18日"],"Lorem ipsum dolor":["闇の中で"],"Lorem ipsum":["ロレム・アプサム"],"Font Awesome icon list":["Font Awesome アイコンリスト"],"If you want to use an icon other than the ones listed above, you can use any of the icons from Font Awesome's icon list Please select a tag and enter it.":["他のアイコンを使いたい場合は Font Awesome のアイコンリストから選んでタグを入力してください。"],"Ex) ":["例) "],"When you click save button, the window will be reloaded and this setting will be applied.":["保存ボタンをクリックすると、ウィンドウが再読み込みされて、変更が適用されます。"],"Save":["保存"],"Select Icon":["アイコンを選択"],"VK Blocks Pro":["VK Blocks Pro"],"https://github.com/vektor-inc/vk-blocks":["https://github.com/vektor-inc/vk-blocks"],"This is a plugin that extends Gutenberg's blocks.":["Gutenbergのブロックを拡張するプラグインです。"],"Vektor,Inc.":["Vektor,Inc."],"https://vektor-inc.co.jp":["https://vektor-inc.co.jp"],"We've released VK Blocks Pro!":["VK Blocks Pro を公開しました!"],"Thank you for using VK Blocks. We've released VK Blocks Pro. It has more custom blocks to build web site more easily. If you are interested in VK Blocks Pro, Please read %1$s this post %2$s for more details.":["いつもVK Blocksをご利用いただきありがとうございます。この度、VK Blocks Proをリリースしました。より簡単にWebサイトを構築するためのカスタムブロックが追加されています。VK Blocks Proに興味がある方は、詳しくは%1$sこの記事%2$sを読んでみてください。"],"https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/":["https://www.vektor-inc.co.jp/service/wordpress-plugins/vk-blocks/"],"See more":["続きを見る"],"Dismiss this notice":["通知を無視"],"Setting saved.":["設定を保存しました。"],"Install Required Plugins":["必須プラグインのインストール"],"Install Plugins":["プラグインのインストール"],"Installing Plugin: %s":["プラグイン %s をインストール中"],"Something went wrong with the plugin API.":["プラグイン API で問題が発生しました。"],"This plugin requires the following plugin: %1$s.":["このプラグインは下記プラグインを必要としています:%1$s。"],"This plugin recommends the following plugin: %1$s. Many additional functions are available for free.":["このプラグインは次のプラグインと一緒に利用するのがオススメです:%1$s。 これらのプラグインは無償で利用可能です。"],"Sorry, but you do not have the correct permissions to install the %1$s plugin.":["%1$sプラグインをインストールするための適切な権限がありません。"],"The following plugin needs to be updated to its latest version to ensure maximum compatibility with this plugin: %1$s.":["このプラグインとの最大の互換性を確保するには、次のプラグインを最新バージョンに更新する必要があります: %1$s。"],"There is an update available for: %1$s.":["次のプラグインの更新が利用可能です:%1$s。"],"Sorry, but you do not have the correct permissions to update the %1$s plugin.":["%1$sプラグインを更新するための適切な権限がありません。"],"The following required plugin is currently inactive: %1$s.":["必須プラグインが現在有効化されていません: %1$s。"],"The following recommended plugin is currently inactive: %1$s.":["推奨プラグインが現在有効化されていません: %1$s。"],"Sorry, but you do not have the correct permissions to activate the %1$s plugin.":["%1$sプラグインを有効化するための適切な権限がありません。"],"Begin installing plugin":["プラグインのインストールを開始"],"Begin updating plugin":["プラグインの更新を開始する"],"Begin activating plugin":["プラグインの有効化を開始"],"Return to Required Plugins Installer":["必須プラグインのインストール画面に戻る"],"Plugin activated successfully.":["プラグインを有効化しました。"],"The following plugin was activated successfully:":["次のプラグインを有効化しました:"],"No action taken. Plugin %1$s was already active.":["操作を実行しませんでした。プラグイン %1$s はすでに有効化されています。"],"Plugin not activated. A higher version of %s is needed for this theme. Please update the plugin.":["プラグインを有効化できませんでした。このテーマはプラグイン %s の現在のバージョンをサポートしていません。プラグインを更新してください。"],"All plugins installed and activated successfully. %1$s":["すべてのプラグインを正常にインストールし、有効化しました。 %1$s"],"Please contact the administrator of this site for help.":["ヘルプが必要な場合はこのサイトの管理者にお問い合わせください。"],"Sorry, there is no post":["申し訳ありませんが投稿がありません。"],"Vektor WordPress Information":["Vektor WordPress Information"],"FAQ Setting":["FAQ ブロックの設定"],"Blocks setting":["Blocks 設定"],"Blocks Setting":["Blocks 設定"],"License Key":["ライセンスキー"],"Balloon Block Setting":["吹き出しブロック設定"],"Load Separete Setting":["分割読み込み設定"],"Setting":["設定"],"Ancestor Page Title":["先祖ページのタイトル"],"Dummy Text":["ダミーテキスト"],"Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.":["サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されません。 先祖階層からのページリストの代わりにダミーテキストのリストを表示しています。"],"This message only display on the edit screen.":["このメッセージは編集画面でのみ表示されます。"],"Edit this area":["このエリアを編集"],"Post":["投稿"],"There are no %ss.":["該当の%sはありません。"],"Blocks":["Blocks"],"Blocks Layout":["ブロックレイアウト"],"Read more":["続きを読む"],"New!!":["New!!"],"More":[""],"Posts navigation":["投稿ナビゲーション"],"Posts":["投稿リスト"],"Page":["ページ"],"Card Noborder":["カード(線なし)"],"Card Intext":["カード(インテキスト)"],"Card Horizontal":["カード(水平)"],"CSS Optimize ( Speed up ) Settings":["CSS最適化(高速化)設定"],"Tree shaking":["Tree shaking"],"Tree shaking activation settings":["Tree shaking 有効化設定"],"Output only the main CSS of the page inline":["主要なCSSのみインラインで出力します"],"Nothing to do":["何もしない"],"Active Tree shaking (Recomend)":["Tree shakingを有効化(推奨)"],"Exclude class of Tree shaking":["CSSの軽量化から除外するCSSのclass名"],"If you choose \"Active Tree shaking\" that delete the useless css.If you using active css class that please fill in class name. Ex) btn-active,slide-active,scrolled":["Tree shaking を有効にしている場合、使用していないCSSは削除されます。もし使用している動的クラスがある場合はクラス名を入力してください。 例)btn-active,slide-active,scrolled"],"Preload CSS":["Preload CSS"],"Preload CSS activation settings":["Preload CSS 有効化設定"],"Preload css except for critical css":["クリティカルなCSSを除いてCSSをプリロードします"],"Active Preload CSS (Recomend)":["Preload CSS を有効化(推奨)"],"Exclude class of Preload CSS":["Preload CSSから除外するハンドル名"],"If you choose \"Active Preload CSS\" that css load timing was changed.If you have any do not want to preload css file that please fill in handle(id) name. Ex) pluginname_a-style,pluginname_b-css":["もし「Preload CSS を有効」に設定した場合、CSSの読み込みタイミングが変更されます。プリロードしたくないファイルがある場合は、ハンドル名(id)を入力してください。 例)pluginname_a-style,pluginname_b-css"],"Disabled Blocks module on VK All in One Expansion Unit. Because VK-Blocks Plugin running.":["VK-Blocksと競合するため、VK All in One Expansion Unitの Block機能を停止しました。"],"License Key has no registered.":["ライセンスキーが登録されていません。"],"The VK Blocks Pro license is invalid.":["VK Blocks Pro のライセンスが無効です。"],"Enter a valid license key for any of the following products on the settings screen.":["以下の製品のライセンスキーを設定画面から入力してください。"],"Enter the license key":["ライセンスキーを入力"],"If this display does not disappear even after entering a valid license key, re-acquire the update.":["有効なライセンスキーを入力してもこの表示が消えない場合は更新の再取得をしてください。"],"Re-acquisition of updates":["更新の再取得"],"label in admin menu\u0004Blocks":["Blocks"],"post list type\u0004Text 1 Column":["テキスト 1 カラム"],"block title\u0004Alert":["アラート"],"block title\u0004Page list from ancestor":["先祖階層からのページリスト"],"block title\u0004Ballon":["吹き出し"],"block title\u0004Border Box":["枠線ボックス"],"block title\u0004Button":["ボタン"],"block title\u0004Classic FAQ":["旧 FAQ"],"block title\u0004FAQ Answer":["FAQ 回答"],"block title\u0004FAQ Question":["FAQ 質問"],"block title\u0004New FAQ":["新 FAQ"],"block title\u0004Flow":["フロー"],"block title\u0004Heading":["見出し"],"block title\u0004Icon Outer":["横並びアイコン"],"block title\u0004Icon":["アイコン"],"block title\u0004Page Content":["固定ページ本文"],"block title\u0004PR Blocks (not recommended)":["PR Blocks (非推奨)"],"block title\u0004PR Content":["PR Content"],"block title\u0004Responsive Spacer":["レスポンシブスペーサー"],"block title\u0004Staff":["スタッフ"],"block title\u0004Accordion Target":["アコーディオン コンテンツ"],"block title\u0004Accordion Trigger":["アコーディオン タイトル"],"block title\u0004Accordion":["アコーディオン"],"block title\u0004Animation":["アニメーション"],"block title\u0004Breadcrumb":["パンくずリスト"],"block title\u0004Button Outer":["横並びボタン"],"block title\u0004Card Item":["カードアイテム"],"block title\u0004Card":["カード"],"block title\u0004Child page list":["子ページリスト"],"block title\u0004Grid Column Item":["グリッドカラムアイテム"],"block title\u0004Grid Column":["グリッドカラム"],"block title\u0004Grid Column Card Item Body":["グリッドカラムカードアイテムボディ"],"block title\u0004Grid Column Card Item Footer":["グリッドカラムカードアイテムフッター"],"block title\u0004Grid Column Card Item header":["グリッドカラムカードアイテムヘッダー"],"block title\u0004Grid Column Card Item":["グリッドカラムカードアイテム"],"block title\u0004Grid Column Card":["グリッドカラムカード"],"block title\u0004Icon Card Item":["アイコンカードアイテム"],"block title\u0004Icon Card":["アイコンカード"],"block title\u0004Outer":["Outer"],"block title\u0004Post list":["投稿リスト"],"block title\u0004Selected Post List Item":["選択投稿リストアイテム"],"block title\u0004Selected Post List":["選択投稿リスト"],"block title\u0004Slider Item":["スライダーアイテム"],"block title\u0004Slider":["スライダー"],"block title\u0004Step Item":["ステップ要素"],"block title\u0004Step":["ステップ"],"block title\u0004Table of Contents":["目次"],"block title\u0004Timeline Item":["タイムライン要素"],"block title\u0004Timeline":["タイムライン"],"block description\u0004A colored box with four statuses, including annotations and alerts.":["注釈や注意など4つのステータスがある色付きのボックスです。"],"block description\u0004Display Page list from ancestor page":["先祖階層からのページリストを表示します"],"block description\u0004These speech balloons are perfect for recreating conversations.":["会話の再現などに最適な吹き出しです。"],"block description\u0004This is a border box where you can place headings to attract attention.":["見出しを配置でき注目されやすい枠線ボックスです。"],"block description\u0004A button link that can display icons before and after.":["前後にアイコンを表示できるボタンリンクです。"],"block description\u0004Displays a combination of questions and answers.":["質問と回答を組み合わせて表示します。"],"block description\u0004Answer area where you can add blocks freely.":["自由にブロックを追加できる回答エリアです。"],"block description\u0004Question area where you can freely add blocks.":["自由にブロックを追加できる質問エリアです。"],"block description\u0004It displays a combination of questions and answers. You can freely add blocks to the question area as well.":["質問と回答を組み合わせて表示します。質問エリアにも自由にブロックを追加できます。"],"block description\u0004Displays a sequential description in time series.":["時系列で順を追った説明を表示します。"],"block description\u0004This is a heading that allows you to set text size, subtext, icon, and margin.":["文字サイズ,サブテキスト,アイコン,余白が設定できる見出しです。"],"block description\u0004Display the Font Awesome icons horizontally.":["Font Awesome のアイコンフォントを横並びに表示します"],"block description\u0004Display icons with Font Awesome.":["Font Awesome のアイコンフォントを表示します"],"block description\u0004Displays the body content of the specified parent page.":["指定した基準ページの本文内容を表示します。"],"block description\u0004This is a PR block where you can place images and icon. But currently, it is possible to create the same layout by combining Column Block and Icon Block, so this block is not recommended. Please check Columns category of Block Patterns.":["画像やアイコンを配置できるPRブロックです。 ただし、現在、列ブロックとアイコンブロックを組み合わせて同じレイアウトを作成できるため、このブロックはお勧めしません。 ブロックパターンの「カラム(Column)」のカテゴリを確認してください。"],"block description\u0004This is PR content where you can place images, headlines, text, and buttons.":["画像,見出し,テキスト,ボタンが配置できるPRコンテンツです。"],"block description\u0004Use responsive spacers to get the margins right.":["レスポンシブに対応したスペーサーで余白を適切に取ります。"],"block description\u0004Used for staff introduction, company introduction, school introduction, menu, etc.":["スタッフ紹介,会社紹介,スクール紹介,メニューなどで利用します。"],"block description\u0004This is the content area where you can add blocks freely.":["コンテンツが長い時にコンテンツを折りたたんで隠して表示します。"],"block description\u0004This is the title area where you can freely add blocks.":["自由にブロックを追加できるタイトルエリアです。"],"block description\u0004Collapses and hides content when the content is long.":["自由にブロックを追加できるコンテンツエリアです。"],"block description\u0004Add animation to elements when scrolling the page.":["ページをスクロールした時に要素に動きを加えます。"],"block description\u0004Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page.":["ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロックはトップページでは表示されません。"],"block description\u0004Display the VK Button block horizontally.":["VK ボタンブロックを横並びに表示します"],"block description\u0004A single item in a card block.":["アイコンカード内の1つのアイテムです。"],"block description\u0004A card where you can place images, headings, text, and links.":["画像,見出し,テキスト,リンクが配置できるカードです。"],"block description\u0004When a parent page is specified, a list of its child pages will be displayed.":["親となる固定ページを指定するとその子ページの一覧を表示します。"],"block description\u0004One item in a grit column block.":["グリッドカラムブロック内の1つのアイテムです。"],"block description\u0004Set the number of columns to be displayed for each screen size.":["画面サイズ毎にカラム数を設定して表示させます。"],"block description\u0004Body of Grid Column Card Block Item":["グリッドカラムカードのボディ"],"block description\u0004Footer button area of Grid Column Card Block Item":["グリッドカラムカードアイテムブロックのフッターボタンエリア"],"block description\u0004Header image area of Grid Column Card Block Item":["グリッドカードカラムアイテムブロックのヘッダー画像エリア"],"block description\u0004It is a block of single column of Grid Column Card.":["グリッドカラムカードブロックのカラムブロック"],"block description\u0004This block can flexible column layout":["柔軟なカラムレイアウトが作成できます"],"block description\u0004This is one item in an icon card.":["アイコンカード内の1つのアイテムです。"],"block description\u0004Display card with icons, headings, text, and links.":["アイコン,見出し,テキスト,リンクを設定してカードを表示します。"],"block description\u0004Set the background image, color, and border to show the layout and divisions.":["背景の画像や色,枠線の設定しレイアウトや区切りを表示します。"],"block description\u0004Displays the list of posts by setting the post type, classification, and number of posts to display.":["投稿タイプ,分類,表示件数が設定して投稿リストを表示します。"],"block description\u0004A single item in the select post list.":["選択投稿リスト内の1つのアイテムです。"],"block description\u0004Displays an arbitrarily specified page with the layout of the posting list.":["任意に指定したページを投稿リストのレイアウトで表示します。"],"block description\u0004This is one item in the slider.":["スライダー内の1つのアイテムです。"],"block description\u0004This slider allows you to place various items.Slider is do not move in edit screen.":["様々なアイテムを配置できるスライダーです。編集画面では動かないので公開画面でプレビューしてください。"],"block description\u0004This element sets the icon, color, and style of the step mark.":["ステップマークのアイコン、色、スタイルを設定する要素です。"],"block description\u0004Set and display step marks, which are useful when explaining the order.":["順番を説明する時に便利でステップマークを設定し表示します。"],"block description\u0004This is a table of contents that is automatically generated according to the headings when added.":["追加すると見出しに合わせて自動で生成される目次です。"],"block description\u0004This element sets the label, color, and style of the timeline.":["タイムラインのラベル、色、スタイルを設定する要素です。"],"block description\u0004Displays a simple schedule and other information that is useful for explaining the order.":["順番を説明する時に便利でシンプルなスケジュールなどを表示します。"]}}}
\ No newline at end of file
diff --git a/inc/vk-blocks/languages/vk-blocks-ja.mo b/inc/vk-blocks/languages/vk-blocks-ja.mo
index ade7aba14c66cd648734481e2b51651907c04b84..b81377185c47952a9cbb54aeb155c46dbf0f22a3 100644
GIT binary patch
delta 14880
zcmZA72Yip$+sE-c5+Wo-j36QsYR6W4Bv$QNiBYTeC^c&PS*4=(UNvh*(NMLDs!i$A
zztvh*|I$`lMYZMme1GTiygbkSdQRTwy3V=Jea^W@qR)TAvA{J)1AX5`1TFA5Hl_2t
zeAqpw=gkWAywu{#dfuJNo)?Dy#liRpTVmfTo>u|)V-Ws^G58QU-OE+gnb*v3#$h(v
z3uCnB`MkO5*z?Dcx?;xt*Rm_C{U{(yS=6UHc5;J2ozKq2%BX+^O
z*atQ4WYjo|F@o!RyQzeeIE5PUGHQl*E&dmEfw1Z>pB)vygxZ-B7>ZRe1J*}fxG8Gf
zwit=MP!sT>7CKLPuJ3K45`l+NCwz^0@CS^-XIK!UYIt58)~}L=O}9f4=-Wy|Ln_+3M_2{}YdI@mN#Y);mCnU1xXR*fsC#_?wIhd7J8<0E
zKS%YyV&1j(C#Z!6)Mo!Ra71mlg#}P2#GBPo?Tt~lq#fqReyDs3YT}Dgw_qJs#2pxd
zKca5MZ{`y-Fu~5=uXUu+R|8z!y*`rjZm*!E7Xo8q3(4b)P={OCYFM_
zz%tZCwpjaa)PjzpCgM9oB?py@s0;pL4G+wKI_`ulm_&O{RKEeJ3l2d|d;+$@*;oi~
zni=c5TNaNoX|u=+QDn6TX+ZK^!`7kq6@~>cPlH6%*?BZ{(Elu?wEmmU(3IVLB!)M
zKgr@0i)UH95Ov{YsEMvcP3!>X;`-hhDq7)9%z%$k7k-Ai$Ds{)@-aW^12O_N;Jc{r
z!+ea!?WprUNA2iki+@2q6MtJA`ik4RJm}LyQjUr~k%?FoUqek~isffmywT!q7)Sdl
z)Tj7o)Z6peOxMt@FcgEyN1^%`MD1*SOu*g^+5gs5Hj~gjd5ZCvqmdgh5j8*))XLhR
zo{_Go6_3LZT#nkQ^{A))W7Mtr40ZlVi@!jPa{+Y=ZZ=~7wWYt4&=zHA?Cwz{>N`*t
zHBdv$h0QP{_P|W|2I|=viRp1FYCk
zTU-UTg2t$wYl~WOUkt^e7EeHaaeC9SIv&Sv7}SjC413`rz5ko3tRc~_IZ4dYf(HcO
z!YOzFw_x3tY(L(|Ay|vA%@RyQO|U5sl5RmK)YIP`HKF0C6;HN!HfASYftmFF@1UZs
z+K<|zGpGT-FmGTO@gJyL641syJb6$97e%#KuzVtFr&^+R>UC7VH&7EAg;{Varq}zw
zkcuX-9Q8#@McuQb>VTI~x8^$P#5?9A)W8{DbrX+3T`&@rk3)U=N?F_#HC{W^L);mC
zx_7-TF&K5?Xw-zJqE@^JbK*AhDC!nnM(tQ!TQ_hK)cNt~e^zh|abwJmCy>8Eyep^$
z%PSb(}EJ5eh*iW=ZF>ijQJ6TF7{B0fZIbwskea13h2
z0k*JA9n}tyqD26Au*T-OQR;x&}@Nv
zc#}}iNKfRJ`MkkYa*=okbt_h4C43)s;j5^7`w$CZ=xgqmNm9aR&SDq5
zhuWE@o!ms*qQ>ulT3A=isP}&`70qZg#^6*eh#OG%`n35K>Y=)f+JQT$6+J|)G<|2c
z@=(-URT$&23~IdAsD8sy6B&nLJ}Q%`XrQ^M6|P2gIA)$fUGPiPgs!13a0hh@en(C0
zkr~v*wP!=^Kosi2g-{DEf$CogeM;1|L<`i6UqfAJJZfU^paxik%D;!2;Cj>qQZ3$r
z(Zst^&(t@l@vosKau4;4{E0d*eOLBh17+&!1`IcIp`P-5sHe6x=D-Bh0Btc6ds;jW
z)o&*1;ai2VxED2nE2wAX4z9w8ZY%=Ry7~C*Qfc+N8}L`u%!9kT3q@cQaU5y~YNFcf
zp>9D7%eO~8tX)wH8im@q@u&&RLQQZPYMia8o!sfOhW*y?IqK>B2DReb7=(YLo&m3i
zn?M%S1oEJEq#&Nd^7s-4_Vm18u^5)YJiR<`EH=X7cmjV$U+v!R^(xiJ&9E+VEw3%=
zp6$Z{_!(+q<@)kh5!S(Y9ERs{EwZcL(0*>h-(q^=E2tf~Vev2K1EVhOLm+nNk!
z7-r_g92klPumHwm2sT5tC!5_-6CQ-xv5^>v<1C(tI&UiK7Ri-O@Va*|K
zBBQVl@qr=iKeyit7|KTn2jC<;jSaE+Fn$x_64VLd1c}%N^)xR+T`(t)v@X~IYvWAR
z4xYo#SZsv*k5<#n%UFqg{7Ck{1(hBnogZN*;^0yIV+4Dm2I?`|{ZcuIOx`OnhF1;e
zV_7_bjqwR;;`Nzb51fsf@I&m5RmQmqy@xr8pZcieqmqM(L}OXZhRsnOx?%(l$6T0V
zuD1Ngn4A1*498oj^ZrDAxH6A-AGRW>^J}5{w?*~$4WtrDWjtyki!l~=VPX6hi{ewW
z$OPA~1!gBd05#AA)P?6_UfhVf;1N{6OQ?nYf<@4q=x_IVMX6{;wXh&2qXrs-+L5`K
zAGcfkIn<8)ftq**9vBUrA2pFOsPhw0=O>}Qq{A=|rl8)Ub(l`?|7I$BFSnv*x)U|S
z6R3&Z#{>+S>`rWKwnVKo3BzzOX2S92bkw*DQ9HW=)8SqW!~<&Q`rct{IDy$|IgNV1
zzn{vlUc84q=-x1bj*2k|8%}dO)(kb^VDl|=6lwzFP|w2KSO`~}$Iz$5T`Jn*@D%r<
zDUD@_`(Q0xiki?RERH`~95LN(bqs1^6;T(Oi}CmYYTPTR@&2~d=dX
zPMl&5Yfv*kjInsa;-66W_BYh637+A;WCbvkxVXiYQ1?CobxS*=&KrUSa2l%r<{9k2
zD!Z-2XXYjAcpr74Y%|?J#Zd#*L`}SnIRyPHNA>@}^2g2F*oA!hS?o6UL|wO)Z??N9
zoiU!oWYoj=A^Kk%^B2_Xlx~i@*LhG+aWrbD3Zf=Z9K*1_*~Z$tp(fVH@)I$H*f-k}
zOED{njTnv}TmB^K#BWg(xR2@=JlCxt5}OehLJc?sHLdPM^1&ith1R
z%!Ef#1D(eRyoB2FpHVv!IL}QW5)~IgO{^NKe=D;GY9S*mo`$+*%TWv3hgtRhe{CIZ
zp=SOFHKBhkA2Z)gs2pk{)lmbrLiKwSHQ+pJPqqA~mcNBs@xQ1E1}$*6DiTBW{+Fks
znbt-P)DpD=eUazS8;W|r(=BxQ3}!g;5%lt630z^G#FvQw#KIW0$i<1MPkC?5iF44W
zhh_s6t>_5q-rhjX^mo+5n0~Q4As+Sq*Fin3Z(vDWj#cm^>b$@u?xD_wT1Yiiz8-44
zWYp6?ehK@p4l_tp!bR5c94ddqI^ILg_%GB}W?kych58akTO4N=Gs~dPtAu*CnxZC>
zjJkFGma_jEa0Usjd_HPN)?s%%WcintxqcNmDuI(0L8^0P3
zA|8lIcn!4xU*-4QpH4}rhcE@TBg@P+sC&E#OXCI0XISYb8isku$Dnqi3TlP*QRB2j
zEvO4>;)78We+StSpSPHbehKYFJscNN0|l&d{}|1Jip!cc&Bmx5N=99%8|ngmEcT(^
znklIBQ&2m!2sMH2m{afnAu1Z+0;*
zj>F^F9_z2;76Trcb2@Kxq9-8u~fhwW4
zya8&!E*8IqfyA>=&(1t+Uy6F|wp;uo>Vp4bC~OcD
z9BRcaQ5}1kLs2uIfVxG~QT?`}7H|Z0E5Apb_tf&4KXh>s)Q(iZo_hbQTElAd1Jr=~
zP#5|FgYhzI1vkx~kVSgGp)R~Sjqf`iK&>$IPItj5j36$G8n+tiA#90ZdjC68(L>l5
zr{X}=%pYM94BF)^iJDLwvlD9I-dG+-qb9fw)8R)Lj(f~g=4H%G{+`tP|JV{iAGr&M
zqgD`Y##_DyY66Wc-v)IHx|>r_6W@rM$S!j~<|ICXx-}Qg$LP}uk-ObLzYC!rzKN)n
zZ@^l34qwKsAG?*-$Nt2lP;bwVcpM}4xC>u0ucH=n2X%`cqpp`@uiJsxz3jgl;z=Z8
zLkz}uQCmA7HRBEDG1LzHfEwsmRKI^v7s|TN{d$hU>cmY^{Zhd8rm3R0sbS
zqfW?rz^ynJYUUNqL{xio)P>qwz6<6i9)Oz26muc!!s}5N+>bi{9O}b$!D8Pft6ayt
zG~B^R4E)5!QKZT^TF=Lzck?1$Yg%!`WS(Es;;
zF)A9kirF0f7e);**y8D^3oJ(U--2xd_(v+1BhJNlcQrP|Qg{~|VBXK1-7p*dH>1Yc
zf0TcW`ly_vQUmX!E?nxE`?6I-UFa^>!hqxMElI!)#FMcVmOSBBDU3
zr=GO;f2MWVY#u>9Tvt#N_zCsN3_j&9lpQrtv>A`V#5M3WtcRM|TGU@so6S$mFU{Mh
z*nfTTo{$)ZF{j<1P7BQMP%A2O#$C7sYT$~fe09`s&Dz)t-^BKK5qn~VvpgfX40Yap
z)Q9d7HpZ&H&)t7=or3xhT`_Z=a}#NSy7x=4I9{}T(0SLtDe8h#u`1rc`WXF%`($@F
zmziH;7urLwVbpnL%=)N@u_I=}?&d&L|52#^lQBQfpSP5X?(H7b%5I^yEcf@$
z<`_#n1vS7%)Pz4o4Rp}jzp?lcY64-`-20ys)h`M)p|TcNM_&;Vt*B(hQK$>0piW4&
z_)}E-EsVkks0oB$cSfUjsyON?uVHar)O(+Vn)o2pUq+)){l;GB{%5B$nS>^?7N6KG;~MvXHV)8TZ~>pBxP@wt{?dBewNmBdTx#ZgiL
zM;!6T)W4uqu$=M_sgJ>aFXWW3Z|AF?kusKe7v`d9qM7NRkz5GnEy|+j=W~6pD?uib
zIwnxI`fL1W74n-Y(G(pc&6zIrZWC9eR3dIj;j!^@**GK2q2wk~PSCF^Wi#s)lp6G1
zPrf+5Exrl;_77I_itq8$&I>0aufoOPNK!n{{qY
zz6SL=l-A_O;(c<(t^FwVF4SkxRv4cVzl-y*8o3_24>d{XNG16jreIg{i~U*mqo>u!
zk-tLwT#AmOrs{f@8WR6QnNAr_-?A7((b0zzOuZI)9YN?j?&@Aaf`is^GLEI(r>!aG
zw?6s?JU@OVUyq_=Gv#OMb#36%roWLNd90tl9j{O>65qty`v1Qq6ZE0*$B(xV^K$Yc
z>N*w>pQ0qY(A!15C*}F^F7?s`jX7r}^-`3g*7z#9AFXdr>h-CIQOZ*uTi(BCLus5&
z(J@X9l%;SDYmlE!eUqIqm6+cnUSHy3IE7M_+#gsR&tWv`I6~=Sb;Tt(=RcJHQub1G
zeCMN5jMCwSj^kz{-n~6xUwaxQ}6u3MLr_`
z3c1;oFQ}KMZ4>pi)W4==qrRNtzyIQ8J2?xsB@V;}{toUJOp>*?#9rjnQ$Dhs&VPRN
zv~x;YVleS7>Z9;4`ahtwq28U`M)lP@+n>r^oQDnQu!s7K$1QT9mZ)m}2d9#cf1%@i
z>eDE%lP}3wmvK1db?S>LI#M0pzvR16e82ExHl;RYn>C)Me#7d|S;7Eq$yc*PDXeGp
zcI2B;bY!95bd18^$rYe{PF#q18}*N=hg1Hhp7MPEv(u>KCdrrZ6My9X;2duCU^4@K
z11Vq8H;r5wN?l4#a!bhRctY9auW@0^DXc_2l2VDj$M8-7`yWdsgrZ}sIhgu1>f0@z
zk8fGMpqauTI)0?or?jB-rRX?EpH`G`N{~zW|Ilf{Ik$=DSneIYGH+4_YDOgMQrGbw
zr8DJM1stD}-;cjx5(X-1#~qwO8A5rJah6~Vr7?XM;M)`(b7(7w)hQ9wchc^AjY=40
zE=9*DB->D05mzBzw11N9MFEjZ=%Hg-f
zdnh_`5O2qt#P3p1!_od07DL^)m*9|fo`esHb7B!nJxv>me=S>SpNXeBpH>qTfs3u;UfrB_jKU@2M(pf=r
z>$K1Ng@&Y+9#%R$Qp6o1c@0{))RI_=nr_LZ{
zQRB8ljWYoAaD8t&m0ToNpa$H6n&C$lpFv&V8_VCZ_%Ui{{>Bgttm%1KFdyo|1ySP`
z$NX3gHG!6>h4xjR>wDv<O#Zik-nwL?x-Yx=&D5*oR*(}lU_R8=7DdgtI;vk&YwwJjNPpBsMw)L}
zel}{H6{uUV(enFHiRE)Q@VqGEG8lu+
zQRlykn!p>V9bALDg&VO5evG=_P0Y;oy`QOQX1}BVo;P$WE{fWTQmA|^X2M#QuWNA=
zi(6RS9(Ca^s0H*vO>6?@!^WreGGX@9m?a3mit><5Sofzd?O4sx@*0HbZ?6+G0UW
zMx8eYwWTX8-iCT64qAK)wR35xoqUA)A_g>O|4UMdq>=?2pcW+h+{Aa%b^~gILwR|=M=*pq6?I+TMXOvhZ=z;+54FWl
zP%8*}*==1IYQ?261S?sbfczlznqp0S6Z_z2SQm@8@Vp~95L2*pOV3Nv`+tT?LlRY5
zaS~3zEts*j=h4^Ofg|u4F2~_~bu_^co+RCZf~cpzC~87gQ7f)zaZ3y(?uJ^(Fw{-`@@MfYr~by$JAH)~NRZZtnc4V;R)w--KBP#3<1TFLjQ^Bo@K&N0
zbPct$H&F}wxdZ!Oipswv%3_I*ZUya7w`2tBLQ_!#%rqCE23m$;xB>OH971h*8iwL`
zsFgoOEigkTcU~UUxKW+h|5z%;t)V08#6;9NFfORat**u7P%1@$Z{taqkcg%;V3p_?m
zEV?VJ#geF7Q^u@iwnRNUzTQ?DY>q+Aa59GDB6BNhMX9KXUPAv?qgMDG7Qn}-3FPeN
z%!j(y1yRpRS=23y!+d)GTTs!860sT%LS6V>RL4UYgBP&~{)u{KUg++=5A{(`{UYpz
zyHGn5+QUsW5;cA_YGEZ%?Qs~a_rDI6!X#eCqBsO~uNRohQ7c`C+JWt;6&*sY^b~64
z7g4X*L)1k7K#fHIe$LahhTdAC*p2w8A7*huP*rRL5ng32i`KU_0s->_<)P
zWAmi7Uq!9(7HWbIP+R{9)&F0MgL<+5O5~%W85c!es3B^FEl>k=N9FsWCO8;1f#DX9
z!GgpSQ4iHh)CD)7CbA3ljC_PT?-XjB^S#)ARjyd#Yt&PI8}-ya#=Mxdx4kZypSY~W
z^-=xWp>9EcjK()m6G%ZlE8B4`rr~NF*N5LXF}$zO4Y;?joB0{kOw%v|@1u4gQ$N=p
zjJgH+Q28j-!&(BhkOb7uHAGFIJ!*ozQT<1tcJejLPxe{EV${>Q61C#3mYh!)AvhB?u_sso17G1M8`i+{I1t%QFMg1l@H?oTNI~tuCX4r=cHp3S)amn1Pzk2t
z9O_}bj!}3Y12J&0YY#OGqb67eGht=Sh}A8wg*vY;>VnNtYiRg4Sd^th#K$@dYdwB|gFS*mxN4
zzaEm+R5XEeSRb>!>Q?kJRw15^jqp>fib2EqTLJ4}MVyY>frD5BpQ0vGWdy&5;aKEu
zdWVp&vsZE?uPnYflKr1TrrAjeMY{VAZDeBcR=1aZ!K!VSzdQxAC=rxdZIeKig|E4=ED`{
zPRpObaPrqN7ygbqFY_DjgB5}KiL0T`Z;9&PAJyN7YM+mqh;I{>Xey~#9PeRC%rVJX
z4b`z1hT=rjKnqY8PQe#&Kk9;)Q2idD7WNEFV6MroJq|UYmROYQdjqIwpxLM`Nx?#R
z#C7m)pmro94~k}<4>fRk)I<_c=eI_kpM-gF8WzA6s1MQ}%zy_`ujj|;fB!$Hq8X;4
zX68+GuTufkiCxX!sFfyRcASj*B+oZjq6Xf8+Och@3!cP`c*fc3oFnALK#zrV(^gjG3_WTkaQ%9;g8)n{S#kQ4^Sp5x4|naHo02{2R5yQ8U^9>Qrh|
ziN$eP8#kjS^Z-lapB5LH<+l1o)WjN~E|h}h@GxrNhp6#_XS?>AsC*}LjOCZk=KiZ;
z7YWV$0!Cw+#ebphZNMCNYw}|taV&;lyv2=B_r5ji;Y&uHHwB|`Ija9b^SHHNo@1}i
z1MBF`br*_84HS<{#LLeAqnx*%n8mCeUZTyCun3j(D+;
ziXOgC(f`_*&rq*Zo(1k+mqI;^8(u|?(z)U8}+@n;xBd=houmzYQI
z{|zeI;@?m^kZqB>U?eIoi<(FRa)Q^E6HIc2T1)V_c
z$UW3f{)s+4d_l|H2^CTAdt=noIReY#I@EXKEb7E;%iU8Pfm%rdD&G_}UU$^Wr&;?#
ztVX;F)$g+9?=5Hl)$tJt&G;E=EAy^!MxefYMJz61mN%=Q&Z~)fxZ0pD&>eN_hM~q=
zh+6q_)Q-H5{V-KOUe!=~rRx}vT6rDRmL;PmIM-ZhZbF^6*G$C-;xADXc!Zijrd96u
zhT^D+biv%%8?|#Id{pvMnTYvuA!FfsxCln^HH_LpTpLk+r68BNg4_?f4>Iw}#*~Zl-y#0QnfyPP~L#VKdY~Jy0u3L`{4Q
zYT|QHJMs?dhtL7kv+*rzoGfeoe{=f0P%27PHS3wJP+Qa;b)h8G1%_HY74_E4LY+Sk
zwL`1We``?vQ&Hz%N44L^qWCu!(feO`o%`#zu9;}gFt?yiIExziH;l#%DQs2wSf
znn)dsTVM|2-sUjVhoR)>Vg%RsQmANv!>AcvK+XJt<-K=Zdnk4zUmP3b6nq^|V;5}p
z9``taUqJ9a@xJx^K8b5L@Mjw4+30y+;{@dS^g3_i{qITTF%|yjwSS*M@fm6YlQ+Aq
zTZWq88q^ARS^SB`7qK+?8yJK^TiiVl!%W2SSO{yIJy1J1aSQujgUT8b8u&Wu!uL^I
z{S5W+crEH1{~_wUL)Lx^%MgcbbI(j1YMh$e*ne$#a}pXb
z5fzWOj*C$b&oXOYgL>`uTKo`o!3^8o0Fyr?)9wKKJ_Ki0GSW^*4hp3nQ7
ziZ1jOX2rXxl{_^6hb-3n3w7bmyZNU&Jce3n-aYPuF_?$A0&1f5Q4eDm%#Mkuhj9c>
z$FUfq_ut#=zD(K8DyRu{Hrx$sl-l6e<{$v-v&K6G(*)D9KE
zoVtE-Rj{fxG(=6Ht>wF;Zov?99%_J{sEHglQ!$MAH0sveHUsv#{!!SSd^yxZI1Bwh
z|39Eon?xE`#qj-Zr7dwV@f6f+_A4I8hy(7zcgzQ<1w2CCqJV?$f(21KP#Tr5igmFK
z>Q*l~$o^|<-yxwHe_)e%d
zhcfz*d)P}HV*j;;Wk~3P6;U&*iOSbUUAP%)g*{OHhFUxp)o%uB>*ra1J?gx@7N0=>
z4x{>qf9w`q*hfV(f5~iy>d*;wp`Ml>h~dPeQ4^VGu0dUR2kL^UsPofMuk#Iy@0btp
z1@ezDKl(xryF?5sQ5y?lN6d?(P_NHS%#F*;&8UeV!YcR$w!#0fE4KN>{bSR1)HC%A
zHSsD(oDGl#`Mma2G|*7g%*UfvG#PcmGAx0cQ2oxMR{D+kD{5yl9(CtOqHbYPi_4(K
zsfZf4uGtCw@BdIL8eqIX!Iutofpw@8_F%gJ{&K;J#D)3(uERE19)HJ1SoCw}Ak0nw
z-KcR=Q{5k-X;_Q+DQY3rj&a+3RO(aFg?`7{7V}RZh4S&Oi+?54EyY
zsHb|XweKQh-F}FPw!@x1u`gAxyxG*wpeZ%=W0A>xP=h
zD9ca72;$k+zR5g_dX~OIP2m0)+<$!_GM{u8%8eQ*!YqSXiEChYtcRM|It;~4<{|UE
zc^6}7e}bd1;3@YT(<1Y0)PjngX8!}JlsfGOu7qlcNBy{b36n4xyWmyqj}_0jf5BXi
zn$XXvFWX~mhH+=zKe0|leR#ey^PY1PX@R=cZ~Lf}rgGI9GMslOG(%l*8ph*IY={vT
z-0RfGTyCDnUbJVu=zjknfQpacCXBx1E_f0<5C>g${d~Qtv?Fl<$6}5z-AbloJ>rw7
zndZ3SPH2Ihh&NyZ{12;QgR9O7*pYZQw#MKz_y6aeC1!D&udAg1&Ph5
zt$K=;u+nvR&y!FWO2wrZ{I#2K3U(p>6ZLGg`Nq9PA7C-!V^{}1
z`@gm|v_U-!1N;sAU$-otX6^IL^{9vPBMidN%(JNTuVEP8!9w^Hb&JDqxP{e2?bsOU
zqq3b!G=7H~AnQ#x!`!HW3ZdF7TigLPfx)Qvek7{jYp4m$w|FI%Al`{N@fvEJA5i^+
zZ}I*s5luxM>Y?7-wx}&iHYZ>n;Fh`iG`4iQ@
z@NM@mtZ}z_|JCs|5*lCpz%tuju~k(5F_%NaFut
zZpu(4>=;PrE)*SqIJ|*&ZVnu6ZEA|A-k36zd^gJ5)TiP`Y=}{mmDGD7&p-bXK?x@a
zrKC|Z)0lo#C2l~R6?>7aYYp!Z>-d@S3-!&YcYMin=e|h1hPGG9t-@eT#nI%yK@OjH
z$5p(YMAs?(iBCv67pBBo`#N&^oF5^A
z$jzhJ`uV_E!vZ=c+5l_)9r#n5wp!HRw^&_EQ14B@Fr4yS{yW-Ak#GB4PW>m6D}&!!
z{zqI*Ij;LZgvPv-+3LwrmRx6I9mCD1xZFxvDpY_HEX8
z47Rd*Ao-82?mve(A_Moo1yLOWeee6>Q9MD%X4G{orM?n}wmjKn(180tFmQ(s8wMEyP&I^@st^PAjs>VJ~^
zgwmY)ILb`&{JQVu#LeUvQ<@UDApV#70_vOabxJep8OZA=fGN-4gwYS6lr6{pwO*=DK>LiF;XFH1%Xkbz=Q^uS|U)U{Be|w
z*7tk8f7wW!u}-hq1@c;lS!%l;U()_1h*4Eqtv9{87EoWhvs^`ME(s*TS@~;IdY9C
zZ&9yD6=Rv>HiRW
z)3$-~2Bj*wGL$Itb1{OP4qe}W{Ex&v%8N9vvfN@bC-Fkd
zttT!l*i
zqvITQ#FjQ-eSem1Cq6^l3gX(-+fe_6dRIJ!w<|Yfe3v#o@$v>2sN);|3;SDcnc-j?&QI!UM)R<%ugkH&y~|-CXR}U&R^=(XpGI
zI2gAQ>$rt|tvo}%0YML2N<
zC6;6{N&y>)s#lcyT~#>Z9RB}axE!aQ>^y31RXyOp-
zH^LeciBD1bxxCNIL}fCij7xa+ZID9PmU4)EvYq_U`s5;RMCnPnZMiR~_oaM5d=Yg_
zqGV-^&&ai>w4mhox3II+mj&<_!VnT!=(Gb*QifAn(%6a8hWg92H4E7NeOyGg@`IDS
zy2&F)CJ%`k(l5Q1JT&U%16IsXs&gTyZY
diff --git a/inc/vk-blocks/languages/vk-blocks-ja.po b/inc/vk-blocks/languages/vk-blocks-ja.po
index f29ec1c4b..7c30c3223 100644
--- a/inc/vk-blocks/languages/vk-blocks-ja.po
+++ b/inc/vk-blocks/languages/vk-blocks-ja.po
@@ -2,8 +2,8 @@ msgid ""
msgstr ""
"Project-Id-Version: VK Blocks Pro\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/vk-blocks-pro\n"
-"POT-Creation-Date: 2022-08-18T09:49:45+00:00\n"
-"PO-Revision-Date: 2022-08-18 18:50+0900\n"
+"POT-Creation-Date: 2022-09-21T19:29:05+00:00\n"
+"PO-Revision-Date: 2022-09-22 04:32+0900\n"
"Last-Translator: \n"
"Language-Team: \n"
"Language: ja\n"
@@ -23,74 +23,74 @@ msgstr ""
"X-Poedit-SearchPathExcluded-0: *.min.js\n"
"X-Poedit-SearchPathExcluded-1: node_modules\n"
-#: src/admin/balloon/index.js:211
+#: src/admin/balloon/index.js:206
msgid "Select"
msgstr "選択"
-#: src/admin/balloon/index.js:237
+#: src/admin/balloon/index.js:232
#: src/blocks/_pro/gridcolcard/edit-common.js:155
msgid "Delete"
msgstr "削除"
-#: src/admin/balloon/index.js:251
+#: src/admin/balloon/index.js:246
msgid "Balloon Image Name"
msgstr "吹き出し画像の名前"
-#: src/admin/balloon/index.js:30
+#: src/admin/balloon/index.js:29
msgid "Balloon Setting"
msgstr "吹き出しブロック設定"
-#: src/admin/balloon/index.js:33
+#: src/admin/balloon/index.js:32
msgid "Balloon Border Width Setting"
msgstr "吹き出しの線幅の設定"
-#: src/admin/balloon/index.js:51
+#: src/admin/balloon/index.js:50
#, fuzzy
#| msgid "px"
msgid "1px"
msgstr "px"
-#: src/admin/balloon/index.js:55
+#: src/admin/balloon/index.js:54
#, fuzzy
#| msgid "px"
msgid "2px"
msgstr "px"
-#: src/admin/balloon/index.js:59
+#: src/admin/balloon/index.js:58
#, fuzzy
#| msgid "px"
msgid "3px"
msgstr "px"
-#: src/admin/balloon/index.js:63
+#: src/admin/balloon/index.js:62
#, fuzzy
#| msgid "px"
msgid "4px"
msgstr "px"
-#: src/admin/balloon/index.js:74
+#: src/admin/balloon/index.js:69
msgid "Balloon Image Setting"
msgstr "吹き出し画像設定"
-#: src/admin/balloon/index.js:77
+#: src/admin/balloon/index.js:72
msgid "You can register frequently used icon images for speech bubble blocks."
msgstr "よく使う吹き出し用のアイコン画像を登録する事ができます。"
-#: src/admin/balloon/index.js:81
+#: src/admin/balloon/index.js:76
msgid "If you change image or name that please click Save Changes button."
msgstr "画像を変更したら「変更を保存」ボタンをクリックしてください。"
-#: src/admin/balloon/index.js:93
+#: src/admin/balloon/index.js:88
msgid "image"
msgstr "画像"
-#: src/admin/license.js:23
+#: src/admin/license.js:21
msgid "Enter a valid Lightning G3 Pro Pack or Lightning Pro license key."
msgstr ""
"Lightning G3 Pro Pack あるいは Lightning Pro の有効なライセンスキーを入力して"
"ください。"
-#: src/admin/license.js:29
+#: src/admin/license.js:27
msgid ""
"Once you enter the license key you will be able to do a one click update "
"from the administration screen."
@@ -98,121 +98,120 @@ msgstr ""
"有効なライセンスキーを入力すると、管理画面からワンクリックでアップデートが可"
"能になります。"
-#: src/admin/license.js:36
+#: src/admin/license.js:34
msgid "License key"
msgstr "ライセンスキー"
-#: src/admin/load-separate.js:35
+#: src/admin/load-separate.js:33
msgid "Load Separate Setting"
msgstr "分割読み込み設定"
-#: src/admin/load-separate.js:38
+#: src/admin/load-separate.js:36
msgid "Note that the order in which CSS/JS are loaded will change."
msgstr "CSS / JSの読み込み順序が変わることに注意してください。"
-#: src/admin/load-separate.js:45
+#: src/admin/load-separate.js:43
msgid "Load Separate Option on"
msgstr "分割読み込みを有効にする"
-#: src/admin/margin.js:19 src/blocks/button/edit.js:321
-#: src/blocks/spacer/edit.js:85
-#: src/extensions/common/inline-font-size/index.js:84
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:25
-#: inc/vk-blocks/vk-blocks-functions.php:25
-msgid "Small"
-msgstr "小"
+#: src/admin/margin.js:103 src/blocks/border-box/edit.js:192
+#: src/blocks/icon-outer/edit.js:149 src/blocks/icon/edit.js:139
+msgid "Margin"
+msgstr "余白"
-#: src/admin/margin.js:23 src/blocks/spacer/edit.js:95
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:29
-#: inc/vk-blocks/vk-blocks-functions.php:29
-msgid "Medium"
-msgstr "中"
+#: src/admin/margin.js:18 src/blocks/spacer/edit.js:83
+msgid "XS"
+msgstr ""
-#: src/admin/margin.js:27 src/blocks/button/edit.js:305
-#: src/blocks/spacer/edit.js:105
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:33
-#: inc/vk-blocks/vk-blocks-functions.php:33
-msgid "Large"
-msgstr "大"
+#: src/admin/margin.js:22 src/blocks/spacer/edit.js:93
+msgid "S"
+msgstr ""
+
+#: src/admin/margin.js:26 src/blocks/spacer/edit.js:103
+msgid "M"
+msgstr ""
+
+#: src/admin/margin.js:30 src/blocks/spacer/edit.js:113
+msgid "L"
+msgstr ""
+
+#: src/admin/margin.js:34 src/blocks/spacer/edit.js:121
+msgid "XL"
+msgstr ""
-#: src/admin/margin.js:34 src/blocks/_pro/outer/edit.js:638
+#: src/admin/margin.js:41 src/blocks/_pro/outer/edit.js:638
#: src/blocks/_pro/slider/edit.js:224 src/blocks/button/edit.js:521
#: src/components/advanced-viewport-control/index.js:25
msgid "PC"
msgstr "PC"
-#: src/admin/margin.js:38 src/blocks/_pro/outer/edit.js:623
+#: src/admin/margin.js:45 src/blocks/_pro/outer/edit.js:623
#: src/blocks/_pro/slider/edit.js:235 src/blocks/button/edit.js:456
#: src/components/advanced-viewport-control/index.js:31
msgid "Tablet"
msgstr "タブレット"
-#: src/admin/margin.js:42 src/blocks/_pro/outer/edit.js:608
+#: src/admin/margin.js:49 src/blocks/_pro/outer/edit.js:608
#: src/blocks/_pro/slider/edit.js:246 src/blocks/button/edit.js:391
#: src/components/advanced-viewport-control/index.js:39
msgid "Mobile"
msgstr "モバイル"
-#: src/admin/margin.js:55 dist/vk-blocks-pro/inc/vk-blocks/admin/admin.php:74
+#: src/admin/margin.js:61 dist/vk-blocks-pro/inc/vk-blocks/admin/admin.php:74
#: inc/vk-blocks/admin/admin.php:74
msgid "Common Margin Setting"
msgstr "共通余白設定"
-#: src/admin/margin.js:58
+#: src/admin/margin.js:64
msgid ""
"Please specify the size of the common margin used for responsive spacers, "
"etc."
msgstr ""
"レスポンシブスペーサーなどで使用する共通余白のサイズを指定してください。"
-#: src/admin/margin.js:64 src/blocks/_pro/grid-column-item/edit.js:169
+#: src/admin/margin.js:70 src/blocks/_pro/grid-column-item/edit.js:169
msgid "Unit"
msgstr "単位"
-#: src/admin/margin.js:77 src/blocks/_pro/grid-column-item/edit.js:177
+#: src/admin/margin.js:83 src/blocks/_pro/grid-column-item/edit.js:177
#: src/blocks/_pro/outer/edit.js:659 src/blocks/icon-outer/edit.js:181
#: src/blocks/icon/edit.js:171 src/components/advanced-unit-control/index.js:18
msgid "px"
msgstr "px"
-#: src/admin/margin.js:81 src/blocks/_pro/grid-column-item/edit.js:181
+#: src/admin/margin.js:87 src/blocks/_pro/grid-column-item/edit.js:181
#: src/blocks/_pro/outer/edit.js:663 src/blocks/icon-outer/edit.js:185
#: src/blocks/icon/edit.js:175 src/components/advanced-unit-control/index.js:22
msgid "em"
msgstr "em"
-#: src/admin/margin.js:85 src/blocks/_pro/grid-column-item/edit.js:185
+#: src/admin/margin.js:91 src/blocks/_pro/grid-column-item/edit.js:185
#: src/blocks/_pro/outer/edit.js:667 src/blocks/icon-outer/edit.js:189
#: src/blocks/icon/edit.js:179 src/components/advanced-unit-control/index.js:26
msgid "rem"
msgstr "rem"
-#: src/admin/margin.js:97 src/blocks/border-box/edit.js:192
-#: src/blocks/icon-outer/edit.js:149 src/blocks/icon/edit.js:139
-msgid "Margin"
-msgstr "余白"
-
-#: src/admin/new-faq.js:21
+#: src/admin/new-faq.js:19
msgid "FAQ Block Setting"
msgstr "FAQ Blocks 設定"
-#: src/admin/new-faq.js:34
+#: src/admin/new-faq.js:32
msgid "Disable accordion"
msgstr "アコーディオン無効"
-#: src/admin/new-faq.js:38
+#: src/admin/new-faq.js:36
msgid "Enable accordion and default open"
msgstr "アコーディオン有効 / 初期状態で開く"
-#: src/admin/new-faq.js:45
+#: src/admin/new-faq.js:43
msgid "Enable accordion and default close"
msgstr "アコーディオン有効 / 初期状態で閉じる"
-#: src/admin/save-button.js:52
+#: src/admin/save-button.js:53
msgid "Save setting"
msgstr "変更を保存"
-#: src/admin/save-button.js:56
+#: src/admin/save-button.js:57
msgid "Save Success"
msgstr "保存しました"
@@ -1471,6 +1470,15 @@ msgstr "サブテキスト"
msgid "Button Size:"
msgstr "ボタンサイズ:"
+#: src/blocks/button/edit.js:305
+msgid "Large"
+msgstr "大"
+
+#: src/blocks/button/edit.js:321
+#: src/extensions/common/inline-font-size/index.js:84
+msgid "Small"
+msgstr "小"
+
#: src/blocks/button/edit.js:328
msgid "Button Position:"
msgstr "ボタンの位置:"
@@ -1866,11 +1874,11 @@ msgstr "margin-bottom"
msgid "Space Type"
msgstr "余白タイプ"
-#: src/blocks/spacer/edit.js:115
+#: src/blocks/spacer/edit.js:131
msgid "Custom"
msgstr "カスタム"
-#: src/blocks/spacer/edit.js:119
+#: src/blocks/spacer/edit.js:135
msgid "You can change each common margin size from Setting > VK Blocks"
msgstr ""
"* 共通の余白サイズは管理画面の 設定 > VK Blocks から変更する事ができます。"
@@ -1953,8 +1961,8 @@ msgid "Card (Image Round)"
msgstr "カード(画像丸抜き)"
#: src/components/column-layout-control/index.js:26
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:760
-#: inc/vk-components/package/class-vk-component-posts.php:760
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:768
+#: inc/vk-components/package/class-vk-component-posts.php:768
msgid "Card"
msgstr "カード"
@@ -1971,8 +1979,8 @@ msgid "Card (Horizontal)"
msgstr "カード(水平)"
#: src/components/column-layout-control/index.js:42
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:776
-#: inc/vk-components/package/class-vk-component-posts.php:776
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:784
+#: inc/vk-components/package/class-vk-component-posts.php:784
msgid "Media"
msgstr "メディア"
@@ -2138,40 +2146,56 @@ msgid "Extra big"
msgstr "特大"
#: src/extensions/common/margin-extension/index.js:26
-msgid "Top lg"
-msgstr "上 lg"
+msgid "Top XL"
+msgstr "上 XL"
-#: src/extensions/common/margin-extension/index.js:280
+#: src/extensions/common/margin-extension/index.js:301
msgid "Margin the block"
msgstr "ブロックの余白"
#: src/extensions/common/margin-extension/index.js:31
-msgid "Top md"
-msgstr "上 md"
+msgid "Top L"
+msgstr "上 L"
#: src/extensions/common/margin-extension/index.js:36
-msgid "Top sm"
-msgstr "上 sm"
+msgid "Top M"
+msgstr "上 M"
#: src/extensions/common/margin-extension/index.js:41
+msgid "Top S"
+msgstr "上 S"
+
+#: src/extensions/common/margin-extension/index.js:46
+msgid "Top XS"
+msgstr "上 XS"
+
+#: src/extensions/common/margin-extension/index.js:51
msgid "Top 0"
msgstr "上 0"
-#: src/extensions/common/margin-extension/index.js:49
+#: src/extensions/common/margin-extension/index.js:59
msgid "Bottom 0"
msgstr "下 0"
-#: src/extensions/common/margin-extension/index.js:54
-msgid "Bottom sm"
-msgstr "下 sm"
+#: src/extensions/common/margin-extension/index.js:64
+msgid "Bottom XS"
+msgstr "下 XS"
-#: src/extensions/common/margin-extension/index.js:59
-msgid "Bottom md"
-msgstr "下 md"
+#: src/extensions/common/margin-extension/index.js:69
+msgid "Bottom S"
+msgstr "下 S"
-#: src/extensions/common/margin-extension/index.js:64
-msgid "Bottom lg"
-msgstr "下 lg"
+#: src/extensions/common/margin-extension/index.js:74
+msgid "Bottom M"
+msgstr "下 M"
+
+#: src/extensions/common/margin-extension/index.js:79
+msgid "Bottom L"
+msgstr "下 L"
+
+#: src/extensions/common/margin-extension/index.js:84
+msgid "Bottom XL"
+msgstr "下 XL"
#: src/extensions/common/nowrap/index.js:21
msgid "No wrap"
@@ -2594,13 +2618,13 @@ msgstr "すべてのプラグインを正常にインストールし、有効化
msgid "Please contact the administrator of this site for help."
msgstr "ヘルプが必要な場合はこのサイトの管理者にお問い合わせください。"
-#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:316
-#: inc/vk-admin/package/class-vk-admin.php:333
+#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:332
+#: inc/vk-admin/package/class-vk-admin.php:332
msgid "Sorry, there is no post"
msgstr "申し訳ありませんが投稿がありません。"
-#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:370
-#: inc/vk-admin/package/class-vk-admin.php:387
+#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:386
+#: inc/vk-admin/package/class-vk-admin.php:386
msgid "Vektor WordPress Information"
msgstr "Vektor WordPress Information"
@@ -2645,6 +2669,41 @@ msgstr "分割読み込み設定"
msgid "Setting"
msgstr "設定"
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
+#: src/blocks/ancestor-page-list/index.php:44
+#: test/phpunit/pro/test-ancestor-page-list.php:89
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "Ancestor Page Title"
+msgstr "先祖ページのタイトル"
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "Dummy Text"
+msgstr "ダミーテキスト"
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid ""
+"Because of the site editor have not child page that, the page list from "
+"ancestor is not displayed. Now displaying the dummy text list instead of the "
+"page list from ancestor."
+msgstr ""
+"サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されませ"
+"ん。 先祖階層からのページリストの代わりにダミーテキストのリストを表示していま"
+"す。"
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "This message only display on the edit screen."
+msgstr "このメッセージは編集画面でのみ表示されます。"
+
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/page-content/index.php:124
#: inc/vk-blocks/build/blocks/page-content/index.php:124
#: src/blocks/page-content/index.php:124
@@ -2663,13 +2722,13 @@ msgstr "投稿"
msgid "There are no %ss."
msgstr "該当の%sはありません。"
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:224
-#: inc/vk-blocks/vk-blocks-functions.php:220
+#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:197
+#: inc/vk-blocks/vk-blocks-functions.php:157
msgid "Blocks"
msgstr "Blocks"
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:237
-#: inc/vk-blocks/vk-blocks-functions.php:233
+#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:210
+#: inc/vk-blocks/vk-blocks-functions.php:170
msgid "Blocks Layout"
msgstr "ブロックレイアウト"
@@ -2683,43 +2742,43 @@ msgstr "続きを読む"
msgid "New!!"
msgstr "New!!"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:267
-#: inc/vk-components/package/class-vk-component-posts.php:267
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:268
+#: inc/vk-components/package/class-vk-component-posts.php:268
msgid "More"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:303
-#: inc/vk-components/package/class-vk-component-posts.php:303
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:304
+#: inc/vk-components/package/class-vk-component-posts.php:304
msgid "Posts navigation"
msgstr "投稿ナビゲーション"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:304
-#: inc/vk-components/package/class-vk-component-posts.php:304
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:305
+#: inc/vk-components/package/class-vk-component-posts.php:305
msgid "Posts"
msgstr "投稿リスト"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:306
-#: inc/vk-components/package/class-vk-component-posts.php:306
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:307
+#: inc/vk-components/package/class-vk-component-posts.php:307
msgid "Page"
msgstr "ページ"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:764
-#: inc/vk-components/package/class-vk-component-posts.php:764
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:772
+#: inc/vk-components/package/class-vk-component-posts.php:772
msgid "Card Noborder"
msgstr "カード(線なし)"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:768
-#: inc/vk-components/package/class-vk-component-posts.php:768
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:776
+#: inc/vk-components/package/class-vk-component-posts.php:776
msgid "Card Intext"
msgstr "カード(インテキスト)"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:772
-#: inc/vk-components/package/class-vk-component-posts.php:772
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:780
+#: inc/vk-components/package/class-vk-component-posts.php:780
msgid "Card Horizontal"
msgstr "カード(水平)"
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:780
-#: inc/vk-components/package/class-vk-component-posts.php:780
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:788
+#: inc/vk-components/package/class-vk-component-posts.php:788
msgctxt "post list type"
msgid "Text 1 Column"
msgstr "テキスト 1 カラム"
@@ -2846,40 +2905,6 @@ msgstr ""
msgid "Re-acquisition of updates"
msgstr "更新の再取得"
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
-#: src/blocks/ancestor-page-list/index.php:44
-#: test/phpunit/pro/test-ancestor-page-list.php:89
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-msgid "Ancestor Page Title"
-msgstr "先祖ページのタイトル"
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:84
-#: src/blocks/ancestor-page-list/index.php:83
-#: src/blocks/ancestor-page-list/index.php:84
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-#: test/phpunit/pro/test-ancestor-page-list.php:174
-msgid "Dummy Text"
-msgstr "ダミーテキスト"
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:85
-#: src/blocks/ancestor-page-list/index.php:85
-#: test/phpunit/pro/test-ancestor-page-list.php:175
-msgid ""
-"Because of the site editor have not child page that, the page list from "
-"ancestor is not displayed. Now displaying the dummy text list instead of the "
-"page list from ancestor."
-msgstr ""
-"サイトエディタには子ページがないため、先祖階層からのページ一覧は表示されませ"
-"ん。 先祖階層からのページリストの代わりにダミーテキストのリストを表示していま"
-"す。"
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:85
-#: src/blocks/ancestor-page-list/index.php:85
-#: test/phpunit/pro/test-ancestor-page-list.php:175
-msgid "This message only display on the edit screen."
-msgstr "このメッセージは編集画面でのみ表示されます。"
-
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/alert/block.json
#: inc/vk-blocks/build/blocks/alert/block.json src/blocks/alert/block.json
msgctxt "block title"
@@ -3188,9 +3213,15 @@ msgid "Breadcrumb"
msgstr "パンくずリスト"
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
+#: inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
+#: src/blocks/_pro/breadcrumb/block.json
msgctxt "block description"
-msgid "Displays breadcrumbs of a page's hierarchy, or a post's categories"
-msgstr "ページや投稿カテゴリーなどページ階層のパンくずリストを表示します"
+msgid ""
+"Displays breadcrumbs of a page's hierarchy, or a post's categories.This "
+"block is not displayed on the front page."
+msgstr ""
+"ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロッ"
+"クはトップページでは表示されません。"
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/_pro/button-outer/block.json
#: inc/vk-blocks/build/blocks/_pro/button-outer/block.json
@@ -3541,15 +3572,30 @@ msgid ""
"explaining the order."
msgstr "順番を説明する時に便利でシンプルなスケジュールなどを表示します。"
-#: inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
-#: src/blocks/_pro/breadcrumb/block.json
-msgctxt "block description"
-msgid ""
-"Displays breadcrumbs of a page's hierarchy, or a post's categories.This "
-"block is not displayed on the front page."
-msgstr ""
-"ページや投稿カテゴリーなどページ階層のパンくずリストを表示します。このブロッ"
-"クはトップページでは表示されません。"
+#~ msgid "Medium"
+#~ msgstr "中"
+
+#~ msgid "Top lg"
+#~ msgstr "上 lg"
+
+#~ msgid "Top md"
+#~ msgstr "上 md"
+
+#~ msgid "Top sm"
+#~ msgstr "上 sm"
+
+#~ msgid "Bottom sm"
+#~ msgstr "下 sm"
+
+#~ msgid "Bottom md"
+#~ msgstr "下 md"
+
+#~ msgid "Bottom lg"
+#~ msgstr "下 lg"
+
+#~ msgctxt "block description"
+#~ msgid "Displays breadcrumbs of a page's hierarchy, or a post's categories"
+#~ msgstr "ページや投稿カテゴリーなどページ階層のパンくずリストを表示します"
#~ msgid "The page you are currently viewing has no child pages."
#~ msgstr "現在表示中のページには子ページはありません。"
diff --git a/inc/vk-blocks/languages/vk-blocks-js.pot b/inc/vk-blocks/languages/vk-blocks-js.pot
index d0f3ed119..ee9436c1f 100644
--- a/inc/vk-blocks/languages/vk-blocks-js.pot
+++ b/inc/vk-blocks/languages/vk-blocks-js.pot
@@ -3,104 +3,118 @@ msgstr ""
"Content-Type: text/plain; charset=utf-8\n"
"X-Generator: babel-plugin-makepot\n"
-#: src/admin/balloon/index.js:211
+#: src/admin/balloon/index.js:206
msgid "Select"
msgstr ""
-#: src/admin/balloon/index.js:237
+#: src/admin/balloon/index.js:232
#: src/blocks/_pro/gridcolcard/edit-common.js:155
msgid "Delete"
msgstr ""
-#: src/admin/balloon/index.js:251
+#: src/admin/balloon/index.js:246
msgid "Balloon Image Name"
msgstr ""
-#: src/admin/balloon/index.js:30
+#: src/admin/balloon/index.js:29
msgid "Balloon Setting"
msgstr ""
-#: src/admin/balloon/index.js:33
+#: src/admin/balloon/index.js:32
msgid "Balloon Border Width Setting"
msgstr ""
-#: src/admin/balloon/index.js:51
+#: src/admin/balloon/index.js:50
msgid "1px"
msgstr ""
-#: src/admin/balloon/index.js:55
+#: src/admin/balloon/index.js:54
msgid "2px"
msgstr ""
-#: src/admin/balloon/index.js:59
+#: src/admin/balloon/index.js:58
msgid "3px"
msgstr ""
-#: src/admin/balloon/index.js:63
+#: src/admin/balloon/index.js:62
msgid "4px"
msgstr ""
-#: src/admin/balloon/index.js:74
+#: src/admin/balloon/index.js:69
msgid "Balloon Image Setting"
msgstr ""
-#: src/admin/balloon/index.js:77
+#: src/admin/balloon/index.js:72
msgid "You can register frequently used icon images for speech bubble blocks."
msgstr ""
-#: src/admin/balloon/index.js:81
+#: src/admin/balloon/index.js:76
msgid "If you change image or name that please click Save Changes button."
msgstr ""
-#: src/admin/balloon/index.js:93
+#: src/admin/balloon/index.js:88
msgid "image"
msgstr ""
-#: src/admin/license.js:23
+#: src/admin/license.js:21
msgid "Enter a valid Lightning G3 Pro Pack or Lightning Pro license key."
msgstr ""
-#: src/admin/license.js:29
+#: src/admin/license.js:27
msgid ""
"Once you enter the license key you will be able to do a one click update "
"from the administration screen."
msgstr ""
-#: src/admin/license.js:36
+#: src/admin/license.js:34
msgid "License key"
msgstr ""
-#: src/admin/load-separate.js:35
+#: src/admin/load-separate.js:33
msgid "Load Separate Setting"
msgstr ""
-#: src/admin/load-separate.js:38
+#: src/admin/load-separate.js:36
msgid "Note that the order in which CSS/JS are loaded will change."
msgstr ""
-#: src/admin/load-separate.js:45
+#: src/admin/load-separate.js:43
msgid "Load Separate Option on"
msgstr ""
-#: src/admin/margin.js:19
-#: src/blocks/button/edit.js:321
-#: src/blocks/spacer/edit.js:85
-#: src/extensions/common/inline-font-size/index.js:84
-msgid "Small"
+#: src/admin/margin.js:103
+#: src/blocks/border-box/edit.js:192
+#: src/blocks/icon-outer/edit.js:149
+#: src/blocks/icon/edit.js:139
+msgid "Margin"
msgstr ""
-#: src/admin/margin.js:23
-#: src/blocks/spacer/edit.js:95
-msgid "Medium"
+#: src/admin/margin.js:18
+#: src/blocks/spacer/edit.js:83
+msgid "XS"
msgstr ""
-#: src/admin/margin.js:27
-#: src/blocks/button/edit.js:305
-#: src/blocks/spacer/edit.js:105
-msgid "Large"
+#: src/admin/margin.js:22
+#: src/blocks/spacer/edit.js:93
+msgid "S"
+msgstr ""
+
+#: src/admin/margin.js:26
+#: src/blocks/spacer/edit.js:103
+msgid "M"
+msgstr ""
+
+#: src/admin/margin.js:30
+#: src/blocks/spacer/edit.js:113
+msgid "L"
msgstr ""
#: src/admin/margin.js:34
+#: src/blocks/spacer/edit.js:121
+msgid "XL"
+msgstr ""
+
+#: src/admin/margin.js:41
#: src/blocks/_pro/outer/edit.js:638
#: src/blocks/_pro/slider/edit.js:224
#: src/blocks/button/edit.js:521
@@ -108,7 +122,7 @@ msgstr ""
msgid "PC"
msgstr ""
-#: src/admin/margin.js:38
+#: src/admin/margin.js:45
#: src/blocks/_pro/outer/edit.js:623
#: src/blocks/_pro/slider/edit.js:235
#: src/blocks/button/edit.js:456
@@ -116,7 +130,7 @@ msgstr ""
msgid "Tablet"
msgstr ""
-#: src/admin/margin.js:42
+#: src/admin/margin.js:49
#: src/blocks/_pro/outer/edit.js:608
#: src/blocks/_pro/slider/edit.js:246
#: src/blocks/button/edit.js:391
@@ -124,22 +138,22 @@ msgstr ""
msgid "Mobile"
msgstr ""
-#: src/admin/margin.js:55
+#: src/admin/margin.js:61
msgid "Common Margin Setting"
msgstr ""
-#: src/admin/margin.js:58
+#: src/admin/margin.js:64
msgid ""
"Please specify the size of the common margin used for responsive spacers, "
"etc."
msgstr ""
-#: src/admin/margin.js:64
+#: src/admin/margin.js:70
#: src/blocks/_pro/grid-column-item/edit.js:169
msgid "Unit"
msgstr ""
-#: src/admin/margin.js:77
+#: src/admin/margin.js:83
#: src/blocks/_pro/grid-column-item/edit.js:177
#: src/blocks/_pro/outer/edit.js:659
#: src/blocks/icon-outer/edit.js:181
@@ -148,7 +162,7 @@ msgstr ""
msgid "px"
msgstr ""
-#: src/admin/margin.js:81
+#: src/admin/margin.js:87
#: src/blocks/_pro/grid-column-item/edit.js:181
#: src/blocks/_pro/outer/edit.js:663
#: src/blocks/icon-outer/edit.js:185
@@ -157,7 +171,7 @@ msgstr ""
msgid "em"
msgstr ""
-#: src/admin/margin.js:85
+#: src/admin/margin.js:91
#: src/blocks/_pro/grid-column-item/edit.js:185
#: src/blocks/_pro/outer/edit.js:667
#: src/blocks/icon-outer/edit.js:189
@@ -166,34 +180,27 @@ msgstr ""
msgid "rem"
msgstr ""
-#: src/admin/margin.js:97
-#: src/blocks/border-box/edit.js:192
-#: src/blocks/icon-outer/edit.js:149
-#: src/blocks/icon/edit.js:139
-msgid "Margin"
-msgstr ""
-
-#: src/admin/new-faq.js:21
+#: src/admin/new-faq.js:19
msgid "FAQ Block Setting"
msgstr ""
-#: src/admin/new-faq.js:34
+#: src/admin/new-faq.js:32
msgid "Disable accordion"
msgstr ""
-#: src/admin/new-faq.js:38
+#: src/admin/new-faq.js:36
msgid "Enable accordion and default open"
msgstr ""
-#: src/admin/new-faq.js:45
+#: src/admin/new-faq.js:43
msgid "Enable accordion and default close"
msgstr ""
-#: src/admin/save-button.js:52
+#: src/admin/save-button.js:53
msgid "Save setting"
msgstr ""
-#: src/admin/save-button.js:56
+#: src/admin/save-button.js:57
msgid "Save Success"
msgstr ""
@@ -1498,6 +1505,15 @@ msgstr ""
msgid "Button Size:"
msgstr ""
+#: src/blocks/button/edit.js:305
+msgid "Large"
+msgstr ""
+
+#: src/blocks/button/edit.js:321
+#: src/extensions/common/inline-font-size/index.js:84
+msgid "Small"
+msgstr ""
+
#: src/blocks/button/edit.js:328
msgid "Button Position:"
msgstr ""
@@ -1912,11 +1928,11 @@ msgstr ""
msgid "Space Type"
msgstr ""
-#: src/blocks/spacer/edit.js:115
+#: src/blocks/spacer/edit.js:131
msgid "Custom"
msgstr ""
-#: src/blocks/spacer/edit.js:119
+#: src/blocks/spacer/edit.js:135
msgid "You can change each common margin size from Setting > VK Blocks"
msgstr ""
@@ -2175,39 +2191,55 @@ msgid "Extra big"
msgstr ""
#: src/extensions/common/margin-extension/index.js:26
-msgid "Top lg"
+msgid "Top XL"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:280
+#: src/extensions/common/margin-extension/index.js:301
msgid "Margin the block"
msgstr ""
#: src/extensions/common/margin-extension/index.js:31
-msgid "Top md"
+msgid "Top L"
msgstr ""
#: src/extensions/common/margin-extension/index.js:36
-msgid "Top sm"
+msgid "Top M"
msgstr ""
#: src/extensions/common/margin-extension/index.js:41
-msgid "Top 0"
+msgid "Top S"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:49
-msgid "Bottom 0"
+#: src/extensions/common/margin-extension/index.js:46
+msgid "Top XS"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:54
-msgid "Bottom sm"
+#: src/extensions/common/margin-extension/index.js:51
+msgid "Top 0"
msgstr ""
#: src/extensions/common/margin-extension/index.js:59
-msgid "Bottom md"
+msgid "Bottom 0"
msgstr ""
#: src/extensions/common/margin-extension/index.js:64
-msgid "Bottom lg"
+msgid "Bottom XS"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:69
+msgid "Bottom S"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:74
+msgid "Bottom M"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:79
+msgid "Bottom L"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:84
+msgid "Bottom XL"
msgstr ""
#: src/extensions/common/nowrap/index.js:21
diff --git a/inc/vk-blocks/languages/vk-blocks.pot b/inc/vk-blocks/languages/vk-blocks.pot
index 4ec575a68..25713a05b 100644
--- a/inc/vk-blocks/languages/vk-blocks.pot
+++ b/inc/vk-blocks/languages/vk-blocks.pot
@@ -2,120 +2,128 @@
# This file is distributed under the same license as the VK Blocks Pro plugin.
msgid ""
msgstr ""
-"Project-Id-Version: VK Blocks Pro 1.41.1.0\n"
+"Project-Id-Version: VK Blocks Pro 1.42.1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/vk-blocks-pro\n"
"Last-Translator: FULL NAME \n"
"Language-Team: LANGUAGE \n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
-"POT-Creation-Date: 2022-08-18T12:07:44+00:00\n"
+"POT-Creation-Date: 2022-09-21T19:34:33+00:00\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"X-Generator: WP-CLI 2.6.0\n"
"X-Domain: vk-blocks\n"
-#: src/admin/balloon/index.js:211
+#: src/admin/balloon/index.js:206
msgid "Select"
msgstr ""
-#: src/admin/balloon/index.js:237
+#: src/admin/balloon/index.js:232
#: src/blocks/_pro/gridcolcard/edit-common.js:155
msgid "Delete"
msgstr ""
-#: src/admin/balloon/index.js:251
+#: src/admin/balloon/index.js:246
msgid "Balloon Image Name"
msgstr ""
-#: src/admin/balloon/index.js:30
+#: src/admin/balloon/index.js:29
msgid "Balloon Setting"
msgstr ""
-#: src/admin/balloon/index.js:33
+#: src/admin/balloon/index.js:32
msgid "Balloon Border Width Setting"
msgstr ""
-#: src/admin/balloon/index.js:51
+#: src/admin/balloon/index.js:50
msgid "1px"
msgstr ""
-#: src/admin/balloon/index.js:55
+#: src/admin/balloon/index.js:54
msgid "2px"
msgstr ""
-#: src/admin/balloon/index.js:59
+#: src/admin/balloon/index.js:58
msgid "3px"
msgstr ""
-#: src/admin/balloon/index.js:63
+#: src/admin/balloon/index.js:62
msgid "4px"
msgstr ""
-#: src/admin/balloon/index.js:74
+#: src/admin/balloon/index.js:69
msgid "Balloon Image Setting"
msgstr ""
-#: src/admin/balloon/index.js:77
+#: src/admin/balloon/index.js:72
msgid "You can register frequently used icon images for speech bubble blocks."
msgstr ""
-#: src/admin/balloon/index.js:81
+#: src/admin/balloon/index.js:76
msgid "If you change image or name that please click Save Changes button."
msgstr ""
-#: src/admin/balloon/index.js:93
+#: src/admin/balloon/index.js:88
msgid "image"
msgstr ""
-#: src/admin/license.js:23
+#: src/admin/license.js:21
msgid "Enter a valid Lightning G3 Pro Pack or Lightning Pro license key."
msgstr ""
-#: src/admin/license.js:29
+#: src/admin/license.js:27
msgid "Once you enter the license key you will be able to do a one click update from the administration screen."
msgstr ""
-#: src/admin/license.js:36
+#: src/admin/license.js:34
msgid "License key"
msgstr ""
-#: src/admin/load-separate.js:35
+#: src/admin/load-separate.js:33
msgid "Load Separate Setting"
msgstr ""
-#: src/admin/load-separate.js:38
+#: src/admin/load-separate.js:36
msgid "Note that the order in which CSS/JS are loaded will change."
msgstr ""
-#: src/admin/load-separate.js:45
+#: src/admin/load-separate.js:43
msgid "Load Separate Option on"
msgstr ""
-#: src/admin/margin.js:19
-#: src/blocks/button/edit.js:321
-#: src/blocks/spacer/edit.js:85
-#: src/extensions/common/inline-font-size/index.js:84
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:25
-#: inc/vk-blocks/vk-blocks-functions.php:25
-msgid "Small"
+#: src/admin/margin.js:103
+#: src/blocks/border-box/edit.js:192
+#: src/blocks/icon-outer/edit.js:149
+#: src/blocks/icon/edit.js:139
+msgid "Margin"
msgstr ""
-#: src/admin/margin.js:23
-#: src/blocks/spacer/edit.js:95
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:29
-#: inc/vk-blocks/vk-blocks-functions.php:29
-msgid "Medium"
+#: src/admin/margin.js:18
+#: src/blocks/spacer/edit.js:83
+msgid "XS"
msgstr ""
-#: src/admin/margin.js:27
-#: src/blocks/button/edit.js:305
-#: src/blocks/spacer/edit.js:105
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:33
-#: inc/vk-blocks/vk-blocks-functions.php:33
-msgid "Large"
+#: src/admin/margin.js:22
+#: src/blocks/spacer/edit.js:93
+msgid "S"
+msgstr ""
+
+#: src/admin/margin.js:26
+#: src/blocks/spacer/edit.js:103
+msgid "M"
+msgstr ""
+
+#: src/admin/margin.js:30
+#: src/blocks/spacer/edit.js:113
+msgid "L"
msgstr ""
#: src/admin/margin.js:34
+#: src/blocks/spacer/edit.js:121
+msgid "XL"
+msgstr ""
+
+#: src/admin/margin.js:41
#: src/blocks/_pro/outer/edit.js:638
#: src/blocks/_pro/slider/edit.js:224
#: src/blocks/button/edit.js:521
@@ -123,7 +131,7 @@ msgstr ""
msgid "PC"
msgstr ""
-#: src/admin/margin.js:38
+#: src/admin/margin.js:45
#: src/blocks/_pro/outer/edit.js:623
#: src/blocks/_pro/slider/edit.js:235
#: src/blocks/button/edit.js:456
@@ -131,7 +139,7 @@ msgstr ""
msgid "Tablet"
msgstr ""
-#: src/admin/margin.js:42
+#: src/admin/margin.js:49
#: src/blocks/_pro/outer/edit.js:608
#: src/blocks/_pro/slider/edit.js:246
#: src/blocks/button/edit.js:391
@@ -139,22 +147,22 @@ msgstr ""
msgid "Mobile"
msgstr ""
-#: src/admin/margin.js:55
+#: src/admin/margin.js:61
#: dist/vk-blocks-pro/inc/vk-blocks/admin/admin.php:74
#: inc/vk-blocks/admin/admin.php:74
msgid "Common Margin Setting"
msgstr ""
-#: src/admin/margin.js:58
+#: src/admin/margin.js:64
msgid "Please specify the size of the common margin used for responsive spacers, etc."
msgstr ""
-#: src/admin/margin.js:64
+#: src/admin/margin.js:70
#: src/blocks/_pro/grid-column-item/edit.js:169
msgid "Unit"
msgstr ""
-#: src/admin/margin.js:77
+#: src/admin/margin.js:83
#: src/blocks/_pro/grid-column-item/edit.js:177
#: src/blocks/_pro/outer/edit.js:659
#: src/blocks/icon-outer/edit.js:181
@@ -163,7 +171,7 @@ msgstr ""
msgid "px"
msgstr ""
-#: src/admin/margin.js:81
+#: src/admin/margin.js:87
#: src/blocks/_pro/grid-column-item/edit.js:181
#: src/blocks/_pro/outer/edit.js:663
#: src/blocks/icon-outer/edit.js:185
@@ -172,7 +180,7 @@ msgstr ""
msgid "em"
msgstr ""
-#: src/admin/margin.js:85
+#: src/admin/margin.js:91
#: src/blocks/_pro/grid-column-item/edit.js:185
#: src/blocks/_pro/outer/edit.js:667
#: src/blocks/icon-outer/edit.js:189
@@ -181,34 +189,27 @@ msgstr ""
msgid "rem"
msgstr ""
-#: src/admin/margin.js:97
-#: src/blocks/border-box/edit.js:192
-#: src/blocks/icon-outer/edit.js:149
-#: src/blocks/icon/edit.js:139
-msgid "Margin"
-msgstr ""
-
-#: src/admin/new-faq.js:21
+#: src/admin/new-faq.js:19
msgid "FAQ Block Setting"
msgstr ""
-#: src/admin/new-faq.js:34
+#: src/admin/new-faq.js:32
msgid "Disable accordion"
msgstr ""
-#: src/admin/new-faq.js:38
+#: src/admin/new-faq.js:36
msgid "Enable accordion and default open"
msgstr ""
-#: src/admin/new-faq.js:45
+#: src/admin/new-faq.js:43
msgid "Enable accordion and default close"
msgstr ""
-#: src/admin/save-button.js:52
+#: src/admin/save-button.js:53
msgid "Save setting"
msgstr ""
-#: src/admin/save-button.js:56
+#: src/admin/save-button.js:57
msgid "Save Success"
msgstr ""
@@ -1498,6 +1499,15 @@ msgstr ""
msgid "Button Size:"
msgstr ""
+#: src/blocks/button/edit.js:305
+msgid "Large"
+msgstr ""
+
+#: src/blocks/button/edit.js:321
+#: src/extensions/common/inline-font-size/index.js:84
+msgid "Small"
+msgstr ""
+
#: src/blocks/button/edit.js:328
msgid "Button Position:"
msgstr ""
@@ -1908,11 +1918,11 @@ msgstr ""
msgid "Space Type"
msgstr ""
-#: src/blocks/spacer/edit.js:115
+#: src/blocks/spacer/edit.js:131
msgid "Custom"
msgstr ""
-#: src/blocks/spacer/edit.js:119
+#: src/blocks/spacer/edit.js:135
msgid "You can change each common margin size from Setting > VK Blocks"
msgstr ""
@@ -1994,8 +2004,8 @@ msgid "Card (Image Round)"
msgstr ""
#: src/components/column-layout-control/index.js:26
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:760
-#: inc/vk-components/package/class-vk-component-posts.php:760
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:768
+#: inc/vk-components/package/class-vk-component-posts.php:768
msgid "Card"
msgstr ""
@@ -2012,8 +2022,8 @@ msgid "Card (Horizontal)"
msgstr ""
#: src/components/column-layout-control/index.js:42
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:776
-#: inc/vk-components/package/class-vk-component-posts.php:776
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:784
+#: inc/vk-components/package/class-vk-component-posts.php:784
msgid "Media"
msgstr ""
@@ -2170,39 +2180,55 @@ msgid "Extra big"
msgstr ""
#: src/extensions/common/margin-extension/index.js:26
-msgid "Top lg"
+msgid "Top XL"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:280
+#: src/extensions/common/margin-extension/index.js:301
msgid "Margin the block"
msgstr ""
#: src/extensions/common/margin-extension/index.js:31
-msgid "Top md"
+msgid "Top L"
msgstr ""
#: src/extensions/common/margin-extension/index.js:36
-msgid "Top sm"
+msgid "Top M"
msgstr ""
#: src/extensions/common/margin-extension/index.js:41
-msgid "Top 0"
+msgid "Top S"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:49
-msgid "Bottom 0"
+#: src/extensions/common/margin-extension/index.js:46
+msgid "Top XS"
msgstr ""
-#: src/extensions/common/margin-extension/index.js:54
-msgid "Bottom sm"
+#: src/extensions/common/margin-extension/index.js:51
+msgid "Top 0"
msgstr ""
#: src/extensions/common/margin-extension/index.js:59
-msgid "Bottom md"
+msgid "Bottom 0"
msgstr ""
#: src/extensions/common/margin-extension/index.js:64
-msgid "Bottom lg"
+msgid "Bottom XS"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:69
+msgid "Bottom S"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:74
+msgid "Bottom M"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:79
+msgid "Bottom L"
+msgstr ""
+
+#: src/extensions/common/margin-extension/index.js:84
+msgid "Bottom XL"
msgstr ""
#: src/extensions/common/nowrap/index.js:21
@@ -2603,13 +2629,13 @@ msgstr ""
msgid "Please contact the administrator of this site for help."
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:316
-#: inc/vk-admin/package/class-vk-admin.php:333
+#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:332
+#: inc/vk-admin/package/class-vk-admin.php:332
msgid "Sorry, there is no post"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:370
-#: inc/vk-admin/package/class-vk-admin.php:387
+#: dist/vk-blocks-pro/inc/vk-admin/package/class-vk-admin.php:386
+#: inc/vk-admin/package/class-vk-admin.php:386
msgid "Vektor WordPress Information"
msgstr ""
@@ -2654,6 +2680,35 @@ msgstr ""
msgid "Setting"
msgstr ""
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
+#: src/blocks/ancestor-page-list/index.php:44
+#: test/phpunit/pro/test-ancestor-page-list.php:89
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "Ancestor Page Title"
+msgstr ""
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "Dummy Text"
+msgstr ""
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor."
+msgstr ""
+
+#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
+#: src/blocks/ancestor-page-list/index.php:83
+#: test/phpunit/pro/test-ancestor-page-list.php:173
+msgid "This message only display on the edit screen."
+msgstr ""
+
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/page-content/index.php:124
#: inc/vk-blocks/build/blocks/page-content/index.php:124
#: src/blocks/page-content/index.php:124
@@ -2672,13 +2727,13 @@ msgstr ""
msgid "There are no %ss."
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:224
-#: inc/vk-blocks/vk-blocks-functions.php:220
+#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:197
+#: inc/vk-blocks/vk-blocks-functions.php:157
msgid "Blocks"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:237
-#: inc/vk-blocks/vk-blocks-functions.php:233
+#: dist/vk-blocks-pro/inc/vk-blocks/vk-blocks-functions.php:210
+#: inc/vk-blocks/vk-blocks-functions.php:170
msgid "Blocks Layout"
msgstr ""
@@ -2692,43 +2747,43 @@ msgstr ""
msgid "New!!"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:267
-#: inc/vk-components/package/class-vk-component-posts.php:267
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:268
+#: inc/vk-components/package/class-vk-component-posts.php:268
msgid "More"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:303
-#: inc/vk-components/package/class-vk-component-posts.php:303
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:304
+#: inc/vk-components/package/class-vk-component-posts.php:304
msgid "Posts navigation"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:304
-#: inc/vk-components/package/class-vk-component-posts.php:304
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:305
+#: inc/vk-components/package/class-vk-component-posts.php:305
msgid "Posts"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:306
-#: inc/vk-components/package/class-vk-component-posts.php:306
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:307
+#: inc/vk-components/package/class-vk-component-posts.php:307
msgid "Page"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:764
-#: inc/vk-components/package/class-vk-component-posts.php:764
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:772
+#: inc/vk-components/package/class-vk-component-posts.php:772
msgid "Card Noborder"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:768
-#: inc/vk-components/package/class-vk-component-posts.php:768
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:776
+#: inc/vk-components/package/class-vk-component-posts.php:776
msgid "Card Intext"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:772
-#: inc/vk-components/package/class-vk-component-posts.php:772
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:780
+#: inc/vk-components/package/class-vk-component-posts.php:780
msgid "Card Horizontal"
msgstr ""
-#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:780
-#: inc/vk-components/package/class-vk-component-posts.php:780
+#: dist/vk-blocks-pro/inc/vk-components/package/class-vk-component-posts.php:788
+#: inc/vk-components/package/class-vk-component-posts.php:788
msgctxt "post list type"
msgid "Text 1 Column"
msgstr ""
@@ -2840,31 +2895,6 @@ msgstr ""
msgid "Re-acquisition of updates"
msgstr ""
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:44
-#: src/blocks/ancestor-page-list/index.php:44
-#: test/phpunit/pro/test-ancestor-page-list.php:89
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-msgid "Ancestor Page Title"
-msgstr ""
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
-#: src/blocks/ancestor-page-list/index.php:83
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-msgid "Dummy Text"
-msgstr ""
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
-#: src/blocks/ancestor-page-list/index.php:83
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-msgid "Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor."
-msgstr ""
-
-#: inc/vk-blocks/build/blocks/ancestor-page-list/index.php:83
-#: src/blocks/ancestor-page-list/index.php:83
-#: test/phpunit/pro/test-ancestor-page-list.php:173
-msgid "This message only display on the edit screen."
-msgstr ""
-
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/alert/block.json
#: inc/vk-blocks/build/blocks/alert/block.json
#: src/blocks/alert/block.json
@@ -3181,8 +3211,10 @@ msgid "Breadcrumb"
msgstr ""
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
+#: inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
+#: src/blocks/_pro/breadcrumb/block.json
msgctxt "block description"
-msgid "Displays breadcrumbs of a page's hierarchy, or a post's categories"
+msgid "Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page."
msgstr ""
#: dist/vk-blocks-pro/inc/vk-blocks/build/blocks/_pro/button-outer/block.json
@@ -3520,9 +3552,3 @@ msgstr ""
msgctxt "block description"
msgid "Displays a simple schedule and other information that is useful for explaining the order."
msgstr ""
-
-#: inc/vk-blocks/build/blocks/_pro/breadcrumb/block.json
-#: src/blocks/_pro/breadcrumb/block.json
-msgctxt "block description"
-msgid "Displays breadcrumbs of a page's hierarchy, or a post's categories.This block is not displayed on the front page."
-msgstr ""
diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php
index 5f7b7c201..667e11f42 100644
--- a/inc/vk-blocks/vk-blocks-functions.php
+++ b/inc/vk-blocks/vk-blocks-functions.php
@@ -54,17 +54,6 @@ function( $class ) {
}
);
-/**
- * VK Blocks is Larger than WP
- *
- * @param string $target_version Target version.
- * @param string $syntax syntax.
- */
-function vk_blocks_is_lager_than_wp( $target_version, $syntax = '>=' ) {
- global $wp_version;
- return defined( 'GUTENBERG_VERSION' ) || version_compare( $wp_version, $target_version, $syntax );
-}
-
/**
* VK Blocks Assets
*/
@@ -88,51 +77,49 @@ function vk_blocks_blocks_assets() {
)
);
- if ( vk_blocks_is_lager_than_wp( '5.0' ) ) {
- global $vk_blocks_common_attributes;
- $vk_blocks_common_attributes = array(
- 'vkb_hidden' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_xxl' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_xl_v2' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_xl' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_lg' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_md' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_sm' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'vkb_hidden_xs' => array(
- 'type' => 'boolean',
- 'default' => false,
- ),
- 'marginTop' => array(
- 'type' => 'string',
- 'default' => '',
- ),
- 'marginBottom' => array(
- 'type' => 'string',
- 'default' => '',
- ),
- );
- }
+ global $vk_blocks_common_attributes;
+ $vk_blocks_common_attributes = array(
+ 'vkb_hidden' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_xxl' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_xl_v2' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_xl' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_lg' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_md' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_sm' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'vkb_hidden_xs' => array(
+ 'type' => 'boolean',
+ 'default' => false,
+ ),
+ 'marginTop' => array(
+ 'type' => 'string',
+ 'default' => '',
+ ),
+ 'marginBottom' => array(
+ 'type' => 'string',
+ 'default' => '',
+ ),
+ );
$dynamic_css = '
:root {
diff --git a/options-css/_admin-margin.scss b/options-css/_admin-margin.scss
index 3d595504e..bef8dcfed 100644
--- a/options-css/_admin-margin.scss
+++ b/options-css/_admin-margin.scss
@@ -22,6 +22,10 @@
display: flex;
}
+ &__size-name {
+ min-width:90px;
+ }
+
.margin_size_input {
flex-direction: row;
align-items: center;
diff --git a/readme.txt b/readme.txt
index 50daba8cb..30d2bdd27 100644
--- a/readme.txt
+++ b/readme.txt
@@ -3,8 +3,8 @@ Contributors: vektor-inc,kurudrive,naoki0h,nc30,una9,kaorock72,rickaddison7634,m
Donate link:
Tags: Gutenberg,FAQ,alert
Requires at least: 5.8
-Tested up to: 6.0.1
-Stable tag: 1.41.2.3
+Tested up to: 6.0.2
+Stable tag: 1.43.0.2
Requires PHP: 7.2
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
@@ -63,7 +63,11 @@ e.g.
== Changelog ==
-[Improvement][Admin screen] Display the SaveButton sticky.
+
+= 1.43.0 =
+[ Add Function ][ Spacer ][ Common mergin ] Add size option xl/xs.
+[ Improvement ][ Admin screen ] Display the SaveButton sticky.
+[ Bug Fix ] Fix PHP 8.X Error
= 1.42.1 =
[ Other ] Update VK Component Posts 1.3.1
diff --git a/src/admin/margin.js b/src/admin/margin.js
index a3e754ba5..d078eccfd 100644
--- a/src/admin/margin.js
+++ b/src/admin/margin.js
@@ -15,17 +15,25 @@ import { AdminContext } from '@vkblocks/admin/index';
const MARGIN_SIZE_ARRAY = [
{
- marginLabel: __('Small', 'vk-blocks'),
+ marginLabel: __('XS', 'vk-blocks'),
+ marginValue: 'xs',
+ },
+ {
+ marginLabel: __('S', 'vk-blocks'),
marginValue: 'sm',
},
{
- marginLabel: __('Medium', 'vk-blocks'),
+ marginLabel: __('M', 'vk-blocks'),
marginValue: 'md',
},
{
- marginLabel: __('Large', 'vk-blocks'),
+ marginLabel: __('L', 'vk-blocks'),
marginValue: 'lg',
},
+ {
+ marginLabel: __('XL', 'vk-blocks'),
+ marginValue: 'xl',
+ },
];
const DEVICE_ARRAY = [
@@ -91,9 +99,9 @@ export default function AdminMargin() {
const { marginLabel, marginValue } = size;
return (
-
+
{__('Margin', 'vk-blocks')} [ {marginLabel}{' '}
- ] :
+ ]
{DEVICE_ARRAY.map((device) => {
const { deviceLabel, deviceValue } = device;
diff --git a/src/blocks/ancestor-page-list/index.php b/src/blocks/ancestor-page-list/index.php
index 74a4d62c3..bd2b244fd 100644
--- a/src/blocks/ancestor-page-list/index.php
+++ b/src/blocks/ancestor-page-list/index.php
@@ -14,11 +14,11 @@
function vk_blocks_get_ancestor_page_id() {
global $post;
$post_anc_id = '';
- if ( $post->ancestors ) {
+ if ( ! empty( $post ) && ! empty( $post->ancestors ) ) {
foreach ( $post->ancestors as $post_id ) {
$post_anc_id = $post_id;
}
- } else {
+ } elseif ( ! empty( $post ) ) {
$post_anc_id = $post->ID;
}
return $post_anc_id;
@@ -37,14 +37,14 @@ function vk_blocks_get_ancestor_page_list_title( $attributes ) {
if ( $attributes['ancestorTitleDisplay'] ) {
$post_anc_id = vk_blocks_get_ancestor_page_id();
- if ( is_singular() ) {
+ if ( ! empty( $post_anc_id ) && is_singular() ) {
$title_text = get_the_title( $post_anc_id );
} else {
// On site editor screen.
$title_text = esc_html__( 'Ancestor Page Title', 'vk-blocks' );
}
- $title_link = get_permalink( $post_anc_id );
+ $title_link = ! empty( $post_anc_id ) ? get_permalink( $post_anc_id ) : '';
// Ancestor Title Tag.
$tag_name = $attributes['ancestorTitleTagName'];
@@ -55,7 +55,7 @@ function vk_blocks_get_ancestor_page_list_title( $attributes ) {
}
$title .= '<' . $tag_name . ' class="' . $class . '">';
- if ( ! empty( $attributes['ancestorTitleLink'] ) ) {
+ if ( ! empty( $attributes['ancestorTitleLink'] ) && ! empty( $title_link ) ) {
$title .= '';
}
$title .= esc_html( $title_text );
@@ -130,7 +130,11 @@ function vk_blocks_ancestor_page_list_render_callback( $attributes ) {
}
// block.jsonのSupportsで設定したクラス名やスタイルを取得する.
- $wrapper_classes = get_block_wrapper_attributes( array( 'class' => $classes ) );
+ $wrapper_classes = get_block_wrapper_attributes(
+ array(
+ 'class' => $classes,
+ )
+ );
$block = '';
$block .= vk_blocks_get_ancestor_page_list_title( $attributes );
diff --git a/src/blocks/spacer/deprecated/1.40.0/save.js b/src/blocks/spacer/deprecated/1.40.0/save.js
new file mode 100644
index 000000000..4bec6f49e
--- /dev/null
+++ b/src/blocks/spacer/deprecated/1.40.0/save.js
@@ -0,0 +1,36 @@
+/**
+ * WordPress dependencies
+ */
+import { useBlockProps } from '@wordpress/block-editor';
+
+/**
+ * Internal dependencies
+ */
+import Spacers from './spacers';
+
+export default function save({ attributes, anchor }) {
+ const { spaceType, unit, pc, tablet, mobile, spaceSize } = attributes;
+
+ let containerClass = `vk_spacer`;
+ if ('custom' !== spaceSize) {
+ containerClass += ` vk_spacer-type-${spaceType}`;
+ }
+
+ return (
+
+
+
+ );
+}
diff --git a/src/blocks/spacer/deprecated/1.40.0/spacers.js b/src/blocks/spacer/deprecated/1.40.0/spacers.js
new file mode 100644
index 000000000..da3511e47
--- /dev/null
+++ b/src/blocks/spacer/deprecated/1.40.0/spacers.js
@@ -0,0 +1,83 @@
+// Spacers
+
+const Spacer = ({ style, viewPort }) => {
+ return
;
+};
+
+export default function Spacers({
+ spaceSize,
+ type,
+ pcSize,
+ tabletSize,
+ mobileSize,
+ unit,
+}) {
+ const SPACE_SIZE_CLASSNAMES = {
+ small: 'vk_block-margin-sm',
+ medium: 'vk_block-margin-md',
+ large: 'vk_block-margin-lg',
+ };
+
+ if (spaceSize !== undefined && SPACE_SIZE_CLASSNAMES[spaceSize]) {
+ if (type === 'margin-top') {
+ return (
+
+ );
+ } else if (type === 'margin-bottom') {
+ return (
+
+ );
+ }
+ return (
+
+ );
+ }
+
+ if (type === 'margin-top') {
+ return (
+ <>
+
+
+
+ >
+ );
+ } else if (type === 'margin-bottom') {
+ return (
+ <>
+
+
+
+ >
+ );
+ }
+ return (
+ <>
+
+
+
+ >
+ );
+}
diff --git a/src/blocks/spacer/deprecated/index.js b/src/blocks/spacer/deprecated/index.js
index 4d44a2bed..4b606641e 100644
--- a/src/blocks/spacer/deprecated/index.js
+++ b/src/blocks/spacer/deprecated/index.js
@@ -5,6 +5,7 @@ import save0_57_4 from './0.57.4/save';
import save1_3_2 from './1.3.2/save';
import save1_13_2 from './1.13.2/save';
import save1_25_1 from './1.25.1/save';
+import save1_40_0 from './1.40.0/save';
export const blockAttributes = {
unit: {
@@ -58,6 +59,10 @@ const blockAttributes3 = {
}
const deprecated = [
+ {
+ attributes:blockAttributes3,
+ save: save1_40_0,
+ },
{
attributes:blockAttributes3,
save: save1_25_1,
diff --git a/src/blocks/spacer/edit.js b/src/blocks/spacer/edit.js
index 4d2bfcc6e..f402d8c9b 100644
--- a/src/blocks/spacer/edit.js
+++ b/src/blocks/spacer/edit.js
@@ -74,6 +74,14 @@ export default function SpacerEdit({
+ setAttributes({ spaceSize: 'xs' })}
+ >
+ {__('XS', 'vk-blocks')}
+
- {__('Small', 'vk-blocks')}
+ {__('S', 'vk-blocks')}
- {__('Medium', 'vk-blocks')}
+ {__('M', 'vk-blocks')}
- {__('Large', 'vk-blocks')}
+ {__('L', 'vk-blocks')}
+
+ setAttributes({ spaceSize: 'xl' })}
+ >
+ {__('XL', 'vk-blocks')}
+
+
+
+
+
+
\ No newline at end of file
diff --git a/test/e2e-tests/specs/margin-extension.test.js b/test/e2e-tests/specs/margin-extension.test.js
index 6b2f45022..f736dd6c2 100644
--- a/test/e2e-tests/specs/margin-extension.test.js
+++ b/test/e2e-tests/specs/margin-extension.test.js
@@ -158,17 +158,17 @@ describe( 'MarginExtension', () => {
//共通余白 下をクリック
await clickBlockToolbarButton( 'Margin the block' );
- for (let i = 0; i < 4; i++) {
+ for (let i = 0; i < 7; i++) {
await page.keyboard.press( 'Tab' );
}
await page.keyboard.press( 'Enter' );
// 共通余白のクラス名が存在するかチェック
expect(
- await page.$( '.vk_block-margin-lg--margin-top' )
+ await page.$( '.vk_block-margin-xl--margin-top' )
).not.toBeNull();
expect(
- await page.$( '.vk_block-margin-0--margin-bottom' )
+ await page.$( '.vk_block-margin-xs--margin-bottom' )
).not.toBeNull();
// List viewをクリック
diff --git a/test/phpunit/free/test-get-options-free.php b/test/phpunit/free/test-get-options-free.php
index 41fd19766..14b301168 100644
--- a/test/phpunit/free/test-get-options-free.php
+++ b/test/phpunit/free/test-get-options-free.php
@@ -15,6 +15,11 @@ public function test_vk_blocks_get_options() {
'balloon_border_width' => 1,
'margin_unit' => 'rem',
'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
'lg' => array(
'mobile' => null,
'tablet' => null,
@@ -30,6 +35,11 @@ public function test_vk_blocks_get_options() {
'tablet' => null,
'pc' => null,
),
+ 'xs' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
),
'load_separate_option' => false,
),
diff --git a/test/phpunit/pro/test-ancestor-page-list.php b/test/phpunit/pro/test-ancestor-page-list.php
index 60d3daf22..7547e698c 100644
--- a/test/phpunit/pro/test-ancestor-page-list.php
+++ b/test/phpunit/pro/test-ancestor-page-list.php
@@ -119,7 +119,7 @@ public function test_vk_blocks_get_ancestor_page_list_title() {
* @return void
*/
public function test_vk_blocks_ancestor_page_list_render_callback() {
-
+
// Create test page .
$post = array(
'post_title' => 'no_child_page',
@@ -146,7 +146,7 @@ public function test_vk_blocks_ancestor_page_list_render_callback() {
'displayHasChildOnly' => false,
),
'target_url' => get_permalink( $data['no_child_page_id'] ),
- 'correct' => '',
+ 'correct' => '',
),
array(
'attributes' => array(
@@ -157,12 +157,12 @@ public function test_vk_blocks_ancestor_page_list_render_callback() {
'hiddenGrandChild' => true,
),
'target_url' => get_permalink( $data['no_child_page_id'] ),
- 'correct' => '',
+ 'correct' => '',
),
// Not public page.
// サイトエディター上でのテストだが、サイトエディターの中身が iframe で判別方法が不明のため、一般公開でないURLを target_url 指定している .
array(
- 'attributes' => array(
+ 'attributes' => array(
'ancestorTitleDisplay' => true,
'ancestorTitleTagName' => 'h3',
'ancestorTitleLink' => false,
@@ -170,7 +170,7 @@ public function test_vk_blocks_ancestor_page_list_render_callback() {
'hiddenGrandChild' => true,
),
'target_url' => admin_url() . '/site-editor.php?postType=wp_template',
- 'correct' => '' . esc_html__( 'Ancestor Page Title', 'vk-blocks' ) . ' ' . esc_html__( 'Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.', 'vk-blocks' ) . ' * ' . esc_html__( 'This message only display on the edit screen.', 'vk-blocks' ) . '
',
+ 'correct' => '' . esc_html__( 'Ancestor Page Title', 'vk-blocks' ) . ' ' . esc_html__( 'Because of the site editor have not child page that, the page list from ancestor is not displayed. Now displaying the dummy text list instead of the page list from ancestor.', 'vk-blocks' ) . ' * ' . esc_html__( 'This message only display on the edit screen.', 'vk-blocks' ) . '
',
),
);
@@ -178,11 +178,14 @@ public function test_vk_blocks_ancestor_page_list_render_callback() {
print '------------------------------------' . PHP_EOL;
print 'vk_blocks_ancestor_page_list_render_callback()' . PHP_EOL;
print '------------------------------------' . PHP_EOL;
+
+ WP_Block_Supports::init();
+
foreach ( $test_data as $value ) {
// Move to test page.
$this->go_to( $value['target_url'] );
-
+ WP_Block_Supports::$block_to_render = array('blockName'=> 'vk-blocks/ancestor-page-list', 'attrs' => $value['attributes'] );
$return = vk_blocks_ancestor_page_list_render_callback( $value['attributes'] );
$correct = $value['correct'];
diff --git a/test/phpunit/pro/test-breadcrumb.php b/test/phpunit/pro/test-breadcrumb.php
index 6a4404111..98baa3de4 100644
--- a/test/phpunit/pro/test-breadcrumb.php
+++ b/test/phpunit/pro/test-breadcrumb.php
@@ -85,9 +85,11 @@ public function test_breadcrumb() {
$this->set_current_user( 'administrator' );
- $actual = vk_blocks_breadcrumb_render_callback( $attributes );
+ WP_Block_Supports::init();
+ WP_Block_Supports::$block_to_render = array('blockName'=> $attributes['name'], 'attrs' => $attributes );
- $expected = vk_blocks_unescape_html( '' );
+ $actual = vk_blocks_breadcrumb_render_callback( $attributes );
+ $expected = vk_blocks_unescape_html( '' );
print PHP_EOL;
print '------------------------------------' . PHP_EOL;
diff --git a/test/phpunit/pro/test-get-options.php b/test/phpunit/pro/test-get-options.php
index 97c1fc95d..42aba1ddb 100644
--- a/test/phpunit/pro/test-get-options.php
+++ b/test/phpunit/pro/test-get-options.php
@@ -57,6 +57,11 @@ public function test_vk_blocks_get_options() {
'balloon_border_width' => 1,
'margin_unit' => 'rem',
'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
'lg' => array(
'mobile' => null,
'tablet' => null,
@@ -72,6 +77,11 @@ public function test_vk_blocks_get_options() {
'tablet' => null,
'pc' => null,
),
+ 'xs' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
),
'load_separate_option' => false,
'vk_blocks_pro_license_key' => null,
@@ -125,27 +135,39 @@ public function test_vk_blocks_get_options() {
// 余白の共通サイズ設定 margin_size v1.7.1
// https://github.com/vektor-inc/vk-blocks-pro/pull/584/
array(
- 'option_check_target' => 'margin_size',
+ 'option_check_target' => array(
+ ['margin_size','lg','mobile'],
+ ['margin_size','lg','tablet'],
+ ['margin_size','lg','pc'],
+ ['margin_size','md','mobile'],
+ ['margin_size','md','tablet'],
+ ['margin_size','md','pc'],
+ ['margin_size','sm','mobile'],
+ ['margin_size','sm','tablet'],
+ ['margin_size','sm','pc'],
+ ),
'option' => array(
'display_vk_block_template' => 'hide',
'new_faq_accordion' => 'open',
'balloon_border_width' => 2,
),
'correct' => array(
- 'lg' => array(
- 'mobile' => null,
- 'tablet' => null,
- 'pc' => null,
- ),
- 'md' => array(
- 'mobile' => null,
- 'tablet' => null,
- 'pc' => null,
- ),
- 'sm' => array(
- 'mobile' => null,
- 'tablet' => null,
- 'pc' => null,
+ 'margin_size' => array(
+ 'lg' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
+ 'md' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
+ 'sm' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
),
),
),
@@ -208,6 +230,55 @@ public function test_vk_blocks_get_options() {
),
'correct' => null
),
+ // margin_sizeのlg,md,smに値が設定されているときに、xl,xsが追加された場合
+ array(
+ 'option_check_target' => array(
+ ['margin_size','xl','mobile'],
+ ['margin_size','xl','tablet'],
+ ['margin_size','xl','pc'],
+ ['margin_size','xs','mobile'],
+ ['margin_size','xs','tablet'],
+ ['margin_size','xs','pc'],
+ ),
+ 'option' => array(
+ 'display_vk_block_template' => 'hide',
+ 'new_faq_accordion' => 'open',
+ 'balloon_border_width' => 2,
+ 'margin_unit' => 'px',
+ 'margin_size' => array(
+ 'lg' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ 'md' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ 'sm' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
+ ),
+ 'load_separate_option' => true,
+ ),
+ 'correct' => array(
+ 'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
+ 'xs' => array(
+ 'mobile' => null,
+ 'tablet' => null,
+ 'pc' => null,
+ ),
+ ),
+ ),
+ ),
// カスタムCSS編集画面識別フラグ非表示 v
array(
'option_check_target' => 'show_custom_css_editor_flag',
@@ -217,6 +288,11 @@ public function test_vk_blocks_get_options() {
'balloon_border_width' => 2,
'margin_unit' => 'px',
'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
'lg' => array(
'mobile' => 1,
'tablet' => 2,
@@ -232,11 +308,16 @@ public function test_vk_blocks_get_options() {
'tablet' => 2,
'pc' => 3,
),
+ 'xs' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
),
'load_separate_option' => true,
'vk_blocks_pro_license_key' => 'test_license_key',
),
- 'correct' => 'true'
+ 'correct' => 'true',
),
// 全てのオプション値を変更した時
array(
@@ -244,6 +325,11 @@ public function test_vk_blocks_get_options() {
'balloon_border_width' => 2,
'margin_unit' => 'px',
'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
'lg' => array(
'mobile' => 1,
'tablet' => 2,
@@ -259,6 +345,11 @@ public function test_vk_blocks_get_options() {
'tablet' => 2,
'pc' => 3,
),
+ 'xs' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
),
'load_separate_option' => true,
'vk_blocks_pro_license_key' => 'test_license_key',
@@ -270,6 +361,11 @@ public function test_vk_blocks_get_options() {
'balloon_border_width' => 2,
'margin_unit' => 'px',
'margin_size' => array(
+ 'xl' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
'lg' => array(
'mobile' => 1,
'tablet' => 2,
@@ -285,6 +381,11 @@ public function test_vk_blocks_get_options() {
'tablet' => 2,
'pc' => 3,
),
+ 'xs' => array(
+ 'mobile' => 1,
+ 'tablet' => 2,
+ 'pc' => 3,
+ ),
),
'load_separate_option' => true,
'vk_blocks_pro_license_key' => 'test_license_key',
@@ -318,7 +419,24 @@ public function test_vk_blocks_get_options() {
// var_dump( $correct );
// print PHP_EOL;
- if ( $test_value['option_check_target'] ) {
+ // 配列の時 指定したキー同士を比べる
+ if ( array_key_exists('option_check_target', $test_value) && is_array( $test_value['option_check_target'] ) ) {
+ foreach($test_value['option_check_target'] as $keys){
+ $correct_target = $correct;
+ $return_target = $return;
+ foreach($keys as $value){
+ // VK_Blocks_Options::get_optionsから返ってきた値
+ $return_target = $return_target[$value];
+ // $test_dataのcorrectの指定した配列
+ $correct_target = $correct_target[$value];
+ }
+ // var_dump('$return_target');
+ // var_dump($return_target);
+ // var_dump('$correct_target');
+ // var_dump($correct_target);
+ $this->assertSame( $correct_target, $return_target );
+ }
+ } else if ( array_key_exists('option_check_target', $test_value) && ! is_array( $test_value['option_check_target'] ) && $test_value['option_check_target'] ) {
$this->assertSame( $correct, $return[ $test_value['option_check_target'] ] );
} else {
$this->assertSame( $correct, $return );
diff --git a/test/phpunit/pro/test-vk-blocks-options.php b/test/phpunit/pro/test-vk-blocks-options.php
index 1d1e0be49..315e70095 100644
--- a/test/phpunit/pro/test-vk-blocks-options.php
+++ b/test/phpunit/pro/test-vk-blocks-options.php
@@ -41,6 +41,23 @@ public function test_options_scheme() {
'margin_size' => array(
'type' => 'object',
'items' => array(
+ 'xl' => array(
+ 'type' => 'object',
+ 'items' => array(
+ 'mobile' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'tablet' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'pc' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ ),
+ ),
'lg' => array(
'type' => 'object',
'items' => array(
@@ -92,6 +109,23 @@ public function test_options_scheme() {
),
),
),
+ 'xs' => array(
+ 'type' => 'object',
+ 'items' => array(
+ 'mobile' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'tablet' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ 'pc' => array(
+ 'type' => 'number',
+ 'default' => null,
+ ),
+ ),
+ ),
),
),
'load_separate_option' => array(
diff --git a/vk-blocks.php b/vk-blocks.php
index 23d93b4e8..74d635ee3 100644
--- a/vk-blocks.php
+++ b/vk-blocks.php
@@ -3,8 +3,8 @@
* Plugin Name: VK Blocks Pro
* Plugin URI: https://github.com/vektor-inc/vk-blocks
* Description: This is a plugin that extends Gutenberg's blocks.
- * Version: 1.42.1.0
- * Stable tag: 1.41.2.3
+ * Version: 1.43.0.2
+ * Stable tag: 1.43.0.2
* Requires at least: 5.8
* Author: Vektor,Inc.
* Author URI: https://vektor-inc.co.jp
From 6b0fbb87c2627a78549d155639cdbb794a255d5e Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Thu, 22 Sep 2022 16:19:08 +0900
Subject: [PATCH 31/56] delete monaco-editor package
---
package-lock.json | 25 -------------------------
package.json | 1 -
2 files changed, 26 deletions(-)
diff --git a/package-lock.json b/package-lock.json
index a52af060d..6a96350e0 100644
--- a/package-lock.json
+++ b/package-lock.json
@@ -2411,25 +2411,6 @@
"@lezer/common": "^1.0.0"
}
},
- "@monaco-editor/loader": {
- "version": "1.3.2",
- "resolved": "https://registry.npmjs.org/@monaco-editor/loader/-/loader-1.3.2.tgz",
- "integrity": "sha512-BTDbpHl3e47r3AAtpfVFTlAi7WXv4UQ/xZmz8atKl4q7epQV5e7+JbigFDViWF71VBi4IIBdcWP57Hj+OWuc9g==",
- "dev": true,
- "requires": {
- "state-local": "^1.0.6"
- }
- },
- "@monaco-editor/react": {
- "version": "4.4.5",
- "resolved": "https://registry.npmjs.org/@monaco-editor/react/-/react-4.4.5.tgz",
- "integrity": "sha512-IImtzU7sRc66OOaQVCG+5PFHkSWnnhrUWGBuH6zNmH2h0YgmAhcjHZQc/6MY9JWEbUtVF1WPBMJ9u1XuFbRrVA==",
- "dev": true,
- "requires": {
- "@monaco-editor/loader": "^1.3.2",
- "prop-types": "^15.7.2"
- }
- },
"@nodelib/fs.scandir": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz",
@@ -21636,12 +21617,6 @@
"integrity": "sha512-h88QkzREN/hy8eRdyNhhsO7RSJ5oyTqxxmmn0dzBIMUclZsjpfmrsg81vp8mjjAs2vAZ72nyWxRUwSwmh0e4xg==",
"dev": true
},
- "state-local": {
- "version": "1.0.7",
- "resolved": "https://registry.npmjs.org/state-local/-/state-local-1.0.7.tgz",
- "integrity": "sha512-HTEHMNieakEnoe33shBYcZ7NX83ACUjCu8c40iOGEZsngj9zRnkqS9j1pqQPXwobB0ZcVTk27REb7COQ0UR59w==",
- "dev": true
- },
"static-extend": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/static-extend/-/static-extend-0.1.2.tgz",
diff --git a/package.json b/package.json
index 1a6f3c246..81b113862 100644
--- a/package.json
+++ b/package.json
@@ -49,7 +49,6 @@
"@codemirror/lang-css": "^6.0.0",
"@codemirror/view": "^6.2.0",
"@emotion/babel-plugin": "^11.7.2",
- "@monaco-editor/react": "^4.4.5",
"@uiw/react-codemirror": "^4.11.6",
"@wordpress/babel-plugin-makepot": "^4.2.1",
"@wordpress/block-editor": "^8.2.0",
From db58223af1c6ba4d297d2d38337a8c6462a5fafa Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Thu, 22 Sep 2022 17:17:24 +0900
Subject: [PATCH 32/56] fix / exclude block
---
.../common/custom-css-extension/index.js | 50 +++++++------------
1 file changed, 18 insertions(+), 32 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index e122797b9..db8e07c78 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -31,45 +31,31 @@ export const inString = (str, keyword) => {
export const isAddBlockCss = (blockName) => {
const allowed = ['core', 'vk-blocks'];
- const returnBool =
+ let returnBool =
allowed.find((item) => inString(blockName, item)) !== undefined;
+
+ const excludeBlocks = [
+ // ExUnitに入っているvk blocksブロック
+ 'vk-blocks/share-button',
+ 'vk-blocks/child-page-index',
+ 'vk-blocks/contact-section',
+ 'vk-blocks/page-list-ancestor',
+ 'vk-blocks/sitemap',
+ 'vk-blocks/cta',
+ ];
+ const excludeBlock =
+ excludeBlocks.find((excludeName) =>
+ inString(blockName, excludeName)
+ ) !== undefined;
+ if (excludeBlock) {
+ returnBool = false;
+ }
return returnBool;
};
export const customCssRegex = /vk_custom_css-(.+)/;
export const customCssSelectorRegex = /selector/;
-// ExUnitに入っているvk blocksブロック,
-const ex_unit_block = [
- 'vk-blocks/share-button',
- 'vk-blocks/child-page-index',
- 'vk-blocks/contact-section',
- 'vk-blocks/page-list-ancestor',
- 'vk-blocks/sitemap',
- 'vk-blocks/cta',
-];
-
-/**
- * index.js
- *
- * vk-blocksのブロックはPHPのフックblock_type_metadata_settingsで対応できるがExUnitのブロックはjsのフックを使う必要がある
- */
-addFilter('blocks.registerBlockType', 'vk-blocks/custom-css', (settings) => {
- if (ex_unit_block.includes(settings.name)) {
- settings.attributes = {
- // Deploy original settings.attributes to array and...
- ...settings.attributes,
- // Add vkbCustomCss attributes
- ...{
- vkbCustomCss: {
- type: 'string',
- },
- },
- };
- }
- return settings;
-});
-
/**
* edit.js
*/
From f37b3149b316fad8efa2485e9ac8ec9a312a629e Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Thu, 22 Sep 2022 17:32:31 +0900
Subject: [PATCH 33/56] fix / show flag phpunit
---
test/phpunit/pro/test-get-options.php | 29 +--------------------------
1 file changed, 1 insertion(+), 28 deletions(-)
diff --git a/test/phpunit/pro/test-get-options.php b/test/phpunit/pro/test-get-options.php
index 25fa64ff7..d01c028d4 100644
--- a/test/phpunit/pro/test-get-options.php
+++ b/test/phpunit/pro/test-get-options.php
@@ -321,17 +321,7 @@ public function test_vk_blocks_get_options() {
),
// 全てのオプション値を変更した時
array(
- 'option_check_target' => array(
- ['margin_size','xl','mobile'],
- ['margin_size','xl','tablet'],
- ['margin_size','xl','pc'],
- ['margin_size','xs','mobile'],
- ['margin_size','xs','tablet'],
- ['margin_size','xs','pc'],
- ),
'option' => array(
- 'display_vk_block_template' => 'hide',
- 'new_faq_accordion' => 'open',
'balloon_border_width' => 2,
'margin_unit' => 'px',
'margin_size' => array(
@@ -367,24 +357,7 @@ public function test_vk_blocks_get_options() {
'new_faq_accordion' => 'open',
'show_custom_css_editor_flag' => 'false',
),
- 'correct' => array(
- 'margin_size' => array(
- 'xl' => array(
- 'mobile' => null,
- 'tablet' => null,
- 'pc' => null,
- ),
- 'xs' => array(
- 'mobile' => null,
- 'tablet' => null,
- 'pc' => null,
- ),
- ),
- ),
- ),
- // 全てのオプション値を変更した時
- array(
- 'option' => array(
+ 'correct' => array(
'balloon_border_width' => 2,
'margin_unit' => 'px',
'margin_size' => array(
From 99db135317c02bdec2fe132624d25d417963cdf8 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Mon, 26 Sep 2022 13:53:29 +0900
Subject: [PATCH 34/56] =?UTF-8?q?fix=20/=20customCss=20=E3=83=A6=E3=83=8B?=
=?UTF-8?q?=E3=83=BC=E3=82=AF=E3=82=AF=E3=83=A9=E3=82=B9=E3=81=AE=E7=94=9F?=
=?UTF-8?q?=E6=88=90=E6=96=B9=E6=B3=95=E3=82=92InstanceId,wp=5Funique=5Fid?=
=?UTF-8?q?=E3=81=AB=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension.php | 18 +++---
.../common/custom-css-extension/index.js | 62 ++++++-------------
2 files changed, 30 insertions(+), 50 deletions(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 27ce5c37e..1a8a89799 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -8,22 +8,24 @@
/**
* Render Custom Css Extension css
*
+ * @see https://github.com/WordPress/gutenberg/blob/3358251ae150e33dd6c0e0fb15be110cca1b5c59/lib/block-supports/layout.php#L294
+ *
* @param string $block_content block_content.
* @param array $block block.
* @return string
*/
function vk_blocks_custom_css_extension( $block_content, $block ) {
if ( ! empty( $block['attrs']['vkbCustomCss'] ) ) {
- $css = $block['attrs']['vkbCustomCss'];
- $class_name = ! empty( $block['attrs']['className'] ) ? $block['attrs']['className'] : '';
- // 追加CSSクラスを半角文字列で分けて配列化
- $now_class_array = ! empty( $class_name ) ? explode( ' ', $class_name ) : array();
- $custom_css_class = preg_grep( '/vk_custom_css-[\S]/', $now_class_array );
- // selector文字列をクラス名に変換
- $css = preg_replace( '/selector/', '.' . current( $custom_css_class ), $css );
+ $css = $block['attrs']['vkbCustomCss'];
+ // Uniqueクラスを生成
+ $custom_css_class = wp_unique_id( 'vk_custom_css_' );
+ // selector文字列をUniqueクラスに変換
+ $css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
$css = vk_blocks_minify_css( $css );
+ // vk_custom_css文字列をUniqueクラスに変換
+ $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content );
if ( ! empty( $css ) ) {
- return '' . $block_content;
+ return '' . $content;
}
return $block_content;
}
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index db8e07c78..8d6f4051a 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -5,7 +5,7 @@ import { __ } from '@wordpress/i18n';
import { addFilter } from '@wordpress/hooks';
import { PanelBody, Icon, Button } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
-import { createHigherOrderComponent } from '@wordpress/compose';
+import { createHigherOrderComponent, useInstanceId } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
import { useEffect } from '@wordpress/element';
import { addQueryArgs } from '@wordpress/url';
@@ -21,7 +21,6 @@ import { EditorView } from '@codemirror/view';
/**
* Internal dependencies
*/
-import { isParentReusableBlock } from '@vkblocks/utils/is-parent-reusable-block';
import { ReactComponent as IconSVG } from './icon.svg';
/*globals vk_blocks_params */
@@ -53,7 +52,7 @@ export const isAddBlockCss = (blockName) => {
return returnBool;
};
-export const customCssRegex = /vk_custom_css-(.+)/;
+export const customCssRegex = /vk_custom_css/;
export const customCssSelectorRegex = /selector/;
/**
@@ -64,8 +63,7 @@ addFilter(
'vk-blocks/custom-css',
createHigherOrderComponent((BlockEdit) => {
return (props) => {
- const { name, attributes, setAttributes, isSelected, clientId } =
- props;
+ const { name, attributes, setAttributes, isSelected } = props;
const { vkbCustomCss, className } = attributes;
const hasCustomClassName = hasBlockSupport(
name,
@@ -75,24 +73,19 @@ addFilter(
// 追加CSSを半角文字列で分けて配列化
const nowClassArray = className ? className.split(' ') : [];
- // 追加CSSにUniqueクラスを追加したクラス名を取得する
- const getUniqueClassName = (_nowClassArray, _clientId) => {
- return classnames(_nowClassArray, `vk_custom_css-${_clientId}`);
- };
-
- // vkbCustomCssが変更されたときにclassNameにUniqueクラスが無いかつvkbCustomCssにselectorがあったらクラス名を追加
+ // vkbCustomCssが変更されたとき
useEffect(() => {
- // Uniqueクラスが無いかつselectorがあればUniqueクラスを追加
+ // カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
if (
- !customCssRegex.test(className) &&
- customCssSelectorRegex.test(vkbCustomCss)
+ customCssSelectorRegex.test(vkbCustomCss) &&
+ nowClassArray.indexOf('vk_custom_css') === -1
) {
setAttributes({
- className: getUniqueClassName(nowClassArray, clientId),
+ className: classnames(nowClassArray, `vk_custom_css`),
});
}
- // selectorがなければUniqueクラスを削除
+ // selectorがなければカスタムCSS用クラスを削除
if (!customCssSelectorRegex.test(vkbCustomCss)) {
const newClassArray = nowClassArray.filter(
(x) => !customCssRegex.test(x)
@@ -101,34 +94,19 @@ addFilter(
}
}, [vkbCustomCss]);
- // classNameが変更されたときにvkbCustomCssにselectorがあるかつclassNameにUniqueクラスが無かったらクラス名を追加
+ // classNameが変更されたときに
useEffect(() => {
+ // カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
if (
customCssSelectorRegex.test(vkbCustomCss) &&
- !customCssRegex.test(className)
+ nowClassArray.indexOf('vk_custom_css') === -1
) {
setAttributes({
- className: getUniqueClassName(nowClassArray, clientId),
+ className: classnames(nowClassArray, `vk_custom_css`),
});
}
}, [className]);
- // 複製された時にclassNameにUniqueクラスがあるかつ再利用ブロックではない時はUniqueクラスを振り直す
- useEffect(() => {
- if (
- customCssRegex.test(className) &&
- isParentReusableBlock(clientId) === false
- ) {
- // 以前のUniqueクラスを削除する
- const newClassArray = nowClassArray.filter(
- (x) => !customCssRegex.test(x)
- );
- setAttributes({
- className: getUniqueClassName(newClassArray, clientId),
- });
- }
- }, [clientId]);
-
// アイコンのスタイル
let iconStyle = {
width: '24px',
@@ -244,13 +222,16 @@ addFilter(
'customClassName',
true
);
- const { vkbCustomCss, className } = attributes;
- // 追加CSSを半角文字列で分けて配列化
- const nowClassArray = className ? className.split(' ') : [];
+ const { vkbCustomCss } = attributes;
+ // 編集画面で使用出来る Unique id
+ // @see https://github.com/WordPress/gutenberg/blob/086b77ed409a70a6c6a6e74dee704851eff812f2/packages/compose/src/hooks/use-instance-id/README.md
+ const id = useInstanceId(BlockListBlock);
+ const uniqueClass = `vk_custom_css_${id}`;
- // editor用のクラス名
+ // editor用のクラス名を追加
const customCssClass = classnames(props.className, {
// vkbCustomCssが存在するかつ空白文字のみではない
+ [uniqueClass]: vkbCustomCss && vkbCustomCss.match(/\S/g),
[`vk_edit_custom_css`]:
vk_blocks_params.show_custom_css_editor_flag === 'true' &&
vkbCustomCss &&
@@ -259,9 +240,6 @@ addFilter(
// selectorをUniqueクラスに変換する
let cssTag = vkbCustomCss ? vkbCustomCss : '';
- const uniqueClass = customCssRegex.test(className)
- ? nowClassArray.find((i) => i.includes('vk_custom_css'))
- : null;
if (cssTag && uniqueClass) {
cssTag = vkbCustomCss.replace('selector', '.' + uniqueClass);
}
From 4450460f684280fbc8163e5d8d4624e0b135c8ca Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Mon, 26 Sep 2022 17:34:14 +0900
Subject: [PATCH 35/56] =?UTF-8?q?fix=20/=20custom-css=20=E3=82=AB=E3=82=B9?=
=?UTF-8?q?=E3=82=BF=E3=83=A0CSS=E7=94=A8=E3=82=AF=E3=83=A9=E3=82=B9?=
=?UTF-8?q?=E3=82=92=E5=89=8A=E9=99=A4=E3=81=99=E3=82=8B=E6=9D=A1=E4=BB=B6?=
=?UTF-8?q?=E3=82=92=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 22 ++++++++++---------
1 file changed, 12 insertions(+), 10 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 8d6f4051a..6d1c57616 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -77,20 +77,22 @@ addFilter(
useEffect(() => {
// カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
if (
- customCssSelectorRegex.test(vkbCustomCss) &&
- nowClassArray.indexOf('vk_custom_css') === -1
+ nowClassArray.indexOf('vk_custom_css') === -1 &&
+ customCssSelectorRegex.test(vkbCustomCss)
) {
setAttributes({
className: classnames(nowClassArray, `vk_custom_css`),
});
}
- // selectorがなければカスタムCSS用クラスを削除
- if (!customCssSelectorRegex.test(vkbCustomCss)) {
- const newClassArray = nowClassArray.filter(
- (x) => !customCssRegex.test(x)
- );
- setAttributes({ className: classnames(newClassArray) });
+ // カスタムCSS用クラスがあるかつselectorがなければカスタムCSS用クラスを削除
+ if (
+ nowClassArray.indexOf('vk_custom_css') !== -1 &&
+ !customCssSelectorRegex.test(vkbCustomCss)
+ ) {
+ const deleteClass = nowClassArray.indexOf('vk_custom_css');
+ nowClassArray.splice(deleteClass, 1);
+ setAttributes({ className: classnames(nowClassArray) });
}
}, [vkbCustomCss]);
@@ -98,8 +100,8 @@ addFilter(
useEffect(() => {
// カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
if (
- customCssSelectorRegex.test(vkbCustomCss) &&
- nowClassArray.indexOf('vk_custom_css') === -1
+ nowClassArray.indexOf('vk_custom_css') === -1 &&
+ customCssSelectorRegex.test(vkbCustomCss)
) {
setAttributes({
className: classnames(nowClassArray, `vk_custom_css`),
From c983777505ee45760118331c8c8fd1645fbecc17 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 27 Sep 2022 09:42:37 +0900
Subject: [PATCH 36/56] =?UTF-8?q?env=20/=20custom=20css=20=E3=83=86?=
=?UTF-8?q?=E3=82=B9=E3=83=88=E7=94=A8version=E5=A4=89=E6=9B=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
inc/vk-blocks/class-vk-blocks-block-loader.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/vk-blocks/class-vk-blocks-block-loader.php b/inc/vk-blocks/class-vk-blocks-block-loader.php
index 602b995e4..1b1feae67 100644
--- a/inc/vk-blocks/class-vk-blocks-block-loader.php
+++ b/inc/vk-blocks/class-vk-blocks-block-loader.php
@@ -207,7 +207,7 @@ public function register_blocks_assets() {
'vk-blocks-build-js',
$this->assets_build_url . 'block-build.js',
$asset_file['dependencies'],
- VK_BLOCKS_VERSION,
+ $asset_file['version'],
true
);
From f91cf047955122e29731996c95518af0d1ee2afa Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 28 Sep 2022 09:40:27 +0900
Subject: [PATCH 37/56] =?UTF-8?q?fix=20/=20custom=20css=20=20inner=20block?=
=?UTF-8?q?=E7=94=A8=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
inc/vk-blocks-pro/extensions/common/custom-css-extension.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 1a8a89799..2941c5c1e 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -23,7 +23,7 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
$css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
$css = vk_blocks_minify_css( $css );
// vk_custom_css文字列をUniqueクラスに変換
- $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content );
+ $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
if ( ! empty( $css ) ) {
return '' . $content;
}
From fac8f6dcabeaa41d120a6dbecbc5d410ea620d8b Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 28 Sep 2022 09:52:26 +0900
Subject: [PATCH 38/56] =?UTF-8?q?fix=20/=20custom=20css=20=E3=82=AA?=
=?UTF-8?q?=E3=83=97=E3=82=B7=E3=83=A7=E3=83=B3=E5=80=A4=E3=81=AE=E5=87=A6?=
=?UTF-8?q?=E7=90=86=E3=82=92=E7=84=A1=E6=96=99=E7=89=88=E3=81=B8?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../class-vk-blocks-pro-options.php | 10 ++--------
inc/vk-blocks/class-vk-blocks-options.php | 16 +++++++++++-----
test/phpunit/pro/test-get-options.php | 6 +++---
test/phpunit/pro/test-vk-blocks-options.php | 12 ++++--------
4 files changed, 20 insertions(+), 24 deletions(-)
diff --git a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
index 7a9764062..7e27303bd 100644
--- a/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
+++ b/inc/vk-blocks-pro/class-vk-blocks-pro-options.php
@@ -16,20 +16,14 @@ class VK_Blocks_Pro_Options {
* @var array
*/
private $vk_blocks_pro_option_schema = array(
- 'display_vk_block_template' => array(
+ 'display_vk_block_template' => array(
'type' => 'string',
'default' => 'display',
),
- 'new_faq_accordion' => array(
+ 'new_faq_accordion' => array(
'type' => 'string',
'default' => 'disable',
),
- // 後から追加したbooleanは値がない時にupdate_option出来なくなるのでstringで保存
- // https://core.trac.wordpress.org/ticket/40007
- 'show_custom_css_editor_flag' => array(
- 'type' => 'string',
- 'default' => 'true',
- ),
);
/**
diff --git a/inc/vk-blocks/class-vk-blocks-options.php b/inc/vk-blocks/class-vk-blocks-options.php
index c698fbee0..9fafd4c81 100644
--- a/inc/vk-blocks/class-vk-blocks-options.php
+++ b/inc/vk-blocks/class-vk-blocks-options.php
@@ -35,15 +35,15 @@ private function __construct() {
*/
public static function options_scheme() {
$default_options_schema = array(
- 'balloon_border_width' => array(
+ 'balloon_border_width' => array(
'type' => 'number',
'default' => 1,
),
- 'margin_unit' => array(
+ 'margin_unit' => array(
'type' => 'string',
'default' => 'rem',
),
- 'margin_size' => array(
+ 'margin_size' => array(
'type' => 'object',
'items' => array(
'xl' => array(
@@ -133,12 +133,18 @@ public static function options_scheme() {
),
),
),
- 'load_separate_option' => array(
+ 'load_separate_option' => array(
'type' => 'boolean',
'default' => false,
),
+ // 後から追加したbooleanは値がない時にupdate_option出来なくなるのでstringで保存
+ // https://core.trac.wordpress.org/ticket/40007
+ 'show_custom_css_editor_flag' => array(
+ 'type' => 'string',
+ 'default' => 'true',
+ ),
);
- $array = array_merge( $default_options_schema, apply_filters( 'vk_blocks_default_options_scheme', array() ) );
+ $array = array_merge( $default_options_schema, apply_filters( 'vk_blocks_default_options_scheme', array() ) );
return $array;
}
diff --git a/test/phpunit/pro/test-get-options.php b/test/phpunit/pro/test-get-options.php
index d01c028d4..564785d4b 100644
--- a/test/phpunit/pro/test-get-options.php
+++ b/test/phpunit/pro/test-get-options.php
@@ -84,10 +84,10 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => false,
+ 'show_custom_css_editor_flag' => 'true',
'vk_blocks_pro_license_key' => null,
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'disable',
- 'show_custom_css_editor_flag' => 'true',
),
),
// デフォルトの表示非表示調整 v0.44.13
@@ -352,10 +352,10 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => true,
+ 'show_custom_css_editor_flag' => 'false',
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
- 'show_custom_css_editor_flag' => 'false',
),
'correct' => array(
'balloon_border_width' => 2,
@@ -388,10 +388,10 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => true,
+ 'show_custom_css_editor_flag' => 'false',
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
- 'show_custom_css_editor_flag' => 'false',
),
),
);
diff --git a/test/phpunit/pro/test-vk-blocks-options.php b/test/phpunit/pro/test-vk-blocks-options.php
index 315e70095..14faffb85 100644
--- a/test/phpunit/pro/test-vk-blocks-options.php
+++ b/test/phpunit/pro/test-vk-blocks-options.php
@@ -24,10 +24,6 @@ public function test_options_scheme() {
'type' => 'string',
'default' => 'disable',
),
- 'show_custom_css_editor_flag' => array(
- 'type' => 'string',
- 'default' => 'true',
- ),
),
'correct' => array(
'balloon_border_width' => array(
@@ -132,6 +128,10 @@ public function test_options_scheme() {
'type' => 'boolean',
'default' => false,
),
+ 'show_custom_css_editor_flag' => array(
+ 'type' => 'string',
+ 'default' => 'true',
+ ),
'vk_blocks_pro_license_key' => array(
'type' => 'string',
'default' => null,
@@ -144,10 +144,6 @@ public function test_options_scheme() {
'type' => 'string',
'default' => 'disable',
),
- 'show_custom_css_editor_flag' => array(
- 'type' => 'string',
- 'default' => 'true',
- ),
),
),
);
From d327697e791d46fa27310636fdc8fcfd7e07b5b0 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 11 Oct 2022 13:36:44 +0900
Subject: [PATCH 39/56] =?UTF-8?q?fix=20/=20custom-css=20=E3=83=96=E3=83=AD?=
=?UTF-8?q?=E3=83=83=E3=82=AF=E7=9B=B4=E5=89=8D=E3=81=AB=E3=82=A4=E3=83=B3?=
=?UTF-8?q?=E3=83=A9=E3=82=A4=E3=83=B3=E3=81=A7css=E3=82=92=E5=87=BA?=
=?UTF-8?q?=E5=8A=9B=E3=81=99=E3=82=8B=E3=81=A8border=20box=20>=20*=20{=20?=
=?UTF-8?q?=E3=81=AA=E3=81=A9=E3=81=A7=E5=BD=B1=E9=9F=BF=E3=81=8C=E5=87=BA?=
=?UTF-8?q?=E3=82=8B=E3=81=AE=E3=81=A7=E3=82=B3=E3=82=A2=E3=81=AEwp-contai?=
=?UTF-8?q?ner=E3=81=A8=E5=90=8C=E3=81=98=E4=BD=8D=E7=BD=AE=E3=81=ABcss?=
=?UTF-8?q?=E3=82=92=E5=87=BA=E5=8A=9B?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../extensions/common/custom-css-extension.php | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 2941c5c1e..b92984d87 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -25,7 +25,12 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
// vk_custom_css文字列をUniqueクラスに変換
$content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
if ( ! empty( $css ) ) {
- return '' . $content;
+ if ( function_exists( 'wp_enqueue_block_support_styles' ) ) {
+ wp_enqueue_block_support_styles( $css );
+ return $content;
+ } else {
+ return '' . $content;
+ }
}
return $block_content;
}
From 287b26f7774f29c02c5c0c008018173b77eb19b1 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 12 Oct 2022 18:01:28 +0900
Subject: [PATCH 40/56] =?UTF-8?q?fix=20/=20custom-css=20selector=E6=96=87?=
=?UTF-8?q?=E5=AD=97=E5=88=97=E3=81=8C=E7=84=A1=E3=81=84=E3=81=A8=E3=81=8D?=
=?UTF-8?q?=E3=81=AE=E5=AF=BE=E5=BF=9C?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../extensions/common/custom-css-extension.php | 14 ++++++++++----
1 file changed, 10 insertions(+), 4 deletions(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index b92984d87..f2d64c6c8 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -19,15 +19,21 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
$css = $block['attrs']['vkbCustomCss'];
// Uniqueクラスを生成
$custom_css_class = wp_unique_id( 'vk_custom_css_' );
- // selector文字列をUniqueクラスに変換
- $css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
+ // selector文字列があるとき
+ if ( strpos( $css, 'selector' ) !== false ) {
+ // selectorをUniqueクラスに変換
+ $css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
+ // vk_custom_cssをUniqueクラスに変換
+ $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
+ } else {
+ $content = $block_content;
+ }
$css = vk_blocks_minify_css( $css );
- // vk_custom_css文字列をUniqueクラスに変換
- $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
if ( ! empty( $css ) ) {
if ( function_exists( 'wp_enqueue_block_support_styles' ) ) {
wp_enqueue_block_support_styles( $css );
return $content;
+ // 5.8のサポートを切るならelse内は削除する
} else {
return '' . $content;
}
From 80cd8a76493e316fdcbe56b1373966cbc44f0fb9 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Thu, 13 Oct 2022 11:18:03 +0900
Subject: [PATCH 41/56] =?UTF-8?q?fix=20/=20custom=20css=20=E6=9D=A1?=
=?UTF-8?q?=E4=BB=B6=E3=82=92=E3=82=B7=E3=83=B3=E3=83=97=E3=83=AB=E3=81=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../extensions/common/custom-css-extension.php | 8 +++-----
1 file changed, 3 insertions(+), 5 deletions(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index f2d64c6c8..e0984ab2b 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -24,18 +24,16 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
// selectorをUniqueクラスに変換
$css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
// vk_custom_cssをUniqueクラスに変換
- $content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
- } else {
- $content = $block_content;
+ $block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
}
$css = vk_blocks_minify_css( $css );
if ( ! empty( $css ) ) {
if ( function_exists( 'wp_enqueue_block_support_styles' ) ) {
wp_enqueue_block_support_styles( $css );
- return $content;
+ return $block_content;
// 5.8のサポートを切るならelse内は削除する
} else {
- return '' . $content;
+ return '' . $block_content;
}
}
return $block_content;
From 3ab98bd7355980963e7f40bbf91d890b05317e59 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Thu, 13 Oct 2022 11:19:27 +0900
Subject: [PATCH 42/56] =?UTF-8?q?fix=20/=20custom=20css=20=E5=85=A8?=
=?UTF-8?q?=E8=A7=92=E3=82=B5=E3=82=B8=E3=82=A7=E3=82=B9=E3=83=88=E8=BF=BD?=
=?UTF-8?q?=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 12 ++++++++++++
1 file changed, 12 insertions(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 6d1c57616..32392e4f4 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -148,6 +148,18 @@ addFilter(
setAttributes({ vkbCustomCss: value });
}}
/>
+ {(() => {
+ if (vkbCustomCss.indexOf(' ') !== -1) {
+ return (
+
+ {__(
+ '全角スペースが含まれています。CSSが効かない可能性があります。',
+ 'vk-blocks'
+ )}
+
+ );
+ }
+ })()}
{__(
'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
From 9aa0a831c20b41a9c5e09f239d350cf88d3ae5c4 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 14 Oct 2022 10:06:53 +0900
Subject: [PATCH 43/56] fix / custom css editor components
---
src/components/code-mirror-css/index.js | 29 +++++++++++++++++++
.../common/custom-css-extension/index.js | 15 ++--------
2 files changed, 32 insertions(+), 12 deletions(-)
create mode 100644 src/components/code-mirror-css/index.js
diff --git a/src/components/code-mirror-css/index.js b/src/components/code-mirror-css/index.js
new file mode 100644
index 000000000..de1d59593
--- /dev/null
+++ b/src/components/code-mirror-css/index.js
@@ -0,0 +1,29 @@
+/**
+ * External dependencies
+ */
+import classnames from 'classnames';
+import CodeMirror from '@uiw/react-codemirror';
+import { css } from '@codemirror/lang-css';
+import { EditorView } from '@codemirror/view';
+
+export const CodeMirrorCss = (props) => {
+ const {
+ id = 'vk-custom-css-code-mirror',
+ className,
+ height = '200px',
+ value,
+ onChange,
+ } = props;
+
+ return (
+
+ );
+};
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 32392e4f4..9dffd8d3b 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -14,13 +14,11 @@ import { addQueryArgs } from '@wordpress/url';
* External dependencies
*/
import classnames from 'classnames';
-import CodeMirror from '@uiw/react-codemirror';
-import { css } from '@codemirror/lang-css';
-import { EditorView } from '@codemirror/view';
/**
* Internal dependencies
*/
+import { CodeMirrorCss } from '@vkblocks/components/code-mirror-css';
import { ReactComponent as IconSVG } from './icon.svg';
/*globals vk_blocks_params */
@@ -134,15 +132,8 @@ addFilter(
title={__('Custom CSS', 'vk-blocks')}
initialOpen={false}
>
- {
setAttributes({ vkbCustomCss: value });
From aae7de569aa1bdc65a8509fdf6e3e8a603a527b8 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 14 Oct 2022 17:11:12 +0900
Subject: [PATCH 44/56] =?UTF-8?q?fix=20/=20custom=20css=20Unique=E3=82=AF?=
=?UTF-8?q?=E3=83=A9=E3=82=B9=E3=81=AE=E5=A4=89=E6=8F=9B=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../extensions/common/custom-css-extension.php | 10 +++++++++-
1 file changed, 9 insertions(+), 1 deletion(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index e0984ab2b..449a3b2cc 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -23,8 +23,16 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
if ( strpos( $css, 'selector' ) !== false ) {
// selectorをUniqueクラスに変換
$css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
+
// vk_custom_cssをUniqueクラスに変換
- $block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
+ if ( strpos( $block_content, 'vk_custom_css"' ) !== false ) {
+ // vk_custom_cssが最後に(のみ)付いている時 (ex:class="hoge vk_custom_css")
+ $block_content = preg_replace( '/vk_custom_css"/', $custom_css_class . '"', $block_content, 1 );
+ } elseif ( strpos( $block_content, 'vk_custom_css ' ) !== false ) {
+ // vk_custom_cssが途中に付いている時半角スペースが後に続く (ex:class="hoge vk_custom_css huga")
+ $block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
+ }
+
}
$css = vk_blocks_minify_css( $css );
if ( ! empty( $css ) ) {
From d310c03ae2168f8a936086b07856d9f88ef6fe4c Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 14 Oct 2022 17:11:46 +0900
Subject: [PATCH 45/56] =?UTF-8?q?fix=20/=20custom=20css=20=E3=83=96?=
=?UTF-8?q?=E3=83=AD=E3=83=83=E3=82=AF=E3=82=A8=E3=83=A9=E3=83=BC=E3=82=92?=
=?UTF-8?q?=E4=BF=AE=E6=AD=A3?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 9dffd8d3b..fb393604a 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -140,7 +140,10 @@ addFilter(
}}
/>
{(() => {
- if (vkbCustomCss.indexOf(' ') !== -1) {
+ if (
+ vkbCustomCss &&
+ vkbCustomCss.indexOf(' ') !== -1
+ ) {
return (
{__(
From 0cd4dc83b7d5a4d56841578277aca70e8adae552 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 14 Oct 2022 17:12:34 +0900
Subject: [PATCH 46/56] phpcs
---
inc/vk-blocks-pro/extensions/common/custom-css-extension.php | 1 -
1 file changed, 1 deletion(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 449a3b2cc..a397ed1e7 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -32,7 +32,6 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
// vk_custom_cssが途中に付いている時半角スペースが後に続く (ex:class="hoge vk_custom_css huga")
$block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
}
-
}
$css = vk_blocks_minify_css( $css );
if ( ! empty( $css ) ) {
From 59d37e8d6a0e392547debe1166faf462ffa06bde Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Mon, 17 Oct 2022 10:08:45 +0900
Subject: [PATCH 47/56] =?UTF-8?q?fix=20/=20custom=20css=20Unique=E3=82=AF?=
=?UTF-8?q?=E3=83=A9=E3=82=B9=E3=81=AE=E5=A4=89=E6=8F=9B=E6=96=B9=E6=B3=95?=
=?UTF-8?q?=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../extensions/common/custom-css-extension.php | 16 +++++++++++-----
1 file changed, 11 insertions(+), 5 deletions(-)
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index a397ed1e7..12711353d 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -25,11 +25,17 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
$css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
// vk_custom_cssをUniqueクラスに変換
- if ( strpos( $block_content, 'vk_custom_css"' ) !== false ) {
- // vk_custom_cssが最後に(のみ)付いている時 (ex:class="hoge vk_custom_css")
- $block_content = preg_replace( '/vk_custom_css"/', $custom_css_class . '"', $block_content, 1 );
- } elseif ( strpos( $block_content, 'vk_custom_css ' ) !== false ) {
- // vk_custom_cssが途中に付いている時半角スペースが後に続く (ex:class="hoge vk_custom_css huga")
+ if ( strpos( $block_content, ' vk_custom_css ' ) !== false ) {
+ // vk_custom_cssが途中に付いている (ex:class="hoge vk_custom_css huga")
+ $block_content = preg_replace( '/ vk_custom_css /', ' ' . $custom_css_class . ' ', $block_content, 1 );
+ } elseif ( strpos( $block_content, '="vk_custom_css ' ) !== false ) {
+ // vk_custom_cssから始まる 複数クラス
+ $block_content = preg_replace( '/="vk_custom_css /', '="' . $custom_css_class . ' ', $block_content, 1 );
+ } elseif ( strpos( $block_content, ' vk_custom_css"' ) !== false ) {
+ // vk_custom_cssで終わる 複数クラス
+ $block_content = preg_replace( '/ vk_custom_css"/', ' ' . $custom_css_class . '"', $block_content, 1 );
+ } else {
+ // vk_custom_cssのみ
$block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
}
}
From 1b826077e9671e239cd6aa6d2afe3e74e991eefa Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 18 Oct 2022 16:35:14 +0900
Subject: [PATCH 48/56] =?UTF-8?q?fix=20/=20custom=20css=20=E6=B3=A8?=
=?UTF-8?q?=E6=84=8F=E6=9B=B8=E3=81=8D=E8=AA=BF=E6=95=B4?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/extensions/common/custom-css-extension/index.js | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index fb393604a..e944c0443 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -147,7 +147,7 @@ addFilter(
return (
{__(
- '全角スペースが含まれています。CSSが効かない可能性があります。',
+ '注意 : 全角スペースが含まれています。CSSが効かない可能性があります。',
'vk-blocks'
)}
From ad3d49f81474eb6e38ab2c82132f8037dd23b98c Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 19 Oct 2022 10:25:01 +0900
Subject: [PATCH 49/56] =?UTF-8?q?fix=20/=20custom=20css=20js=E3=81=A7regis?=
=?UTF-8?q?terBlockType=E3=81=97=E3=81=AA=E3=81=84=E3=81=A86.0=E3=81=8B?=
=?UTF-8?q?=E3=82=896.1=E3=81=AB=E3=82=A2=E3=83=83=E3=83=97=E3=83=87?=
=?UTF-8?q?=E3=83=BC=E3=83=88=E3=81=97=E3=81=9F=E6=99=82=E3=81=AB=E3=82=B0?=
=?UTF-8?q?=E3=83=AB=E3=83=BC=E3=83=97=E3=83=96=E3=83=AD=E3=83=83=E3=82=AF?=
=?UTF-8?q?=E3=81=AA=E3=81=A9=E3=81=A7attribute=E3=81=8C=E7=84=A1=E3=81=8F?=
=?UTF-8?q?=E3=81=AA=E3=82=8B=E3=81=AE=E3=81=A7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 24 +++++++++++++++++++
1 file changed, 24 insertions(+)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index e944c0443..b9cad29aa 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -53,6 +53,30 @@ export const isAddBlockCss = (blockName) => {
export const customCssRegex = /vk_custom_css/;
export const customCssSelectorRegex = /selector/;
+/**
+ * Filters registered block settings.
+ */
+addFilter(
+ 'blocks.registerBlockType',
+ 'vk-blocks/custom-css-extension',
+ (settings) => {
+ const hasCustomClassName = hasBlockSupport(
+ settings.name,
+ 'customClassName',
+ true
+ );
+ if (isAddBlockCss(settings.name) && hasCustomClassName) {
+ settings.attributes = {
+ ...settings.attributes,
+ vkbCustomCss: {
+ type: 'string',
+ },
+ };
+ }
+ return settings;
+ }
+);
+
/**
* edit.js
*/
From 5e53f0506fd4bdb8604511ad4fd2fea06fadc501 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 19 Oct 2022 10:41:23 +0900
Subject: [PATCH 50/56] fix / custom css translate
---
src/admin/custom-css.js | 12 ++++++--
.../common/custom-css-extension/index.js | 30 +++++++++++--------
2 files changed, 28 insertions(+), 14 deletions(-)
diff --git a/src/admin/custom-css.js b/src/admin/custom-css.js
index 4c06157c7..f03d1b368 100644
--- a/src/admin/custom-css.js
+++ b/src/admin/custom-css.js
@@ -24,11 +24,19 @@ export default function AdminCustomCss() {
<>
- {__('Custom CSS Setting', 'vk-blocks')}
+ {__(
+ 'カスタムCSS設定',
+ // 'Custom CSS Setting',
+ 'vk-blocks'
+ )}
{
if (newValue) {
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index b9cad29aa..507db40c4 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -153,7 +153,11 @@ addFilter(
}
- title={__('Custom CSS', 'vk-blocks')}
+ title={__(
+ 'カスタムCSS',
+ // 'Custom CSS',
+ 'vk-blocks'
+ )}
initialOpen={false}
>
{__(
'注意 : 全角スペースが含まれています。CSSが効かない可能性があります。',
+ // 'Note : Contains double-byte spaces; CSS may not work.',
'vk-blocks'
)}
@@ -181,22 +186,24 @@ addFilter(
{__(
'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
+ // 'If selector is specified, it is replaced by a block-specific CSS class.',
'vk-blocks'
)}
{__(
'"selector"以外のCSSセレクターは、ページ全体に影響する可能性があります。',
+ // 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
'vk-blocks'
)}
- {/*
+
{__(
- 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
+ '例:',
+ // 'Example:',
'vk-blocks'
)}
-
*/}
- {__('Example:', 'vk-blocks')}
+
{__(
'編集画面をできるだけ公開画面に近づけたい場合や、自作のCSSが識別表示用のCSSと干渉して編集画面で意図した通りに表示されない場合は、非表示にすることをお勧めします。',
+ // 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
'vk-blocks'
)}
- {/*
- {__(
- 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
- 'vk-blocks'
- )}
-
*/}
- {__('Custom CSS Setting', 'vk-blocks')}
+ {__(
+ 'カスタムCSS設定',
+ // 'Custom CSS Setting',
+ 'vk-blocks'
+ )}
From a7d4c63d08e4ac47f8a982d76e5e5af6b1ac8532 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 19 Oct 2022 10:56:28 +0900
Subject: [PATCH 51/56] add / custom css translate
---
inc/vk-blocks-pro/admin-pro/admin-pro.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/vk-blocks-pro/admin-pro/admin-pro.php b/inc/vk-blocks-pro/admin-pro/admin-pro.php
index 6c7ddd103..b46b63968 100644
--- a/inc/vk-blocks-pro/admin-pro/admin-pro.php
+++ b/inc/vk-blocks-pro/admin-pro/admin-pro.php
@@ -12,7 +12,7 @@
*/
function vk_blocks_pro_menu( $pro_menu_html ) {
$pro_menu_html = '' . __( 'FAQ Setting', 'vk-blocks' ) . ' ';
- $pro_menu_html = '' . __( 'Custom CSS Setting', 'vk-blocks' ) . ' ';
+ $pro_menu_html = '' . __( 'Custom CSS Setting', /* 'カスタムCSS設定', */ 'vk-blocks' ) . ' ';
return $pro_menu_html;
}
add_action( 'vk_blocks_pro_menu', 'vk_blocks_pro_menu' );
From 07a561d4e85aa52b2dbd4d747f0988ab2ce6dbcf Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Mon, 24 Oct 2022 10:42:37 +0900
Subject: [PATCH 52/56] add / css custom-css-extension
---
.../_editor_before_custom-css-extension.scss | 7 +
.../common/custom-css-extension.php | 149 +++---
inc/vk-blocks/class-vk-blocks-options.php | 6 +-
src/admin/custom-css.js | 19 +-
.../common/custom-css-extension/index.js | 454 +++++++++---------
test/phpunit/pro/test-get-options.php | 8 +-
test/phpunit/pro/test-vk-blocks-options.php | 2 +-
7 files changed, 345 insertions(+), 300 deletions(-)
diff --git a/editor-css/_editor_before_custom-css-extension.scss b/editor-css/_editor_before_custom-css-extension.scss
index 5f831865a..e22bec7be 100644
--- a/editor-css/_editor_before_custom-css-extension.scss
+++ b/editor-css/_editor_before_custom-css-extension.scss
@@ -22,3 +22,10 @@
top: 2em;
}
}
+
+.vk-custom-css-sample-code {
+ white-space: pre-wrap;
+ padding: 16px;
+ display: block;
+ background: #f5f5f5;
+}
diff --git a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
index 12711353d..02b279f5f 100644
--- a/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
+++ b/inc/vk-blocks-pro/extensions/common/custom-css-extension.php
@@ -6,54 +6,35 @@
*/
/**
- * Render Custom Css Extension css
- *
- * @see https://github.com/WordPress/gutenberg/blob/3358251ae150e33dd6c0e0fb15be110cca1b5c59/lib/block-supports/layout.php#L294
+ * カスタムCSSをサポートしているかどうか
*
- * @param string $block_content block_content.
- * @param array $block block.
+ * @param string $block_name block_name.
* @return string
*/
-function vk_blocks_custom_css_extension( $block_content, $block ) {
- if ( ! empty( $block['attrs']['vkbCustomCss'] ) ) {
- $css = $block['attrs']['vkbCustomCss'];
- // Uniqueクラスを生成
- $custom_css_class = wp_unique_id( 'vk_custom_css_' );
- // selector文字列があるとき
- if ( strpos( $css, 'selector' ) !== false ) {
- // selectorをUniqueクラスに変換
- $css = preg_replace( '/selector/', '.' . $custom_css_class, $css );
+function vk_blocks_has_custom_css_support( $block_name ) {
+ $block_type = WP_Block_Type_Registry::get_instance()->get_registered( $block_name );
+ if ( ! block_has_support( $block_type, array( 'customClassName' ), true ) ) {
+ return false;
+ }
- // vk_custom_cssをUniqueクラスに変換
- if ( strpos( $block_content, ' vk_custom_css ' ) !== false ) {
- // vk_custom_cssが途中に付いている (ex:class="hoge vk_custom_css huga")
- $block_content = preg_replace( '/ vk_custom_css /', ' ' . $custom_css_class . ' ', $block_content, 1 );
- } elseif ( strpos( $block_content, '="vk_custom_css ' ) !== false ) {
- // vk_custom_cssから始まる 複数クラス
- $block_content = preg_replace( '/="vk_custom_css /', '="' . $custom_css_class . ' ', $block_content, 1 );
- } elseif ( strpos( $block_content, ' vk_custom_css"' ) !== false ) {
- // vk_custom_cssで終わる 複数クラス
- $block_content = preg_replace( '/ vk_custom_css"/', ' ' . $custom_css_class . '"', $block_content, 1 );
- } else {
- // vk_custom_cssのみ
- $block_content = preg_replace( '/vk_custom_css/', $custom_css_class, $block_content, 1 );
- }
- }
- $css = vk_blocks_minify_css( $css );
- if ( ! empty( $css ) ) {
- if ( function_exists( 'wp_enqueue_block_support_styles' ) ) {
- wp_enqueue_block_support_styles( $css );
- return $block_content;
- // 5.8のサポートを切るならelse内は削除する
- } else {
- return '' . $block_content;
- }
+ $return_bool = preg_match( '/core|vk-blocks/', $block_name ) ? true : false;
+
+ $exclude_blocks = array(
+ // ExUnitに入っているvk blocksブロック
+ 'vk-blocks/share-button',
+ 'vk-blocks/child-page-index',
+ 'vk-blocks/contact-section',
+ 'vk-blocks/page-list-ancestor',
+ 'vk-blocks/sitemap',
+ 'vk-blocks/cta',
+ );
+ foreach ( $exclude_blocks as $exclude_block ) {
+ if ( $block_name === $exclude_block ) {
+ $return_bool = false;
}
- return $block_content;
}
- return $block_content;
-}
-add_filter( 'render_block', 'vk_blocks_custom_css_extension', 10, 2 );
+ return $return_bool;
+};
/**
* 各ブロックにvkbCustomCssのattributesを追加する
@@ -63,23 +44,77 @@ function vk_blocks_custom_css_extension( $block_content, $block ) {
* @return string
*/
function vk_blocks_add_custom_css_attributes( $settings, $metadata ) {
- if ( preg_match( '/core|vk-blocks/', $metadata['name'] ) ) {
- $attributes = array();
- if ( ! empty( $settings['attributes'] ) ) {
- $attributes = $settings['attributes'];
- }
- $add_attributes = array(
- 'vkbCustomCss' => array(
- 'type' => 'string',
- 'default' => '',
- ),
- );
+ if ( ! vk_blocks_has_custom_css_support( $metadata['name'] ) ) {
+ return $settings;
+ }
- $settings['attributes'] = array_merge(
- $attributes,
- $add_attributes
- );
+ $attributes = array();
+ if ( ! empty( $settings['attributes'] ) ) {
+ $attributes = $settings['attributes'];
}
+ $add_attributes = array(
+ 'vkbCustomCss' => array(
+ 'type' => 'string',
+ 'default' => '',
+ ),
+ );
+
+ $settings['attributes'] = array_merge(
+ $attributes,
+ $add_attributes
+ );
return $settings;
}
add_filter( 'block_type_metadata_settings', 'vk_blocks_add_custom_css_attributes', 10, 2 );
+
+/**
+ * Render Custom Css Extension css
+ *
+ * @see https://github.com/WordPress/gutenberg/blob/3358251ae150e33dd6c0e0fb15be110cca1b5c59/lib/block-supports/layout.php#L294
+ *
+ * @param string $block_content block_content.
+ * @param array $block block.
+ * @return string
+ */
+function vk_blocks_render_custom_css( $block_content, $block ) {
+ if ( ! vk_blocks_has_custom_css_support( $block['blockName'] ) ) {
+ return $block_content;
+ }
+
+ if ( empty( $block['attrs']['vkbCustomCss'] ) ) {
+ return $block_content;
+ }
+
+ $css = $block['attrs']['vkbCustomCss'];
+ // selector文字列があるとき
+ if ( strpos( $css, 'selector' ) !== false ) {
+ // Uniqueクラスを生成
+ $unique_class = wp_unique_id( 'vk_custom_css_' );
+ // selectorをUniqueクラスに変換
+ $css = preg_replace( '/selector/', '.' . $unique_class, $css );
+
+ // vk_custom_cssをUniqueクラスに変換
+ if ( strpos( $block_content, ' vk_custom_css ' ) !== false ) {
+ // vk_custom_cssが途中に付いている e.g.class="hoge vk_custom_css huga"
+ $block_content = preg_replace( '/ vk_custom_css /', ' ' . $unique_class . ' ', $block_content, 1 );
+ } elseif ( strpos( $block_content, '="vk_custom_css ' ) !== false ) {
+ // vk_custom_cssから始まる 複数クラス
+ $block_content = preg_replace( '/="vk_custom_css /', '="' . $unique_class . ' ', $block_content, 1 );
+ } elseif ( strpos( $block_content, ' vk_custom_css"' ) !== false ) {
+ // vk_custom_cssで終わる 複数クラス
+ $block_content = preg_replace( '/ vk_custom_css"/', ' ' . $unique_class . '"', $block_content, 1 );
+ } else {
+ // vk_custom_cssのみ
+ $block_content = preg_replace( '/vk_custom_css/', $unique_class, $block_content, 1 );
+ }
+ }
+ $css = vk_blocks_minify_css( $css );
+ if ( function_exists( 'wp_enqueue_block_support_styles' ) ) {
+ wp_enqueue_block_support_styles( $css );
+ // 5.8のサポートを切るならelse内は削除する
+ } else {
+ $block_content = '' . $block_content;
+ }
+ return $block_content;
+}
+add_filter( 'render_block', 'vk_blocks_render_custom_css', 10, 2 );
diff --git a/inc/vk-blocks/class-vk-blocks-options.php b/inc/vk-blocks/class-vk-blocks-options.php
index 9fafd4c81..3cb752ec8 100644
--- a/inc/vk-blocks/class-vk-blocks-options.php
+++ b/inc/vk-blocks/class-vk-blocks-options.php
@@ -137,14 +137,12 @@ public static function options_scheme() {
'type' => 'boolean',
'default' => false,
),
- // 後から追加したbooleanは値がない時にupdate_option出来なくなるのでstringで保存
- // https://core.trac.wordpress.org/ticket/40007
'show_custom_css_editor_flag' => array(
'type' => 'string',
- 'default' => 'true',
+ 'default' => 'show',
),
);
- $array = array_merge( $default_options_schema, apply_filters( 'vk_blocks_default_options_scheme', array() ) );
+ $array = array_merge( $default_options_schema, apply_filters( 'vk_blocks_default_options_scheme', array() ) );
return $array;
}
diff --git a/src/admin/custom-css.js b/src/admin/custom-css.js
index f03d1b368..fcfe67279 100644
--- a/src/admin/custom-css.js
+++ b/src/admin/custom-css.js
@@ -12,14 +12,7 @@ import { AdminContext } from '@vkblocks/admin/index';
export default function AdminCustomCss() {
const { vkBlocksOption, setVkBlocksOption } = useContext(AdminContext);
- // 後から追加したbooleanは値がない時にupdate_optionできない
- // https://core.trac.wordpress.org/ticket/40007
- let migrateLoadSeparateOption;
- if (vkBlocksOption.show_custom_css_editor_flag === 'true') {
- migrateLoadSeparateOption = true;
- } else {
- migrateLoadSeparateOption = false;
- }
+
return (
<>
@@ -37,12 +30,16 @@ export default function AdminCustomCss() {
// 'Show Custom CSS flag in editor',
'vk-blocks'
)}
- checked={migrateLoadSeparateOption}
+ checked={
+ vkBlocksOption.show_custom_css_editor_flag === 'show'
+ ? true
+ : false
+ }
onChange={(newValue) => {
if (newValue) {
- newValue = 'true';
+ newValue = 'show';
} else {
- newValue = 'false';
+ newValue = 'hide';
}
setVkBlocksOption({
...vkBlocksOption,
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 507db40c4..9e5933425 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -26,7 +26,12 @@ export const inString = (str, keyword) => {
return str.indexOf(keyword) !== -1;
};
-export const isAddBlockCss = (blockName) => {
+export const hasCustomCssSupport = (blockName) => {
+ // 追加CSSクラスを許可していない場合はfalse
+ if (!hasBlockSupport(blockName, 'customClassName', true)) {
+ return false;
+ }
+
const allowed = ['core', 'vk-blocks'];
let returnBool =
allowed.find((item) => inString(blockName, item)) !== undefined;
@@ -50,251 +55,254 @@ export const isAddBlockCss = (blockName) => {
return returnBool;
};
-export const customCssRegex = /vk_custom_css/;
+export const existsCss = (css) => {
+ // cssが存在するかつ空白文字のみではない
+ return css && css.match(/\S/g);
+};
+
export const customCssSelectorRegex = /selector/;
/**
* Filters registered block settings.
+ *
+ * @param {Object} settings
*/
-addFilter(
- 'blocks.registerBlockType',
- 'vk-blocks/custom-css-extension',
- (settings) => {
- const hasCustomClassName = hasBlockSupport(
- settings.name,
- 'customClassName',
- true
- );
- if (isAddBlockCss(settings.name) && hasCustomClassName) {
- settings.attributes = {
- ...settings.attributes,
- vkbCustomCss: {
- type: 'string',
- },
- };
- }
+export function addAttribute(settings) {
+ if (!hasCustomCssSupport(settings.name)) {
return settings;
}
-);
+ settings.attributes = {
+ ...settings.attributes,
+ vkbCustomCss: {
+ type: 'string',
+ },
+ };
+ return settings;
+}
/**
- * edit.js
+ * Override the default edit UI to include layout controls
*/
-addFilter(
- 'editor.BlockEdit',
- 'vk-blocks/custom-css',
- createHigherOrderComponent((BlockEdit) => {
- return (props) => {
- const { name, attributes, setAttributes, isSelected } = props;
- const { vkbCustomCss, className } = attributes;
- const hasCustomClassName = hasBlockSupport(
- name,
- 'customClassName',
- true
- );
- // 追加CSSを半角文字列で分けて配列化
- const nowClassArray = className ? className.split(' ') : [];
+export const withInspectorControls = createHigherOrderComponent(
+ (BlockEdit) => (props) => {
+ const { name, attributes, setAttributes, isSelected } = props;
+ if (!hasCustomCssSupport(name) || !isSelected) {
+ return ;
+ }
- // vkbCustomCssが変更されたとき
- useEffect(() => {
- // カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
- if (
- nowClassArray.indexOf('vk_custom_css') === -1 &&
- customCssSelectorRegex.test(vkbCustomCss)
- ) {
- setAttributes({
- className: classnames(nowClassArray, `vk_custom_css`),
- });
- }
+ const { vkbCustomCss, className } = attributes;
+ // 追加CSSを半角文字列で分けて配列化
+ const nowClassArray = className ? className.split(' ') : [];
- // カスタムCSS用クラスがあるかつselectorがなければカスタムCSS用クラスを削除
- if (
- nowClassArray.indexOf('vk_custom_css') !== -1 &&
- !customCssSelectorRegex.test(vkbCustomCss)
- ) {
- const deleteClass = nowClassArray.indexOf('vk_custom_css');
- nowClassArray.splice(deleteClass, 1);
- setAttributes({ className: classnames(nowClassArray) });
- }
- }, [vkbCustomCss]);
+ // 追加 CSS クラスにvk_custom_cssがあるか
+ const existsCustomCssClass = (_nowClassArray) => {
+ return _nowClassArray.indexOf('vk_custom_css') !== -1
+ ? true
+ : false;
+ };
- // classNameが変更されたときに
- useEffect(() => {
- // カスタムCSS用クラスが無いかつselectorがあればカスタムCSS用クラスを追加
- if (
- nowClassArray.indexOf('vk_custom_css') === -1 &&
- customCssSelectorRegex.test(vkbCustomCss)
- ) {
- setAttributes({
- className: classnames(nowClassArray, `vk_custom_css`),
- });
- }
- }, [className]);
+ // カスタムCSSにselectorがあるか
+ const existsCustomCssSelector = (_vkbCustomCss) => {
+ return customCssSelectorRegex.test(_vkbCustomCss);
+ };
- // アイコンのスタイル
- let iconStyle = {
- width: '24px',
- height: '24px',
- };
- // vkbCustomCssが存在するかつ空白文字のみではない
- if (vkbCustomCss && vkbCustomCss.match(/\S/g)) {
- iconStyle = {
- ...iconStyle,
- color: '#fff',
- background: '#1e1e1e',
- };
+ // vkbCustomCssが変更されたとき
+ useEffect(() => {
+ if (
+ !existsCustomCssClass(nowClassArray) &&
+ existsCustomCssSelector(vkbCustomCss)
+ ) {
+ // カスタムCSS用クラスを追加
+ setAttributes({
+ className: classnames(nowClassArray, `vk_custom_css`),
+ });
}
- if (isAddBlockCss(name) && hasCustomClassName && isSelected) {
- return (
- <>
-
-
- }
- title={__(
- 'カスタムCSS',
- // 'Custom CSS',
- 'vk-blocks'
- )}
- initialOpen={false}
- >
- {
- setAttributes({ vkbCustomCss: value });
- }}
- />
- {(() => {
- if (
- vkbCustomCss &&
- vkbCustomCss.indexOf(' ') !== -1
- ) {
- return (
-
- {__(
- '注意 : 全角スペースが含まれています。CSSが効かない可能性があります。',
- // 'Note : Contains double-byte spaces; CSS may not work.',
- 'vk-blocks'
- )}
-
- );
- }
- })()}
-
- {__(
- 'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
- // 'If selector is specified, it is replaced by a block-specific CSS class.',
- 'vk-blocks'
- )}
-
-
- {__(
- '"selector"以外のCSSセレクターは、ページ全体に影響する可能性があります。',
- // 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
- 'vk-blocks'
- )}
-
-
- {__(
- '例:',
- // 'Example:',
- 'vk-blocks'
- )}
-
-
- {'selector {\n background: #f5f5f5;\n}'}
-
-
- {__(
- '編集画面をできるだけ公開画面に近づけたい場合や、自作のCSSが識別表示用のCSSと干渉して編集画面で意図した通りに表示されない場合は、非表示にすることをお勧めします。',
- // 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
- 'vk-blocks'
- )}
-
-
- {__(
- 'カスタムCSS設定',
- // 'Custom CSS Setting',
- 'vk-blocks'
- )}
-
-
-
- >
- );
+ if (
+ existsCustomCssClass(nowClassArray) &&
+ !existsCustomCssSelector(vkbCustomCss)
+ ) {
+ // カスタムCSS用クラスを削除
+ const deleteClass = nowClassArray.indexOf('vk_custom_css');
+ nowClassArray.splice(deleteClass, 1);
+ setAttributes({ className: classnames(nowClassArray) });
}
- return ;
+ }, [vkbCustomCss]);
+
+ // classNameが変更されたときに
+ useEffect(() => {
+ if (
+ !existsCustomCssClass(nowClassArray) &&
+ existsCustomCssSelector(vkbCustomCss)
+ ) {
+ // カスタムCSS用クラスを追加
+ setAttributes({
+ className: classnames(`vk_custom_css`, nowClassArray),
+ });
+ }
+ }, [className]);
+
+ // アイコンのスタイル
+ let iconStyle = {
+ width: '24px',
+ height: '24px',
};
- }, 'vkbCustomCssSection')
+ if (existsCss(vkbCustomCss)) {
+ iconStyle = {
+ ...iconStyle,
+ color: '#fff',
+ background: '#1e1e1e',
+ };
+ }
+
+ return (
+ <>
+
+
+ }
+ title={__(
+ 'カスタムCSS',
+ // 'Custom CSS',
+ 'vk-blocks'
+ )}
+ initialOpen={false}
+ >
+ {
+ setAttributes({ vkbCustomCss: value });
+ }}
+ />
+ {(() => {
+ if (
+ vkbCustomCss &&
+ vkbCustomCss.indexOf(' ') !== -1
+ ) {
+ return (
+
+ {__(
+ '注意 : 全角スペースが含まれています。CSSが効かない可能性があります。',
+ // 'Note : Contains double-byte spaces; CSS may not work.',
+ 'vk-blocks'
+ )}
+
+ );
+ }
+ })()}
+
+ {__(
+ 'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
+ // 'If selector is specified, it is replaced by a block-specific CSS class.',
+ 'vk-blocks'
+ )}
+
+
+ {__(
+ '"selector"以外のCSSセレクターは、ページ全体に影響する可能性があります。',
+ // 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
+ 'vk-blocks'
+ )}
+
+
+ {__(
+ '例:',
+ // 'Example:',
+ 'vk-blocks'
+ )}
+
+
+ {'selector {\n background: #f5f5f5;\n}'}
+
+
+ {__(
+ '編集画面をできるだけ公開画面に近づけたい場合や、自作のCSSが識別表示用のCSSと干渉して編集画面で意図した通りに表示されない場合は、非表示にすることをお勧めします。',
+ // 'If you want the edit screen to be as close to the public screen as possible, or if your own CSS interferes with the CSS for the identification display and does not display as intended on the edit screen, please hide it.',
+ 'vk-blocks'
+ )}
+
+
+ {__(
+ 'カスタムCSS設定',
+ // 'Custom CSS Setting',
+ 'vk-blocks'
+ )}
+
+
+
+ >
+ );
+ },
+ 'withInspectorControls'
);
/**
- * edit.js
+ * Override the default block element to include elements styles.
*/
-addFilter(
- 'editor.BlockListBlock',
- 'vk-blocks/custom-css',
- createHigherOrderComponent((BlockListBlock) => {
- return (props) => {
- const { name, attributes } = props;
- const hasCustomClassName = hasBlockSupport(
- name,
- 'customClassName',
- true
- );
- const { vkbCustomCss } = attributes;
- // 編集画面で使用出来る Unique id
- // @see https://github.com/WordPress/gutenberg/blob/086b77ed409a70a6c6a6e74dee704851eff812f2/packages/compose/src/hooks/use-instance-id/README.md
- const id = useInstanceId(BlockListBlock);
- const uniqueClass = `vk_custom_css_${id}`;
+const withElementsStyles = createHigherOrderComponent(
+ (BlockListBlock) => (props) => {
+ const { name, attributes } = props;
+ if (!hasCustomCssSupport(name)) {
+ return ;
+ }
+ // 編集画面で使用出来る Unique id
+ // @see https://github.com/WordPress/gutenberg/blob/086b77ed409a70a6c6a6e74dee704851eff812f2/packages/compose/src/hooks/use-instance-id/README.md
+ const id = useInstanceId(BlockListBlock);
+ const uniqueClass = `vk_custom_css_${id}`;
- // editor用のクラス名を追加
- const customCssClass = classnames(props.className, {
- // vkbCustomCssが存在するかつ空白文字のみではない
- [uniqueClass]: vkbCustomCss && vkbCustomCss.match(/\S/g),
- [`vk_edit_custom_css`]:
- vk_blocks_params.show_custom_css_editor_flag === 'true' &&
- vkbCustomCss &&
- vkbCustomCss.match(/\S/g),
- });
+ const { vkbCustomCss } = attributes;
+ // editor用のクラス名を追加
+ const customCssClass = classnames(props.className, {
+ [uniqueClass]: existsCss(vkbCustomCss),
+ [`vk_edit_custom_css`]:
+ vk_blocks_params.show_custom_css_editor_flag === 'show' &&
+ existsCss(vkbCustomCss),
+ });
- // selectorをUniqueクラスに変換する
- let cssTag = vkbCustomCss ? vkbCustomCss : '';
- if (cssTag && uniqueClass) {
- cssTag = vkbCustomCss.replace('selector', '.' + uniqueClass);
- }
+ // selectorをUniqueクラスに変換する
+ let cssTag = vkbCustomCss ? vkbCustomCss : '';
+ if (cssTag && uniqueClass) {
+ cssTag = vkbCustomCss.replace(
+ customCssSelectorRegex,
+ '.' + uniqueClass
+ );
+ }
- if (isAddBlockCss(name) && hasCustomClassName) {
- return (
- <>
- {(() => {
- if (cssTag) {
- return ;
- }
- })()}
-
- >
- );
- }
- return ;
- };
- }, 'vkbCustomCss')
+ return (
+ <>
+ {(() => {
+ if (cssTag) {
+ return ;
+ }
+ })()}
+
+ >
+ );
+ }
+);
+
+addFilter(
+ 'blocks.registerBlockType',
+ 'vk-blocks/custom-css/addAttribute',
+ addAttribute
+);
+addFilter(
+ 'editor.BlockEdit',
+ 'vk-blocks/editor/custom-css/with-inspector-controls',
+ withInspectorControls
+);
+addFilter(
+ 'editor.BlockListBlock',
+ 'vk-blocks/style/with-block-controls',
+ withElementsStyles
);
diff --git a/test/phpunit/pro/test-get-options.php b/test/phpunit/pro/test-get-options.php
index 564785d4b..3ff5ce4f9 100644
--- a/test/phpunit/pro/test-get-options.php
+++ b/test/phpunit/pro/test-get-options.php
@@ -84,7 +84,7 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => false,
- 'show_custom_css_editor_flag' => 'true',
+ 'show_custom_css_editor_flag' => 'show',
'vk_blocks_pro_license_key' => null,
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'disable',
@@ -317,7 +317,7 @@ public function test_vk_blocks_get_options() {
'load_separate_option' => true,
'vk_blocks_pro_license_key' => 'test_license_key',
),
- 'correct' => 'true',
+ 'correct' => 'show',
),
// 全てのオプション値を変更した時
array(
@@ -352,7 +352,7 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => true,
- 'show_custom_css_editor_flag' => 'false',
+ 'show_custom_css_editor_flag' => 'hide',
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
@@ -388,7 +388,7 @@ public function test_vk_blocks_get_options() {
),
),
'load_separate_option' => true,
- 'show_custom_css_editor_flag' => 'false',
+ 'show_custom_css_editor_flag' => 'hide',
'vk_blocks_pro_license_key' => 'test_license_key',
'display_vk_block_template' => 'display',
'new_faq_accordion' => 'open',
diff --git a/test/phpunit/pro/test-vk-blocks-options.php b/test/phpunit/pro/test-vk-blocks-options.php
index 14faffb85..fa9080339 100644
--- a/test/phpunit/pro/test-vk-blocks-options.php
+++ b/test/phpunit/pro/test-vk-blocks-options.php
@@ -130,7 +130,7 @@ public function test_options_scheme() {
),
'show_custom_css_editor_flag' => array(
'type' => 'string',
- 'default' => 'true',
+ 'default' => 'show',
),
'vk_blocks_pro_license_key' => array(
'type' => 'string',
From a15f69ffd2696f419afbb8e1eb54b3ebaa0507d5 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Tue, 25 Oct 2022 18:01:46 +0900
Subject: [PATCH 53/56] =?UTF-8?q?fix=20/=20custom=20css=20=E8=AA=AC?=
=?UTF-8?q?=E6=98=8E=E3=83=AA=E3=83=B3=E3=82=AF=E3=82=92=E8=BF=BD=E5=8A=A0?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
.../common/custom-css-extension/index.js | 33 +++++++++++--------
.../specs/custom-css-extension.test.js | 16 ++++-----
2 files changed, 26 insertions(+), 23 deletions(-)
diff --git a/src/extensions/common/custom-css-extension/index.js b/src/extensions/common/custom-css-extension/index.js
index 9e5933425..ea12401b2 100644
--- a/src/extensions/common/custom-css-extension/index.js
+++ b/src/extensions/common/custom-css-extension/index.js
@@ -1,9 +1,9 @@
/**
* WordPress dependencies
*/
-import { __ } from '@wordpress/i18n';
+import { __, getLocaleData } from '@wordpress/i18n';
import { addFilter } from '@wordpress/hooks';
-import { PanelBody, Icon, Button } from '@wordpress/components';
+import { PanelBody, Icon, Button, ExternalLink } from '@wordpress/components';
import { InspectorControls } from '@wordpress/block-editor';
import { createHigherOrderComponent, useInstanceId } from '@wordpress/compose';
import { hasBlockSupport } from '@wordpress/blocks';
@@ -163,8 +163,8 @@ export const withInspectorControls = createHigherOrderComponent(
className={'vk_custom_css_panel'}
icon={ }
title={__(
- 'カスタムCSS',
- // 'Custom CSS',
+ // 'カスタムCSS',
+ 'Custom CSS',
'vk-blocks'
)}
initialOpen={false}
@@ -194,17 +194,24 @@ export const withInspectorControls = createHigherOrderComponent(
})()}
{__(
- 'selector を指定した場合、ブロック固有の CSS クラスに置き換わります。',
- // 'If selector is specified, it is replaced by a block-specific CSS class.',
- 'vk-blocks'
- )}
-
-
- {__(
- '"selector"以外のCSSセレクターは、ページ全体に影響する可能性があります。',
- // 'If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
+ 'selector を指定した場合ブロック固有の CSS クラスに置き換わります。selector以外のCSSセレクターは、ページ全体に影響する可能性があります。',
+ // 'If selector is specified, it is replaced by a block-specific CSS class. If selector is set to "selector", it will be replaced with a block-specific CSS class. CSS selectors other than "selector" may affect the entire page.',
'vk-blocks'
)}
+ {(() => {
+ const lang = getLocaleData()[''].lang;
+ if (lang === 'ja_JP') {
+ return (
+
+ 詳しくはこちら
+
+ );
+ }
+ })()}
{__(
diff --git a/test/e2e-tests/specs/custom-css-extension.test.js b/test/e2e-tests/specs/custom-css-extension.test.js
index f2b919241..5f801ae26 100644
--- a/test/e2e-tests/specs/custom-css-extension.test.js
+++ b/test/e2e-tests/specs/custom-css-extension.test.js
@@ -38,10 +38,9 @@ describe( 'CustomCssExtension', () => {
// cssを記述
await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
- const clientId = ( await getAllBlocks() )[ 0 ].clientId;
const regexBefore = new RegExp(
- `
-
+ `
+
`
);
expect(await getEditedPostContent()).toMatch(regexBefore);
@@ -54,9 +53,8 @@ describe( 'CustomCssExtension', () => {
await openButton.click();
await page.click( '[id$="vk-custom-css-code-mirror"]' );
await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
- const clientId = ( await getAllBlocks() )[ 0 ].clientId;
const regexBefore = new RegExp(
- ``
+ ``
);
expect(await getEditedPostContent()).toMatch(regexBefore);
} )
@@ -68,10 +66,9 @@ describe( 'CustomCssExtension', () => {
await openButton.click();
await page.click( '[id$="vk-custom-css-code-mirror"]' );
await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
- const clientId = ( await getAllBlocks() )[ 0 ].clientId;
const regexBefore = new RegExp(
- `
-
+ `
+
`
);
expect(await getEditedPostContent()).toMatch(regexBefore);
@@ -84,9 +81,8 @@ describe( 'CustomCssExtension', () => {
await openButton.click();
await page.click( '[id$="vk-custom-css-code-mirror"]' );
await page.keyboard.type( 'selector { \n background: #f5f5f5;' );
- const clientId = ( await getAllBlocks() )[ 0 ].clientId;
const regexBefore = new RegExp(
- ``
+ ``
);
expect(await getEditedPostContent()).toMatch(regexBefore);
} )
From 72971916f1cd995f385977230dda8552674a08d2 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Wed, 26 Oct 2022 15:34:50 +0900
Subject: [PATCH 54/56] phpcs
---
inc/vk-blocks/class-vk-blocks-options.php | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/inc/vk-blocks/class-vk-blocks-options.php b/inc/vk-blocks/class-vk-blocks-options.php
index 6c6bb8447..602fce033 100644
--- a/inc/vk-blocks/class-vk-blocks-options.php
+++ b/inc/vk-blocks/class-vk-blocks-options.php
@@ -35,15 +35,15 @@ private function __construct() {
*/
public static function options_scheme() {
$default_options_schema = array(
- 'balloon_border_width' => array(
+ 'balloon_border_width' => array(
'type' => 'number',
'default' => 1,
),
- 'margin_unit' => array(
+ 'margin_unit' => array(
'type' => 'string',
'default' => 'rem',
),
- 'margin_size' => array(
+ 'margin_size' => array(
'type' => 'object',
'items' => array(
'xl' => array(
@@ -133,19 +133,19 @@ public static function options_scheme() {
),
),
),
- 'load_separate_option' => array(
+ 'load_separate_option' => array(
'type' => 'boolean',
'default' => false,
),
- 'vk_blocks_pro_license_key' => array(
+ 'vk_blocks_pro_license_key' => array(
'type' => 'string',
'default' => null,
),
- 'display_vk_block_template' => array(
+ 'display_vk_block_template' => array(
'type' => 'string',
'default' => 'display',
),
- 'new_faq_accordion' => array(
+ 'new_faq_accordion' => array(
'type' => 'string',
'default' => 'disable',
),
From 0ac0e13308ca6029134fffbfc38285d8517123c7 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 28 Oct 2022 11:20:40 +0900
Subject: [PATCH 55/56] fix comment
---
inc/vk-blocks/vk-blocks-functions.php | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/inc/vk-blocks/vk-blocks-functions.php b/inc/vk-blocks/vk-blocks-functions.php
index 4a4f001dd..3869cc390 100644
--- a/inc/vk-blocks/vk-blocks-functions.php
+++ b/inc/vk-blocks/vk-blocks-functions.php
@@ -77,7 +77,7 @@ function vk_blocks_blocks_assets() {
} else {
wp_localize_script( 'vk-blocks-build-js', 'vk_blocks_check', array( 'is_pro' => false ) );
}
- // ホーム URL を渡す用.
+
wp_localize_script(
'vk-blocks-build-js',
'vk_blocks_params',
From 000cb1e4c63de72e03d5a6aa05daddcd8ca33748 Mon Sep 17 00:00:00 2001
From: shimotmk
Date: Fri, 28 Oct 2022 11:20:59 +0900
Subject: [PATCH 56/56] readme
---
readme.txt | 2 ++
1 file changed, 2 insertions(+)
diff --git a/readme.txt b/readme.txt
index e92d9705c..37fa24da3 100644
--- a/readme.txt
+++ b/readme.txt
@@ -64,6 +64,8 @@ e.g.
== Changelog ==
+[ Add Function ][ Custom CSS ( Pro ) ] Add custom css extension in inspector controls.
+
= 1.44.0 =
[ Add Function ][ Post List ( Pro ) ] Add post filter taxonomy relation
[ Add Function ][ Button ] Add Button Effect option in Solid color button.