In Piwigo 2.5, the template for the default themes doesn't support $U_ADMIN. I guess this variable is replaced by the following functions
$template->add_picture_button($content, $rank); $template->add_index_button($content, $rank);
It's easy to use these functions, but the question is how to generate the template code by using them? For example, in the previous use of U_ADMIN I can easily support international language but in Piwigo 2.5 I can only support English. See for example
[Github] icy_picture_modify file main.inc.php@L96
Any idea?
Last edited by icy (2013-03-23 07:15:49)
Offline
look at
http://piwigo.org/svn/extensions/skelet … ts.inc.php
function skeleton_add_button()
you can also use l10n('') function, with is the same as the {''|@translate} Smarty tag
Offline
mistic100 wrote:
look at
http://piwigo.org/svn/extensions/skelet … ts.inc.php
function skeleton_add_button()
you can also use l10n('') function, with is the same as the {''|@translate} Smarty tag
Thank you very much that's exactly that I am looking for.
Offline