2014-09-21 12:12:35 +02:00
|
|
|
<?php $this->partial('aside_feed'); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
|
|
|
<div class="post ">
|
2014-09-21 12:12:35 +02:00
|
|
|
<a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
|
2014-07-23 15:52:50 +02:00
|
|
|
|
|
|
|
<form method="post" action="<?php echo _url('importExport', 'import'); ?>" enctype="multipart/form-data">
|
2014-09-21 12:12:35 +02:00
|
|
|
<legend><?php echo _t('import'); ?></legend>
|
2014-07-23 15:52:50 +02:00
|
|
|
<div class="form-group">
|
2014-09-21 12:12:35 +02:00
|
|
|
<label class="group-name" for="file">
|
|
|
|
<?php echo extension_loaded('zip') ? _t('file_to_import') : _t('file_to_import_no_zip'); ?>
|
|
|
|
</label>
|
2014-07-23 15:52:50 +02:00
|
|
|
<div class="group-controls">
|
|
|
|
<input type="file" name="file" id="file" />
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group form-actions">
|
|
|
|
<div class="group-controls">
|
2014-09-21 12:12:35 +02:00
|
|
|
<button type="submit" class="btn btn-important"><?php echo _t('import'); ?></button>
|
2014-07-23 15:52:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
|
|
|
|
<?php if (count($this->feeds) > 0) { ?>
|
|
|
|
<form method="post" action="<?php echo _url('importExport', 'export'); ?>">
|
2014-09-21 12:12:35 +02:00
|
|
|
<legend><?php echo _t('export'); ?></legend>
|
2014-07-23 15:52:50 +02:00
|
|
|
<div class="form-group">
|
|
|
|
<div class="group-controls">
|
|
|
|
<label class="checkbox" for="export_opml">
|
|
|
|
<input type="checkbox" name="export_opml" id="export_opml" value="1" checked="checked" />
|
2014-09-21 12:12:35 +02:00
|
|
|
<?php echo _t('export_opml'); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
</label>
|
|
|
|
|
|
|
|
<label class="checkbox" for="export_starred">
|
2014-09-21 12:12:35 +02:00
|
|
|
<input type="checkbox" name="export_starred" id="export_starred" value="1" <?php echo extension_loaded('zip') ? 'checked="checked"' : ''; ?> />
|
|
|
|
<?php echo _t('export_starred'); ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
</label>
|
|
|
|
|
2014-09-21 12:12:35 +02:00
|
|
|
<?php
|
|
|
|
$select_args = '';
|
|
|
|
if (extension_loaded('zip')) {
|
|
|
|
$select_args = ' size="' . min(10, count($this->feeds)) .'" multiple="multiple"';
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
<select name="export_feeds[]"<?php echo $select_args; ?>>
|
|
|
|
<?php echo extension_loaded('zip') ? '' : '<option></option>'; ?>
|
2014-07-23 15:52:50 +02:00
|
|
|
<?php foreach ($this->feeds as $feed) { ?>
|
|
|
|
<option value="<?php echo $feed->id(); ?>"><?php echo $feed->name(); ?></option>
|
|
|
|
<?php } ?>
|
|
|
|
</select>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="form-group form-actions">
|
|
|
|
<div class="group-controls">
|
2014-09-21 12:12:35 +02:00
|
|
|
<button type="submit" class="btn btn-important"><?php echo _t('export'); ?></button>
|
2014-07-23 15:52:50 +02:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</form>
|
|
|
|
<?php } ?>
|
|
|
|
</div>
|