1
0

Added About page

This commit is contained in:
2014-05-14 11:15:32 +02:00
parent b8d8e888d2
commit a2b684eee1
16 changed files with 450 additions and 397 deletions

View File

@@ -15,6 +15,7 @@
<meta name="viewport" content="width=device-width">
<?php Yii::app()->bootstrap->register(); ?>
<link rel="stylesheet" type="text/css" href="/css/styles.css" />
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
@@ -27,19 +28,21 @@
$this->widget('bootstrap.widgets.TbNavbar',
[
'brandLabel' => Yii::app()->name,
'display' => null, // default is static to top
'display' => null,
'htmlOptions' =>
[
'class' => 'cstm-main-navbar'
],
'items' =>
[
[
'class' => 'bootstrap.widgets.TbNav',
'items' =>
[
array('label' => 'Home', 'url' => '/', 'active' => true),
array('label' => 'Blog', 'url' => '#', 'active' => false),
array('label' => 'Programme', 'url' => '#', 'active' => false),
array('label' => 'About', 'url' => '#', 'active' => false),
array('label' => 'Home', 'url' => '/', 'active' => ($this->selectedNav === 'index')),
array('label' => 'Blog', 'url' => '#', 'active' => ($this->selectedNav === 'blog')),
array('label' => 'Programme', 'url' => '#', 'active' => ($this->selectedNav === 'prog')),
array('label' => 'About', 'url' => 'About', 'active' => ($this->selectedNav === 'about')),
],
],
@@ -66,9 +69,10 @@
<?php
if(isset($this->breadcrumbs))
{
$this->widget('bootstrap.widgets.TbBreadcrumb', array(
'links'=>$this->breadcrumbs,
));
$this->widget('bootstrap.widgets.TbBreadcrumb',
[
'links'=>$this->breadcrumbs,
]);
}
?>
@@ -76,8 +80,10 @@
echo $content;
?>
<div id="footer">
Copyright &copy; <?php echo date('Y'); ?> by My Company.<br/>
<hr>
<div class="footer">
Copyright &copy; <?php echo date('Y'); ?> by Mike Schwörer.<br/>
All Rights Reserved.<br/>
<?php echo Yii::powered(); ?>
</div>

View File

@@ -0,0 +1,74 @@
<?php
/* @var $this SiteController */
$this->pageTitle=Yii::app()->name;
$this->breadcrumbs=
[
'About'
];
$this->selectedNav = 'about';
?>
<div class="container">
<?php echo TbHtml::pageHeader('About Mikescher.de', ''); ?>
<p>Welcome to my private homepage.</p>
<p>My name is Mike Schwörer, and this is my homepage - here i upload programs i write in my free time and sometimes i even write a blog entry ...'); </p>
<p>If you want you can look <?php echo TbHtml::link('here', '#'); // TODO Add Link ?> at the things I programmed </p>
<?php echo TbHtml::well( file_get_contents('protected/data/disclaimer.php') ); ?>
<?php $form = $this->beginWidget('bootstrap.widgets.TbActiveForm', array('layout' => TbHtml::FORM_LAYOUT_HORIZONTAL)); ?>
<div class="well cstm-background-white">
<fieldset>
<legend>Contact Me</legend>
<?php
echo TbHtml::textFieldControlGroup('name', '',
[
'label' => 'Name:',
'placeholder' => 'Name'
]);
echo TbHtml::textFieldControlGroup('email', '',
[
'label' => 'Email address:',
'placeholder' => 'Email'
]);
echo TbHtml::textFieldControlGroup('header', '',
[
'label' => 'Title:',
'placeholder' => 'Header'
]);
echo TbHtml::textAreaControlGroup('text', '',
[
'label' => 'Message:',
'rows' => 6
]);
?>
</fieldset>
<?php echo TbHtml::formActions(
[
TbHtml::submitButton('Submit', array('color' => TbHtml::BUTTON_COLOR_PRIMARY)),
TbHtml::resetButton('Reset'),
],
[
'class' => 'cstm-background-white',
]);
?>
<?php $this->endWidget(); ?>
</div>
</div>

View File

@@ -7,6 +7,9 @@ $this->breadcrumbs=
[
'Index'
];
$this->selectedNav = 'index';
?>
<div class="container">