{% if view == 'chat_list' %} {% block chat_comments %} {% if not data.via_ajax %} {% if data.refresh %} {% endif %}
2Hi.Biz
Trang chủ | TWIG | Xtscript | Templates | Xtgem
{% endif %} {% if not data.js %} {% block captcha %} {% if data.show_captcha %}
{% if data.form.autorefresh %} {% endif %} {# CAPTCHA #} {{ translate ( 'please_enter_captcha' ) }}:

{% endif %} {% endblock %} {% endif %} {# chat messages #}
{% for message in data.messages %}
{% if data.is_site_owner %} X {% endif %} {% if ( message.author ) %} {{ message.author.community_name }} {{ message.author.community_name }}: {% else %} {{ message.anonymous_name }}: {% endif %} {{ message.body|raw }} {{message.stamp|ago}}
{% else %} {{ translate ( 'no_messages' ) }} {% endfor %}
{% endblock %} {# view end (chat_list) #} {% block chat_online %}
{{ translate ( 'online' ) }}: {% for user in data.online.users %} {{ user.name }} {% if loop.last == false %},{% endif %} {% endfor %} {% if data.online.guests > 0 %} {{ translate ( 'guests' ) }}: {{ data.online.guests }} {% endif %}
{% if not data.via_ajax %}
{% endif %} {% endblock %} {% if data.js %} {{ block( 'captcha' ) }} {% endif %} {# For ajax status report #} {% if data.submit_message %} {% else %} {% endif %} {% if data.js and not data.via_ajax %}
{# iframe markup end #} {% endif %} {% endif %} {% if view == 'chat_form' %} {% block chat_list %} {% endblock %} {# main window #} {% block chat_form %} {# Inline CSS if no teplate is set #}
{# LOGIN / SIGNUP MESSAGE #} {% if data.form.show_login_or_signup_message %}
{{ translate ( 'login_or_signup_to_post', data.form.login_link, data.form.signup_link ) }}
{# REQUIRE COMMUNITY NAME #} {% elseif data.form.show_enter_community_name %} {{ translate ( 'provide_community_name' ) }}

{# REQUIRE VERIFIED EMAIL #} {% elseif data.form.show_confirm_email_message %}
{{ translate ( 'confirm_email_first' ) }}
{# REQUIRE ANONYMOUS NAME #} {% elseif data.form.show_enter_anonymous_name %}
{% if data.form.reserver_name_error %} {{ translate ( 'name_already_registered' ) }} {% endif %}
{# CAN POST MESSAGE NOW #} {% else %}
{% if data.form.xtchat_nick %}{% endif %} {# SHOW COMMUNITY NAME #} {% if data.community_name %}
{% elseif data.form.xtchat_nick %}
{% endif %}
{{ block('autorefresh_controls') }}
{% endif %} {# autorefresh if no captcha returned #} {% if data.form.show_refresh_form %}
{% block autorefresh_controlls %}
{% endblock %}
{% endif %}
{% endblock %} {% endif %}