display.phtml 8.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>"><?php echo Translate::t ('back_to_rss_feeds'); ?></a>
  4. <form method="post" action="<?php echo _url ('configure', 'display'); ?>">
  5. <legend><?php echo Translate::t ('general_configuration'); ?></legend>
  6. <div class="form-group">
  7. <label class="group-name" for="language"><?php echo 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 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'] . ' ' . 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 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 Translate::t ('month'); ?>
  33. </div>
  34. </div>
  35. <div class="form-group">
  36. <label class="group-name" for="mail_login"><?php echo 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 Translate::t ('blank_to_disable'); ?>" />
  40. <noscript><b><?php echo 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 Translate::t ('allow_anonymous'); ?>
  44. </label>
  45. </div>
  46. </div>
  47. <div class="form-group">
  48. <label class="group-name" for="token"><?php echo 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 Translate::t ('blank_to_disable'); ?>"/>
  52. <i class="icon i_help"></i> <?php echo Translate::t('explain_token', Url::display()); ?>
  53. </div>
  54. </div>
  55. <legend><?php echo Translate::t ('reading_configuration'); ?></legend>
  56. <div class="form-group">
  57. <label class="group-name" for="posts_per_page"><?php echo 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 Translate::t ('sort_order'); ?></label>
  64. <div class="group-controls">
  65. <select name="sort_order" id="sort_order">
  66. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('newer_first'); ?></option>
  67. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>><?php echo 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 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 Translate::t ('normal_view'); ?></option>
  76. <option value="reader"<?php echo $this->conf->viewMode () == 'reader' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('reader_view'); ?></option>
  77. <option value="global"<?php echo $this->conf->viewMode () == 'global' ? ' selected="selected"' : ''; ?>><?php echo 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 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 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 Translate::t ('auto_load_more'); ?>
  94. <?php echo $this->conf->displayPosts () == 'no' ? '<noscript> - <b>' . 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 Translate::t ('display_articles_unfolded'); ?>
  103. <?php echo $this->conf->displayPosts () == 'no' ? '<noscript> - <b>' . 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 Translate::t ('img_with_lazyload'); ?>
  112. <?php echo $this->conf->lazyload () == 'yes' ? '<noscript> - <b>' . 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 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 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 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 Translate::t ('scroll'); ?>
  130. </label>
  131. </div>
  132. </div>
  133. <legend><?php echo Translate::t ('sharing'); ?></legend>
  134. <div class="form-group">
  135. <label class="group-name" for="shaarli"><?php echo Translate::t ('your_shaarli'); ?></label>
  136. <div class="group-controls">
  137. <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>"/>
  138. </div>
  139. </div>
  140. <legend><?php echo Translate::t ('advanced'); ?></legend>
  141. <div class="form-group">
  142. <label class="group-name"></label>
  143. <div class="group-controls">
  144. <a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
  145. <?php echo Translate::t('optimize_bdd'); ?>
  146. </a>
  147. <i class="icon i_help"></i> <?php echo Translate::t('optimize_todo_sometimes'); ?>
  148. </div>
  149. </div>
  150. <div class="form-group form-actions">
  151. <div class="group-controls">
  152. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  153. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  154. </div>
  155. </div>
  156. </form>
  157. </div>