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

128 lines
4.4 KiB
PHP
Raw Permalink 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
2016-01-01 21:13:33 +01:00
<?php echo MsHtml::pageHeader('About Mikescher.com', ''); ?>
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
2016-01-28 22:00:21 +01:00
<p>My name is Mike, and this is my homepage. I use it to upload programs I have written and sometimes for a little blogging. </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>
2016-01-28 21:44:44 +01:00
2016-01-28 22:00:21 +01:00
<p> I have also a whole sectioned dedicated to <?php echo MsHtml::link('Project Euler', '/blog/1/Project_Euler_with_Befunge'); ?> (in Befunge-93) </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-12-30 22:18:23 +01:00
<span class="gitbox-footer-box-number"><?php echo $egh['creation']->diff(new DateTime())->format('%d') + 1; ?> day<?php echo (($egh['creation']->diff(new DateTime())->format('%d') == 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>