Permalink
Browse files

convert manufacturers list to ul list

  • Loading branch information...
1 parent 4cdf01e commit 7fc077981e5ed86802143113b5f477e76b68486c @haraldpdl haraldpdl committed Nov 12, 2010
Showing with 3 additions and 3 deletions.
  1. +3 −3 catalog/includes/modules/boxes/bm_manufacturers.php
@@ -39,14 +39,14 @@ function getData() {
if ($number_of_rows = tep_db_num_rows($manufacturers_query)) {
if ($number_of_rows <= MAX_DISPLAY_MANUFACTURERS_IN_A_LIST) {
// Display a list
- $manufacturers_list = '';
+ $manufacturers_list = '<ul style="list-style: none; margin: 0; padding: 0;">';
while ($manufacturers = tep_db_fetch_array($manufacturers_query)) {
$manufacturers_name = ((strlen($manufacturers['manufacturers_name']) > MAX_DISPLAY_MANUFACTURER_NAME_LEN) ? substr($manufacturers['manufacturers_name'], 0, MAX_DISPLAY_MANUFACTURER_NAME_LEN) . '..' : $manufacturers['manufacturers_name']);
if (isset($HTTP_GET_VARS['manufacturers_id']) && ($HTTP_GET_VARS['manufacturers_id'] == $manufacturers['manufacturers_id'])) $manufacturers_name = '<strong>' . $manufacturers_name .'</strong>';
- $manufacturers_list .= '<a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a><br />';
+ $manufacturers_list .= '<li><a href="' . tep_href_link(FILENAME_DEFAULT, 'manufacturers_id=' . $manufacturers['manufacturers_id']) . '">' . $manufacturers_name . '</a></li>';
}
- $manufacturers_list = substr($manufacturers_list, 0, -6);
+ $manufacturers_list .= '</ul>';
$content = $manufacturers_list;
} else {

0 comments on commit 7fc0779

Please sign in to comment.