Results 1 to 3 of 3

Hybrid View

  1. #1
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default sidebox_for_list_manufacturers_logos

    Hi Guys,

    Im using the sidebox_for_list_manufacturers_logos add on.

    Im wanting to add some padding under each logo.

    http://yorkshiregardencentre.co.uk/christmasshop/

    Ive looking to the tpl_manufacturers_img_select.php

    PHP Code:
    <?php
    /**
     * Side Box Template
     *
     * @package templateSystem
     * @copyright Copyright 2003-2006 Zen Cart Development Team
     * @copyright Portions Copyright 2003 osCommerce
     * @license http://www.zen-cart.com/license/2_0.txt GNU Public License V2.0
     * @version $Id: modification of tpl_manufacturers_select.php 4771 2006-10-17 05:32:42Z ajeh $
     * @modify by Alejandro Hurtado <ahurt2000######################>
     */
      
    if (!defined(BOX_HEADING_MANUFACTURERS_IMG)) define(BOX_HEADING_MANUFACTURERS_IMG,'Manufacturers'); // define sidebox header
      
    if (!defined(BOX_MANUFACTURER_HOMEPAGE_IMG)) define(BOX_MANUFACTURER_HOMEPAGE_IMG,'web');             // define link to manufacturers URL 
      
      
    $title '<label>' BOX_HEADING_MANUFACTURERS_IMG '</label>';
      
    $title_link false;
      
    $content "";
      
    $content .= '<div id="' str_replace('_''-'$box_id 'Content') . '" class="sideBoxContent centeredContent">';
      while (!
    $manufacturer_sidebox_img -> EOF){
        
    $content.='<div >';
        
    $content.='<a href="' zen_href_link(FILENAME_DEFAULT'manufacturers_id=' $manufacturer_sidebox_img->fields['manufacturers_id']) . '">';        
        
    $content.=zen_image(DIR_WS_IMAGES $manufacturer_sidebox_img->fields['manufacturers_image'], $manufacturer_sidebox_img->fields['manufacturers_name']);
        
    $content.= '</a></div>';
        if (
    zen_not_null($manufacturer_sidebox_img->fields['manufacturers_url']))
            
    $content.='<a href="' zen_href_link(FILENAME_REDIRECT'action=manufacturer&manufacturers_id=' $manufacturer_sidebox_img->fields['manufacturers_id']) . '" target="_blank">' sprintf(BOX_MANUFACTURER_HOMEPAGE_IMG$manufacturer_sidebox_img->fields['manufacturers_name']) . '</a>';
        
        
    $manufacturer_sidebox_img->MoveNext();
      }
      
    $content .= '</div>';
    ?>
    I figured out where to add a <br> but this was too much space so I guess i need to add this to my CSS to do it but cannot figure it out.

    Hopefully someone can help.

    Greg
    Last edited by Kim; 10 Sep 2010 at 03:46 PM.
    <a href="http://www.yorkshiregardencentre.co.uk">The Yorkshire Garden Centre</a>

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Ma

    add this to your style sheet and adjust to suit
    #manufacturersimgContent img{
    margin: 0em 0em 1em 0em;
    }
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Feb 2010
    Posts
    23
    Plugin Contributions
    0

    Default Re: Ma

    Thanks!

    Sorry for the missing title oppps!
    <a href="http://www.yorkshiregardencentre.co.uk">The Yorkshire Garden Centre</a>

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg