diff options
author | Manuel Hiebel <leuhmanu@mageia.org> | 2014-05-02 21:16:35 +0000 |
---|---|---|
committer | Manuel Hiebel <leuhmanu@mageia.org> | 2014-05-02 21:16:35 +0000 |
commit | ee958bc534fe7064c9f2191ca2f9a82eed82c93b (patch) | |
tree | 4e74e4aa3f09a3ea306dd96ce8fdb16c9499414a /_nav/lib.php | |
parent | e4727d9e3b624c4358a488bcc7f28de355edb88d (diff) | |
download | www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.gz www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.bz2 www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.tar.xz www-ee958bc534fe7064c9f2191ca2f9a82eed82c93b.zip |
add center style for nav
Diffstat (limited to '_nav/lib.php')
-rw-r--r-- | _nav/lib.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/_nav/lib.php b/_nav/lib.php index 1aa791998..76a55712a 100644 --- a/_nav/lib.php +++ b/_nav/lib.php @@ -155,7 +155,7 @@ class l10n if (file_exists($po_file)) { $dictionary = phpmo_parse_po_file($po_file); - + foreach ($dictionary as $key => $value) { if ($key != '') { if ($value['msgstr'][0] != '') { @@ -279,7 +279,11 @@ function _mgnav_html($wrap = false, $lang = 'en', $inject = null, $vhost = 'www. */ function _mgnav_style() { - return '<style>' . file_get_contents(__DIR__ . '/css/source.css') . '</style>'; + if ( defined('ALIGNMENT') && constant('ALIGNMENT') == 'Center' ){ + return '<style>' . file_get_contents(__DIR__ . '/css/source.css') . '</style><style>' . file_get_contents(__DIR__ . '/css/center.css') . '</style>'; + } else { + return '<style>' . file_get_contents(__DIR__ . '/css/source.css') . '</style>'; + } } /** |