Changeset 464 for trunk/app/views/layouts
- Timestamp:
- 05/08/08 18:23:35 (7 months ago)
- Files:
-
- 1 modified
-
trunk/app/views/layouts/rubyx.ctp (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/app/views/layouts/rubyx.ctp
r459 r464 69 69 <!-- Main menu (tabs) --> 70 70 <div id="tabs" class="noprint"> 71 <h3 class="noscreen">Navigation</h3>72 <ul class="box">73 <?php74 $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> 77 77 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> 80 80 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> 83 83 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> 86 86 87 </ul>88 <hr class="noscreen" />89 </div> <!-- /tabs -->87 </ul> 88 <hr class="noscreen" /> 89 </div> <!-- /tabs --> 90 90 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"> 94 94 95 <div id="strip" class="box noprint">95 <div id="strip" class="box noprint"> 96 96 97 <!-- RSS feeds -->98 <p id="rss"><strong>RSS:</strong>97 <!-- RSS feeds --> 98 <p id="rss"><strong>RSS:</strong> 99 99 <?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'])); 102 102 ?> 103 103 </p> … … 105 105 <hr class="noscreen" /> 106 106 </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"> 115 113 <?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')); 119 122 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( 122 125 $html->image('static/cwclogo.jpg', array('alt'=>'Conrad', 'title'=>'Conrad College')), '/', null,null, false), 123 126 array('style'=>'text-align:center')); 124 127 125 128 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 } 130 133 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 } 135 138 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 } 140 143 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 } 145 148 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 150 if ( $blog["Catforum"] != null) 151 { 152 echo $this->renderElement('catforums', $blog["Catforum"]); 153 } 154 */ 155 155 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 } 163 162 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 --> 174 173 175 174 <!-- Footer --> … … 178 177 <hr class="noscreen" /> 179 178 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> 181 180 182 <p id="copyright">Chipotle Software © 2002-2008. Creative Commons. Some rights reserved.</p> 183 </div> <!-- /footer --> 181 <?php 182 e($html->para(null,'Chipotle Software © 2002-2008. Creative Commons. Some rights reserved.', aa('id', 'copyright'))); 183 ?> 184 185 </div> <!-- /footer --> 186 </div> <!-- /main --> 184 187 185 </div> <!-- /main --> 186 187 </body> 188 </html> 188 </body> 189 </html>
