summaryrefslogtreecommitdiff
path: root/setup.c
diff options
context:
space:
mode:
authorTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-31 19:29:50 +0100
committerTomas Bzatek <tbzatek@users.sourceforge.net>2008-12-31 19:29:50 +0100
commitdc66e451a966e5ab320451c87ad912a741a71d4e (patch)
treed6e002d12d895517481612b699e5eaecb39e4258 /setup.c
parente57e8ac7b198cd02331f0b66c12c9166641d373b (diff)
downloadcataract-dc66e451a966e5ab320451c87ad912a741a71d4e.tar.xz
Use image title as meta description
Allow per-album meta tags
Diffstat (limited to 'setup.c')
-rw-r--r--setup.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/setup.c b/setup.c
index f5b0384..627ee46 100644
--- a/setup.c
+++ b/setup.c
@@ -113,6 +113,7 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
setup->meta_author = xml_file_get_node_value (xml, "/gallery_setup/meta/author/text()");
setup->meta_description = xml_file_get_node_value (xml, "/gallery_setup/meta/description/text()");
setup->meta_keywords = xml_file_get_node_value (xml, "/gallery_setup/meta/keywords/text()");
+
s = xml_file_get_node_attribute (xml, "/gallery_setup/images/preload", "value");
setup->preload = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to TRUE */
if (s) g_free (s);
@@ -122,6 +123,9 @@ parse_setup_xml (const char *filename, TGallerySetup *setup)
s = xml_file_get_node_attribute (xml, "/gallery_setup/images/erase_embed_thumbnail", "value");
setup->erase_exif_thumbnail = s ? strcasecmp (s, "yes") == 0 : FALSE; /* default to FALSE */
if (s) g_free (s);
+ s = xml_file_get_node_attribute (xml, "/gallery_setup/meta/use_title_as_meta", "value");
+ setup->use_title_as_meta = s ? strcasecmp (s, "yes") == 0 : TRUE; /* default to FALSE */
+ if (s) g_free (s);
xml_parser_close (xml);