display.phtml 12 KB

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