1
0
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:
Cameron
2013-05-29 01:42:35 -07:00
parent af518f8dc1
commit ce939d1fff
3 changed files with 5 additions and 5 deletions

View File

@@ -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?
{

View File

@@ -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>

View File

@@ -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"