forked from cryptoGlance/cryptoGlance-web-app
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathchangelog.php
More file actions
56 lines (44 loc) · 1.62 KB
/
changelog.php
File metadata and controls
56 lines (44 loc) · 1.62 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<?php
include('includes/inc.php');
# This file passes the content of the Readme.md file in the same directory
# through the Markdown filter. You can adapt this sample code in any way
# you like.
# PHP Markdown Lib Copyright © 2004-2013 Michel Fortin http://michelf.ca/
# All rights reserved.
# Install PSR-0-compatible class autoloader
spl_autoload_register(function($class){
require preg_replace('{\\\\|_(?!.*\\\\)}', DIRECTORY_SEPARATOR, ltrim($class, '\\')).'.php';
});
# Get Markdown class
use \Michelf\Markdown;
# Read file and pass content through the Markdown parser
$text = file_get_contents('CHANGELOG.md');
$html = Markdown::defaultTransform($text);
$jsArray = array();
require_once("includes/header.php");
?>
<!-- ### Below is the Settings page which contains common/site-wide preferences
-->
<div id="help-wrap" class="container sub-nav full-content">
<div class="markdown-body">
<div id="readme" class="panel panel-default panel-no-grid">
<h1>Update History</h1>
<div class="panel-heading">
<h2 class="panel-title"><i class="icon icon-document"></i> CHANGELOG.md</h2>
</div>
<div class="panel-body panel-body-markdown">
<?php
# Put rendered README markdown in the document
echo $html;
?>
</div>
</div>
</div>
</div>
<!-- /container -->
<?php require_once("includes/footer.php"); ?>
</div>
<!-- /page-container -->
<?php require_once("includes/scripts.php"); ?>
</body>
</html>