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.

51 lines
2.4KB

  1. <form action="$site.url" method="get" accept-charset="utf-8">
  2. <fieldset>
  3. <input type="hidden" name="action" value="search" id="action" />
  4. <input type="text" id="search" name="query" value="${ GET.query | escape }" />
  5. </fieldset>
  6. </form>
  7. {% if theme.pages_list %}
  8. <h2 class="box-header">${ "Pages" | translate }</h2>
  9. <ul>
  10. {% for item in theme.pages_list %}
  11. <li>
  12. <a href="$item.page.url">$item.page.title</a>
  13. {% if item.has_children %}<ul>{% endif %}
  14. {% if not item.has_children %}</li>{% endif %}
  15. {% for ul, li in item.end_tags %}
  16. $ul
  17. $li
  18. {% endfor %}
  19. {% endfor %}
  20. </ul>
  21. {% endif %}
  22. <h2 class="box-header">${ "Welcome, %s!" | translate | format(visitor.login | fallback("Guest" | translate)) }</h2>
  23. <ul class="navigation">
  24. {% if visitor.logged_in %}
  25. <li><a href="{% url "controls" %}">${ "User Controls" | translate }</a></li>
  26. <li><a href="{% url "logout" %}">${ "Log Out" | translate }</a></li>
  27. {% else %}
  28. <li><a href="{% url "login" %}">${ "Log In" | translate }</a></li>
  29. {% if site.can_register %}
  30. <li><a href="{% url "register" %}">${ "Register" | translate }</a></li>
  31. {% endif %}
  32. <li><a href="{% url "lost_password" %}">${ "Lost Password?" | translate }</a></li>
  33. {% endif %}
  34. </ul>
  35. ${ trigger.call("sidebar") }
  36. {% if theme.archives_list %}
  37. <h2 class="box-header">${ "Archives" | translate }</h2>
  38. <ul class="navigation">
  39. {% for archive in theme.archives_list %}
  40. <li>
  41. <a href="$archive.url">${ archive.when | strftime("%B %Y" | translate) } ($archive.count)</a>
  42. </li>
  43. {% endfor %}
  44. <li><a href="{% url "archive" %}">${ "All &rarr;" | translate }</a></li>
  45. </ul>
  46. {% endif %}