Random coding style tweaks + documentation clarification
Change-Id: I3d7946507bd489edf248c201877fab580875ed68
This commit is contained in:
parent
453d39b13a
commit
dd1cb0dfad
1 changed files with 15 additions and 17 deletions
|
@ -101,8 +101,7 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
<!-- end content -->
|
<!-- end content -->
|
||||||
<?php
|
<?php
|
||||||
if ( $this->data['dataAfterContent'] ) {
|
if ( $this->data['dataAfterContent'] ) {
|
||||||
$this->html( 'dataAfterContent'
|
$this->html( 'dataAfterContent' );
|
||||||
);
|
|
||||||
}
|
}
|
||||||
?>
|
?>
|
||||||
<div class="visualClear"></div>
|
<div class="visualClear"></div>
|
||||||
|
@ -132,7 +131,6 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
echo Html::rawElement( 'li', array(
|
echo Html::rawElement( 'li', array(
|
||||||
'id' => 'pt-anonuserpage'
|
'id' => 'pt-anonuserpage'
|
||||||
), $this->getMsg( 'notloggedin' )->escaped() );
|
), $this->getMsg( 'notloggedin' )->escaped() );
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach ( $personalTools as $key => $item ) { ?>
|
foreach ( $personalTools as $key => $item ) { ?>
|
||||||
|
@ -160,8 +158,8 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
</div><!-- end of the left (by default at least) column -->
|
</div><!-- end of the left (by default at least) column -->
|
||||||
<div class="visualClear"></div>
|
<div class="visualClear"></div>
|
||||||
<?php
|
<?php
|
||||||
$validFooterIcons = $this->getFooterIcons( "icononly" );
|
$validFooterIcons = $this->getFooterIcons( 'icononly' );
|
||||||
$validFooterLinks = $this->getFooterLinks( "flat" ); // Additional footer links
|
$validFooterLinks = $this->getFooterLinks( 'flat' ); // Additional footer links
|
||||||
|
|
||||||
if ( count( $validFooterIcons ) + count( $validFooterLinks ) > 0 ) {
|
if ( count( $validFooterIcons ) + count( $validFooterLinks ) > 0 ) {
|
||||||
?>
|
?>
|
||||||
|
@ -254,20 +252,20 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
|
|
||||||
<div id="searchBody" class="pBody">
|
<div id="searchBody" class="pBody">
|
||||||
<form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
|
<form action="<?php $this->text( 'wgScript' ) ?>" id="searchform">
|
||||||
<input type='hidden' name="title" value="<?php $this->text( 'searchtitle' ) ?>"/>
|
<input type="hidden" name="title" value="<?php $this->text( 'searchtitle' ) ?>"/>
|
||||||
<?php echo $this->makeSearchInput( array( "id" => "searchInput" ) ); ?>
|
<?php echo $this->makeSearchInput( array( 'id' => 'searchInput' ) ); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
echo $this->makeSearchButton(
|
echo $this->makeSearchButton(
|
||||||
"go",
|
'go',
|
||||||
array( "id" => "searchGoButton", "class" => "searchButton" )
|
array( 'id' => 'searchGoButton', 'class' => 'searchButton' )
|
||||||
);
|
);
|
||||||
|
|
||||||
if ( $this->config->get( 'UseTwoButtonsSearchForm' ) ) {
|
if ( $this->config->get( 'UseTwoButtonsSearchForm' ) ) {
|
||||||
?> 
|
?> 
|
||||||
<?php echo $this->makeSearchButton(
|
<?php echo $this->makeSearchButton(
|
||||||
"fulltext",
|
'fulltext',
|
||||||
array( "id" => "mw-searchButton", "class" => "searchButton" )
|
array( 'id' => 'mw-searchButton', 'class' => 'searchButton' )
|
||||||
);
|
);
|
||||||
} else {
|
} else {
|
||||||
?>
|
?>
|
||||||
|
@ -286,7 +284,7 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Prints the cactions bar.
|
* Prints the content actions (cactions) bar.
|
||||||
* Shared between MonoBook and Modern
|
* Shared between MonoBook and Modern
|
||||||
*/
|
*/
|
||||||
function cactions() {
|
function cactions() {
|
||||||
|
@ -342,8 +340,8 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
|
|
||||||
<div class="pBody">
|
<div class="pBody">
|
||||||
<ul>
|
<ul>
|
||||||
<?php foreach ( $this->data['language_urls'] as $key => $langlink ) { ?>
|
<?php foreach ( $this->data['language_urls'] as $key => $langLink ) { ?>
|
||||||
<?php echo $this->makeListItem( $key, $langlink ); ?>
|
<?php echo $this->makeListItem( $key, $langLink ); ?>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
}
|
}
|
||||||
|
@ -378,7 +376,7 @@ class MonoBookTemplate extends BaseTemplate {
|
||||||
?>
|
?>
|
||||||
|
|
||||||
<h3><?php echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $bar ); ?></h3>
|
<h3><?php echo htmlspecialchars( $msgObj->exists() ? $msgObj->text() : $bar ); ?></h3>
|
||||||
<div class='pBody'>
|
<div class="pBody">
|
||||||
<?php
|
<?php
|
||||||
if ( is_array( $cont ) ) {
|
if ( is_array( $cont ) ) {
|
||||||
?>
|
?>
|
||||||
|
|
Loading…
Reference in a new issue