display.phtml 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262
  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 ('general_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">
  21. <?php foreach ($this->themes as $theme) { ?>
  22. <option value="<?php echo $theme['path']; ?>"<?php echo $this->conf->theme () == $theme['path'] ? ' selected="selected"' : ''; ?>>
  23. <?php echo $theme['name'] . ' ' . Minz_Translate::t ('by') . ' ' . $theme['author']; ?>
  24. </option>
  25. <?php } ?>
  26. </select>
  27. </div>
  28. </div>
  29. <div class="form-group form-actions">
  30. <div class="group-controls">
  31. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  32. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  33. </div>
  34. </div>
  35. <legend><?php echo Minz_Translate::t ('login_configuration'); ?></legend>
  36. <div class="form-group">
  37. <label class="group-name" for="mail_login"><?php echo Minz_Translate::t ('persona_connection_email'); ?></label>
  38. <?php $mail = $this->conf->mailLogin (); ?>
  39. <div class="group-controls">
  40. <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>" />
  41. <noscript><b><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></b></noscript>
  42. <label class="checkbox" for="anon_access">
  43. <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess () == 'yes' ? ' checked="checked"' : ''; ?> />
  44. <?php echo Minz_Translate::t ('allow_anonymous'); ?>
  45. </label>
  46. </div>
  47. </div>
  48. <div class="form-group">
  49. <label class="group-name" for="token"><?php echo Minz_Translate::t ('auth_token'); ?></label>
  50. <?php $token = $this->conf->token (); ?>
  51. <div class="group-controls">
  52. <input type="text" id="token" name="token" value="<?php echo $token; ?>" placeholder="<?php echo Minz_Translate::t ('blank_to_disable'); ?>"/>
  53. <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('explain_token', Minz_Url::display(null, 'html', true), $token); ?>
  54. </div>
  55. </div>
  56. <div class="form-group form-actions">
  57. <div class="group-controls">
  58. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  59. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  60. </div>
  61. </div>
  62. <legend><?php echo Minz_Translate::t ('archiving_configuration'); ?></legend>
  63. <p><?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('archiving_configuration_help'); ?></p>
  64. <div class="form-group">
  65. <label class="group-name" for="old_entries"><?php echo Minz_Translate::t ('delete_articles_every'); ?></label>
  66. <div class="group-controls">
  67. <input type="number" id="old_entries" name="old_entries" min="1" max="1200" value="<?php echo $this->conf->oldEntries (); ?>" /> <?php echo Minz_Translate::t ('month'); ?>
  68.   <a class="btn confirm" href="<?php echo _url('entry', 'purge'); ?>"><?php echo Minz_Translate::t('purge_now'); ?></a>
  69. </div>
  70. </div>
  71. <div class="form-group">
  72. <label class="group-name" for="keep_history_default"><?php echo Minz_Translate::t('keep_history'), ' ', Minz_Translate::t('by_feed'); ?> (<?php echo Minz_Translate::t('by_default'); ?>)</label>
  73. <div class="group-controls">
  74. <select class="number" name="keep_history_default" id="keep_history_default"><?php
  75. foreach (array(-3 => '', 0 => '0', 10 => '10', 50 => '50', 100 => '100', 500 => '500', 1000 => '1 000', 5000 => '5 000', 10000 => '10 000', -1 => '∞') as $v => $t) {
  76. echo '<option value="' . $v . ($this->conf->keepHistoryDefault() == $v ? '" selected="selected' : '') . '">' . $t . ' </option>';
  77. }
  78. ?></select>
  79. </div>
  80. </div>
  81. <div class="form-group form-actions">
  82. <div class="group-controls">
  83. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  84. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  85. </div>
  86. </div>
  87. <legend><?php echo Minz_Translate::t ('reading_configuration'); ?></legend>
  88. <div class="form-group">
  89. <label class="group-name" for="posts_per_page"><?php echo Minz_Translate::t ('articles_per_page'); ?></label>
  90. <div class="group-controls">
  91. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  92. </div>
  93. </div>
  94. <div class="form-group">
  95. <label class="group-name" for="sort_order"><?php echo Minz_Translate::t ('sort_order'); ?></label>
  96. <div class="group-controls">
  97. <select name="sort_order" id="sort_order">
  98. <option value="DESC"<?php echo $this->conf->sortOrder () === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('newer_first'); ?></option>
  99. <option value="ASC"<?php echo $this->conf->sortOrder () === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('older_first'); ?></option>
  100. </select>
  101. </div>
  102. </div>
  103. <div class="form-group">
  104. <label class="group-name" for="view_mode"><?php echo Minz_Translate::t ('default_view'); ?></label>
  105. <div class="group-controls">
  106. <select name="view_mode" id="view_mode">
  107. <option value="normal"<?php echo $this->conf->viewMode () == 'normal' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('normal_view'); ?></option>
  108. <option value="reader"<?php echo $this->conf->viewMode () == 'reader' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('reader_view'); ?></option>
  109. <option value="global"<?php echo $this->conf->viewMode () == 'global' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('global_view'); ?></option>
  110. </select>
  111. <label class="radio" for="radio_all">
  112. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  113. <?php echo Minz_Translate::t ('show_all_articles'); ?>
  114. </label>
  115. <label class="radio" for="radio_not_read">
  116. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  117. <?php echo Minz_Translate::t ('show_not_reads'); ?>
  118. </label>
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <div class="group-controls">
  123. <label class="checkbox" for="auto_load_more">
  124. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="yes"<?php echo $this->conf->autoLoadMore () == 'yes' ? ' checked="checked"' : ''; ?> />
  125. <?php echo Minz_Translate::t ('auto_load_more'); ?>
  126. <?php echo $this->conf->displayPosts () == 'no' ? '<noscript> - <b>' . Minz_Translate::t ('javascript_should_be_activated') . '</b></noscript>' : ''; ?>
  127. </label>
  128. </div>
  129. </div>
  130. <div class="form-group">
  131. <div class="group-controls">
  132. <label class="checkbox" for="display_posts">
  133. <input type="checkbox" name="display_posts" id="display_posts" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  134. <?php echo Minz_Translate::t ('display_articles_unfolded'); ?>
  135. <?php echo $this->conf->displayPosts () == 'no' ? '<noscript> - <b>' . Minz_Translate::t ('javascript_should_be_activated') . '</b></noscript>' : ''; ?>
  136. </label>
  137. </div>
  138. </div>
  139. <div class="form-group">
  140. <div class="group-controls">
  141. <label class="checkbox" for="lazyload">
  142. <input type="checkbox" name="lazyload" id="lazyload" value="yes"<?php echo $this->conf->lazyload () == 'yes' ? ' checked="checked"' : ''; ?> />
  143. <?php echo Minz_Translate::t ('img_with_lazyload'); ?>
  144. <?php echo $this->conf->lazyload () == 'yes' ? '<noscript> - <b>' . Minz_Translate::t ('javascript_should_be_activated') . '</b></noscript>' : ''; ?>
  145. </label>
  146. </div>
  147. </div>
  148. <div class="form-group">
  149. <label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
  150. <div class="group-controls">
  151. <label class="checkbox" for="check_open_article">
  152. <input type="checkbox" name="mark_open_article" id="check_open_article" value="yes"<?php echo $this->conf->markWhenArticle () == 'yes' ? ' checked="checked"' : ''; ?> />
  153. <?php echo Minz_Translate::t ('article_selected'); ?>
  154. </label>
  155. <label class="checkbox" for="check_open_site">
  156. <input type="checkbox" name="mark_open_site" id="check_open_site" value="yes"<?php echo $this->conf->markWhenSite () == 'yes' ? ' checked="checked"' : ''; ?> />
  157. <?php echo Minz_Translate::t ('article_open_on_website'); ?>
  158. </label>
  159. <label class="checkbox" for="check_scroll">
  160. <input type="checkbox" name="mark_scroll" id="check_scroll" value="yes"<?php echo $this->conf->markWhenScroll () == 'yes' ? ' checked="checked"' : ''; ?> />
  161. <?php echo Minz_Translate::t ('scroll'); ?>
  162. </label>
  163. <label class="checkbox" for="check_reception">
  164. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="yes"<?php echo $this->conf->markUponReception () == 'yes' ? ' checked="checked"' : ''; ?> />
  165. <?php echo Minz_Translate::t ('upon_reception'); ?>
  166. </label>
  167. </div>
  168. </div>
  169. <div class="form-group">
  170. <label class="group-name"><?php echo Minz_Translate::t ('after_onread'); ?></label>
  171. <div class="group-controls">
  172. <label class="checkbox" for="onread_jump_next">
  173. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="yes"<?php echo $this->conf->onread_jump_next () == 'yes' ? ' checked="checked"' : ''; ?> />
  174. <?php echo Minz_Translate::t ('jump_next'); ?>
  175. </label>
  176. </div>
  177. </div>
  178. <div class="form-group form-actions">
  179. <div class="group-controls">
  180. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  181. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  182. </div>
  183. </div>
  184. <legend><?php echo Minz_Translate::t ('reading_icons'); ?></legend>
  185. <div class="form-group">
  186. <table>
  187. <thead>
  188. <tr>
  189. <th> </th>
  190. <th title="<?php echo Minz_Translate::t ('mark_read'); ?>"><?php echo FreshRSS_Themes::icon('read'); ?></th>
  191. <th title="<?php echo Minz_Translate::t ('mark_favorite'); ?>"><?php echo FreshRSS_Themes::icon('bookmark'); ?></th>
  192. <th><?php echo Minz_Translate::t ('sharing'); ?></th>
  193. <th><?php echo Minz_Translate::t ('related_tags'); ?></th>
  194. <th><?php echo Minz_Translate::t ('publication_date'); ?></th>
  195. <th><?php echo FreshRSS_Themes::icon('link'); ?></th>
  196. </tr>
  197. </thead>
  198. <tbody>
  199. <tr>
  200. <th><?php echo Minz_Translate::t ('top_line'); ?></th>
  201. <td><input type="checkbox" name="topline_read" value="yes"<?php echo $this->conf->toplineRead () ? ' checked="checked"' : ''; ?> /></td>
  202. <td><input type="checkbox" name="topline_favorite" value="yes"<?php echo $this->conf->toplineFavorite () ? ' checked="checked"' : ''; ?> /></td>
  203. <td><input type="checkbox" disabled="disabled" /></td>
  204. <td><input type="checkbox" disabled="disabled" /></td>
  205. <td><input type="checkbox" name="topline_date" value="yes"<?php echo $this->conf->toplineDate () ? ' checked="checked"' : ''; ?> /></td>
  206. <td><input type="checkbox" name="topline_link" value="yes"<?php echo $this->conf->toplineLink () ? ' checked="checked"' : ''; ?> /></td>
  207. </tr><tr>
  208. <th><?php echo Minz_Translate::t ('bottom_line'); ?></th>
  209. <td><input type="checkbox" name="bottomline_read" value="yes"<?php echo $this->conf->bottomlineRead () ? ' checked="checked"' : ''; ?> /></td>
  210. <td><input type="checkbox" name="bottomline_favorite" value="yes"<?php echo $this->conf->bottomlineFavorite () ? ' checked="checked"' : ''; ?> /></td>
  211. <td><input type="checkbox" name="bottomline_sharing" value="yes"<?php echo $this->conf->bottomlineSharing () ? ' checked="checked"' : ''; ?> /></td>
  212. <td><input type="checkbox" name="bottomline_tags" value="yes"<?php echo $this->conf->bottomlineTags () ? ' checked="checked"' : ''; ?> /></td>
  213. <td><input type="checkbox" name="bottomline_date" value="yes"<?php echo $this->conf->bottomlineDate () ? ' checked="checked"' : ''; ?> /></td>
  214. <td><input type="checkbox" name="bottomline_link" value="yes"<?php echo $this->conf->bottomlineLink () ? ' checked="checked"' : ''; ?> /></td>
  215. </tr>
  216. </tbody>
  217. </table><br />
  218. </div>
  219. <div class="form-group form-actions">
  220. <div class="group-controls">
  221. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  222. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  223. </div>
  224. </div>
  225. <legend><?php echo Minz_Translate::t ('advanced'); ?></legend>
  226. <div class="form-group">
  227. <label class="group-name"></label>
  228. <div class="group-controls">
  229. <p><?php echo $this->nb_total; ?> <?php echo Minz_Translate::t('articles') ?>, <?php echo formatBytes($this->size_total); ?>.</p>
  230. <p><a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
  231. <?php echo Minz_Translate::t('optimize_bdd'); ?>
  232. </a></p>
  233. <?php echo FreshRSS_Themes::icon('help'); ?> <?php echo Minz_Translate::t('optimize_todo_sometimes'); ?>
  234. </div>
  235. </div>
  236. </form>
  237. </div>