*/
$wgVectorUseIconWatch = false;
+/**
+ * Add extra stylesheets for Vector - This is only being used so that we can play around with different options while
+ * keeping our CSS code in the SVN and not having to change the main Vector styles. This will probably go away later on.
+ * null = add no extra styles
+ * array = list of style paths relative to skins/vector/
+ */
+$wgVectorExtraStyles = null;
+
/**
* Preprocessor caching threshold
*/
* @param object $out Output page object to initialize
*/
public function initPage( OutputPage $out ) {
- global $wgStylePath, $wgJsMimeType, $wgStyleVersion;
-
+ global $wgStylePath, $wgJsMimeType, $wgStyleVersion, $wgScriptPath, $wgVectorExtraStyles;
+
parent::initPage( $out );
// Append skin-specific styles
$wgStylePath .
'/vector/csshover.htc")}</style><![endif]-->'
);
+ // Add extra stylesheets
+ // THIS IS ONLY USEFUL FOR EXPERIMENTING WITH DIFFERNT STYLE OPTIONS! THIS WILL BE REMOVED IN THE NEAR FUTURE.
+ if ( is_array( $wgVectorExtraStyles ) ) {
+ foreach ( $wgVectorExtraStyles as $style ) {
+ $out->addStyle( 'vector/' . $style, 'screen' );
+ }
+ }
// Append common IE fixes, which perhaps should be included in all
// skins, but for now it seems each skin needs to include them
// explicitly