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

Revision 752, 4.8 kB (checked in by aarkerio, 5 weeks ago)

New layout

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="es" /> 
17<meta name="robots" content="all,follow" /> 
18<meta name="author" content="Karamelo by Chipotle Software" /> 
19<meta name="copyright" content="Chipotle Software" />
20<link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="<?php echo '/entries/rss/'.$blog['User']['username'].'.rss'; ?>" />
21<title> <?php echo $title_for_layout?> </title>
22<meta name="description" content="Edublog" /> 
23<meta name="keywords" content="edublog, elearning, karamelo" /> 
24             
25<link rel="index" href="./" title="Home" /> 
26<?php echo $html->css('paris/styles'); ?>
27</head>
28<body> 
29<script type="text/javascript">
30   window.onload = timedMsg;
31</script>
32<?php $session->flash(); ?>
33
34<table id="maintable">
35<tr><td colspan="2" id="header">
36<?php
37echo $html->div(null, $html->link($html->image('styles/paris/pix.gif', array('width'=>45, 'height'=>45, 'alt'=>'RSS', 'title'=>'RSS')), '/entries/rss/'.$blog['User']['username'].'.rss', null, null, false), array('style'=>'float:right;text-align:right;padding-right:13px;padding-top:0;width:50px;'));
38?>
39<h1>
40<?php
41e($html->link($blog['User']['name_blog'], '/blog/'.$blog['User']['username'], array("title"=>$blog['User']['name_blog'])));
42?>
43</h1>
44
45<?php echo $html->div('quote', ''.$blog['User']['quote']); ?>
46 
47</td></tr>
48<tr><td colspan="2" id="toplinks">
49<?php
50 echo $html->link('eduBlog',   '/blog/'.$blog['User']['username']);
51 echo $html->link('Portfolio', '/users/portfolio/'.$blog['User']['username']);
52 echo $html->link('About me',  '/vclassrooms/aboutme/'.$blog['User']['username']);
53 echo $html->link('Contact',   '/messages/message/'.$blog['User']['username']);
54?>
55</td></tr>
56<tr>
57<td id="tdrss"> 
58<!-- RSS feeds -->
59<strong>RSS:</strong> 
60<?php
61 e($html->link('Blog', '/entries/rss/'.$blog['User']['username'] . '.rss', array('class'=>'smallinks')). ' / ');
62 e($html->link('Podcast', '/podcasts/rss/'.$blog['User']['username'].'.rss', array('class'=>'smallinks')));
63?>
64</td>
65<td id="tdquote">
66<?php
67 if ( isset($blog['Quote'][0]['quote']) ):
68    e('<i>'.$blog['Quote'][0]['quote'] . '</i><br /><b>'. $blog['Quote'][0]['author'].'</b>');
69 endif;
70?>
71</td>
72</tr>
73
74<tr><td id="tdsidebar">
75<?php
76 if ( $blog['Vclassroom'] != null):
77     echo $this->element('vclassrooms', $blog['Vclassroom']); 
78 endif;
79
80 echo $html->para(null,$html->link($html->image('static/ooo_banner.png', array('alt'=>'OpenOffice.org')), 'http://extensions.services.openoffice.org/',  null, null, false));
81
82 echo $html->div('temas', $blog['User']['username'] . ' profile');
83 echo $html->para('cv', $blog['User']['cv']);
84 echo $html->para(null,$html->image('avatars/'.$blog['User']['avatar'], array("alt"=>$blog['User']['username'], "title"=>$blog['User']['username'])), array('style'=>'text-align:center'));
85   
86 echo $html->div('temas', 'College');
87 echo $html->para(null,$html->link(
88               $html->image('
89static/cwclogo.jpg', array('alt'=>'Conrad', 'title'=>'Conrad College')), '/', null,null, false),
90        array('style'=>'text-align:center'));
91 
92   
93 if ( $blog['Lesson'] != null ):
94      echo $this->element('lesson', $blog['Lesson']); 
95 endif;
96         
97 if ( $blog['Podcast'] != null ):
98      echo $this->element('podcast', $blog['Podcast']); 
99 endif;
100         
101 if ( $blog['Catfaq'] != null ):
102      echo $this->element('catfaqs', $blog['Catfaq']); 
103 endif;
104         
105 if ( $blog['Acquaintance'] != null ):
106     echo $this->element('acquaintances', $blog['Acquaintance']); 
107 endif;
108       
109
110 if ( !$session->check('Auth.User') ): 
111      e($html->para(null, $html->link(
112                           $html->image('static/login.png', array('alt'=>'Login', 'title'=>'Login')),
113                           '/users/login', false, false, null), array('style'=>'text-align:center;margin:35px 0 35px 0')));
114 endif;
115     
116 e($html->div('temas', 'Powered by'));
117 e($html->div(null, $html->link($html->image('banners/banner_karamelo.jpg', array('style'=>'border:1px solid black','alt'=>'Karamelo', 'title'=>'Karamelo')),
118'http://www.chipotle-software.com', null, null,false), aa('style', 'text-align:center;padding-top:15px')));
119?>               
120</td>
121<td id="tdcontent">
122    <?php e($content_for_layout); ?>
123</td>
124</tr>
125<!-- Footer -->
126<tr><td colspan="2" id="footer"> 
127  Back on top <a href="#header" title="Back on top ^">^</a> <b>Chipotle Software &copy; 2002-2008</b>. Creative Commons. Some rights reserved.
128</td></tr>
129</table>
130</body>
131</html>
Note: See TracBrowser for help on using the browser.