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