aboutsummaryrefslogtreecommitdiff
path: root/app/views/importExport/export.phtml
diff options
context:
space:
mode:
authorGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-03-16 19:34:04 +0100
committerGravatar Marien Fressinaud <dev@marienfressinaud.fr> 2014-03-16 19:34:04 +0100
commitdbdda1d0c19b48d06b30879e8fe78679f79cc0c4 (patch)
tree28cca8318b5887f74d1b42a9631e806c2455e7f4 /app/views/importExport/export.phtml
parent7bbd6133af93238dce759016df7f661a7cfbffed (diff)
Move import/export operations into an independant class
- import and export are now two methods of importExportController - "opml" has been removed from the title
Diffstat (limited to 'app/views/importExport/export.phtml')
-rw-r--r--app/views/importExport/export.phtml15
1 files changed, 15 insertions, 0 deletions
diff --git a/app/views/importExport/export.phtml b/app/views/importExport/export.phtml
new file mode 100644
index 000000000..2e66e5054
--- /dev/null
+++ b/app/views/importExport/export.phtml
@@ -0,0 +1,15 @@
+<?php
+require_once(LIB_PATH . '/lib_opml.php');
+
+echo '<?xml version="1.0" encoding="UTF-8" ?>';
+?>
+<!-- Generated by <?php echo Minz_Configuration::title (); ?> -->
+<opml version="2.0">
+ <head>
+ <title><?php echo Minz_Configuration::title (); ?> OPML Feed</title>
+ <dateCreated><?php echo date('D, d M Y H:i:s'); ?></dateCreated>
+ </head>
+ <body>
+<?php echo opml_export ($this->categories); ?>
+ </body>
+</opml>