display.phtml 1.7 KB

1234567891011121314151617181920212223242526272829303132
  1. <form method="post" action="">
  2. <h1>Configuration de l'affichage</h1>
  3. <label for="posts_per_page">Nombre d'articles par page</label>
  4. <input type="number" id="posts_per_page" name="posts_per_page" value="<?php echo $this->conf->postsPerPage (); ?>" />
  5. <label>Vue par défaut</label>
  6. <div class="radio_group">
  7. <input type="radio" name="default_view" id="radio_all" value="all"<?php echo $this->conf->defaultView () == 'all' ? ' checked="checked"' : ''; ?> />
  8. <label for="radio_all">Tout afficher</label>
  9. <br />
  10. <input type="radio" name="default_view" id="radio_not_read" value="not_read"<?php echo $this->conf->defaultView () == 'not_read' ? ' checked="checked"' : ''; ?> />
  11. <label for="radio_not_read">Afficher les non lus</label>
  12. </div>
  13. <label for="sort_order">Ordre de tri</label>
  14. <select name="sort_order" id="sort_order">
  15. <option value="low_to_high"<?php echo $this->conf->sortOrder () == 'low_to_high' ? ' selected="selected"' : ''; ?>>Du plus récent au plus ancien</option>
  16. <option value="high_to_low"<?php echo $this->conf->sortOrder () == 'high_to_low' ? ' selected="selected"' : ''; ?>>Du plus ancien au plus récent</option>
  17. </select>
  18. <label>Afficher les articles dépliés par défaut</label>
  19. <div class="radio_group">
  20. <input type="radio" name="display_posts" id="radio_yes" value="yes"<?php echo $this->conf->displayPosts () == 'yes' ? ' checked="checked"' : ''; ?> />
  21. <label for="radio_yes">Oui</label>
  22. <br />
  23. <input type="radio" name="display_posts" id="radio_no" value="no"<?php echo $this->conf->displayPosts () == 'no' ? ' checked="checked"' : ''; ?> />
  24. <label for="radio_no">Non<noscript> - <strong>nécessite que javascript soit activé</strong></noscript></label>
  25. </div>
  26. <input type="submit" value="Valider" />
  27. </form>