Author Topic: Button for 'Darkness' theme  (Read 2985 times)

Offline Daniel15

Button for 'Darkness' theme
« on: August 19, 2006, 12:33:07 pm »
This is a shop button for the 'Darkness' theme. Thanks to Sableye for the button image.

The file for the button is attached to this post. Please save this to Themes/Darkness/images/english/shop.gif

Code modifications:
Open Themes/darkness/Index.template.php
Find:

	
// The [calendar]!
	
if (
$context['allow_calendar'])
	
	
echo 
'
	
	
	
	
<a href="'
$scripturl'?action=calendar">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/calendar.gif" alt="' $txt['calendar24'] . '" style="margin: 2px 0;" border="0" />' $txt['calendar24']), '</a>'$context['menu_separator'];


Add after:

// The shop
	
echo 
'
	
	
	
<a href="'
$scripturl'?action=shop">', ($settings['use_image_buttons'] ? '<img src="' $settings['images_url'] . '/' $context['user']['language'] . '/shop.gif" alt="Shop" style="margin: 2px 0;" border="0" />' 'Shop'), '</a>'$context['menu_separator'];


Then, your shop button should be working :D
« Last Edit: August 27, 2006, 11:52:30 am by daniel15 »