annotate example.cfg @ 348:596196f2b0c5 default tip

Improve relative URL translation in header text blobs.
author Matti Hamalainen <ccr@tnsp.org>
date Wed, 20 Dec 2023 09:17:55 +0200
parents 8ce9474f41f5
children
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
1 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
2 ;;; MGallery example configuration
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
3 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
4
273
8ce9474f41f5 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 263
diff changeset
5 ;;; Timezone used for timestamp/date calculations.
130
f825d644cf7a Implement new config setting "timezone" for specifying the timezone used for date/timestamp interpretation.
Matti Hamalainen <ccr@tnsp.org>
parents: 129
diff changeset
6 ; See http://php.net/manual/en/timezones.php
273
8ce9474f41f5 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 263
diff changeset
7 ; This MUST BE CONFIGURED!
130
f825d644cf7a Implement new config setting "timezone" for specifying the timezone used for date/timestamp interpretation.
Matti Hamalainen <ccr@tnsp.org>
parents: 129
diff changeset
8 timezone = "Europe/Helsinki"
f825d644cf7a Implement new config setting "timezone" for specifying the timezone used for date/timestamp interpretation.
Matti Hamalainen <ccr@tnsp.org>
parents: 129
diff changeset
9
f825d644cf7a Implement new config setting "timezone" for specifying the timezone used for date/timestamp interpretation.
Matti Hamalainen <ccr@tnsp.org>
parents: 129
diff changeset
10
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
11 ;;; Gallery title, etc.
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
12 title_prefix = "My Own Gallery"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
13 title_sep = " - "
273
8ce9474f41f5 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 263
diff changeset
14 page_info = "<b>MGallery</b> &copy; Copyright 2015-2019 Tecnic Software productions (TNSP)"
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
15
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
16
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
17 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
18 ;;; CSS / layout style
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
19 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
20 css = "/mgallery/basic.css"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
21 album_icon = "/mgallery/album_sm.png"
129
bad658e1e7ed Config option "page_urchin" should actually be "urchin_file".
Matti Hamalainen <ccr@tnsp.org>
parents: 128
diff changeset
22 ;urchin_file = "urchin.inc.php"
107
71de97240799 Add support for urchin file.
Matti Hamalainen <ccr@tnsp.org>
parents: 106
diff changeset
23
151
4e25150aa868 Change js_path configuration setting to js_file.
Matti Hamalainen <ccr@tnsp.org>
parents: 149
diff changeset
24 ; Relative path+filename to mgallery.js
4e25150aa868 Change js_path configuration setting to js_file.
Matti Hamalainen <ccr@tnsp.org>
parents: 149
diff changeset
25 js_file = "/mgallery/mgallery.js"
149
b4751909c48f Move some Javascript code to a separate file and make the location configurable.
Matti Hamalainen <ccr@tnsp.org>
parents: 140
diff changeset
26
140
814c422c9194 Document cover_images setting better. Add album_row_limit to example config.
Matti Hamalainen <ccr@tnsp.org>
parents: 130
diff changeset
27 ; Use image from sub-album as album cover image?
814c422c9194 Document cover_images setting better. Add album_row_limit to example config.
Matti Hamalainen <ccr@tnsp.org>
parents: 130
diff changeset
28 ; If disabled, album_icon will be always used for cover image
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
29 ;cover_images = yes
17
3f7bc4202df3 Add new configuration setting 'cover_images' to disable/enable sub-album
Matti Hamalainen <ccr@tnsp.org>
parents: 8
diff changeset
30
140
814c422c9194 Document cover_images setting better. Add album_row_limit to example config.
Matti Hamalainen <ccr@tnsp.org>
parents: 130
diff changeset
31
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
32 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
33 ;;; Important paths and urls
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
34 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
35 base_path = "/absolute/path/to/your/gallery"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
36 base_url = "/base/url/"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
37
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
38
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
39 ;image_url = "/gallery/"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
40 ;mgallery_php = "mgallery.php"
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
41 ;format_exts = "\.jpg|\.png|\.gif|\.jpeg|\.webp"
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
42
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
43 ;captions_file = "captions.txt"
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
44 ;header_file = "header.txt"
273
8ce9474f41f5 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 263
diff changeset
45 ;info_file = "mgallery.info"
8ce9474f41f5 Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 263
diff changeset
46 ;cache_file = ".mgallery.cache"
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
47 ;clean_urls = no
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
48
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
49
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
50 ;;;
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
51 ;;; Thumbnail/medium size image settings
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
52 ;;;
185
cb7019690a73 Separate medium image and thumbnail directories / handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 151
diff changeset
53 ;tn_path = "tn/"
cb7019690a73 Separate medium image and thumbnail directories / handling.
Matti Hamalainen <ccr@tnsp.org>
parents: 151
diff changeset
54 ;med_path = "med/"
41
5ecb92a7338c Add some comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 19
diff changeset
55
5ecb92a7338c Add some comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 19
diff changeset
56 ;;; If you change thumbnail resolutions, you may wish to change the CSS files as well
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
57 ; Supported med/tn formats are "jpeg" and "webp", depending whether your
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
58 ; installation of PHP and/or ImageMagick or GraphicsMagick supports WebP.
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
59
41
5ecb92a7338c Add some comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 19
diff changeset
60 ; tn CSS selector: .galleryEntry
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
61 ;tn_format = "jpeg"
0
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
62 ;tn_width = 140
ac688606ec4b Initial import of code.
Matti Hamalainen <ccr@tnsp.org>
parents:
diff changeset
63 ;tn_height = 100
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
64 ;tn_quality = 85
41
5ecb92a7338c Add some comments.
Matti Hamalainen <ccr@tnsp.org>
parents: 19
diff changeset
65
263
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
66 ;med_format = "jpeg"
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
67 ;med_width = 960
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
68 ;med_height = 640
6a9e6277ef3c Update example configuration.
Matti Hamalainen <ccr@tnsp.org>
parents: 235
diff changeset
69 ;med_quality = 90