Follow us on Twitter X-Cart on Facebook Wiki
Shopping cart software Solutions for online shops and malls
 

{include file=...} with extra class

 
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design
 
Thread Tools Search this Thread
  #1  
Old 09-04-2010, 05:42 AM
 
Sisom Sisom is offline
 

eXpert
  
Join Date: Sep 2006
Posts: 310
 

Default {include file=...} with extra class

Hi, I am trying to move the 'Send to friend' button down a little, in customer/main/send_to_friend.tpl.

I know that line 55 creates the button:


Code:
{include file="customer/buttons/button.tpl" type="input" button_title=$lng.lbl_send_to_friend}

I was wondering if there was a way to 'insert' a class here, such as

Code:
{include file="customer/buttons/button.tpl" type="input" button_title=$lng.lbl_send_to_friend class="send_to_friend"}

(Obviously that doesn't work or I wouldn't be asking!)

I know I could make a 'button2.tpl' and copy button.tpl, then change the CSS for that, but I thought it might be better to just add in a class - if it's possible. Does anybody know how this is done?

Many thanks in advance.
__________________
X-Cart Gold Version 4.3.2
Reply With Quote
  #2  
Old 09-04-2010, 06:14 AM
  robb3369's Avatar 
robb3369 robb3369 is offline
 

Advanced Member
  
Join Date: Jul 2010
Posts: 83
 

Default Re: {include file=...} with extra class

Why can't you simply wrap the include in a div and add a top-margin?

Code:
<div style="margin-top:10px;">{include file="customer/buttons/button.tpl" type="input" button_title=$lng.lbl_send_to_friend}</div>
__________________
Thanks, Rob

X-Cart 4.4.5 and 4.5.4 on Linux
Reply With Quote

The following user thanks robb3369 for this useful post:
Sisom (09-05-2010)
  #3  
Old 09-04-2010, 11:36 AM
  cflsystems's Avatar 
cflsystems cflsystems is offline
 

Veteran
  
Join Date: Apr 2007
Posts: 14,190
 

Default Re: {include file=...} with extra class

All you have to do is look in "customer/buttons/button.tpl" to know how to do it. Add "additional_button_class" like this

{include file="customer/buttons/button.tpl" type="input" button_title=$lng.lbl_send_to_friend additional_button_class="send_to_friend"}

__________________
Steve Stoyanov
CFLSystems.com
Web Development
Reply With Quote

The following user thanks cflsystems for this useful post:
Sisom (09-05-2010)
Reply
   X-Cart forums > X-Cart 4 > Dev Questions > Changing design



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -8. The time now is 01:47 PM.

   

 
X-Cart forums © 2001-2020