Themes/Enterprise
From SMFShopWiki
This page explains how to add a shop button to the menubar on the Enterprise theme. Note that to completely integrate SMFShop with this theme, you'll also need to edit Display.template.php, so that the SMFShop information is displayed next to user's posts. Please see the Themes page for information on how to do this
In Themes/enterprise/index.template.php, find:
if ($context['current_action'] == 'theme')
Add after:
if ($context['current_action'] == 'shop') $current_action = 'shop';
Also, find:
// The [calendar]! if ($context['allow_calendar']) echo ($current_action == 'calendar' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , ' <td class="maintab_' , $current_action == 'calendar' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=calendar">' , $txt['calendar24'] , '</a> </td>' , $current_action == 'calendar' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
Add after:
// SMFShop echo ($current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '"> </td>' : '' , ' <td class="maintab_' , $current_action == 'shop' ? 'active_back' : 'back' , '"> <a href="', $scripturl, '?action=shop">Shop</a> </td>' , $current_action == 'shop' ? '<td class="maintab_active_' . $last . '"> </td>' : '';
