mirror of
https://github.com/e107inc/e107.git
synced 2025-08-02 12:48:26 +02:00
Support for {e_PAGETITLE} usage in $HEADER.
This commit is contained in:
@@ -571,6 +571,7 @@ echo "</head>\n";
|
|||||||
$body_onload = " style='padding:15px;margin:0px'"; //TODO e-iframe css class.
|
$body_onload = " style='padding:15px;margin:0px'"; //TODO e-iframe css class.
|
||||||
}
|
}
|
||||||
|
|
||||||
|
$HEADER = str_replace("{e_PAGETITLE}",deftrue('e_PAGETITLE',''),$HEADER);
|
||||||
|
|
||||||
|
|
||||||
if(!deftrue('BODYTAG')) //TODO Discuss a better way?
|
if(!deftrue('BODYTAG')) //TODO Discuss a better way?
|
||||||
|
@@ -416,7 +416,7 @@ $HEADER['docs'] = <<<TMPL
|
|||||||
================================================== -->
|
================================================== -->
|
||||||
<header class="jumbotron subhead" id="overview">
|
<header class="jumbotron subhead" id="overview">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<h1>Documentation</h1>
|
<h1>{e_PAGETITLE}</h1>
|
||||||
<p class="lead">How to get started..</p>
|
<p class="lead">How to get started..</p>
|
||||||
</div>
|
</div>
|
||||||
</header>
|
</header>
|
||||||
|
5
page.php
5
page.php
@@ -48,8 +48,6 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
|
|||||||
{
|
{
|
||||||
$e107CorePage->setRequest('listPages');
|
$e107CorePage->setRequest('listPages');
|
||||||
|
|
||||||
require_once(HEADERF);
|
|
||||||
|
|
||||||
if($_GET['action']=='all') // See bootstrap 'docs' layout for an example.
|
if($_GET['action']=='all') // See bootstrap 'docs' layout for an example.
|
||||||
{
|
{
|
||||||
$template = array();
|
$template = array();
|
||||||
@@ -63,6 +61,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
|
|||||||
</section>
|
</section>
|
||||||
';
|
';
|
||||||
$template['end'] = '';
|
$template['end'] = '';
|
||||||
|
define('e_PAGETITLE', 'Documentation'); //FIXME - grab from selected chapter.
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -71,7 +70,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
|
|||||||
$template['item'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
|
$template['item'] = "<li><a href='{CPAGEURL}'>{CPAGETITLE}</a></li>";
|
||||||
$template['end'] = "</ul>";
|
$template['end'] = "</ul>";
|
||||||
}
|
}
|
||||||
|
require_once(HEADERF);
|
||||||
|
|
||||||
$text = $e107CorePage->listPages($_GET['ch'],$template);
|
$text = $e107CorePage->listPages($_GET['ch'],$template);
|
||||||
$ns->tablerender('', $text, 'cpage'); // TODO FIXME Caption eg. "book title"
|
$ns->tablerender('', $text, 'cpage'); // TODO FIXME Caption eg. "book title"
|
||||||
|
Reference in New Issue
Block a user