Skip to content

Commit

Permalink
adding php links to translations
Browse files Browse the repository at this point in the history
  • Loading branch information
patriciogonzalezvivo committed Aug 5, 2015
1 parent af71639 commit 7e1cc55
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 6 deletions.
10 changes: 8 additions & 2 deletions 02/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
include($path."/src/parsedown/Parsedown.php");

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>
<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>
<p>Translations: <a href=".">English</a> - <a href="?lan=jp">Japanese</a></p>
</div>
<hr>
<div id="content">
';

$README = "README";
if(!empty($_GET['lan']))
$README .= '-'.$_GET['lan'];
$Parsedown = new Parsedown();
echo $Parsedown->text(file_get_contents ('README.md'));
echo $Parsedown->text(file_get_contents($README.'.md'));

echo '
</div>
Expand Down
10 changes: 8 additions & 2 deletions 03/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
include($path."/src/parsedown/Parsedown.php");

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>
<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>
<p>Translations: <a href=".">English</a> - <a href="?lan=jp">Japanese</a></p>
</div>
<hr>
<div id="content">
';

$README = "README";
if(!empty($_GET['lan']))
$README .= '-'.$_GET['lan'];
$Parsedown = new Parsedown();
echo $Parsedown->text(file_get_contents ('README.md'));
echo $Parsedown->text(file_get_contents($README.'.md'));

echo '
</div>
Expand Down
10 changes: 8 additions & 2 deletions 04/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,19 @@
include($path."/src/parsedown/Parsedown.php");

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>
<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>
<p>Translations: <a href=".">English</a> - <a href="?lan=jp">Japanese</a></p>
</div>
<hr>
<div id="content">
';

$README = "README";
if(!empty($_GET['lan']))
$README .= '-'.$_GET['lan'];
$Parsedown = new Parsedown();
echo $Parsedown->text(file_get_contents ('README.md'));
echo $Parsedown->text(file_get_contents($README.'.md'));

echo '
</div>
Expand Down

0 comments on commit 7e1cc55

Please sign in to comment.