display.phtml 1.3 KB

12345678910111213141516171819202122232425262728
  1. <div class="post">
  2. <form method="post" action="">
  3. <h1>Configuration de l'affichage</h1>
  4. <label for="posts_per_page">Nombre d'articles par page</label>
  5. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  6. <label>Vue par défaut</label>
  7. <div class="radio_group">
  8. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  9. <label for="radio_all">Tout afficher</label>
  10. <br />
  11. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  12. <label for="radio_not_read">Afficher les non lus</label>
  13. </div>
  14. <label>Afficher les articles dépliés par défaut</label>
  15. <div class="radio_group">
  16. <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () ? ' checked="checked"' : ''; ?> />
  17. <label for="radio_yes">Oui</label>
  18. <br />
  19. <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo !$this->conf->displayPosts () ? ' checked="checked"' : ''; ?> />
  20. <label for="radio_no">Non</label>
  21. </div>
  22. <input type="submit" value="Valider" />
  23. </form>
  24. </div>