{* * $Revision: 17380 $ * Read this before changing templates! http://codex.gallery2.org/Gallery2:Editing_Templates *}

{g->text text="Sort order"}

{g->text text="This sets the sort order for the album. This applies to all current items, and any newly added items."}

{g->text text="with"}
{g->changeInDescendents module="sort" text="Apply to all subalbums"}

{g->text text="Thumbnails"}

{g->text text=" Every item requires a thumbnail. Set the default size in pixels here."}

{if !empty($form.error.thumbnail.size.invalid)}
{g->text text="You must enter a number (greater than zero)"}
{/if}
{g->changeInDescendents module="thumbnail" text="Use this thumbnail size in all subalbums"}

{g->text text="Resized Images"}

{g->text text="Each item in your album can have multiple sizes. Define the default sizes here."}

{counter start=0 assign=index} {foreach from=$form.resizes item=resize} {if !empty($form.error.resizes.$index.size.missing)} {/if} {if !empty($form.error.resizes.$index.size.invalid)} {/if} {counter} {/foreach}
{g->text text="Active"} {g->text text="Target Size (pixels)"}
{g->dimensions formVar="form[resizes][$index]" width=$form.resizes.$index.width height=$form.resizes.$index.height}
{g->text text="You must enter a valid size"}
{g->text text="You must enter a number (greater than zero)"}
{g->changeInDescendents module="resizes" text="Use these target sizes in all subalbums"}

{g->text text="Apply settings to existing items"}

{g->text text="The thumbnail and resized image settings are for all new items. To apply these settings to all the items in your album, check the appropriate box. Including subalbums will apply each album's own settings to its thumbnails/resizes, which may not match the settings above. Building images now makes this operation take longer, but saves the time to build and cache each file when it is first viewed."}

{g->changeInDescendents module="recreateThumbnails" text="... and for all subalbums"}
{g->changeInDescendents module="recreateResizes" text="... and for all subalbums"}
{* Include our extra ItemEditOptions *} {foreach from=$ItemEdit.options item=option} {include file="gallery:`$option.file`" l10Domain=$option.l10Domain} {/foreach}