aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-07-02 01:13:12 +0000
committerrvelices <rv-github@modusoptimus.com>2008-07-02 01:13:12 +0000
commit6fabb4f449dd2f96bc8e4bd6f2880b501c8b4d24 (patch)
treefe9cdc5e6d411794742b7187852d64f968f34032
parentecb61ba267303517603c82cb8ddb6127b6b1d9f6 (diff)
- 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
-rw-r--r--include/menubar.inc.php25
1 files 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']
+ )
)
);