Added Parsedown + ParsedownExtra + Prism
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -1,7 +1,3 @@
|
||||
<?php
|
||||
|
||||
$this->beginWidget('CMarkdown', array('purifyOutput'=>true));
|
||||
|
||||
echo $content;
|
||||
|
||||
$this->endWidget();
|
||||
echo ParsedownHelper::parse($content);
|
||||
@@ -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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user