display.phtml 9.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191
  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 ('theme'); ?></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 form-actions">
  30. <div class="group-controls">
  31. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  32. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  33. </div>
  34. </div>
  35. <legend><?php echo Minz_Translate::t ('reading_configuration'); ?></legend>
  36. <div class="form-group">
  37. <label class="group-name" for="posts_per_page"><?php echo Minz_Translate::t ('articles_per_page'); ?></label>
  38. <div class="group-controls">
  39. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->posts_per_page; ?>" />
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="group-name" for="sort_order"><?php echo Minz_Translate::t ('sort_order'); ?></label>
  44. <div class="group-controls">
  45. <select name="sort_order" id="sort_order">
  46. <option value="DESC"<?php echo $this->conf->sort_order === 'DESC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('newer_first'); ?></option>
  47. <option value="ASC"<?php echo $this->conf->sort_order === 'ASC' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('older_first'); ?></option>
  48. </select>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="group-name" for="view_mode"><?php echo Minz_Translate::t ('default_view'); ?></label>
  53. <div class="group-controls">
  54. <select name="view_mode" id="view_mode">
  55. <option value="normal"<?php echo $this->conf->view_mode === 'normal' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('normal_view'); ?></option>
  56. <option value="reader"<?php echo $this->conf->view_mode === 'reader' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('reader_view'); ?></option>
  57. <option value="global"<?php echo $this->conf->view_mode === 'global' ? ' selected="selected"' : ''; ?>><?php echo Minz_Translate::t ('global_view'); ?></option>
  58. </select>
  59. <label class="radio" for="radio_all">
  60. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->default_view === 'all' ? ' checked="checked"' : ''; ?> />
  61. <?php echo Minz_Translate::t ('show_all_articles'); ?>
  62. </label>
  63. <label class="radio" for="radio_not_read">
  64. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->default_view === 'not_read' ? ' checked="checked"' : ''; ?> />
  65. <?php echo Minz_Translate::t ('show_not_reads'); ?>
  66. </label>
  67. </div>
  68. </div>
  69. <div class="form-group">
  70. <div class="group-controls">
  71. <label class="checkbox" for="auto_load_more">
  72. <input type="checkbox" name="auto_load_more" id="auto_load_more" value="1"<?php echo $this->conf->auto_load_more ? ' checked="checked"' : ''; ?> />
  73. <?php echo Minz_Translate::t ('auto_load_more'); ?>
  74. <noscript> - <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  75. </label>
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <div class="group-controls">
  80. <label class="checkbox" for="display_posts">
  81. <input type="checkbox" name="display_posts" id="display_posts" value="1"<?php echo $this->conf->display_posts ? ' checked="checked"' : ''; ?> />
  82. <?php echo Minz_Translate::t ('display_articles_unfolded'); ?>
  83. <noscript> - <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  84. </label>
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <div class="group-controls">
  89. <label class="checkbox" for="lazyload">
  90. <input type="checkbox" name="lazyload" id="lazyload" value="1"<?php echo $this->conf->lazyload ? ' checked="checked"' : ''; ?> />
  91. <?php echo Minz_Translate::t ('img_with_lazyload'); ?>
  92. <noscript> - <strong><?php echo Minz_Translate::t ('javascript_should_be_activated'); ?></strong></noscript>
  93. </label>
  94. </div>
  95. </div>
  96. <div class="form-group">
  97. <label class="group-name"><?php echo Minz_Translate::t ('auto_read_when'); ?></label>
  98. <div class="group-controls">
  99. <label class="checkbox" for="check_open_article">
  100. <input type="checkbox" name="mark_open_article" id="check_open_article" value="1"<?php echo $this->conf->mark_when['article'] ? ' checked="checked"' : ''; ?> />
  101. <?php echo Minz_Translate::t ('article_selected'); ?>
  102. </label>
  103. <label class="checkbox" for="check_open_site">
  104. <input type="checkbox" name="mark_open_site" id="check_open_site" value="1"<?php echo $this->conf->mark_when['site'] ? ' checked="checked"' : ''; ?> />
  105. <?php echo Minz_Translate::t ('article_open_on_website'); ?>
  106. </label>
  107. <label class="checkbox" for="check_scroll">
  108. <input type="checkbox" name="mark_scroll" id="check_scroll" value="1"<?php echo $this->conf->mark_when['scroll'] ? ' checked="checked"' : ''; ?> />
  109. <?php echo Minz_Translate::t ('scroll'); ?>
  110. </label>
  111. <label class="checkbox" for="check_reception">
  112. <input type="checkbox" name="mark_upon_reception" id="check_reception" value="1"<?php echo $this->conf->mark_when['reception'] ? ' checked="checked"' : ''; ?> />
  113. <?php echo Minz_Translate::t ('upon_reception'); ?>
  114. </label>
  115. </div>
  116. </div>
  117. <div class="form-group">
  118. <label class="group-name"><?php echo Minz_Translate::t ('after_onread'); ?></label>
  119. <div class="group-controls">
  120. <label class="checkbox" for="onread_jump_next">
  121. <input type="checkbox" name="onread_jump_next" id="onread_jump_next" value="1"<?php echo $this->conf->onread_jump_next ? ' checked="checked"' : ''; ?> />
  122. <?php echo Minz_Translate::t ('jump_next'); ?>
  123. </label>
  124. </div>
  125. </div>
  126. <div class="form-group form-actions">
  127. <div class="group-controls">
  128. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  129. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  130. </div>
  131. </div>
  132. <legend><?php echo Minz_Translate::t ('reading_icons'); ?></legend>
  133. <div class="form-group">
  134. <table>
  135. <thead>
  136. <tr>
  137. <th> </th>
  138. <th title="<?php echo Minz_Translate::t ('mark_read'); ?>"><?php echo FreshRSS_Themes::icon('read'); ?></th>
  139. <th title="<?php echo Minz_Translate::t ('mark_favorite'); ?>"><?php echo FreshRSS_Themes::icon('bookmark'); ?></th>
  140. <th><?php echo Minz_Translate::t ('sharing'); ?></th>
  141. <th><?php echo Minz_Translate::t ('related_tags'); ?></th>
  142. <th><?php echo Minz_Translate::t ('publication_date'); ?></th>
  143. <th><?php echo FreshRSS_Themes::icon('link'); ?></th>
  144. </tr>
  145. </thead>
  146. <tbody>
  147. <tr>
  148. <th><?php echo Minz_Translate::t ('top_line'); ?></th>
  149. <td><input type="checkbox" name="topline_read" value="1"<?php echo $this->conf->topline_read ? ' checked="checked"' : ''; ?> /></td>
  150. <td><input type="checkbox" name="topline_favorite" value="1"<?php echo $this->conf->topline_favorite ? ' checked="checked"' : ''; ?> /></td>
  151. <td><input type="checkbox" disabled="disabled" /></td>
  152. <td><input type="checkbox" disabled="disabled" /></td>
  153. <td><input type="checkbox" name="topline_date" value="1"<?php echo $this->conf->topline_date ? ' checked="checked"' : ''; ?> /></td>
  154. <td><input type="checkbox" name="topline_link" value="1"<?php echo $this->conf->topline_link ? ' checked="checked"' : ''; ?> /></td>
  155. </tr><tr>
  156. <th><?php echo Minz_Translate::t ('bottom_line'); ?></th>
  157. <td><input type="checkbox" name="bottomline_read" value="1"<?php echo $this->conf->bottomline_read ? ' checked="checked"' : ''; ?> /></td>
  158. <td><input type="checkbox" name="bottomline_favorite" value="1"<?php echo $this->conf->bottomline_favorite ? ' checked="checked"' : ''; ?> /></td>
  159. <td><input type="checkbox" name="bottomline_sharing" value="1"<?php echo $this->conf->bottomline_sharing ? ' checked="checked"' : ''; ?> /></td>
  160. <td><input type="checkbox" name="bottomline_tags" value="1"<?php echo $this->conf->bottomline_tags ? ' checked="checked"' : ''; ?> /></td>
  161. <td><input type="checkbox" name="bottomline_date" value="1"<?php echo $this->conf->bottomline_date ? ' checked="checked"' : ''; ?> /></td>
  162. <td><input type="checkbox" name="bottomline_link" value="1"<?php echo $this->conf->bottomline_link ? ' checked="checked"' : ''; ?> /></td>
  163. </tr>
  164. </tbody>
  165. </table><br />
  166. </div>
  167. <div class="form-group form-actions">
  168. <div class="group-controls">
  169. <button type="submit" class="btn btn-important"><?php echo Minz_Translate::t ('save'); ?></button>
  170. <button type="reset" class="btn"><?php echo Minz_Translate::t ('cancel'); ?></button>
  171. </div>
  172. </div>
  173. </form>
  174. </div>