{* * $Revision: 15342 $ * If you want to customize this file, do not edit it directly since future upgrades * may overwrite it. Instead, copy it into a new directory called "local" and edit that * version. Gallery will look for that file first and use it if it exists. *}

{g->text text="Import files into Gallery from another website. Enter a URL below to a web page anywhere on the net and Gallery will allow you to upload any media files that it finds on that page. Note that if you're entering a URL to a directory, you should end the URL with a trailing slash (eg, http://example.com/directory/). "}

{if empty($form.webPageUrls)}

{g->text text="URL"}

{if isset($form.error.webPage.missing)}
{g->text text="You must enter a URL to a web page"}
{/if} {if isset($form.error.webPage.invalid)}
{g->text text="The URL entered must begin with http://"}
{/if} {if isset($form.error.webPage.unavailable)}
{g->text text="The web page you specified is unavailable"}
{/if} {if isset($form.error.webPage.noUrlsFound)}
{g->text text="Nothing to add found from this URL"}
{/if} {if isset($form.error.webPage.nothingSelected)}
{g->text text="Nothing added since no items were selected"}
{/if} {if !empty($ItemAddFromWeb.recentUrls)}

{g->text text="Recent URLs"}

{foreach from=$ItemAddFromWeb.recentUrls item=url} {$url}
{/foreach}

{/if} {capture name="submitButtons"} {/capture} {else} {* {if empty($form.webPageUrls)} *} {g->text text="URL: %s" arg1=$form.webPage}   {g->text text="change"}
{g->text one="%d url found" many="%d urls found" count=$ItemAddFromWeb.webPageUrlCount arg1=$ItemAddFromWeb.webPageUrlCount} {foreach from=$form.webPageUrls item=url} {/foreach}
{g->text text="URL"} {g->text text="Type"}
{counter assign="idCount"} {$url.itemType}

{g->text text="Copy base filenames to:"}
   

{capture name="submitButtons"} {/capture} {assign var="showOptions" value="true"} {/if} {* {if !empty($form.webPageUrls)} *}
{if isset($showOptions)} {* Include our extra ItemAddOptions *} {foreach from=$ItemAdd.options item=option} {include file="gallery:`$option.file`" l10Domain=$option.l10Domain} {/foreach} {/if}
{$smarty.capture.submitButtons}