display.phtml 7.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147
  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. </div>
  30. </div>
  31. <legend><?php echo Translate::t ('reading_configuration'); ?></legend>
  32. <div class="form-group">
  33. <label class="group-name" for="posts_per_page"><?php echo Translate::t ('articles_per_page'); ?></label>
  34. <div class="group-controls">
  35. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  36. </div>
  37. </div>
  38. <div class="form-group">
  39. <label class="group-name"><?php echo Translate::t ('default_view'); ?></label>
  40. <div class="group-controls">
  41. <select name="view_mode" id="view_mode">
  42. <option value="normal"<?php echo $this->conf->viewMode () == 'normal' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('normal_view'); ?></option>
  43. <option value="reader"<?php echo $this->conf->viewMode () == 'reader' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('reader_view'); ?></option>
  44. <option value="global"<?php echo $this->conf->viewMode () == 'global' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('global_view'); ?></option>
  45. </select>
  46. <label class="radio" for="radio_all">
  47. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  48. <?php echo Translate::t ('show_all_articles'); ?>
  49. </label>
  50. <label class="radio" for="radio_not_read">
  51. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  52. <?php echo Translate::t ('show_not_reads'); ?>
  53. </label>
  54. </div>
  55. </div>
  56. <div class="form-group">
  57. <label class="group-name" for="sort_order"><?php echo Translate::t ('sort_order'); ?></label>
  58. <div class="group-controls">
  59. <select name="sort_order" id="sort_order">
  60. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('newer_first'); ?></option>
  61. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>><?php echo Translate::t ('older_first'); ?></option>
  62. </select>
  63. </div>
  64. </div>
  65. <div class="form-group">
  66. <label class="group-name"><?php echo Translate::t ('img_with_lazyload'); ?></label>
  67. <div class="group-controls">
  68. <label class="radio" for="lazyload_yes">
  69. <input type="radio" name="lazyload" id="lazyload_yes" value="yes"<?php echo $this->conf->lazyload () == 'yes' ? ' checked="checked"' : ''; ?> />
  70. <?php echo Translate::t ('yes'); ?><noscript> - <b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript>
  71. </label>
  72. <label class="radio" for="lazyload_no">
  73. <input type="radio" name="lazyload" id="lazyload_no" value="no"<?php echo $this->conf->lazyload () == 'no' ? ' checked="checked"' : ''; ?> />
  74. <?php echo Translate::t ('no'); ?>
  75. </label>
  76. </div>
  77. </div>
  78. <div class="form-group">
  79. <label class="group-name"><?php echo Translate::t ('display_articles_unfolded'); ?></label>
  80. <div class="group-controls">
  81. <label class="radio" for="radio_yes">
  82. <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  83. <?php echo Translate::t ('yes'); ?>
  84. </label>
  85. <label class="radio" for="radio_no">
  86. <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> />
  87. <?php echo Translate::t ('no'); ?><noscript> - <b><?php echo Translate::t ('javascript_should_be_activated'); ?></b></noscript>
  88. </label>
  89. </div>
  90. </div>
  91. <div class="form-group">
  92. <label class="group-name"><?php echo Translate::t ('auto_read_when'); ?></label>
  93. <div class="group-controls">
  94. <label class="checkbox" for="check_open_article">
  95. <input type="checkbox" name="mark_open_article" id="check_open_article" value="yes"<?php echo $this->conf->markWhenArticle () == 'yes' ? ' checked="checked"' : ''; ?> />
  96. <?php echo Translate::t ('article_selected'); ?>
  97. </label>
  98. <label class="checkbox" for="check_open_site">
  99. <input type="checkbox" name="mark_open_site" id="check_open_site" value="yes"<?php echo $this->conf->markWhenSite () == 'yes' ? ' checked="checked"' : ''; ?> />
  100. <?php echo Translate::t ('article_open_on_website'); ?>
  101. </label>
  102. <label class="checkbox" for="check_open_page">
  103. <input type="checkbox" name="mark_open_page" id="check_open_page" value="yes"<?php echo $this->conf->markWhenPage () == 'yes' ? ' checked="checked"' : ''; ?> />
  104. <?php echo Translate::t ('page_loaded'); ?>
  105. </label>
  106. </div>
  107. </div>
  108. <legend><?php echo Translate::t ('sharing'); ?></legend>
  109. <div class="form-group">
  110. <label class="group-name" for="shaarli"><?php echo Translate::t ('your_shaarli'); ?></label>
  111. <div class="group-controls">
  112. <input type="text" id="shaarli" name="shaarli" value="<?php echo $this->conf->urlShaarli (); ?>" placeholder="<?php echo Translate::t ('blank_to_disable'); ?>"/>
  113. </div>
  114. </div>
  115. <legend><?php echo Translate::t ('advanced'); ?></legend>
  116. <div class="form-group">
  117. <label class="group-name"></label>
  118. <div class="group-controls">
  119. <a class="btn" href="<?php echo _url('entry', 'optimize'); ?>">
  120. <?php echo Translate::t('optimize_bdd'); ?>
  121. </a>
  122. <i class="icon i_help"></i> <?php echo Translate::t('optimize_todo_sometimes'); ?>
  123. </div>
  124. </div>
  125. <div class="form-group form-actions">
  126. <div class="group-controls">
  127. <button type="submit" class="btn btn-important"><?php echo Translate::t ('save'); ?></button>
  128. <button type="reset" class="btn"><?php echo Translate::t ('cancel'); ?></button>
  129. </div>
  130. </div>
  131. </form>
  132. </div>