Bene has uploaded a new change for review.
https://gerrit.wikimedia.org/r/111159
Change subject: Add title to list item of language link
......................................................................
Add title to list item of language link
The key itemtitle can be used to set the title of the actual list item
element. This is useful for article badges as it is already done by the js
hack to add a title for the icon.
Bug: 60717
Change-Id: Ic05c7535d7a35d9ee523373e1e3620e72887459d
---
M includes/SkinTemplate.php
1 file changed, 3 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/59/111159/1
diff --git a/includes/SkinTemplate.php b/includes/SkinTemplate.php
index 35183ce..a8846df 100644
--- a/includes/SkinTemplate.php
+++ b/includes/SkinTemplate.php
@@ -1894,6 +1894,9 @@
$attrs['class'] .= ' active';
$attrs['class'] = trim( $attrs['class'] );
}
+ if ( isset( $item['itemtitle'] ) ) {
+ $attrs['title'] = $item['itemtitle'];
+ }
return Html::rawElement( isset( $options['tag'] ) ?
$options['tag'] : 'li', $attrs, $html );
}
--
To view, visit https://gerrit.wikimedia.org/r/111159
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ic05c7535d7a35d9ee523373e1e3620e72887459d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Bene <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits