forked from vanilla/vanilla
/
admin.master.php
executable file
·46 lines (44 loc) · 1.73 KB
/
admin.master.php
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
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en-ca">
<head>
<?php $this->RenderAsset('Head'); ?>
</head>
<body id="<?php echo $BodyIdentifier; ?>" class="<?php echo $this->CssClass; ?>">
<div id="Frame">
<div id="Head">
<h1><?php echo Anchor(Gdn::Config('Garden.Title').' <span>'.T('Visit Site', '← Visit Site').'</span>', '/'); ?></h1>
<div class="User">
<?php
$Session = Gdn::Session();
$Authenticator = Gdn::Authenticator();
if ($Session->IsValid()) {
$this->FireEvent('BeforeUserOptionsMenu');
$Name = $Session->User->Name;
$CountNotifications = $Session->User->CountNotifications;
if (is_numeric($CountNotifications) && $CountNotifications > 0)
$Name .= '<span>'.$CountNotifications.'</span>';
echo Anchor($Name, '/profile/'.$Session->User->UserID.'/'.$Session->User->Name);
echo Anchor(T('Sign Out'), str_replace('{Session_TransientKey}', $Session->TransientKey(), $Authenticator->SignOutUrl()));
}
?>
</div>
</div>
<div id="Body">
<div id="Panel">
<?php
$this->RenderAsset('Panel');
?>
</div>
<div id="Content"><?php $this->RenderAsset('Content'); ?></div>
</div>
<div id="Foot">
<?php
$this->RenderAsset('Foot');
echo '<div class="Version">Version ', APPLICATION_VERSION, '</div>';
echo Wrap(Anchor(Img('/applications/dashboard/design/images/logo_footer.png', array('alt' => 'Vanilla Forums')), C('Garden.VanillaUrl')), 'div');
?>
</div>
</div>
<?php $this->FireEvent('AfterBody'); ?>
</body>
</html>