Guest User

Untitled

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