Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function trail($separator = ' - ') {
- $trail_string = '';
- for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
- if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {
- $trail_string .= '<div id="breadcrumbdiv" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">';
- $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation" itemprop="url"><span itemprop="title">' . $this->_trail[$i]['title'] . '</span></a>';
- } else {
- $trail_string .= $this->_trail[$i]['title'];
- }
- if (($i+1) < $n) $trail_string .= $separator;
- $trail_string .= '</div>';
- }
- return $trail_string;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement