<?php /* For each sidebar.x.md or sidebar.x.txt file in the site root ** read the file and echo the contents, converting .md (Markdown) files. ** x must be a single number between 0 and 9, lowest echoed first. */ foreach (glob($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . "sidebar.[0-9].*") as $sidebar_filename) { //Note glob sorts by default echo Md_ProcessText($sidebar_filename, $parsedown); }
</div> <div class="three columns"> <?php /* ** Process the sidebar */ include_once "md-sidebar.php"; ?> </div> </div> </article> <!-- To Do - Add also like options --> <?php /* ** Process the footer */ include_once "md-footer.php"; ?> <div class="twelve columns"> <?php /* ** Process page end file */ echo Md_ProcessText($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $MD_SETTINGS['PAGE_END_FILE'], $parsedown); ?> </div> </div> </body> </html>
<?php echo "<a href=\"{$MD_SETTINGS['HOME']}\">"; echo "<img title=\"{$MD_SETTINGS['SITE_NAME']}\" alt=\"{$MD_SETTINGS['SITE_NAME']} Logo\" src=\"{$MD_SETTINGS['SITE_LOGO']}\" />"; echo "</a>"; ?> </div> <div class="three columns"> <?php echo "<h1 class=\"sitetitle\">{$MD_SETTINGS['SITE_NAME']}</h1>"; ?> </div> <div class="five columns"> <?php //Check for info.top file echo Md_ProcessText($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $MD_SETTINGS['INFO_TOP_FILE'], $parsedown); ?> </div> <div class="three columns"> <?php //Check for search.txt code file echo Md_ProcessText($_SERVER['DOCUMENT_ROOT'] . DIRECTORY_SEPARATOR . $MD_SETTINGS['SITE_SEARCH'], $parsedown); ?> </div> </div> <div class="row"> <div class="twelve columns"> <?php Md_ProcessMenu($parsedown); ?> </div> </div>