Show
Ignore:
Timestamp:
05/21/08 15:27:00 (6 months ago)
Author:
aarkerio
Message:

New Try

Files:
1 modified

Legend:

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

    r342 r541  
    44?> 
    55<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
    6  
    76<head> 
    87<?php 
     
    2019 
    2120<body> 
    22 <?php echo $this->renderElement('search_blog'); ?> 
     21<?php echo $this->element('search_blog'); ?> 
    2322 
    2423<div id="box"> 
     
    6160<div id="sidebar"> 
    6261<?php 
    63  if ( $blog["Lesson"] != null) 
    64  { 
    65             echo $this->renderElement('lesson', $blog["Lesson"]);  
    66  } 
    67  if ( $blog["Podcast"] != null ) 
    68  { 
    69             echo $this->renderElement('podcast', $blog["Podcast"]);  
    70  } 
     62 if ( $blog["Lesson"] != null): 
     63            echo $this->element('lesson', $blog["Lesson"]);  
     64 endif; 
     65 
     66 if ( $blog["Podcast"] != null ): 
     67            echo $this->element('podcast', $blog["Podcast"]);  
     68 endif; 
    7169                  
    72  if ( $blog["Catfaq"] != null ) 
    73  { 
    74            echo $this->renderElement('catfaqs', $blog["Catfaq"]);  
    75  } 
     70 if ( $blog["Catfaq"] != null ): 
     71           echo $this->element('catfaqs', $blog["Catfaq"]);  
     72 endif; 
    7673                 
    77  if ( $blog["Acquaintance"] != null) 
    78  { 
    79            echo $this->renderElement('acquaintances', $blog["Acquaintance"]);  
    80  } 
     74 if ( $blog["Acquaintance"] != null); 
     75           echo $this->element('acquaintances', $blog["Acquaintance"]);  
     76 endif; 
    8177         
    82  if ( $blog["Vclassroom"] != null) 
    83  { 
    84            echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);  
    85  } 
     78 if ( $blog["Vclassroom"] != null): 
     79           echo $this->element('vclassrooms', $blog["Vclassroom"]);  
     80 endif; 
    8681        
    87  if ( $blog["Catforum"] != null) 
    88  { 
    89                       echo $this->renderElement('catforums', $blog["Catforum"]);  
    90  } 
     82/* if ( $blog["Catforum"] != null): 
     83                      echo $this->element('catforums', $blog["Catforum"]);  
     84 endif; */ 
    9185 
    92  if ( !$cU['User'] ) 
    93  {  
     86 if ( !$session->check('Auth.User') ):  
    9487      echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 
    9588         $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 
    9689                                                         '/users/login', false, false, null) . "</p>"; 
    97  } 
     90 endif; 
    9891?> 
    9992