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

    r315 r541  
    342342<?php 
    343343//var_dump($pages); 
    344 echo "<p>".$blog[0]["User"]["cv"] . "<br />"; 
     344 
    345345echo $html->image('avatars/'.$blog[0]["User"]["photo"], array("alt"=>$blog[0]["User"]["username"], "title"=>$blog[0]["User"]["username"])) . "</p>"; 
    346 ?> 
    347  
    348 <?php  
    349  
    350 if ( $blog[0]["Page"] != null) 
     346 
     347 if ( $blog["Lesson"] != null ): 
     348      echo $this->element('lesson', $blog["Lesson"]);   
     349 endif;  
     350          
     351 if ( $blog["Podcast"] != null ):  
     352      echo $this->element('podcast', $blog["Podcast"]);   
     353 endif; 
     354          
     355 if ( $blog["Catfaq"] != null ):  
     356      echo $this->element('catfaqs', $blog["Catfaq"]);   
     357 endif; 
     358          
     359 if ( $blog["Acquaintance"] != null ):  
     360       echo $this->element('acquaintances', $blog["Acquaintance"]);   
     361 endif; 
     362         
     363/* maybe remove this later 
     364if ( $blog["Catforum"] != null)  
    351365{ 
    352      echo $this->renderElement('static', $blog[0]["Page"]);  
    353 } 
    354  
    355 if ( $blog[0]["Podcast"] != null ) 
    356 { 
    357      echo $this->renderElement('podcast', $blog[0]["Podcast"]);  
    358 } 
    359  
    360 if ( $blog[0]["Catfaq"] != null ) 
    361 { 
    362      echo $this->renderElement('catfaqs', $blog[0]["Catfaq"]);  
    363 } 
    364  
    365 if ( $blog[0]["Vinculum"] != null) 
    366 { 
    367      echo $this->renderElement('vinculums', $blog[0]["Vinculum"]);  
    368 } 
    369  
    370 ?> 
    371    
     366         echo $this->element('catforums', $blog["Catforum"]);   
     367} 
     368*/ 
     369 
     370 if ( $session->check('Auth.User') ):   
     371      e($html->para($html->link( 
     372                           $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')),  
     373                           '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0')));  
     374 endif;  
     375?>   
    372376<div class="temas">Powered by:</div> 
    373377<div style="text-align:center;padding-top:15px"><a href="http://karamelo.chipotle-software.com/">