add the corresponding <title> to manual pages
This commit is contained in:
parent
6f4b4e0e01
commit
bb6d574e93
@ -1,7 +1,7 @@
|
|||||||
<?php
|
<?php
|
||||||
require_once("highlight.php");
|
require_once("highlight.php");
|
||||||
error_reporting(E_ALL);
|
error_reporting(E_ALL);
|
||||||
include("top.php");
|
|
||||||
$h = new PHP_Highlight();
|
$h = new PHP_Highlight();
|
||||||
|
|
||||||
function render($title,$t,$e) {
|
function render($title,$t,$e) {
|
||||||
@ -568,6 +568,19 @@ $menu = array('Getting started' =>
|
|||||||
))
|
))
|
||||||
);
|
);
|
||||||
|
|
||||||
|
if (!empty($_REQUEST['index'])){
|
||||||
|
$ex = explode(".",$_REQUEST["index"]);
|
||||||
|
$paths = array2path($menu);
|
||||||
|
if( ! isset($paths[$ex[0]])){
|
||||||
|
$title = '';
|
||||||
|
}else{
|
||||||
|
$title = " / ". $paths[$ex[0]];
|
||||||
|
}
|
||||||
|
}else{
|
||||||
|
$title = '';
|
||||||
|
}
|
||||||
|
|
||||||
|
include("top.php");
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|
||||||
@ -649,11 +662,7 @@ $menu = array('Getting started' =>
|
|||||||
|
|
||||||
} else {
|
} else {
|
||||||
$i = 1;
|
$i = 1;
|
||||||
$ex = explode(".",$_REQUEST["index"]);
|
// $paths was generated before, to display a correct document title
|
||||||
|
|
||||||
|
|
||||||
$paths = array2path($menu);
|
|
||||||
|
|
||||||
if( ! isset($paths[$ex[0]]))
|
if( ! isset($paths[$ex[0]]))
|
||||||
exit;
|
exit;
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
||||||
<HTML>
|
<HTML>
|
||||||
<HEAD>
|
<HEAD>
|
||||||
<TITLE>Doctrine ORM Framework</TITLE>
|
<TITLE>Doctrine ORM Framework <?=$title?></TITLE>
|
||||||
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
|
||||||
<link rel="stylesheet" type="text/css" href="styles/basic.css">
|
<link rel="stylesheet" type="text/css" href="styles/basic.css">
|
||||||
</HEAD>
|
</HEAD>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user