2014-05-23 11:22:34 +02:00
|
|
|
<?php // ###### FUNCTIONS ######
|
|
|
|
function GetProgDropDownList()
|
|
|
|
{
|
|
|
|
$progDropDown = array();
|
|
|
|
$dropDownModels = array();
|
|
|
|
|
|
|
|
$criteria = new CDbCriteria;
|
|
|
|
$criteria->order = "add_date DESC";
|
|
|
|
$criteria->limit = 3;
|
|
|
|
foreach (Programme::model()->findAll($criteria) as $row) {
|
|
|
|
$dropDownModels[] = $row;
|
|
|
|
}
|
|
|
|
$dropDownModels[] = null;
|
|
|
|
|
|
|
|
$criteria = new CDbCriteria;
|
|
|
|
$criteria->order = "add_date DESC";
|
|
|
|
$criteria->limit = 8;
|
|
|
|
$criteria->condition = "Sterne=4 AND visible=1";
|
|
|
|
foreach (Programme::model()->findAll($criteria) as $row) {
|
|
|
|
$dropDownModels[] = $row;
|
|
|
|
}
|
|
|
|
|
|
|
|
foreach ($dropDownModels as $row) {
|
|
|
|
if (is_null($row))
|
|
|
|
$progDropDown[] = TbHtml::menuDivider();
|
|
|
|
else
|
|
|
|
$progDropDown[] = array('label' => $row->attributes['Name'], 'url' => '/programme/' . $row->attributes['Name']);
|
|
|
|
}
|
|
|
|
return $progDropDown;
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
|
2014-05-13 14:06:18 +02:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<!--[if lt IE 7]>
|
|
|
|
<html class="no-js lt-ie9 lt-ie8 lt-ie7"> <![endif]-->
|
|
|
|
<!--[if IE 7]>
|
|
|
|
<html class="no-js lt-ie9 lt-ie8"> <![endif]-->
|
|
|
|
<!--[if IE 8]>
|
|
|
|
<html class="no-js lt-ie9"> <![endif]-->
|
|
|
|
<!--[if gt IE 8]><!-->
|
|
|
|
<html class="no-js"> <!--<![endif]-->
|
2014-05-13 12:40:42 +02:00
|
|
|
<head>
|
2014-05-13 14:06:18 +02:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
|
|
|
|
<title></title>
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="viewport" content="width=device-width">
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-13 14:06:18 +02:00
|
|
|
<?php Yii::app()->bootstrap->register(); ?>
|
2014-05-14 11:15:32 +02:00
|
|
|
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
|
2014-05-13 18:25:37 +02:00
|
|
|
|
2014-05-13 12:40:42 +02:00
|
|
|
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
|
|
|
|
</head>
|
|
|
|
<body>
|
2014-05-13 18:25:37 +02:00
|
|
|
<!--if lt IE 7]>
|
|
|
|
<p class="chromeframe">You are using an <strong>outdated</strong> browser. Please <a href="http://browsehappy.com/">upgrade your browser</a> or <a href="http://www.google.com/chromeframe/?redirect=true">activate Google Chrome Frame</a> to improve your experience.</p>
|
|
|
|
<!endif]-->
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-13 18:25:37 +02:00
|
|
|
<?php
|
2014-05-19 10:16:43 +02:00
|
|
|
if (! isset($this->selectedNav)) $this->selectedNav = "";
|
|
|
|
|
2014-05-13 18:25:37 +02:00
|
|
|
$this->widget('bootstrap.widgets.TbNavbar',
|
|
|
|
[
|
2014-05-20 19:23:01 +02:00
|
|
|
'brandLabel'=>'<img src="/images/logo_static.png" class="brandLogo"/>',
|
2014-05-19 17:50:42 +02:00
|
|
|
'brandUrl'=>'/',
|
2014-05-14 11:15:32 +02:00
|
|
|
'display' => null,
|
|
|
|
'htmlOptions' =>
|
|
|
|
[
|
|
|
|
'class' => 'cstm-main-navbar'
|
|
|
|
],
|
2014-05-13 18:25:37 +02:00
|
|
|
'items' =>
|
|
|
|
[
|
|
|
|
[
|
|
|
|
'class' => 'bootstrap.widgets.TbNav',
|
|
|
|
'items' =>
|
|
|
|
[
|
2014-05-23 11:22:34 +02:00
|
|
|
['label' => 'Home', 'url' => '/', 'active' => ($this->selectedNav === 'index')],
|
|
|
|
['label' => 'Blog', 'url' => '#', 'active' => ($this->selectedNav === 'blog')],
|
|
|
|
['label' => 'Programme', 'url' => '/programme/', 'active' => ($this->selectedNav === 'prog')],
|
|
|
|
['label' => '', 'items' => GetProgDropDownList(), 'htmlOptions' => ['class' => 'dropdown-append']],
|
|
|
|
['label' => 'About', 'url' => '/about', 'active' => ($this->selectedNav === 'about')],
|
2014-05-13 18:25:37 +02:00
|
|
|
],
|
|
|
|
],
|
|
|
|
TbHtml::navbarSearchForm('search', '',
|
|
|
|
[
|
|
|
|
'class' => 'pull-right',
|
|
|
|
'placeholder' => 'Search',
|
|
|
|
'inputOptions' =>
|
|
|
|
[
|
|
|
|
'append' => TbHtml::submitButton(TbHtml::icon(TbHtml::ICON_SEARCH)),
|
|
|
|
'addOnOptions' =>
|
|
|
|
[
|
|
|
|
'class' => 'pull-right',
|
|
|
|
],
|
|
|
|
'span' => 2,
|
|
|
|
]
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
]);
|
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-13 18:25:37 +02:00
|
|
|
<?php
|
2014-05-13 14:06:18 +02:00
|
|
|
if(isset($this->breadcrumbs))
|
|
|
|
{
|
2014-05-14 11:15:32 +02:00
|
|
|
$this->widget('bootstrap.widgets.TbBreadcrumb',
|
|
|
|
[
|
|
|
|
'links'=>$this->breadcrumbs,
|
|
|
|
]);
|
2014-05-13 14:06:18 +02:00
|
|
|
}
|
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-13 18:25:37 +02:00
|
|
|
<?php
|
|
|
|
echo $content;
|
2014-05-13 14:06:18 +02:00
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-14 11:15:32 +02:00
|
|
|
<hr>
|
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
Copyright © <?php echo date('Y'); ?> by Mike Schwörer.<br/>
|
2014-05-13 14:06:18 +02:00
|
|
|
All Rights Reserved.<br/>
|
|
|
|
<?php echo Yii::powered(); ?>
|
|
|
|
</div>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-13 14:06:18 +02:00
|
|
|
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
|
|
|
|
<script>window.jQuery || document.write('<script src="js/vendor/jquery-1.9.1.min.js"><\/script>')</script>
|
|
|
|
<script src="<?php echo (YII_DEBUG ? 'bootstrap.js' : 'bootstrap.min.js') ?>"></script>
|
2014-05-23 11:22:34 +02:00
|
|
|
<script src="/js/plugins.js"></script>
|
|
|
|
<script src="/js/main.js"></script>
|
|
|
|
<script src="/javascript/scripts.js"></script>
|
2014-05-13 12:40:42 +02:00
|
|
|
</body>
|
2014-05-13 14:06:18 +02:00
|
|
|
</html>
|