<?xml version="1.0" encoding="UTF-8"?>
<Module>
<ModulePrefs title="Picasa Album Photostream (legacy gadget)"
title_url="http://viti-vino.blogspot.com"
width="300"
height="220"
scrolling="false"
directory_title="Picasa Album Photostream (legacy gadget). Use picasa-album-photostream.xml"
description="Insert a Thumbnails of a Picasa Album"
screenshot="http://www.liens-du-vin.ch/_pic062/picasa-photostream-screen.png"
thumbnail="http://www.liens-du-vin.ch/_pic062/picasa-photostream-thumb.png"
author="Philippe Chappuis"
author_email="info+gadgetCSE@liens-du-vin.ch"
author_affiliation="Google"
author_location="Rolle Switzerland"
author_link="http://www.liens-du-vin.ch"
author_photo="http://www.liens-du-vin.ch/_pic02/gadget-author-photo.png"
author_aboutme="An Engineer who likes to develop for the Net and tastes wines"
author_quote="A chief is a man who assumes responsibility. He says &quot;I was beaten&quot; he does not
say &quot;My men were beaten&quot; - Antoine de Saint-Exupery">

<Require feature="analytics" />

</ModulePrefs>

<UserPref name="UserName" display_name="User Name" required="true" default_value="philippe.chappuis" />
<UserPref name="AlbumID" display_name="Album ID" required="true" default_value="5389879854128999857" />
<UserPref name="Link" display_name="Link on Title" required="true" default_value="http://www.chatagnereaz.ch" />
<UserPref name="Titre" display_name="Title of Link" required="true" default_value="Château de Châtagneréaz" />
<UserPref name="Textcol" display_name="Color for Text" required="true" default_value="#000000" />
<UserPref name="Bordercol" display_name="Color for Border" required="true" default_value="#cc0000" />
<UserPref name="Backcol" display_name="Color for Background" required="true" default_value="#D1DAE3" />

<Content type="html"><![CDATA[

<style type="text/css">
body
{
text-align: center;
font-size: 80%;
border: solid 1px __UP_Bordercol__;
font-family:Arial,sans-serif;
font-size:12px;
}
img
{
margin: 0px 5px 5px 0px;
border-width: 0px;
}
  
a:link, a:visited
{
text-decoration: none;
color: __UP_Textcol__;
}

a:hover
{
font-weight: normal;
color: __UP_Textcol__;
}  
  
  
</style>

<script type="text/javascript">

function showalbum(json)
{

// titre

document.write('<div style="padding: 5px;"><a href="__UP_Link__" target="_blank" title="__UP_Titre__">__UP_Titre__</div>');

// nombre de photos
var nb = json.feed.entry.length; 
// main loop gets all the entries from the feed
for (var i = 0; i < nb; i++)
{
// traiter  image
var entry = json.feed.entry[i];
// titre image
var picTitle = entry.title.$t;
// URL image
var picUrl; 
for (var k = 0; k < entry.link.length; k++)
{
if (entry.link[k].rel == 'alternate')
  {
  picUrl = entry.link[k].href;
  break;
  }
}

// trouver la vignette

var thumb = entry.media$group.media$thumbnail[0].url;
document.write('<a href="' + picUrl + '" title="' + picTitle + '" target="_blank"><img src="' + thumb + '" alt="' + picTitle + '" title="' + picTitle + '" /></a>');
}
}
</script>
  
<script type="text/javascript">

document.body.style.backgroundColor = '__UP_Backcol__';
 
// les parametres

var prefs = new _IG_Prefs(__MODULE_ID__);

var Usr = _trim(prefs.getString("UserName"));
var Thu = _trim(prefs.getString("AlbumID")); 
  
var t4 = "<script src='http:\/\/picasaweb.google.com\/data\/feed\/base\/user\/"  + Usr; 
var t5 = "\/albumid\/" + Thu + "?&kind=photo&thumbsize=72&max-results=200";
var t6 = "&alt=json-in-script&callback=showalbum'><\/script><\/div>";

document.write(t4);
document.write(t5);
document.write(t6);

_IG_Analytics("UA-442758-35", "/g_photostream");
  
  
</script>
   
]]></Content>

</Module>
