- Sidebar: number of upcoming raids next to "Raids" (all not archived, same as the dashboard
tile). Gold while a raid was posted since the last visit of the raid page (users.raids_seen_at,
schema v46; the posting time comes from the raid id = Discord message id). New raids are
marked "Neu" on the raid page, also in live updates; your own new raid is not. The raid ids
are cached in settings.raids_nav_cache: every raid fetch refreshes it, otherwise the sidebar
asks the bot after 5 minutes with a 3 s timeout and keeps the last state if it is down.
- Start page: the group photo alternates every 6 s with gallery pictures that members released
themselves ("Auf der Startseite zeigen", member_gallery.show_on_home, schema v47) - without
name or caption, only visible pictures of active members, with a pause button, only while
the photo is in view. Only the member can release a picture; leadership can only take it off
(logged).
- Dashboard: the tiles "Mitglieder" and "Berechtigungsgruppen" link to the user management and
the roles, like "Anstehende Raids".
- Tour: new steps for gallery, calendar, gear planner and patch notes; menu customization,
profile page, daily reward and the raid count mentioned.
- Privacy policy (activity, start page, withdrawal), account anonymization (resets
raids_seen_at), README and patch notes updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
225 lines
11 KiB
PHP
225 lines
11 KiB
PHP
<?php
|
||
require_once __DIR__ . '/includes/bootstrap.php';
|
||
require_once __DIR__ . '/includes/discord.php';
|
||
require_once __DIR__ . '/includes/member_profile.php'; // profile_image_url()
|
||
|
||
// Oeffentliche Startseite der Legion - fuer jeden sichtbar, auch ohne Login.
|
||
|
||
// Feste Angabe fuer die Startseite - bei Bedarf hier von Hand anpassen.
|
||
$memberLabel = '150+';
|
||
|
||
$discord = discord_invite_info();
|
||
|
||
// Galeriebilder, die Mitglieder selbst fuer die Startseite freigegeben haben (member_gallery.show_on_home) -
|
||
// sie wechseln sich mit dem Gemeinschaftsfoto ab (assets/js/home-photos.js), ohne Namen und Bildunterschrift.
|
||
$homePhotos = [];
|
||
try {
|
||
$homePhotos = array_map('profile_image_url', db()->query(
|
||
"SELECT g.filename FROM member_gallery g JOIN users u ON u.id = g.user_id
|
||
WHERE g.show_on_home = 1 AND g.status = 'visible' AND g.is_background = 0 AND u.status = 'active'
|
||
ORDER BY RAND() LIMIT 30"
|
||
)->fetchAll(PDO::FETCH_COLUMN));
|
||
} catch (PDOException $e) {
|
||
$homePhotos = [];
|
||
}
|
||
|
||
$values = [
|
||
[
|
||
'emoji' => '🌠',
|
||
'title' => 'Zusammenhalt',
|
||
'text' => 'Keiner steht allein. Ob Neuling oder Veteran – jeder ist Teil unserer Gemeinschaft. Wir glauben an gegenseitige Unterstützung, Hilfsbereitschaft und Vertrauen.',
|
||
],
|
||
[
|
||
'emoji' => '💫',
|
||
'title' => 'Respekt & Fairness',
|
||
'text' => 'Unsere Legion ist ein Ort des Wohlfühlens. Wir begegnen einander mit Achtung und Offenheit – toxisches Verhalten, Egoismus oder Drama haben hier keinen Platz.',
|
||
],
|
||
[
|
||
'emoji' => '🔥',
|
||
'title' => 'Leidenschaft & Ehrgeiz',
|
||
'text' => 'Wir streben nach Stärke, ohne die Freude zu verlieren. Unser Ziel ist es, eine der stärksten Legionen in Aion 2 zu werden – durch Disziplin, Teamgeist und Spaß am Spiel.',
|
||
],
|
||
[
|
||
'emoji' => '🌿',
|
||
'title' => 'Freude & Freundschaft',
|
||
'text' => 'Der Kern unserer Legion ist das Miteinander. Egal ob in Raids, PvP oder entspannten Abenden im Discord – wir teilen gemeinsame Erlebnisse und lachen zusammen.',
|
||
],
|
||
];
|
||
|
||
// Erste Schritte: so laeuft die Aufnahme in die Legion ab.
|
||
$steps = [
|
||
['icon' => 'discord', 'title' => 'Discord beitreten', 'text' => 'Komm über den Einladungslink unten auf unseren Discord-Server.'],
|
||
['icon' => 'shield-check', 'title' => 'Verifizieren', 'text' => 'Verifiziere dich kurz auf dem Server, damit du die Kanäle sehen kannst.'],
|
||
['icon' => 'ticket', 'title' => 'Ticket erstellen', 'text' => 'Öffne im Discord ein Ticket - dort läuft deine Bewerbung ab.'],
|
||
['icon' => 'edit', 'title' => 'Vorstellung schreiben', 'text' => 'Erzähl uns im Ticket, wer du bist, was du spielst und warum du zu uns möchtest.'],
|
||
['icon' => 'message', 'title' => 'Kennenlernen', 'text' => 'Du unterhältst dich ein bisschen mit den Sedes Luminis, unserer Legionsleitung.'],
|
||
['icon' => 'crown', 'title' => 'Entscheidung', 'text' => 'Die Legionsleitung entscheidet, ob es passt - und wenn ja: Willkommen in der Legion!'],
|
||
];
|
||
|
||
// Eckdaten der Legion (Fraktion und Sprache wie in der Beschreibung des Discord-Servers).
|
||
$facts = [
|
||
['label' => 'Spiel', 'value' => 'Aion 2'],
|
||
['label' => 'Fraktion', 'value' => 'Elyos'],
|
||
['label' => 'Sprache', 'value' => 'Deutsch'],
|
||
['label' => 'Fokus', 'value' => 'PvE & PvP'],
|
||
];
|
||
$facts[] = ['label' => 'Aktive Mitglieder', 'value' => $memberLabel, 'highlight' => true];
|
||
|
||
$pageTitle = '';
|
||
$publicLayout = true;
|
||
$fullBleed = true;
|
||
$bodyClass = 'home-page';
|
||
$metaDescription = 'Lumina Ascendens ist eine deutschsprachige Elyos-Legion in Aion 2. Zusammenhalt, Respekt, Ehrgeiz und Freundschaft - in Raids, PvP und im Discord. Komm vorbei!';
|
||
$ogImage = site_url('/assets/images/banner-og.jpg');
|
||
include __DIR__ . '/includes/header.php';
|
||
?>
|
||
<div class="home-banner">
|
||
<img src="<?= e(asset_url('/assets/images/banner.webp')) ?>"
|
||
srcset="<?= e(asset_url('/assets/images/banner-1200.webp')) ?> 1200w, <?= e(asset_url('/assets/images/banner.webp')) ?> 2055w"
|
||
sizes="100vw" width="2055" height="765"
|
||
alt="Lumina Ascendens - Legion in Aion 2">
|
||
</div>
|
||
|
||
<div class="home-facts-wrap">
|
||
<ul class="home-facts" aria-label="Eckdaten der Legion">
|
||
<?php foreach ($facts as $fact): ?>
|
||
<li<?= !empty($fact['highlight']) ? ' class="is-highlight"' : '' ?>>
|
||
<span><?= e($fact['label']) ?></span>
|
||
<strong><?= e($fact['value']) ?></strong>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ul>
|
||
</div>
|
||
|
||
<section class="home-section home-about">
|
||
<div>
|
||
<span class="home-pill">Über uns</span>
|
||
<h1>Schön, dass du <span class="home-gradient-text">da bist.</span></h1>
|
||
</div>
|
||
<div class="home-about-text">
|
||
<p>
|
||
Wir sind <strong>Lumina Ascendens</strong>, eine Legion in <strong>Aion 2</strong>.
|
||
Hinter dem Namen stecken Spielerinnen und Spieler, die das Spiel am liebsten
|
||
gemeinsam erleben: zusammen durch Raids, Seite an Seite im PvP und abends im
|
||
Discord einfach quatschen.
|
||
</p>
|
||
<p>
|
||
Bei uns zählt nicht nur, wie stark dein Charakter ist, sondern wer du bist. Ob du
|
||
gerade erst in Atreia angekommen bist oder schon jede Festung kennst: Wenn du eine
|
||
Legion suchst, in der man sich kennt und aufeinander zählen kann, bist du hier richtig.
|
||
</p>
|
||
<a class="home-link" href="#discord">Komm auf unseren Discord <span aria-hidden="true">→</span></a>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="home-section home-photo-section">
|
||
<figure class="home-photo<?= $homePhotos ? ' has-slides' : '' ?>"<?= $homePhotos ? " data-photos='" . e((string) json_encode($homePhotos)) . "'" : '' ?>>
|
||
<img class="home-photo-slide is-visible" src="<?= e(asset_url('/assets/images/legion-gemeinsam.webp')) ?>"
|
||
srcset="<?= e(asset_url('/assets/images/legion-gemeinsam-1000.webp')) ?> 1000w, <?= e(asset_url('/assets/images/legion-gemeinsam.webp')) ?> 1920w"
|
||
sizes="(max-width: 1120px) 100vw, 1120px"
|
||
width="1920" height="1072" loading="lazy"
|
||
alt="Gemeinschaftsfoto der Legion Lumina Ascendens in Aion 2">
|
||
<figcaption>
|
||
<span class="home-photo-tag">📸 Gemeinschaftsfoto</span>
|
||
<span class="home-photo-text">Die Legion beim Stresstest von Aion 2</span>
|
||
</figcaption>
|
||
<?php if ($homePhotos): ?>
|
||
<button type="button" class="home-photo-toggle" aria-pressed="false" aria-label="Bilderwechsel anhalten" hidden>
|
||
<?= icon('pause') ?><?= icon('play') ?>
|
||
</button>
|
||
<?php endif; ?>
|
||
</figure>
|
||
<?php if ($homePhotos): ?>
|
||
<script src="<?= e(asset_url('/assets/js/home-photos.js')) ?>" defer></script>
|
||
<?php endif; ?>
|
||
</section>
|
||
|
||
<section class="home-section home-values-section">
|
||
<div class="home-section-head">
|
||
<span class="home-pill">⚔️ Unsere Werte</span>
|
||
<h2>Wofür wir stehen</h2>
|
||
</div>
|
||
<div class="home-values">
|
||
<?php foreach ($values as $i => $value): ?>
|
||
<article class="home-value">
|
||
<div class="home-value-top">
|
||
<span class="home-value-emoji" aria-hidden="true"><?= $value['emoji'] ?></span>
|
||
<span class="home-value-no"><?= sprintf('%02d', $i + 1) ?></span>
|
||
</div>
|
||
<h3><?= e($value['title']) ?></h3>
|
||
<p><?= e($value['text']) ?></p>
|
||
</article>
|
||
<?php endforeach; ?>
|
||
</div>
|
||
</section>
|
||
|
||
<section class="home-section home-steps-section" id="beitreten">
|
||
<div class="home-section-head">
|
||
<span class="home-pill">Erste Schritte</span>
|
||
<h2>So wirst du Teil der <span class="home-gradient-text">Legion</span></h2>
|
||
<p class="home-section-lead">Von deinem ersten Klick bis zur Aufnahme - so läuft es bei uns ab.</p>
|
||
</div>
|
||
<ol class="home-steps">
|
||
<?php foreach ($steps as $i => $step): ?>
|
||
<li class="home-step">
|
||
<div class="home-step-head">
|
||
<span class="home-step-icon"><?= $step['icon'] === 'discord' ? discord_logo(22) : icon($step['icon']) ?></span>
|
||
<span class="home-step-label">Schritt <?= $i + 1 ?></span>
|
||
</div>
|
||
<h3><?= e($step['title']) ?></h3>
|
||
<p><?= e($step['text']) ?></p>
|
||
<span class="home-step-no" aria-hidden="true"><?= $i + 1 ?></span>
|
||
</li>
|
||
<?php endforeach; ?>
|
||
</ol>
|
||
</section>
|
||
|
||
<section class="home-section" id="discord">
|
||
<div class="home-discord">
|
||
<div class="home-discord-main">
|
||
<div class="home-discord-server">
|
||
<img src="/assets/images/apple-touch-icon.png" alt="" width="64" height="64">
|
||
<div>
|
||
<span class="home-discord-label"><?= discord_logo(16) ?> Discord-Server</span>
|
||
<h2><?= e($discord && $discord['name'] !== '' ? $discord['name'] : 'Lumina Ascendens') ?></h2>
|
||
</div>
|
||
</div>
|
||
<p>
|
||
Der Discord ist unser Treffpunkt: Hier planen wir Raids und Events, suchen Gruppen,
|
||
helfen uns gegenseitig und hängen abends zusammen im Voice-Chat ab. Schau vorbei,
|
||
stell dich kurz vor und frag, was du wissen willst - wir beißen nicht.
|
||
</p>
|
||
<a class="home-discord-button" href="<?= e(DISCORD_INVITE_URL) ?>" target="_blank" rel="noopener">
|
||
<?= discord_logo(22) ?>Discord beitreten
|
||
</a>
|
||
</div>
|
||
<?php if ($discord): ?>
|
||
<div class="home-discord-stats">
|
||
<div>
|
||
<strong><span class="pulse" aria-hidden="true"></span><?= e(number_format($discord['online'], 0, ',', '.')) ?></strong>
|
||
<span>gerade online</span>
|
||
</div>
|
||
<div>
|
||
<strong><?= e(number_format($discord['members'], 0, ',', '.')) ?></strong>
|
||
<span>Mitglieder im Discord</span>
|
||
</div>
|
||
<?php if ($discord['tag'] !== ''): ?>
|
||
<div>
|
||
<strong><?= e($discord['tag']) ?></strong>
|
||
<span>unser Server-Tag</span>
|
||
</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
<?php endif; ?>
|
||
</div>
|
||
</section>
|
||
|
||
<footer class="home-footer">
|
||
<p>Lumina Ascendens · Legion in Aion 2</p>
|
||
<p>Fanseite einer Spielergemeinschaft, nicht mit NCSOFT verbunden. Aion ist eine Marke von NCSOFT Corporation.</p>
|
||
<?= legal_links_html('legal-links home-footer-legal') ?>
|
||
</footer>
|
||
<?php
|
||
$legalFooterInPage = true;
|
||
include __DIR__ . '/includes/footer.php';
|
||
?>
|