4
0

reading.phtml 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177
  1. <?php $this->partial('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('gen.action.back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url('configure', 'reading'); ?>">
  5. <legend><?php echo _t('conf.reading'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="posts_per_page"><?php echo _t('conf.reading.articles_per_page'); ?></label>
  8. <div class="group-controls">
  9. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo FreshRSS_Context::$user_conf->posts_per_page; ?>" min="5" max="500" data-leave-validation="<?php echo FreshRSS_Context::$user_conf->posts_per_page; ?>"/>
  10. <?php echo _i('help'); ?> <?php echo _t('conf.reading.number_divided_when_reader'); ?>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label class="group-name" for="sort_order"><?php echo _t('conf.reading.sort'); ?></label>
  15. <div class="group-controls">
  16. <select name="sort_order" id="sort_order" data-leave-validation="<?php echo FreshRSS_Context::$user_conf->sort_order; ?>">
  17. <option value="DESC"<?php echo FreshRSS_Context::$user_conf->sort_order === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.sort.newer_first'); ?></option>
  18. <option value="ASC"<?php echo FreshRSS_Context::$user_conf->sort_order === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.sort.older_first'); ?></option>
  19. </select>
  20. </div>
  21. </div>
  22. <div class="form-group">
  23. <label class="group-name" for="view_mode"><?php echo _t('conf.reading.view.default'); ?></label>
  24. <div class="group-controls">
  25. <select name="view_mode" id="view_mode" data-leave-validation="<?php echo FreshRSS_Context::$user_conf->view_mode; ?>">
  26. <option value="normal"<?php echo FreshRSS_Context::$user_conf->view_mode === 'normal' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.view.normal'); ?></option>
  27. <option value="reader"<?php echo FreshRSS_Context::$user_conf->view_mode === 'reader' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.view.reader'); ?></option>
  28. <option value="global"<?php echo FreshRSS_Context::$user_conf->view_mode === 'global' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.view.global'); ?></option>
  29. </select>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="group-name" for="view_mode"><?php echo _t('conf.reading.show'); ?></label>
  34. <div class="group-controls">
  35. <select name="default_view" id="default_view" data-leave-validation="<?php echo FreshRSS_Context::$user_conf->default_view; ?>">
  36. <option value="adaptive"<?php echo FreshRSS_Context::$user_conf->default_view === 'adaptive' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.show.adaptive'); ?></option>
  37. <option value="all"<?php echo FreshRSS_Context::$user_conf->default_view === 'all' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.show.all_articles'); ?></option>
  38. <option value="unread"<?php echo FreshRSS_Context::$user_conf->default_view === 'unread' ? ' selected="selected"' : ''; ?>><?php echo _t('conf.reading.show.unread'); ?></option>
  39. </select>
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <div class="group-controls">
  44. <label class="checkbox" for="hide_read_feeds">
  45. <input type="checkbox" name="hide_read_feeds" id="hide_read_feeds" value="1"<?php echo FreshRSS_Context::$user_conf->hide_read_feeds ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->hide_read_feeds; ?>"/>
  46. <?php echo _t('conf.reading.hide_read_feeds'); ?>
  47. </label>
  48. </div>
  49. </div>
  50. <div class="form-group">
  51. <div class="group-controls">
  52. <label class="checkbox" for="display_posts">
  53. <input type="checkbox" name="display_posts" id="display_posts" value="1"<?php echo FreshRSS_Context::$user_conf->display_posts ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->display_posts; ?>"/>
  54. <?php echo _t('conf.reading.display_articles_unfolded'); ?>
  55. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  56. </label>
  57. </div>
  58. </div>
  59. <div class="form-group">
  60. <div class="group-controls">
  61. <label class="checkbox" for="display_categories">
  62. <input type="checkbox" name="display_categories" id="display_categories" value="1"<?php echo FreshRSS_Context::$user_conf->display_categories ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->display_categories; ?>"/>
  63. <?php echo _t('conf.reading.display_categories_unfolded'); ?>
  64. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  65. </label>
  66. </div>
  67. </div>
  68. <div class="form-group">
  69. <div class="group-controls">
  70. <label class="checkbox" for="sticky_post">
  71. <input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?php echo FreshRSS_Context::$user_conf->sticky_post ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->sticky_post; ?>"/>
  72. <?php echo _t('conf.reading.sticky_post'); ?>
  73. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  74. </label>
  75. </div>
  76. </div>
  77. <div class="form-group">
  78. <div class="group-controls">
  79. <label class="checkbox" for="auto_load_more">
  80. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?php echo FreshRSS_Context::$user_conf->auto_load_more ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->auto_load_more; ?>"/>
  81. <?php echo _t('conf.reading.auto_load_more'); ?>
  82. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  83. </label>
  84. </div>
  85. </div>
  86. <div class="form-group">
  87. <div class="group-controls">
  88. <label class="checkbox" for="lazyload">
  89. <input type="checkbox" name="lazyload" id="lazyload" value="1"<?php echo FreshRSS_Context::$user_conf->lazyload ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->lazyload; ?>"/>
  90. <?php echo _t('conf.reading.img_with_lazyload'); ?>
  91. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  92. </label>
  93. </div>
  94. </div>
  95. <div class="form-group">
  96. <div class="group-controls">
  97. <label class="checkbox" for="reading_confirm">
  98. <input type="checkbox" name="reading_confirm" id="reading_confirm" value="1"<?php echo FreshRSS_Context::$user_conf->reading_confirm ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->reading_confirm; ?>"/>
  99. <?php echo _t('conf.reading.confirm_enabled'); ?>
  100. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  101. </label>
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <div class="group-controls">
  106. <label class="checkbox" for="auto_remove_article">
  107. <input type="checkbox" name="auto_remove_article" id="auto_remove_article" value="1"<?php echo FreshRSS_Context::$user_conf->auto_remove_article ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->auto_remove_article; ?>"/>
  108. <?php echo _t('conf.reading.auto_remove_article'); ?>
  109. <noscript> — <strong><?php echo _t('gen.js.should_be_activated'); ?></strong></noscript>
  110. </label>
  111. </div>
  112. </div>
  113. <div class="form-group">
  114. <div class="group-controls">
  115. <label class="checkbox" for="mark_updated_article_unread">
  116. <input type="checkbox" name="mark_updated_article_unread" id="mark_updated_article_unread" value="1"<?php echo FreshRSS_Context::$user_conf->mark_updated_article_unread ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->mark_updated_article_unread; ?>"/>
  117. <?php echo _t('conf.reading.mark_updated_article_unread'); ?>
  118. </label>
  119. </div>
  120. </div>
  121. <div class="form-group">
  122. <label class="group-name"><?php echo _t('conf.reading.read.when'); ?></label>
  123. <div class="group-controls">
  124. <label class="checkbox" for="check_open_article">
  125. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?php echo FreshRSS_Context::$user_conf->mark_when['article'] ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->mark_when['article']; ?>"/>
  126. <?php echo _t('conf.reading.read.article_viewed'); ?>
  127. </label>
  128. <label class="checkbox" for="check_open_site">
  129. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?php echo FreshRSS_Context::$user_conf->mark_when['site'] ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->mark_when['site']; ?>"/>
  130. <?php echo _t('conf.reading.read.article_open_on_website'); ?>
  131. </label>
  132. <label class="checkbox" for="check_scroll">
  133. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?php echo FreshRSS_Context::$user_conf->mark_when['scroll'] ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->mark_when['scroll']; ?>"/>
  134. <?php echo _t('conf.reading.read.scroll'); ?>
  135. </label>
  136. <label class="checkbox" for="check_reception">
  137. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="1"<?php echo FreshRSS_Context::$user_conf->mark_when['reception'] ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->mark_when['reception']; ?>"/>
  138. <?php echo _t('conf.reading.read.upon_reception'); ?>
  139. </label>
  140. </div>
  141. </div>
  142. <div class="form-group">
  143. <label class="group-name"><?php echo _t('conf.reading.after_onread'); ?></label>
  144. <div class="group-controls">
  145. <label class="checkbox" for="onread_jump_next">
  146. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?php echo FreshRSS_Context::$user_conf->onread_jump_next ? ' checked="checked"' : ''; ?> data-leave-validation="<?php echo FreshRSS_Context::$user_conf->onread_jump_next; ?>"/>
  147. <?php echo _t('conf.reading.jump_next'); ?>
  148. </label>
  149. </div>
  150. </div>
  151. <div class="form-group form-actions">
  152. <div class="group-controls">
  153. <button type="submit" class="btn btn-important"><?php echo _t('gen.action.submit'); ?></button>
  154. <button type="reset" class="btn"><?php echo _t('gen.action.cancel'); ?></button>
  155. </div>
  156. </div>
  157. </form>
  158. </div>