Code

Added function to render new images
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Mar 2010 09:43:31 +0000 (09:43 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Tue, 2 Mar 2010 09:43:31 +0000 (09:43 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@15832 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/include/smarty/plugins/function.image.php [new file with mode: 0644]

diff --git a/gosa-core/include/smarty/plugins/function.image.php b/gosa-core/include/smarty/plugins/function.image.php
new file mode 100644 (file)
index 0000000..a3c7ffc
--- /dev/null
@@ -0,0 +1,12 @@
+<?php
+
+function smarty_function_image($params, &$smarty)
+{
+  $path = (isset($params['path']))? $params['path'] :"";
+  $label = (isset($params['label']))? $params['label'] :"";
+  $action = (isset($params['action']))? $params['action'] :"";
+  $title = (isset($params['title']))? $params['title'] :"";
+  echo image($path,$label,$action,$title = "");
+}
+  
+?>