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/school.ctp

    r343 r541  
    4949</div> <!-- /search -->  
    5050<?php 
    51  if ( $blog["Lesson"] != null) 
    52  { 
    53             echo $this->renderElement('lesson', $blog["Lesson"]);  
    54  } 
    55  if ( $blog["Podcast"] != null ) 
    56  { 
    57             echo $this->renderElement('podcast', $blog["Podcast"]);  
    58  } 
     51  if ( $blog["Lesson"] != null): 
     52            echo $this->element('lesson', $blog["Lesson"]);  
     53 endif; 
     54 
     55 if ( $blog["Podcast"] != null ): 
     56            echo $this->element('podcast', $blog["Podcast"]);  
     57 endif; 
    5958                  
    60  if ( $blog["Catfaq"] != null ) 
    61  { 
    62            echo $this->renderElement('catfaqs', $blog["Catfaq"]);  
    63  } 
     59 if ( $blog["Catfaq"] != null ): 
     60           echo $this->element('catfaqs', $blog["Catfaq"]);  
     61 endif; 
    6462                 
    65  if ( $blog["Acquaintance"] != null) 
    66  { 
    67            echo $this->renderElement('acquaintances', $blog["Acquaintance"]);  
    68  } 
     63 if ( $blog["Acquaintance"] != null); 
     64           echo $this->element('acquaintances', $blog["Acquaintance"]);  
     65 endif; 
    6966         
    70  if ( $blog["Vclassroom"] != null) 
    71  { 
    72            echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);  
    73  } 
     67 if ( $blog["Vclassroom"] != null): 
     68           echo $this->element('vclassrooms', $blog["Vclassroom"]);  
     69 endif; 
    7470        
    75  if ( $blog["Catforum"] != null) 
    76  { 
    77                       echo $this->renderElement('catforums', $blog["Catforum"]);  
    78  } 
     71 if ( $blog["Catforum"] != null): 
     72           echo $this->element('catforums', $blog["Catforum"]);  
     73 endif; 
    7974 
    80  if ( !$cU['User'] ) 
    81  {  
     75 if ( !$session->check('Auth.User') ):  
    8276      echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 
    8377         $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 
    8478                                                         '/users/login', false, false, null) . "</p>"; 
    85  } 
     79 endif; 
    8680?> 
    8781</td>