Custom Page Header


What


Use

Installation

Added to wakka.class.php
    // DW - Added (Process {{pagetitle name}} fake action)
    function PageHeader() {
        $title = "";
        $pagecontent = $this->page["body"];
        if (ereg( "({){2}pagetitle ([^}\n]+)(}){2}", $pagecontent, $title)) {
            $title = $title[2];
        }
        if ($title) return strip_tags($this->Format($title));               # fix for forced links in heading
        else return $this->GetPageTag();
    }


header.php
$PgTitle = $this->PageHeader();
    .
    .
    .
<title><?php echo $PgTitle; ?></title>



CategoryUserContributions
There are no comments on this page.
Valid XHTML :: Valid CSS: :: Powered by WikkaWiki