X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSkin.php;h=6722ccabd1b3e954708ebbb9e19237b3aecf842b;hb=073c4bf16f8d62aaebd44c7b6e6e6ac29d5f8e5b;hp=946e698349026c929383cc5d4ff71162145112e8;hpb=00caf71094a7b513f1b12f28bf7ac600117a413f;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/Skin.php b/includes/Skin.php index 946e698349..6722ccabd1 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -453,6 +453,19 @@ abstract class Skin extends ContextSource { return "$numeric $type $name"; } + /* + * Return values for element + * @return array of associative name-to-value elements for element + */ + public function getHtmlElementAttributes() { + $lang = $this->getLanguage(); + return array( + 'lang' => $lang->getHtmlCode(), + 'dir' => $lang->getDir(), + 'class' => 'client-nojs', + ); + } + /** * This will be called by OutputPage::headElement when it is creating the * "" tag, skins can override it if they have a need to add in any