Plugin Directory

Changeset 3409435


Ignore:
Timestamp:
12/03/2025 12:01:08 PM (3 months ago)
Author:
ehtmlu
Message:

1.10.1

Location:
block-designer
Files:
7 edited
2 copied

Legend:

Unmodified
Added
Removed
  • block-designer/tags/1.10.1/assets/app.components/App/App.js

    r2793937 r3409435  
    275275                                    React.createElement(bd.components.Html,
    276276                                        null,
    277                                         sprintf(
     277                                        wp.i18n.sprintf(
    278278                                            bd.helper.escapeHtml(wp.i18n.__('Choose %s for now as it must always be the first element in a block.', 'block-designer')),
    279279                                            wp.element.renderToString(React.createElement('strong',
     
    308308                                    React.createElement(bd.components.Html,
    309309                                        null,
    310                                         sprintf(
     310                                        wp.i18n.sprintf(
    311311                                            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')),
    312312                                            wp.element.renderToString(React.createElement('strong',
  • block-designer/tags/1.10.1/assets/app.components/AppEdit/AppEdit.js

    r2937566 r3409435  
    245245                    block.contentObject.domtree = newDomNode;
    246246                } 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));
    248248                }
    249249            }
     
    398398                                    if (!domtree && !canvasElement.allowRoot) {
    399399                                        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);
    401401                                    }
    402402                                    else if (domtree && !selectedNode) {
     
    406406                                    else if (canvasElement.allowMultiple === false && domtree?.list?.filter((item) => item[0] === canvasElement.initialContent[0]).length > 0) {
    407407                                        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);
    409409                                    }
    410410
     
    498498                                wp.element.createElement(bd.components.Html,
    499499                                    null,
    500                                     sprintf(
     500                                    wp.i18n.sprintf(
    501501                                        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 />'),
    502502                                        wp.element.renderToString([React.createElement('kbd', {style}, cmd), '+', React.createElement('kbd', null, 'C')]),
     
    871871                                                        const deleteWord = wp.i18n.__('DELETE', 'block-designer');
    872872                                                        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);
    875875                                                        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;
    877877                                                        }
    878878                                                        result = prompt(text);
     
    11211121                                                                }
    11221122                                                                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')
    11241124                                                                }
    11251125                                                                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)
    11271127                                                                }
    11281128                                                                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)
    11301130                                                                }
    11311131
     
    12071207                                                                        background: 'transparent'
    12081208                                                                    },
    1209                                                                     title: sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),
     1209                                                                    title: wp.i18n.sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),
    12101210                                                                    onClick: () => {
    12111211                                                                        delete selectedNode[1][jsName];
  • block-designer/tags/1.10.1/block-designer.php

    r2987705 r3409435  
    44 * Plugin URI: https://blockdesigner.net/
    55 * Description: Design individual blocks for the WordPress Block Editor without any line of code
    6  * Version: 1.10.0
     6 * Version: 1.10.1
    77 * Requires at least: 5.9.0
    88 * Requires PHP: 7.3
  • block-designer/tags/1.10.1/readme.txt

    r3271271 r3409435  
    44Tags: custom blocks, block editor, gutenberg, design, style
    55Requires at least: 5.9.0
    6 Tested up to: 6.8
    7 Stable tag: 1.10.0
     6Tested up to: 6.9
     7Stable tag: 1.10.1
    88Requires PHP: 7.3
    99License: GPLv2 or later
     
    8484= More from the same author =
    8585
    86 If you are interested in more plugins by this author, you could have a look at the [Gridzy.Gallery](https://gridzy.gallery/).
     86Click here: [wppeak.com](https://www.wppeak.com/)
    8787
    8888
     
    9797== Changelog ==
    9898
     99= 1.10.1 - 2025-12-03 =
     100* Made Block Designer compatible with WordPress 6.9
     101
    99102= 1.10.0 - 2023-11-01 =
    100103* Make block content translatable via WPML plugin
  • block-designer/trunk/assets/app.components/App/App.js

    r2793937 r3409435  
    275275                                    React.createElement(bd.components.Html,
    276276                                        null,
    277                                         sprintf(
     277                                        wp.i18n.sprintf(
    278278                                            bd.helper.escapeHtml(wp.i18n.__('Choose %s for now as it must always be the first element in a block.', 'block-designer')),
    279279                                            wp.element.renderToString(React.createElement('strong',
     
    308308                                    React.createElement(bd.components.Html,
    309309                                        null,
    310                                         sprintf(
     310                                        wp.i18n.sprintf(
    311311                                            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')),
    312312                                            wp.element.renderToString(React.createElement('strong',
  • block-designer/trunk/assets/app.components/AppEdit/AppEdit.js

    r2937566 r3409435  
    245245                    block.contentObject.domtree = newDomNode;
    246246                } 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));
    248248                }
    249249            }
     
    398398                                    if (!domtree && !canvasElement.allowRoot) {
    399399                                        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);
    401401                                    }
    402402                                    else if (domtree && !selectedNode) {
     
    406406                                    else if (canvasElement.allowMultiple === false && domtree?.list?.filter((item) => item[0] === canvasElement.initialContent[0]).length > 0) {
    407407                                        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);
    409409                                    }
    410410
     
    498498                                wp.element.createElement(bd.components.Html,
    499499                                    null,
    500                                     sprintf(
     500                                    wp.i18n.sprintf(
    501501                                        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 />'),
    502502                                        wp.element.renderToString([React.createElement('kbd', {style}, cmd), '+', React.createElement('kbd', null, 'C')]),
     
    871871                                                        const deleteWord = wp.i18n.__('DELETE', 'block-designer');
    872872                                                        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);
    875875                                                        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;
    877877                                                        }
    878878                                                        result = prompt(text);
     
    11211121                                                                }
    11221122                                                                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')
    11241124                                                                }
    11251125                                                                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)
    11271127                                                                }
    11281128                                                                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)
    11301130                                                                }
    11311131
     
    12071207                                                                        background: 'transparent'
    12081208                                                                    },
    1209                                                                     title: sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),
     1209                                                                    title: wp.i18n.sprintf(wp.i18n.__('delete attribute "%s"', 'block-designer'), name),
    12101210                                                                    onClick: () => {
    12111211                                                                        delete selectedNode[1][jsName];
  • block-designer/trunk/block-designer.php

    r2987705 r3409435  
    44 * Plugin URI: https://blockdesigner.net/
    55 * Description: Design individual blocks for the WordPress Block Editor without any line of code
    6  * Version: 1.10.0
     6 * Version: 1.10.1
    77 * Requires at least: 5.9.0
    88 * Requires PHP: 7.3
  • block-designer/trunk/readme.txt

    r3271271 r3409435  
    44Tags: custom blocks, block editor, gutenberg, design, style
    55Requires at least: 5.9.0
    6 Tested up to: 6.8
    7 Stable tag: 1.10.0
     6Tested up to: 6.9
     7Stable tag: 1.10.1
    88Requires PHP: 7.3
    99License: GPLv2 or later
     
    8484= More from the same author =
    8585
    86 If you are interested in more plugins by this author, you could have a look at the [Gridzy.Gallery](https://gridzy.gallery/).
     86Click here: [wppeak.com](https://www.wppeak.com/)
    8787
    8888
     
    9797== Changelog ==
    9898
     99= 1.10.1 - 2025-12-03 =
     100* Made Block Designer compatible with WordPress 6.9
     101
    99102= 1.10.0 - 2023-11-01 =
    100103* Make block content translatable via WPML plugin
Note: See TracChangeset for help on using the changeset viewer.