diff --git a/composer.json b/composer.json index 80235c1..dddb0ec 100644 --- a/composer.json +++ b/composer.json @@ -6,7 +6,7 @@ "liquid/liquid": "^1.4.8" }, "type": "magento2-module", - "version": "4.1.1", + "version": "4.1.2", "license": "proprietary", "authors": [ { diff --git a/view/adminhtml/templates/hook/body.phtml b/view/adminhtml/templates/hook/body.phtml index f428b05..d4028b3 100755 --- a/view/adminhtml/templates/hook/body.phtml +++ b/view/adminhtml/templates/hook/body.phtml @@ -18,9 +18,12 @@ * @copyright Copyright (c) Mageplaza (https://www.mageplaza.com/) * @license https://www.mageplaza.com/LICENSE.txt */ -?> -getElement(); $note = $element->getNote() ? '
' . $element->getNote() . '
' : ''; $elementBeforeLabel = $element->getExtType() == 'checkbox' || $element->getExtType() == 'radio'; @@ -31,20 +34,19 @@ $fieldClass .= ($elementBeforeLabel) ? ' choice' : ''; $fieldClass .= ($addOn) ? ' with-addon' : ''; $fieldClass .= ($element->getRequired()) ? ' _required' : ''; $fieldClass .= ($note) ? ' with-note' : ''; - -$fieldAttributes = $fieldId . ' class="' . $fieldClass . '" ' . $block->getUiId('form-field', $element->getId()); -$modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonEncode($block->getModifier()) : '{}'; +$fieldAttributes = $fieldId . ' class="' . $fieldClass . '" ' . $block->getUiId('form-field', $element->getId()); +$modifiersData = $block->getModifier() ? Data::jsonEncode($block->getModifier()) : '{}'; ?> getNoDisplay()) : ?> getType() == 'hidden') : ?> getElementHtml() ?> - > +
> getElementHtml() ?> getLabelHtml('', $element->getScopeLabel()) ?> - escapeHtml($note) ?> + getLabelHtml('', $element->getScopeLabel()) ?>
@@ -77,7 +79,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE ' . $element->getElementHtml() . '
' : $element->getElementHtml(); ?> getHintHtml() ?> - escapeHtml($note) ?> +
getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
- +
@@ -140,7 +142,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
getShippingAddressAttrCollection() as $attr) : ?> - +
@@ -167,7 +169,7 @@ $modifiersData = $block->getModifier() ? \Mageplaza\Webhook\Helper\Data::jsonE
getShippingAddressAttrCollection() as $attr) : ?> - +