Update of /cvsroot/php-blog/serendipity/include
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19351/include
Modified Files:
functions_installer.inc.php functions_smarty.inc.php
Log Message:
Pretty URLs for CSS output, hopefully exactly as Tom imagined.
I'm going to tweak IE styles now, so I needed the PNG behavior plugin stuff.
Also fix the PAT_AUTHORS into the htaccess template and properly move the
"search" pretty URL code above matching index.php so that it works on
hosts without rewriting.
Index: functions_installer.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_installer.inc.php,v
retrieving revision 1.25
retrieving revision 1.26
diff -u -d -r1.25 -r1.26
--- functions_installer.inc.php 10 Jan 2005 13:12:56 -0000 1.25
+++ functions_installer.inc.php 11 Jan 2005 12:53:28 -0000 1.26
@@ -594,6 +594,8 @@
'{PAT_DELETE}', '{PATH_DELETE}',
'{PAT_APPROVE}', '{PATH_APPROVE}',
'{PAT_SEARCH}', '{PATH_SEARCH}',
+ '{PAT_CSS}', '{PATH_CSS}',
+ '{PAT_AUTHORS}', '{PATH_AUTHORS}'
),
array(
@@ -611,7 +613,9 @@
trim(PAT_PLUGIN, '@/i'), PATH_PLUGIN,
trim(PAT_DELETE, '@/i'), PATH_DELETE,
trim(PAT_APPROVE, '@/i'), PATH_APPROVE,
- trim(PAT_SEARCH, '@/i'), PATH_SEARCH
+ trim(PAT_SEARCH, '@/i'), PATH_SEARCH,
+ trim(PAT_CSS, '@/i'), PATH_CSS,
+ trim(PAT_AUTHORS, '@/i'), PATH_AUTHORS
),
implode('', $a)
Index: functions_smarty.inc.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/include/functions_smarty.inc.php,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- functions_smarty.inc.php 4 Jan 2005 18:35:10 -0000 1.11
+++ functions_smarty.inc.php 11 Jan 2005 12:53:28 -0000 1.12
@@ -154,6 +154,7 @@
'head_version' => $serendipity['version'],
'head_title' => $serendipity['head_title'],
'head_subtitle' => $serendipity['head_subtitle'],
+ 'head_link_stylesheet' => serendipity_rewriteURL(PATH_CSS . '/serendipity.css'),
'CONST' => get_defined_constants(),
|