-
Notifications
You must be signed in to change notification settings - Fork 49
/
Copy pathindexSite.tpl
71 lines (64 loc) · 1.73 KB
/
indexSite.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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
{**
* templates/frontend/pages/indexSite.tpl
*
* Copyright (c) 2014-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Site index.
*
*}
{include file="frontend/components/header.tpl"}
<div class="page_index_site">
{if $about}
<div class="about_site">
{$about}
</div>
{/if}
{include file="frontend/objects/announcements_list.tpl" numAnnouncements=$numAnnouncementsHomepage}
<div class="servers">
<h2>
{translate key="context.contexts"}
</h2>
{if !$servers|@count}
{translate key="site.noServers"}
{else}
<ul>
{foreach from=$servers item="server"}
{capture assign="url"}{url server=$server->getPath()}{/capture}
{assign var="thumb" value=$server->getLocalizedData('serverThumbnail')}
{assign var="description" value=$server->getLocalizedDescription()}
<li{if $thumb} class="has_thumb"{/if}>
{if $thumb}
<div class="thumb">
<a href="{$url}">
<img src="{$serverFilesPath}{$server->getId()}/{$thumb.uploadName|escape:"url"}"{if $thumb.altText} alt="{$thumb.altText|escape|default:''}"{/if}>
</a>
</div>
{/if}
<div class="body">
<h3>
<a href="{$url}" rel="bookmark">
{$server->getLocalizedName()}
</a>
</h3>
{if $description}
<div class="description">
{$description}
</div>
{/if}
<ul class="links">
<li class="view">
<a href="{$url}">
{translate key="site.serverView"}
</a>
</li>
</ul>
</div>
</li>
{/foreach}
</ul>
{/if}
</div>
</div><!-- .page -->
{include file="frontend/components/footer.tpl"}