From 1a8bef4adce47cbbccc63c447f44d238eb5b2ddd Mon Sep 17 00:00:00 2001 From: Simon Cozens Date: Mon, 9 Apr 2007 13:27:40 +0000 Subject: [PATCH] Some messing around to allow user-defined styles. Fixes #23. Actually it was there all along in Maypole, we just needed to make use of it. git-svn-id: http://svn.simon-cozens.org/memories/trunk@58 041978f6-d955-411f-a9d7-1d8545c9c3c7 --- Memories/Config.pm.example | 5 ++- templates/header | 1 + templates/static/memories.css | 58 ++--------------------------------- templates/static/tagcloud.css | 51 ++++++++++++++++++++++++++++++ 4 files changed, 59 insertions(+), 56 deletions(-) create mode 100644 templates/static/tagcloud.css diff --git a/Memories/Config.pm.example b/Memories/Config.pm.example index 9796ab0..fb22d82 100644 --- a/Memories/Config.pm.example +++ b/Memories/Config.pm.example @@ -6,7 +6,10 @@ package Memories::Config; Memories->config->uri_base("http://memories.simon-cozens.org/"); # This is where your templates will live. -Memories->config->{template_root} = "/home/simon/maypole-sites/memories/templates"; +Memories->config->{template_root} = [ + "/web/memories/mytemplates/", # User-defined templates + "/etc/memories/templates/", # Factory templates +]; # Here is where uploaded photos will be stored. Your web server user # should own this directory. diff --git a/templates/header b/templates/header index 797ad08..20c6639 100644 --- a/templates/header +++ b/templates/header @@ -3,6 +3,7 @@ Memories - Photo Sharing [% IF photo %] - [% photo.title; END%] + [% IF photos %]