summaryrefslogtreecommitdiff
path: root/app/views/configure/importExport.phtml
blob: 4cc5753564d9f1c9ea6e38be9e7dd1fe276c0c33 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?php if ($this->req == 'export') { ?>
<?php echo '<?xml version="1.0" encoding="UTF-8" ?>'; // résout bug sur certain serveur ?>
<!-- Generated by <?php echo Configuration::title (); ?> -->
<opml version="2.0">
	<head>
		<title><?php echo 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>
<?php } else { ?>
<?php $this->partial ('aside_feed'); ?>

<div class="post ">
	<a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>

	<form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data">
		<legend><?php echo Translate::t ('import_export_opml'); ?></legend>
		<div class="form-group">
			<label class="group-name" for="file"><?php echo Translate::t ('file_to_import'); ?></label>
			<div class="group-controls">
				<input type="file" name="file" id="file" />
			</div>
		</div>

		<div class="form-group form-actions">
			<div class="group-controls">
				<button type="submit" class="btn btn-important"><?php echo Translate::t ('import'); ?></button>
				<?php echo Translate::t ('or'); ?>
				<a target="_blank" class="btn btn-important" href="<?php echo _url ('configure', 'importExport', 'q', 'export'); ?>"><?php echo Translate::t ('export'); ?></a>
			</div>
		</div>
	</form>
</div>
<?php } ?>