summaryrefslogtreecommitdiff
path: root/sample/src/setup.xml
blob: ca2c33855ebc8393b87b10dabffe39ea2a92a6ad (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
<?xml version="1.0" encoding="utf-8"?>
<gallery_setup>
  <templates>
    <!-- path to templates (design)  -->
    <path>../../templates</path>
    
    <!-- index: top level page -->
    <index>template-index.tmpl</index>   
    <!-- album: list of photos in directory -->
    <album>template-album.tmpl</album>
    <!-- photo: single photo page -->
    <photo>template-view_photo.tmpl</photo>

    <!-- mandatory files used in templates -->
    <styles>styles.css</styles>
    <scripts>scripts-general.js</scripts>
  </templates>
  
  <images>
    <!--  default sizes of thumbnail and preview images  -->
    <thumbnail landscape_w="180" landscape_h="120" 
               portrait_w="120" portrait_h="180"
               quality="80" />
    <preview landscape_w="900" landscape_h="600" 
             portrait_w="500" portrait_h="750"
             quality="95" />
    <!--  preview image border style - use your custom CSS style to display frame around image -->
    <border style="border_single" />
    <!--  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" />
  </images>
  
  <meta>
    <!--  global META tags in html head section  -->
    <!--  these will automatically apply to _all_ pages unless overriden in the album  -->
    <!--  it's not probably a good idea for large galleries  -->
    <author>John Doe</author>
    <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>
  </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>

  <footer><![CDATA[
  <div class="footer">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" class="footermail">Cataract Gallery Generator</a>.
  </div>
  ]]></footer>

</gallery_setup>