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