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.

route_settings.twig 3.8KB

9 years ago
1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Route Settings" | translate }{% endblock %}
  3. {% block content %}
  4. <form id="route_settings" class="split" action="{% admin "route_settings" %}" method="post" accept-charset="utf-8" enctype="multipart/form-data">
  5. <fieldset>
  6. <p>
  7. <label for="clean_urls">${ "Clean URLs?" | translate }</label>
  8. <input type="checkbox" name="clean_urls" id="clean_urls"${ site.clean_urls | checked } />
  9. <span class="sub">${ "(recommended)" | translate }</span>
  10. <small>
  11. ${ "Gives your site prettier urls." | translate }<br />
  12. ${ "Requires .htaccess support (pretty common). If you're unsure, it's safe to test and find out. Just come back and disable it if it breaks your site." | translate }
  13. </small>
  14. </p>
  15. <p>
  16. <label for="post_url">
  17. ${ "Post View URL" | translate }
  18. <span class="sub">${ "(requires clean URLs)" | translate }</span>
  19. </label>
  20. <input class="text code" type="text" name="post_url" value="${ site.post_url | escape }" size="30" id="post_url" />
  21. </p>
  22. <div class="small">
  23. <strong>${ "Syntax:" | translate }</strong>
  24. <ul>
  25. <li><code>(year)</code>: ${ "Year submitted" | translate } <span class="sub">${ "(ex. 2007)" | translate }</span></li>
  26. <li><code>(month)</code>: ${ "Month submitted" | translate } <span class="sub">${ "(ex. 12)" | translate }</span></li>
  27. <li><code>(day)</code>: ${ "Day submitted" | translate } <span class="sub">${ "(ex. 25)" | translate }</span></li>
  28. <li><code>(hour)</code>: ${ "Hour submitted" | translate } <span class="sub">${ "(ex. 03)" | translate }</span></li>
  29. <li><code>(minute)</code>: ${ "Minute submitted" | translate } <span class="sub">${ "(ex. 59)" | translate }</span></li>
  30. <li><code>(second)</code>: ${ "Second submitted" | translate } <span class="sub">${ "(ex. 30)" | translate }</span></li>
  31. <li><code>(id)</code>: ${ "Post ID" | translate }</li>
  32. <li><code>(author)</code>: ${ "Post author (username)" | translate } <span class="sub">${ "(ex. Alex)" | translate }</span></li>
  33. <li><code>(clean)</code>: ${ "The non-unique sanitized name" | translate } <span class="sub">${ "(ex. this_is_clean)" | translate }</span></li>
  34. <li><code>(url)</code>: ${ "The unique form of (clean)" | translate } <span class="sub">${ "(ex. this_one_is_taken_2)" | translate }</span></li>
  35. <li><code>(feather)</code>: ${ "The post's feather" | translate } <span class="sub">${ "(ex. text)" | translate }</span></li>
  36. <li><code>(feathers)</code>: ${ "The plural form of the post's feather" | translate } <span class="sub">${ "(ex. links)" | translate }</span></li>
  37. ${ trigger.call("post_view_url_settings") }
  38. </ul>
  39. </div>
  40. <p class="buttons">
  41. <button type="submit" class="yay"><img src="$theme_url/images/icons/success.png" alt="success" />${ "Update" | translate }</button>
  42. </p>
  43. <input type="hidden" name="hash" value="$site.secure_hashkey" id="hash" />
  44. </fieldset>
  45. </form>
  46. {% endblock %}