display.phtml 12 KB

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