Move towards more MD and less PHP

main
Astoria 2 years ago
parent e1fd07c567
commit 5112b14721

@ -3,10 +3,9 @@
$title="About";
$tags="about";
$scanfiles=array("./Media/", "./News/", "./Technology/");
$page = "About/about.php";
require "includes/default-start.php";
require "includes/seemore.php";
require "includes/custompanelPHP.php";
customPage($page);
customPagePHP($page);
require "includes/default-end.php";
?>

@ -7,6 +7,6 @@
require "includes/default-start.php";
require "includes/seemore.php";
require "includes/custompanelPHP.php";
customPage($page);
customPagePHP($page);
require "includes/default-end.php";
?>

@ -1,8 +1,10 @@
<?php
require "./Parsedown.php";
$Parsedown = new Parsedown();
$text = file_get_contents($page);
echo '<div class="article article-headerless">';
echo $Parsedown->text($text);
echo '</div>';
function customPageMD($page) {
require_once "./Parsedown.php";
$Parsedown = new Parsedown();
$text = file_get_contents($page);
echo '<div class="article article-headerless">';
echo $Parsedown->text($text);
echo '</div>';
}
?>

@ -7,6 +7,6 @@
require "includes/default-start.php";
require "includes/seemore.php";
require "includes/custompanelPHP.php";
customPage($page);
customPagePHP($page);
require "includes/default-end.php";
?>

Loading…
Cancel
Save