MediaWiki
REL1_21
|
00001 <?php 00025 if( !defined( 'MEDIAWIKI' ) ) 00026 die( -1 ); 00027 00033 class SkinModern extends SkinTemplate { 00034 var $skinname = 'modern', $stylename = 'modern', 00035 $template = 'ModernTemplate', $useHeadElement = true; 00036 00040 function setupSkinUserCss( OutputPage $out ) { 00041 parent::setupSkinUserCss( $out ); 00042 $out->addModuleStyles ('skins.modern'); 00043 } 00044 } 00045 00050 class ModernTemplate extends MonoBookTemplate { 00051 00060 function execute() { 00061 // Suppress warnings to prevent notices about missing indexes in $this->data 00062 wfSuppressWarnings(); 00063 00064 $this->html( 'headelement' ); 00065 ?> 00066 00067 <!-- heading --> 00068 <div id="mw_header"><h1 id="firstHeading" lang="<?php 00069 $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getCode(); 00070 $this->html( 'pageLanguage' ); 00071 ?>"><span dir="auto"><?php $this->html('title') ?></span></h1></div> 00072 00073 <div id="mw_main"> 00074 <div id="mw_contentwrapper"> 00075 <!-- navigation portlet --> 00076 <?php $this->cactions(); ?> 00077 00078 <!-- content --> 00079 <div id="mw_content" role="main"> 00080 <!-- contentholder does nothing by default, but it allows users to style the text inside 00081 the content area without affecting the meaning of 'em' in #mw_content, which is used 00082 for the margins --> 00083 <div id="mw_contentholder" class="mw-body"> 00084 <div class='mw-topboxes'> 00085 <div id="mw-js-message" style="display:none;"<?php $this->html('userlangattributes')?>></div> 00086 <div class="mw-topbox" id="siteSub"><?php $this->msg('tagline') ?></div> 00087 <?php if($this->data['newtalk'] ) { 00088 ?><div class="usermessage mw-topbox"><?php $this->html('newtalk') ?></div> 00089 <?php } ?> 00090 <?php if($this->data['sitenotice']) { 00091 ?><div class="mw-topbox" id="siteNotice"><?php $this->html('sitenotice') ?></div> 00092 <?php } ?> 00093 </div> 00094 00095 <div id="contentSub"<?php $this->html('userlangattributes') ?>><?php $this->html('subtitle') ?></div> 00096 00097 <?php if($this->data['undelete']) { ?><div id="contentSub2"><?php $this->html('undelete') ?></div><?php } ?> 00098 <?php if($this->data['showjumplinks']) { ?><div id="jump-to-nav"><?php $this->msg('jumpto') ?> <a href="#mw_portlets"><?php $this->msg('jumptonavigation') ?></a><?php $this->msg( 'comma-separator' ) ?><a href="#searchInput"><?php $this->msg('jumptosearch') ?></a></div><?php } ?> 00099 00100 <?php $this->html('bodytext') ?> 00101 <div class='mw_clear'></div> 00102 <?php if($this->data['catlinks']) { $this->html('catlinks'); } ?> 00103 <?php $this->html ('dataAfterContent') ?> 00104 </div><!-- mw_contentholder --> 00105 </div><!-- mw_content --> 00106 </div><!-- mw_contentwrapper --> 00107 00108 <div id="mw_portlets"<?php $this->html("userlangattributes") ?>> 00109 <h2><?php $this->msg( 'navigation-heading' ) ?></h2> 00110 00111 <!-- portlets --> 00112 <?php $this->renderPortals( $this->data['sidebar'] ); ?> 00113 00114 </div><!-- mw_portlets --> 00115 00116 00117 </div><!-- main --> 00118 00119 <div class="mw_clear"></div> 00120 00121 <!-- personal portlet --> 00122 <div class="portlet" id="p-personal" role="navigation"> 00123 <h3><?php $this->msg('personaltools') ?></h3> 00124 <div class="pBody"> 00125 <ul> 00126 <?php foreach($this->getPersonalTools() as $key => $item) { ?> 00127 <?php echo $this->makeListItem($key, $item); ?> 00128 00129 <?php } ?> 00130 </ul> 00131 </div> 00132 </div> 00133 00134 00135 <!-- footer --> 00136 <div id="footer" role="contentinfo"<?php $this->html('userlangattributes') ?>> 00137 <ul id="f-list"> 00138 <?php 00139 foreach( $this->getFooterLinks("flat") as $aLink ) { 00140 if( isset( $this->data[$aLink] ) && $this->data[$aLink] ) { 00141 ?> <li id="<?php echo$aLink?>"><?php $this->html($aLink) ?></li> 00142 <?php } 00143 } 00144 ?> 00145 </ul> 00146 <?php 00147 foreach ( $this->getFooterIcons("nocopyright") as $blockName => $footerIcons ) { ?> 00148 <div id="mw_<?php echo htmlspecialchars($blockName); ?>"> 00149 <?php 00150 foreach ( $footerIcons as $icon ) { ?> 00151 <?php echo $this->getSkin()->makeFooterIcon( $icon, 'withoutImage' ); ?> 00152 00153 <?php 00154 } ?> 00155 </div> 00156 <?php 00157 } 00158 ?> 00159 </div> 00160 00161 <?php $this->printTrail(); ?> 00162 </body></html> 00163 <?php 00164 wfRestoreWarnings(); 00165 } // end of execute() method 00166 } // end of class 00167 00168