mirror of
https://github.com/RaspAP/raspap-webgui.git
synced 2024-11-21 15:10:22 +00:00
Update about with contributing tab
This commit is contained in:
parent
cbc8e2fdec
commit
f20e4a879a
2 changed files with 11 additions and 1 deletions
|
@ -11,6 +11,14 @@ function DisplayAbout()
|
|||
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/BACKERS.md');
|
||||
$sponsorsHtml = $Parsedown->text($strContent);
|
||||
|
||||
echo renderTemplate("about", compact('sponsorsHtml'));
|
||||
$strContent = file_get_contents($_SERVER['DOCUMENT_ROOT'].'/CONTRIBUTING.md');
|
||||
$contributingHtml = $Parsedown->text($strContent);
|
||||
|
||||
echo renderTemplate(
|
||||
"about", compact(
|
||||
'sponsorsHtml',
|
||||
'contributingHtml'
|
||||
)
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -19,6 +19,7 @@ require_once 'app/lib/Parsedown.php';
|
|||
<ul class="nav nav-tabs">
|
||||
<li class="nav-item"><a class="nav-link active" href="#aboutgeneral" data-toggle="tab"><?php echo _("About"); ?></a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#aboutsponsors" data-toggle="tab"><?php echo _("Insiders"); ?></a></li>
|
||||
<li class="nav-item"><a class="nav-link" href="#aboutcontrib" data-toggle="tab"><?php echo _("Contributing"); ?></a></li>
|
||||
</ul>
|
||||
<!-- /.nav-tabs -->
|
||||
|
||||
|
@ -26,6 +27,7 @@ require_once 'app/lib/Parsedown.php';
|
|||
<div class="tab-content">
|
||||
<?php echo renderTemplate("about/general", $__template_data) ?>
|
||||
<?php echo renderTemplate("about/insiders", $__template_data) ?>
|
||||
<?php echo renderTemplate("about/contributing", $__template_data) ?>
|
||||
</div>
|
||||
<!-- /.tab-content -->
|
||||
|
||||
|
|
Loading…
Reference in a new issue