本文整理汇总了PHP中SkinTemplate::initPage方法的典型用法代码示例。如果您正苦于以下问题:PHP SkinTemplate::initPage方法的具体用法?PHP SkinTemplate::initPage怎么用?PHP SkinTemplate::initPage使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类SkinTemplate
的用法示例。
在下文中一共展示了SkinTemplate::initPage方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: initPage
/** Using kiwix. */
function initPage(OutputPage $out)
{
parent::initPage($out);
$this->skinname = 'Monobook';
$this->stylename = 'Monobook';
$this->template = 'KiwixBaseSkin';
}
示例2: initPage
/**
* initialize the page
*/
public function initPage(OutputPage $out)
{
global $wgSiteJS;
parent::initPage($out);
$out->addModuleScripts('skins.bootstrapmediawiki');
$out->addMeta('viewport', 'width=device-width, initial-scale=1, maximum-scale=1');
}
示例3: initPage
/** Using monobook. */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'monobook';
$this->stylename = 'monobook';
$this->template = 'MonoBookTemplate';
}
示例4: initPage
/** Using monoproject. */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'Mono2';
$this->stylename = 'Mono2';
$this->template = 'Mono2Template';
}
示例5: initPage
/** Using osbridge. */
function initPage(OutputPage $out)
{
parent::initPage($out);
$this->skinname = 'osbridge';
$this->stylename = 'osbridge';
$this->template = 'OSBridgeTemplate';
}
示例6: initPage
/** Using GuMax */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'gumax';
$this->stylename = 'gumax';
$this->template = 'GuMaxTemplate';
}
示例7: initPage
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'haputimes';
$this->stylename = 'haputimes';
$this->template = 'HapuTimesTemplate';
}
示例8: initPage
/** Using Bootstrap */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'bootstrap';
$this->stylename = 'bootstrap';
$this->template = 'BootstrapTemplate';
}
示例9: initPage
/**
* @author Inez Korczynski <inez@wikia.com>
*/
public function initPage(&$out) {
wfDebugLog('lyricsminimal', '##### SkinLyricsMinimal initPage #####');
wfProfileIn(__METHOD__);
global $wgHooks, $wgCityId, $wgCat;
SkinTemplate::initPage($out);
$this->skinname = 'lyricsminimal';
$this->stylename = 'lyricsminimal';
$this->template = 'LyricsMinimalTemplate';
// Get category information (id, name, url)
$cats = wfGetBreadCrumb();
$idx = count($cats)-2;
if(isset($cats[$idx])) {
$wgCat = $cats[$idx];
wfDebugLog('lyricsminimal', 'There is category info');
} else {
$wgCat = array('id' => -1);
wfDebugLog('lyricsminimal', 'No category info');
}
// Function addVariables will be called to populate all needed data to render skin
$wgHooks['SkinTemplateOutputPageBeforeExec'][] = array(&$this, 'addVariables');
wfProfileOut(__METHOD__);
}
示例10: initPage
/** Using monobook. */
function initPage(OutputPage $out)
{
parent::initPage($out);
$this->skinname = 'monobook';
$this->stylename = 'monobook';
$this->template = 'MonoBookTemplate';
}
示例11: initPage
/** Using fusionforge. */
function initPage(OutputPage $out)
{
parent::initPage($out);
$this->skinname = 'fusionforge';
$this->stylename = 'fusionforge';
$this->template = 'FusionForgeTemplate';
}
示例12: initPage
/** Using RoundedBlue. */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'RoundedBlue';
$this->stylename = 'RoundedBlue';
$this->template = 'RoundedBlueTemplate';
}
示例13: initPage
function initPage(OutputPage $out)
{
parent::initPage($out);
$this->skinname = 'modern';
$this->stylename = 'modern';
$this->template = 'ModernTemplate';
}
示例14: initPage
/** Using gforge. */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'gforge';
$this->stylename = 'gforge';
$this->template = 'GForgeTemplate';
}
示例15: initPage
/** Using cavendish. */
function initPage(&$out)
{
SkinTemplate::initPage($out);
$this->skinname = 'cavendish';
$this->stylename = 'cavendish';
$this->template = 'cavendishTemplate';
}