display.phtml 7.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143
  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="old_entries"><?php echo Translate::t ('delete_articles_every'); ?></label>
  19. <div class="group-controls">
  20. <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> <?php echo Translate::t ('month'); ?>
  21. </div>
  22. </div>
  23. <div class="form-group">
  24. <label class="group-name" for="mail_login"><?php echo Translate::t ('persona_connection_email'); ?></label>
  25. <?php $mail = $this->conf->mailLogin (); ?>
  26. <div class="group-controls">
  27. <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>" />
  28. <noscript><b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript>
  29. <label class="checkbox" for="anon_access">
  30. <input type="checkbox" name="anon_access" id="anon_access" value="yes"<?php echo $this->conf->anonAccess () == 'yes' ? ' checked="checked"' : ''; ?> />
  31. <?php echo Translate::t ('allow_anonymous'); ?>
  32. </label>
  33. </div>
  34. </div>
  35. <legend><?php echo Translate::t ('reading_configuration'); ?></legend>
  36. <div class="form-group">
  37. <label class="group-name" for="posts_per_page"><?php echo 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->postsPerPage (); ?>" />
  40. </div>
  41. </div>
  42. <div class="form-group">
  43. <label class="group-name" for="sort_order"><?php echo Translate::t ('sort_order'); ?></label>
  44. <div class="group-controls">
  45. <select name="sort_order" id="sort_order">
  46. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('newer_first'); ?></option>
  47. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('older_first'); ?></option>
  48. </select>
  49. </div>
  50. </div>
  51. <div class="form-group">
  52. <label class="group-name"><?php echo 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->viewMode () == 'normal' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('normal_view'); ?></option>
  56. <option value="reader"<?php echo $this->conf->viewMode () == 'reader' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('reader_view'); ?></option>
  57. <option value="global"<?php echo $this->conf->viewMode () == 'global' ? ' selected="selected"' : ''; ?>><?php echo 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->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  61. <?php echo 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->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  65. <?php echo 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="display_posts">
  72. <input type="checkbox" name="display_posts" id="display_posts" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  73. <?php echo Translate::t ('display_articles_unfolded'); ?>
  74. <?php echo $this->conf->displayPosts () == 'no' ? '<noscript> - <b>' . Translate::t ('javascript_should_be_activated') . '</b></noscript>' : ''; ?>
  75. </label>
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <div class="group-controls">
  80. <label class="checkbox" for="lazyload">
  81. <input type="checkbox" name="lazyload" id="lazyload" value="yes"<?php echo $this->conf->lazyload () == 'yes' ? ' checked="checked"' : ''; ?> />
  82. <?php echo Translate::t ('img_with_lazyload'); ?>
  83. <?php echo $this->conf->lazyload () == 'yes' ? '<noscript> - <b>' . Translate::t ('javascript_should_be_activated') . '</b></noscript>' : ''; ?>
  84. </label>
  85. </div>
  86. </div>
  87. <div class="form-group">
  88. <label class="group-name"><?php echo Translate::t ('auto_read_when'); ?></label>
  89. <div class="group-controls">
  90. <label class="checkbox" for="check_open_article">
  91. <input type="checkbox" name="mark_open_article" id="check_open_article" value="yes"<?php echo $this->conf->markWhenArticle () == 'yes' ? ' checked="checked"' : ''; ?> />
  92. <?php echo Translate::t ('article_selected'); ?>
  93. </label>
  94. <label class="checkbox" for="check_open_site">
  95. <input type="checkbox" name="mark_open_site" id="check_open_site" value="yes"<?php echo $this->conf->markWhenSite () == 'yes' ? ' checked="checked"' : ''; ?> />
  96. <?php echo Translate::t ('article_open_on_website'); ?>
  97. </label>
  98. <label class="checkbox" for="check_scroll">
  99. <input type="checkbox" name="mark_scroll" id="check_scroll" value="yes"<?php echo $this->conf->markWhenScroll () == 'yes' ? ' checked="checked"' : ''; ?> />
  100. <?php echo Translate::t ('scroll'); ?>
  101. </label>
  102. </div>
  103. </div>
  104. <legend><?php echo Translate::t ('sharing'); ?></legend>
  105. <div class="form-group">
  106. <label class="group-name" for="shaarli"><?php echo Translate::t ('your_shaarli'); ?></label>
  107. <div class="group-controls">
  108. <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>"/>
  109. </div>
  110. </div>
  111. <legend><?php echo Translate::t ('advanced'); ?></legend>
  112. <div class="form-group">
  113. <label class="group-name"></label>
  114. <div class="group-controls">
  115. <a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
  116. <?php echo Translate::t('optimize_bdd'); ?>
  117. </a>
  118. <i class="icon i_help"></i> <?php echo Translate::t('optimize_todo_sometimes'); ?>
  119. </div>
  120. </div>
  121. <div class="form-group form-actions">
  122. <div class="group-controls">
  123. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  124. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  125. </div>
  126. </div>
  127. </form>
  128. </div>