KXStudio Website https://kx.studio/
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

43 lines
3.2KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Comment Settings" | translate("comments") }{% endblock %}
  3. {% block content %}
  4. <form id="comment_settings" class="split" action="{% admin "comment_settings" %}" method="post">
  5. <fieldset>
  6. <p>
  7. <label for="akismet_api_key">${ "Akismet API Key" | translate("comments") }</label>
  8. <input class="text" type="text" name="akismet_api_key" value="${ site.akismet_api_key | escape }" id="akismet_api_key" /> <span class="sub">${ "(recommended)" | translate }</span>
  9. <small>${ "A very good spam blocker. Get an API key from <a href=\"http://akismet.com/\">Akismet.com</a>." | translate("comments") }</small>
  10. </p>
  11. <p>
  12. <label for="allowed_comment_html">${ "Allowed HTML Tags" | translate("comments") }</label>
  13. <input class="text code" type="text" name="allowed_comment_html" value="${ site.allowed_comment_html | join(", ") | escape }" id="allowed_comment_html" size="23" />
  14. <small>${ "Format: <code>strong, blockquote, em</code>" | translate("comments") }</small>
  15. </p>
  16. <p>
  17. <label for="default_comment_status">${ "Default Comment Status" | translate("comments") }</label>
  18. <select name="default_comment_status">
  19. <option value="approved"${ "approved" | option_selected(site.default_comment_status) }>${ "Approved" | translate("comments") }</option>
  20. <option value="denied"${ "denied" | option_selected(site.default_comment_status) }>${ "Denied" | translate("comments") }</option>
  21. <option value="spam"${ "spam" | option_selected(site.default_comment_status) }>${ "Spam" | translate("aggregator") }</option>
  22. </select>
  23. </p>
  24. <p>
  25. <label for="comments_per_page">${ "Comments Per Page" | translate("comments") }</label>
  26. <input class="text" type="text" name="comments_per_page" value="${ site.comments_per_page | escape }" size="2" id="comments_per_page" />
  27. </p>
  28. <p>
  29. <label for="auto_reload_comments">${ "Reload Comments Every %s Seconds" | translate("comments") | format("<input class=\"text\" type=\"text\" name=\"auto_reload_comments\" value=\"" ~ site.auto_reload_comments | escape ~ "\" size=\"2\" id=\"auto_reload_comments\" />") }</label>
  30. <input type="checkbox" class="checkbox" name="enable_reload_comments"${ site.enable_reload_comments | checked } /> ${ "enabled" | translate("comments") }
  31. </p>
  32. <p class="buttons">
  33. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  34. </p>
  35. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  36. </fieldset>
  37. </form>
  38. {% endblock %}