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
|
||||
.*.swp
|
||||
.idea
|
||||
|
||||
@@ -53,7 +53,6 @@ class UniversalLanguageSelectorHooks {
|
||||
*/
|
||||
static function addTrigger( array &$personal_urls, &$title ) {
|
||||
global $wgLang;
|
||||
$tabindex = 2;
|
||||
$personal_urls = array( 'uls'=> array(
|
||||
'text' => $wgLang->getLanguageName( $wgLang->getCode() ),
|
||||
'href' => '#',
|
||||
@@ -119,7 +118,7 @@ class UniversalLanguageSelectorHooks {
|
||||
</div>
|
||||
<div class='row'>
|
||||
<div class='four columns'>
|
||||
<h1>" . wfMsgHtml( 'uls-select-content-language' ) . "</h1>
|
||||
<h1>" . $skin->msg( 'uls-select-content-language' )->escaped() . "</h1>
|
||||
</div>
|
||||
<div class='three columns' id='settings-block'></div>
|
||||
<div class='five columns' id='map-block'>
|
||||
|
||||
@@ -64,7 +64,6 @@ class LanguageNameSearch {
|
||||
* @return integer Code point of first letter of string
|
||||
*/
|
||||
static function getCodepoint( $str ) {
|
||||
$unicode = array();
|
||||
$values = array();
|
||||
$lookingFor = 1;
|
||||
for ( $i = 0; $i < strlen( $str ); $i++ ) {
|
||||
@@ -104,7 +103,6 @@ class LanguageNameSearch {
|
||||
return 0;
|
||||
}
|
||||
$prevRow = range( 0, $length2 );
|
||||
$currentRow = array();
|
||||
for ( $i = 0; $i < $length1; $i++ ) {
|
||||
$currentRow = array();
|
||||
$currentRow[0] = $i + 1;
|
||||
|
||||
@@ -43,7 +43,7 @@
|
||||
font-size: 16pt;
|
||||
line-height: 1.5em;
|
||||
padding-left: 6px;
|
||||
margin-top: 0px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 15px;
|
||||
border-bottom: none;
|
||||
color: #555;
|
||||
@@ -51,8 +51,8 @@
|
||||
.uls-menu h3 {
|
||||
font-size: 14pt;
|
||||
line-height: 1.5em;
|
||||
padding-left: 0px;
|
||||
margin-top: 0px;
|
||||
padding-left: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: none;
|
||||
}
|
||||
@@ -66,8 +66,8 @@
|
||||
/* @noflip */
|
||||
float: left !important;
|
||||
cursor: pointer;
|
||||
padding: 0px;
|
||||
margin: 0px;
|
||||
padding: 0;
|
||||
margin: 0;
|
||||
height: 125px;
|
||||
border-bottom-color: #555;
|
||||
border-bottom-style: solid;
|
||||
@@ -102,7 +102,7 @@
|
||||
#map-block {
|
||||
top: 1px;
|
||||
margin-right: 0;
|
||||
padding-right: 0px;
|
||||
padding-right: 0;
|
||||
float: right;
|
||||
overflow: hidden;
|
||||
}
|
||||
@@ -161,8 +161,8 @@ span#languagefilter-clear {
|
||||
|
||||
.filterinput {
|
||||
position: absolute;
|
||||
top: 0px;
|
||||
left: 0px;
|
||||
top: 0;
|
||||
left: 0;
|
||||
font-size: 14px;
|
||||
height: 32px;
|
||||
padding: 6px;
|
||||
|
||||
@@ -13,8 +13,7 @@
|
||||
}
|
||||
|
||||
.uls-language-block ul {
|
||||
margin: 0px;
|
||||
margin-bottom: 1.6em;
|
||||
margin: 0px 0px 1.6em;
|
||||
}
|
||||
.uls-language-list ul li {
|
||||
font-weight: normal;
|
||||
|
||||
@@ -24,7 +24,7 @@
|
||||
font-size: 16pt;
|
||||
line-height: 1.5em;
|
||||
padding-left: 6px;
|
||||
margin-top: 0px;
|
||||
margin-top: 0;
|
||||
margin-bottom: 15px;
|
||||
border-bottom: none;
|
||||
color: #777;
|
||||
@@ -33,8 +33,8 @@
|
||||
.uls-menu h3 {
|
||||
font-size: 14pt;
|
||||
line-height: 1.5em;
|
||||
padding-left: 0px;
|
||||
margin-top: 0px;
|
||||
padding-left: 0;
|
||||
margin-top: 0;
|
||||
margin-bottom: 10px;
|
||||
border-bottom: none;
|
||||
}
|
||||
|
||||
@@ -5,12 +5,10 @@ div#settings-block {
|
||||
|
||||
div#display-settings-block {
|
||||
/* @embed */
|
||||
background: url('../images/display.png');
|
||||
background-repeat: no-repeat;
|
||||
background: #F6F6F6 url('../images/display.png') no-repeat;
|
||||
background-size: 20px auto;
|
||||
padding-left: 25px;
|
||||
cursor: pointer;
|
||||
background-color: #F6F6F6;
|
||||
}
|
||||
|
||||
.settings-title {
|
||||
|
||||
@@ -30,7 +30,7 @@
|
||||
+ '<div class="row"><h4>Font Settings</h4></div>'
|
||||
+ '<div class="row">'
|
||||
+ '<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. '
|
||||
+ '<a href="#">More Information</a>'
|
||||
+ '</span></label>'
|
||||
|
||||
Reference in New Issue
Block a user