/** * @param Title $title * @return TitleExplosion */ public static function newFromTitle($title) { $titleExplosion = new TitleExplosion($title); $titleExplosion->setTitles(); return $titleExplosion; }
/** * skinTemplateOutputPageBeforeExec hook * * Cooks the skin template Seizam-Style! * * @param SkinSkinzam $skin * @param SkinzamTemplate $tpl */ public static function skinTemplateOutputPageBeforeExec(&$skin, &$tpl) { // The links on the absolute footer $tpl->set('absolute_footer_urls', self::getAbsoluteFooterUrls($skin, $tpl)); // The links on the content footer $tpl->set('footerlinks', array('info' => array('lastmod', 'viewcount', 'numberofwatchingusers', 'credits', 'copyright'))); // The page title H1 header formatted $headerTitle['content'] = TitleExplosion::newFromTitle($skin->getTitle())->getHtml(); $tpl->set('sz_headertitle', $headerTitle); return true; }