Changeset 3409435
- Timestamp:
- 12/03/2025 12:01:08 PM (3 months ago)
- Location:
- block-designer
- Files:
-
- 7 edited
- 2 copied
-
tags/1.10.1 (copied) (copied from block-designer/trunk)
-
tags/1.10.1/assets/app.components/App/App.js (modified) (2 diffs)
-
tags/1.10.1/assets/app.components/AppEdit/AppEdit.js (modified) (7 diffs)
-
tags/1.10.1/block-designer.php (modified) (1 diff)
-
tags/1.10.1/readme.txt (copied) (copied from block-designer/trunk/readme.txt) (3 diffs)
-
trunk/assets/app.components/App/App.js (modified) (2 diffs)
-
trunk/assets/app.components/AppEdit/AppEdit.js (modified) (7 diffs)
-
trunk/block-designer.php (modified) (1 diff)
-
trunk/readme.txt (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
block-designer/tags/1.10.1/assets/app.components/App/App.js
r2793937 r3409435 275 275 React.createElement(bd.components.Html, 276 276 null, 277 sprintf(277 wp.i18n.sprintf( 278 278 bd.helper.escapeHtml(wp.i18n.__('Choose %s for now as it must always be the first element in a block.', 'block-designer')), 279 279 wp.element.renderToString(React.createElement('strong', … … 308 308 React.createElement(bd.components.Html, 309 309 null, 310 sprintf(310 wp.i18n.sprintf( 311 311 bd.helper.escapeHtml(wp.i18n.__('A good starting point to style your first element may be the %s panel and the %s panel.', 'block-designer')), 312 312 wp.element.renderToString(React.createElement('strong', -
block-designer/tags/1.10.1/assets/app.components/AppEdit/AppEdit.js
r2937566 r3409435 245 245 block.contentObject.domtree = newDomNode; 246 246 } else { 247 alert( sprintf(wp.i18n.__('Sorry, the "%1$s" element can\'t be used as root element. Please insert an HTML element first and then paste your "%1$s" element into it.', 'block-designer'), newDomNode.handler.name));247 alert(wp.i18n.sprintf(wp.i18n.__('Sorry, the "%1$s" element can\'t be used as root element. Please insert an HTML element first and then paste your "%1$s" element into it.', 'block-designer'), newDomNode.handler.name)); 248 248 } 249 249 } … … 398 398 if (!domtree && !canvasElement.allowRoot) { 399 399 disabled = true; 400 message = sprintf(wp.i18n.__('"%s" can not be used as root element.', 'block-designer'), canvasElement.name);400 message = wp.i18n.sprintf(wp.i18n.__('"%s" can not be used as root element.', 'block-designer'), canvasElement.name); 401 401 } 402 402 else if (domtree && !selectedNode) { … … 406 406 else if (canvasElement.allowMultiple === false && domtree?.list?.filter((item) => item[0] === canvasElement.initialContent[0]).length > 0) { 407 407 disabled = true; 408 message = sprintf(wp.i18n.__('"%s" can only be used once in a block.\nThis is a technical limitation of WordPress.', 'block-designer'), canvasElement.name);408 message = wp.i18n.sprintf(wp.i18n.__('"%s" can only be used once in a block.\nThis is a technical limitation of WordPress.', 'block-designer'), canvasElement.name); 409 409 } 410 410 … … 498 498 wp.element.createElement(bd.components.Html, 499 499 null, 500 sprintf(500 wp.i18n.sprintf( 501 501 bd.helper.escapeHtml(wp.i18n.__('To reorganize elements use shortcuts:\n%1$s copy\n%2$s cut\n%3$s paste\n%4$s delete', 'block-designer')).replace(/\n/g, '<br />'), 502 502 wp.element.renderToString([React.createElement('kbd', {style}, cmd), '+', React.createElement('kbd', null, 'C')]), … … 871 871 const deleteWord = wp.i18n.__('DELETE', 'block-designer'); 872 872 let text = this.props.edit.block.title 873 ? sprintf(wp.i18n.__('If you are sure you want to delete the block "%1$s", enter "%2$s" here:', 'block-designer'), this.props.edit.block.title, deleteWord)874 : sprintf(wp.i18n.__('If you are sure you want to delete this block, enter "%1$s" here:', 'block-designer'), deleteWord);873 ? wp.i18n.sprintf(wp.i18n.__('If you are sure you want to delete the block "%1$s", enter "%2$s" here:', 'block-designer'), this.props.edit.block.title, deleteWord) 874 : wp.i18n.sprintf(wp.i18n.__('If you are sure you want to delete this block, enter "%1$s" here:', 'block-designer'), deleteWord); 875 875 if (result !== null) { 876 text = '\n' + sprintf(wp.i18n.__('You wrote "%1$s" instead of "%2$s"', 'block-designer'), result, deleteWord) + '\n\n' + text;876 text = '\n' + wp.i18n.sprintf(wp.i18n.__('You wrote "%1$s" instead of "%2$s"', 'block-designer'), result, deleteWord) + '\n\n' + text; 877 877 } 878 878 result = prompt(text); … … 1121 1121 } 1122 1122 else if (jsName === 'style') { 1123 errorText = sprintf(wp.i18n.__('The "%s" attribute can not be added or changed manually.', 'block-designer'), 'style')1123 errorText = wp.i18n.sprintf(wp.i18n.__('The "%s" attribute can not be added or changed manually.', 'block-designer'), 'style') 1124 1124 } 1125 1125 else if (['bd', 'classes'].indexOf(jsName) > -1) { 1126 errorText = sprintf(wp.i18n.__('The attribute name "%s" is reserved and can not be added.', 'block-designer'), name)1126 errorText = wp.i18n.sprintf(wp.i18n.__('The attribute name "%s" is reserved and can not be added.', 'block-designer'), name) 1127 1127 } 1128 1128 else if (typeof selectedNode[1][jsName] !== 'undefined') { 1129 errorText = sprintf(wp.i18n.__('The attribute "%s" already exists.', 'block-designer'), name)1129 errorText = wp.i18n.sprintf(wp.i18n.__('The attribute "%s" already exists.', 'block-designer'), name) 1130 1130 } 1131 1131 … … 1207 1207 background: 'transparent' 1208 1208 }, 1209 title: sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),1209 title: wp.i18n.sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name), 1210 1210 onClick: () => { 1211 1211 delete selectedNode[1][jsName]; -
block-designer/tags/1.10.1/block-designer.php
r2987705 r3409435 4 4 * Plugin URI: https://blockdesigner.net/ 5 5 * Description: Design individual blocks for the WordPress Block Editor without any line of code 6 * Version: 1.10. 06 * Version: 1.10.1 7 7 * Requires at least: 5.9.0 8 8 * Requires PHP: 7.3 -
block-designer/tags/1.10.1/readme.txt
r3271271 r3409435 4 4 Tags: custom blocks, block editor, gutenberg, design, style 5 5 Requires at least: 5.9.0 6 Tested up to: 6. 87 Stable tag: 1.10. 06 Tested up to: 6.9 7 Stable tag: 1.10.1 8 8 Requires PHP: 7.3 9 9 License: GPLv2 or later … … 84 84 = More from the same author = 85 85 86 If you are interested in more plugins by this author, you could have a look at the [Gridzy.Gallery](https://gridzy.gallery/). 86 Click here: [wppeak.com](https://www.wppeak.com/) 87 87 88 88 … … 97 97 == Changelog == 98 98 99 = 1.10.1 - 2025-12-03 = 100 * Made Block Designer compatible with WordPress 6.9 101 99 102 = 1.10.0 - 2023-11-01 = 100 103 * Make block content translatable via WPML plugin -
block-designer/trunk/assets/app.components/App/App.js
r2793937 r3409435 275 275 React.createElement(bd.components.Html, 276 276 null, 277 sprintf(277 wp.i18n.sprintf( 278 278 bd.helper.escapeHtml(wp.i18n.__('Choose %s for now as it must always be the first element in a block.', 'block-designer')), 279 279 wp.element.renderToString(React.createElement('strong', … … 308 308 React.createElement(bd.components.Html, 309 309 null, 310 sprintf(310 wp.i18n.sprintf( 311 311 bd.helper.escapeHtml(wp.i18n.__('A good starting point to style your first element may be the %s panel and the %s panel.', 'block-designer')), 312 312 wp.element.renderToString(React.createElement('strong', -
block-designer/trunk/assets/app.components/AppEdit/AppEdit.js
r2937566 r3409435 245 245 block.contentObject.domtree = newDomNode; 246 246 } else { 247 alert( sprintf(wp.i18n.__('Sorry, the "%1$s" element can\'t be used as root element. Please insert an HTML element first and then paste your "%1$s" element into it.', 'block-designer'), newDomNode.handler.name));247 alert(wp.i18n.sprintf(wp.i18n.__('Sorry, the "%1$s" element can\'t be used as root element. Please insert an HTML element first and then paste your "%1$s" element into it.', 'block-designer'), newDomNode.handler.name)); 248 248 } 249 249 } … … 398 398 if (!domtree && !canvasElement.allowRoot) { 399 399 disabled = true; 400 message = sprintf(wp.i18n.__('"%s" can not be used as root element.', 'block-designer'), canvasElement.name);400 message = wp.i18n.sprintf(wp.i18n.__('"%s" can not be used as root element.', 'block-designer'), canvasElement.name); 401 401 } 402 402 else if (domtree && !selectedNode) { … … 406 406 else if (canvasElement.allowMultiple === false && domtree?.list?.filter((item) => item[0] === canvasElement.initialContent[0]).length > 0) { 407 407 disabled = true; 408 message = sprintf(wp.i18n.__('"%s" can only be used once in a block.\nThis is a technical limitation of WordPress.', 'block-designer'), canvasElement.name);408 message = wp.i18n.sprintf(wp.i18n.__('"%s" can only be used once in a block.\nThis is a technical limitation of WordPress.', 'block-designer'), canvasElement.name); 409 409 } 410 410 … … 498 498 wp.element.createElement(bd.components.Html, 499 499 null, 500 sprintf(500 wp.i18n.sprintf( 501 501 bd.helper.escapeHtml(wp.i18n.__('To reorganize elements use shortcuts:\n%1$s copy\n%2$s cut\n%3$s paste\n%4$s delete', 'block-designer')).replace(/\n/g, '<br />'), 502 502 wp.element.renderToString([React.createElement('kbd', {style}, cmd), '+', React.createElement('kbd', null, 'C')]), … … 871 871 const deleteWord = wp.i18n.__('DELETE', 'block-designer'); 872 872 let text = this.props.edit.block.title 873 ? sprintf(wp.i18n.__('If you are sure you want to delete the block "%1$s", enter "%2$s" here:', 'block-designer'), this.props.edit.block.title, deleteWord)874 : sprintf(wp.i18n.__('If you are sure you want to delete this block, enter "%1$s" here:', 'block-designer'), deleteWord);873 ? wp.i18n.sprintf(wp.i18n.__('If you are sure you want to delete the block "%1$s", enter "%2$s" here:', 'block-designer'), this.props.edit.block.title, deleteWord) 874 : wp.i18n.sprintf(wp.i18n.__('If you are sure you want to delete this block, enter "%1$s" here:', 'block-designer'), deleteWord); 875 875 if (result !== null) { 876 text = '\n' + sprintf(wp.i18n.__('You wrote "%1$s" instead of "%2$s"', 'block-designer'), result, deleteWord) + '\n\n' + text;876 text = '\n' + wp.i18n.sprintf(wp.i18n.__('You wrote "%1$s" instead of "%2$s"', 'block-designer'), result, deleteWord) + '\n\n' + text; 877 877 } 878 878 result = prompt(text); … … 1121 1121 } 1122 1122 else if (jsName === 'style') { 1123 errorText = sprintf(wp.i18n.__('The "%s" attribute can not be added or changed manually.', 'block-designer'), 'style')1123 errorText = wp.i18n.sprintf(wp.i18n.__('The "%s" attribute can not be added or changed manually.', 'block-designer'), 'style') 1124 1124 } 1125 1125 else if (['bd', 'classes'].indexOf(jsName) > -1) { 1126 errorText = sprintf(wp.i18n.__('The attribute name "%s" is reserved and can not be added.', 'block-designer'), name)1126 errorText = wp.i18n.sprintf(wp.i18n.__('The attribute name "%s" is reserved and can not be added.', 'block-designer'), name) 1127 1127 } 1128 1128 else if (typeof selectedNode[1][jsName] !== 'undefined') { 1129 errorText = sprintf(wp.i18n.__('The attribute "%s" already exists.', 'block-designer'), name)1129 errorText = wp.i18n.sprintf(wp.i18n.__('The attribute "%s" already exists.', 'block-designer'), name) 1130 1130 } 1131 1131 … … 1207 1207 background: 'transparent' 1208 1208 }, 1209 title: sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),1209 title: wp.i18n.sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name), 1210 1210 onClick: () => { 1211 1211 delete selectedNode[1][jsName]; -
block-designer/trunk/block-designer.php
r2987705 r3409435 4 4 * Plugin URI: https://blockdesigner.net/ 5 5 * Description: Design individual blocks for the WordPress Block Editor without any line of code 6 * Version: 1.10. 06 * Version: 1.10.1 7 7 * Requires at least: 5.9.0 8 8 * Requires PHP: 7.3 -
block-designer/trunk/readme.txt
r3271271 r3409435 4 4 Tags: custom blocks, block editor, gutenberg, design, style 5 5 Requires at least: 5.9.0 6 Tested up to: 6. 87 Stable tag: 1.10. 06 Tested up to: 6.9 7 Stable tag: 1.10.1 8 8 Requires PHP: 7.3 9 9 License: GPLv2 or later … … 84 84 = More from the same author = 85 85 86 If you are interested in more plugins by this author, you could have a look at the [Gridzy.Gallery](https://gridzy.gallery/). 86 Click here: [wppeak.com](https://www.wppeak.com/) 87 87 88 88 … … 97 97 == Changelog == 98 98 99 = 1.10.1 - 2025-12-03 = 100 * Made Block Designer compatible with WordPress 6.9 101 99 102 = 1.10.0 - 2023-11-01 = 100 103 * Make block content translatable via WPML plugin
Note: See TracChangeset
for help on using the changeset viewer.