* (bug 1989) Some messages converted to use addWikiText(), patch by Niklas Laxstr��m
[lhc/web/wiklou.git] / skins / MonoBook.php
index 88c29aa..f0c4f30 100644 (file)
@@ -31,7 +31,12 @@ class SkinMonoBook extends SkinTemplate {
                $this->template  = 'MonoBookTemplate';
        }
 }
-       
+
+/**
+ * @todo document
+ * @package MediaWiki
+ * @subpackage Skins
+ */
 class MonoBookTemplate extends QuickTemplate {
        /**
         * Template filter callback for MonoBook skin.
@@ -42,6 +47,9 @@ class MonoBookTemplate extends QuickTemplate {
         * @access private
         */
        function execute() {
+               // Suppress warnings to prevent notices about missing indexes in $this->data
+               wfSuppressWarnings();
+
 ?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php $this->text('lang') ?>" lang="<?php $this->text('lang') ?>" dir="<?php $this->text('dir') ?>">
   <head>
@@ -50,8 +58,10 @@ class MonoBookTemplate extends QuickTemplate {
     <title><?php $this->text('pagetitle') ?></title>
     <style type="text/css" media="screen,projection">/*<![CDATA[*/ @import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/main.css"; /*]]>*/</style>
     <link rel="stylesheet" type="text/css" media="print" href="<?php $this->text('stylepath') ?>/common/commonPrint.css" />
-    <!--[if IE]><style type="text/css" media="all">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IEFixes.css";</style>
-    <script type="text/javascript" src="<?php $this->text('stylepath') ?>/common/IEFixes.js"></script>
+    <!--[if lt IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE50Fixes.css";</style><![endif]-->
+    <!--[if IE 5.5000]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE55Fixes.css";</style><![endif]-->
+    <!--[if IE 6]><style type="text/css">@import "<?php $this->text('stylepath') ?>/<?php $this->text('stylename') ?>/IE60Fixes.css";</style><![endif]-->
+    <!--[if IE]><script type="text/javascript" src="<?php $this->text('stylepath') ?>/common/IEFixes.js"></script>
     <meta http-equiv="imagetoolbar" content="no" /><![endif]-->
     <?php if($this->data['jsvarurl'  ]) { ?><script type="text/javascript" src="<?php $this->text('jsvarurl'  ) ?>"></script><?php } ?>
     <script type="text/javascript" src="<?php                                   $this->text('stylepath' ) ?>/common/wikibits.js"></script>
@@ -60,6 +70,7 @@ class MonoBookTemplate extends QuickTemplate {
     <?php if($this->data['userjsprev']) { ?><script type="text/javascript"><?php      $this->html('userjsprev') ?></script><?php   } ?>
   </head>
   <body <?php if($this->data['body_ondblclick']) { ?>ondblclick="<?php $this->text('body_ondblclick') ?>"<?php } ?>
+        <?php if($this->data['body_onload'    ]) { ?>onload="<?php     $this->text('body_onload')     ?>"<?php } ?>
         <?php if($this->data['nsclass'        ]) { ?>class="<?php      $this->text('nsclass')         ?>"<?php } ?>>
     <div id="globalWrapper">
       <div id="column-content">
@@ -111,6 +122,7 @@ class MonoBookTemplate extends QuickTemplate {
            href="<?php echo htmlspecialchars($this->data['nav_urls']['mainpage']['href'])?>"
            title="<?php $this->msg('mainpage') ?>"></a>
        </div>
+       <script type="text/javascript"> if (window.isMSIE55) fixalpha(); </script>
        <div class="portlet" id="p-nav">
          <h5><?php $this->msg('navigation') ?></h5>
          <div class="pBody">
@@ -123,15 +135,15 @@ class MonoBookTemplate extends QuickTemplate {
          </div>
        </div>
        <div id="p-search" class="portlet">
-         <h5><?php $this->msg('search') ?></h5>
+         <h5><label for="searchInput"><?php $this->msg('search') ?></label></h5>
          <div class="pBody">
            <form name="searchform" action="<?php $this->text('searchaction') ?>" id="searchform">
              <input id="searchInput" name="search" type="text"
                <?php if($this->haveMsg('accesskey-search')) {
                  ?>accesskey="<?php $this->msg('accesskey-search') ?>"<?php }
                if( isset( $this->data['search'] ) ) {
-                 ?>value="<?php $this->text('search') ?>"<?php } ?> />
-             <input type='submit' name="go" class="searchButton"
+                 ?> value="<?php $this->text('search') ?>"<?php } ?> />
+             <input type='submit' name="go" class="searchButton" id="searchGoButton"
                value="<?php $this->msg('go') ?>"
                />&nbsp;<input type='submit' name="fulltext"
                class="searchButton"
@@ -195,7 +207,7 @@ class MonoBookTemplate extends QuickTemplate {
   </body>
 </html>
 <?php
+       wfRestoreWarnings();
        }
 }
-
 ?>