{* * $Revision: 16235 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *} {* * Precalculate the HTML that will go inside every cell in the * table so that we can render it twice (once in the Javascript, * once in the HTML itself. We do this to avoid using the innerHTML * element when we swap the cells because the behavior of innerHTML * varies from platform to platform and on Firefox it turns ~ into %7E * which breaks our cookie paths. *}

{g->text text="Rearrange Album"}

{if isset($RearrangeItems.automaticOrderMessage)}

{g->text text="This album has an automatic sort order specified, so you cannot change the order of items manually. You must remove the automatic sort order to continue."} {g->text text="change"}

{else} {if isset($status.saved)}

{g->text text="Order saved successfully"}

{/if}

{g->text text="Change the order of the items in this album.%s Click an item to move, then click the new location." arg1="
"}

{if $RearrangeItems.columns > 0} {else}
{/if} {assign var="row" value=0} {assign var="column" value=0} {foreach name=childList from=$RearrangeItems.children key=idx item=child} {if $RearrangeItems.columns > 0} {if $column == 0}
{/if} {assign var="column" value=$column+1} {if $column == $RearrangeItems.columns || $smarty.foreach.childList.last} {assign var="column" value=0} {assign var="row" value=$row+1} {if $row == $RearrangeItems.rows} {assign var="row" value=0} {/if} {/if} {else} {/if} {/foreach} {if $RearrangeItems.columns > 0}
{else}

{else}
{/if}
{/if}