+ alt="= $block->escapeHtml(__('Posts loader')) ?>"
+ width="= $width ?>"
+ height="= $height ?>"
+ />
-
\ No newline at end of file
+
diff --git a/view/frontend/templates/post/view-modern.phtml b/view/frontend/templates/post/view-modern.phtml
index 6c50bfe3..43039527 100644
--- a/view/frontend/templates/post/view-modern.phtml
+++ b/view/frontend/templates/post/view-modern.phtml
@@ -17,6 +17,8 @@
$_post = $block->getPost();
$_postUrl = $_post->getPostUrl();
$_postName = $block->escapeHtml($_post->getTitle(), null);
+ $width = (int)$block->getWidth() ?: 800;
+ $height = (int)$block->getHeight() ?: 500;
?>
= $block->getStyleViewModel()->getStyle('Magefan_Blog::css/bootstrap-4.4.1-custom-min.css') ?>