Show
Ignore:
Timestamp:
02/18/08 20:28:30 (9 months ago)
Author:
aarkerio
Message:

Update views to cakephp 1.2

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/app/views/layouts/portal.ctp

    r239 r240  
    11<?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(); ?> 
    33<html xmlns="http://www.w3.org/1999/xhtml"> 
    44<head> 
    55<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
    66<title>Karamelo:: <?php echo $title_for_layout; ?> </title> 
    7 <meta name="keywords" content="education, school" /> 
     7<meta name="keywords" content="education, school, elearning" /> 
    88<meta name="description" content="Educational Portal" /> 
    99<?php 
     
    2323<div id="toplinks"> 
    2424<?php 
    25  if ( $othAuth->sessionValid() ) 
     25 if ( isset( $cU['User']['id']) ) 
    2626 { 
    2727   echo '<span style="font-size:7pt;color:#8bb126;padding-right:15px">You are logged in as <b>'; 
    2828 
    29    echo $othAuth->user('username') .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';  
     29   echo $cU['User']['username'] .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';  
    3030 
    3131        if ( $othAuth->user('group_id') < 3 ) // the logged user is teacher or admin? 
     
    5959   echo $this->renderElement('menu_b'); 
    6060   
    61    if ( $othAuth->sessionValid() ) 
     61   if ( isset( $cU['User']['id']) ) 
    6262   { 
    6363           echo '<div class="spaced">'.$html->link('Logout','/users/logout').'</div>'; 
     
    6868   } 
    6969 
    70   echo  $this->renderElement('lastentries', $Element["Lentry"]); 
     70// echo  $this->renderElement('lastentries', $Element["Lentry"]); 
    7171   echo  '<br />';    
    72    echo  $this->renderElement('poll',       $Element["Poll"]);  
     72//echo  $this->renderElement('poll',       $Element["Poll"]);  
    7373         
    74   echo $this->renderElement('subjects');  
     74// echo $this->renderElement('subjects');  
    7575?> 
    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'); ?>             
    8180            </li> 
    8281        </ul> 
     
    8887<div id="footer"> 
    8988 
    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> 
    9192 
    92     <p id="legal"><strong>Karamelo</strong> &copy; 2007. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p> 
     93    <p id="legal"><strong>Karamelo</strong> &copy; 2002-2008. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p> 
    9394    <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> 
    9495</div> 
    9596<!-- end footer --> 
    9697<?php 
    97  if ( !$othAuth->sessionValid() ) 
     98 if ( !isset( $cU['User']) ) 
    9899 { 
    99100            echo $this->renderElement('login_hide');