if (!$fileInfo->isDot()) { $themes_arr[] = $fileInfo->getBasename(".css"); } } asort($themes_arr); foreach ($themes_arr as $theme_css) { echo "<option value=\"" . $theme_css . "\">" . $theme_css . "</option>"; } ?> </select> <?php if ($highlighting == "md") { include_once "{$root}/includes/parsedown.php"; include_once "{$root}/includes/parsedown-extra.php"; $parsedown = new ParsedownExtra(); $parsedown->setMarkupEscaped(true); ?> <div class="markdown-preview"> <link rel="stylesheet" type="text/css" href="css/markdown-light.css" class="md-css"/> <link rel="stylesheet" type="text/css" href="css/markdown.css"/> <h1 class="mdh">Markdown Preview</h1> <div class="css-switcher"> <a href="css/markdown.css" style="float: left; margin-right: 16px; color: #fff;" class="css-link">CSS</a> <div class="css-switch" id="light"></div> <div class="css-switch" id="dark"></div> </div> <div class="markdown-content"> <?php echo $parsedown->text(html_entity_decode(bzdecompress(file_get_contents("{$dir}/{$foundFile}")))); ?> </div>