{** * templates/frontend/pages/indexJournal.tpl * * Copyright (c) 2014-2018 Simon Fraser University * Copyright (c) 2003-2018 John Willinsky * Distributed under the GNU GPL v2. For full terms see the file docs/COPYING. * * @brief Display the index page for a journal * * @uses $currentJournal Journal This journal * @uses $journalDescription string Journal description from HTML text editor * @uses $homepageImage object Image to be displayed on the homepage * @uses $additionalHomeContent string Arbitrary input from HTML text editor * @uses $announcements array List of announcements * @uses $numAnnouncementsHomepage int Number of announcements to display on the * homepage * @uses $issue Issue Current issue *} {include file="frontend/components/header.tpl" pageTitleTranslated=$currentJournal->getLocalizedName()}
{call_hook name="Templates::Index::journal"} {if $homepageImage}
{$homepageImageAltText|escape}
{/if} {* Announcements *} {if $numAnnouncementsHomepage && $announcements|@count}

{translate key="announcement.announcements"}

{foreach name=announcements from=$announcements item=announcement} {if $smarty.foreach.announcements.iteration > $numAnnouncementsHomepage} {php}break;{/php} {/if} {if $smarty.foreach.announcements.iteration == 1} {include file="frontend/objects/announcement_summary.tpl" heading="h3"}
{else} {/if} {/foreach}
{/if} {* Latest issue *} {if $issue}

{translate key="journal.currentIssue"}

{$issue->getIssueIdentification()|strip_unsafe_html}
{include file="frontend/objects/issue_toc.tpl"} {translate key="journal.viewAllIssues"}
{/if} {* Additional Homepage Content *} {if $additionalHomeContent}
{$additionalHomeContent}
{/if}
{include file="frontend/components/footer.tpl"}