summaryrefslogtreecommitdiff
path: root/sample/src/setup.xml
blob: 327659d66dc6c4d706ce727c3267be6d4330894b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
<?xml version="1.0" encoding="utf-8"?>
<gallery_setup version="2.0">
  <design>
    <!-- path to the design setup xml file -->
    <setup_file>../../templates/default.xml</setup_file>

    <!--  use root gallery directory to store all support files   -->
    <!--  and relative paths in sub-albums                        -->
    <!--  default = no (old behaviour)                            -->
    <supplemental_files_use_common_root value="yes" />
  </design>

  <images>
    <!--  preload next image (allowed values: "yes", "no") default = yes  -->
    <preload value="yes" />

    <!--  get image title and description from IPTC and EXIF as a fallback                                -->
    <!--  if not overriden by <title> and <title_description> tags                                        -->
    <!--    (allowed values: "yes", "no") default = no                                                    -->
    <!--  titles are retrieved from the following fields (sorted by priority):                            -->
    <!--    Iptc.Application2.Caption, Jpeg.Comment, Exif.Image.ImageDescription, Exif.Photo.UserComment  -->
    <use_iptc_exif value="yes" />

    <!--  erase embedded thumbnail image (both from original and big images)?    -->
    <!--   (allowed values: "yes", "no") default = no                            -->
    <erase_embed_thumbnail value="yes" />

    <!--  erase all XMP data, usually containing RAW develop settings  -->
    <!--   (allowed values: "yes", "no") default = yes                 -->
    <strip_xmp value="yes" />

    <!--  in case of supplied external EXIF data, shall these be written in generated images?   -->
    <!--  This will make image files carry the same data as used for pages                      -->
    <!--   (allowed values: "yes", "no") default = "no" as this could overwrite important data  -->
    <write_supplied_exif value="no" />

    <!--  don't copy full size (original) images                         -->
    <!--    <nofullsize/> can be used globally for whole gallery,        -->
    <!--    for full album or selectively for each image                 -->
    <!--    - override with <fullsize/> for album or for separate image  -->
<!--    <nofullsize />  -->

    <!--  Make thumbnails squared, crop in different ways:               -->
    <!--    none   - no squared thumbnails, retain previous behaviour (default)  -->
    <!--    simple - crop from center, shave 5% from borders             -->
    <!--    ... more to come! (looking for a fast and clever algorithm)  -->
    <squared_thumbnails type="none" />

    <!--  autorotate input images according to EXIF information, unless   -->
    <!--  provided in the album source file (copy mode)  (default = yes)  -->
    <autorotate value="yes" />
  </images>

  <meta>
    <!--  Global metainformation for use in META tags in html head section  -->
    <!--  and also for the Atom feed. In case of META tags these will       -->
    <!--  automatically apply to _all_ pages unless overriden in the album. -->
    <!--  This is probably not a good idea for large galleries.             -->
    <author>John Doe</author>
    <author_email>johndoe@example.com</author_email>
    <description>CGG Sample gallery</description>
    <!--  keywords are usually not needed at all  -->
    <keywords>cataract, sample, gallery</keywords>

    <!--  use item (image) title as <meta description> tag value          -->
    <!--   (allowed values: "yes", "no") default = yes                    -->
    <!--  this setting is independent from the global meta tags settings  -->
    <use_title_as_meta value="yes" />

    <!--  mandatory site name, part of all page titles  -->
    <site title="CGG Testing Site" />

    <!--  add your copyright string to every picture                          -->
    <!--  stored in EXIF::Image::Copyright and IPTC::Application2::Copyright  -->
    <!--  usual format: "Copyright, John Smith, 19xx. All rights reserved."   -->
    <add_copyright>This is custom copyright string added to every picture.
And the second line.</add_copyright>

    <!--  favicon support, the "type" attribute is optional,   --> 
    <!--  please alter it to the right icon MIME type          -->
    <!--    http://www.w3.org/2005/10/howto-favicon            -->
    <!--  Please note that the <support_files_use_common_root> settings  --> 
    <!--    declared earlier applies to favicons as well                 -->
    <favicon type="image/png">apple-red.png</favicon>
  </meta>

  <navigation>
    <!--  enabled: jump to the parent item when going up in the structure  -->
    <!--  disabled: links will always go to the top of the parent page     -->
    <use_inpage_links value="yes" />
  </navigation>

  <feed enable="yes">
    <!--  Atom feed generator, disabled by default.                  -->
    <!--  Feeds are used to keep users informed about site updates.  -->
    <!--  It's required to add corresponding <news> sections         -->
    <!--  to particular album index files.                           -->
    <filename>atomfeed.xml</filename>
    <title>CGG Sample gallery site news</title>
  </feed>

  <location>
    <!--  Root URL of the gallery. Required for feeds.  -->
    <base_url>http://www.example.com/</base_url>
    <!--  Local path to the gallery root. Specify either absolute path  -->
    <!--  or relative to ServerRoot. Required for password protection.  -->
    <local_path>/var/www/</local_path>
  </location>

  <footer><![CDATA[
    So this is footer, suitable place for copyright, W3C validation links and advertisement! | 
    Generated with <a href="http://cgg.bzatek.net/" title="Cataract Gallery Generator">Cataract Gallery Generator</a>. |
    <a href="http://validator.w3.org/check/referer" title="Valid XHTML 1.0 Strict" rel="nofollow">XHTML 1.0 Strict</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="(in-)valid CSS 2.1" rel="nofollow">Invalid CSS 2.1</a>
  ]]></footer>

</gallery_setup>