display.phtml 9.8 KB

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