display.phtml 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Minz_Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('configure', 'display'); ?>">
  5. <legend><?php echo Minz_Translate::t ('display_configuration'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="language"><?php echo Minz_Translate::t ('language'); ?></label>
  8. <div class="group-controls">
  9. <select name="language" id="language">
  10. <?php $languages = $this->conf->availableLanguages (); ?>
  11. <?php foreach ($languages as $short => $lib) { ?>
  12. <option value="<?php echo $short; ?>"<?php echo $this->conf->language === $short ? ' selected="selected"' : ''; ?>><?php echo $lib; ?></option>
  13. <?php } ?>
  14. </select>
  15. </div>
  16. </div>
  17. <div class="form-group">
  18. <label class="group-name" for="theme"><?php echo Minz_Translate::t ('theme'); ?></label>
  19. <div class="group-controls">
  20. <select name="theme" id="theme" required=""><?php
  21. $found = false;
  22. foreach ($this->themes as $theme) {
  23. ?><option value="<?php echo $theme['id']; ?>"<?php if ($this->conf->theme === $theme['id']) { echo ' selected="selected"'; $found = true; } ?>><?php
  24. echo $theme['name'] . ' — ' . Minz_Translate::t ('by') . ' ' . $theme['author'];
  25. ?></option><?php
  26. }
  27. if (!$found) {
  28. ?><option selected="selected"></option><?php
  29. }
  30. ?></select>
  31. </div>
  32. </div>
  33. <div class="form-group">
  34. <label class="group-name" for="theme"><?php echo Minz_Translate::t ('article_icons'); ?></label>
  35. <table>
  36. <thead>
  37. <tr>
  38. <th> </th>
  39. <th title="<?php echo Minz_Translate::t ('mark_read'); ?>"><?php echo FreshRSS_Themes::icon('read'); ?></th>
  40. <th title="<?php echo Minz_Translate::t ('mark_favorite'); ?>"><?php echo FreshRSS_Themes::icon('bookmark'); ?></th>
  41. <th><?php echo Minz_Translate::t ('sharing'); ?></th>
  42. <th><?php echo Minz_Translate::t ('related_tags'); ?></th>
  43. <th><?php echo Minz_Translate::t ('publication_date'); ?></th>
  44. <th><?php echo FreshRSS_Themes::icon('link'); ?></th>
  45. </tr>
  46. </thead>
  47. <tbody>
  48. <tr>
  49. <th><?php echo Minz_Translate::t ('top_line'); ?></th>
  50. <td><input type="checkbox" name="topline_read" value="1"<?php echo $this->conf->topline_read ? ' checked="checked"' : ''; ?> /></td>
  51. <td><input type="checkbox" name="topline_favorite" value="1"<?php echo $this->conf->topline_favorite ? ' checked="checked"' : ''; ?> /></td>
  52. <td><input type="checkbox" disabled="disabled" /></td>
  53. <td><input type="checkbox" disabled="disabled" /></td>
  54. <td><input type="checkbox" name="topline_date" value="1"<?php echo $this->conf->topline_date ? ' checked="checked"' : ''; ?> /></td>
  55. <td><input type="checkbox" name="topline_link" value="1"<?php echo $this->conf->topline_link ? ' checked="checked"' : ''; ?> /></td>
  56. </tr><tr>
  57. <th><?php echo Minz_Translate::t ('bottom_line'); ?></th>
  58. <td><input type="checkbox" name="bottomline_read" value="1"<?php echo $this->conf->bottomline_read ? ' checked="checked"' : ''; ?> /></td>
  59. <td><input type="checkbox" name="bottomline_favorite" value="1"<?php echo $this->conf->bottomline_favorite ? ' checked="checked"' : ''; ?> /></td>
  60. <td><input type="checkbox" name="bottomline_sharing" value="1"<?php echo $this->conf->bottomline_sharing ? ' checked="checked"' : ''; ?> /></td>
  61. <td><input type="checkbox" name="bottomline_tags" value="1"<?php echo $this->conf->bottomline_tags ? ' checked="checked"' : ''; ?> /></td>
  62. <td><input type="checkbox" name="bottomline_date" value="1"<?php echo $this->conf->bottomline_date ? ' checked="checked"' : ''; ?> /></td>
  63. <td><input type="checkbox" name="bottomline_link" value="1"<?php echo $this->conf->bottomline_link ? ' checked="checked"' : ''; ?> /></td>
  64. </tr>
  65. </tbody>
  66. </table><br />
  67. </div>
  68. <div class="form-group form-actions">
  69. <div class="group-controls">
  70. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  71. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  72. </div>
  73. </div>
  74. </form>
  75. </div>