From 2c494ce0492c9b0b38c3fc989105ad7bac9c8580 Mon Sep 17 00:00:00 2001 From: Pascal Chevrel Date: Sat, 5 May 2012 22:39:34 +0200 Subject: Issue 42: create atom.php at root, delete old 'atom10' template, update all internal links to point to the new location, put a redirect in place so as that moonmoon installs don't loose their users upon upgrading to a newer moonmoon --- custom/views.php | 13 +------------ custom/views/archive/head.tpl.php | 2 +- custom/views/archive/sidebar.tpl.php | 2 +- custom/views/atom10/index.tpl.php | 30 ------------------------------ custom/views/default/head.tpl.php | 2 +- custom/views/default/sidebar.tpl.php | 2 +- 6 files changed, 5 insertions(+), 46 deletions(-) delete mode 100644 custom/views/atom10/index.tpl.php (limited to 'custom') diff --git a/custom/views.php b/custom/views.php index 6d48d59..b34013f 100644 --- a/custom/views.php +++ b/custom/views.php @@ -1,16 +1,5 @@ array( - 'header' => 'Content-Type: text/xml; charset=UTF-8', - 'prolog' => ''."\n", - 'template' => dirname(__FILE__).'/views/rss10/rss10.tpl.php' - ), - 'atom10' => array( - //'header' => 'Content-Type: text/xml; charset=UTF-8', - 'header' => 'Content-Type: text/plain; charset=UTF-8', - 'prolog' => ''."\n", - 'template' => dirname(__FILE__).'/views/atom10/atom10.tpl.php' - ), 'archive' => array( 'header' => 'Content-type: text/html; charset=UTF-8', 'prolog' => '', @@ -21,4 +10,4 @@ $views = array( 'prolog' => '', 'template' => dirname(__FILE__).'/views/default/index.tpl.php' ) -); \ No newline at end of file +); diff --git a/custom/views/archive/head.tpl.php b/custom/views/archive/head.tpl.php index 03f99ae..005a75d 100644 --- a/custom/views/archive/head.tpl.php +++ b/custom/views/archive/head.tpl.php @@ -3,4 +3,4 @@ - + diff --git a/custom/views/archive/sidebar.tpl.php b/custom/views/archive/sidebar.tpl.php index 3f0d617..e21f377 100755 --- a/custom/views/archive/sidebar.tpl.php +++ b/custom/views/archive/sidebar.tpl.php @@ -21,7 +21,7 @@ usort($all_people, array('PlanetFeed', 'compare'));

diff --git a/custom/views/atom10/index.tpl.php b/custom/views/atom10/index.tpl.php deleted file mode 100644 index d88f17b..0000000 --- a/custom/views/atom10/index.tpl.php +++ /dev/null @@ -1,30 +0,0 @@ -getMaxDisplay(); -$count = 0; - -header('Content-Type: application/atom+xml; charset=UTF-8'); -echo ''; -?> - <?php echo htmlspecialchars($PlanetConfig->getName()); ?> - getName()); ?> - getUrl(); ?> - - - - Author - - - - - <?php echo htmlspecialchars($item->get_feed()->getName()); ?> : <?php echo htmlspecialchars($item->get_title());?> - get_permalink());?> - - get_date('Y-m-d\\TH:i:s+00:00'); ?> - get_date('Y-m-d\\TH:i:s+00:00'); ?> - get_author()? $item->get_author()->get_name() : 'anonymous'); ?> - - get_content();?>]]> - - - - diff --git a/custom/views/default/head.tpl.php b/custom/views/default/head.tpl.php index 6e204fe..5773aa6 100644 --- a/custom/views/default/head.tpl.php +++ b/custom/views/default/head.tpl.php @@ -1,3 +1,3 @@ - + diff --git a/custom/views/default/sidebar.tpl.php b/custom/views/default/sidebar.tpl.php index 2a3a360..830f3c6 100755 --- a/custom/views/default/sidebar.tpl.php +++ b/custom/views/default/sidebar.tpl.php @@ -21,7 +21,7 @@ usort($all_people, array('PlanetFeed', 'compare'));

-- cgit v1.2.1