Add an extra button like the Gallert2 Donate or double/double

markire

Joined: 2008-02-12
Posts: 1
Posted: Tue, 2008-02-12 20:46

I'd like to be able to add an extra button logo/icon to the bottom of a theme.
So at the bottom of a theme.tpl file you have:

{g->logoButton type="gallery2" target="_new"}

I'd like to be able to define an additional type somewhere.
Where do I that that ? I don't want to hardcode in a link and so would like
to do it the same way as above, but don't know where do go to add the extra type.

thanks
M.

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 27300
Posted: Wed, 2008-02-13 02:37
Quote:
I don't want to hardcode in a link

Why not?
Anyway in modules/core/classes/GalleryTemplateAdapter.class:
search for function logoButton($params, &$smarty) {
and add another case.

you will have to redo this for each upgrade or hard coding it in a template file and you will not have to.

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team