Code

Removed smarty
[gosa.git] / gosa-core / include / smarty / plugins / function.image.php
diff --git a/gosa-core/include/smarty/plugins/function.image.php b/gosa-core/include/smarty/plugins/function.image.php
deleted file mode 100644 (file)
index 3d12073..0000000
+++ /dev/null
@@ -1,25 +0,0 @@
-<?php
-
-function smarty_function_image($params, &$smarty)
-{
-  $path = (isset($params['path']))? $params['path'] :"";
-  $action = (isset($params['action']))? $params['action'] :"";
-  $title = (isset($params['title']))? $params['title'] :"";
-  $align = (isset($params['align']))? $params['align'] :"";
-  //print_a(array($path,$label,$action,$title,$align));
-
-  if(isset($params['acl'])){
-    if(!preg_match("/w/", $params['acl'])){
-      $path = preg_replace("/\.png/","-grey.png", $path);
-      $action = "";
-    }
-  }
-
-  if(!empty($align)){
-    echo image($path,$action,$title,$align);
-  }else{
-    echo image($path,$action,$title);
-  }
-}
-  
-?>