index.phtml 2.0 KB

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