thebookofshaders/glossary/index.php

29 lines
641 B
PHP
Raw Normal View History

2015-07-16 11:33:05 +00:00
<?php
$path = "..";
2015-07-18 18:50:10 +00:00
if(!empty($_GET))
$subtitle = ": ".$_GET['search'];
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");
?>
<div class="header">
2016-05-07 19:07:34 +00:00
<p class="subtitle"><a href="https://thebookofshaders.com/">The Book of Shaders</a> by <a href="http://patriciogonzalezvivo.com">Patricio Gonzalez Vivo</a></p>
</div>
2015-07-16 11:33:05 +00:00
<hr>
<div id="content">
<?php
2015-07-16 11:33:05 +00:00
$Parsedown = new Parsedown();
if(empty($_GET))
echo $Parsedown->text(file_get_contents ('README.md'));
else
2016-04-06 15:44:45 +00:00
echo $Parsedown->text(file_get_contents ( $_GET['search'].'/README.md' ));
2015-07-16 11:33:05 +00:00
echo '
</div>
<hr>';
include($path."/footer.php");
2015-07-16 11:33:05 +00:00
?>