MediaWiki REL1_30
SkinModern.php
Go to the documentation of this file.
1<?php
25if ( !defined( 'MEDIAWIKI' ) ) {
26 die( -1 );
27}
28
34class SkinModern extends SkinTemplate {
35 public $skinname = 'modern';
36 public $template = 'ModernTemplate';
37
42 parent::setupSkinUserCss( $out );
43 $out->addModuleStyles( 'skins.modern' );
44 }
45}
46
52
59 function execute() {
60 $this->html( 'headelement' );
61 ?>
62
63 <!-- heading -->
64 <div id="mw_header">
65 <?php echo $this->getIndicators(); ?>
66 <h1 id="firstHeading" lang="<?php
67 $this->data['pageLanguage'] = $this->getSkin()->getTitle()->getPageViewLanguage()->getHtmlCode();
68 $this->text( 'pageLanguage' );
69 ?>"><?php $this->html( 'title' ) ?></h1>
70 </div>
71
72 <div id="mw_main">
73 <div id="mw_contentwrapper">
74 <!-- navigation portlet -->
75 <?php $this->cactions(); ?>
76
77 <!-- content -->
78 <div id="mw_content" role="main">
79 <!-- contentholder does nothing by default, but it allows users to style the text inside
80 the content area without affecting the meaning of 'em' in #mw_content, which is used
81 for the margins -->
82 <div id="mw_contentholder" class="mw-body">
83 <div class='mw-topboxes'>
84 <div id="mw-js-message"
85 style="display:none;"<?php $this->html( 'userlangattributes' ) ?>></div>
86 <div class="mw-topbox" id="siteSub"><?php $this->msg( 'tagline' ) ?></div>
87 <?php
88 if ( $this->data['newtalk'] ) {
89 ?>
90 <div class="usermessage mw-topbox"><?php $this->html( 'newtalk' ) ?></div>
91 <?php
92 }
93 ?>
94 <?php
95 if ( $this->data['sitenotice'] ) {
96 ?>
97 <div class="mw-topbox" id="siteNotice"><?php $this->html( 'sitenotice' ) ?></div>
98 <?php
99 }
100 ?>
101 </div>
102
103 <div id="contentSub"<?php
104 $this->html( 'userlangattributes' )
105 ?>><?php
106 $this->html( 'subtitle' )
107 ?></div>
108
109 <?php
110 if ( $this->data['undelete'] ) {
111 ?>
112 <div id="contentSub2"><?php $this->html( 'undelete' ) ?></div><?php
113 }
114 ?>
115 <div id="jump-to-nav"><?php $this->msg( 'jumpto' ) ?>
116 <a href="#mw_portlets"><?php
117 $this->msg( 'jumptonavigation' ) ?></a><?php $this->msg( 'comma-separator' )
118 ?>
119 <a href="#searchInput"><?php $this->msg( 'jumptosearch' ) ?></a>
120 </div>
121
122 <?php $this->html( 'bodytext' ) ?>
123 <div class='mw_clear'></div>
124 <?php
125 if ( $this->data['catlinks'] ) {
126 $this->html( 'catlinks' );
127 }
128 ?>
129 <?php $this->html( 'dataAfterContent' ) ?>
130 </div><!-- mw_contentholder -->
131 </div><!-- mw_content -->
132 </div><!-- mw_contentwrapper -->
133
134 <div id="mw_portlets"<?php $this->html( "userlangattributes" ) ?>>
135 <h2><?php $this->msg( 'navigation-heading' ) ?></h2>
136
137 <!-- portlets -->
138 <?php $this->renderPortals( $this->data['sidebar'] ); ?>
139
140 </div><!-- mw_portlets -->
141
142
143 </div><!-- main -->
144
145 <div class="mw_clear"></div>
146
147 <!-- personal portlet -->
148 <div class="portlet" id="p-personal" role="navigation">
149 <h3><?php $this->msg( 'personaltools' ) ?></h3>
150
151 <div class="pBody">
152 <ul>
153 <?php
154 foreach ( $this->getPersonalTools() as $key => $item ) {
155 ?>
156 <?php echo $this->makeListItem( $key, $item ); ?>
157
158 <?php
159 }
160 ?>
161 </ul>
162 </div>
163 </div>
164
165
166 <!-- footer -->
167 <div id="footer" role="contentinfo"<?php $this->html( 'userlangattributes' ) ?>>
168 <ul id="f-list">
169 <?php
170 foreach ( $this->getFooterLinks( "flat" ) as $aLink ) {
171 if ( isset( $this->data[$aLink] ) && $this->data[$aLink] ) {
172 ?>
173 <li id="<?php echo $aLink ?>"><?php $this->html( $aLink ) ?></li>
174 <?php
175 }
176 }
177 ?>
178 </ul>
179 <?php
180 foreach ( $this->getFooterIcons( "nocopyright" ) as $blockName => $footerIcons ) {
181 ?>
182 <div id="mw_<?php echo htmlspecialchars( $blockName ); ?>">
183 <?php
184 foreach ( $footerIcons as $icon ) {
185 ?>
186 <?php echo $this->getSkin()->makeFooterIcon( $icon, 'withoutImage' ); ?>
187
188 <?php
189 } ?>
190 </div>
191 <?php
192 }
193 ?>
194 </div>
195
196 <?php $this->printTrail(); ?>
197
198 </body>
199</html>
200 <?php
201 }
202}
shown</td >< td > a href
getFooterLinks( $option=null)
Returns an array of footerlinks trimmed down to only those footer links that are valid.
printTrail()
Output getTrail.
getPersonalTools()
Create an array of personal tools items from the data in the quicktemplate stored by SkinTemplate.
getFooterIcons( $option=null)
Returns an array of footer icons filtered down by options relevant to how the skin wishes to display ...
makeListItem( $key, $item, $options=[])
Generates a list item for a navigation, portlet, portal, sidebar... list.
getIndicators()
Get the suggested HTML for page status indicators: icons (or short text snippets) usually displayed i...
execute()
Template filter callback for Modern skin.
cactions()
Prints the content actions (cactions) bar.
This class should be covered by a general architecture document which does not exist as of January 20...
getSkin()
Get the Skin object related to this object.
Inherit main code from SkinTemplate, set the CSS and template filter.
setupSkinUserCss(OutputPage $out)
Base class for template-based skins.
this hook is for auditing only or null if authentication failed before getting that far or null if we can t even determine that probably a stub it is not rendered in wiki pages or galleries in category pages allow injecting custom HTML after the section Any uses of the hook need to handle escaping see BaseTemplate::getToolbox and BaseTemplate::makeListItem for details on the format of individual items inside of this array or by returning and letting standard HTTP rendering take place modifiable or by returning false and taking over the output $out
Definition hooks.txt:862
This document describes the XML format used to represent information about external sites known to a MediaWiki installation This information about external sites is used to allow inter wiki cross language navigation
Definition sitelist.txt:3
Bar style