<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Photo Album Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Photo Album Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><h2>Summary</h2>
<p class="tightenable top">Makes an 'album' by displaying a set of photos listed in a text file
with optional descriptions.</p>
<h2>Usage</h2>
<pre class="tightenable top">
&lt;?plugin PhotoAlbum
         src=http://server/textfile
         mode=[column|row]
         align=[center|left|right]
         desc=true
         sort=false
         height=100%
         width=100%
?&gt;</pre>
<h2>Arguments</h2>
<p class="tightenable top"><em>Only the <tt>'src'</tt> parameter is mandatory.</em></p>
<dl><dt class="tightenable bottom"><strong>src</strong></dt>
<dd class="tightenable top">Url to a CSV textfile which separates filename and description of
each photo. Photos listed in the text file have to be in same
directory as the file. Descriptions are optional.</dd>
<dt class="tightenable bottom"><strong>mode</strong></dt>
<dd class="tightenable top">Specifies how the images are arranged, <tt>'column'</tt> means vertically,
<tt>'row'</tt> means horizontally. Default is <tt>'row'</tt>.</dd>
<dt class="tightenable bottom"><strong>align</strong></dt>
<dd class="tightenable top">Only applicable to column mode. Default is <tt>'center'</tt>.</dd>
<dt class="tightenable bottom"><strong>desc</strong></dt>
<dd class="tightenable top">Display any descriptions given in the text file. Default is true.</dd>
<dt class="tightenable bottom"><strong>sort</strong></dt>
<dd class="tightenable top">Sort images by file name. By default the order in the text file is
followed.</dd>
<dt class="tightenable bottom"><strong>height</strong>, <strong>width</strong></dt>
<dd class="tightenable top">Height and width are calculated compared to original metrics
retrieved by <a href="http://www.php.net/getimagesize" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />php-function:</span><span class="wikipage">getimagesize</span></a> and can be absolute or a
percentage (e.g. &quot;50%&quot;).</dd>
</dl>
<h2>Examples</h2>
<h3>Text file</h3>
<p class="tightenable top">Possible content of a valid text file:</p>
<pre class="tightenable">
photo-01.jpg; My girlfriend and I
photo-02.jpg
christmas.gif; Merry Christmas!</pre>
<h3>Sample Album</h3>
<div class="plugin tightenable top" id="PhotoAlbumPlugin3"><div class="errors"><strong>Plugin PhotoAlbum failed.</strong> <div class="errors"><strong>Plugin PhotoAlbum failed.</strong> File extension for csv file has to be '.csv'</div>
</div>
</div>
<h2>Plugin Author</h2>
<p class="tightenable top bottom"><a href="mailto:teddy@jouwfeestje.com" target="" class="namedurl"><span style="white-space: nowrap"><img src="images/mailto.png" alt="" class="linkicon" border="0" />Ted</span> Vinke</a> &lt;teddy@jouwfeestje.com&gt;</p>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="WikiPlugin.html" class="wiki">WikiPlugin</a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on January 9, 2004 10:34 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
