index.tx 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. <: component('Header', {
  2. title => $title,
  3. route => $route,
  4. lang => $lang,
  5. author => $author,
  6. meta_desc => $meta_desc,
  7. meta_tags => $meta_tags,
  8. default_tags => $default_tags,
  9. embed => $embed,
  10. stylesheets => $stylesheets,
  11. print_styles => $print_styles,
  12. scripts => $scripts,
  13. }) :>
  14. : if ($is_admin) {
  15. : include "sysbar.tx";
  16. : include "jsalert.tx";
  17. : } else {
  18. <div id="topkek" <: $is_admin ? "style='display:none'" : "" :>>
  19. <div id="lefttitle" class="toplel">
  20. <: component('HtmlTitle') :>
  21. </div>
  22. <div id="midtitle" class="toplel">
  23. <: component('MidTitle') :>
  24. </div>
  25. <span title="Menu" id="clickme" onclick="this.focus()">🌐</span>
  26. <div id="righttitle" class="toplel">
  27. <: component('CategoryBar', { categories => $categories, user => $user }) :>
  28. <span id="common-search">
  29. <a href="/sitemap" title="Sitemap" class="topbar">🗺️</a>
  30. <: component('TopBar') :>
  31. <form action="<: $route :>" method="GET" class="ib">
  32. <input required type="search" class="coolbutton topform" name="like" autofocus></input>
  33. <input class="coolbutton topform" type="submit" value="🔎"></input>
  34. <a class="topbar" target="_blank" href="<: $search_help :>" title="<: $search_lang :>">❓</a>
  35. </form>
  36. </span>
  37. </div>
  38. : if ($user) {
  39. <a href="/config" title="Preferences" class="topbar topbarimg usericon <: $user_class :>"></a>
  40. : } else {
  41. <a href="/login?to=<: $route :>" title="Login" class="topbar usericon" style="font-size: 1.5rem;">🔑</a>
  42. : }
  43. </div>
  44. : }
  45. <div id="littlemenu">
  46. </div>
  47. <div id="kontainer">
  48. <div id="leftbar" class="kontained">
  49. <: component('LeftBar') :>
  50. </div>
  51. <div id="kontent" class="kontained">
  52. <: $content | mark_raw :>
  53. </div>
  54. <div id="rightbar" class="kontained">
  55. <: component('RightBar') :>
  56. </div>
  57. </div>
  58. <div id="footbar">
  59. <: component('FootBar') :>
  60. </div>
  61. : if ( $show_madeby ) {
  62. <a target="_blank" rel="noopener" class="trogged" href="https://tcms.troglodyne.net">
  63. <img src="/img/icon/favicon.svg" style="height:2rem;" />
  64. </a>
  65. : }
  66. <: component('Footer') :>