]> CyberLeo.Net >> Repos - SourceForge/phpwiki.git/blob - pgsrc/PhotoAlbumPlugin
exclude fix: glob-style wildcards are now expanded and matched against.
[SourceForge/phpwiki.git] / pgsrc / PhotoAlbumPlugin
1 Date: Sat, 4 Jan 2003 23:05:22 -0500
2 Mime-Version: 1.0 (Produced by PhpWiki 1.3.4)
3 X-Rcs-Id: $Id: PhotoAlbumPlugin,v 1.1 2003-01-05 04:20:27 carstenklapp Exp $
4 Content-Type: application/x-phpwiki;
5   pagename=PhotoAlbumPlugin;
6   flags="";
7   pgsrc_version="2 $Revision: 1.1 $";
8   markup=2;
9   charset=iso-8859-1
10 Content-Transfer-Encoding: binary
11
12 !!! Summary
13 Makes an 'album' by displaying a set of photos listed in a text file
14 with optional descriptions.
15
16 !!! Usage
17 <verbatim>
18 <?plugin PhotoAlbum
19          src=http://server/textfile
20          mode=[column|row]
21          align=[center|left|right]
22          desc=true
23          sort=false
24          height=100%
25          width=100%
26 ?>
27 </verbatim>
28
29 !!! Arguments
30 ''Only the ='src'= parameter is mandatory.''
31
32 __src__:
33   Url to a CSV textfile which separates filename and description of
34   each photo. Photos listed in the text file have to be in same
35   directory as the file. Descriptions are optional.
36
37 __mode__:
38   Specifies how the images are arranged, ='column'= means vertically,
39   ='row'= means horizontally. Default is ='row'=.
40
41 __align__:
42   Only applicable to column mode. Default is ='center'=.
43
44 __desc__:
45   Display any descriptions given in the text file. Default is true.
46
47 __sort__:
48   Sort images by file name. By default the order in the text file is
49   followed.
50
51 __height__, __width__:
52   Height and width are calculated compared to original metrics
53   retrieved by [php-function:getimagesize] and can be absolute or a
54   percentage (e.g. "50%").
55
56 !!! Examples
57 !! Text file
58 Possible content of a valid text file:
59
60 <verbatim>
61 photo-01.jpg; My girlfriend and I
62 photo-02.jpg
63 christmas.gif; Merry Christmas!
64 </verbatim>
65
66 !! Sample Album
67 <?plugin PhotoAlbum
68          src="http://phpwiki.sourceforge.net/demo/themes/Hawaiian/images/pictures/PhotoAlbum"
69 ?>
70
71 !!! Plugin Author
72 [Ted Vinke|mailto:teddy@jouwfeestje.com] <teddy@jouwfeestje.com>
73 ----
74 PhpWikiDocumentation WikiPlugin