thebookofshaders/01/index.php

31 lines
844 B
PHP
Raw Normal View History

2015-07-15 12:12:44 +00:00
<?php
$path = "..";
2015-07-18 18:50:10 +00:00
$subtitle = ": What is a shader?";
include($path."/header.php");
include($path."/src/parsedown/Parsedown.php");
2015-07-15 12:12:44 +00:00
echo '
<div class="header"><p><a href="http://patriciogonzalezvivo.com/2015/thebookofshaders/">The Book of Shaders</a> by <a href="http://patriciogonzalezvivo.com">Patricio Gonzalez Vivo</a></p></div>
<hr>
<div id="content">
';
2015-08-02 11:13:45 +00:00
$README = "README";
if(!empty($_GET['lan']))
$README .= '-'.$_GET['lan'];
2015-07-15 12:12:44 +00:00
$Parsedown = new Parsedown();
2015-08-02 11:13:45 +00:00
echo $Parsedown->text(file_get_contents($README.'.md'));
2015-07-15 12:12:44 +00:00
echo '
</div>
<hr>
<ul class="navigationBar" >
<li class="navigationBar" onclick="previusPage()">&lt; &lt; Previous</li>
<li class="navigationBar" onclick="homePage()"> Home </li>
<li class="navigationBar" onclick="nextPage()">Next &gt; &gt;</li>
</ul>';
include($path."/footer.php");
2015-07-15 12:12:44 +00:00
?>