slitaz-forge view forum/themes/slitaz/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"><?php $this->RenderAsset('Panel'); ?></div>
16 </div>
17 <div class="clear">&nbsp;</div>
18 </div>
20 <div id="Header">
22 <a href="<?php echo Url('/'); ?>"><img id="logo"
23 src="themes/slitaz/images/logo.png" title="www.slitaz.org" alt="www.slitaz.org"
24 style="border: 0px solid ; width: 200px; height: 74px;" /></a>
25 <p id="titre">#!/Support/Forum</p>
27 </div>
29 <div id="Nav">
30 <?php
31 $Session = Gdn::Session();
32 if ($this->Menu) {
33 $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage'));
34 // $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete'));
35 $this->Menu->AddLink('Activity', T('Activity'), '/activity');
36 $Authenticator = Gdn::Authenticator();
37 if ($Session->IsValid()) {
38 $Name = $Session->User->Name;
39 $CountNotifications = $Session->User->CountNotifications;
40 if (is_numeric($CountNotifications) && $CountNotifications > 0)
41 $Name .= ' <span>'.$CountNotifications.'</span>';
43 $this->Menu->AddLink('User', "Profile ($Name)", '/profile/{UserID}/{Username}', array('Garden.SignIn.Allow'), array('class' => 'UserNotifications'));
44 $this->Menu->AddLink('SignOut', T('Sign Out'), $Authenticator->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut'));
45 } else {
46 $Attribs = array();
47 if (C('Garden.SignIn.Popup') && strpos(Gdn::Request()->Url(), 'entry') === FALSE)
48 $Attribs['class'] = 'SignInPopup';
50 $this->Menu->AddLink('Entry', T('Sign In'), $Authenticator->SignInUrl($this->SelfUrl), FALSE, array('class' => 'NonTab'), $Attribs);
51 }
52 echo $this->Menu->ToString();
53 }
54 ?>
55 <div id="Search">
56 <?php
57 $Form = Gdn::Factory('Form');
58 $Form->InputPrefix = '';
59 echo
60 $Form->Open(array('action' => Url('/search'), 'method' => 'get')),
61 $Form->TextBox('Search'),
62 $Form->Button('Search', array('Name' => '')),
63 $Form->Close();
64 ?>
65 </div>
66 </div>
68 <div id="Footer">
69 Copyright &copy; 2010 <a href="http://www.slitaz.org/">SliTaz</a> -
70 <a href="http://vanillaforums.org">Powered by Vanilla</a>
71 </div>
72 </div>
74 <?php $this->FireEvent('AfterBody'); ?>
75 </body>
76 </html>