On Thu, Jan 16, 2014 at 9:23 PM, Bill Traynor btraynor@gmail.com wrote:
MW 1.22
I've created a subskin based on Vector by following this tutorial: http://blog.redwerks.org/2012/02/28/mediawiki-subskin-tutorial/
Now I'd like to implement the customizations from my old vector-based skin from MW1.16 in my new skin. I've got two small html files. One is a block of links that I'd like right at the top of the page, and the second is a block of links I'd like to insert above the footer. What's the best way to do this?
In a subskin, the MySkin.skin.php file contains:
/** * SkinTemplate class for My Skin skin * @ingroup Skins */ *class SkinMySkin extends SkinVector* {
var $skinname = 'myskin', $stylename = 'myskin';
/** * @param $out OutputPage object */ function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( "skins.myskin" )
But in a new non-subskin build, the skin php file there appears to be initialization code:
/** * SkinTemplate class for My Skin skin * @ingroup Skins */ *class SkinMySkin extends SkinTemplate* {
var $skinname = 'myskin', $stylename = 'myskin', $template = 'MySkinTemplate', $useHeadElement = true;
/** * @param $out OutputPage object */ function setupSkinUserCss( OutputPage $out ){ parent::setupSkinUserCss( $out ); $out->addModuleStyles( "skins.myskin" ); }
}
So is the initialization code NOT required when creating a subskin? And if not, how does the ResourceLoader know about the Module: skins.myskin?
Thanks Bill