reading.phtml 8.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160
  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', 'reading'); ?>">
  5. <legend><?php echo Minz_Translate::t ('reading_configuration'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="posts_per_page"><?php echo Minz_Translate::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 $this->conf->posts_per_page; ?>" min="5" max="50" />
  10. <?php if ($this->conf->display_posts) { ?>
  11. <?php echo _i('help'); ?> <?php echo _t('number_divided_when_unfolded'); ?>
  12. <?php } ?>
  13. </div>
  14. </div>
  15. <div class="form-group">
  16. <label class="group-name" for="sort_order"><?php echo Minz_Translate::t ('sort_order'); ?></label>
  17. <div class="group-controls">
  18. <select name="sort_order" id="sort_order">
  19. <option value="DESC"<?php echo $this->conf->sort_order === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('newer_first'); ?></option>
  20. <option value="ASC"<?php echo $this->conf->sort_order === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('older_first'); ?></option>
  21. </select>
  22. </div>
  23. </div>
  24. <div class="form-group">
  25. <label class="group-name" for="view_mode"><?php echo Minz_Translate::t ('default_view'); ?></label>
  26. <div class="group-controls">
  27. <select name="view_mode" id="view_mode">
  28. <option value="normal"<?php echo $this->conf->view_mode === 'normal' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('normal_view'); ?></option>
  29. <option value="reader"<?php echo $this->conf->view_mode === 'reader' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('reader_view'); ?></option>
  30. <option value="global"<?php echo $this->conf->view_mode === 'global' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('global_view'); ?></option>
  31. </select>
  32. </div>
  33. </div>
  34. <div class="form-group">
  35. <label class="group-name" for="view_mode"><?php echo _t('articles_to_display'); ?></label>
  36. <div class="group-controls">
  37. <select name="default_view" id="default_view">
  38. <option value="<?php echo FreshRSS_Entry::STATE_NOT_READ; ?>"<?php echo $this->conf->default_view === FreshRSS_Entry::STATE_NOT_READ ? ' selected="selected"' : ''; ?>><?php echo _t('show_adaptive'); ?></option>
  39. <option value="<?php echo FreshRSS_Entry::STATE_ALL; ?>"<?php echo $this->conf->default_view === FreshRSS_Entry::STATE_ALL ? ' selected="selected"' : ''; ?>><?php echo _t('show_all_articles'); ?></option>
  40. <option value="<?php echo FreshRSS_Entry::STATE_NOT_READ_STRICT; ?>"<?php echo $this->conf->default_view === FreshRSS_Entry::STATE_NOT_READ_STRICT ? ' selected="selected"' : ''; ?>><?php echo _t('show_not_reads'); ?></option>
  41. </select>
  42. </div>
  43. </div>
  44. <div class="form-group">
  45. <div class="group-controls">
  46. <label class="checkbox" for="hide_read_feeds">
  47. <input type="checkbox" name="hide_read_feeds" id="hide_read_feeds" value="1"<?php echo $this->conf->hide_read_feeds ? ' checked="checked"' : ''; ?> />
  48. <?php echo Minz_Translate::t('hide_read_feeds'); ?>
  49. </label>
  50. </div>
  51. </div>
  52. <div class="form-group">
  53. <div class="group-controls">
  54. <label class="checkbox" for="display_posts">
  55. <input type="checkbox" name="display_posts" id="display_posts" value="1"<?php echo $this->conf->display_posts ? ' checked="checked"' : ''; ?> />
  56. <?php echo Minz_Translate::t ('display_articles_unfolded'); ?>
  57. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  58. </label>
  59. </div>
  60. </div>
  61. <div class="form-group">
  62. <div class="group-controls">
  63. <label class="checkbox" for="display_categories">
  64. <input type="checkbox" name="display_categories" id="display_categories" value="1"<?php echo $this->conf->display_categories ? ' checked="checked"' : ''; ?> />
  65. <?php echo Minz_Translate::t ('display_categories_unfolded'); ?>
  66. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  67. </label>
  68. </div>
  69. </div>
  70. <div class="form-group">
  71. <div class="group-controls">
  72. <label class="checkbox" for="sticky_post">
  73. <input type="checkbox" name="sticky_post" id="sticky_post" value="1"<?php echo $this->conf->sticky_post ? ' checked="checked"' : ''; ?> />
  74. <?php echo Minz_Translate::t ('sticky_post'); ?>
  75. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  76. </label>
  77. </div>
  78. </div>
  79. <div class="form-group">
  80. <div class="group-controls">
  81. <label class="checkbox" for="auto_load_more">
  82. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?php echo $this->conf->auto_load_more ? ' checked="checked"' : ''; ?> />
  83. <?php echo Minz_Translate::t ('auto_load_more'); ?>
  84. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  85. </label>
  86. </div>
  87. </div>
  88. <div class="form-group">
  89. <div class="group-controls">
  90. <label class="checkbox" for="lazyload">
  91. <input type="checkbox" name="lazyload" id="lazyload" value="1"<?php echo $this->conf->lazyload ? ' checked="checked"' : ''; ?> />
  92. <?php echo Minz_Translate::t ('img_with_lazyload'); ?>
  93. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  94. </label>
  95. </div>
  96. </div>
  97. <div class="form-group">
  98. <div class="group-controls">
  99. <label class="checkbox" for="reading_confirm">
  100. <input type="checkbox" name="reading_confirm" id="reading_confirm" value="1"<?php echo $this->conf->reading_confirm ? ' checked="checked"' : ''; ?> />
  101. <?php echo Minz_Translate::t ('reading_confirm'); ?>
  102. <noscript> — <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  103. </label>
  104. </div>
  105. </div>
  106. <div class="form-group">
  107. <label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
  108. <div class="group-controls">
  109. <label class="checkbox" for="check_open_article">
  110. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?php echo $this->conf->mark_when['article'] ? ' checked="checked"' : ''; ?> />
  111. <?php echo Minz_Translate::t('article_viewed'); ?>
  112. </label>
  113. <label class="checkbox" for="check_open_site">
  114. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?php echo $this->conf->mark_when['site'] ? ' checked="checked"' : ''; ?> />
  115. <?php echo Minz_Translate::t ('article_open_on_website'); ?>
  116. </label>
  117. <label class="checkbox" for="check_scroll">
  118. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?php echo $this->conf->mark_when['scroll'] ? ' checked="checked"' : ''; ?> />
  119. <?php echo Minz_Translate::t ('scroll'); ?>
  120. </label>
  121. <label class="checkbox" for="check_reception">
  122. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="1"<?php echo $this->conf->mark_when['reception'] ? ' checked="checked"' : ''; ?> />
  123. <?php echo Minz_Translate::t ('upon_reception'); ?>
  124. </label>
  125. </div>
  126. </div>
  127. <div class="form-group">
  128. <label class="group-name"><?php echo Minz_Translate::t ('after_onread'); ?></label>
  129. <div class="group-controls">
  130. <label class="checkbox" for="onread_jump_next">
  131. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?php echo $this->conf->onread_jump_next ? ' checked="checked"' : ''; ?> />
  132. <?php echo Minz_Translate::t ('jump_next'); ?>
  133. </label>
  134. </div>
  135. </div>
  136. <div class="form-group form-actions">
  137. <div class="group-controls">
  138. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  139. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  140. </div>
  141. </div>
  142. </form>
  143. </div>