|
|
|
|
"This modification allows the existing image wrapper function to consider your configured image width and height variables as maximum values, not absolute values. It's almost like your configured width and height variables define a box within which your images will fit while maintaining their original aspect ratio (instead of stretching one of the images dimensions).
The modification is pretty basic, and will basically only affect what you want it to affect (no adverse effect on existing code).
The main part of this modification is a slight change to the function tep_image, found in includesfunctionshtml_output.php. If your function definition looks different than this:
function tep_image($src, $alt = '', $width = '', $height = '', $parameters = '')
..then you should probably not apply this modification, as it would appear you have made some other modification which may conflict.
The attached file is *NOT* meant to be uploaded as is... I only made it a .php file so that if you have a code-highlighting editor it would be more visually appealing.
Also note that this is my first contribution... I apologize if I have not followed standard procedure :)" |
|
|
|
 |
| For more information, visit the official osCommerce contribution webpage. |
 |
|
|