slitaz-forge annotate forum/themes/slitaz-2/views/default.master.php @ rev 1

Add slitaz themes for vanilla
author Eric Joseph-Alexandre <erjo@slitaz.org>
date Wed Dec 22 10:36:12 2010 +0100 (2010-12-22)
parents
children
rev   line source
erjo@1 1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
erjo@1 2 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
erjo@1 3 <head>
erjo@1 4 <?php $this->RenderAsset('Head'); ?>
erjo@1 5 </head>
erjo@1 6 <body id="<?php echo $BodyIdentifier; ?>" class="<?php echo $this->CssClass; ?>">
erjo@1 7 <div id="Wrapper">
erjo@1 8 <div id="Main">
erjo@1 9 <div id="ContentHolder">
erjo@1 10 <div id="Content">
erjo@1 11 <?php $this->RenderAsset('Content'); ?>
erjo@1 12 </div>
erjo@1 13 </div>
erjo@1 14 <div id="PanelHolder">
erjo@1 15 <div id="Panel">
erjo@1 16
erjo@1 17 <div class="Box">
erjo@1 18 <h4>Navigation</h4>
erjo@1 19
erjo@1 20 <?php
erjo@1 21 $Session = Gdn::Session();
erjo@1 22 if ($this->Menu) {
erjo@1 23 $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'));
erjo@1 24 // $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
erjo@1 25 $this->Menu->AddLink('Activity', T('Activity'), '/activity');
erjo@1 26 $Authenticator = Gdn::Authenticator();
erjo@1 27 if ($Session->IsValid()) {
erjo@1 28 $Name = $Session->User->Name;
erjo@1 29 $CountNotifications = $Session->User->CountNotifications;
erjo@1 30 if (is_numeric($CountNotifications) && $CountNotifications > 0)
erjo@1 31 $Name .= ' <span>'.$CountNotifications.'</span>';
erjo@1 32
erjo@1 33 $this->Menu->AddLink('User', "Profile ($Name)", '/profile/{UserID}/{Username}', array('Garden.SignIn.Allow'), array('class' => 'UserNotifications'));
erjo@1 34 $this->Menu->AddLink('SignOut', T('Sign Out'), $Authenticator->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut'));
erjo@1 35 } else {
erjo@1 36 $Attribs = array();
erjo@1 37 if (C('Garden.SignIn.Popup') && strpos(Gdn::Request()->Url(), 'entry') === FALSE)
erjo@1 38 $Attribs['class'] = 'SignInPopup';
erjo@1 39
erjo@1 40 $this->Menu->AddLink('Entry', T('Sign In'), $Authenticator->SignInUrl($this->SelfUrl), FALSE, array('class' => 'NonTab'), $Attribs);
erjo@1 41 }
erjo@1 42 echo $this->Menu->ToString();
erjo@1 43 }
erjo@1 44 ?>
erjo@1 45 </div>
erjo@1 46 <?php $this->RenderAsset('Panel'); ?>
erjo@1 47 </div>
erjo@1 48 </div>
erjo@1 49 <div class="clear">&nbsp;</div>
erjo@1 50 </div>
erjo@1 51
erjo@1 52 <div id="Header">
erjo@1 53
erjo@1 54 <a href="http://forum.slitaz.org/"><img id="logo"
erjo@1 55 src="themes/slitaz/images/logo.png" title="www.slitaz.org" alt="www.slitaz.org"
erjo@1 56 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
erjo@1 57 <p id="titre">#!/Support/Forum</p>
erjo@1 58
erjo@1 59 </div>
erjo@1 60
erjo@1 61 <div id="Nav">
erjo@1 62
erjo@1 63 <div id="Search">
erjo@1 64 <?php
erjo@1 65 $Form = Gdn::Factory('Form');
erjo@1 66 $Form->InputPrefix = '';
erjo@1 67 echo
erjo@1 68 $Form->Open(array('action' => Url('/search'), 'method' => 'get')),
erjo@1 69 $Form->TextBox('Search'),
erjo@1 70 $Form->Button('Search', array('Name' => '')),
erjo@1 71 $Form->Close();
erjo@1 72 ?>
erjo@1 73 </div>
erjo@1 74 </div>
erjo@1 75
erjo@1 76 <div id="Footer">
erjo@1 77 Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
erjo@1 78 <a href="http://vanillaforums.org">Powered by Vanilla</a>
erjo@1 79 </div>
erjo@1 80 </div>
erjo@1 81
erjo@1 82 <?php $this->FireEvent('AfterBody'); ?>
erjo@1 83 </body>
erjo@1 84 </html>