3
* If you want to customize this file, do not edit it directly since future upgrades
4
* may overwrite it. Instead, copy it into a new directory called "local" and edit that
5
* version. Gallery will look for that file first and use it if it exists.
7
<div class="gbBlock gcBackground1">
8
<h2> {g->text text="Import from Picasa 2"} </h2>
10
<p class="giDescription">
11
{g->text text="This operation takes data (images, descriptions, orderings etc.) from <strong>Picasa 2</strong> and brings it into <strong>Gallery 2</strong>."}
15
{if (!$SelectPicasaExportPath.hasToolkit)}
16
<div class="gbBlock"><p class="giError">
18
{g->url arg1="view=core.SiteAdmin" arg2="subView=core.AdminModules"}
20
{g->text text="You don't have any Graphics Toolkit activated to handle JPEG images. If you import now, you will not have any thumbnails. Visit the <a href=\"%s\">Modules</a> page to activate a Graphics Toolkit." arg1=$smarty.capture.url}
26
<input type="hidden" name="{g->formVar var="controller"}" value="picasa.SelectPicasaExportPath"/>
27
<input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>
31
<h4> {g->text text="Destination Album"} </h4>
32
<p class="giDescription">
33
{g->text text="Please select the gallery Album you want to import your picasa album into."}
36
<select name="{g->formVar var="form[destinationAlbumId]"}">
37
{foreach from=$SelectPicasaExportPath.g2AlbumTree item=album}
38
<option value="{$album.data.id}"{if $form.destinationAlbumId==$album.data.id}
39
selected="selected"{/if}>
40
{" "|repeat:$album.depth}--
41
{$album.data.title|default:$album.data.pathComponent}
46
<h4> {g->text text="Path or File"} </h4>
47
<p class="giDescription">
48
{g->text text="This process will import Data from a Picasa 2 XML-Export. You must enter the path to the directory with the Picasa 2 files. Example: <i>/path/to/picasa2xml</i>"}
51
<input type="text" size="60"
52
name="{g->formVar var="form[picasaXmlPath]"}" value="{$form.picasaXmlPath}"
53
id='giFormPath' autocomplete="off"/>
54
{g->autoComplete element="giFormPath"}
55
{g->url arg1="view=core.SimpleCallback" arg2="command=lookupDirectories" arg3="prefix=__VALUE__"
59
{if isset($form.error.picasaXmlPath.missing)}
61
{g->text text="You did not enter a path."}
64
{if isset($form.error.picasaXmlPath.invalid)}
66
{g->text text="The path that you entered does not contain valid Picasa export data."}
70
{if !empty($SelectPicasaExportPath.recentPaths)}
71
<script type="text/javascript">
73
function selectPath(path) {ldelim}
74
document.getElementById("siteAdminForm").elements['{g->formVar var="form[picasaXmlPath]"}'].value = path;
80
{g->text text="Recently Used Paths"}
83
{foreach from=$SelectPicasaExportPath.recentPaths key=path item=count}
84
{capture name="escapedPath"}{$path|replace:"\\":"\\\\"}{/capture}
85
<a href="javascript:selectPath('{$smarty.capture.escapedPath}')">{$path}</a>
92
<div class="gbBlock gcBackground1">
93
<input type="submit" class="inputTypeSubmit"
94
name="{g->formVar var="form[action][select]"}" value="{g->text text="Select"}"/>