Changeset 240 for trunk/app/views/layouts
- Timestamp:
- 02/18/08 20:28:30 (9 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/layouts/portal.ctp (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/layouts/portal.ctp
r239 r240 1 1 <?php echo '<?xml version="1.0"?>'; ?> 2 < !DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">2 <?php echo $html->docType(); ?> 3 3 <html xmlns="http://www.w3.org/1999/xhtml"> 4 4 <head> 5 5 <meta http-equiv="content-type" content="text/html; charset=utf-8" /> 6 6 <title>Karamelo:: <?php echo $title_for_layout; ?> </title> 7 <meta name="keywords" content="education, school " />7 <meta name="keywords" content="education, school, elearning" /> 8 8 <meta name="description" content="Educational Portal" /> 9 9 <?php … … 23 23 <div id="toplinks"> 24 24 <?php 25 if ( $othAuth->sessionValid() )25 if ( isset( $cU['User']['id']) ) 26 26 { 27 27 echo '<span style="font-size:7pt;color:#8bb126;padding-right:15px">You are logged in as <b>'; 28 28 29 echo $ othAuth->user('username').'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';29 echo $cU['User']['username'] .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | '; 30 30 31 31 if ( $othAuth->user('group_id') < 3 ) // the logged user is teacher or admin? … … 59 59 echo $this->renderElement('menu_b'); 60 60 61 if ( $othAuth->sessionValid() )61 if ( isset( $cU['User']['id']) ) 62 62 { 63 63 echo '<div class="spaced">'.$html->link('Logout','/users/logout').'</div>'; … … 68 68 } 69 69 70 echo $this->renderElement('lastentries', $Element["Lentry"]);70 // echo $this->renderElement('lastentries', $Element["Lentry"]); 71 71 echo '<br />'; 72 echo $this->renderElement('poll', $Element["Poll"]);72 //echo $this->renderElement('poll', $Element["Poll"]); 73 73 74 echo $this->renderElement('subjects');74 // echo $this->renderElement('subjects'); 75 75 ?> 76 <ul> 77 78 <li id="archives"> 79 <h2 class="bg3">Search</h2> 80 <?php echo $this->renderElement('search'); ?> 76 <ul> 77 <li id="archives"> 78 <h2 class="bg3">Search</h2> 79 <?php echo $this->renderElement('search'); ?> 81 80 </li> 82 81 </ul> … … 88 87 <div id="footer"> 89 88 90 <p><?php echo $this->renderElement('footer') . '<br /> ' . $this->renderElement('quote', $Element["Quote"]); ?></p> 89 <p><?php 90 // echo $this->renderElement('footer') . '<br /> ' . $this->renderElement('quote', $Element["Quote"]); 91 ?></p> 91 92 92 <p id="legal"><strong>Karamelo</strong> © 200 7. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>93 <p id="legal"><strong>Karamelo</strong> © 2002-2008. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p> 93 94 <p id="links"> <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p> 94 95 </div> 95 96 <!-- end footer --> 96 97 <?php 97 if ( ! $othAuth->sessionValid() )98 if ( !isset( $cU['User']) ) 98 99 { 99 100 echo $this->renderElement('login_hide');
