forked from newscoop/theme-TheStun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
article.tpl
59 lines (40 loc) · 1.58 KB
/
article.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
{{ include file='_tpl/_header.tpl' }}
<div id="page_content">
<div id="article-headline">
<p>{{ $gimme->article->name }}</p>
</div>
{{ if $gimme->article->type_name == "debate" }}
<div id="article-debate">
<h3>PRO: {{ $gimme->article->pro_title }}</h3>
<div>{{ $gimme->article->pro_text }}</div>
<h3>CONTRA: {{ $gimme->article->contra_title }}</h3>
<div>{{ $gimme->article->contra_text }}</div>
</div>
{{ else }}
<div id="article-mainimage">
{{ image rendition="articlebig" }}
<p><img src="{{ $image->src }}" width="{{ $image->width }}" height="{{ $image->height }}" alt="{{ $image->caption }}" /></p>
<p id="caption">{{ $image->caption }}</p>
{{ /image }}
</div>
<div id="article-deck">
{{ $gimme->article->deck }}
</div>
<div id="article-authors">
<p><em>{{ list_article_authors }}
{{ if $gimme->current_list->at_beginning }}By {{ /if }}
{{ if $gimme->current_list->at_end }}
{{ if $gimme->current_list->index > 1 }} and {{ /if }}
{{ else }}
{{ if $gimme->current_list->index > 1 }}, {{ /if }}
{{ /if }}
{{ if $gimme->author->user->defined }}<a href="{{ $view->url(['username' => $gimme->author->user->uname], 'user') }}">{{ /if }}
{{ $gimme->author->name }}{{ if $gimme->author->user->defined }}</a>{{ /if }}{{ if $gimme->current_list->at_end }}. {{ /if }}
{{ /list_article_authors }}</em></p>
</div>
<div id="article-body">
{{ $gimme->article->full_text }}
</div>
{{ /if }}
</div> <!-- end #page_content -->
{{ include file='_tpl/_footer.tpl' }}