display.phtml 5.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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. <?php $width = $this->conf->content_width; ?>
  34. <div class="form-group">
  35. <label class="group-name" for="content_width"><?php echo Minz_Translate::t('content_width'); ?></label>
  36. <div class="group-controls">
  37. <select name="content_width" id="content_width" required="">
  38. <option value="thin" <?php echo $width === 'thin'? 'selected="selected"' : ''; ?>>
  39. <?php echo Minz_Translate::t('width_thin'); ?>
  40. </option>
  41. <option value="medium" <?php echo $width === 'medium'? 'selected="selected"' : ''; ?>>
  42. <?php echo Minz_Translate::t('width_medium'); ?>
  43. </option>
  44. <option value="large" <?php echo $width === 'large'? 'selected="selected"' : ''; ?>>
  45. <?php echo Minz_Translate::t('width_large'); ?>
  46. </option>
  47. <option value="no_limit" <?php echo $width === 'no_limit'? 'selected="selected"' : ''; ?>>
  48. <?php echo Minz_Translate::t('width_no_limit'); ?>
  49. </option>
  50. </select>
  51. </div>
  52. </div>
  53. <div class="form-group">
  54. <label class="group-name" for="theme"><?php echo Minz_Translate::t ('article_icons'); ?></label>
  55. <table>
  56. <thead>
  57. <tr>
  58. <th> </th>
  59. <th title="<?php echo Minz_Translate::t ('mark_read'); ?>"><?php echo FreshRSS_Themes::icon('read'); ?></th>
  60. <th title="<?php echo Minz_Translate::t ('mark_favorite'); ?>"><?php echo FreshRSS_Themes::icon('bookmark'); ?></th>
  61. <th><?php echo Minz_Translate::t ('sharing'); ?></th>
  62. <th><?php echo Minz_Translate::t ('related_tags'); ?></th>
  63. <th><?php echo Minz_Translate::t ('publication_date'); ?></th>
  64. <th><?php echo FreshRSS_Themes::icon('link'); ?></th>
  65. </tr>
  66. </thead>
  67. <tbody>
  68. <tr>
  69. <th><?php echo Minz_Translate::t ('top_line'); ?></th>
  70. <td><input type="checkbox" name="topline_read" value="1"<?php echo $this->conf->topline_read ? ' checked="checked"' : ''; ?> /></td>
  71. <td><input type="checkbox" name="topline_favorite" value="1"<?php echo $this->conf->topline_favorite ? ' checked="checked"' : ''; ?> /></td>
  72. <td><input type="checkbox" disabled="disabled" /></td>
  73. <td><input type="checkbox" disabled="disabled" /></td>
  74. <td><input type="checkbox" name="topline_date" value="1"<?php echo $this->conf->topline_date ? ' checked="checked"' : ''; ?> /></td>
  75. <td><input type="checkbox" name="topline_link" value="1"<?php echo $this->conf->topline_link ? ' checked="checked"' : ''; ?> /></td>
  76. </tr><tr>
  77. <th><?php echo Minz_Translate::t ('bottom_line'); ?></th>
  78. <td><input type="checkbox" name="bottomline_read" value="1"<?php echo $this->conf->bottomline_read ? ' checked="checked"' : ''; ?> /></td>
  79. <td><input type="checkbox" name="bottomline_favorite" value="1"<?php echo $this->conf->bottomline_favorite ? ' checked="checked"' : ''; ?> /></td>
  80. <td><input type="checkbox" name="bottomline_sharing" value="1"<?php echo $this->conf->bottomline_sharing ? ' checked="checked"' : ''; ?> /></td>
  81. <td><input type="checkbox" name="bottomline_tags" value="1"<?php echo $this->conf->bottomline_tags ? ' checked="checked"' : ''; ?> /></td>
  82. <td><input type="checkbox" name="bottomline_date" value="1"<?php echo $this->conf->bottomline_date ? ' checked="checked"' : ''; ?> /></td>
  83. <td><input type="checkbox" name="bottomline_link" value="1"<?php echo $this->conf->bottomline_link ? ' checked="checked"' : ''; ?> /></td>
  84. </tr>
  85. </tbody>
  86. </table><br />
  87. </div>
  88. <div class="form-group form-actions">
  89. <div class="group-controls">
  90. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  91. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  92. </div>
  93. </div>
  94. </form>
  95. </div>