Authentication/layout/bridge/layout.authtab.php
2023-02-06 15:44:28 +01:00

14 lines
950 B
PHP

<?php
/** @var \FuzeWorks\Authentication\Model\Session $session */
$color = $session->user->id !== "0" ? '#3ba9e6' : '#666666';
$color = $session->user->hasPermission("SUPER") ? "#aa0000" : $color;
$user = $session->user->id !== "0" ? $session->user->primaryEmail : 'Guest';
?>
<span title="Auth">
<svg viewBox="0 0 1000 1000">
<path d="M500,10C229.4,10,10,229.4,10,500c0,270.7,219.4,490,490,490c270.7,0,490-219.4,490-490C990,229.4,770.7,10,500,10z M381.2,220.6c31.7-31.7,73.8-49.1,118.9-49.1c44.9,0,87.3,17.4,118.7,49.1c32,31.8,49.5,73.9,49.5,118.9c0,44.9-17.5,86.9-49.5,118.7c-31.5,31.7-73.8,49.3-118.7,49.3c-45,0-87.1-17.5-118.9-49.3c-31.7-31.7-49.3-73.9-49.3-118.7C331.9,294.5,349.5,252.4,381.2,220.6z M500,895c-125.9,0-239.7-52-320.8-135.8c36.9-105.4,135.6-185.3,245.5-185.3h150.5c109.7,0,208.6,79.9,245.6,185.2C739.6,843,625.9,895,500,895z" fill-opacity=".9" fill="<?= $color ?>"/>
</svg>
<span class="tracy-label"><?= $user ?></span>
</span>