-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfooter.tpl
221 lines (211 loc) · 8.3 KB
/
footer.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
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
{if $MINECRAFTVIEW eq '1'}
{* Necessary for Copy Minecraft Server IP Function *}
<span id="ip" style="visibility:hidden;">{$MINECRAFTIP}{if $MINECRAFTPORT != '25565'}:{$MINECRAFTPORT}{/if}</span>
{/if}
</div>
</div>
{if $FOOTERSTYLE eq '0'}
<div class="ui inverted vertical footer segment" id="footer">
<div class="ui container">
<div class="ui stackable inverted divided grid">
<div class="five wide column">
<h4 class="ui inverted header">{$ABOUT}</h4>
<p>{$FOOTERABOUT}</p>
</div>
<div class="four wide column">
<h4 class="ui inverted header">{$SITE_NAME}</h4>
<div class="ui inverted link list">
<span class="item">© <strong>{$SITE_NAME}</strong> {'Y'|date}</span>
{if !isset($LOGGED_IN_USER)}
<a class="item" href="/register">{$REGISTER}</a>
<a class="item" href="/login">{$LOGIN}</a>
{else}
<a class="item" href="/user">{$ACCOUNT_SETTINGS}</a>
{/if}
{if $PAGE_LOAD_TIME}
<span class="item" id="page_load"></span>
{/if}
{if $THEMESWITCHER eq '1' }
<span class="item" id="darkmode">
<input type="checkbox" class="darkmode-toggle" id="darkmode-toggle" onclick="toggleDarkLightMode()">
<label for="darkmode-toggle" class="darkmode-toggle-label">
<i class="fas fa-moon"></i>
<i class="fas fa-sun"></i>
<div class="darkmode-ball"></div>
</label>
</span>
{/if}
{if isset($AUTO_LANGUAGE)}
<a class="item" href="javascript:" onclick="toggleAutoLanguage()" id="auto-language"></a>
{/if}
</div> </div>
<div class="three wide column">
<h4 class="ui inverted header">{$FOOTER_LINKS_TITLE}</h4>
<div class="ui inverted link list">
{foreach from=$FOOTER_NAVIGATION key=name item=item}
{if isset($item.items)}
<div class="ui dropdown item">
<span class="text">{$item.icon} {$item.title} <i class="dropdown icon"></i></span>
<div class="menu">
<div class="header">{$item.title}</div>
{foreach from=$item.items item=dropdown}
<a class="item" href="{$dropdown.link}" target="{$dropdown.target}">{$dropdown.icon}
{$dropdown.title}</a>
{/foreach}
</div>
</div>
{else}
<a class="item" href="{$item.link}" target="{$item.target}">{$item.icon} {$item.title}</a>
{/if}
{/foreach}
<a class="item" href="{$TERMS_LINK}">{$TERMS_TEXT}</a>
<a class="item" href="{$PRIVACY_LINK}">{$PRIVACY_TEXT}</a>
</div>
</div>
{if $SOCIAL_MEDIA_ICONS|count > 0}
<div class="three wide column">
<h4 class="ui inverted header">{$FOOTER_SOCIAL_TITLE}</h4>
<div class="ui inverted link list">
{foreach from=$SOCIAL_MEDIA_ICONS item=icon}
<a class="item" href="{$icon.link}">{$icon.text}</a>
{/foreach}
</div>
</div>
{/if}
</div>
<div class="ui inverted section divider"></div>
<div class="center aligned">
<span class="item">© <strong>{$SITE_NAME}</strong> {'Y'|date}</span>
{* THIS LINE SHOULD NOT BE REMOVED, THIS IS THE ATTRIBUTION TO THE TEMPLATE DEVELOPER AND CONTRIBUTORS *}
<a href="https://cxstudios.in/aurora" style="float: right; margin-left: 10px;">
<img src="https://cxstudios.in/uploads/cx.png" alt="cxSTUDIOS" style="filter: grayscale(100%); width: 50px; height: auto;">
</a>
</div>
<div class="center aligned">
<span class="item">Powered By <a href="https://namelessmc.com">NamelessMC</a></span>
</div>
<div class="center aligned">
<div class="ui horizontal inverted small divided link list">
<a class="item" href="/cache/sitemaps/sitemap-index.xml">Site Map</a>
<a class="item" href="#">Contact Us</a>
<a class="item" href="{$TERMS_LINK}">{$TERMS_TEXT}</a>
<a class="item" href="{$PRIVACY_LINK}">{$PRIVACY_TEXT}</a>
</div>
</div>
</div>
</div>
{else}
<div class="ui inverted vertical footer segment" id="footer">
<div class="ui container">
<div class="center aligned">
<span class="item">© <strong>{$SITE_NAME}</strong> {'Y'|date}</span>
{* THIS LINE SHOULD NOT BE REMOVED, THIS IS THE ATTRIBUTION TO THE TEMPLATE DEVELOPER AND CONTRIBUTORS *}
<a href="https://cxstudios.in/aurora" style="float: right; margin-left: 10px;">
<img src="https://cxstudios.in/uploads/cx.png" alt="cxSTUDIOS" style="filter: grayscale(100%); width: 50px; height: auto;">
</a>
</div>
<div class="center aligned">
<span class="item">Powered By <a href="https://namelessmc.com">NamelessMC</a></span>
</div>
<div class="center aligned">
<div class="ui horizontal inverted small divided link list">
<a class="item" href="/cache/sitemaps/sitemap-index.xml">Site Map</a>
<a class="item" href="#">Contact Us</a>
<a class="item" href="{$TERMS_LINK}">{$TERMS_TEXT}</a>
<a class="item" href="{$PRIVACY_LINK}">{$PRIVACY_TEXT}</a>
</div>
</div>
</div>
</div>
{/if}
{if isset($GLOBAL_WARNING_TITLE)}
<div class="ui medium modal" id="modal-acknowledge">
<div class="header">
{$GLOBAL_WARNING_TITLE}
</div>
<div class="content">
{$GLOBAL_WARNING_REASON}
</div>
<div class="actions">
<a class="ui positive button" href="{$GLOBAL_WARNING_ACKNOWLEDGE_LINK}">{$GLOBAL_WARNING_ACKNOWLEDGE}</a>
</div>
</div>
{/if}
{foreach from=$TEMPLATE_JS item=script}
{$script}
{/foreach}
{if isset($GLOBAL_WARNING_TITLE)}
<script type="text/javascript">
$('#modal-acknowledge').modal({ closable: false }).modal('show');
</script>
{/if}
<script type="text/javascript">
var url = "https://api.minetools.eu/ping/{$MINECRAFTIP}{if $MINECRAFTPORT != '25565'}/{$MINECRAFTPORT}{/if}";
$.getJSON(url, function(r) {
if (r.error) {
$('#minecraftplayers').html('Server Offline');
return false;
} else {
$('#minecraftplayers').html(+ r.players.online + ' Players Online');
}
});
</script>
{include file='aurora/addons.tpl'}
{if isset($CUSTOMJS)}
<script>
{$CUSTOMJS}
</script>
{/if}
<script type="text/javascript">
document.getElementById("dslink").addEventListener("click", function() {
var url = "{$DISCORD_SERVER['link']}";
window.open(url, "_blank");
});
</script>
<script type="text/javascript">
function dslinkopen() {
var url = "{$DISCORD_SERVER['link']}";
window.open(url, "_blank");
}
</script>
<script type="text/javascript">
{if isset($AUTO_LANGUAGE)}
const autoLanguage = document.getElementById('auto-language');
const autoLanguageValue = $.cookie('auto_language') ?? 'true';
autoLanguage.innerText = '{$AUTO_LANGUAGE_TEXT} (' + (autoLanguageValue === 'true' ? '{$ENABLED}' : '{$DISABLED}') + ')';
{if isset($AUTO_LANGUAGE_VALUE)}
if (autoLanguageValue) {
autoLanguage.title = '{$AUTO_LANGUAGE_VALUE}';
}
{/if}
function toggleAutoLanguage() {
$.cookie(
'auto_language',
autoLanguageValue === 'true' ? 'false' : 'true',
{ path: '/' }
);
window.location.reload();
}
{/if}
</script>
{if $PRELOADERVIEW eq '1'}
<script>
$(document).ready(function() {
$(window).on('load', function() {
$('#preloader').delay(500).fadeOut('slow', function() {
$(this).remove();
});
});
});
</script>
{/if}
{if isset($NEW_UPDATE) && ($NEW_UPDATE_URGENT != true)}
<script src="{$TEMPLATE.path}/js/core/update.js"></script>
{/if}
{if !isset($EXCLUDE_END_BODY)}
{if isset($DEBUGBAR_HTML)}
{$DEBUGBAR_HTML}
{/if}
</body>
</html>
{/if}