summaryrefslogtreecommitdiff
path: root/sample
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-07 15:10:47 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2009-03-07 15:10:47 +0100
commitaaeb9af232372ea8001fe9e71faf100f4fd34886 (patch)
tree783a050fe8713068281018e3bc07f36cdba8a4d0 /sample
parentd9d50c1f90c623c94cdb3437b8ef925fd1e88881 (diff)
downloadcataract-aaeb9af232372ea8001fe9e71faf100f4fd34886.tar.xz
Support for extra (enclosed) files in albums
Diffstat (limited to 'sample')
-rw-r--r--sample/src/extra_files/_orig/.htaccess2
-rw-r--r--sample/src/extra_files/duck.pngbin0 -> 7581 bytes
-rw-r--r--sample/src/extra_files/index.xml27
-rw-r--r--sample/src/extra_files/subdir/doxywizard.pngbin0 -> 4231 bytes
4 files changed, 29 insertions, 0 deletions
diff --git a/sample/src/extra_files/_orig/.htaccess b/sample/src/extra_files/_orig/.htaccess
new file mode 100644
index 0000000..301235e
--- /dev/null
+++ b/sample/src/extra_files/_orig/.htaccess
@@ -0,0 +1,2 @@
+# Place user rules here
+
diff --git a/sample/src/extra_files/duck.png b/sample/src/extra_files/duck.png
new file mode 100644
index 0000000..e59d756
--- /dev/null
+++ b/sample/src/extra_files/duck.png
Binary files differ
diff --git a/sample/src/extra_files/index.xml b/sample/src/extra_files/index.xml
new file mode 100644
index 0000000..bbeacc1
--- /dev/null
+++ b/sample/src/extra_files/index.xml
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="utf-8"?>
+<gallery type="album">
+ <general>
+ <ID>Extra files</ID>
+ <title>Extra files</title>
+ <description><![CDATA[This is to demonstrate ability to include extra files in album. Such files can then be used in the HTML code - description, footer, both in album/index page and its particular item pages. Common use is enclosed documents, brochures, logos, maps, ... Another use scenario can be <code>.htaccess</code> control files.<br />
+ <br />
+ Please keep in mind to specify relative paths only and also that target paths match source ones.<br />
+ <br />
+ Test: <br />
+ <div style="padding-left: 3em;">
+ <img src="duck.png" alt="" /> (<code>duck.png</code> in the album directory)<br />
+ <img src="subdir/doxywizard.png" alt="" /> (<code>subdir/doxywizard.png</code>)<br />
+ <a href="_orig/.htaccess">_orig/.htaccess</a> (<code>.htaccess</code> file, e.g. allowing indexes so users can <code>wget -r</code> all images)<br />
+ </div>
+ ]]></description>
+
+ <extra_files><![CDATA[duck.png
+ subdir/doxywizard.png
+ _orig/.htaccess
+ ]]></extra_files>
+
+ </general>
+
+ <items>
+ </items>
+</gallery>
diff --git a/sample/src/extra_files/subdir/doxywizard.png b/sample/src/extra_files/subdir/doxywizard.png
new file mode 100644
index 0000000..c648231
--- /dev/null
+++ b/sample/src/extra_files/subdir/doxywizard.png
Binary files differ