1
0

Added Parsedown + ParsedownExtra + Prism

This commit is contained in:
2014-07-10 22:32:47 +02:00
parent e17154d28c
commit 4ca578cfde
14 changed files with 2169 additions and 122 deletions

View File

@@ -21,6 +21,7 @@
<?php Yii::app()->bootstrap->register(); ?>
<link rel="stylesheet" type="text/css" href="/css/styles.css"/>
<link rel="stylesheet" type="text/css" href="/css/prism.css"/>
<title><?php echo CHtml::encode($this->pageTitle); ?></title>
</head>
@@ -98,6 +99,7 @@
<script src="//ajax.googleapis.com/ajax/libs/jquery/1.9.1/jquery.min.js"></script>
<script src="/javascript/scripts.js"></script>
<script src="/javascript/prism.js"></script>
<?php
foreach ($this->js_scripts as $script) {

View File

@@ -1,7 +1,3 @@
<?php
$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
echo $content;
$this->endWidget();
echo ParsedownHelper::parse($content);

View File

@@ -36,7 +36,7 @@ $this->selectedNav = 'about';
<div class="gitbox-footer">
<div class="gitbox-footer-box">
<span class="gitbox-footer-box-header">Last Update</span>
<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') == 1) ? '' : 's')?> ago</span>
<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>