diff --git a/view/frontend/layout/blog_default.xml b/view/frontend/layout/blog_default.xml index 6605c99c..e2d1a7b2 100755 --- a/view/frontend/layout/blog_default.xml +++ b/view/frontend/layout/blog_default.xml @@ -25,6 +25,10 @@ Recent Posts + + 60 + 40 + @@ -33,6 +37,10 @@ Featured Posts + + 60 + 40 + @@ -41,6 +49,10 @@ Popular Posts + + 300 + 200 + @@ -55,6 +67,10 @@ + + 20 + 20 + 86400 diff --git a/view/frontend/layout/blog_post_list.xml b/view/frontend/layout/blog_post_list.xml index 1303d023..fc30502a 100755 --- a/view/frontend/layout/blog_post_list.xml +++ b/view/frontend/layout/blog_post_list.xml @@ -15,6 +15,10 @@ Magefan\Blog\ViewModel\Style + + 800 + 500 + blog.post.info diff --git a/view/frontend/layout/blog_post_view.xml b/view/frontend/layout/blog_post_view.xml index a7f1f4d5..2c89eecc 100755 --- a/view/frontend/layout/blog_post_view.xml +++ b/view/frontend/layout/blog_post_view.xml @@ -18,12 +18,21 @@ + + 800 + 500 + blog.post.info - + + + 300 + 300 + + diff --git a/view/frontend/templates/post/list/item.phtml b/view/frontend/templates/post/list/item.phtml index 46557a10..cabfdcbe 100644 --- a/view/frontend/templates/post/list/item.phtml +++ b/view/frontend/templates/post/list/item.phtml @@ -17,6 +17,8 @@ $_post = $block->getPost(); $_postUrl = $block->escapeUrl($_post->getPostUrl()); $_postName = $block->escapeHtml($_post->getTitle()); +$width = (int)$block->getWidth() ?: 800; +$height = (int)$block->getHeight() ?: 500; ?>
  • @@ -59,7 +61,10 @@ $_postName = $block->escapeHtml($_post->getTitle()); <?= $block->escapeHtml($featuredImgAlt) ?> + alt="escapeHtml($featuredImgAlt) ?>" + width="" + height="" + />
    @@ -76,4 +81,4 @@ $_postName = $block->escapeHtml($_post->getTitle()); -
  • \ No newline at end of file + diff --git a/view/frontend/templates/post/list/toolbar/lazyload.phtml b/view/frontend/templates/post/list/toolbar/lazyload.phtml index 6b7a27aa..ec71778f 100755 --- a/view/frontend/templates/post/list/toolbar/lazyload.phtml +++ b/view/frontend/templates/post/list/toolbar/lazyload.phtml @@ -13,6 +13,10 @@ * @var $block \Magefan\Blog\Block\Post\PostList\Toolbar\Pager */ ?> + useLazyload()) { ?> getLazyloadConfig([ @@ -28,6 +32,9 @@ <?= $block->escapeHtml(__('Posts loader')) ?> + alt="escapeHtml(__('Posts loader')) ?>" + width="" + 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; ?> getStyleViewModel()->getStyle('Magefan_Blog::css/bootstrap-4.4.1-custom-min.css') ?>
    @@ -99,7 +101,10 @@ ?>
    <?= $block->escapeHtml($featuredImgAlt) ?> + alt="escapeHtml($featuredImgAlt) ?>" + width="" + height="" + />
    diff --git a/view/frontend/templates/post/view.phtml b/view/frontend/templates/post/view.phtml index c526a656..ef8c97e3 100644 --- a/view/frontend/templates/post/view.phtml +++ b/view/frontend/templates/post/view.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; ?>
    @@ -41,7 +43,10 @@ $_postName = $block->escapeHtml($_post->getTitle(), null); ?>
    <?= $block->escapeHtml($featuredImgAlt) ?> + alt="escapeHtml($featuredImgAlt) ?>" + width="" + height="" + />
    @@ -55,4 +60,4 @@ $_postName = $block->escapeHtml($_post->getTitle(), null); getChildHtml('blog.post.bottom') ?>
    -
    \ No newline at end of file +
    diff --git a/view/frontend/templates/post/view/comments/magefan.phtml b/view/frontend/templates/post/view/comments/magefan.phtml index 4d59c1fc..935942da 100644 --- a/view/frontend/templates/post/view/comments/magefan.phtml +++ b/view/frontend/templates/post/view/comments/magefan.phtml @@ -19,6 +19,8 @@ $session = $block->getCustomerSession(); $canPost = $block->canPost(); + $width = 200; + $height = 200; ?>
    @@ -28,7 +30,11 @@
    getCustomerImage()) { ?>
    - <?= $block->escapeHtml($block->getCustomerName()) ?> + <?= $block->escapeHtml($block->getCustomerName()) ?>
    diff --git a/view/frontend/templates/post/view/comments/magefan/comment.phtml b/view/frontend/templates/post/view/comments/magefan/comment.phtml index 83809652..6701ef1e 100644 --- a/view/frontend/templates/post/view/comments/magefan/comment.phtml +++ b/view/frontend/templates/post/view/comments/magefan/comment.phtml @@ -16,12 +16,18 @@ getComment(); $numberOfCommentsToDisplay = $block->getNumberOfReplies(); + $width = 200; + $height = 200; ?>
    getIsHidden()) { echo 'style="display:none"'; } ?>> getAuthorImage()) { ?>
    - <?= $block->escapeHtml($comment->getAuthorName()) ?> + <?= $block->escapeHtml($comment->getAuthorName()) ?>
    diff --git a/view/frontend/templates/post/view/gallery.phtml b/view/frontend/templates/post/view/gallery.phtml index 87d9bdf0..e8cbf20d 100644 --- a/view/frontend/templates/post/view/gallery.phtml +++ b/view/frontend/templates/post/view/gallery.phtml @@ -18,6 +18,8 @@ $post = $block->getPost(); $galleryImages = $post->getGalleryImages(); $viewFileUrl = $block->getViewFileUrl("Magefan_Blog::css/jquery.fancybox.min.css"); + $width = (int)$block->getWidth() ?: 300; + $height = (int)$block->getHeight() ?: 300; ?> @@ -27,7 +29,12 @@ data-fancybox="gallery" href="escapeUrl($image) ?>" rel="nofollow"> - +
    diff --git a/view/frontend/templates/sidebar/recent.phtml b/view/frontend/templates/sidebar/recent.phtml index baf3a331..78c15483 100755 --- a/view/frontend/templates/sidebar/recent.phtml +++ b/view/frontend/templates/sidebar/recent.phtml @@ -18,8 +18,8 @@ $_postCollection = $block->getPostCollection(); ?> getBlockImageWidth() ?: 300; - $height = (int)$block->getBlockImageheight() ?: 200; + $width = (int)$block->getWidth() ?: 300; + $height = (int)$block->getHeight() ?: 200; $imageHelper = $this->helper(\Magefan\Blog\Helper\Image::class); ?> count()) { ?> @@ -51,8 +51,11 @@ $featuredImageUrl = $this->getViewFileUrl('Magefan_Blog::images/default-no-image.png'); } ?> - <?= $block->escapeHtml($featuredImgAlt) ?> + <?= $block->escapeHtml($featuredImgAlt) ?>
    diff --git a/view/frontend/templates/sidebar/rss.phtml b/view/frontend/templates/sidebar/rss.phtml index bfcf1f09..5bd513c3 100755 --- a/view/frontend/templates/sidebar/rss.phtml +++ b/view/frontend/templates/sidebar/rss.phtml @@ -13,6 +13,10 @@ * @var $block \Magefan\Blog\Block\Sidebar\Rss */ ?> +getWidth() ?: 17; +$height = (int)$block->getHeight() ?: 17; +?>
    @@ -21,8 +25,9 @@ escapeHtml(__('RSS Feed')) ?> - <?= $block->escapeHtml(__('RSS Feed')) ?> + alt="escapeHtml(__('RSS Feed')) ?>" + >
    diff --git a/view/frontend/templates/widget/recent.phtml b/view/frontend/templates/widget/recent.phtml index cd316902..432c27c9 100755 --- a/view/frontend/templates/widget/recent.phtml +++ b/view/frontend/templates/widget/recent.phtml @@ -16,6 +16,8 @@ getPostCollection(); + $width = (int)$block->getWidth() ?: 500; + $height = (int)$block->getHeight() ?: 400; ?> count()) { ?>
    @@ -74,7 +76,10 @@
    <?= $block->escapeHtml($featuredImgAlt) ?> + alt="escapeHtml($featuredImgAlt) ?>" + width="" + height="" + />
    @@ -97,4 +102,4 @@
    - \ No newline at end of file +