EliteConf
 All Data Structures Namespaces Files Functions Variables Pages
main.php
Go to the documentation of this file.
1 <?php
2 /*/////////////////////////////////////////////////////////////////////////
3 // This file is part of the
4 // _______ _ ______
5 // (_______) | | (_____ \
6 // _____ ____ _____ ___ | |__ _ _ ____) )
7 // | ___)/ ___)| ___ | /___)| _ \ | | | | / ____/
8 // | | | | | ____||___ || | | || |_| | | (_____
9 // |_| |_| |_____)(___/ |_| |_| \__ | |_______)
10 // (____/
11 // Yii theme
12 //
13 // Ported from the original Wordpress Freshy 2 theme:
14 // http://www.jide.fr/english/downloads/freshy2
15 //
16 // Licensed under the GPL, like the original theme
17 // Copyleft 2011 - Jacob 'jacmoe' Moen @ http://www.jacmoe.dk/
19 ?>
20 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
21 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
22 <head>
23  <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
24  <meta name="language" content="en" />
25  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/style.css" media="screen, projection" />
26  <?php /* Put the custom style here - like 'custom_bloggy.css', 'custom_vitamin', etc - you can store it in the app params or in a database. */ ?>
27  <?php //if((Yii::app()->config->get('style') !== 'freshy2') && (Yii::app()->config->get('style'))) : ?>
28 <!-- <link rel="stylesheet" type="text/css" href="<?php //echo Yii::app()->theme->baseUrl; ?>/css/<?php //echo Yii::app()->config->get('style')?>.css" media="screen, projection" />-->
29  <?php //endif; ?>
30  <link rel="stylesheet" type="text/css" href="<?php echo Yii::app()->theme->baseUrl; ?>/css/yii_style.css" media="screen, projection" />
31  <title><?php echo CHtml::encode($this->pageTitle); ?></title>
32 </head>
33 <body>
34 <div id="body">
35  <div id="header">
36  <div class="container">
37  <div id="title">
38  <h1>
39  <?php echo CHtml::link(CHtml::encode(Yii::app()->name), $this->createUrl('')) ?>
40  </h1>
41  <div class="description">
42  <small><?php echo Yii::app()->params['description']?></small>
43  </div>
44  </div>
45  <div id="header_image">
46  <div id="menu">
47  <div class="menu_container">
48  <?php $this->widget('Freshy2Menu',array(
49  'items'=>array(
50  array('label'=>'Home', 'url'=>array('/site/index')),
51  array('label'=>'About', 'url'=>array('/site/page', 'view'=>'about')),
52  array('label'=>'Contact', 'url'=>array('/site/contact')),
53  array('label'=>'Login', 'url'=>array('/site/login'), 'visible'=>Yii::app()->user->isGuest),
54  array('label'=>'Logout ('.Yii::app()->user->name.')', 'url'=>array('/site/logout'), 'visible'=>!Yii::app()->user->isGuest)
55  ),
56  )); ?>
57  </div><span class="menu_end"></span>
58  </div><!-- menu -->
59  </div><!-- header_image -->
60  </div><!-- container -->
61  </div><!-- header -->
62  <?php echo $content; ?>
63  <div id="footer">
64  <div class="container">
65  <div id="footer_content">
66  <div style="font-size: 75%;font-style: italic;">Copyright &copy; <?php echo 'year'//Yii::app()->params['copyright_year']; ?> by <?php echo 'name'//Yii::app()->params['copyright_holder']; ?><br/>All Rights Reserved.<br/></div>
67  <a href="http://www.yiiframework.com"><img title="Powered by Yii Framework" alt="Powered by Yii Framework" src="<?php echo Yii::app()->theme->baseUrl ?>/images/yii-powered.png"/></a><br/>
68  <a href="http://www.jide.fr"><img alt="design by jide" src="<?php echo Yii::app()->theme->baseUrl ?>/images/micro_jide.png"/></a>
69  </div><!-- footer_content -->
70  </div><!-- container -->
71  </div><!-- footer -->
72 </div><!-- body -->
73 </body>
74 </html>