aboutsummaryrefslogtreecommitdiffstats
path: root/category.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2005-06-25 17:09:01 +0000
committerplegall <plg@piwigo.org>2005-06-25 17:09:01 +0000
commit3c2b8d230e0ca85bf7fc22124769c131cc47ac80 (patch)
tree6908e4e56b8e4f2d9a69f313887af2aa016f40b6 /category.php
parent49fb2b6fd30bf4830c344ca93c64e2ecd92d2dff (diff)
- new feature : ability to add links on the main page (see
include/config_default.inc.php) git-svn-id: http://piwigo.org/svn/trunk@797 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--category.php15
1 files changed, 15 insertions, 0 deletions
diff --git a/category.php b/category.php
index 592ca526b..442f9dcb7 100644
--- a/category.php
+++ b/category.php
@@ -175,6 +175,21 @@ $template->assign_vars(array(
'U_CADDIE'=>add_session_id(PHPWG_ROOT_PATH.'category.php'.get_query_string_diff(array('caddie')).'&amp;caddie=1')
)
);
+//-------------------------------------------------------------- external links
+if (count($conf['links']) > 0)
+{
+ $template->assign_block_vars('links', array());
+
+ foreach ($conf['links'] as $url => $label)
+ {
+ $template->assign_block_vars(
+ 'links.link',
+ array(
+ 'URL' => $url,
+ 'LABEL' => $label
+ ));
+ }
+}
//---------------------------------------------------------- special categories
// favorites categories
if ( !$user['is_the_guest'] )