2018-05-18 01:20:27 +00:00
|
|
|
{% extends '@mio/forum/master.twig' %}
|
2018-08-14 20:24:50 +00:00
|
|
|
{% from '@mio/macros.twig' import navigation, pagination %}
|
2018-05-20 20:12:45 +00:00
|
|
|
{% from '@mio/forum/macros.twig' import forum_category_listing, forum_topic_listing, forum_category_buttons %}
|
2018-05-18 01:20:27 +00:00
|
|
|
|
|
|
|
{% set title = forum_info.forum_name %}
|
2018-07-07 20:11:16 +00:00
|
|
|
{% set canonical_url = '/forum/forum.php'|url_construct({
|
|
|
|
'f': forum_info.forum_id,
|
|
|
|
'o': forum_offset,
|
|
|
|
}) %}
|
2018-05-18 01:20:27 +00:00
|
|
|
|
|
|
|
{% block content %}
|
|
|
|
{{ navigation(forum_breadcrumbs, forum_breadcrumbs|last, true, null, 'left') }}
|
|
|
|
|
|
|
|
{% if forum_info.forum_subforums|length > 0 or forum_info.forum_type == 1 %}
|
|
|
|
{{ forum_category_listing(forum_info.forum_subforums, 'Forums') }}
|
|
|
|
{% endif %}
|
|
|
|
|
|
|
|
{% if forum_info.forum_type == 0 %}
|
2018-05-22 02:09:53 +00:00
|
|
|
{% set fcbuttons = app.hasActiveSession ? forum_category_buttons(forum_info) : '' %}
|
2018-07-07 20:11:16 +00:00
|
|
|
{% set fcpagination = pagination(
|
|
|
|
forum_info.forum_topic_count,
|
|
|
|
forum_range,
|
|
|
|
forum_offset,
|
|
|
|
'/forum/forum.php'|url_construct({'f': forum_info.forum_id}), 'forum__'
|
|
|
|
) %}
|
2018-05-20 20:12:45 +00:00
|
|
|
|
|
|
|
{{ fcbuttons }}
|
|
|
|
{{ fcpagination }}
|
2018-05-18 01:20:27 +00:00
|
|
|
{{ forum_topic_listing(forum_topics) }}
|
2018-05-20 20:12:45 +00:00
|
|
|
{{ fcpagination }}
|
|
|
|
{{ fcbuttons }}
|
2018-05-18 01:20:27 +00:00
|
|
|
{% endif %}
|
|
|
|
{% endblock %}
|