|
mySkin.phpThe second step in making a skin is to create a PHP class file, inside the skin folder. The minimum code you can use, is the following: <?php class zSkinMySkin extends zSkinBase { public function __construct($INFO) { parent::__construct($INFO); parent::set_style('', array( // define style variables here )); } } You can copy/paste the above code as is, only changing At this point, you have a fully qualified and working skin. Obviously, it will look exactly like zoglair's default skin, but it will be selectable as The
If you pass an empty string as a style name, then The style variables can be either existing ones (used by the default skin) or your own. In other words, you can overwrite any of the existing variables and define any new ones, obviously used in your CSS. For example: <?php ... parent::set_style('', array( 'main_width' => '704px', 'view_bg' => 'url({{'.zoglair::Z_MID_VIEW_BG.'|:url}})', 'body_bg' => '#F7F2DC url({{5|:url}}) no-repeat', )); You can find out the default style variables either by reading
« mySkin
mySkin.html »
|