{# * * Recent Topics NG. An extension for the phpBB Forum Software package. * * @copyright (c) 2022, IMC, https://github.com/IMC-GER / LukeWCS, https://github.com/LukeWCS * @copyright (c) 2017, Sajaki, https://www.avathar.be * @copyright (c) 2015, PayBas * @license GNU General Public License, version 2 (GPL-2.0-only) * * Based on the original NV Recent Topics by Joas Schilling (nickvergessen) #} {%- import '@imcger_recenttopicsng/rtng_macros.html' as common %} {%- set switch_type = TOGGLECTRL_RTNG ?? TOGGLECTRL_TYPE ?? 'toggle' %} {%- if RTNG_ENABLE is defined %}
{{ common.switch('user_rtng_enable', RTNG_ENABLE, switch_type) }}
{% endif %} {% if RTNG_LOCATION_OPTIONS is defined -%}

{{ lang('RTNG_LOCATION_EXP') }}
{{ common.select('user_rtng_location', RTNG_LOCATION_OPTIONS) }}
{% endif %} {% if RTNG_SORT_START_TIME is defined -%}

{{ lang('RTNG_SORT_START_TIME_EXP') }}
{{ common.switch('user_rtng_sort_start_time', RTNG_SORT_START_TIME, switch_type) }}
{% endif %} {% if RTNG_DISP_LAST_POST_OPTIONS is defined -%}

{{ lang('RTNG_DISP_LAST_POST_EXP') }}
{{ common.select('user_rtng_disp_last_post', RTNG_DISP_LAST_POST_OPTIONS) }}
{% endif %} {% if RTNG_DISP_FIRST_UNRD_POST is defined -%}

{{ lang('RTNG_DISP_FIRST_UNRD_POST_EXP') }}
{{ common.switch('user_rtng_disp_first_unrd_post', RTNG_DISP_FIRST_UNRD_POST, switch_type) }}
{% endif %} {% if RTNG_UNREAD_ONLY is defined -%}

{{ lang('RTNG_UNREAD_ONLY_EXP') }}
{{ common.switch('user_rtng_unread_only', RTNG_UNREAD_ONLY, switch_type) }}
{% endif %} {% if RTNG_INDEX_TOPICS_QTY is defined -%}

{{ lang('RTNG_INDEX_TOPICS_QTY_EXP') }}
{{ common.number('user_rtng_index_topics_qty', RTNG_INDEX_TOPICS_QTY, 1, 999) }}
{% endif %} {% if RTNG_INDEX_PAGE_QTY is defined -%}

{{ lang('RTNG_INDEX_PAGE_QTY_EXP') }}
{{ common.number('user_rtng_index_page_qty', RTNG_INDEX_PAGE_QTY, 1, 999) }}
{% endif %} {% if RTNG_SEPARATE_TOPICS_QTY is defined -%}

{{ lang('RTNG_SEPARATE_TOPICS_QTY_EXP') }}
{{ common.number('user_rtng_separate_topics_qty', RTNG_SEPARATE_TOPICS_QTY, 1, 999) }}
{% endif %} {% if RTNG_SEPARATE_PAGE_QTY is defined -%}

{{ lang('RTNG_SEPARATE_PAGE_QTY_EXP') }}
{{ common.number('user_rtng_separate_page_qty', RTNG_SEPARATE_PAGE_QTY, 1, 999) }}
{% endif %}