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.
35 lines
1.3 KiB
35 lines
1.3 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 "> |
|
<form method="post" action="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'import'))); ?>" enctype="multipart/form-data"> |
|
<legend>Import / export au format OPML</legend> |
|
<div class="form-group"> |
|
<label class="group-name" for="file">Fichier à importer</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">Importer</button> |
|
ou |
|
<button type="submit" class="btn btn-important" formaction="<?php echo Url::display (array ('c' => 'configure', 'a' => 'importExport', 'params' => array ('q' => 'export'))); ?>">Exporter</button> |
|
</div> |
|
</div> |
|
</form> |
|
</div> |
|
<?php } ?>
|
|
|