2014-06-10 13:27:17 +02:00
|
|
|
<?php /* @var $this MSController */ ?>
|
|
|
|
|
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">
|
2014-08-04 20:10:58 +02:00
|
|
|
<title><?php echo CHtml::encode($this->pageTitle) ?></title>
|
2014-05-13 14:06:18 +02:00
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="viewport" content="width=device-width">
|
2016-01-12 19:56:42 +01:00
|
|
|
|
|
|
|
<meta name="google-site-verification" content="BOfBEF5LxpUYwlj1gBaj8W9h_PPPR_0E21JoYkEEWDA" />
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-08-04 20:10:58 +02:00
|
|
|
<link rel="icon" type="image/png" href="/images/favicon.png"/>
|
2014-06-10 20:04:51 +02:00
|
|
|
|
2014-05-13 14:06:18 +02:00
|
|
|
<?php Yii::app()->bootstrap->register(); ?>
|
2014-09-28 02:37:53 +02:00
|
|
|
|
|
|
|
<?php
|
|
|
|
foreach ($this->css_files as $file)
|
|
|
|
{
|
|
|
|
echo "<link rel=\"stylesheet\" type=\"text/css\" href=\"$file\"/>\r\n";
|
|
|
|
}
|
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
</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-07-05 21:15:24 +02:00
|
|
|
<div id="fullbodywrapper">
|
|
|
|
|
|
|
|
<?php
|
|
|
|
if (!isset($this->selectedNav)) $this->selectedNav = "";
|
2014-05-19 10:16:43 +02:00
|
|
|
|
2014-05-13 18:25:37 +02:00
|
|
|
$this->widget('bootstrap.widgets.TbNavbar',
|
|
|
|
[
|
2014-07-05 21:15:24 +02:00
|
|
|
'brandLabel' => '<img src="/images/logo_static.png" class="brandLogo"/>',
|
|
|
|
'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-07-05 21:15:24 +02:00
|
|
|
['label' => 'Home', 'url' => '/', 'active' => ($this->selectedNav === 'index')],
|
2015-01-14 23:23:41 +01:00
|
|
|
|
|
|
|
['label' => 'Project Euler', 'url' => '/blog/1/Project_Euler_with_Befunge', 'active' => false],
|
|
|
|
|
2014-07-11 19:29:19 +02:00
|
|
|
['label' => 'Blog', 'url' => '/blog', 'active' => ($this->selectedNav === 'blog')],
|
|
|
|
['label' => 'Programs', 'url' => '/programs', 'active' => ($this->selectedNav === 'prog')],
|
2014-07-05 21:15:24 +02:00
|
|
|
['label' => '', 'items' => ProgramHelper::GetProgDropDownList(), 'htmlOptions' => ['class' => 'dropdown-append']],
|
|
|
|
['label' => 'About', 'url' => '/about', 'active' => ($this->selectedNav === 'about')],
|
|
|
|
['label' => '[[Log "' . Yii::app()->user->name . '" out]]', 'url' => '/logout', 'visible' => !Yii::app()->user->isGuest, 'htmlOptions' => ['class' => 'cstm-main-navbar-highlight']]
|
2014-05-13 18:25:37 +02:00
|
|
|
],
|
|
|
|
],
|
2014-06-06 19:31:05 +02:00
|
|
|
MsHtml::navbarSearchForm('/search', '',
|
2014-05-13 18:25:37 +02:00
|
|
|
[
|
|
|
|
'class' => 'pull-right',
|
|
|
|
'placeholder' => 'Search',
|
|
|
|
'inputOptions' =>
|
|
|
|
[
|
2014-08-04 14:57:13 +02:00
|
|
|
'value' => $this->searchvalue,
|
2014-06-06 12:02:56 +02:00
|
|
|
'append' => MsHtml::submitButton(MsHtml::icon(MsHtml::ICON_SEARCH)),
|
2014-05-13 18:25:37 +02:00
|
|
|
'addOnOptions' =>
|
|
|
|
[
|
|
|
|
'class' => 'pull-right',
|
|
|
|
],
|
|
|
|
'span' => 2,
|
|
|
|
]
|
|
|
|
]),
|
|
|
|
],
|
|
|
|
]);
|
2014-07-05 21:15:24 +02:00
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-07-05 21:15:24 +02:00
|
|
|
<?php
|
|
|
|
if (isset($this->breadcrumbs)) {
|
2014-05-14 11:15:32 +02:00
|
|
|
$this->widget('bootstrap.widgets.TbBreadcrumb',
|
|
|
|
[
|
2014-07-05 21:15:24 +02:00
|
|
|
'links' => $this->breadcrumbs,
|
2014-05-14 11:15:32 +02:00
|
|
|
]);
|
2014-05-13 14:06:18 +02:00
|
|
|
}
|
2014-07-05 21:15:24 +02:00
|
|
|
?>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-07-30 20:04:09 +02:00
|
|
|
<div id="fullcontentwrapper">
|
2014-07-05 21:15:24 +02:00
|
|
|
<?php
|
2014-05-13 18:25:37 +02:00
|
|
|
echo $content;
|
2014-07-05 21:15:24 +02:00
|
|
|
?>
|
2014-07-30 20:04:09 +02:00
|
|
|
</div>
|
2014-07-05 21:15:24 +02:00
|
|
|
|
|
|
|
<div class="footer">
|
|
|
|
Copyright © <?php echo date('Y'); ?> by Mike Schwörer · <i><a href="/admin">{{admin}}</a></i><br/>
|
|
|
|
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
|
|
|
</div>
|
2014-05-13 12:40:42 +02:00
|
|
|
|
2014-05-23 11:22:34 +02:00
|
|
|
<script src="/javascript/scripts.js"></script>
|
2014-07-10 22:32:47 +02:00
|
|
|
<script src="/javascript/prism.js"></script>
|
2014-09-03 19:25:56 +02:00
|
|
|
<script src="/javascript/lightbox.min.js"></script>
|
2014-06-07 19:53:13 +02:00
|
|
|
|
2014-09-29 22:10:59 +02:00
|
|
|
|
2014-06-07 19:53:13 +02:00
|
|
|
<?php
|
2014-09-29 22:10:59 +02:00
|
|
|
foreach ($this->js_files as $file)
|
|
|
|
{
|
|
|
|
echo "<script src=\"$file\"></script>\r\n";
|
|
|
|
}
|
|
|
|
|
2014-07-05 21:15:24 +02:00
|
|
|
foreach ($this->js_scripts as $script) {
|
|
|
|
echo '<script type="text/javascript" language="JavaScript">', PHP_EOL;
|
|
|
|
echo $script;
|
|
|
|
echo '</script>', PHP_EOL;
|
|
|
|
}
|
2014-06-07 19:53:13 +02:00
|
|
|
?>
|
|
|
|
|
2014-05-13 12:40:42 +02:00
|
|
|
</body>
|
2014-05-13 14:06:18 +02:00
|
|
|
</html>
|