Thread: New Button
View Single Post
  #5  
Old 06-30-2009, 05:16 AM
 
swifty1 swifty1 is offline
 

eXpert
  
Join Date: Aug 2008
Location: UK
Posts: 327
 

Default Re: New Button

Thanks Victor D
So every time i create a new button i have to add code to the buttons/button.tpl as your example, would this be for any type of button that i change?

Copy of your code below with the code in red which relates to the new button css and img's for that button, is this the only .tpl that has to be changed when applying a new button?

{elseif $style eq 'button1' && ($config.Adaptives.platform ne 'MacPPC' || $config.Adaptives.browser ne 'NN')}
<table cellspacing="0" cellpadding="0" onclick="{$js_link}" class="Button1Table"{if $title ne ''} title="{$title|escape}"{/if}>
{strip}
<tr>
<td>
<{$img_type} src="{$ImagesDir}/LH.gif" class="Button1Side" alt="{$title|escape}" />
</td>
<td class="Button1"{$reading_direction_tag}>
<font class="Button1">{$button_title}</font>
</td>
<td>
<img src="{$ImagesDir}/RH.gif" class="Button1Side" alt="{$title|escape}" />
</td>
</tr>
{/strip}
</table>

I have the new button on my site without the change to the buttons/button.tpl and it is working fine but i assume that to be fully correct i have to change the /button.tpl

One more thing, where is the reference to the midd img?
__________________
4.1.11 gold
x-special offers
CDSEO Pro
Reply With Quote