Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Fix google breadcrumb layout

  • Loading branch information...
commit 48f39e6a36b2b7a17ce3009de84cf8db3d5e6e8b 1 parent 8c5673e
unknown authored
View
4 catalog/includes/classes/breadcrumb.php
@@ -30,13 +30,13 @@ function trail($separator = ' - ') {
$n=sizeof($this->_trail);
for ($i=0; $i<$n; $i++) {
if (isset($this->_trail[$i]['link']) && tep_not_null($this->_trail[$i]['link'])) {
- $trail_string .= '<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb" style="float:left;"><a href="' . $this->_trail[$i]['link'] . '" itemprop="url" class="headerNavigation"><span itemprop="title" style="float:left;" >' . $this->_trail[$i]['title'] . '</span></a></div>';
+ $trail_string .= '<div itemscope="itemscope" itemtype="http://data-vocabulary.org/Breadcrumb" style="float:left;"><a href="' . $this->_trail[$i]['link'] . '" itemprop="url" class="headerNavigation"><span itemprop="title">' . $this->_trail[$i]['title'] . '</span></a>&raquo;</div>';
} else {
$trail_string .= $this->_trail[$i]['title'];
}
if (($i+1) < $n) $trail_string .= $separator;
-
+ $trail_string .= '</div>';
}
return $trail_string;
View
2  catalog/includes/header.php
@@ -36,7 +36,7 @@
</div>
<div class="grid_24 ui-widget infoBoxContainer">
- <div class="ui-widget-header infoBoxHeading"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' &raquo; '); ?></div>
+ <div class="ui-widget-header infoBoxHeading"><?php echo '&nbsp;&nbsp;' . $breadcrumb->trail(' '); ?></div>
</div>
<?php
Please sign in to comment.
Something went wrong with that request. Please try again.