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.

68 lines
3.1KB

  1. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
  2. "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
  3. <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="${ site.locale | split("_") | first }" lang="${ site.locale | split("_") | first }">
  4. <head>
  5. <meta http-equiv="Content-type" content="$theme.type; charset=utf-8" />
  6. <title>$site.name: {% block title %}$title{% endblock %}</title>
  7. <link rel="stylesheet" href="$theme_url/style.css" type="text/css" media="screen" title="no title" charset="utf-8" />
  8. <script src="$site.chyrp_url/includes/lib/gz.php?file=jquery.js" type="text/javascript" charset="utf-8"></script>
  9. <script src="$site.chyrp_url/includes/lib/gz.php?file=plugins.js" type="text/javascript" charset="utf-8"></script>
  10. <script src="$site.chyrp_url/includes/admin.js.php?action=$route.action" type="text/javascript" charset="utf-8"></script>
  11. ${ trigger.call("admin_head") }
  12. </head>
  13. <body>
  14. <div id="header">
  15. <div class="column">
  16. <ul id="navigation">
  17. {% block navigation %}
  18. {% for action, nav in navigation | items %}
  19. {% if nav.show %}
  20. <li class="$action{% if nav.selected %} selected{% endif %}"$nav.attributes><a href="{% admin action %}">$nav.title</a></li>
  21. {% endif %}
  22. {% endfor %}
  23. {% endblock %}
  24. </ul>
  25. <h1><a href="$site.url">$site.name</a></h1>
  26. </div>
  27. </div>
  28. <div id="welcome">
  29. <div class="column">
  30. <a href="{% url "/?action=logout" %}" class="right">${ "Log Out &rsaquo;" | translate }</a>
  31. ${ "Hello, %s!" | translate | format(visitor.full_name | split | first | fallback(visitor.login | fallback("Guest" | translate))) }
  32. <a href="$site.url">${ "View Site &rsaquo;" | translate }</a>
  33. </div>
  34. </div>
  35. <ul class="column ${ route.action }_nav" id="sub-nav">
  36. {% block subnav %}
  37. {% if subnav[route.action] %}
  38. {% for action, nav in subnav[route.action] | items %}
  39. {% if nav.show %}
  40. <li${ route.action | selected(nav.selected, action) }$nav.attributes><a href="{% admin action %}">$nav.title</a></li>
  41. {% endif %}
  42. {% endfor %}
  43. {% endif %}
  44. {% endblock %}
  45. </ul>
  46. <div class="clear"></div>
  47. <div class="column" id="content">
  48. {% for notice in flash.notices %}
  49. <p class="message yay">$notice</p>
  50. {% endfor %}
  51. {% for warning in flash.warnings %}
  52. <p class="message boo">$warning</p>
  53. {% endfor %}
  54. {% for message in flash.messages %}
  55. <p class="message">$message</p>
  56. {% endfor %}
  57. {% block content %}{% endblock %}
  58. <div class="clear"></div>
  59. </div>
  60. <div class="column" id="footer">
  61. ${ "Chyrp loves you." | translate }<br />
  62. <span class="sub">
  63. ${ "v%s &dash; &copy; %d Chyrp Team" | translate | format(version, 2011) }
  64. </span>
  65. </div>
  66. </body>
  67. </html>