Support > cpg1.5 themes (visuals)

Adding text to navigation buttons

<< < (2/2)

Αndré:
You need to replace the JS vars with the corresponding PHP variables (have a look at the second code I posted) . I'm currently on a mobile phone, so I cannot create the code for you.

Leonard Will:
Many thanks for your prompt replies. I have now used the following code, which may be more complicated than necessary but which works.


--- Code: --- $slideshow_btn = "<a href={$slideshow_tgt} class=\"navmenu_pic\" title=\"{$lang_img_nav_bar[slideshow_title]}\" rel=\"nofollow\">
<img src=\"images/navbar/slideshow.png\" border=\"0\" align=\"middle\" alt=\"{$lang_img_nav_bar[slideshow_title]}\" />Slideshow</a>";
--- End code ---

I'll try to do the same for pic_info_btn tomorrow.

Leonard Will:
In case anyone else wants to add text to buttons within a theme, I found that for the "picture information" button the following code works when added to theme.php as indicated by André:


--- Code: ---// if set, this will override the default pic_info button to be inserted by displayimage.js
$pic_info_btn = "<a href=\"javascript:;\" class=\"navmenu_pic\" onclick=\"blocking('picinfo','yes','block'); return false;\"
title=\"{$lang_img_nav_bar[pic_info_title]}\" rel=\"nofollow\"><img src=\"images/navbar/info.png\" border=\"0\"
align=\"middle\" alt=\"{$lang_img_nav_bar[pic_info_title]}\" />Picture information</a>";
--- End code ---

I hope that CPG 1.6 will provide a simpler way of doing this!

Navigation

[0] Message Index

[*] Previous page

Go to full version