コード例 #1
0
 /**
  * @param Title $title 
  * @return TitleExplosion
  */
 public static function newFromTitle($title)
 {
     $titleExplosion = new TitleExplosion($title);
     $titleExplosion->setTitles();
     return $titleExplosion;
 }
コード例 #2
0
ファイル: Skinzam.hooks.php プロジェクト: eFFemeer/seizamcore
 /**
  * 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;
 }