/***************************************************************************\
* SPIP, Systeme de publication pour l'internet *
* *
- * Copyright (c) 2001-2011 *
+ * Copyright (c) 2001-2014 *
* Arnaud Martin, Antoine Pitrou, Philippe Riviere, Emmanuel Saint-James *
* *
* Ce programme est un logiciel libre distribue sous licence GNU/GPL. *
}
// http://doc.spip.org/@html_lang_attributes
-function html_lang_attributes()
+function html_lang_attributes($dir=true)
{
+ if ($dir)
+ $dir = " dir='" . ($GLOBALS['spip_lang_rtl'] ? 'rtl' : 'ltr') . "'";
+
return "<html lang='"
. $GLOBALS['spip_lang']
- . "' dir='"
- . ($GLOBALS['spip_lang_rtl'] ? 'rtl' : 'ltr')
- . "'>\n" ;
+ . "'"
+ . $dir
+ . ">\n" ;
}
init_langues();
utiliser_langue_site();