forum.coppermine-gallery.net
Support => cpg1.5.x Support => cpg1.5 themes (visuals) => Topic started by: 406man on February 13, 2011, 09:43:13 pm
-
I’d like to be able to customise the appearance of the summary text “1 album(s) on 1 page” on a list of categories and albums without affecting other users of the "tableh1" class. I’ve looked all over the theme code but can’t find where the change can be made. If I change the definition of "tableh1" in the CSS style sheet it will alter other items that I'm happy with. The theme code $template_album_list only has {TABS} where the “1 album(s) on 1 page” text would appear. Can you suggest the best place to make this change. Thanks in advance for your help.
-
The theme code $template_album_list only has {TABS} where the “1 album(s) on 1 page” text would appear. Can you suggest the best place to make this change.
I think at $template_album_list. Have you tested that?
-
I did look at $template_album_list but couldn't see a way to achieve what I want. I might have missed something as I'm still a novice with CPG. Could you suggest what I need to do ?
Thanks.
-
Copy the following block to your template's theme.php file and modify the row 'left_text' to your needs:
$template_tab_display = array(
'left_text' => '<td width="100%%" align="left" valign="middle" class="tableh1" style="white-space: nowrap">{LEFT_TEXT}</td>' . $LINEBREAK,
'tab_header' => '',
'tab_trailer' => '',
'active_tab' => '<td align="center" valign="middle" class="tableb tableb_alternate">%d</td>',
'inactive_tab' => '<td align="center" valign="middle" class="navmenu"><a href="{LINK}">%d</a></td>' . $LINEBREAK,
'nav_tab' => '<td align="center" valign="middle" class="navmenu"><a href="{LINK}">%s</a></td>' . $LINEBREAK,
'nav_tab_nolink' => '<td align="center" valign="middle" class="navmenu">%s</td>' . $LINEBREAK,
'allpages_dropdown' => '<td align="center" valign="middle" style="white-space: nowrap; padding-right: 10px;" class="navmenu">%s</td>' . $LINEBREAK,
'page_gap' => '<td align="center" valign="middle" class="navmenu">-</td>' . $LINEBREAK,
'tab_spacer' => '<td><img src="images/spacer.gif" width="1" height="1" border="0" alt="" /></td>' . $LINEBREAK,
'page_link' => '{LINK}',
);
-
That works great, thanks. I just changed the class from tableh1 to tableh2 and that gave the appearance I wanted. Vielen Dank !
-
Marking as solved.