Archived
1
0
Disbranĉigi 0
Ĉi tiu deponejo arĥiviĝis je 2024-01-28. Vi povas vidi kaj elŝuti dosierojn, sed ne povas puŝi nek raporti problemojn nek tirpeti.
blagoblag/res/lib/blagoblag.php

30 lines
1.2 KiB
PHP
Raw Permalink Normal View History

2019-02-15 08:32:58 -06:00
<?php
/* This file is free software: you can redistribute it and/or modify
it under the terms of version 3 of the GNU Affero General Public
License as published by the Free Software Foundation.
This file is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details. */
// STRING STRING STRING [ARRAY] --> BOOLEAN
// Render and display a page, based on it's template-path, title, relative
// depth, and an optional array of more Twig variable exports.
2019-02-18 23:24:07 -06:00
function display_page($mark, $depth, $title, $local_exports=array()) {
2019-02-15 08:32:58 -06:00
echo $GLOBALS['twig']->render("head.twig.html",
2019-02-18 23:24:07 -06:00
make_exports($depth, $title, $mark,
$local_exports));
2019-02-20 08:04:55 -06:00
echo $GLOBALS['twig']->render("navbar.twig.html",
make_exports($depth, $title, $mark,
$local_exports));
2019-02-18 23:24:07 -06:00
echo $GLOBALS['twig']->render($mark . ".twig.html",
make_exports($depth, $title, $mark,
$local_exports));
2019-02-15 08:32:58 -06:00
echo $GLOBALS['twig']->render("foot.twig.html",
2019-02-18 23:24:07 -06:00
make_exports($depth, $title, $mark,
$local_exports));
2019-02-15 08:32:58 -06:00
return true;
}