-
Notifications
You must be signed in to change notification settings - Fork 136
/
Copy pathrss.phtml
executable file
·33 lines (33 loc) · 1008 Bytes
/
rss.phtml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<?php
/**
* Copyright © Magefan ([email protected]). All rights reserved.
* Please visit Magefan.com for license details (https://magefan.com/end-user-license-agreement).
*
* Glory to Ukraine! Glory to the heroes!
*/
?>
<?php
/**
* Blog sidebar archive template
*
* @var $block \Magefan\Blog\Block\Sidebar\Rss
*/
?>
<?php
$width = (int)$block->getWidth() ?: 17;
$height = (int)$block->getHeight() ?: 17;
?>
<div class="widget block block-rss" data-bind="scope: 'blog-rss'">
<div class="block-title">
<strong>
<a target="_blank"
href="<?= $block->escapeUrl($block->getUrl('blog/rss/feed')) ?>">
<?= $block->escapeHtml(__('RSS Feed')) ?>
</a>
</strong>
<img width="<?= $width ?>" height="<?= $height ?>" class="rss-icon"
src="<?= $block->escapeUrl($block->getViewFileUrl('Magefan_Blog::images/rss-icon.png')) ?>"
alt="<?= $block->escapeHtml(__('RSS Feed')) ?>"
>
</div>
</div>