Support "rel" attributes on content action links (e.g. rel=archives)

MediaWiki has provided rel=archives for the History link since v1.15.0
(Introduced in r45988 / 4299d27956.). However Vector never used that
property until now.

Change-Id: I398828b62795955a73823decf00fdbf8496aaeca
This commit is contained in:
Matěj Grabovský 2015-02-01 18:56:43 +01:00 committed by Krinkle
parent 3274f57b10
commit fab055d6a1
1 changed files with 4 additions and 1 deletions

View File

@ -469,7 +469,10 @@ class VectorTemplate extends BaseTemplate {
?>><span><a href="<?php
echo htmlspecialchars( $link['href'] )
?>" <?php
echo $link['key']
echo $link['key'];
if ( isset ( $link['rel'] ) ) {
echo ' rel="' . htmlspecialchars( $link['rel'] ) . '"';
}
?>><?php
// $link['text'] can be undefined - bug 27764
if ( array_key_exists( 'text', $link ) ) {