[web-doc] master: reinstate header variables and fix double sidebar
[email protected] (Peter Cowburn) Mon, 17 May 2021 11:17:25 +0000
| Newsgroups | php.doc.web |
|---|---|
| Message-ID | <[email protected]> |
Author: Peter Cowburn (salathe)
Date: 2021-05-17T12:14:32+01:00
Commit: https://github.com/php/web-doc/commit/326a5f1c08c8b40ba61541cd2328261be8f5e207
Raw diff: https://github.com/php/web-doc/commit/326a5f1c08c8b40ba61541cd2328261be8f5e207.diff
reinstate header variables and fix double sidebar
Changed paths:
M include/lib_general.inc.php
Diff:
diff --git a/include/lib_general.inc.php b/include/lib_general.inc.php
index 05d6232..9ab2599 100644
--- a/include/lib_general.inc.php
+++ b/include/lib_general.inc.php
@@ -30,6 +30,15 @@ function get_svn_dir($project)
function site_header()
{
+ $TITLE = 'Documentation Tools';
+ $SUBDOMAIN = 'doc';
+ $CSS = array('/styles/doc.css');
+ $LINKS = array(
+ array('href' => '/revcheck.php', 'text' => 'Documentation Tools'),
+ array('href' => '/tutorial/', 'text' => 'Tutorial for Contributors'),
+ array('href' => '/phd.php', 'text' => 'PhD Homepage'),
+ );
+
require __DIR__ . '/../shared/templates/header.inc';
echo '<section class="mainscreen">';
@@ -37,9 +46,6 @@ function site_header()
function site_footer($SECONDSCREEN = false)
{
- echo '</section><section class="secondscreen">';
- if ($SECONDSCREEN != false) echo $SECONDSCREEN;
- echo '</section>';
require __DIR__ . '/../shared/templates/footer.inc';
}