Jump to content
  • Checkout
  • Login
  • Get in touch

osCommerce

The e-commerce.

Removing image from include boxes


bram

Recommended Posts

Posted

Ok I'm trying to remove or replace the images from all of the boxes. For example, where do I go to replace the curved image on the left of the categories box. And where is this image anyways? I can't find it in the images folder.

Posted

answering my own questions:

includes/classes/boxes.php

 

What's the best way to remove this?

 

class infoBoxHeading extends tableBox {

    function infoBoxHeading($contents, $left_corner = true, $right_corner = true, $right_arrow = false) {

      $this->table_cellpadding = '0';

 

      if ($left_corner == true) {

        $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_left.gif');

      } else {

        $left_corner = tep_image(DIR_WS_IMAGES . 'infobox/corner_right_left.gif');

      }

      if ($right_arrow == true) {

        $right_arrow = '<a href="' . $right_arrow . '">' . tep_image(DIR_WS_IMAGES . 'infobox/arrow_right.gif', ICON_ARROW_RIGHT) . '</a>';

      } else {

        $right_arrow = '';

      }

      if ($right_corner == true) {

        $right_corner = $right_arrow . tep_image(DIR_WS_IMAGES . 'infobox/corner_right.gif');

      } else {

        $right_corner = $right_arrow . tep_draw_separator('pixel_trans.gif', '11', '20');

      }

 

      $info_box_contents = array();

      $info_box_contents[] = array(array('params' => 'height="14" class="infoBoxHeading"',

                                        'text' => $left_corner),

                                  array('params' => 'width="100%" height="20" class="infoBoxHeading"',

                                        'text' => $contents[0]['text']),

                                  array('params' => 'height="20" class="infoBoxHeading" nowrap',

                                        'text' => $right_corner));

 

      $this->tableBox($info_box_contents, true);

    }

  }

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...