/
issue_summary.tpl
40 lines (36 loc) · 1.15 KB
/
issue_summary.tpl
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
34
35
36
37
38
39
40
{**
* templates/frontend/objects/issue_summary.tpl
*
* Copyright (c) 2014-2017 Simon Fraser University
* Copyright (c) 2003-2017 John Willinsky
* Distributed under the GNU GPL v2. For full terms see the file docs/COPYING.
*
* @brief View of an Issue which displays a summary for use in lists
*
* @uses $issue Issue The issue
*}
{assign var=issueTitle value=$issue->getLocalizedTitle()}
{assign var=issueSeries value=$issue->getIssueSeries()}
{assign var=issueCover value=$issue->getLocalizedCoverImageUrl()}
<div class="obj_issue_summary">
{if $issueCover}
<a class="cover" href="{url op="view" path=$issue->getBestIssueId()}">
<img src="{$issueCover|escape}"{if $issue->getLocalizedCoverImageAltText() != ''} alt="{$issue->getLocalizedCoverImageAltText()|escape}"{/if}>
</a>
{/if}
<a class="title" href="{url op="view" path=$issue->getBestIssueId()}">
{if $issueTitle}
{$issueTitle|escape}
{else}
{$issueSeries|escape}
{/if}
</a>
{if $issueTitle}
<div class="series">
{$issueSeries|escape}
</div>
{/if}
<div class="description">
{$issue->getLocalizedDescription()|strip_unsafe_html}
</div>
</div><!-- .obj_issue_summary -->