reading.phtml 7.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158
  1. <?php $this->partial('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url('index', 'index'); ?>"><?php echo _t('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url('configure', 'reading'); ?>">
  5. <legend><?php echo _t('reading_configuration'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="posts_per_page"><?php echo _t('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::$conf->posts_per_page; ?>" min="5" max="50" />
  10. <?php echo _i('help'); ?> <?php echo _t('number_divided_when_reader'); ?>
  11. </div>
  12. </div>
  13. <div class="form-group">
  14. <label class="group-name" for="sort_order"><?php echo _t('sort_order'); ?></label>
  15. <div class="group-controls">
  16. <select name="sort_order" id="sort_order">
  17. <option value="DESC"<?php echo FreshRSS_Context::$conf->sort_order === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo _t('newer_first'); ?></option>
  18. <option value="ASC"<?php echo FreshRSS_Context::$conf->sort_order === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo _t('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('default_view'); ?></label>
  24. <div class="group-controls">
  25. <select name="view_mode" id="view_mode">
  26. <option value="normal"<?php echo FreshRSS_Context::$conf->view_mode === 'normal' ? ' selected="selected"' : ''; ?>><?php echo _t('normal_view'); ?></option>
  27. <option value="reader"<?php echo FreshRSS_Context::$conf->view_mode === 'reader' ? ' selected="selected"' : ''; ?>><?php echo _t('reader_view'); ?></option>
  28. <option value="global"<?php echo FreshRSS_Context::$conf->view_mode === 'global' ? ' selected="selected"' : ''; ?>><?php echo _t('global_view'); ?></option>
  29. </select>
  30. </div>
  31. </div>
  32. <div class="form-group">
  33. <label class="group-name" for="view_mode"><?php echo _t('articles_to_display'); ?></label>
  34. <div class="group-controls">
  35. <select name="default_view" id="default_view">
  36. <option value="adaptive"<?php echo FreshRSS_Context::$conf->default_view === 'adaptive' ? ' selected="selected"' : ''; ?>><?php echo _t('show_adaptive'); ?></option>
  37. <option value="all"<?php echo FreshRSS_Context::$conf->default_view === 'all' ? ' selected="selected"' : ''; ?>><?php echo _t('show_all_articles'); ?></option>
  38. <option value="unread"<?php echo FreshRSS_Context::$conf->default_view === 'unread' ? ' selected="selected"' : ''; ?>><?php echo _t('show_not_reads'); ?></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::$conf->hide_read_feeds ? ' checked="checked"' : ''; ?> />
  46. <?php echo _t('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::$conf->display_posts ? ' checked="checked"' : ''; ?> />
  54. <?php echo _t('display_articles_unfolded'); ?>
  55. <noscript> — <strong><?php echo _t('javascript_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::$conf->display_categories ? ' checked="checked"' : ''; ?> />
  63. <?php echo _t('display_categories_unfolded'); ?>
  64. <noscript> — <strong><?php echo _t('javascript_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::$conf->sticky_post ? ' checked="checked"' : ''; ?> />
  72. <?php echo _t('sticky_post'); ?>
  73. <noscript> — <strong><?php echo _t('javascript_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::$conf->auto_load_more ? ' checked="checked"' : ''; ?> />
  81. <?php echo _t('auto_load_more'); ?>
  82. <noscript> — <strong><?php echo _t('javascript_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::$conf->lazyload ? ' checked="checked"' : ''; ?> />
  90. <?php echo _t('img_with_lazyload'); ?>
  91. <noscript> — <strong><?php echo _t('javascript_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::$conf->reading_confirm ? ' checked="checked"' : ''; ?> />
  99. <?php echo _t('reading_confirm'); ?>
  100. <noscript> — <strong><?php echo _t('javascript_should_be_activated'); ?></strong></noscript>
  101. </label>
  102. </div>
  103. </div>
  104. <div class="form-group">
  105. <label class="group-name"><?php echo _t('auto_read_when'); ?></label>
  106. <div class="group-controls">
  107. <label class="checkbox" for="check_open_article">
  108. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?php echo FreshRSS_Context::$conf->mark_when['article'] ? ' checked="checked"' : ''; ?> />
  109. <?php echo _t('article_viewed'); ?>
  110. </label>
  111. <label class="checkbox" for="check_open_site">
  112. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?php echo FreshRSS_Context::$conf->mark_when['site'] ? ' checked="checked"' : ''; ?> />
  113. <?php echo _t('article_open_on_website'); ?>
  114. </label>
  115. <label class="checkbox" for="check_scroll">
  116. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?php echo FreshRSS_Context::$conf->mark_when['scroll'] ? ' checked="checked"' : ''; ?> />
  117. <?php echo _t('scroll'); ?>
  118. </label>
  119. <label class="checkbox" for="check_reception">
  120. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="1"<?php echo FreshRSS_Context::$conf->mark_when['reception'] ? ' checked="checked"' : ''; ?> />
  121. <?php echo _t('upon_reception'); ?>
  122. </label>
  123. </div>
  124. </div>
  125. <div class="form-group">
  126. <label class="group-name"><?php echo _t('after_onread'); ?></label>
  127. <div class="group-controls">
  128. <label class="checkbox" for="onread_jump_next">
  129. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?php echo FreshRSS_Context::$conf->onread_jump_next ? ' checked="checked"' : ''; ?> />
  130. <?php echo _t('jump_next'); ?>
  131. </label>
  132. </div>
  133. </div>
  134. <div class="form-group form-actions">
  135. <div class="group-controls">
  136. <button type="submit" class="btn btn-important"><?php echo _t('save'); ?></button>
  137. <button type="reset" class="btn"><?php echo _t('cancel'); ?></button>
  138. </div>
  139. </div>
  140. </form>
  141. </div>