<?php
/**
* Plugin name: img_filter
*
* @package PHP Image Filter GD
* @version 1.0.1
* @author MT Jordan <mtjo62@gmail.com>
* @copyright 2014
* @license zlib/libpng
*/
function smarty_function_img_filter( $params, &$smarty )
{
$img_filter_URL = 'http://mysite.com/path/to/image_filter.php';
return "<img src=\"{$img_filter_URL}?filename_gd={$params['src']}&filter_gd={$params['filter']}\" alt=\"{$params['src']}\" />";
}
/* EOF function.img_filter.php */
/* Location: ./function.img_filter.php */
|