Added About page
This commit is contained in:
@@ -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 © <?php echo date('Y'); ?> by My Company.<br/>
|
||||
<hr>
|
||||
|
||||
<div class="footer">
|
||||
Copyright © <?php echo date('Y'); ?> by Mike Schwörer.<br/>
|
||||
All Rights Reserved.<br/>
|
||||
<?php echo Yii::powered(); ?>
|
||||
</div>
|
||||
|
||||
74
www/protected/views/site/about.php
Normal file
74
www/protected/views/site/about.php
Normal 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>
|
||||
@@ -7,6 +7,9 @@ $this->breadcrumbs=
|
||||
[
|
||||
'Index'
|
||||
];
|
||||
|
||||
$this->selectedNav = 'index';
|
||||
|
||||
?>
|
||||
|
||||
<div class="container">
|
||||
|
||||
Reference in New Issue
Block a user