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="escapeHtml($block->getData('config/parentComponent')) ?>" data-images="escapeHtmlAttr($block->getImagesJson()) ?>" - data-types='jsonEncode($block->getImageTypes()) ?>' + data-types='jsonEncode($block->getImageTypes()): json_encode($block->getImageTypes()) ?>' > getUploaderUrl() !== null) { ?>
@@ -319,11 +319,32 @@ $elementToggleCode = $element->getToggleCode() ? $element->getToggleCode():
- renderStyleAsTag( - 'display:none', - 'div#' . $videoBlockId - ) ?> + + + + renderStyleAsTag( + 'display:none', + 'div#' . $videoBlockId + ) ?> + + + + + + + getChildHtml('new-video') ?> -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