aboutsummaryrefslogtreecommitdiffstats
path: root/_nav/lib.php
diff options
context:
space:
mode:
Diffstat (limited to '_nav/lib.php')
-rw-r--r--_nav/lib.php8
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>';
+ }
}
/**