coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Marshall1972 on July 31, 2006, 04:28:08 PM

Title: Order of Buttons on Navigation Bar
Post by: Marshall1972 on July 31, 2006, 04:28:08 PM
Hello,

I use the Rainy Day theme and I was wondering how I can change the order of the navigation buttons.  Right now Album List is first and Search is the last but I want Search to be second. 

Thanks,
Title: Re: Order of Buttons on Navigation Bar
Post by: Sami on July 31, 2006, 09:09:40 PM
Open up themes/rainy_day/theme.php and
- You need to first add this line to define lines:

define('THEME_HAS_NO_SUB_MENU_BUTTONS', 1);


- Then put this code to end of file befor ?>

// HTML template for sub menu

$template_sub_menu = <<<EOT

                       <div class="topmenu"><table border="0" cellpadding="0" cellspacing="0">
                                <tr>
<!-- BEGIN custom_link -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{CUSTOM_LNK_TGT}" title="{CUSTOM_LNK_TITLE}">{CUSTOM_LNK_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END custom_link -->
<!-- BEGIN album_list -->
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{ALB_LIST_TGT}" title="{ALB_LIST_TITLE}">{ALB_LIST_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
<!-- END album_list -->
<td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{SEARCH_TGT}" title="{SEARCH_LNK}">{SEARCH_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                       <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{LASTUP_TGT}" title="{LASTUP_LNK}">{LASTUP_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                       <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{LASTCOM_TGT}" title="{LASTCOM_LNK}">{LASTCOM_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{TOPN_TGT}" title="{TOPN_LNK}">{TOPN_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{TOPRATED_TGT}" title="{TOPRATED_LNK}">{TOPRATED_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td><img name="spacer" src="images/spacer.gif" width="5" height="25" border="0" alt="" /></td>
                                        <td><img name="buttonleft1" src="themes/rainy_day/images/button1_r1_c1.gif" width="7" height="25" border="0" alt="" /></td>
                                        <td style="background: url(themes/rainy_day/images/button1_r1_c2.gif);">
                                                <a href="{FAV_TGT}" title="{FAV_LNK}">{FAV_LNK}</a>
                                        </td>
                                        <td><img name="buttonright1" src="themes/rainy_day/images/button1_r1_c3.gif" width="7" height="25" border="0" alt="" /></td>
                                       
                                </tr>
                        </table></div>

EOT;
Title: Re: Order of Buttons on Navigation Bar
Post by: Marshall1972 on July 31, 2006, 09:14:35 PM
Thank you!  This support forum is AWESOME!!!