From 934acc18bd9d374f2121b9563d20e0960002e5c5 Mon Sep 17 00:00:00 2001 From: tmont Date: Wed, 15 Oct 2008 08:09:16 +0000 Subject: [PATCH] add basic CSS file, and adjusted the RewriteRule to allow media/ stuff --- src/.htaccess | 5 +++-- src/lib/views/PanaceaPageView.php | 13 ++++++++++--- src/lib/views/PanaceaTemplateView.php | 3 ++- src/media/css/global.css | 9 +++++++++ 4 files changed, 24 insertions(+), 6 deletions(-) create mode 100644 src/media/css/global.css diff --git a/src/.htaccess b/src/.htaccess index e089103..8168030 100644 --- a/src/.htaccess +++ b/src/.htaccess @@ -1,4 +1,5 @@ RewriteEngine On -RewriteCond %{REQUEST_URI} !.*index\.php -RewriteRule .+ /panacea/src/index.php [L] \ No newline at end of file +RewriteCond %{REQUEST_URI} !.*index\.php$ +RewriteCond %{REQUEST_URI} !.*/media/.* +RewriteRule .* /panacea/src/index.php [L] \ No newline at end of file diff --git a/src/lib/views/PanaceaPageView.php b/src/lib/views/PanaceaPageView.php index 961817b..dd59960 100644 --- a/src/lib/views/PanaceaPageView.php +++ b/src/lib/views/PanaceaPageView.php @@ -13,7 +13,7 @@ require_once 'NowhereConcave/bootstrap.php'; /** - * View for standard wiki pages + * View for standard Panacea pages * * @package Panacea * @subpackage Views @@ -28,8 +28,15 @@ * @author Tommy Montgomery * @since 2008-10-05 */ - public function send() { - echo '

Hello

'; + public function send() { ?> + +

Panacea

+ +

+ Hello! +

+ addCss('/panacea/src/media/css/global.css'); } /** diff --git a/src/media/css/global.css b/src/media/css/global.css new file mode 100644 index 0000000..3875bd3 --- /dev/null +++ b/src/media/css/global.css @@ -0,0 +1,9 @@ +html { + overflow: auto; +} +body { + background-color: #999999; + font-family: Verdana, Arial, sans-serif; + font-size: 8pt; + color: #000000; +} \ No newline at end of file