require_once "GlobalFunctions.php";
require_once $IP."/PHPTAL-NP-0.7.0/libs/PHPTAL.php";
- require_once "TabbedCardSet.php";
-
class MediaWiki_I18N extends PHPTAL_I18N
{
var $_context = array();
$tpl->setRef( 'mimetype', &$wgMimeType );
$tpl->setRef( 'charset', &$wgOutputEncoding );
$tpl->set( 'headlinks', $out->getHeadLinks() );
- $tpl->set( 'customscript', $out->getScript() );
$tpl->setRef( 'skinname', &$this->skinname );
$tpl->setRef( "loggedin", &$this->loggedin );
/* XXX currently unused, might get useful later
} else {
$tpl->set('body-ondblclick', false);
}
- $tpl->set( 'body-onload',$wgOut->getOnloadHandler() );
$tpl->set( "nav_urls", $this->buildNavUrls() );
// execute template
return wfMsg('nstab-main');
}
}
-
/* private */ function setupUserCssJs () {
global $wgRequest, $wgTitle;
$action = $wgRequest->getText('action');
$this->userjs = $this->makeUrl($this->userpage.'/'.$this->skinname.'.js', 'action=raw&ctype=text/javascript');
}
}
-
- // Overload the Skin::newCardSet function to replace
- // the default CardSet widget
- function newCardSet( $title = "")
- {
- return new TabbedCardSet( $title );
- }
-
}
class SkinDaVinci extends SkinPHPTal {
<style tal:condition="usercss" type="text/css">/*<![CDATA[*/ ${usercss} /*]]>*/</style>
<script tal:condition="userjs" type="text/javascript" tal:attributes="src userjs"></script><script
tal:condition="userjsprev" type="text/javascript">/*<![CDATA[*/${userjsprev}/*]]>*/</script>
- ${customscript}
</head>
- <body tal:attributes="onload body-onload; ondblclick body-ondblclick|default">
+ <body tal:attributes="ondblclick body-ondblclick|default">
<div id="globalWrapper">
<div id="column-content">
<div id="content">