1
0
www.mikescher.com/www/protected/views/msmain/about.php

126 lines
4.2 KiB
PHP
Raw Normal View History

2014-05-14 11:15:32 +02:00
<?php
/* @var $this MsMainController */
2014-05-14 11:15:32 +02:00
2014-06-10 13:27:17 +02:00
$this->pageTitle = 'About - ' . Yii::app()->name;
2014-05-14 11:15:32 +02:00
$this->breadcrumbs=
[
'About'
];
$this->selectedNav = 'about';
?>
<div class="container">
<?php if (isset($alerts_success)) foreach($alerts_success as $alert) echo MsHtml::alert(MsHtml::ALERT_COLOR_SUCCESS, $alert); ?>
<?php if (isset($alerts_error)) foreach($alerts_error as $alert) echo MsHtml::alert(MsHtml::ALERT_COLOR_ERROR, $alert); ?>
2014-05-14 11:15:32 +02:00
<?php echo MsHtml::pageHeader('About Mikescher.de', ''); ?>
2014-05-14 11:15:32 +02:00
2014-05-23 11:22:34 +02:00
<div class="well cstm-well-light">
2014-05-14 14:14:45 +02:00
<p>Welcome to my private homepage.</p>
2014-05-14 11:15:32 +02:00
2014-07-20 18:10:47 +02:00
<p>My name is Mike Schwörer, and this is my homepage. Mainly I will upload my programs here and sometimes I write something for my blog </p>
2014-05-14 11:15:32 +02:00
2014-07-20 18:10:47 +02:00
<p>If you want you can look <?php echo MsHtml::link('here', '/programs'); ?> at the things I programmed </p>
2014-05-14 14:14:45 +02:00
</div>
2014-05-14 11:15:32 +02:00
<?php $egh = (new ExtendedGitGraph('Mikescher'))->loadFinishedData(); ?>
<div class="gitbox-container">
<div class="gitbox-header">My Github Commits</div>
<?php echo $egh['content']; ?>
<div class="gitbox-footer">
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Last Update</span>
2015-06-29 15:45:50 +02:00
<span class="gitbox-footer-box-number"><?php echo $egh['creation']->diff(new DateTime())->days + 1; ?> day<?php echo (($egh['creation']->diff(new DateTime())->days == 0) ? '' : 's')?> ago</span>
<span class="gitbox-footer-box-footer"><?php echo $egh['creation']->format('M d Y'); ?></span>
</div>
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Total commits</span>
<span class="gitbox-footer-box-number"><?php echo $egh['total'] ?></span>
<span class="gitbox-footer-box-footer"><?php echo $egh['start']->format('M d Y') . ' - ' . $egh['end']->format('M d Y'); ?></span>
</div>
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Longest streak</span>
<span class="gitbox-footer-box-number"><?php echo $egh['streak']; ?> day<?php echo (($egh['streak'] == 1) ? '' : 's'); ?></span>
<span class="gitbox-footer-box-footer"><?php echo $egh['streak_start']->format('M d Y') . ' - ' . $egh['streak_end']->format('M d Y'); ?></span>
</div>
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Max commits</span>
<span class="gitbox-footer-box-number"><?php echo $egh['max_commits']; ?> / day</span>
<span class="gitbox-footer-box-footer"><?php echo $egh['max_commits_date']->format('M d Y'); ?></span>
</div>
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Avg commits</span>
2014-06-10 08:59:35 +02:00
<span class="gitbox-footer-box-number"><?php echo number_format($egh['avg_commits'], 2); ?> / day</span>
<span class="gitbox-footer-box-footer"><?php echo $egh['start']->format('M d Y') . ' - ' . $egh['end']->format('M d Y'); ?></span>
</div>
</div>
</div>
2014-05-23 11:22:34 +02:00
<div class="well cstm-well-light">
2014-05-14 11:15:32 +02:00
<?php
2014-05-14 14:14:45 +02:00
$form = $this->beginWidget('bootstrap.widgets.TbActiveForm',
[
'layout' => MsHtml::FORM_LAYOUT_HORIZONTAL
2014-05-14 14:14:45 +02:00
]);
2014-05-14 11:15:32 +02:00
?>
2014-05-14 14:14:45 +02:00
<fieldset>
<legend>Contact</legend>
<?php
echo $form->textFieldControlGroup($model, 'name',
[
'placeholder' => 'Name',
2014-06-10 20:04:51 +02:00
'size' => MsHtml::INPUT_SIZE_CUSTOM_ABOUTTXT,
'prepend' => MsHtml::icon(MsHtml::ICON_USER),
2014-05-14 14:14:45 +02:00
'span' => 2,
]);
echo $form->textFieldControlGroup($model, 'email',
[
'placeholder' => 'Email address',
2014-06-10 20:04:51 +02:00
'size' => MsHtml::INPUT_SIZE_CUSTOM_ABOUTTXT,
'prepend' => MsHtml::icon(MsHtml::ICON_ENVELOPE),
2014-05-14 14:14:45 +02:00
'span' => 2,
]);
echo $form->textFieldControlGroup($model, 'header',
[
'placeholder' => 'Header',
2014-06-10 20:04:51 +02:00
'size' => MsHtml::INPUT_SIZE_CUSTOM_ABOUTTXT,
'prepend' => MsHtml::icon(MsHtml::ICON_TAG),
2014-05-14 14:14:45 +02:00
'span' => 5,
]);
echo $form->textAreaControlGroup( $model, 'message',
[
'placeholder' => 'Message',
'size' => MsHtml::INPUT_SIZE_XXLARGE,
2014-05-14 14:14:45 +02:00
'rows' => 10,
]);
?>
</fieldset>
<?php echo MsHtml::formActions(
2014-05-14 14:14:45 +02:00
[
MsHtml::submitButton('Submit', array('color' => MsHtml::BUTTON_COLOR_PRIMARY)),
MsHtml::resetButton('Reset'),
2014-05-14 14:14:45 +02:00
],
[
'class' => 'cstm-background-white',
]); ?>
<?php $this->endWidget(); ?>
</div>
2014-05-14 11:15:32 +02:00
<?php echo MsHtml::well( file_get_contents('protected/data/disclaimer.php') ); ?>
2014-05-14 11:15:32 +02:00
2015-06-29 15:45:50 +02:00
</div>