Show
Ignore:
Timestamp:
09/25/07 21:04:07 (14 months ago)
Author:
aarkerio
Message:

New blog layout

Files:
1 modified

Legend:

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

    r155 r156  
    3434           
    3535 </div><!-- /header --> 
    36 <div style="clear:both"></div> 
     36 <div style="clear:both"></div> 
     37 <!-- Main menu  --> 
     38 <div id="menu5"> 
     39 <ul> 
     40 <?php 
     41    $url = substr($_SERVER['argv'][0], 4, 10); 
     42       echo ($url == 'users/blog') ? '<li id="active">' : '<li>'; ?><a href="/users/blog/<?php echo $blog["User"]["username"] ?>">eduBlog</a></li> 
     43                        
     44     <?php echo ($url == 'users/port') ? '<li id="active">' : '<li>'; ?><a href="/users/portfolio/<?php echo $blog["User"]["username"] ?>">Portfolio</a></li>                
     45      <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> <a href="/users/about/<?php echo $blog["User"]["username"] ?>">About Me</a></li> 
     46   
     47      <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?> <a href="/messages/message/<?php echo $blog["User"]["username"] ?>">Contact</a></li> 
     48  </ul> 
     49</div> <!-- /tabs --> 
    3750<!-- Content div --> 
    3851<div id="content"> 
     
    4861            echo $this->renderElement('lesson', $blog["Lesson"]);  
    4962 } 
     63 if ( $blog["Podcast"] != null ) 
     64 { 
     65            echo $this->renderElement('podcast', $blog["Podcast"]);  
     66 } 
     67                  
     68 if ( $blog["Catfaq"] != null ) 
     69 { 
     70           echo $this->renderElement('catfaqs', $blog["Catfaq"]);  
     71 } 
     72                 
     73 if ( $blog["Acquaintance"] != null) 
     74 { 
     75           echo $this->renderElement('acquaintances', $blog["Acquaintance"]);  
     76 } 
     77         
     78 if ( $blog["Vclassroom"] != null) 
     79 { 
     80           echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);  
     81 } 
     82        
     83 if ( $blog["Catforum"] != null) 
     84 { 
     85                      echo $this->renderElement('catforums', $blog["Catforum"]);  
     86 } 
     87 
     88 if ( !$othAuth->sessionValid() ) 
     89 {  
     90      echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 
     91         $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')), 
     92                                                         '/users/login', false, false, null) . "</p>"; 
     93 } 
    5094?> 
     95           
     96         <div class="temas">Powered by:</div> 
     97         <div style="text-align:center;padding-top:15px"><a href="/"> 
     98               <img src="/img/static/karamelo_logo.jpg" alt="Karamelo" title="Karamelo" style="border:2px solid black;" />  
     99         </a> 
     100         </div> <!-- /col-in --> 
     101        </div> <!-- /col --> 
    51102</div> 
    52103<div style="clear:both"></div>