<?php
/**
 * Smarty plugin
 * @package Smarty
 * @subpackage plugins
 */


/**
 * Smarty {theme_path} function plugin
 *
 * Type:     function<br>
 * Name:     str<br>
 * Date:     June 22, 2006<br>
 * Purpose:  Fetch the image according to the theme hierarchy
 * @author   Catalyst IT Ltd
 * @version  1.0
 * @param array
 * @param Smarty
 * @return Internationalized string
 */
function smarty_function_theme_path($params, &$smarty) {
    
    if (!isset($params['pluginlocation'])) {
        $params['pluginlocation'] = '';
    }

    return theme_get_url($params['location'], $params['pluginlocation']);
}

?>
