web/website/integrations/osticket/dune-support-home.php

33 lines
3.1 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?php
// Public catalogue only: no private ticket information is rendered here.
$publicTopics = Topic::getPublicHelpTopics();
$topicUrl = static function ($name) use ($publicTopics) {
foreach ($publicTopics as $id => $label) if ($label === $name) return '/open.php?topicId='.(int)$id;
return null;
};
$cards = [
['Parental requests','FOR PARENTS & GUARDIANS','Request parental consent or ask about a child’s account. The Legal team reviews requests manually; this form does not automatically grant consent or change an account.','Parental consent request [Preview]','Open parental request','seals/department-legal-v2-150.png'],
['GDPR data removal','PRIVACY & ACCOUNT DATA','Ask the Legal team to review deletion of your account data. Identify the relevant account and explain your request. Ownership and scope are verified before any action. Do not upload passwords or identity documents.','GDPR data removal request','Request data removal','seals/department-legal-150.png'],
['General support','ACCOUNT, WEBSITE & GAME HELP','Tell Support what went wrong, where it happened, when it happened and what you tried. Include the error message or a relevant screenshot without passwords or unrelated personal information.','General support','Get support','nav-support-full-v2.webp'],
['Appeal a ban','REQUEST A MODERATION REVIEW','Use the ban ID to open a private appeal linked to the original ban. Explain the situation and attach relevant evidence. A pending appeal does not itself remove a ban.','Ban appeal','Open ban appeal','seals/department-ban-appeals-150.png'],
['Become an Alpha tester','HELP SHAPE THE REALMS','Java or Bedrock, new or experienced: tell us what you would like to test. Applications are reviewed privately by Support.','Alpha Tester Signup','Sign up for Alpha testing','news-community.webp'],
];
$esc = static fn($v) => htmlspecialchars((string)$v, ENT_QUOTES, 'UTF-8');
?>
<link rel="stylesheet" href="/dune-support-home.css?v=20261102-1">
<div id="dune-support-home" class="dune-support-home">
<div class="dune-support-options" aria-label="Support request types">
<?php foreach ($cards as [$title,$label,$description,$topic,$button,$art]):
$url = $topicUrl($topic); if (!$url) continue;
if ($topic === 'Ban appeal') $url = '/appeal.php';
if ($topic === 'Alpha Tester Signup') $url = '/alpha-signup.php'; ?>
<section class="dune-support-card">
<img src="https://www.dunerealms.com/assets/<?=$esc($art)?>" alt="" width="180" height="120" loading="lazy">
<div><p class="eyebrow"><?=$esc($label)?></p><h2><?=$esc($title)?></h2><p><?=$esc($description)?></p><a class="button" href="<?=$esc($url)?>"><?=$esc($button)?></a>
<?php if ($topic === 'Parental consent request [Preview]' && ($removal=$topicUrl('Parental data removal [Preview]'))): ?><a class="dune-secondary-request" href="<?=$esc($removal)?>">Child’s account data removal →</a><?php endif; ?>
</div>
</section>
<?php endforeach; ?>
</div>
<p class="dune-support-track"><a href="/view.php">Check an existing ticket →</a> · Requests are private to the requester and authorised staff. Submitting a request does not automatically change an account.</p>
</div>