Files
cwsvJudo/homepage/redesign2018/markdownExperiment/admin/mdDisplayer/index.php
marko bdb7dd5514 Update nach langer Zeit
- description zu den seiten hinzugefügt
- square7 etwas entfernt
- update pandoc: version 2.13 benötigt
2021-05-21 11:29:12 +02:00

35 lines
918 B
PHP

<?php
$basePath = "/users/cwsvjudo/www";
require_once($basePath."/ressourcen/phpLib/parsedown/Parsedown.php");
require_once($basePath."/ressourcen/phpLib/parsedown-extra/ParsedownExtra.php");
$fileList = glob($basePath."/admin/mdDisplayer/*.md");
rsort($fileList);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>mdDisplayer</title>
<meta name="description" content="mdDisplayer">
</head>
<body>
<?php
echo("<ul>");
foreach($fileList as $file){
echo("<li><a href=\"#".$file."\">".mb_convert_encoding( basename($file), "UTF-8", "ISO-8859-1" )."</a></li>");
}
echo("</ul>");
foreach($fileList as $file){
echo("<hr /><a name=\"".$file."\"></a>");
echo("<div class=\"infoZettel\">" . ParsedownExtra::instance()->text( file_get_contents($file) ) . "</div><hr />");
}
?>
</body>
</html>