Location: PHPKode > projects > Webgenerator-X content management system > wgx_rc1.5/WG-X/smarty_plugins/function.image.php
<?php

/*
 * Smarty plugin
 * -------------------------------------------------------------
 * Type:     function
 * Name:     image
 * Purpose:  Uses iimages WG-X functions to display images from database
 * -------------------------------------------------------------
 */
function smarty_function_image($params, &$smarty)
{
  global $IImage;
  
  
  if (!isset($params[id])) {
    $smarty->trigger_error("image: attribute 'id' required");
        return false;
  }
  
  echo $IImage->Generate_HTML($params); 
  return true;
}
		     
?>
Return current item: Webgenerator-X content management system