Extension:SLight

Description
Extension allows inserting Silverlight content. Silverlight app (XAP extension) can be placed this way:
 * Width is optional, default is 100%.
 * Percentage of height doesn't work in IE for example, so it must be set in pixels.
 * XAP (it's zip actually) file must be uploaded into the wiki due to security permissions.

I know there is already an extension called Extension:Silverlight. But I wasn't able to make it work in my wiki and decided to write my own. I chose a simple code from Microsoft for embedding Silverlight content and it worked. But the were some issues: Therefore this simple extension works with following conditions:
 * It's a problem to globally allow using Silverlight content from other servers
 * A height percentage doesn't work well in some browsers (Chrome is ok).
 * Silverlight content must be uploaded to wiki
 * The height in pixels must be set

Installation

 * Create folder extensions/SLight and put in the SLight.php.
 * In LocalSettings.php add this line

Allow uploading XAP files
For uploading XAPs we have to allow it.

LocalSettings.php

 * $wgFileExtensions[] = 'zip';
 * $wgFileExtensions[] = 'xap';

Includes/mime.types

 * add xap to the end of row starting with application/zip
 * at the end of the file add following rows: