* Name: categories_link
* Date: Oct 27, 2008
* Purpose: URL for the categorie info
* Input:
* - cPath
*
* Examples: {categories_link cPath=17}
* Output: http:// ... index.php?mp=mp&file=shop&cPath=17
* @author r23
* @version 1.0
* @param array
* @param Smarty
* @return string
* @uses smarty_function_html_href_link()
*/
function smarty_function_categories_link($params, &$smarty)
{
require_once $smarty->_get_plugin_filepath('function','html_href_link');
$aModules = oos_get_modules();
$aFilename = oos_get_filename();
$result = array();
$link_params = array();
$link_params = array('modul' => $aModules['main'],
'file' => $aFilename['shop']);
if (is_array($params)) {
$result = array_merge($link_params, $params);
} else {
$smarty->trigger_error("categories_link: extra attribute '$params' must an array", E_USER_NOTICE);
}
return smarty_function_html_href_link($result, $smarty);
}
?>