Appearance of “1 album(s) on 1 page” Appearance of “1 album(s) on 1 page”
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Appearance of “1 album(s) on 1 page”

Started by 406man, February 13, 2011, 09:43:13 PM

Previous topic - Next topic

0 Members and 2 Guests are viewing this topic.

406man

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.

Αndré

Quote from: 406man on February 13, 2011, 09:43:13 PM
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?

406man

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.

Αndré

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}',
);

406man

That works great, thanks. I just changed the class from tableh1 to tableh2 and that gave the appearance I wanted.  Vielen Dank !

Αndré