Files
phpbb_mchat_tlw/styles/prosilver/template/mchat_panel.html
2017-12-09 08:09:57 +01:00

77 lines
4.4 KiB
HTML

<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 %}
<form id="mchat-form" name="postform" action="{{ U_MCHAT_CUSTOM_PAGE }}" method="POST">
{{ S_FORM_TOKEN }}
{% if 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>
{% 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 %}
</div>
{% EVENT dmzx_mchat_buttons_container_after %}
{% if MCHAT_ALLOW_USE and 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 %}
<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>
{% endfor %}
{% if S_SHOW_SMILEY_LINK %}
<a href="{{ U_MORE_SMILIES }}" onclick="popup(this.href, 300, 350, '_phpbbsmilies'); return false;">{{ 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>
</div>