This is an old revision of the document!


Technical changes in Piwigo 2.5

Albums pagination

http://piwigo.org/bugs/view.php?id=2614 For themes creators.

On index.tpl, add

{if !empty($cats_navbar)}
  {assign var=navbar value=$cats_navbar}
  {include file='navigation_bar.tpl'|@get_extent:'navbar'}
{/if}

right after {$CATEGORIES}

And modify existing photos navbar by

{if !empty($thumb_navbar)}
  {assign var=navbar value=$thumb_navbar}
  {include file='navigation_bar.tpl'|@get_extent:'navbar'}
{/if}

Add action buttons

http://piwigo.org/bugs/view.php?id=2781 For plugins creators.

Introduction of two template methods to add buttons to index and picture toolbars, allowing to place buttons relatively to each other :

$template->add_picture_button($content, $rank);
$template->add_index_button($content, $rank);

No changes for themes.

Infos/Errors messages moved

On index.tpl, {include file='infos_errors.tpl'} was moved away from the main #content block. See http://piwigo.org/dev/changeset/18712

Jquery UI 1.9

Jquery ui effects filename have changed. For example change

footer|combine_script require='jquery.effects.blind'

to

footer|combine_script require='jquery.ui.effect-blind'

We'll have backward naming compatibility for 2.5 version only!

 
Back to top
dev/changes_in_2.5.1351603515.txt.gz · Last modified: 2012/10/30 14:25 by rvelices
 
 
github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact