From 6fabb4f449dd2f96bc8e4bd6f2880b501c8b4d24 Mon Sep 17 00:00:00 2001 From: rvelices Date: Wed, 2 Jul 2008 01:13:12 +0000 Subject: - tags improvement : pass to templates all fields in table #tags (handy for plugins such as type tags) git-svn-id: http://piwigo.org/svn/branches/branch-1_7@2414 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/menubar.inc.php | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/include/menubar.inc.php b/include/menubar.inc.php index f6d677239..af1a45c4d 100644 --- a/include/menubar.inc.php +++ b/include/menubar.inc.php @@ -59,7 +59,7 @@ foreach ($conf['links'] as $url => $url_data) $url_data = array('label' => $url_data); } - if + if ( (!isset($url_data['eval_visible'])) or @@ -76,7 +76,7 @@ foreach ($conf['links'] as $url => $url_data) if (!isset($url_data['new_window']) or $url_data['new_window']) { $template->assign_block_vars( - 'links.link.new_window', + 'links.link.new_window', array( 'name' => (isset($url_data['nw_name']) ? $url_data['nw_name'] : ''), 'features' => (isset($url_data['nw_features']) ? $url_data['nw_features'] : '') @@ -126,18 +126,21 @@ if ('tags' == $page['section']) { $template->assign_block_vars( 'tags.tag', - array( - 'URL' => make_index_url( - array( - 'tags' => array($tag) - ) - ), + array_merge( + $tag, + array( + 'URL' => make_index_url( + array( + 'tags' => array($tag) + ) + ), - 'NAME' => $tag['name'], + 'NAME' => $tag['name'], - 'TITLE' => l10n('See pictures linked to this tag only'), + 'TITLE' => l10n('See pictures linked to this tag only'), - 'CLASS' => 'tagLevel'.$tag['level'] + 'CLASS' => 'tagLevel'.$tag['level'] + ) ) ); -- cgit v1.2.3