Changeset 4578 for trunk/core/viewhelper/smarty/function.breadcrumbs.php
- Timestamp:
- 08/15/10 18:45:12 (22 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/core/viewhelper/smarty/function.breadcrumbs.php
r4493 r4578 2 2 function smarty_function_breadcrumbs($params, $smarty) 3 3 { 4 # handle trail params set directly to the smarty function call in the template 4 5 if (isset($params['trail']) && is_array($params['trail'])) 5 6 { … … 11 12 } 12 13 14 Clansuite_Debug::firebug($trail); 15 16 # is the seperator element set via the smarty function call? 13 17 if (isset($params['separator'])) 14 18 { 15 19 $separator = $params['separator']; 16 20 } 17 else 21 else # no, take default seperator 18 22 { 19 23 $separator = ' > '; … … 39 43 if (isset($trail[$i]['link']) && $i < $trailSize - 1) 40 44 { 41 //if parameter heading is not set, give links45 # if parameter heading is not set, give links 42 46 if (!isset($params['title'])) 43 47 { 44 48 $links[] = '<a href="'. $trail[$i]['link'] .'" title="'. htmlspecialchars($trail[$i]['title']). '">'. $title .'</a>'; 45 49 } 46 //if heading is set, just titles50 # if heading is set, just titles 47 51 else 48 52 { … … 56 60 } 57 61 58 #$breadcrumb_string = join($separator . "\n", $links);59 62 $breadcrumb_string = join($separator . ' ', $links); 60 63
Note: See TracChangeset
for help on using the changeset viewer.
