list.tpl 4.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788
  1. {% extends template ~ "/layout/layout_1_col.tpl" %}
  2. {% block content %}
  3. {{ introduction_section }}
  4. {{ form_content }}
  5. {% if data is not empty %}
  6. {% for item in data %}
  7. <div class="category-forum" id="category_{{ item.id }}">
  8. <div class="pull-right">
  9. {{ item.tools }}
  10. </div>
  11. <h3>
  12. {{ 'forum_blue.png'|img(32) }}
  13. <a href="{{ item.url }}" title="{{ item.title }}">{{ item.title }}{{ item.icon_session }}</a>
  14. </h3>
  15. <div class="forum-description">
  16. {{ item.description }}
  17. </div>
  18. </div>
  19. {% for subitem in item.forums %}
  20. <div class="forum_display">
  21. <div class="panel panel-default forum">
  22. <div class="panel-body">
  23. <div class="row">
  24. <div class="col-md-3">
  25. <div class="number-post">
  26. <a href="{{ forum.url }}" title="{{forum.title}}">
  27. {% if subitem.forum_image is not empty %}
  28. <img src="{{ subitem.forum_image }}" width="48px">
  29. {% else %}
  30. {% if subitem.forum_of_group == 0 %}
  31. {{ 'forum_group.png'|img(48) }}
  32. {% else %}
  33. {{ 'forum.png'|img(48) }}
  34. {% endif %}
  35. {% endif %}
  36. </a>
  37. <p>{{ 'ForumThreads'| get_lang }}: {{ subitem.number_threads }} </p>
  38. </div>
  39. </div>
  40. <div class="col-md-9">
  41. <div class="pull-right">
  42. <div class="toolbar">
  43. {{ subitem.tools }}
  44. </div>
  45. </div>
  46. <h3 class="title">
  47. {{ 'forum_yellow.png'|img(32) }}
  48. <a href="{{ subitem.url }}" title="{{ subitem.title }}" class="{{ subitem.visibility != '1' ? 'text-muted': '' }}">{{ subitem.title }}</a>
  49. {% if subitem.forum_of_group != 0 %}
  50. <a class="forum-goto" href="../group/group_space.php?{{ _p.web_cid_query }}&gidReq={{ subitem.forum_of_group }}">
  51. {{ "forum.png"|img(22) }} {{ "GoTo"|get_lang }} {{ subitem.forum_group_title }}
  52. </a>
  53. {% endif %}
  54. {{ subitem.icon_session }}
  55. </h3>
  56. {% if subitem.last_poster_id is not empty %}
  57. <div class="forum-date">
  58. <i class="fa fa-comments" aria-hidden="true"></i>
  59. {{ subitem.last_poster_date }}
  60. {{ "By"|get_lang }}
  61. {{ subitem.last_poster_user }}
  62. </div>
  63. {% endif %}
  64. <div class="description">
  65. {{ subitem.description }}
  66. </div>
  67. {{ subitem.alert }}
  68. {% if subitem.moderation is not empty %}
  69. <span class="label label-warning">
  70. {{ "PostsPendingModeration"|get_lang }}: {{ subitem.moderation }}
  71. </span>
  72. {% endif %}
  73. </div>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. {% endfor %}
  79. {% endfor %}
  80. {% else %}
  81. <div class="alert alert-warning">
  82. {{ 'NoForumInThisCategory'|get_lang }}
  83. </div>
  84. {% endif %}
  85. {% endblock %}