display.phtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205
  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 ('theme'); ?></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 form-actions">
  34. <div class="group-controls">
  35. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  36. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  37. </div>
  38. </div>
  39. <legend><?php echo Minz_Translate::t ('reading_configuration'); ?></legend>
  40. <div class="form-group">
  41. <label class="group-name" for="posts_per_page"><?php echo Minz_Translate::t ('articles_per_page'); ?></label>
  42. <div class="group-controls">
  43. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->posts_per_page; ?>" />
  44. </div>
  45. </div>
  46. <div class="form-group">
  47. <label class="group-name" for="sort_order"><?php echo Minz_Translate::t ('sort_order'); ?></label>
  48. <div class="group-controls">
  49. <select name="sort_order" id="sort_order">
  50. <option value="DESC"<?php echo $this->conf->sort_order === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('newer_first'); ?></option>
  51. <option value="ASC"<?php echo $this->conf->sort_order === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('older_first'); ?></option>
  52. </select>
  53. </div>
  54. </div>
  55. <div class="form-group">
  56. <label class="group-name" for="view_mode"><?php echo Minz_Translate::t ('default_view'); ?></label>
  57. <div class="group-controls">
  58. <select name="view_mode" id="view_mode">
  59. <option value="normal"<?php echo $this->conf->view_mode === 'normal' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('normal_view'); ?></option>
  60. <option value="reader"<?php echo $this->conf->view_mode === 'reader' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('reader_view'); ?></option>
  61. <option value="global"<?php echo $this->conf->view_mode === 'global' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('global_view'); ?></option>
  62. </select>
  63. <label class="radio" for="radio_all">
  64. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->default_view === 'all' ? ' checked="checked"' : ''; ?> />
  65. <?php echo Minz_Translate::t ('show_all_articles'); ?>
  66. </label>
  67. <label class="radio" for="radio_not_read">
  68. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->default_view === 'not_read' ? ' checked="checked"' : ''; ?> />
  69. <?php echo Minz_Translate::t ('show_not_reads'); ?>
  70. </label>
  71. </div>
  72. </div>
  73. <div class="form-group">
  74. <div class="group-controls">
  75. <label class="checkbox" for="auto_load_more">
  76. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?php echo $this->conf->auto_load_more ? ' checked="checked"' : ''; ?> />
  77. <?php echo Minz_Translate::t ('auto_load_more'); ?>
  78. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  79. </label>
  80. </div>
  81. </div>
  82. <div class="form-group">
  83. <div class="group-controls">
  84. <label class="checkbox" for="display_posts">
  85. <input type="checkbox" name="display_posts" id="display_posts" value="1"<?php echo $this->conf->display_posts ? ' checked="checked"' : ''; ?> />
  86. <?php echo Minz_Translate::t ('display_articles_unfolded'); ?>
  87. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  88. </label>
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <div class="group-controls">
  93. <label class="checkbox" for="lazyload">
  94. <input type="checkbox" name="lazyload" id="lazyload" value="1"<?php echo $this->conf->lazyload ? ' checked="checked"' : ''; ?> />
  95. <?php echo Minz_Translate::t ('img_with_lazyload'); ?>
  96. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  97. </label>
  98. </div>
  99. </div>
  100. <div class="form-group">
  101. <div class="group-controls">
  102. <label class="checkbox" for="sticky_post">
  103. <input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?php echo $this->conf->sticky_post ? ' checked="checked"' : ''; ?> />
  104. <?php echo Minz_Translate::t ('sticky_post'); ?>
  105. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  106. </label>
  107. </div>
  108. </div>
  109. <div class="form-group">
  110. <label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
  111. <div class="group-controls">
  112. <label class="checkbox" for="check_open_article">
  113. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?php echo $this->conf->mark_when['article'] ? ' checked="checked"' : ''; ?> />
  114. <?php echo Minz_Translate::t ('article_selected'); ?>
  115. </label>
  116. <label class="checkbox" for="check_open_site">
  117. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?php echo $this->conf->mark_when['site'] ? ' checked="checked"' : ''; ?> />
  118. <?php echo Minz_Translate::t ('article_open_on_website'); ?>
  119. </label>
  120. <label class="checkbox" for="check_scroll">
  121. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?php echo $this->conf->mark_when['scroll'] ? ' checked="checked"' : ''; ?> />
  122. <?php echo Minz_Translate::t ('scroll'); ?>
  123. </label>
  124. <label class="checkbox" for="check_reception">
  125. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="1"<?php echo $this->conf->mark_when['reception'] ? ' checked="checked"' : ''; ?> />
  126. <?php echo Minz_Translate::t ('upon_reception'); ?>
  127. </label>
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <label class="group-name"><?php echo Minz_Translate::t ('after_onread'); ?></label>
  132. <div class="group-controls">
  133. <label class="checkbox" for="onread_jump_next">
  134. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?php echo $this->conf->onread_jump_next ? ' checked="checked"' : ''; ?> />
  135. <?php echo Minz_Translate::t ('jump_next'); ?>
  136. </label>
  137. </div>
  138. </div>
  139. <div class="form-group form-actions">
  140. <div class="group-controls">
  141. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  142. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  143. </div>
  144. </div>
  145. <legend><?php echo Minz_Translate::t ('reading_icons'); ?></legend>
  146. <div class="form-group">
  147. <table>
  148. <thead>
  149. <tr>
  150. <th> </th>
  151. <th title="<?php echo Minz_Translate::t ('mark_read'); ?>"><?php echo FreshRSS_Themes::icon('read'); ?></th>
  152. <th title="<?php echo Minz_Translate::t ('mark_favorite'); ?>"><?php echo FreshRSS_Themes::icon('bookmark'); ?></th>
  153. <th><?php echo Minz_Translate::t ('sharing'); ?></th>
  154. <th><?php echo Minz_Translate::t ('related_tags'); ?></th>
  155. <th><?php echo Minz_Translate::t ('publication_date'); ?></th>
  156. <th><?php echo FreshRSS_Themes::icon('link'); ?></th>
  157. </tr>
  158. </thead>
  159. <tbody>
  160. <tr>
  161. <th><?php echo Minz_Translate::t ('top_line'); ?></th>
  162. <td><input type="checkbox" name="topline_read" value="1"<?php echo $this->conf->topline_read ? ' checked="checked"' : ''; ?> /></td>
  163. <td><input type="checkbox" name="topline_favorite" value="1"<?php echo $this->conf->topline_favorite ? ' checked="checked"' : ''; ?> /></td>
  164. <td><input type="checkbox" disabled="disabled" /></td>
  165. <td><input type="checkbox" disabled="disabled" /></td>
  166. <td><input type="checkbox" name="topline_date" value="1"<?php echo $this->conf->topline_date ? ' checked="checked"' : ''; ?> /></td>
  167. <td><input type="checkbox" name="topline_link" value="1"<?php echo $this->conf->topline_link ? ' checked="checked"' : ''; ?> /></td>
  168. </tr><tr>
  169. <th><?php echo Minz_Translate::t ('bottom_line'); ?></th>
  170. <td><input type="checkbox" name="bottomline_read" value="1"<?php echo $this->conf->bottomline_read ? ' checked="checked"' : ''; ?> /></td>
  171. <td><input type="checkbox" name="bottomline_favorite" value="1"<?php echo $this->conf->bottomline_favorite ? ' checked="checked"' : ''; ?> /></td>
  172. <td><input type="checkbox" name="bottomline_sharing" value="1"<?php echo $this->conf->bottomline_sharing ? ' checked="checked"' : ''; ?> /></td>
  173. <td><input type="checkbox" name="bottomline_tags" value="1"<?php echo $this->conf->bottomline_tags ? ' checked="checked"' : ''; ?> /></td>
  174. <td><input type="checkbox" name="bottomline_date" value="1"<?php echo $this->conf->bottomline_date ? ' checked="checked"' : ''; ?> /></td>
  175. <td><input type="checkbox" name="bottomline_link" value="1"<?php echo $this->conf->bottomline_link ? ' checked="checked"' : ''; ?> /></td>
  176. </tr>
  177. </tbody>
  178. </table><br />
  179. </div>
  180. <div class="form-group form-actions">
  181. <div class="group-controls">
  182. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  183. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  184. </div>
  185. </div>
  186. </form>
  187. </div>