Old school Easter eggs.
{% use "phuhien.twig" %} {# Used in post_view block #} {% macro rate( rate_value, karma, post_id ) %}document.getElementById('ajax').src=this.href+'&__ajax=1';document.getElementById('r{{ post_id }}').innerHTML='({{ ( karma + rate_value ) }})';{{ ( karma - rate_value ) }} > 0 ? document.getElementById('r{{ post_id }}').style.color='#b20016' : {{ ( karma - rate_value ) }} < 0 ? document.getElementById('r{{ post_id }}').style.color='#86C219' : null;document.getElementById('rd{{ post_id }}').style.display='none';document.getElementById('ru{{ post_id }}').style.display='none';return false;{% endmacro %} {% if __view == '404' %} {% block view_404 %} {% set view = "404" %} {{block('menu')}} {% set tail = '404' %} {{block('breadcrumbs')}}
{{ translate ( '404_message' ) }}
{{block('search')}} {{block('online')}} {% endblock %} {% elseif __view == 'categories' %} {% block view_categories %} {% set view = "categories" %} {{block('menu')}} {# this assign need for breadcrumbs below #} {% set cm=categories %} {% set print='yes' %} {% for cm in cm %} {% set cmc=cm.boards %} {% for cmc in cmc %} {% set unread %}{{ not cmc.read ? 'unread' : '' }}{%endset %}{% if unread=='unread' %}{% if print=='yes' %}
Chưa đọc!
{%endif %}{% set print='no' %}
{{cmc.title}}
{% endif %} {% endfor %} {% endfor %} {% if categories|length == 1 %} {% set category = categories|first %} {% endif %} {{block('breadcrumbs')}} {{block('messages')}} {% for category in categories %} {# Wrapping categories to seperate containers, if user wants to change it individually #} {% if categories|length != 1 %}
{{ category.title }}
{% endif %} {% for board in category.boards %}
{{ board.title }}
({{board.threads_count}} bài viết /{{board.posts}} bình luận)
{{board.description}}
{# If showing only one category, we will show some threads also #} {% if board.threads %} {% for thread in board.threads %}{{block('thread')}}{% endfor %} {% if board and board.threads_count > settings.threads_per_board %} {{ translate ( 'view_all_threads', board.threads_count ) }} {% endif %} {% endif %} {% endfor %} {% if categories|length != 1 %} {% endif %} {% endfor %} {{block('pagination')}} {{block('search')}} {{block('online')}} {% endblock %} {% elseif __view == 'board' %} {% block view_boards %} {% set view = 'board' %} {% set board = category.boards|first %} {{block('menu')}} {{block('breadcrumbs')}} {{block('messages')}}
{% if settings.allow_anonymous_posting or profile %} {# Create new thread #} Viết bài mới {# Mark board as read #} Đánh dấu {% elseif account %} *{{ translate ( 'join_to_reply' ) }} {% else %} *{{ view == 'board' ? translate ( 'Đăng nhập để viết bài' ) : translate ( 'Đăng nhập để trả lời' ) }} {% endif %}
{% if board and board.threads %} {% for thread in board.threads %} {{block('thread')}} {% endfor %} {% else %}
CHƯA CÓ BÀI VIẾT NÀO
{% endif %} {{block('pagination')}} {{block('search')}} {{block('online')}} {% endblock %} {% elseif __view == 'thread' %} {% block view_thread %} {% set view = 'thread' %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {{block('menu')}} {{block('breadcrumbs')}} {% if thread %} {{block('messages')}} {% import _self as script %} {% for post in thread.posts %}{{block('post_view')}}{% endfor %} {{block('pagination')}} {% if thread.is_closed %}
Chủ đề đã đóng cửa
{% endif %} {% if settings.allow_anonymous_posting or profile %} {% if not thread.is_closed %} {% if invite_users_left != 0 and profile %}

Tập tin đính kèm

{% endif %} {% else %} {% endif %}
Thanh công cụ
Gửi cho bạn bè {% if profile.can_delete %} Xoá Chủ Đề {% endif %} {% if profile.can_close %} {% if thread.is_closed %} Mở chủ đề {% else %} Đóng cửa chủ đề {% endif %} {% endif %} {% if thread.owner or profile.can_edit_thread %} Đổi tên chủ đề {% endif %}
{# generic part #} {% elseif account %} {{ translate ( 'join_to_reply' ) }} {% else %}
Hãy {{ view == 'board' ? translate ( 'Đăng nhập' ) : translate ( 'Đăng nhập' ) }} để bình luận và viết bài nhé
{% endif %} {# reverse post ( oldest first) #} {% if reversed_sort %} {% if not profile or profile.settings.reply_sorting == 1 %} {% else %} {% endif %} {% else %} {% if not profile or profile.settings.reply_sorting == 1 %} {% else %} {% endif %} {% endif %} {{block('tag')}} {{block('controls')}} {{block('search')}} {% endif %} {{block('online')}} {% endblock %} {% elseif __view == 'confirm' %} {% block view_confirm %} {{block('menu')}} {{block('breadcrumbs')}}
Bạn có chắc là muốn xoá bài viết này không? Việc xoá sẽ không thể khôi phục
{{ translate ( 'Hủy bỏ' ) }}
{{block('online')}} {% endblock %} {% elseif __view == 'edit_post' %} {% block view_edit_post %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {# ACTION #} {% if reply_to_thread %} {# REPLY TO THREAD #} {% set action_route %}{{ thread.reply_to_link }}{% endset %} {% set tail = translate ( 'Trả lời bài viết' ) %} {% elseif edit_post %} {# EDIT POST #} {% set action_route %}{{ post.edit_link }}{% endset %} {% set tail = translate ( 'Sửa Bài' ) %} {% elseif reply_to %} {# REPLY TO POST #} {% set action_route %}{{ post.reply_link }}{% endset %} {% set tail = translate ( 'Trả lời bài' ) %} {% endif %} {{block('menu')}} {{block('breadcrumbs')}} {% if settings.allow_anonymous_posting or profile %} {# for feedback #} {{block('messages')}} {% if not user_silenced %} {% if reply_to %} {% set post = thread.posts|first %} {% import _self as script %} {{block('post_view')}} {% elseif edit_post %} {% set post = thread.posts|first %} {% endif %}
{% if not profile %} {% endif %} {% if not profile %} {% endif %} {% if settings.allow_attachments and profile %} {% if tmp_post_attachments %} {% for attachment in tmp_post_attachments %} {{ attachment.name }} {% endfor %} {% if tmp_post_attachments|length < 1 %}{{ translate ( 'Đính kèm' ) }}:
{% endif %} {% if tmp_post_attachments|length < 1 %}
{% endif %} {% if tmp_post_attachments|length < 2 %}
{% endif %} {% if tmp_post_attachments|length < 3 %}
{% endif %} {% endif %} {% if edit_post %} {% if post.attachments %} {% for attachment in post.attachments %} {{ attachment.name }} {{ attachment.mime }} ( {{ attachment.size|bytes }} ) Xoá file {% endfor %} {% endif %} {% if not tmp_post_attachments %} {% if not post.attachments or post.attachments|length < 1 %} {{ translate ( 'Đính kèm' ) }}:
{% endif %} {% if not post.attachments or post.attachments|length < 1 %}
{% endif %} {% if not post.attachments or post.attachments|length < 2 %}
{% endif %} {% if not post.attachments or post.attachments|length < 3 %}
{% endif %} {% endif %} {% else %} {% if not tmp_post_attachments %} {{ translate ( 'Đính kèm' ) }}:



{% endif %} {% endif %} {% endif %}
{% endif %} {% else %} {% if account %} {{ translate ( 'join_to_post' ) }} {% else %} {{ translate ( 'Đăng kí để viết bài' ) }} {% endif %} {% endif %} {{block('online')}} {% endblock %} {% elseif __view == 'edit_thread' %} {% block view_edit_thread %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {{block('menu')}} {{block('breadcrumbs')}} {{block('messages')}}

{{block('online')}} {% endblock %} {% elseif __view == 'message' %} {% block view_message %} {{block('menu')}} {{block('breadcrumbs')}} {{block('messages')}} {{block('online')}} {% endblock %} {% elseif __view == 'modlog' %} {% block view_modlog %} {{block('menu')}} {% set tail = translate ( 'Nhật kí' ) %} {{block('breadcrumbs')}} {{block('messages')}} {% if modlog %} {# Table title #} {# Headers #} {% for row in modlog %} {# Time #} {# Mod name #} {# Action #} {# Action details #} {% if ( row.action == 'edit_post' ) %} {% elseif ( row.action == 'delete_post' ) %} {% elseif ( row.action == 'delete_thread' ) %} {% elseif ( row.action == 'restrict_user' ) %} {% elseif ( row.action == 'unrestrict_user' ) %} {% elseif ( row.action == 'silence_user' ) %} {% elseif ( row.action == 'unsilence_user' ) %} {% elseif ( row.action == 'approve_user' ) %} {% elseif ( row.action == 'unapprove_user' ) %} {% elseif ( row.action == 'unban_user' ) %} {% elseif ( row.action == 'pin_thread' ) %} {% elseif ( row.action == 'unpin_thread' ) %} {% elseif ( row.action == 'close_thread' ) %} {% elseif ( row.action == 'open_thread' ) %} {% else %} {% endif %} {% endfor %} {% else %} {% endif %}

{{ translate ( 'Nhật kí BQT' ) }}

{{ translate ( 'Thời gian' ) }} {{ translate ( 'Tên cộng đồng' ) }} {{ translate ( 'Bắt đầu' ) }} {{ translate ( 'Chi tiết hành động' ) }}
{{ row.stamp|date( 'Y-m-d H:i:s') }} {{ row.moderator.name }} {{ translate ( 'Sửa' ) }} {{ translate ( 'Gửi với liên kết', row.post_link ) }} {{ translate ( 'in' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }}. {{ translate ( 'Xoá' ) }} {{ translate ( 'a_post' ) }} {{ translate ( 'in' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }}. {{ translate ( 'Xoá' ) }} {{ translate ( 'thread_with_link', row.thread_link, row.params.thread_title ) }} {{ translate ( 'in' ) }} {{ translate ( 'board_fullpath', row.board_link, row.params.category_title, row.params.board_title ) }} {{ translate ( 'Hạn chế' ) }} {{ translate ( 'Người dùng' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'Mở hạn chế' ) }} {{ translate ( 'Người dùng' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'silenced' ) }} {{ translate ( 'Người dùng' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'unsilenced' )}} {{ translate ( 'user' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'approved' ) }} {{ translate ( 'user' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'unapproved' ) }} {{ translate ( 'user' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'unbanned' ) }} {{ translate ( 'user' ) }} {{ translate ( 'user_with_link', row.profile_link, row.params.user_name ) }} {% if row.params.user_name != row.params.user_name_now %} {{ translate ( 'currently_known_as_with_link', row.profile_link, row.params.user_name_now ) }} {% endif %} {{ translate ( 'pinned' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }} {{ translate ( 'unpinned' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }} {{ translate ( 'closed' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }} {{ translate ( 'opened' ) }} {{ translate ( 'thread_fullpath', row.thread_link, row.params.category_title, row.params.board_title, row.params.thread_title ) }} {{row.action}}

{{ translate ( 'no_records' ) }}.

{{block('pagination')}} {{block('online')}} {% endblock %} {% elseif __view == 'post' %} {% block view_post %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {% set post = thread.posts|first %} {{block('menu')}} {% set tail = translate ( 'view_post' ) %} {{block('breadcrumbs')}} {{block('messages')}} {% import _self as script %} {{block('post_view')}} {{block('online')}} {% endblock %} {% elseif __view == 'preview' %} {% block view_preview %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {% if thread|length %} {% set post = thread.posts|first %} {% endif %} {{block('menu')}} {% set tail = translate ( 'preview' ) %} {{block('breadcrumbs')}}
{% if profile %} {{ translate ( 'avatar' ) }} {% endif %} {% if profile %} {{ profile.community_name }} {% else %} {{ input.name }} {% endif %} {% if post.reply_to %} * {% if post.reply_to.author_name %}{{ post.reply_to.author_name}}{% else %}{{ post.reply_to.anonymous_name }}{% endif %} {{ input.message_parsed|raw }} {% else %} {{ input.message_parsed|raw }} {% endif %} {% if profile %} {% if tmp_attachments %} {% for attachment in tmp_attachments %} *{{ attachment.name }} · {{ attachment.size|bytes }} {% endfor %} {% endif %} {% if tmp_post_attachments %} {% for attachment in tmp_post_attachments %} *{{ attachment.name }} {% endfor %} {% endif %} {% endif %}
# {{ "now"|date_timezoned("Y-m-d H:i") }}
{% if profile %} {% if tmp_attachments %} {% for attachment in tmp_attachments %} {% endfor %} {% endif %} {% if tmp_post_attachments %} {% for attachment in tmp_post_attachments %} {% endfor %} {% endif %} {% else %} {% endif %}
{{block('online')}} {% endblock %} {% elseif __view == 'options' %} {% block view_options %} {{block('menu')}} {% set tail = translate ( 'options' ) %} {{block('breadcrumbs')}} {{block('messages')}}

Chỉnh sửa thiết lập

{% set karma_title %} {{ translate ( 'karma_threshold' ) }} {{ translate ( 'karma_threshold_descr' ) }} {% endset %} {#{#} {#'title': 'Categories per page',#} {#'name': 'categories_per_page',#} {#'selected': profile.settings.categories_per_page,#} {#'suboptions': [ 2,3,5,10 ]#} {#},#} {#{#} {#'title': 'Threads per board',#} {#'name': 'threads_per_board',#} {#'selected': profile.settings.threads_per_board,#} {#'suboptions': [ 0,3,5,10,20 ]#} {#},#} {% set options = [ { 'title': translate ( 'threads_per_page_in_board' ), 'name': 'threads_per_page', 'selected': profile.settings.threads_per_page, 'suboptions': [ 5, 10, 15, 20, 25, 30 ] }, { 'title': translate ( 'replies_per_page_in_thread' ), 'name': 'posts_per_page', 'selected': profile.settings.posts_per_page, 'suboptions': [ 3, 5, 10, 20 ] }, { 'title': translate ( 'search_results_per_page' ), 'name': 'search_per_page', 'selected': profile.settings.search_per_page, 'suboptions': [ 3, 5, 10, 15, 20 ] }, { 'title': karma_title, 'name': 'karma_treshold', 'selected': profile.settings.karma_treshold, 'suboptions': [ -10, -5, -3, -1 ] }, { 'title': translate ( 'show_avatars' ), 'name': 'show_avatars', 'different_values': true, 'selected': profile.settings.show_avatars, 'suboptions': { '1': 'Yes', '0': 'No' } }, { 'title': translate ( 'default_reply_sorting' ), 'name': 'reply_sorting', 'different_values': true, 'selected': profile.settings.reply_sorting, 'suboptions': { '1': translate ( 'oldest_first' ) , '-1': translate ( 'newest_first' ) } }, ] %} {% for option in options %} {% endfor %}
{{block('online')}} {% endblock %} {% elseif __view == 'redirect' %} {% block view_redirect %} {{block('menu')}} {{block('breadcrumbs')}} {{ translate ( 'success_wait_or_click_here', redir_url ) }}. {% endblock %} {% elseif __view == 'new_thread' %} {% block view_new_thread %} {% set view = 'new_thread' %} {% set board = category.boards|first %} {% if settings.allow_anonymous_posting or profile %} {{block('menu')}} {{block('breadcrumbs')}} {{block('messages')}} {% if not user_silenced %}
{% if not profile %} {% endif %} {% if not profile %} {% endif %} {% if settings.allow_attachments and profile %} {% if tmp_post_attachments %} {% for attachment in tmp_post_attachments %} {{ attachment.name }} {% endfor %} {% if tmp_post_attachments|length < 1 %} Thêm tập tin:
{% endif %} {% if tmp_post_attachments|length < 1 %}
{% endif %} {% if tmp_post_attachments|length < 2 %}
{% endif %} {% if tmp_post_attachments|length < 3 %}
{% endif %} {% endif %} {% if edit_post %} {% if post.attachments %} {% for attachment in post.attachments %} {{ attachment.name }} {{ attachment.mime }} ( {{ attachment.size|bytes }} ) Xoá {% endfor %} {% endif %} {% if not tmp_post_attachments %} {% if not post.attachments or post.attachments|length < 1 %} Thêm tập tin:
{% endif %} {% if not post.attachments or post.attachments|length < 1 %}
{% endif %} {% if not post.attachments or post.attachments|length < 2 %}
{% endif %} {% if not post.attachments or post.attachments|length < 3 %}
{% endif %} {% endif %} {% else %} {% if not tmp_post_attachments %} Thêm tập tin:



{% endif %} {% endif %} {% endif %}
{% endif %} {{block('breadcrumbs')}} {% else %} {% if account %} {{ translate ( 'join_to_post' ) }} {% else %} {{ translate ( 'register_to_post' ) }} {% endif %} {% endif %} {{block('online')}} {% endblock %} {% elseif __view == 'search' %} {% block view_search %} {% if category.boards|length %}{% set board = category.boards|first %}{% endif %} {% if board.threads|length %}{% set thread = board.threads|first %}{% endif %} {{block('menu')}} {% set tail = 'Tìm kiếm' %} {{block('breadcrumbs')}} {% for result in search_results %} {% if loop.first %} {% endif %} {% set thread = result.thread %} {% set url_from_search = result.goto_link %} {{block('thread')}} {% if loop.last %} {% endif %} {% else %}
Không Tìm thấy kết quả
{% endfor %} {{block('pagination')}} {{block('search')}} {{block('online')}} {% endblock %} {% elseif __view == 'invite' %} {% block view_invite %} {% set view = 'thread' %} {% set board = category.boards|first %} {% set thread = board.threads|first %} {{block('menu')}} {{block('breadcrumbs')}} {{block('messages')}} {% if invite_users_left %}
* Vui lòng nhập địa chỉ email người muốn gửi và tin nhắn của bạn.

Xem lại email cần gửi
{{ invite_email|raw }}
{% else %}
{{ translate ( 'friend_invitation_limit_reached' ) }}.
{% endif %} {{block('online')}} {% endblock %} {% elseif __view == 'join' %} {% block view_join %} {{block('menu')}} {{block('messages')}}
{% if account.community.name %}

{{ account.community.name }}

{% endif %} {{ translate ( 'avatar' ) }} [ {{ translate ( 'avatar' ) }} ] {{ translate ( 'your_avatar_optional' ) }}:

{{ translate ( 'shown_to_community' ) }}

{% if not account.community.name %} {% else %} {{ label }} {% endif %}
{{block('online')}} {% endblock %} {% endif %}
Thanks to XtGem.com — Visual mobile site building tool
C-STAT