Author Topic: Button for 'Themis' theme  (Read 15212 times)

Offline Daniel15

Button for 'Themis' theme
« on: April 01, 2006, 03:13:58 pm »
This is the shop button code for the 'Themis' theme. I wasn't sure what image to use for the shop, so I just used the 'Home' image.

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

        // The [calendar]!        if ($context['allow_calendar']){                $menu1 .= '                                <a href="'. $scripturl. '?action=calendar"><img src="' . $settings['images_url'] . '/gnome/calendar.gif" alt="' . $txt['calendar24'] . '" style="margin: 2px 0;" border="0" /></a>';                $menu2 .= '  |                                <a href="'. $scripturl. '?action=calendar">'.$txt['calendar24'].'</a>';        }?>



Add after:

                $menu1 .= '                                <a href="'. $scripturl. '?action=shop"><img src="' . $settings['images_url'] . '/gnome/home.gif" alt="Shop" style="margin: 2px 0;" border="0" /></a>';                $menu2 .= '  |                                <a href="'. $scripturl. '?action=shop">Shop</a>';?>



Make sure that you add the text AFTER the } in the calendar section.

Then, your shop button should be working :D
« Last Edit: April 01, 2006, 03:17:51 pm by daniel15 »