forked from newscoop/theme-TheStun
-
Notifications
You must be signed in to change notification settings - Fork 0
/
section.tpl
43 lines (30 loc) · 1.17 KB
/
section.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
{{ include file='_tpl/_header.tpl' }}
<div id="page_content">
<div id="sectionpage-title">
<h1>{{ $gimme->section->name }}</h1>
</div>
{{ $articles = array() }}
{{ list_articles length="5" columns="1" ignore_issue="true" constraints="type not poll"}}
{{ $article = array() }}
{{ $article['sub_category'] = $gimme->article->section->name }}
{{ $article['sub_category_url'] = $gimme->article->section->url_name }}
{{ $article['time'] = $gimme->article->publish_date|camp_date_format:"%H:%i, %D %M %Y" }}
{{ $article['title'] = $gimme->article->title }}
{{ $article['deck'] = $gimme->article->deck->first_paragraph|strip_tags }}
{{ $article['url'] = $gimme->article->url }}
{{ image rendition="sectionthumb" }}
{{ $article['img'] = $image->src }}
{{ $article['img_alt'] = $image->caption }}
{{ /image }}
{{ $articles[] = $article }}
{{ /list_articles }}
<div id="sectionpage-items">
{{ for $i=0 to count($articles) }}
{{ $article = $articles[$i] }}
{{ if $article != null }}
{{ include file='_tpl/_section_teaser.tpl' }}
{{ /if }}
{{ /for }}
</div>
</div> <!-- end #page_content -->
{{ include file='_tpl/_footer.tpl' }}