2011-01-26 Juan Manuel Ramon <juanmanuel.ramon@artica.es>

* 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
This commit is contained in:
juanmanuelr 2011-01-26 17:09:23 +00:00
parent 369a7f8561
commit eddbebee5f
2 changed files with 16 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2011-01-26 Juan Manuel Ramon <juanmanuel.ramon@artica.es>
* 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 <javier.lanz@artica.es>
* include/functions_custom_graphs.php: Added 'date' parameter

View File

@ -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 = '<img src="'.safe_input ($src).'" '; //safe input necessary to strip out html entities correctly
$style = '';
@ -1118,7 +1128,7 @@ function print_image ($src, $return = false, $options = false) {
//Valid attributes (invalid attributes get skipped)
$attrs = array ("height", "longdesc", "usemap","width","id","class","title","lang","xml:lang",
"onclick", "ondblclick", "onmousedown", "onmouseup", "onmouseover", "onmousemove",
"onmouseout", "onkeypress", "onkeydown", "onkeyup");
"onmouseout", "onkeypress", "onkeydown", "onkeyup","pos_tree");
foreach ($attrs as $attribute) {
if (isset ($options[$attribute])) {