You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
37 lines
1.5 KiB
37 lines
1.5 KiB
<?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 } ?>
|
|
|