root/trunk/app/views/layouts/rubyx.ctp

Revision 765, 5.9 kB (checked in by aarkerio, 4 weeks ago)

New wikpages

Line 
1<?php
2   echo '<?xml version="1.0"?>';
3   echo $html->docType();
4?>
5<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> 
6<head> 
7<?php
8 if ( isset($javascript) ):
9          echo $html->charset('UTF-8');
10          echo $javascript->link('prototype');
11          echo $javascript->link('myfunctions');
12          echo $javascript->link('scriptaculous.js?load=effects');
13 endif;
14?>
15<meta http-equiv="content-type" content="text/html; charset=utf-8" /> 
16<meta http-equiv="content-language" content="cs" /> 
17<meta name="robots" content="all,follow" /> 
18<meta name="author" content="Karamelo by Chipotle Software" /> 
19<meta name="copyright" content="Design/Code: Vit Dlouhy [Nuvio - www.nuvio.cz]; e-mail: vit.dlouhy@nuvio.cz" />
20<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo '/entries/rss/'.$blog['User']['username'].'.rss'; ?>" />
21             
22<title> <?php echo $title_for_layout?> </title>
23<meta name="description" content="Edublog" /> 
24<meta name="keywords" content="user tags must be here" /> 
25             
26<link rel="index" href="./" title="Home" /> 
27<?php echo $html->css('rubyx/rubyx'); ?>
28</head>
29<body id="www-url-cz"> 
30<script type="text/javascript">
31   window.onload = timedMsg;
32</script>
33<?php $session->flash(); ?>
34         
35<!-- Main -->
36<div id="main" class="box"> 
37 
38<!-- Header -->
39<div id="header">
40<!-- user_name_blog -->         
41<h1 id="logo">
42<?php
43e($html->link($blog['User']['name_blog'], '/blog/'.$blog['User']['username'], array("title"=>$blog['User']['name_blog']))); ?>
44</h1>
45
46<?php echo $html->div(null, ''.$blog['User']['quote'], array('id'=>'quote')); ?>
47     
48</div> <!-- /header -->
49         
50<!-- Main menu (tabs) -->
51<div id="tabs" class="noprint"> 
52  <h3 class="noscreen">Navigation</h3>
53  <ul class="box">
54  <?php
55   
56     echo ($this->action == 'display' || $this->action == 'entry') ? '<li id="active">' : '<li>'; ?> 
57     <a href="/blog/<?php echo $blog['User']['username'] ?>">eduBlog<span class="tab-l"></span><span class="tab-r"></span></a></li>
58                     
59   <?php echo ($this->action == 'portfolio') ? '<li id="active">' : '<li>'; ?>
60     <a href="/users/portfolio/<?php echo $blog['User']['username'] ?>">ePortfolio<span class="tab-l"></span><span class="tab-r"></span></a></li>
61                     
62   <?php echo ($this->action == 'aboutme') ? '<li id="active">' : '<li>'; ?>
63      <a href="/vclassrooms/aboutme/<?php echo $blog['User']['username'] ?>">About Me<span class="tab-l"></span><span class="tab-r"></span></a></li>
64                         
65    <?php echo ($this->action == 'message') ? '<li id="active">' : '<li>'; ?>
66    <a href="/messages/message/<?php echo $blog['User']['username'] ?>">Contact<span class="tab-l"></span><span class="tab-r"></span></a></li>
67
68</ul>
69<hr class="noscreen" /> 
70</div> <!-- /tabs -->
71         
72<!-- Page (2 columns) -->
73<div id="page" class="box"> 
74<div id="page-in" class="box"> 
75         
76<div id="strip" class="box noprint"> 
77<?php
78 if ( isset($blog['Quote'][0]['quote']) ):
79    e($html->div(null, '<i>'.$blog['Quote'][0]['quote'] . '</i><br /><b>'. $blog['Quote'][0]['author'].'</b>',aa('id', 'breadcrumbs')));
80 endif;
81?>
82     
83<!-- RSS feeds -->
84<div id="rss"><strong>RSS:</strong> 
85<?php
86 e($html->link('Blog', '/entries/rss/'.$blog['User']['username'] . '.rss'). ' / ');
87 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'].'.rss'));
88?>
89</div>
90</div> <!-- /strip -->
91 <!-- Content -->
92  <?php    echo $html->div(null, $content_for_layout, aa('id', 'content'));?>
93<!-- /content -->
94<!-- Right column -->
95<div id="col" class="noprint"> 
96<div id="col-in"> 
97<?php
98 if ( $blog["Vclassroom"] != null):
99     echo $this->element('vclassrooms', $blog['Vclassroom']); 
100 endif;
101
102 echo $html->div('temas', $blog['User']['username'] . ' profile');
103 echo $html->para(null, $blog['User']['cv']);
104 echo $html->para(null,$html->image('avatars/'.$blog['User']['avatar'], array("alt"=>$blog['User']['username'], "title"=>$blog['User']['username'])), array('style'=>'text-align:center'));
105   
106 echo $html->div('temas', 'College');
107 echo $html->para(null,$html->link(
108               $html->image('static/cwclogo.jpg', array('alt'=>'Conrad', 'title'=>'Conrad College')), '/', null,null, false),
109        array('style'=>'text-align:center'));
110   
111   
112 if ( $blog["Lesson"] != null ):
113      echo $this->element('lesson', $blog['Lesson']); 
114 endif;
115         
116 if ( $blog["Podcast"] != null ):
117      echo $this->element('podcast', $blog['Podcast']); 
118 endif;
119         
120 if ( $blog["Catfaq"] != null ):
121      echo $this->element('catfaqs', $blog['Catfaq']); 
122 endif;
123         
124 if ( $blog["Acquaintance"] != null ):
125     echo $this->element('acquaintances', $blog['Acquaintance']); 
126 endif;
127       
128
129 if ( !$session->check('Auth.User') ): 
130      e($html->para(null, $html->link(
131                           $html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')),
132                           '/users/login', false, false, null), array('style'=>'text-align:center;margin:35px 0 35px 0')));
133 endif;
134     
135 e($html->div('temas', 'Powered by'));
136
137 e($html->div(null, $html->link($html->image('banners/banner_karamelo.jpg', array('style'=>'border:1px solid black','alt'=>'Karamelo', 'title'=>'Karamelo')),
138'http://www.chipotle-software.com/index.php?id=9', null, null,false), aa('style', 'text-align:center;padding-top:15px')));
139?>               
140   </div> <!-- /col-in -->
141   </div> <!-- /col -->
142     
143</div> <!-- /page-in -->
144</div> <!-- /page -->
145         
146  <!-- Footer -->
147    <div id="footer">
148        <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>
149      <hr class="noscreen" />
150                 
151  <p id="createdby">created by <a href="http://www.nuvio.cz">Nuvio | Webdesign</a> <!-- DON?T REMOVE, PLEASE! --></p>
152             
153<?php
154 e($html->para(null,'Chipotle Software &copy; 2002-2008. Creative Commons. Some rights reserved.', aa('id', 'copyright')));
155?>   
156
157</div> <!-- /footer -->
158</div> <!-- /main -->
159</body>
160</html>
Note: See TracBrowser for help on using the browser.