a38f202e17e7ee1ae26bf376be9d3bf77dd230ff
3 function smarty_block_link($params, $content, $template, &$repeat) {
8 if (!array_key_exists('controller', $params)) {
9 $params['controller'] = null;
12 if (!array_key_exists('id', $params)) {
16 if (!array_key_exists('title', $params)) {
17 $params['title'] = null;
20 $url = 'index.php?'.$params['controller'];
22 if (!empty($params['id'])) {
23 if (!empty($params['title'])) {
24 $url .= '/'.$params['id'].'-'.$params['title'];
27 $url .= '/'.$params['id'];
31 if (!empty($content)) {
32 if (strpos($content, '&') !== 0) {
39 return @htmlspecialchars
($url, ENT_COMPAT
, 'UTF-8');