diff options
author | root <root@adnab.me> | 2014-01-31 17:30:35 +0100 |
---|---|---|
committer | root <root@adnab.me> | 2014-01-31 17:30:35 +0100 |
commit | 1ed8a37bea8882cd3a1aa0f421dbc15493a781a0 (patch) | |
tree | d014616096b7f8b94b707626cae46cff0e0608ce /lib/static/view.php | |
parent | b0c23ea84327d48e3a4383fac3e795c2dc0a1215 (diff) | |
download | Bits-1ed8a37bea8882cd3a1aa0f421dbc15493a781a0.tar.gz Bits-1ed8a37bea8882cd3a1aa0f421dbc15493a781a0.zip |
Traduction into french of some parts of the site.
Diffstat (limited to 'lib/static/view.php')
-rw-r--r-- | lib/static/view.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/lib/static/view.php b/lib/static/view.php new file mode 100644 index 0000000..e3f8752 --- /dev/null +++ b/lib/static/view.php @@ -0,0 +1,13 @@ +<?php + +require ("lib/conf/static.php"); +require("lib/markdown.php"); + +if (isset($static_pages[$args[2]])) { + + $title = $static_pages[$args[2]]; + $text = file_get_contents("lib/static/" . $args[2] . ".md"); + $text = Markdown($text); + + require("tpl/general/static.php"); +} |