update
This commit is contained in:
40
modules/anblog/views/templates/front/rss.tpl
Normal file
40
modules/anblog/views/templates/front/rss.tpl
Normal file
@@ -0,0 +1,40 @@
|
||||
{*
|
||||
* 2023 Anvanto
|
||||
*
|
||||
* NOTICE OF LICENSE
|
||||
*
|
||||
* This source file is subject to the Academic Free License (AFL 3.0)
|
||||
*
|
||||
* @author Anvanto <anvantoco@gmail.com>
|
||||
* @copyright 2023 Anvanto
|
||||
* @license http://opensource.org/licenses/afl-3.0.php Academic Free License (AFL 3.0)
|
||||
*}
|
||||
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<rss version="2.0">
|
||||
<channel>
|
||||
<title><![CDATA[{$anblogrss.PS_SHOP_NAME|escape:'htmlall':'UTF-8'}]]></title>
|
||||
<link><![CDATA[{$anblogrss.link|escape:'htmlall':'UTF-8'}]]></link>
|
||||
<webMaster><![CDATA[{$anblogrss.webMaster|escape:'htmlall':'UTF-8'}]]></webMaster>
|
||||
<generator>PrestaShop</generator>
|
||||
<language><![CDATA[{$anblogrss.language|escape:'htmlall':'UTF-8'}]]></language>
|
||||
<image>
|
||||
<title><![CDATA[{$anblogrss.PS_SHOP_NAME|escape:'htmlall':'UTF-8'}]]></title>
|
||||
<url>{$anblogrss.link|escape:'htmlall':'UTF-8'}img/logo.jpg</url>
|
||||
<link>{$anblogrss.link|escape:'htmlall':'UTF-8'}</link>
|
||||
</image>
|
||||
{foreach from=$anblogrss.posts item=post}
|
||||
<item>
|
||||
<title><![CDATA[{$post.title|escape:'htmlall':'UTF-8'}]]></title>
|
||||
<description>
|
||||
<![CDATA[
|
||||
{if isset($post.preview_url) && $post.preview_url !=''}
|
||||
<img src="{$post.preview_url|escape:'htmlall':'UTF-8'}" title="{$post.title|escape:'htmlall':'UTF-8'}" alt="{$post.title|escape:'htmlall':'UTF-8'}" class="img-fluid" />
|
||||
{/if}
|
||||
{$post.description|escape:'htmlall':'UTF-8'}]]>
|
||||
</description>
|
||||
<link><![CDATA[{$post.link|escape:'htmlall':'UTF-8'}]]></link>
|
||||
</item>
|
||||
{/foreach}
|
||||
</channel>
|
||||
</rss>
|
||||
Reference in New Issue
Block a user