-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathlayout.tpl
executable file
·105 lines (92 loc) · 3.74 KB
/
layout.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
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
{{ include file="_tpl/_html-head.tpl" }}
<header{{ if $gimme->article->nav }} class="nav"{{ /if }}>
<a href="/" id="home">Home</a>
{{ if $gimme->article->nav }}
<!-- a href="#" id="collapse"></a-->
{{ $cover = 0 }}
<nav>
<ul>
{{ if $gimme->article->display_title }}
{{ assign var="artTitle" value=$gimme->article->display_title }}
{{ else }}
{{ assign var="artTitle" value=$gimme->article->name }}
{{ /if }}
{{ if !$gimme->article->dont_show_in_nav }}
<li ><a href="#{{ $gimme->article->number }}" title="{{ $artTitle }}"> <p class="cover">{{ $artTitle }}</p></a></li>
{{ $cover = 1 }}
{{ /if }}
{{ $i = 1 }}
{{ $j = 0 }}
{{ list_related_articles }}
{{ if $gimme->current_list->at_beginning && !$cover }}
<nav>
<ul>
{{ /if }}
{{ if $gimme->article->display_title }}
{{ assign var="artTitle" value=$gimme->article->display_title }}
{{ else }}
{{ assign var="artTitle" value=$gimme->article->name }}
{{ /if }}
{{ if $gimme->article->chapter_head }}
{{ if $i > 1 }}
</li>
{{ /if }}
{{ if $j >= 1 }}
</ul>
{{ $j = 0 }}
{{ /if }}
<li><a href="#{{ $gimme->article->number }}" title="{{ $artTitle }}"><span>{{ $i }}</span> <p>{{ $artTitle }}</p></a>
{{ $i = $i+1 }}
{{ capture name="chapImage" assign="chapImage" }}{{ strip }}
{{ image rendition="sidebar" }}<figure><a href="#{{ $gimme->article->number }}" title="{{ $artTitle }}"><img src="{{ $image->src }}" width="{{ $image->width }}" height="{{ $image->height }}" /></a></figure>{{ /image }}
{{ /strip }}{{ /capture }}
{{ elseif !$gimme->article->dont_show_in_nav }}
{{ $j = $j+1 }}
{{ if $j == 1 }}
<ul>
{{ $chapImage }}
{{ /if }}
<li class="child"><a href="#{{ $gimme->article->number }}" title="{{ $artTitle }}"> {{ $artTitle }}</a></li>
{{ /if }}
{{ if $gimme->current_list->at_end }}
</li>
</ul>
</nav>
{{ /if }}
{{ /list_related_articles }}
{{ /if }}
<a href="#" class="mute">Mute</a>
{{ assign var="l" value="0" }}
{{ assign var="currLan" value=$gimme->language->code }}
</header>
{{ if $gimme->browser->ua_type != "mobile" }}
{{ include file="_tpl/_storyteller/ambient.tpl" }}
{{ /if }}
{{ include file="_tpl/_storyteller/ST-segment.tpl" where="coverSlide" }}
{{ $chapNo = 0 }}
{{ list_related_articles }}
{{ $chapter = 0 }}
{{ if $gimme->current_list->at_beginning }}
<section>
<article>
{{ if $gimme->browser->ua_type != "mobile" }}
{{ include file="_tpl/_storyteller/ambient-audio.tpl" }}
{{ /if }}
{{ /if }}
{{ if $gimme->article->slideshow }}
{{ include file="_tpl/_storyteller/ST-slideshow.tpl" }}
{{ else }}
{{ if $gimme->article->chapter_head }}
{{ $chapNo = $chapNo+1 }}
{{ $chapter = 1 }}
{{ /if }}
{{ include file="_tpl/_storyteller/ST-segment.tpl" isChapter=$chapter chapterNo=$chapNo }}
{{ /if }}
{{ if $gimme->current_list->at_end }}
</article>
</section>
{{ /if }}
{{ /list_related_articles }}
{{ include file="_tpl/_html-foot.tpl" }}
</body>
</html>