1 <?php
3 function smarty_function_image($params, &$smarty)
4 {
5 $path = (isset($params['path']))? $params['path'] :"";
6 $action = (isset($params['action']))? $params['action'] :"";
7 $title = (isset($params['title']))? $params['title'] :"";
8 $align = (isset($params['align']))? $params['align'] :"";
9 //print_a(array($path,$label,$action,$title,$align));
11 if(!empty($align)){
12 echo image($path,$action,$title,$align);
13 }else{
14 echo image($path,$action,$title);
15 }
16 }
18 ?>