Fix some issues pointed out by IDE.
* Update .gitignore to ignore .idea. * Removed unused local variables. * use local context and Message class instead of deprecated wfMsg* methods. * Remove redundant px in CSS where possible. * Combine CSS statements where possible. * Replace b by strong. Change-Id: I9d5ed7b7ce585a1c101044254bcbdfc33d42afc1
This commit is contained in:
1
.gitignore
vendored
1
.gitignore
vendored
@@ -2,3 +2,4 @@
|
|||||||
*~
|
*~
|
||||||
*.kate-swp
|
*.kate-swp
|
||||||
.*.swp
|
.*.swp
|
||||||
|
.idea
|
||||||
|
|||||||
@@ -53,7 +53,6 @@ class UniversalLanguageSelectorHooks {
|
|||||||
*/
|
*/
|
||||||
static function addTrigger( array &$personal_urls, &$title ) {
|
static function addTrigger( array &$personal_urls, &$title ) {
|
||||||
global $wgLang;
|
global $wgLang;
|
||||||
$tabindex = 2;
|
|
||||||
$personal_urls = array( 'uls'=> array(
|
$personal_urls = array( 'uls'=> array(
|
||||||
'text' => $wgLang->getLanguageName( $wgLang->getCode() ),
|
'text' => $wgLang->getLanguageName( $wgLang->getCode() ),
|
||||||
'href' => '#',
|
'href' => '#',
|
||||||
@@ -119,7 +118,7 @@ class UniversalLanguageSelectorHooks {
|
|||||||
</div>
|
</div>
|
||||||
<div class='row'>
|
<div class='row'>
|
||||||
<div class='four columns'>
|
<div class='four columns'>
|
||||||
<h1>" . wfMsgHtml( 'uls-select-content-language' ) . "</h1>
|
<h1>" . $skin->msg( 'uls-select-content-language' )->escaped() . "</h1>
|
||||||
</div>
|
</div>
|
||||||
<div class='three columns' id='settings-block'></div>
|
<div class='three columns' id='settings-block'></div>
|
||||||
<div class='five columns' id='map-block'>
|
<div class='five columns' id='map-block'>
|
||||||
|
|||||||
@@ -64,7 +64,6 @@ class LanguageNameSearch {
|
|||||||
* @return integer Code point of first letter of string
|
* @return integer Code point of first letter of string
|
||||||
*/
|
*/
|
||||||
static function getCodepoint( $str ) {
|
static function getCodepoint( $str ) {
|
||||||
$unicode = array();
|
|
||||||
$values = array();
|
$values = array();
|
||||||
$lookingFor = 1;
|
$lookingFor = 1;
|
||||||
for ( $i = 0; $i < strlen( $str ); $i++ ) {
|
for ( $i = 0; $i < strlen( $str ); $i++ ) {
|
||||||
@@ -104,7 +103,6 @@ class LanguageNameSearch {
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
$prevRow = range( 0, $length2 );
|
$prevRow = range( 0, $length2 );
|
||||||
$currentRow = array();
|
|
||||||
for ( $i = 0; $i < $length1; $i++ ) {
|
for ( $i = 0; $i < $length1; $i++ ) {
|
||||||
$currentRow = array();
|
$currentRow = array();
|
||||||
$currentRow[0] = $i + 1;
|
$currentRow[0] = $i + 1;
|
||||||
|
|||||||
@@ -43,7 +43,7 @@
|
|||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
margin-top: 0px;
|
margin-top: 0;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
color: #555;
|
color: #555;
|
||||||
@@ -51,8 +51,8 @@
|
|||||||
.uls-menu h3 {
|
.uls-menu h3 {
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
padding-left: 0px;
|
padding-left: 0;
|
||||||
margin-top: 0px;
|
margin-top: 0;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
@@ -66,8 +66,8 @@
|
|||||||
/* @noflip */
|
/* @noflip */
|
||||||
float: left !important;
|
float: left !important;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
padding: 0px;
|
padding: 0;
|
||||||
margin: 0px;
|
margin: 0;
|
||||||
height: 125px;
|
height: 125px;
|
||||||
border-bottom-color: #555;
|
border-bottom-color: #555;
|
||||||
border-bottom-style: solid;
|
border-bottom-style: solid;
|
||||||
@@ -102,7 +102,7 @@
|
|||||||
#map-block {
|
#map-block {
|
||||||
top: 1px;
|
top: 1px;
|
||||||
margin-right: 0;
|
margin-right: 0;
|
||||||
padding-right: 0px;
|
padding-right: 0;
|
||||||
float: right;
|
float: right;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
@@ -161,8 +161,8 @@ span#languagefilter-clear {
|
|||||||
|
|
||||||
.filterinput {
|
.filterinput {
|
||||||
position: absolute;
|
position: absolute;
|
||||||
top: 0px;
|
top: 0;
|
||||||
left: 0px;
|
left: 0;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
height: 32px;
|
height: 32px;
|
||||||
padding: 6px;
|
padding: 6px;
|
||||||
|
|||||||
@@ -13,8 +13,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.uls-language-block ul {
|
.uls-language-block ul {
|
||||||
margin: 0px;
|
margin: 0px 0px 1.6em;
|
||||||
margin-bottom: 1.6em;
|
|
||||||
}
|
}
|
||||||
.uls-language-list ul li {
|
.uls-language-list ul li {
|
||||||
font-weight: normal;
|
font-weight: normal;
|
||||||
|
|||||||
@@ -24,7 +24,7 @@
|
|||||||
font-size: 16pt;
|
font-size: 16pt;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
padding-left: 6px;
|
padding-left: 6px;
|
||||||
margin-top: 0px;
|
margin-top: 0;
|
||||||
margin-bottom: 15px;
|
margin-bottom: 15px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
color: #777;
|
color: #777;
|
||||||
@@ -33,8 +33,8 @@
|
|||||||
.uls-menu h3 {
|
.uls-menu h3 {
|
||||||
font-size: 14pt;
|
font-size: 14pt;
|
||||||
line-height: 1.5em;
|
line-height: 1.5em;
|
||||||
padding-left: 0px;
|
padding-left: 0;
|
||||||
margin-top: 0px;
|
margin-top: 0;
|
||||||
margin-bottom: 10px;
|
margin-bottom: 10px;
|
||||||
border-bottom: none;
|
border-bottom: none;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -5,12 +5,10 @@ div#settings-block {
|
|||||||
|
|
||||||
div#display-settings-block {
|
div#display-settings-block {
|
||||||
/* @embed */
|
/* @embed */
|
||||||
background: url('../images/display.png');
|
background: #F6F6F6 url('../images/display.png') no-repeat;
|
||||||
background-repeat: no-repeat;
|
|
||||||
background-size: 20px auto;
|
background-size: 20px auto;
|
||||||
padding-left: 25px;
|
padding-left: 25px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
background-color: #F6F6F6;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.settings-title {
|
.settings-title {
|
||||||
|
|||||||
@@ -30,7 +30,7 @@
|
|||||||
+ '<div class="row"><h4>Font Settings</h4></div>'
|
+ '<div class="row"><h4>Font Settings</h4></div>'
|
||||||
+ '<div class="row">'
|
+ '<div class="row">'
|
||||||
+ '<label class="checkbox"><input type="checkbox" checked id="webfonts-enable-checkbox" />'
|
+ '<label class="checkbox"><input type="checkbox" checked id="webfonts-enable-checkbox" />'
|
||||||
+ '<b>Download fonts automatically when needed</b> '
|
+ '<strong>Download fonts automatically when needed</strong> '
|
||||||
+ 'Web fonts will be downloaded when text in special scripts is displayed. '
|
+ 'Web fonts will be downloaded when text in special scripts is displayed. '
|
||||||
+ '<a href="#">More Information</a>'
|
+ '<a href="#">More Information</a>'
|
||||||
+ '</span></label>'
|
+ '</span></label>'
|
||||||
|
|||||||
Reference in New Issue
Block a user