Guest User

Snowbird

a guest
Oct 31st, 2010
164
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.     function trail($separator = ' - ') {
  2.       $trail_string = '';
  3.  
  4.       for ($i=0, $n=sizeof($this->_trail); $i<$n; $i++) {
  5.         if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {
  6.           $trail_string .= '<div id="breadcrumbdiv" itemscope itemtype="http://data-vocabulary.org/Breadcrumb">';
  7.           $trail_string .= '<a href="' . $this->_trail[$i]['link'] . '" class="headerNavigation" itemprop="url"><span itemprop="title">' . $this->_trail[$i]['title'] . '</span></a>';
  8.         } else {
  9.           $trail_string .= $this->_trail[$i]['title'];
  10.         }
  11.  
  12.         if (($i+1) < $n) $trail_string .= $separator;
  13.         $trail_string .= '</div>';
  14.       }
  15.  
  16.       return $trail_string;
  17.     }
RAW Paste Data