Update of /cvsroot/php-blog/serendipity/templates/default
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv24957/templates/default
Modified Files:
Tag: branch-smarty
smarty_layout.php
Log Message:
Extended path rewrite:
- Use diffirent URI for browsing months
- Allow the browsing of weeks
- Call "-short" "/summary"
- Use rewritten links in syndication plugin
- Allow access to rss1.0 feeds through rewritten URLs
- Allow access to comment feeds by doing /feeds/comments.(rss|atom|rss1|rss2)
- Add the ability to show months, weeks or days in the archive plugin sidebar
- Add the ability to define how many months, weeks or days that should be displayed in the archive plugin sidebar
- Implement serendipity_rewriteURL() to handle all the rewrite path logic, makes the code MUCH cleaner
TODO: Needs version bump, but I want to have it tested before we do so
TODO: The [RSS] buttons for the category listing still uses the old rss.php syntax, need to figure out how to solve that
Index: smarty_layout.php
===================================================================
RCS file: /cvsroot/php-blog/serendipity/templates/default/Attic/smarty_layout.php,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -d -r1.1.2.3 -r1.1.2.4
--- smarty_layout.php 19 Sep 2004 00:31:25 -0000 1.1.2.3
+++ smarty_layout.php 16 Oct 2004 17:27:15 -0000 1.1.2.4
@@ -4,18 +4,13 @@
include_once(S9Y_INCLUDE_PATH . 'serendipity_plugin_api.php');
include_once(S9Y_INCLUDE_PATH . 'serendipity_sidebar_items.php');
-if (!isset($serendipity['GET']['range']) || !is_numeric($serendipity['GET']['range'])) {
- $serendipity['GET']['range'] = date('Ymd');
-}
-
-// The main area
switch ($serendipity['GET']['action']) {
// User wants to read the diary
case 'read':
if (isset($serendipity['GET']['id'])) {
serendipity_printEntries(array(serendipity_fetchEntry('id', $serendipity['GET']['id'])), 1);
} else {
- serendipity_printEntries(serendipity_fetchEntries($serendipity['GET']['range'], true, 15));
+ serendipity_printEntries(serendipity_fetchEntries($serendipity['range'], true, 15));
}
break;
|