SMF Shop

SMFShop => Shop Button Requests => Completed Shop Buttons => Topic started by: Daniel15 on August 19, 2006, 12:33:07 pm

Title: Button for 'Darkness' theme
Post by: Daniel15 on August 19, 2006, 12:33:07 pm
This is a shop button for the 'Darkness' theme. Thanks to Sableye (http://www.daniel15.com/forum/index.php?action=profile;u=206) 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