aside.php

main 65 lines · 1.7 KB Raw
Alex Alex Commit Initial commit 01/10/2026 09:20
1<?php
2/**
3 * Right column of the default theme.
4 *
5 * Included only because shells/default.php calls theme_sidebar(). A theme with
6 * no sidebar simply does not call it, and does not need this file at all.
7 *
8 * Each widget() call loads widgets/<name>.php from this theme, falling back to
9 * the default theme's copy.
10 */
11?>
12<!-- RIGHT PANE -->
13<div class="pull-right rightPane">
14<?php
15
16if (user_logged_in() === true) {
17
18 widget('myaccount');
19
20 if (isset($user_data) && has_admin_panel_access($user_data)) {
21 widget('admin');
22 }
23
24} else {
25 widget('login');
26}
27
28if (!empty($config['otservers_eu_voting']['enabled'])) {
29 widget('vote');
30}
31
32widget('charactersearch');
33widget('topplayers');
34widget('highscore');
35
36if (!empty($config['powergamers']['enabled'])) {
37 widget('powergamers');
38}
39
40widget('serverinfo');
41
42if (!empty($config['ServerEngine']) && znote_server_adapter()->normalizedEngine() !== 'TFS_02') {
43 widget('houses');
44}
45
46/* FOLLOW BLOCK */
47if (!empty($follow['enabled'])): ?>
48 <div class="well">
49 <div class="header"><?= t('widget.follow.title') ?></div>
50 <div class="body">
51 <table class="smedia centralizeContent">
52 <tr>
53 <td><a href="<?= htmlspecialchars($follow['facebook'] ?? '#') ?>" target="_blank" rel="noopener"><i class="fa fa-facebook"></i></a></td>
54 <td><a href="<?= htmlspecialchars($follow['twitter'] ?? '#') ?>" target="_blank" rel="noopener"><i class="fa fa-twitter"></i></a></td>
55 <td><a href="<?= htmlspecialchars($follow['youtube'] ?? '#') ?>" target="_blank" rel="noopener"><i class="fa fa-youtube"></i></a></td>
56 <td><a href="<?= htmlspecialchars($follow['twitch'] ?? '#') ?>" target="_blank" rel="noopener"><i class="fa fa-twitch"></i></a></td>
57 </tr>
58 </table>
59 </div>
60 </div>
61<?php endif; ?>
62
63</div>
64<!-- RIGHT PANE END -->
65
Top