Skip to content

Commit

Permalink
pkp/pkp-lib#10783 announcementFeed plugin rss2 template to Eloquent (p…
Browse files Browse the repository at this point in the history
  • Loading branch information
kaitlinnewson authored Jan 8, 2025
1 parent a2ac1f1 commit 673b748
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions plugins/generic/announcementFeed/templates/rss2.tpl
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{**
* plugins/generic/announcementFeed/templates/rss2.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Copyright (c) 2014-2025 Simon Fraser University
* Copyright (c) 2003-2025 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* RSS 2 feed template
Expand Down Expand Up @@ -34,13 +34,13 @@
{foreach from=$announcements item=announcement}
<item>
{* required elements *}
<title>{$announcement->getLocalizedTitleFull()|strip|escape:"html"}</title>
<link>{url page="announcement" op="view" path=$announcement->getId()}</link>
<description>{$announcement->getLocalizedDescription()|strip|escape:"html"}</description>
<title>{$announcement->getLocalizedData('fullTitle')|strip|escape:"html"}</title>
<link>{url page="announcement" op="view" path=$announcement->id}</link>
<description>{$announcement->getLocalizedData('description')|strip|escape:"html"}</description>

{* optional elements *}
<guid isPermaLink="true">{url page="announcement" op="view" path=$announcement->getId()}</guid>
{capture assign="datePosted"}{$announcement->getDatetimePosted()|strtotime}{/capture}
<guid isPermaLink="true">{url page="announcement" op="view" path=$announcement->id}</guid>
{capture assign="datePosted"}{$announcement->datePosted|strtotime}{/capture}
<pubDate>{$smarty.const.DATE_RSS|date:$datePosted}</pubDate>
</item>
{/foreach}
Expand Down

0 comments on commit 673b748

Please sign in to comment.