diff --git a/composer.json b/composer.json
index 41af543..6154ef8 100644
--- a/composer.json
+++ b/composer.json
@@ -3,7 +3,7 @@
"description": "ImageKit 2 Magento Integration",
"type": "magento2-module",
"license": "MIT",
- "version": "1.0.1",
+ "version": "1.0.2",
"authors": [
{
"name": "ImageKit Developer",
diff --git a/etc/module.xml b/etc/module.xml
index b9ec9c0..4746cd3 100644
--- a/etc/module.xml
+++ b/etc/module.xml
@@ -1,4 +1,4 @@
-
+
diff --git a/view/adminhtml/templates/catalog/product/helper/gallery.phtml b/view/adminhtml/templates/catalog/product/helper/gallery.phtml
index 488dd4c..82d8974 100644
--- a/view/adminhtml/templates/catalog/product/helper/gallery.phtml
+++ b/view/adminhtml/templates/catalog/product/helper/gallery.phtml
@@ -40,7 +40,7 @@ $elementToggleCode = $element->getToggleCode() ? $element->getToggleCode():
data-mage-init='{"openVideoModal":{}}'
data-parent-component="= $block->escapeHtml($block->getData('config/parentComponent')) ?>"
data-images="= $block->escapeHtmlAttr($block->getImagesJson()) ?>"
- data-types='= /* @noEscape */ $jsonHelper->jsonEncode($block->getImageTypes()) ?>'
+ data-types='= /* @noEscape */ $jsonHelper ? $jsonHelper->jsonEncode($block->getImageTypes()): json_encode($block->getImageTypes()) ?>'
>
getUploaderUrl() !== null) { ?>
@@ -319,11 +319,32 @@ $elementToggleCode = $element->getToggleCode() ? $element->getToggleCode():
- = /* @noEscape */ $secureRenderer->renderStyleAsTag(
- 'display:none',
- 'div#' . $videoBlockId
- ) ?>
+
+
+
+ = /* @noEscape */ $secureRenderer->renderStyleAsTag(
+ 'display:none',
+ 'div#' . $videoBlockId
+ ) ?>
+
+
+
+
+
+
+
= $block->getChildHtml('new-video') ?>
-= /* @noEscape */ $secureRenderer->renderTag('script', [], "jQuery('body').trigger('contentUpdated');", false) ?>
\ No newline at end of file
+
+
+ renderTag('script', [], "jQuery('body').trigger('contentUpdated');", false) ?>
+
+
+
\ No newline at end of file