mirror of
https://github.com/billz/raspap-webgui.git
synced 2025-03-01 10:31:47 +00:00
Transfer template logic to includes, see #749 thx @mp035
This commit is contained in:
@@ -1,9 +1,16 @@
|
||||
<?php
|
||||
|
||||
require_once "app/lib/Parsedown.php";
|
||||
|
||||
/**
|
||||
* Displays info about the RaspAP project
|
||||
*/
|
||||
function DisplayAbout()
|
||||
{
|
||||
echo renderTemplate("about");
|
||||
$Parsedown = new Parsedown();
|
||||
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
|
||||
$sponsorsHtml = $Parsedown->text($strContent);
|
||||
|
||||
echo renderTemplate("about", compact('sponsorsHtml'));
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user