diff --git a/templates/frontend/pages/indexJournal.tpl b/templates/frontend/pages/indexJournal.tpl index 526f0d1d524..a6a52d23ae8 100644 --- a/templates/frontend/pages/indexJournal.tpl +++ b/templates/frontend/pages/indexJournal.tpl @@ -37,36 +37,7 @@ {/if} - {* Announcements *} - {if $numAnnouncementsHomepage && $announcements|@count} -
- -

- {translate key="announcement.announcements"} -

- {foreach name=announcements from=$announcements item=announcement} - {if $smarty.foreach.announcements.iteration > $numAnnouncementsHomepage} - {break} - {/if} - {if $smarty.foreach.announcements.iteration == 1} - {include file="frontend/objects/announcement_summary.tpl" heading="h3"} -
- {else} - - {/if} - {/foreach} -
-
- {/if} + {include file="frontend/objects/announcements_list.tpl" numAnnouncements=$numAnnouncementsHomepage} {* Latest issue *} {if $issue} diff --git a/templates/frontend/pages/indexSite.tpl b/templates/frontend/pages/indexSite.tpl index fd3ade85f05..f9b430849c7 100644 --- a/templates/frontend/pages/indexSite.tpl +++ b/templates/frontend/pages/indexSite.tpl @@ -18,36 +18,7 @@ {/if} - {* Announcements *} - {if $numAnnouncementsHomepage && $announcements|@count} -
- -

- {translate key="announcement.announcements"} -

- {foreach name=announcements from=$announcements item=announcement} - {if $smarty.foreach.announcements.iteration > $numAnnouncementsHomepage} - {break} - {/if} - {if $smarty.foreach.announcements.iteration == 1} - {include file="frontend/objects/announcement_summary.tpl" heading="h3"} -
- {else} - - {/if} - {/foreach} -
-
- {/if} + {include file="frontend/objects/announcements_list.tpl" numAnnouncements=$numAnnouncementsHomepage}