-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathindex.tpl
156 lines (147 loc) · 6.6 KB
/
index.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
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
{include file='header.tpl'}
{include file='navbar.tpl'}
{if isset($HOME_SESSION_FLASH)}
<div class="ui success icon message">
<i class="check icon"></i>
<div class="content">
<div class="header">{$SUCCESS_TITLE}</div>
{$HOME_SESSION_FLASH}
</div>
</div>
{/if}
{if isset($HOME_SESSION_ERROR_FLASH)}
<div class="ui error icon message">
<i class="x icon"></i>
<div class="content">
<div class="header">{$ERROR_TITLE}</div>
{$HOME_SESSION_ERROR_FLASH}
</div>
</div>
{/if}
<div class="ui stackable grid">
{if isset($GHOST)}
{include file='ghost/index.tpl'}
{else}
<div class="ui centered row">
{if count($WIDGETS_LEFT)}
<div class="ui six wide tablet four wide computer column">
{foreach from=$WIDGETS_LEFT item=widget}
{$widget}
{/foreach}
</div>
{/if}
<div
class="ui {if count($WIDGETS_LEFT) && count($WIDGETS_RIGHT) }four wide tablet eight wide computer{elseif count($WIDGETS_LEFT) || count($WIDGETS_RIGHT)}ten wide tablet twelve wide computer{else}sixteen wide{/if} column">
{if $HOME_TYPE === 'news'}
{foreach from=$NEWS item=item}
<div class="ui fluid {if $SHADOWEFFECTS eq '0' }raised{/if} card" id="news-post">
<div class="content">
<div class="header">
{if isset($item.label)}{$item.label}{/if}
<a href="{$item.url}" data-toggle="popup">{$item.title}</a>
<div class="ui popup wide transition hidden">
<h4 class="ui header">{$item.title}</h4>
{$BY|capitalize} <a style="{$item.author_style}"
href="{$item.author_url}">{$item.author_name}</a> |
{$item.date}
</div>
</div>
<div class="meta" data-toggle="tooltip" data-content="{$item.date}">
{$item.time_ago}
</div>
<div class="description forum_post">
{$item.content}
</div>
</div>
<div class="extra content">
<div class="right floated author">
<img class="ui avatar image" src="{$item.author_avatar}" alt="{$item.author_name}"> <a
style="{$item.author_style}" href="{$item.author_url}"
data-poload="{$USER_INFO_URL}{$item.author_id}">{$item.author_name}</a>
</div>
<a class="ui mini primary button" href="{$item.url}">
{$READ_FULL_POST}
</a>
</div>
</div>
{foreachelse}
<div class="ui segment red">
{$NO_NEWS}
</div>
{/foreach}
{elseif $HOME_TYPE === 'custom'}
{if isset($CUSTOM_HOME_CONTENT)}
<div class="ui stackable grid">
<div class="ui centered row">
<div class="ui sixteen wide column">
<div class="ui padded segment">
<h1 class="ui header">{$SITE_NAME}</h1>
<p>{$CUSTOM_HOME_CONTENT}</p>
</div>
</div>
</div>
</div>
{/if}
<div class="ui stackable grid">
<div class="ui centered row">
<div class="ui sixteen wide column">
<div class="ui padded raised segment">
<h1 class="ui header">{$CARDT} <a href="{$CARDW}" target="_blank" class="ui mini button right floated"><i class="fa-solid fa-up-right-from-square"></i> All Projects</a></h1>
<div class="ui grid">
<!-- Card 1 -->
<div class="sixteen wide mobile eight wide tablet eight wide computer column">
<div class="ui segment" style="height:100%;">
<div class="ui header">{$CARD1T} <a href="{$CARD1W}" target="_blank" class="ui mini blue button right floated">Website</a></div>
<div class="ui slide masked reveal image">
<img src="{$CARD1V}" class="visible content" style="border-radius:2%;" loading="lazy">
<img src="{$CARD1H}" class="hidden content" style="border-radius:2%;" loading="lazy">
</div>
</div>
</div>
<!-- Card 2 -->
<div class="sixteen wide mobile eight wide tablet eight wide computer column">
<div class="ui segment" style="height:100%;">
<div class="ui header">{$CARD2T} <a href="{$CARD2W}" target="_blank" class="ui mini blue button right floated">Website</a></div>
<div class="ui slide masked reveal image">
<img src="{$CARD2V}" class="visible content" style="border-radius:2%;" loading="lazy">
<img src="{$CARD2H}" class="hidden content" style="border-radius:2%;" loading="lazy">
</div>
</div>
</div>
<!-- Card 3 -->
<div class="sixteen wide mobile eight wide tablet eight wide computer column">
<div class="ui segment" style="height:100%;">
<div class="ui header">{$CARD3T} <a href="{$CARD3W}" target="_blank" class="ui mini blue button right floated">Website</a></div>
<div class="ui slide masked reveal image">
<img src="{$CARD3V}" class="visible content" style="border-radius:2%;" loading="lazy">
<img src="{$CARD3H}" class="hidden content" style="border-radius:2%;" loading="lazy">
</div>
</div>
</div>
<!-- Card 4 -->
<div class="sixteen wide mobile eight wide tablet eight wide computer column">
<div class="ui segment" style="height:100%;">
<div class="ui header">{$CARD4T} <a href="{$CARD4W}" target="_blank" class="ui mini blue button right floated">Website</a></div>
<div class="ui slide masked reveal image">
<img src="{$CARD4V}" class="visible content" style="border-radius:2%;" loading="lazy">
<img src="{$CARD4H}" class="hidden content" style="border-radius:2%;" loading="lazy">
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div> {/if}
</div>
{if count($WIDGETS_RIGHT)}
<div class="ui six wide tablet four wide computer column">
{foreach from=$WIDGETS_RIGHT item=widget}
{$widget}
{/foreach}
</div>
{/if}
</div>
{/if}
</div>
{include file='footer.tpl'}