aboutsummaryrefslogtreecommitdiffstats
path: root/include/section_init.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2007-10-02 05:38:54 +0000
committerrvelices <rv-github@modusoptimus.com>2007-10-02 05:38:54 +0000
commit2889cbc4eb06ce32caf3d5f8d592120830c4b676 (patch)
treed286d36b599997942997b859e0652648acbe9d49 /include/section_init.inc.php
parent00d39fe8ba9c559a1208ca135cb7203b37ba68ce (diff)
- render_category_description and render_category_literal_description events refactoring
git-svn-id: http://piwigo.org/svn/trunk@2117 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/section_init.inc.php')
-rw-r--r--include/section_init.inc.php17
1 files changed, 11 insertions, 6 deletions
diff --git a/include/section_init.inc.php b/include/section_init.inc.php
index 918d394fd..f5b301677 100644
--- a/include/section_init.inc.php
+++ b/include/section_init.inc.php
@@ -203,7 +203,11 @@ if ('categories' == $page['section'])
$page = array_merge(
$page,
array(
- 'comment' => $page['category']['comment'],
+ 'comment' =>
+ trigger_event(
+ 'render_category_description',
+ $page['category']['comment']
+ ),
'title' =>
get_cat_display_name($page['category']['upper_names'], '', false),
)
@@ -330,7 +334,8 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => $lang['search_result'],
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
+ .$lang['search_result'].'</a>',
)
);
}
@@ -384,7 +389,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$lang['recent_pics_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -422,7 +427,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$conf['top_number'].' '.$lang['most_visited_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -448,7 +453,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$conf['top_number'].' '.$lang['best_rated_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)
@@ -471,7 +476,7 @@ SELECT DISTINCT(id)
$page = array_merge(
$page,
array(
- 'title' => '<a href="'.duplicate_index_url().'">'
+ 'title' => '<a href="'.duplicate_index_url(array('start'=>0)).'">'
.$lang['random_cat'].'</a>',
'items' => array_from_query($query, 'id'),
)