/templates/xhtml_slim.pt :
<!--[if IE]><style type="text/css" media="all">@import
"${stylepath}/${skinname}/IEFixes.css";</style>
<script type="text/javascript"
src="${stylepath}/IEFixes.js"></script>
<meta http-equiv="imagetoolbar" content="no"
/><![endif]-->
-----------
How does that <!--[if IE]>...<![endif]--> thing works?
I want to:
1. Add a <!--[if ad]>...<![endif]--> feature to allow the webmasters to add
advertisements in my future MediaWiki distribution. The ads could be
displayed, for example, in the left menu or in the page footer or at the
beginning of a page.
2. Make the webinstaller ask whether ads would be enabled or not
3. Incorporate a new setting in DefaultSettings.php and LocalSettings.php to
enable/disable the advertisements. $ads = true;
4. So when $ads is true, the [if ad] thing will be parsed, otherwise it won't.
5. There will be an "ads" mysql table holding the data regarding
advertisements. The software will load the html/script/whatever code from
there. Alternatively an $ad_data variable could be used in php. The contents
of that table/variable need to be editable through the webinstaller and a
special page or in case of the variable through LocalSettings.php
The relevant code changes will be available online and released under GPL, so
anybody who needs ads in mediawiki can benefit from it. I am sure it will be
of great help to students/smallbusinesses which run MW but need ads to pay
their webhost costs.
I would appreciate any help regarding which files reference/use this [if IE]
feature and how I can accomplish what I want and which files needs to be
changed.
--
NSK
Admin of
http://portal.wikinerds.org
Project Manager of
http://www.nerdypc.org
Project Manager of
http://www.adapedia.org