diff options
author | filip <filip.komar@gmail.com> | 2016-06-28 18:33:45 +0200 |
---|---|---|
committer | filip <filip.komar@gmail.com> | 2016-06-28 18:33:45 +0200 |
commit | 919bbda416c2add0463b2ae2fcf5b802f4efd59a (patch) | |
tree | 7a91b14f81972daff62cfd9a817f3f91218e6f4d /en/index.php | |
parent | 80c9f1c7aef4eb6500d7f3f907357cb878df5812 (diff) | |
download | www-919bbda416c2add0463b2ae2fcf5b802f4efd59a.tar www-919bbda416c2add0463b2ae2fcf5b802f4efd59a.tar.gz www-919bbda416c2add0463b2ae2fcf5b802f4efd59a.tar.bz2 www-919bbda416c2add0463b2ae2fcf5b802f4efd59a.tar.xz www-919bbda416c2add0463b2ae2fcf5b802f4efd59a.zip |
start with the common footer on some pages
+ separate function for it
+ separate css for it
+ expanding i18n function for that purpose (to accept more than one gettext file)
Diffstat (limited to 'en/index.php')
-rw-r--r-- | en/index.php | 29 |
1 files changed, 3 insertions, 26 deletions
diff --git a/en/index.php b/en/index.php index 7ee7499eb..a72dd5339 100644 --- a/en/index.php +++ b/en/index.php @@ -4,15 +4,7 @@ define('HLANG', true); define('ALIGNMENT', 'Center'); require '../langs.php'; -$dictionary_1 = read_translation_file($locale, 'index'); -$dictionary_2 = read_translation_file($locale, 'news'); -$dictionary = array_merge($dictionary_1, $dictionary_2); - -$nav = array( - 'nav-support' => array('support/', _r('Support')), - 'nav-community' => array('community/', _r('Community')), - 'nav-about' => array('about/', _r('About Mageia.Org')) -); +$dictionary = read_translation_file($locale, array('index', 'news', 'common_footer')); ?><!DOCTYPE html> <html dir="ltr" lang="<?php echo $locale; ?>"> @@ -141,7 +133,7 @@ $nav = array( font: 60%/1.2 Verdana,Arial,sans-serif; color: #f0f0f0; } - #fnotes a { color: #ccc; text-decoration: none; } + #fnotes a { color: #aaa; text-decoration: none; } .free-dl { color: green; font-weight: bold; } /* Landscape phones and down */ @@ -285,22 +277,7 @@ $nav = array( </div> </div> </div> -<hr> -<div id="down"> - <div class="container"> - <ul id="navb"><?php foreach ($nav as $k => $v) - echo sprintf( - '<li><a class="%s" href="%s">%s</a></li>', - $k, $v[0], $v[1] - ); - ?></ul> - <hr> - <p id="fnotes"> - <a href="/<?php echo $locale ?>/map/"><?php _g('Sitemap')?></a> - | <a href="/<?php echo $locale ?>/about/policies/privacy/"><?php _g('Privacy policy')?></a> - </p> - </div> -</div> +<?php echo common_footer($locale); ?> </body> </html> |