index.phtml 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. <?php $this->partial('aside_subscription'); ?>
  2. <div class="post ">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url('importExport', 'import'); ?>" enctype="multipart/form-data">
  5. <legend><?php echo _t('sub.import_export.import'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="file">
  8. <?php echo extension_loaded('zip') ? _t('sub.import_export.file_to_import') : _t('sub.import_export.file_to_import_no_zip'); ?>
  9. </label>
  10. <div class="group-controls">
  11. <input type="file" name="file" id="file" />
  12. </div>
  13. </div>
  14. <div class="form-group form-actions">
  15. <div class="group-controls">
  16. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.import'); ?></button>
  17. </div>
  18. </div>
  19. </form>
  20. <?php if (count($this->feeds) > 0) { ?>
  21. <form method="post" action="<?php echo _url('importExport', 'export'); ?>">
  22. <legend><?php echo _t('sub.import_export.export'); ?></legend>
  23. <div class="form-group">
  24. <div class="group-controls">
  25. <label class="checkbox" for="export_opml">
  26. <input type="checkbox" name="export_opml" id="export_opml" value="1" checked="checked" />
  27. <?php echo _t('sub.import_export.export_opml'); ?>
  28. </label>
  29. <label class="checkbox" for="export_starred">
  30. <input type="checkbox" name="export_starred" id="export_starred" value="1" <?php echo extension_loaded('zip') ? 'checked="checked"' : ''; ?> />
  31. <?php echo _t('sub.import_export.export_starred'); ?>
  32. </label>
  33. <?php
  34. $select_args = '';
  35. if (extension_loaded('zip')) {
  36. $select_args = ' size="' . min(10, count($this->feeds)) .'" multiple="multiple"';
  37. }
  38. ?>
  39. <select name="export_feeds[]"<?php echo $select_args; ?>>
  40. <?php echo extension_loaded('zip') ? '' : '<option></option>'; ?>
  41. <?php foreach ($this->feeds as $feed) { ?>
  42. <option value="<?php echo $feed->id(); ?>"><?php echo $feed->name(); ?></option>
  43. <?php } ?>
  44. </select>
  45. </div>
  46. </div>
  47. <div class="form-group form-actions">
  48. <div class="group-controls">
  49. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.export'); ?></button>
  50. </div>
  51. </div>
  52. </form>
  53. <?php } ?>
  54. </div>