Version 2.1.0

This commit is contained in:
dmzx
2018-08-02 11:34:39 +02:00
parent cd0f139598
commit 006a4e404e
140 changed files with 2695 additions and 2699 deletions

View File

@@ -1,76 +1,68 @@
<div id="mchat-panel" class="panel cp-mini{% if MCHAT_PAGE == 'archive' %} hidden{% endif %}">
{% if MCHAT_PAGE == 'index' and MCHAT_WHOIS_REFRESH and MCHAT_WHOIS_INDEX %}
{% INCLUDE '@dmzx_mchat/mchat_whois.html' %}
{% endif %}
{% if MCHAT_CHARACTER_COUNT and MCHAT_PAGE != 'archive' %}
<div id="mchat-character-count" class="invisible">{{ MCHAT_CHARACTER_COUNT }}</div>
{% endif %}
{% set MCHAT_DISPLAY_INDEX_WHOIS = MCHAT_PAGE == 'index' and MCHAT_WHOIS_REFRESH and MCHAT_WHOIS_INDEX %}
<div id="mchat-panel" class="panel cp-mini{% if MCHAT_PAGE == 'archive' %} hidden{% endif %}{% if MCHAT_ALLOW_USE or MCHAT_DISPLAY_INDEX_WHOIS %} mchat-panel-content{% endif %}">
<form id="mchat-form" name="postform" action="{{ U_MCHAT_CUSTOM_PAGE }}" method="POST">
{{ S_FORM_TOKEN }}
{% if MCHAT_PAGE != 'archive' %}
{{ S_FORM_TOKEN_DMZX_MCHAT }}
{% if MCHAT_ALLOW_USE and MCHAT_PAGE != 'archive' %}
<noscript><div class="error">{{ lang('MCHAT_NOJAVASCRIPT') }}</div></noscript>
{% if MCHAT_ALLOW_USE %}
{% if MCHAT_INPUT_AREA %}
<input id="mchat-input" type="text" name="message" class="inputbox medium" autocomplete="off" />
{% else %}
<textarea id="mchat-input" name="message" class="inputbox no-auto-resize"></textarea>
{% EVENT dmzx_mchat_controls_before %}
<div class="mchat-controls">
<div class="mchat-input-container inputbox">
<textarea id="mchat-input" name="message" class="no-auto-resize {{ MCHAT_MAX_INPUT_HEIGHT ? 'mchat-multi-line' : 'mchat-single-line' }}" rows="1" autocomplete="off"></textarea>
<div class="mchat-input-control">
<button class="mchat-button-add" id="mchat-add" data-mchat-action="add" title="{{ lang('MCHAT_ADD') }}">
<i class="icon icon-lightgray fa fa-chevron-right fa-fw" aria-hidden="true"></i><span class="sr-only">{{ lang('MCHAT_ADD') }}</span>
</button>
{% if MCHAT_MAX_MESSAGE_LENGTH %}
<span id="mchat-exceed-character-count" class="hidden"></span>
{% endif %}
</div>
</div>
{% EVENT dmzx_mchat_buttons_container_before %}
{% if MCHAT_ALLOW_SMILES and loops.smiley|length or S_BBCODE_ALLOWED or S_MCHAT_ADD_CUSTOM_BUTTON %}
<div class="mchat-panel-buttons">
{% EVENT dmzx_mchat_buttons_before %}
{% if MCHAT_ALLOW_SMILES and loops.smiley|length %}
<button class="button mchat-button-smilies mchat-button-down" data-mchat-action="toggle" data-mchat-element="smilies" title="{{ lang('MCHAT_SMILES') }}">
<i class="icon fa fa-smile-o" aria-hidden="true"></i><span class="sr-only">{{ lang('MCHAT_SMILES') }}</span>
</button>
{% endif %}
{% EVENT dmzx_mchat_buttons_mid %}
{% if S_BBCODE_ALLOWED %}
<button class="button mchat-button-bbcodes mchat-button-down" data-mchat-action="toggle" data-mchat-element="bbcodes" title="{{ lang('MCHAT_BBCODES') }}">
<i class="icon fa fa-code fa-fw" aria-hidden="true"></i><span class="sr-only">{{ lang('MCHAT_BBCODES') }}</span>
</button>
{% endif %}
{% EVENT dmzx_mchat_buttons_after %}
</div>
{% endif %}
{% endif %}
{% EVENT dmzx_mchat_buttons_container_before %}
<div id="mchat-buttons">
{% EVENT dmzx_mchat_buttons_before %}
{% if MCHAT_ALLOW_USE %}
<input id="mchat-add" class="{% if IS_PHPBB31 %}button2{% elseif IS_PHPBB32 %}button{% endif %}" type="button" data-mchat-action="add" value="{{ lang('MCHAT_ADD') }}" />
{% if MCHAT_ALLOW_SMILES and loops.smiley|length %}
<input type="button" class="{% if IS_PHPBB31 %}button2{% elseif IS_PHPBB32 %}button{% endif %}" data-mchat-toggle="smilies" value="{{ lang('MCHAT_SMILES') }}" />
{% endif %}
{% if S_BBCODE_ALLOWED %}
<input type="button" class="{% if IS_PHPBB31 %}button2{% elseif IS_PHPBB32 %}button{% endif %}" data-mchat-toggle="bbcodes" value="{{ lang('MCHAT_BBCODES') }}" />
{% endif %}
{% if MCHAT_RULES %}
<input type="button" class="{% if IS_PHPBB31 %}button2{% elseif IS_PHPBB32 %}button{% endif %}" onclick="popup('{{ U_MCHAT_RULES }}', 450, 275); return false;" value="{{ lang('MCHAT_RULES') }}" />
{% endif %}
{% endif %}
{% EVENT dmzx_mchat_buttons_mid %}
{% if MCHAT_ARCHIVE %}
<input type="button" class="{% if IS_PHPBB31 %}button2{% elseif IS_PHPBB32 %}button{% endif %}" onclick="window.location.href = '{{ U_MCHAT_ARCHIVE_URL }}';" value="{{ lang('MCHAT_ARCHIVE') }}" />
{% endif %}
{% EVENT dmzx_mchat_buttons_after %}
{% EVENT dmzx_mchat_buttons_container_after %}
</div>
{% EVENT dmzx_mchat_buttons_container_after %}
{% if MCHAT_ALLOW_USE and S_BBCODE_ALLOWED %}
{% EVENT dmzx_mchat_controls_after %}
{% if S_BBCODE_ALLOWED %}
<div id="mchat-bbcodes">
{% INCLUDE 'posting_buttons.html' %}
</div>
{% endif %}
{% if MCHAT_ALLOW_USE and MCHAT_ALLOW_SMILES and loops.smiley|length %}
{% if MCHAT_ALLOW_SMILES and loops.smiley|length %}
<div id="mchat-smilies" class="hidden">
{% for smiley in loops.smiley %}
<a href="#" onclick="insert_text('{{ smiley.A_SMILEY_CODE }}', true); return false;"><img src="{{ smiley.SMILEY_IMG }}" width="{{ smiley.SMILEY_WIDTH }}" height="{{ smiley.SMILEY_HEIGHT }}" alt="{{ smiley.SMILEY_CODE }}" title="{{ smiley.SMILEY_DESC }}" /></a>
<a href="#" data-smiley-code="{{ smiley.A_SMILEY_CODE }}" data-mchat-action="smiley">
<img src="{{ smiley.SMILEY_IMG }}" width="{{ smiley.SMILEY_WIDTH }}" height="{{ smiley.SMILEY_HEIGHT }}" alt="{{ smiley.SMILEY_CODE }}" title="{{ smiley.SMILEY_DESC }}">
</a>
{% endfor %}
{% if S_SHOW_SMILEY_LINK %}
<a href="{{ U_MORE_SMILIES }}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{{ lang('MORE_SMILIES') }}</a>
<a href="{{ U_MORE_SMILIES }}" data-mchat-action="smileyPopup">{{ lang('MORE_SMILIES') }}</a>
{% endif %}
</div>
{% endif %}
{% EVENT dmzx_mchat_body_smiley_after %}
<div id="mchat-status">
<ul class="mchat-footer">
<li>
<span id="mchat-status-icons">
<i id="mchat-status-load" class="{% if IS_PHPBB31 %}mchat-status-load{% elseif IS_PHPBB32 %}fa fa-refresh fa-spin icon icon-blue{% endif %}" title="{{ lang('LOADING') }}"></i>
<i id="mchat-status-ok" class="{% if IS_PHPBB31 %}mchat-status-ok{% elseif IS_PHPBB32 %}fa fa-check icon icon-green{% endif %}" title="{{ lang('MCHAT_OK') }}"></i>
<i id="mchat-status-paused" class="{% if IS_PHPBB31 %}mchat-status-paused{% elseif IS_PHPBB32 %}fa fa-pause icon icon-orange{% endif %}" title="{{ lang('MCHAT_PAUSE') }}"></i>
<i id="mchat-status-error" class="{% if IS_PHPBB31 %}mchat-status-error{% elseif IS_PHPBB32 %}fa fa-times icon icon-red{% endif %}" title="{{ lang('ERROR') }}"></i>
</span>
<span id="mchat-refresh-text">{{ MCHAT_REFRESH_YES }}</span>
</li>
{% if MCHAT_TIMEOUT %}<li><span id="mchat-session">{{ MCHAT_SESSION_TIMELEFT }}</span></li>{% endif %}
{% if not MCHAT_SOUND_DISABLED %}<li class="mchat-sound"><input type="checkbox" id="mchat-user-sound"{% if MCHAT_SOUND %} checked="checked"{% endif %} /><label for="mchat-user-sound">{{ lang('MCHAT_USESOUND') }}</label></li>{% endif %}
</ul>
</div>
{% endif %}
</form>
{% if MCHAT_DISPLAY_INDEX_WHOIS %}
{% INCLUDE '@dmzx_mchat/mchat_whois.html' %}
{% endif %}
{% EVENT dmzx_mchat_panel_whois_after %}
{% if MCHAT_ALLOW_USE and MCHAT_CHARACTER_COUNT and MCHAT_PAGE != 'archive' %}
<div id="mchat-character-count" class="invisible">{{ MCHAT_CHARACTER_COUNT }}</div>
{% endif %}
</div>