Author Topic: Button for 'Aero79' theme (Bloc)  (Read 13381 times)

Offline Daniel15

Button for 'Aero79' theme (Bloc)
« on: September 19, 2006, 05:08:05 pm »
This is a shop button for the 'Aero79' theme (originally requested by fivewinds here). Like most 'modern' themes, this theme doesn't use individual buttons for the menu, which makes it a lot easier to make buttons for the theme :)
So, let's begin!

Code modifications:
Open Themes/Aero79_smf11RC2/index.template.php
Find:

	
if (
$context['current_action'] == 'theme')
	
	
$current_action = isset($_REQUEST['sa']) && $_REQUEST['sa'] == 'pick' ? 'profile' : 'admin';?>


Add after:

	
// Shop
	
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 . '">&nbsp;</td>' : '' , '
	
	
	
	
<td valign="top" 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 . '">&nbsp;</td>' : '';?>


Add after:

	
// Shop
	
echo (
$current_action == 'shop' || $context['browser']['is_ie4']) ? '<td class="maintab_active_' . $first . '">&nbsp;</td>' : '' , '
	
	
	
<td valign="top" class="maintab_'
, $current_action == 'shop' ? 'active_back' : 'back' , '">
	
	
	
	
<a href="'
, $scripturl, '?action=shop">Shop</a>
	
	
	
</td>'
, $current_action == 'shop' ? '<td class="maintab_active_' . $last . '">&nbsp;</td>' : '';?>


Then, your shop button should be working :D