mirror of
https://github.com/e107inc/e107.git
synced 2025-08-01 04:10:38 +02:00
Support for {e_PAGETITLE} usage in $HEADER.
This commit is contained in:
@@ -571,7 +571,8 @@ echo "</head>\n";
|
||||
$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?
|
||||
{
|
||||
|
@@ -416,7 +416,7 @@ $HEADER['docs'] = <<<TMPL
|
||||
================================================== -->
|
||||
<header class="jumbotron subhead" id="overview">
|
||||
<div class="container">
|
||||
<h1>Documentation</h1>
|
||||
<h1>{e_PAGETITLE}</h1>
|
||||
<p class="lead">How to get started..</p>
|
||||
</div>
|
||||
</header>
|
||||
|
5
page.php
5
page.php
@@ -48,8 +48,6 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
|
||||
{
|
||||
$e107CorePage->setRequest('listPages');
|
||||
|
||||
require_once(HEADERF);
|
||||
|
||||
if($_GET['action']=='all') // See bootstrap 'docs' layout for an example.
|
||||
{
|
||||
$template = array();
|
||||
@@ -63,6 +61,7 @@ elseif(vartrue($_GET['ch'])) // List Pages within a specific Chapter
|
||||
</section>
|
||||
';
|
||||
$template['end'] = '';
|
||||
define('e_PAGETITLE', 'Documentation'); //FIXME - grab from selected chapter.
|
||||
}
|
||||
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['end'] = "</ul>";
|
||||
}
|
||||
|
||||
require_once(HEADERF);
|
||||
|
||||
$text = $e107CorePage->listPages($_GET['ch'],$template);
|
||||
$ns->tablerender('', $text, 'cpage'); // TODO FIXME Caption eg. "book title"
|
||||
|
Reference in New Issue
Block a user