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

New Try

Files:
1 modified

Legend:

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

    r464 r541  
    114114 if ( $blog["Vclassroom"] != null)  
    115115 {  
    116      echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);   
     116     echo $this->element('vclassrooms', $blog["Vclassroom"]);   
    117117 } 
    118118 
     
    127127     
    128128     
    129  if ( $blog["Lesson"] != null)  
    130  {  
    131     echo $this->renderElement('lesson', $blog["Lesson"]);   
    132  }  
     129 if ( $blog["Lesson"] != null ): 
     130      echo $this->element('lesson', $blog["Lesson"]);   
     131 endif;  
    133132          
    134  if ( $blog["Podcast"] != null )  
    135  {  
    136          echo $this->renderElement('podcast', $blog["Podcast"]);   
    137  }  
     133 if ( $blog["Podcast"] != null ):  
     134      echo $this->element('podcast', $blog["Podcast"]);   
     135 endif; 
    138136          
    139  if ( $blog["Catfaq"] != null )  
    140  {  
    141          echo $this->renderElement('catfaqs', $blog["Catfaq"]);   
    142  }  
     137 if ( $blog["Catfaq"] != null ):  
     138      echo $this->element('catfaqs', $blog["Catfaq"]);   
     139 endif; 
    143140          
    144  if ( $blog["Acquaintance"] != null)  
    145  {  
    146          echo $this->renderElement('acquaintances', $blog["Acquaintance"]);   
    147  } 
     141 if ( $blog["Acquaintance"] != null ):  
     142       echo $this->element('acquaintances', $blog["Acquaintance"]);   
     143 endif; 
    148144         
    149145/* maybe remove this later 
    150146if ( $blog["Catforum"] != null)  
    151147{ 
    152          echo $this->renderElement('catforums', $blog["Catforum"]);   
     148         echo $this->element('catforums', $blog["Catforum"]);   
    153149} 
    154150*/ 
    155151 
    156  if ( !isset( $cU['User']['id'] ) )  
    157  {   
    158  e($html->para($html->link( 
     152 if ( $session->check('Auth.User') ):   
     153      e($html->para($html->link( 
    159154                           $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')),  
    160155                           '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0')));  
    161  }  
     156 endif;  
    162157      
    163158 e($html->div('temas', 'Powered by')); 
     
    175170    <div id="footer">  
    176171        <div id="top" class="noprint"><p><span class="noscreen">Back on top</span> <a href="#header" title="Back on top ^">^<span></span></a></p></div>  
    177                 <hr class="noscreen" />  
     172      <hr class="noscreen" />  
    178173                  
    179174  <p id="createdby">created by <a href="http://www.nuvio.cz">Nuvio | Webdesign</a> <!-- DON?T REMOVE, PLEASE! --></p>  
     
    185180</div> <!-- /footer -->  
    186181</div> <!-- /main -->  
    187   
    188182</body>  
    189183</html>