summaryrefslogtreecommitdiffstats
path: root/custom/views.php
diff options
context:
space:
mode:
authorMaurice Svay <maurice@svay.com>2010-02-16 15:23:41 +0000
committerMaurice Svay <maurice@svay.com>2010-02-16 15:23:41 +0000
commitec4326e4bab52c558d1f2564ab2fa0545f81b071 (patch)
tree2c7b9d1bd5a1ee72be2e40e4b45895877777aefe /custom/views.php
downloadplanet-ec4326e4bab52c558d1f2564ab2fa0545f81b071.tar
planet-ec4326e4bab52c558d1f2564ab2fa0545f81b071.tar.gz
planet-ec4326e4bab52c558d1f2564ab2fa0545f81b071.tar.bz2
planet-ec4326e4bab52c558d1f2564ab2fa0545f81b071.tar.xz
planet-ec4326e4bab52c558d1f2564ab2fa0545f81b071.zip
Initial commit
Diffstat (limited to 'custom/views.php')
-rw-r--r--custom/views.php24
1 files changed, 24 insertions, 0 deletions
diff --git a/custom/views.php b/custom/views.php
new file mode 100644
index 0000000..6d48d59
--- /dev/null
+++ b/custom/views.php
@@ -0,0 +1,24 @@
+<?php
+$views = array(
+ 'rss10' => array(
+ 'header' => 'Content-Type: text/xml; charset=UTF-8',
+ 'prolog' => '<?xml version="1.0" encoding="UTF-8" ?>'."\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' => '<?xml version="1.0" encoding="UTF-8" ?>'."\n",
+ 'template' => dirname(__FILE__).'/views/atom10/atom10.tpl.php'
+ ),
+ 'archive' => array(
+ 'header' => 'Content-type: text/html; charset=UTF-8',
+ 'prolog' => '',
+ 'template' => dirname(__FILE__).'/views/archive/archive.tpl.php'
+ ),
+ 'html' => array(
+ 'header' => 'Content-type: text/html; charset=UTF-8',
+ 'prolog' => '',
+ 'template' => dirname(__FILE__).'/views/default/index.tpl.php'
+ )
+); \ No newline at end of file