Show
Ignore:
Timestamp:
05/08/08 18:23:35 (8 months ago)
Author:
aarkerio
Message:

Forums and topics improveds

Files:
1 modified

Legend:

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

    r459 r464  
    6969<!-- Main menu (tabs) -->  
    7070<div id="tabs" class="noprint">  
    71                <h3 class="noscreen">Navigation</h3>  
    72                <ul class="box">  
    73                <?php  
    74                     $url = substr($_SERVER['argv'][0], 4, 10);  
    75                      echo ($url == 'users/blog') ? '<li id="active">' : '<li>'; ?>   
    76                     <a href="/users/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     71  <h3 class="noscreen">Navigation</h3>  
     72  <ul class="box">  
     73  <?php  
     74     $url = substr($_SERVER['argv'][0], 4, 10);  
     75     echo ($url == 'users/blog') ? '<li id="active">' : '<li>'; ?>   
     76     <a href="/users/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    7777                      
    78                     <?php echo ($url == 'users/port') ? '<li id="active">' : '<li>'; ?>  
    79                     <a href="/users/portfolio/<?php echo $blog['User']['username'] ?>">Portfolio<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     78   <?php echo ($url == 'users/port') ? '<li id="active">' : '<li>'; ?>  
     79     <a href="/users/portfolio/<?php echo $blog['User']['username'] ?>">Portfolio<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    8080                      
    81                     <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> 
    82                     <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>  
     81   <?php echo ($url == 'users/abou') ? '<li id="active">' : '<li>'; ?> 
     82      <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>  
    8383                          
    84                     <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?>  
    85                       <a href="/messages/message/<?php echo $blog['User']['username'] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li> 
     84    <?php echo ($url == 'messages/c') ? '<li id="active">' : '<li>'; ?>  
     85    <a href="/messages/message/<?php echo $blog['User']['username'] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li> 
    8686 
    87                 </ul>  
    88                 <hr class="noscreen" />  
    89              </div> <!-- /tabs -->  
     87</ul>  
     88<hr class="noscreen" />  
     89</div> <!-- /tabs -->  
    9090          
    91     <!-- Page (2 columns) -->  
    92     <div id="page" class="box">  
    93     <div id="page-in" class="box">  
     91<!-- Page (2 columns) -->  
     92<div id="page" class="box">  
     93<div id="page-in" class="box">  
    9494          
    95     <div id="strip" class="box noprint">  
     95<div id="strip" class="box noprint">  
    9696      
    97     <!-- RSS feeds -->  
    98        <p id="rss"><strong>RSS:</strong>  
     97<!-- RSS feeds -->  
     98<p id="rss"><strong>RSS:</strong>  
    9999<?php 
    100 echo $html->link('Blog', '/entries/rss/'.$blog['User']['username']) . '/';  
    101 echo $html->link('Podcast', '/podcasts/rss/'.$blog['User']['username']); 
     100 e($html->link('Blog', '/entries/rss/'.$blog['User']['username']) . '/');  
     101 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'])); 
    102102?> 
    103103</p>  
     
    105105<hr class="noscreen" /> 
    106106</div> <!-- /strip --> 
    107            <!-- Content -->  
    108               <div id="content">  
    109                    <?php echo $content_for_layout ?>  
    110               </div> <!-- /content -->  
    111           
    112                 <!-- Right column -->  
    113                 <div id="col" class="noprint">  
    114                     <div id="col-in">  
     107 <!-- Content -->  
     108        <?php echo $html->div(null, $content_for_layout, aa('id', 'content')); ?>  
     109<!-- /content -->  
     110<!-- Right column -->  
     111<div id="col" class="noprint">  
     112<div id="col-in">  
    115113<?php  
    116     echo $html->div('temas', $blog['User']['username'] . ' profile');  
    117     echo $html->para(null, $blog['User']['cv']); 
    118     echo $html->para(null,$html->image('avatars/'.$blog['User']['avatar'], array("alt"=>$blog['User']['username'], "title"=>$blog['User']['username'])), array('style'=>'text-align:center')); 
     114 if ( $blog["Vclassroom"] != null)  
     115 {  
     116     echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);   
     117 } 
     118 
     119 echo $html->div('temas', $blog['User']['username'] . ' profile');  
     120 echo $html->para(null, $blog['User']['cv']); 
     121 echo $html->para(null,$html->image('avatars/'.$blog['User']['avatar'], array("alt"=>$blog['User']['username'], "title"=>$blog['User']['username'])), array('style'=>'text-align:center')); 
    119122     
    120     echo $html->div('temas', 'College');  
    121     echo $html->para(null,$html->link( 
     123 echo $html->div('temas', 'College');  
     124 echo $html->para(null,$html->link( 
    122125               $html->image('static/cwclogo.jpg', array('alt'=>'Conrad', 'title'=>'Conrad College')), '/', null,null, false), 
    123126        array('style'=>'text-align:center')); 
    124127     
    125128     
    126    if ( $blog["Lesson"] != null)  
    127    {  
    128          echo $this->renderElement('lesson', $blog["Lesson"]);   
    129    }  
     129 if ( $blog["Lesson"] != null)  
     130 {  
     131    echo $this->renderElement('lesson', $blog["Lesson"]);   
     132 }  
    130133          
    131     if ( $blog["Podcast"] != null )  
    132     {  
    133              echo $this->renderElement('podcast', $blog["Podcast"]);   
    134     }  
     134 if ( $blog["Podcast"] != null )  
     135 {  
     136         echo $this->renderElement('podcast', $blog["Podcast"]);   
     137 }  
    135138          
    136     if ( $blog["Catfaq"] != null )  
    137     {  
    138              echo $this->renderElement('catfaqs', $blog["Catfaq"]);   
    139     }  
     139 if ( $blog["Catfaq"] != null )  
     140 {  
     141         echo $this->renderElement('catfaqs', $blog["Catfaq"]);   
     142 }  
    140143          
    141     if ( $blog["Acquaintance"] != null)  
    142     {  
    143              echo $this->renderElement('acquaintances', $blog["Acquaintance"]);   
    144     } 
     144 if ( $blog["Acquaintance"] != null)  
     145 {  
     146         echo $this->renderElement('acquaintances', $blog["Acquaintance"]);   
     147 } 
    145148         
    146     if ( $blog["Vclassroom"] != null)  
    147     {  
    148              echo $this->renderElement('vclassrooms', $blog["Vclassroom"]);   
    149     } 
    150          
    151     if ( $blog["Catforum"] != null)  
    152     { 
    153              echo $this->renderElement('catforums', $blog["Catforum"]);   
    154     } 
     149/* maybe remove this later 
     150if ( $blog["Catforum"] != null)  
     151{ 
     152         echo $this->renderElement('catforums', $blog["Catforum"]);   
     153} 
     154*/ 
    155155 
    156     if ( !isset( $cU['User']['id'] ) )  
    157     {   
    158         echo '<p style="text-align:center;margin:35px 0 35px 0">' . $html->link( 
    159                                                                        $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')),  
    160                                                                        '/users/login', false, false, null) . "</p>";  
    161     }  
    162 ?>  
     156 if ( !isset( $cU['User']['id'] ) )  
     157 {   
     158 e($html->para($html->link( 
     159                           $html->image('static/login.png', array("alt"=>'Login', "title"=>'Login')),  
     160                           '/users/login', false, false, null), aa('style', 'text-align:center;margin:35px 0 35px 0')));  
     161 }   
    163162      
    164     <div class="temas">Powered by:</div>  
    165     <div style="text-align:center;padding-top:15px"><a href="http://www.chipotle-software.com/index.php?id=9/">  
    166           <img src="/img/static/karamelo_logo.jpg" alt="Karamelo" title="Karamelo" />  
    167     </a>  
    168                   
    169         </div> <!-- /col-in -->  
    170        </div> <!-- /col -->  
    171           
    172   </div> <!-- /page-in -->  
    173   </div> <!-- /page -->  
     163 e($html->div('temas', 'Powered by')); 
     164 
     165 e($html->div(null, $html->link($html->image('static/karamelo_logo.jpg', array('alt'=>'Karamelo', 'title'=>'Karamelo')),  
     166'http://www.chipotle-software.com/index.php?id=9', null, null,false), aa('style', 'text-align:center;padding-top:15px'))); 
     167?>                
     168   </div> <!-- /col-in -->  
     169   </div> <!-- /col -->  
     170      
     171</div> <!-- /page-in -->  
     172</div> <!-- /page -->  
    174173          
    175174  <!-- Footer -->  
     
    178177                <hr class="noscreen" />  
    179178                  
    180                 <p id="createdby">created by <a href="http://www.nuvio.cz">Nuvio | Webdesign</a> <!-- DON?T REMOVE, PLEASE! --></p>  
     179  <p id="createdby">created by <a href="http://www.nuvio.cz">Nuvio | Webdesign</a> <!-- DON?T REMOVE, PLEASE! --></p>  
    181180              
    182             <p id="copyright">Chipotle Software &copy; 2002-2008. Creative Commons. Some rights reserved.</p>  
    183         </div> <!-- /footer -->  
     181<?php 
     182 e($html->para(null,'Chipotle Software &copy; 2002-2008. Creative Commons. Some rights reserved.', aa('id', 'copyright'))); 
     183?>     
     184 
     185</div> <!-- /footer -->  
     186</div> <!-- /main -->  
    184187  
    185     </div> <!-- /main -->  
    186   
    187     </body>  
    188 </html>  
     188</body>  
     189</html>