View Single Post
  #2  
Old 07-22-2008, 02:22 PM
  Jon's Avatar 
Jon Jon is offline
 

X-Guru
  
Join Date: Oct 2002
Location: Vancouver, Canada
Posts: 4,200
 

Default Re: Buttons - CSS v.4.0.x

The best way in my opinion to pass the custom class, is in the include of button.tpl:

Use a custom ButtonGrey class:

Code:
{include file="buttons/button.tpl" customclass="ButtonGrey" ... }

Use the default class -

Code:
{include file="buttons/button.tpl" ... }

Then in your buttons/button.tpl:

Code:
<table border="0" cellspacing="0" cellpadding="0" onclick="{$js_link}" class="{$customclass|default:"ButtonRed"}" {if $title ne ''} title="{$title}"{/if}> <td nowrap>&nbsp;{$button_title}&nbsp;</td> </table>
Reply With Quote