|
@@ -31,7 +31,7 @@ discard block |
|
|
block discarded – undo |
|
31
|
31
|
'useAddThisFollow' => '' |
|
32
|
32
|
); |
|
33
|
33
|
foreach ($wgPivotFeaturesDefaults as $fgOption => $fgOptionValue) { |
|
34
|
|
- if ( !isset($wgPivotFeatures[$fgOption]) ) { |
|
|
34
|
+ if ( ! isset($wgPivotFeatures[$fgOption])) { |
|
35
|
35
|
$wgPivotFeatures[$fgOption] = $fgOptionValue; |
|
36
|
36
|
} |
|
37
|
37
|
} |
|
@@ -39,7 +39,7 @@ discard block |
|
|
block discarded – undo |
|
39
|
39
|
$viewport_meta = 'width=device-width, user-scalable=yes, initial-scale=1.0'; |
|
40
|
40
|
$out->addMeta('viewport', $viewport_meta); |
|
41
|
41
|
$out->addModuleScripts('skins.pivot.js'); |
|
42
|
|
- if ( $wgPivotFeatures['preloadFontAwesome'] ) { |
|
|
42
|
+ if ($wgPivotFeatures['preloadFontAwesome']) { |
|
43
|
43
|
$out->addHeadItem('font', '<link rel="preload" href="'.$wgLocalStylePath.'/pivot/assets/fonts/fontawesome-webfont.woff2?v=4.7.0" as="font" type="font/woff2" crossorigin="anonymous" />'); |
|
44
|
44
|
} |
|
45
|
45
|
} |
|
@@ -107,10 +107,10 @@ discard block |
|
|
block discarded – undo |
|
107
|
107
|
<ul class="off-canvas-list"> |
|
108
|
108
|
|
|
109
|
109
|
<li class="has-form"> |
|
110
|
|
- <form action="<?php $this->text( 'wgScript' ); ?>" id="searchform" class="mw-search"> |
|
|
110
|
+ <form action="<?php $this->text('wgScript'); ?>" id="searchform" class="mw-search"> |
|
111
|
111
|
<div class="row collapse"> |
|
112
|
112
|
<div class="small-12 columns"> |
|
113
|
|
- <input type="search" name="search" placeholder="<?php echo wfMessage( 'search' )->text() ?>" title="Search [alt-shift-f]" accesskey="f" id="searchInput-offcanvas" autocomplete="off"> |
|
|
113
|
+ <input type="search" name="search" placeholder="<?php echo wfMessage('search')->text() ?>" title="Search [alt-shift-f]" accesskey="f" id="searchInput-offcanvas" autocomplete="off"> |
|
114
|
114
|
</div> |
|
115
|
115
|
</div> |
|
116
|
116
|
</form> |
|
@@ -127,11 +127,11 @@ discard block |
|
|
block discarded – undo |
|
127
|
127
|
<?php foreach ($this->getPersonalTools() as $key => $item) { echo $this->makeListItem($key, $item); } ?> |
|
128
|
128
|
<?php else: ?> |
|
129
|
129
|
<?php if (isset($this->data['personal_urls']['anonlogin'])): ?> |
|
130
|
|
- <li><a href="<?php echo $this->data['personal_urls']['anonlogin']['href']; ?>"><?php echo wfMessage( 'login' )->text() ?></a></li> |
|
|
130
|
+ <li><a href="<?php echo $this->data['personal_urls']['anonlogin']['href']; ?>"><?php echo wfMessage('login')->text() ?></a></li> |
|
131
|
131
|
<?php elseif (isset($this->data['personal_urls']['login'])): ?> |
|
132
|
|
- <li><a href="<?php echo htmlspecialchars($this->data['personal_urls']['login']['href']); ?>"><?php echo wfMessage( 'login' )->text() ?></a></li> |
|
|
132
|
+ <li><a href="<?php echo htmlspecialchars($this->data['personal_urls']['login']['href']); ?>"><?php echo wfMessage('login')->text() ?></a></li> |
|
133
|
133
|
<?php else: ?> |
|
134
|
|
- <li><?php echo Linker::link(Title::newFromText('Special:UserLogin'), wfMessage( 'login' )->text()); ?></li> |
|
|
134
|
+ <li><?php echo Linker::link(Title::newFromText('Special:UserLogin'), wfMessage('login')->text()); ?></li> |
|
135
|
135
|
<?php endif; ?> |
|
136
|
136
|
<?php endif; ?> |
|
137
|
137
|
</ul> |
|
@@ -152,10 +152,10 @@ discard block |
|
|
block discarded – undo |
|
152
|
152
|
<img alt="<?php echo $this->text('sitename'); ?>" src="<?php echo $this->text('logopath') ?>" style="max-width: 100%;height: auto;display: inline-block; vertical-align: middle;"></a> |
|
153
|
153
|
</li> |
|
154
|
154
|
<li class="has-form"> |
|
155
|
|
- <form action="<?php $this->text( 'wgScript' ); ?>" id="searchform" class="mw-search"> |
|
|
155
|
+ <form action="<?php $this->text('wgScript'); ?>" id="searchform" class="mw-search"> |
|
156
|
156
|
<div class="row collapse"> |
|
157
|
157
|
<div class="small-12 columns"> |
|
158
|
|
- <input type="search" name="search" placeholder="<?php echo wfMessage( 'search' )->text() ?>" title="Search [alt-shift-f]" accesskey="f" id="searchInput" autocomplete="off"> |
|
|
158
|
+ <input type="search" name="search" placeholder="<?php echo wfMessage('search')->text() ?>" title="Search [alt-shift-f]" accesskey="f" id="searchInput" autocomplete="off"> |
|
159
|
159
|
</div> |
|
160
|
160
|
</div> |
|
161
|
161
|
</form> |
|
@@ -180,25 +180,25 @@ discard block |
|
|
block discarded – undo |
|
180
|
180
|
</div> |
|
181
|
181
|
<?php endif; ?> |
|
182
|
182
|
<!--[if lt IE 9]> |
|
183
|
|
- <div id="siteNotice" class="sitenotice"><?php echo $this->text('sitename') . ' '. wfMessage( 'pivot-browsermsg' )->text(); ?></div> |
|
|
183
|
+ <div id="siteNotice" class="sitenotice"><?php echo $this->text('sitename').' '.wfMessage('pivot-browsermsg')->text(); ?></div> |
|
184
|
184
|
<![endif]--> |
|
185
|
185
|
|
|
186
|
|
- <?php if ( $this->data['sitenotice'] ) { ?><div id="siteNotice" class="sitenotice"><?php $this->html( 'sitenotice' ); ?></div><?php } ?> |
|
187
|
|
- <?php if ( $this->data['newtalk'] ) { ?><div id="usermessage" class="newtalk"><?php $this->html( 'newtalk' ); ?></div><?php } ?> |
|
|
186
|
+ <?php if ($this->data['sitenotice']) { ?><div id="siteNotice" class="sitenotice"><?php $this->html('sitenotice'); ?></div><?php } ?> |
|
|
187
|
+ <?php if ($this->data['newtalk']) { ?><div id="usermessage" class="newtalk"><?php $this->html('newtalk'); ?></div><?php } ?> |
|
188
|
188
|
</div> |
|
189
|
189
|
</div> |
|
190
|
190
|
|
|
191
|
191
|
<?php if ($wgUser->isLoggedIn() || $wgPivotFeatures['showActionsForAnon']): ?> |
|
192
|
|
- <a href="#" data-options="align:left" data-dropdown="drop1" class="button secondary small radius pull-right hide-for-print" id="drop"><i class="fa fa-navicon fa-lg"><span id="page-actions" class="show-for-medium-up"> <?php echo wfMessage( 'actions' )->text() ?></span></i></a> |
|
|
192
|
+ <a href="#" data-options="align:left" data-dropdown="drop1" class="button secondary small radius pull-right hide-for-print" id="drop"><i class="fa fa-navicon fa-lg"><span id="page-actions" class="show-for-medium-up"> <?php echo wfMessage('actions')->text() ?></span></i></a> |
|
193
|
193
|
<ul id="drop1" class="tiny content f-dropdown" data-dropdown-content> |
|
194
|
|
- <?php foreach($this->data['content_actions'] as $key => $tab) { echo preg_replace(array('/\sprimary="1"/', '/\scontext="[a-z]+"/', '/\srel="archives"/'),'',$this->makeListItem($key, $tab)); } ?> |
|
195
|
|
- <?php wfRunHooks( 'SkinTemplateToolboxEnd', array( &$this, true )); ?> |
|
|
194
|
+ <?php foreach ($this->data['content_actions'] as $key => $tab) { echo preg_replace(array('/\sprimary="1"/', '/\scontext="[a-z]+"/', '/\srel="archives"/'), '', $this->makeListItem($key, $tab)); } ?> |
|
|
195
|
+ <?php wfRunHooks('SkinTemplateToolboxEnd', array(&$this, true)); ?> |
|
196
|
196
|
</ul> |
|
197
|
197
|
|
|
198
|
198
|
<?php endif; |
|
199
|
199
|
$namespace = str_replace('_', ' ', $this->getSkin()->getTitle()->getNsText()); |
|
200
|
200
|
$displaytitle = $this->data['title']; |
|
201
|
|
- if (!empty($namespace)) { |
|
|
201
|
+ if ( ! empty($namespace)) { |
|
202
|
202
|
$pagetitle = $this->getSkin()->getTitle(); |
|
203
|
203
|
$newtitle = str_replace($namespace.':', '', $pagetitle); |
|
204
|
204
|
$displaytitle = str_replace($pagetitle, $newtitle, $displaytitle); |
|
@@ -210,8 +210,8 @@ discard block |
|
|
block discarded – undo |
|
210
|
210
|
<div class="<?php echo $wgPivotFeatures['useAddThisShare']; ?> hide-for-print"></div> |
|
211
|
211
|
<!-- Go to www.addthis.com/dashboard to customize your tools --> |
|
212
|
212
|
<?php } ?> |
|
213
|
|
- <?php if ( $this->data['isarticle'] ) { ?><h3 id="tagline"><?php $this->msg( 'tagline' ) ?></h3><?php } ?> |
|
214
|
|
- <?php if ( $this->html('subtitle') ) { ?><h5 id="sitesub" class="subtitle"><?php $this->html('subtitle') ?></h5><?php } ?> |
|
|
213
|
+ <?php if ($this->data['isarticle']) { ?><h3 id="tagline"><?php $this->msg('tagline') ?></h3><?php } ?> |
|
|
214
|
+ <?php if ($this->html('subtitle')) { ?><h5 id="sitesub" class="subtitle"><?php $this->html('subtitle') ?></h5><?php } ?> |
|
215
|
215
|
<div id="contentSub" class="clear_both"></div> |
|
216
|
216
|
<div id="bodyContent" class="mw-bodytext"> |
|
217
|
217
|
<?php |
|
@@ -294,11 +294,11 @@ discard block |
|
|
block discarded – undo |
|
294
|
294
|
function renderSidebar() { |
|
295
|
295
|
$sidebar = $this->getSidebar(); |
|
296
|
296
|
foreach ($sidebar as $boxName => $box) { |
|
297
|
|
- echo '<li><label class="sidebar" id="'.Sanitizer::escapeId( $box['id'] ).'"';echo Linker::tooltip( $box['id'] ).'>'.htmlspecialchars( $box['header'] ).'</label></li>'; |
|
298
|
|
- if ( is_array( $box['content'] ) ) { |
|
|
297
|
+ echo '<li><label class="sidebar" id="'.Sanitizer::escapeId($box['id']).'"'; echo Linker::tooltip($box['id']).'>'.htmlspecialchars($box['header']).'</label></li>'; |
|
|
298
|
+ if (is_array($box['content'])) { |
|
299
|
299
|
foreach ($box['content'] as $key => $item) { echo $this->makeListItem($key, $item); } |
|
300
|
300
|
} |
|
301
|
301
|
} |
|
302
|
|
- return; } |
|
|
302
|
+ return; } |
|
303
|
303
|
} |
|
304
|
304
|
?> |
|
305
|
305
|
\ No newline at end of file |