Wikka : DanWestPgHeader

HomePage :: Categories :: Index :: Changes :: Comments :: Documentation :: Blog :: Login/Register

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. [Add comment]
Valid XHTML 1.0 Transitional :: Valid CSS :: Powered by WikkaWiki
Page was generated in 0.0923 seconds