diff options
author | Natanael Copa <natanael.copa@gmail.com> | 2007-11-16 16:00:17 +0000 |
---|---|---|
committer | Natanael Copa <natanael.copa@gmail.com> | 2007-11-16 16:00:17 +0000 |
commit | d38700593d54f5103160843f09b40f2a4a99b953 (patch) | |
tree | a5b75e72228d2bb0eac9e6feb26c1a1131d0c3a5 | |
parent | dff154a30c36d8f50557ba9ff2640c59dcfc0ec1 (diff) | |
download | acf-core-d38700593d54f5103160843f09b40f2a4a99b953.tar.bz2 acf-core-d38700593d54f5103160843f09b40f2a4a99b953.tar.xz |
support for skins
git-svn-id: svn://svn.alpinelinux.org/acf/core/trunk@322 ab2d0c66-481e-0410-8bed-d214d4d58bed
-rw-r--r-- | acf.conf | 1 | ||||
-rw-r--r-- | app/acf_www-controller.lua | 3 | ||||
-rw-r--r-- | app/template-html.lsp | 3 | ||||
-rw-r--r-- | www/Makefile | 3 | ||||
-rw-r--r-- | www/simple/simple.css | 0 | ||||
-rw-r--r-- | www/static/static.css (renamed from www/static/webconf.css) | 0 |
6 files changed, 7 insertions, 3 deletions
@@ -1,2 +1,3 @@ appdir=/usr/share/acf/app/ libdir=/usr/share/acf/lib/ +skin=simple diff --git a/app/acf_www-controller.lua b/app/acf_www-controller.lua index 5f30124..60c4ad4 100644 --- a/app/acf_www-controller.lua +++ b/app/acf_www-controller.lua @@ -160,7 +160,8 @@ view_resolver = function(self) action = self.conf.action, hostname = h.hostname.value, prefix = self.conf.prefix, - script = self.conf.appuri + script = self.conf.appuri, + skin = self.conf.skin } -- Build the menu table diff --git a/app/template-html.lsp b/app/template-html.lsp index de19458..59a68f0 100644 --- a/app/template-html.lsp +++ b/app/template-html.lsp @@ -14,7 +14,8 @@ Content-Type: text/html <head> <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1"> <title><?= pageinfo.hostname .. " - " .. pageinfo.controller .. "->" .. pageinfo.action ?></title> -<link rel="stylesheet" type="text/css" href="/static/webconf.css"> +<link rel="stylesheet" type="text/css" + href=<?= "/"..pageinfo.skin.."/"..pageinfo.skin..".css" ?> "> </head> <body> diff --git a/www/Makefile b/www/Makefile index cff3ee9..becae86 100644 --- a/www/Makefile +++ b/www/Makefile @@ -13,7 +13,8 @@ WWW_DIST=cgi-bin/acf\ static/submenu.css\ static/unselected.gif\ static/webconf-purple.css\ - static/webconf.css\ + static/static.css\ + simple/simple.css\ index.html\ sample.html diff --git a/www/simple/simple.css b/www/simple/simple.css new file mode 100644 index 0000000..e69de29 --- /dev/null +++ b/www/simple/simple.css diff --git a/www/static/webconf.css b/www/static/static.css index e2c28ca..e2c28ca 100644 --- a/www/static/webconf.css +++ b/www/static/static.css |