skip it if ($nav_drawer == "yes") { ?>
">
setBreaksEnabled(true) // with linebreaks ->text($file); echo $intro; // PRINTS THE SH**** ?>
tag view $articles = scandir($articlesdir, 1); // save the content of the directory in the articles variable foreach ($articles as $article) { // iterate through all articles $tags = ArticleGenerator::getTags($articlesdir, $article); // get the article tags if (in_array($gettag, $tags)) { // if the article has the requested tag if (strlen($article) >= 3 && substr($article, -3) == ".md") { // check if the file is a article file ArticleGenerator::newArticle($articlesdir, $article, $getblog); // generate the article } } } } elseif ($getarticle == "") { // NORMAL VIEW if there's no article request -> normal view $articles = scandir($articlesdir, 1); // save the content of the directory in the articles variable foreach ($articles as $article) { // iterate through this variable if (strlen($article) >= 3 && substr($article, -3) == ".md") { // check if the file is a article file ArticleGenerator::newArticle($articlesdir, $article, $getblog); // generate the article } } } elseif (isset($getarticle)) { // ARTICLE VIEW ArticleGenerator::newArticle($articlesdir, $getarticle . ".md", $getblog); // generate the requested article include './res/php/Disqus.php'; // include disques } else { // SOMETHING STRANGE: THIS SHOULDN'T HAPPEN echo "Some error occured, please go back."; } ?>
Share