display.phtml 4.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697
  1. <?php $this->partial ('aside_configure'); ?>
  2. <div class="post">
  3. <a href="<?php echo _url ('index', 'index'); ?>">← Retour à vos flux RSS</a>
  4. <form method="post" action="<?php echo _url ('configure', 'display'); ?>">
  5. <legend>Configuration générale</legend>
  6. <div class="form-group">
  7. <label class="group-name" for="old_entries">Supprimer les articles tous les</label>
  8. <div class="group-controls">
  9. <input type="number" id="old_entries" name="old_entries" value="<?php echo $this->conf->oldEntries (); ?>" /> mois
  10. </div>
  11. </div>
  12. <div class="form-group">
  13. <label class="group-name" for="mail_login">Adresse mail de connexion (utilise <a href="https://persona.org/">Persona</a>)</label>
  14. <?php $mail = $this->conf->mailLogin (); ?>
  15. <div class="group-controls">
  16. <input type="email" id="mail_login" name="mail_login" value="<?php echo $mail ? $mail : ''; ?>" placeholder="Laissez vide pour désactiver" />
  17. <noscript><b>nécessite que javascript soit activé</b></noscript>
  18. </div>
  19. </div>
  20. <legend>Configuration de lecture</legend>
  21. <div class="form-group">
  22. <label class="group-name" for="posts_per_page">Nombre d'articles par page</label>
  23. <div class="group-controls">
  24. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  25. </div>
  26. </div>
  27. <div class="form-group">
  28. <label class="group-name">Vue par défaut</label>
  29. <div class="group-controls">
  30. <label class="radio" for="radio_all">
  31. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  32. Tout afficher
  33. </label>
  34. <label class="radio" for="radio_not_read">
  35. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  36. Afficher les non lus
  37. </label>
  38. </div>
  39. </div>
  40. <div class="form-group">
  41. <label class="group-name" for="sort_order">Ordre de tri</label>
  42. <div class="group-controls">
  43. <select name="sort_order" id="sort_order">
  44. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option>
  45. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option>
  46. </select>
  47. </div>
  48. </div>
  49. <div class="form-group">
  50. <label class="group-name">Afficher les articles dépliés par défaut</label>
  51. <div class="group-controls">
  52. <label class="radio" for="radio_yes">
  53. <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  54. Oui
  55. </label>
  56. <label class="radio" for="radio_no">
  57. <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> />
  58. Non<noscript> - <b>nécessite que javascript soit activé</b></noscript>
  59. </label>
  60. </div>
  61. </div>
  62. <div class="form-group">
  63. <label class="group-name">Article automatiquement marqué comme lu lorsque</label>
  64. <div class="group-controls">
  65. <label class="checkbox" for="check_open_article">
  66. <input type="checkbox" name="mark_open_article" id="check_open_article" value="yes"<?php echo $this->conf->markWhenArticle () == 'yes' ? ' checked="checked"' : ''; ?> />
  67. l'article est sélectionné
  68. </label>
  69. <label class="checkbox" for="check_open_site">
  70. <input type="checkbox" name="mark_open_site" id="check_open_site" value="yes"<?php echo $this->conf->markWhenSite () == 'yes' ? ' checked="checked"' : ''; ?> />
  71. l'article est ouvert sur le site d'origine
  72. </label>
  73. <label class="checkbox" for="check_open_page">
  74. <input type="checkbox" name="mark_open_page" id="check_open_page" value="yes"<?php echo $this->conf->markWhenPage () == 'yes' ? ' checked="checked"' : ''; ?> />
  75. la page est chargée
  76. </label>
  77. </div>
  78. </div>
  79. <div class="form-group form-actions">
  80. <div class="group-controls">
  81. <button type="submit" class="btn btn-important">Valider</button>
  82. <button type="reset" class="btn">Annuler</button>
  83. </div>
  84. </div>
  85. </form>
  86. </div>