From 3c2b8d230e0ca85bf7fc22124769c131cc47ac80 Mon Sep 17 00:00:00 2001 From: plegall Date: Sat, 25 Jun 2005 17:09:01 +0000 Subject: - 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 --- category.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) (limited to 'category.php') 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')).'&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'] ) -- cgit v1.2.3