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.

56 lines
3.3KB

  1. {% extends "layout.twig" %}
  2. {% block title %}${ "Themes" | translate }{% endblock %}
  3. {% block content %}
  4. {% for theme in themes %}
  5. <div class="theme{% if theme.name == site.theme %} current{% endif %}{% if loop.index % 2 == 0 %} last{% endif %} box left">
  6. <a href="{% admin "change_theme&theme=" ~ theme.name %}" class="link">
  7. <span>${ theme.info.name | translate(theme.name) | escape }</span>
  8. {% if theme.screenshot %}
  9. <img src="$theme.screenshot" alt="${ ('"' ~ theme.info.name ~ '"') | escape } screenshot" class="screenshot" width="285" />
  10. {% endif %}
  11. </a>
  12. {% if theme.screenshot %}
  13. <br />
  14. {% endif %}
  15. <small>${ "v%s by %s" | translate | format(theme.info.version, theme.info.author.link) }</small>
  16. <br />
  17. <br />
  18. {% if theme.name == site.theme %}
  19. <span class="button yay center"><img src="$theme_url/images/icons/success.png" alt="current theme" />${ "Current Theme" | translate }</span>
  20. {% else %}
  21. <a class="button center" href="{% admin "change_theme&theme=" ~ theme.name %}"><img src="$theme_url/images/icons/appearance.png" alt="Select" />${ "Select" | translate }</a>
  22. <a class="button center${ preview | selected(theme.name, true) }" href="{% admin "preview_theme&theme=" ~ theme.name %}"><img src="$theme_url/images/icons/magnifier.png" alt="Preview" />${ "Preview" | translate }</a>
  23. {% endif %}
  24. </div>
  25. {% endfor %}
  26. <div class="clear"></div>
  27. <br />
  28. <h1>${ "Admin Themes" | translate }</h1>
  29. {% for theme in admin_themes %}
  30. <div class="theme{% if theme.name == admin_theme %} current{% endif %}{% if loop.index % 2 == 0 %} last{% endif %} box left">
  31. <a href="{% admin "change_theme&theme=" ~ theme.name %}" class="link">
  32. <span>${ theme.info.name | translate(theme.name) | escape }</span>
  33. {% if theme.screenshot %}
  34. <img src="$theme.screenshot" alt="${ ('"' ~ theme.info.name ~ '"') | escape } screenshot" class="screenshot" width="285" />
  35. {% endif %}
  36. </a>
  37. {% if theme.screenshot %}
  38. <br />
  39. {% endif %}
  40. <small>${ "v%s by %s" | translate | format(theme.info.version, theme.info.author.link) }</small>
  41. <br />
  42. <br />
  43. {% if theme.name == admin_theme %}
  44. <span class="button yay center"><img src="$theme_url/images/icons/success.png" alt="current theme" />${ "Current Theme" | translate }</span>
  45. {% else %}
  46. <a class="button center" href="{% admin "change_admin_theme&theme=" ~ theme.name %}"><img src="$theme_url/images/icons/appearance.png" alt="Select" />${ "Select" | translate }</a>
  47. {% endif %}
  48. </div>
  49. {% endfor %}
  50. <div class="clear"></div>
  51. <br />
  52. <a class="button right" href="http://chyrp.net/extend/type/theme">${ "Get More Themes &rsaquo;" | translate }</a>
  53. {% endblock %}