slitaz-forge diff 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 diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/forum/themes/slitaz-2/views/default.master.php Wed Dec 22 10:36:12 2010 +0100 1.3 @@ -0,0 +1,84 @@ 1.4 +<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> 1.5 +<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"> 1.6 + <head> 1.7 + <?php $this->RenderAsset('Head'); ?> 1.8 + </head> 1.9 + <body id="<?php echo $BodyIdentifier; ?>" class="<?php echo $this->CssClass; ?>"> 1.10 + <div id="Wrapper"> 1.11 + <div id="Main"> 1.12 + <div id="ContentHolder"> 1.13 + <div id="Content"> 1.14 + <?php $this->RenderAsset('Content'); ?> 1.15 + </div> 1.16 + </div> 1.17 + <div id="PanelHolder"> 1.18 + <div id="Panel"> 1.19 + 1.20 + <div class="Box"> 1.21 + <h4>Navigation</h4> 1.22 + 1.23 + <?php 1.24 + $Session = Gdn::Session(); 1.25 + if ($this->Menu) { 1.26 + $this->Menu->AddLink('Dashboard', T('Dashboard'), '/dashboard/settings', array('Garden.Settings.Manage')); 1.27 + // $this->Menu->AddLink('Dashboard', T('Users'), '/user/browse', array('Garden.Users.Add', 'Garden.Users.Edit', 'Garden.Users.Delete')); 1.28 + $this->Menu->AddLink('Activity', T('Activity'), '/activity'); 1.29 + $Authenticator = Gdn::Authenticator(); 1.30 + if ($Session->IsValid()) { 1.31 + $Name = $Session->User->Name; 1.32 + $CountNotifications = $Session->User->CountNotifications; 1.33 + if (is_numeric($CountNotifications) && $CountNotifications > 0) 1.34 + $Name .= ' <span>'.$CountNotifications.'</span>'; 1.35 + 1.36 + $this->Menu->AddLink('User', "Profile ($Name)", '/profile/{UserID}/{Username}', array('Garden.SignIn.Allow'), array('class' => 'UserNotifications')); 1.37 + $this->Menu->AddLink('SignOut', T('Sign Out'), $Authenticator->SignOutUrl(), FALSE, array('class' => 'NonTab SignOut')); 1.38 + } else { 1.39 + $Attribs = array(); 1.40 + if (C('Garden.SignIn.Popup') && strpos(Gdn::Request()->Url(), 'entry') === FALSE) 1.41 + $Attribs['class'] = 'SignInPopup'; 1.42 + 1.43 + $this->Menu->AddLink('Entry', T('Sign In'), $Authenticator->SignInUrl($this->SelfUrl), FALSE, array('class' => 'NonTab'), $Attribs); 1.44 + } 1.45 + echo $this->Menu->ToString(); 1.46 + } 1.47 + ?> 1.48 + </div> 1.49 + <?php $this->RenderAsset('Panel'); ?> 1.50 + </div> 1.51 + </div> 1.52 + <div class="clear"> </div> 1.53 + </div> 1.54 + 1.55 + <div id="Header"> 1.56 + 1.57 + <a href="http://forum.slitaz.org/"><img id="logo" 1.58 + src="themes/slitaz/images/logo.png" title="www.slitaz.org" alt="www.slitaz.org" 1.59 + style="border: 0px solid ; width: 200px; height: 74px;" /></a> 1.60 + <p id="titre">#!/Support/Forum</p> 1.61 + 1.62 + </div> 1.63 + 1.64 + <div id="Nav"> 1.65 + 1.66 + <div id="Search"> 1.67 + <?php 1.68 + $Form = Gdn::Factory('Form'); 1.69 + $Form->InputPrefix = ''; 1.70 + echo 1.71 + $Form->Open(array('action' => Url('/search'), 'method' => 'get')), 1.72 + $Form->TextBox('Search'), 1.73 + $Form->Button('Search', array('Name' => '')), 1.74 + $Form->Close(); 1.75 + ?> 1.76 + </div> 1.77 + </div> 1.78 + 1.79 + <div id="Footer"> 1.80 + Copyright © 2010 <a href="http://www.slitaz.org/">SliTaz</a> - 1.81 + <a href="http://vanillaforums.org">Powered by Vanilla</a> 1.82 + </div> 1.83 + </div> 1.84 + 1.85 + <?php $this->FireEvent('AfterBody'); ?> 1.86 + </body> 1.87 +</html>