diff options
| author | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-11-26 12:09:37 +0000 |
|---|---|---|
| committer | Bart van Bragt <bartvb@users.sourceforge.net> | 2001-11-26 12:09:37 +0000 |
| commit | 8e50e5eb4e9ffc37e1d97aa39c22295086212f6a (patch) | |
| tree | 9fe6c27d9b9aa2fdac8a62cc1311f7205560ac21 /phpBB/includes/page_header.php | |
| parent | dabc3a4b843b8de7badeac75af100f40458fd873 (diff) | |
| download | forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.gz forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.bz2 forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.tar.xz forums-8e50e5eb4e9ffc37e1d97aa39c22295086212f6a.zip | |
Implemented Navigation bar in Mozilla
git-svn-id: file:///svn/phpbb/trunk@1452 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/page_header.php')
| -rw-r--r-- | phpBB/includes/page_header.php | 28 |
1 files changed, 25 insertions, 3 deletions
diff --git a/phpBB/includes/page_header.php b/phpBB/includes/page_header.php index a73d3fd648..192cc8e264 100644 --- a/phpBB/includes/page_header.php +++ b/phpBB/includes/page_header.php @@ -207,6 +207,27 @@ else } // +// Generate HTML required for Mozilla Navigation bar +// +$nav_links_html = ''; +$nav_link_proto = '<link rel="%s" href="%s" title="%s" />'."\n"; +while(list($nav_item, $nav_array) = @each($nav_links) ) +{ + if( !empty($nav_array['url']) ) + { + $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nav_array['url'], $nav_array['title']); + } + else + { + // We have a nested array, used for items like <link rel='chapter'> that can occur more than once. + while(list(,$nested_array) = each($nav_array) ) + { + $nav_links_html .= sprintf($nav_link_proto, $nav_item, $nested_array['url'], $nested_array['title']); + } + } +} + +// // The following assigns all _common_ variables that may be used at any point // in a template. Note that all URL's should be wrapped in append_sid, as // should all S_x_ACTIONS for forms. @@ -336,10 +357,11 @@ $template->assign_vars(array( "T_FONTCOLOR3" => "#".$theme['fontcolor3'], "T_SPAN_CLASS1" => $theme['span_class1'], "T_SPAN_CLASS2" => $theme['span_class2'], - "T_SPAN_CLASS3" => $theme['span_class3']) + "T_SPAN_CLASS3" => $theme['span_class3'], + + "NAV_LINKS" => $nav_links_html) ); - // // Login box? // @@ -367,4 +389,4 @@ header ("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT"); $template->pparse("overall_header"); -?>
\ No newline at end of file +?> |
