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

Revision 446, 4.5 kB (checked in by aarkerio, 1 week ago)

New hobbit edublog style

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
7 <head>
8 <meta http-equiv="content-type" content="text/html; charset=utf-8" />
9 <title>Karamelo:: <?php echo $title_for_layout; ?> </title>
10 <meta name="keywords" content="education, school, elearning" />
11 <link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
12 <meta name="description" content="Educational Portal" />
13 <?php
14  if ( isset($javascript) ):
15     echo $html->charset('UTF-8');
16     echo $javascript->link('prototype');
17     echo $javascript->link('myfunctions');
18     echo $javascript->link('scriptaculous.js?load=effects');
19  endif;
20 echo $html->css("portal/portal");
21 ?>
22 <link rel="alternate" type="application/rss+xml" title="RSS 2.0" href="/news/rss/" />
23 <link rel="shortcut icon" href="/img/static/favicon.ico" />
24 <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
25 </head>
26 <body>
27 <div id="toplinks">
28 <?php
29  if ( isset( $cU['User']['id']) )
30  {
31    echo '<span style="font-size:7pt;color:#8bb126;padding-right:15px">You are logged in as <b>';
32
33    echo $cU['User']['username'] .'</b></span>'.$html->link('(Logout)', '/users/logout') . ' | ';
34
35         if (  $cU['User']['group_id'] < 3 ) // the logged user is teacher or admin?
36         {
37                echo $html->link('Admin', '/admin/entries/start') . ' | ';
38         }
39  }
40  else
41  {
42      echo $html->link('Login', '#', array("id"=>"logindiv", "onclick"=>"javascript:mod('logindiv', 1, '')")) .  ' | ';
43  }
44  
45  echo $html->link('Home', '/') . ' | ';
46  echo $html->link('About College', '/colleges/view') . ' | ';
47  echo $html->link('Contact', '/messages/contact') . ' | ';
48 ?>
49 </div>
50 <div id="header">
51         <h1><a href="#">Conrad College</a></h1>
52         <p>By <a href="http://www.chipotle-software.com/">Chipotle Software</a></p>
53 </div>
54 <!-- end header -->
55 <div id="page">
56         <div id="content">
57                            <?php echo $content_for_layout; ?>
58         </div>
59         <!-- end content -->
60         <div id="sidebar">
61 <?php
62    
63    echo $this->renderElement('menu_b');
64  
65    if ( isset( $cU['User']['id']) )
66    {
67            echo $html->div('outbutton', $html->link($html->image('static/logout.gif', array('alt'=>'Logout', 'title'=>'Logout')),
68                            '/users/logout', null, null, false));
69    }
70    else
71    {
72              echo $this->renderElement('login');
73    }
74
75    echo  $this->renderElement('lastentries', $Element["Lentry"]);
76    echo  '<br />';
77      
78    echo  $html->div(null, $html->link($html->image('teacher_podcast.jpg', array('alt'=>'Podcast', 'style'=>'border:1px solid black')), '/podcasts/recent', null, null, false));
79
80    echo  $this->renderElement('poll',       $Element["Poll"]);
81        
82    echo $this->renderElement('subjects');
83 ?>
84        <ul>   
85             <li id="archives">
86                         <h2 class="bg3">Search</h2>
87                            <?php echo $this->renderElement('search'); ?>                       
88                         </li>
89                 </ul>
90 <?php
91   $tmp  = $html->para(null,$html->link($html->image('static/valid_xhtml10_80x15_22.png'), 'http://www.w3.org/TR/xhtml1/', null, null, false));
92   $tmp .= $html->para(null,$html->link($html->image('static/ooorg-80.png'), 'http://www.openoffice.org', null, null, false)); 
93   $tmp .= $html->para(null,$html->link($html->image('static/jedit.png'), 'http://www.jedit.org', null, null, false)); 
94   $tmp .= $html->para(null,$html->link($html->image('cake.power.png'), 'http://www.cakephp.org', null, null, false)); 
95   echo $html->div(null, $tmp, array('style'=>'margin-top:60px;text-align:center;'));
96 ?>
97         </div>
98         <!-- end sidebar -->
99         <div style="clear: both;">&nbsp;</div>
100
101 </div>
102 <!-- end page -->
103 <div id="footer">
104 <?php
105        // echo $this->renderElement('footer') . '<br />  ' . $this->renderElement('quote',   $Element["Quote"]);
106 ?>
107
108     <p id="legal"><strong>Karamelo</strong> &copy; 2002-2008. Designed by <a href="http://www.freecsstemplates.org/">Free CSS Templates</a></p>
109         <p id="links"> <a href="#">Privacy Policy</a> | <a href="#">Terms of Use</a> | <a href="http://validator.w3.org/check/referer" title="This page validates as XHTML 1.0 Transitional"><abbr title="eXtensible HyperText Markup Language">XHTML</abbr></a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="This page validates as CSS"><abbr title="Cascading Style Sheets">CSS</abbr></a></p>
110 </div>
111 <!-- end footer -->
112 <?php
113  if ( !isset( $cU['User']) )
114  {
115      echo $this->renderElement('login_hide');   //login javascript popup
116  }
117
118 echo $html->link('Karamelo Demo', 'http://www.chipotle-software.com/index.php?id=9', array("id"=>"Demo"));
119
120 ?>
121
122 </body>
123 </html>
Note: See TracBrowser for help on using the browser.