From 0c58c8db24630098a55325f8695fbb3b5cfc9d17 Mon Sep 17 00:00:00 2001 From: juanmanuelr Date: Wed, 26 Jan 2011 17:09:23 +0000 Subject: [PATCH] 2011-01-26 Juan Manuel Ramon * include/functions_html.php: In print_image function checks if skin path is set for the current user and if it exists add it to the image path. Added pos_tree option on print_image function. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@3774 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f --- pandora_console/ChangeLog | 5 +++++ pandora_console/include/functions_html.php | 12 +++++++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/pandora_console/ChangeLog b/pandora_console/ChangeLog index 4b718cbfdd..1845f58038 100644 --- a/pandora_console/ChangeLog +++ b/pandora_console/ChangeLog @@ -1,3 +1,8 @@ +2011-01-26 Juan Manuel Ramon + * include/functions_html.php: In print_image function checks if skin + path is set for the current user and if it exists add it to the image path. + Added pos_tree option on print_image function. + 2011-01-26 Javier Lanz * include/functions_custom_graphs.php: Added 'date' parameter diff --git a/pandora_console/include/functions_html.php b/pandora_console/include/functions_html.php index 23d0b55e7a..80e14e0c9a 100644 --- a/pandora_console/include/functions_html.php +++ b/pandora_console/include/functions_html.php @@ -1084,6 +1084,16 @@ function print_checkbox ($name, $value, $checked = false, $return = false, $disa * @return string HTML code if return parameter is true. */ function print_image ($src, $return = false, $options = false) { + + /* Checks if user's skin is available */ + $isFunctionSkins = enterprise_include_once ('include/functions_skins.php'); + + if ($isFunctionSkins !== ENTERPRISE_NOT_HOOK) { + $skin_path = enterprise_hook('get_image_skin_path',array($src)); + if ($skin_path) + $src = $skin_path; + } + $output = '