{*
* Gallery2Flickr
*
* A bridge between your gallery2 installation and flickr.com
*
* File: FlickrExport.tpl
*
* Template for exporting images and albums to flickr.
*
* Copyright:
* (c) 2006 - 2008 hide@address.com
* Distributed under the terms of the GNU General Public License v2
*
* Author(s):
* Gunnar Wrobel <hide@address.com>
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License as
* published by the Free Software Foundation; either version 2 of the
* License, or (at your option) any later version.
*
* This program is distributed in the hope that it will be useful, but
* WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA
* 02110-1301, USA.
*
* (Gallery2Flickr is a module for Gallery2 - a web based photo album
* viewer and editor - Copyright for Gallery2: (C) 2000-2008 Bharat
* Mediratta)
*
* $Id: FlickrExport.tpl 10 2008-01-18 09:39:31Z luciferc $
*
*}
<?xml version="1.0" encoding="utf-8"?>
<div class="gbBlock gcBackground1">
<h2>
{g->text text="Flickr Export"}
</h2>
</div>
{if isset($status.exported)}
<div class="gbBlock">
<h2 class="giSuccess">
{g->text text="Successfully exported the items!"}
</h2>
</div>
<hr/>
{/if}
{if isset($Flickr.album)}
<div class="gbBlock">
<h3>Export</h3>
The album you chose for this action was: <b>{$Flickr.item.title|default:$Flickr.item.pathComponent}</b>
</div>
{else}
<div class="gbBlock">
The image you chose for this action was: <b>{$Flickr.item.title|default:$Flickr.item.pathComponent}</b>
</div>
{/if}
<hr/>
<form action="{g->url}" method="post">
<div class="gbBlock">
<h3>Permissions</h3>
<b>
Photo view permissions:
</b>
<br/>
<input type="radio" id="gfPermNone"{if $Flickr.perm=='none'} checked="checked"{/if}
name="{g->formVar var="form[permissions]"}" value="none"/>
<label for="gfPermNone">
{g->text text="Nobody but yourself"}
</label>
<br/>
<input type="radio" id="gfPermFamily"{if $Flickr.perm=='family'} checked="checked"{/if}
name="{g->formVar var="form[permissions]"}" value="family"/>
<label for="gfPermFamily">
{g->text text="Family"}
</label>
<br/>
<input type="radio" id="gfPermFriends"{if $Flickr.perm=='friends'} checked="checked"{/if}
name="{g->formVar var="form[permissions]"}" value="friends"/>
<label for="gfPermFriends">
{g->text text="Friends"}
</label>
<br/>
<input type="radio" id="gfPermFrFa"{if $Flickr.perm=='frfa'} checked="checked"{/if}
name="{g->formVar var="form[permissions]"}" value="frfa"/>
<label for="gfPermFrFa">
{g->text text="Friends and Family"}
</label>
<br/>
<input type="radio" id="gfPermAll"{if $Flickr.perm=='all'} checked="checked"{/if}
name="{g->formVar var="form[permissions]"}" value="all"/>
<label for="gfPermAll">
{g->text text="Everybody"}
</label>
<br/>
</div>
<div class="gbBlock">
<input
type="submit"
class="inputTypeSubmit"
name="{g->formVar var="form[action][streamexport]"}" value="{g->text text="Export item to stream"}"/>
</div>
{if empty($Flickr.album)}
<div class="gbBlock">
{if empty($Flickr.sets)}
There are no sets in your flickr account. You will only be able to export to your photostream.
{else}
<table class="gbDataTable">
{foreach from=$Flickr.sets.photoset item=fset}
<tr>
<td>
<b>
{$fset.title}
</b>
</td>
<td>
({$fset.photos} Photos)
</td>
{assign var="setid" value=$fset.id}
<td>
<input
type="submit"
class="inputTypeSubmit"
name="{g->formVar var="form[action][export][$setid]"}" value="{g->text text="Export image to this set"}"/>
</td>
</tr>
{/foreach}
{/if}
</table>
</div>
{/if}
<div>
{g->hiddenFormVars}
<input type="hidden" name="{g->formVar var="controller"}" value="Gallery2Flickr.FlickrExport"/>
<input type="hidden" name="{g->formVar var="form[formName]"}" value="{$form.formName}"/>
<input type="hidden" name="{g->formVar var="itemId"}" value="{$Flickr.item.id}"/>
</div>
</form>
<div class="block-core-GuestPreview gbBlock">
<a href="http://gunnarwrobel.de/projects/Gallery2Flickr.html">Gallery2Flickr</a> © 2006 - 2008 <a href="http://www.pardus.de">hide@address.com</a> (Author: <a href="http://gunnarwrobel.de">Gunnar Wrobel</a>)
</div>