From 254aee26953b4e862b73467968f92138a6283da1 Mon Sep 17 00:00:00 2001 From: patdenice Date: Thu, 5 Mar 2009 21:08:04 +0000 Subject: Create navigation_bar.tpl file. Move create_navigation_bar function from functions_html.inc.php to functions.inc.php. git-svn-id: http://piwigo.org/svn/trunk@3172 68402e56-0260-453c-a942-63ccdbb3a9ee --- admin/element_set_global.php | 2 +- admin/element_set_unit.php | 2 +- admin/history.php | 2 +- admin/rating.php | 2 +- admin/template/goto/element_set_global.tpl | 2 +- admin/template/goto/element_set_unit.tpl | 4 +- admin/template/goto/history.tpl | 15 +-- admin/template/goto/navigation_bar.tpl | 39 ++++++++ admin/template/goto/rating.tpl | 5 +- admin/template/goto/user_list.tpl | 2 +- admin/user_list.php | 2 +- comments.php | 2 +- include/functions.inc.php | 69 ++++++++++++++ include/functions_html.inc.php | 147 ----------------------------- include/picture_comment.inc.php | 2 +- index.php | 7 +- template/yoga/comments.tpl | 2 +- template/yoga/index.tpl | 7 +- template/yoga/navigation_bar.tpl | 39 ++++++++ template/yoga/picture.tpl | 4 +- 20 files changed, 167 insertions(+), 189 deletions(-) create mode 100644 admin/template/goto/navigation_bar.tpl create mode 100644 template/yoga/navigation_bar.tpl diff --git a/admin/element_set_global.php b/admin/element_set_global.php index 2ad3ab164..4f223b2cc 100644 --- a/admin/element_set_global.php +++ b/admin/element_set_global.php @@ -467,7 +467,7 @@ if (count($page['cat_elements_id']) > 0) $page['start'], $page['nb_images'] ); - $template->assign('NAV_BAR', $nav_bar); + $template->assign('navbar', $nav_bar); $query = ' SELECT id,path,tn_ext,file,filesize,level diff --git a/admin/element_set_unit.php b/admin/element_set_unit.php index cf6ef7781..67f5a62e6 100644 --- a/admin/element_set_unit.php +++ b/admin/element_set_unit.php @@ -184,7 +184,7 @@ if (count($page['cat_elements_id']) > 0) $page['start'], $page['nb_images'] ); - $template->assign(array('NAV_BAR' => $nav_bar)); + $template->assign(array('navbar' => $nav_bar)); // tags $all_tags = get_all_tags(); diff --git a/admin/history.php b/admin/history.php index 04d60fcde..c357a498f 100644 --- a/admin/history.php +++ b/admin/history.php @@ -569,7 +569,7 @@ if (isset($page['search_id'])) $conf['nb_logs_page'] ); - $template->assign('NAV_BAR', $navbar); + $template->assign('navbar', $navbar); } // +-----------------------------------------------------------------------+ diff --git a/admin/rating.php b/admin/rating.php index 67cc14502..e2f614abe 100644 --- a/admin/rating.php +++ b/admin/rating.php @@ -115,7 +115,7 @@ $template->set_filename('rating', 'rating.tpl'); $template->assign( array( - 'NAVBAR' => create_navigation_bar( + 'navbar' => create_navigation_bar( PHPWG_ROOT_PATH.'admin.php'.get_query_string_diff(array('start','del')), $nb_images, $start, diff --git a/admin/template/goto/element_set_global.tpl b/admin/template/goto/element_set_global.tpl index 0dfa11876..cd12410bc 100644 --- a/admin/template/goto/element_set_global.tpl +++ b/admin/template/goto/element_set_global.tpl @@ -37,7 +37,7 @@ {'Elements'|@translate} - {if !empty($NAV_BAR)}{/if} + {if !empty($navbar) }{include file='navigation_bar.tpl'}{/if} {if !empty($thumbnails)}