From 89223a75c25f1e0f0524ac35dde1aa5e76a5478d Mon Sep 17 00:00:00 2001 From: sahil Date: Wed, 5 Jul 2023 16:32:05 +0530 Subject: [PATCH 1/2] remove script and style below images tag --- .../product/image_with_borders.phtml | 28 +------------------ 1 file changed, 1 insertion(+), 27 deletions(-) diff --git a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml index cc1a7276c70b8..1877a0fe2636f 100644 --- a/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml +++ b/app/code/Magento/Catalog/view/frontend/templates/product/image_with_borders.phtml @@ -12,7 +12,7 @@ $width = (int)$block->getWidth(); $paddingBottom = $block->getRatio() * 100; ?> - + getCustomAttributes() as $name => $value): ?> escapeHtmlAttr($name) ?>="escapeHtml($value) ?>" @@ -23,29 +23,3 @@ $paddingBottom = $block->getRatio() * 100; height="escapeHtmlAttr($block->getHeight()) ?>" alt="escapeHtmlAttr($block->getLabel()) ?>"/> -getProductId()} { - width: {$width}px; -} -.product-image-container-{$block->getProductId()} span.product-image-wrapper { - padding-bottom: {$paddingBottom}%; -} -STYLE; -//In case a script was using "style" attributes of these elements -$script = <<