» Thơ tình yêu
» Truyện cười
{% if view == 'entries_list' %}
{% endif %}
{{ data.pagination_html|raw }}
{% endblock %}
{% block entries_list_searchbox %}
{% if data.searchbox %}
Blog cập nhật
{% block entries_list_tag %}
{% if data.tag %}
Tìm với tags: {{ data.tag }}
{% endif %}
{% endblock %}
{# danh sách bài blog #}
{% block entries_list %}
{% for entry in data.entries %}
{% if data.display_type != 'header' and
entry.content %}
{% set img_http=entry.content|split('"') %}
{% if img_http[3] starts with 'http' or img_http[3] starts with '/' %}
{% set short_desc=entry.content|split('') %}
{% else %}
{% endif %}
{% endfor %}
{% endblock %}
{# hết danh sách bài blog #}
{% block entries_list_footer %}
{% if data.back_url %}
{{ short_desc[1] }} |
![]() | {{ entry.content|raw }} {% endif %} |
{% endif %}
{% endblock %}
{% elseif view == 'entry' %}
{% block entry_post %}
{% set end=data.post.title|split(']')|first|length %}
{% set timkiem=data.post.title|slice(0,end+1) %}
{% set tencm=timkiem|replace({'[Avatar]': 'Avatar Online', '[xtgem]': 'Xtgem', '[Share Code]': 'Share Code', '[Truyện]': 'Trà sữa tâm hồn', '[Bán]': 'Bán Code', '[Hài]': 'Giải trí- Thư giãn', '[Facebook]': 'Thủ thuật Facebook', '[NRO]': 'Ngọc rồng Online', '[Army]': 'Mobi Army'}) %}
{% set tenbaiviet=data.post.title|slice(end+1) %}
![]() |
{{ tenbaiviet }} {{ admin }}{{ status }} {{ data.post.date }} {{ tencm }} |
{{ data.post.subtitle }}
{% endif %}
{{ data.post.content|raw }}
{% block entry_tags %}
{% if not data.entry.in_comments_thread %}
{% if data.hide_tags == false and data.post.tags %}
{% endif %}
{% endblock %}
{% block entry_comments_list %}
{% if data.post.allow_comments %}
{% if data.new_comments_system %}
{% if data.entry.comments %}
{% endif %}
{% endif %}
{% endblock %}
Bình luận mới
{% else %}
Chưa có bình luận, hãy là người đầu tiên!
{% endif %}
{% macro comments_list (comments, ctx) %}
{% for comment in comments %}
{% set h=comment.date|slice(0,2) %}
{% set m=comment.date|slice(3,2) %}
{% set s=comment.date|slice(6,2) %}
{% set d=comment.date|slice(10,2) %}
{% set mo=comment.date|slice(13,2) %}
{% set y=comment.date|slice(16,4) %}
{% set day=comment.date|slice(10,2) %}
{% set time1=comment.date|slice(0,8) %}
{% set nowm="now"|date("s", "Asia/Ho_Chi_Minh") %}
{% if s <= "now"|date("s", "Asia/Ho_Chi_Minh") %}
{% set s="now"|date("s", "Asia/Ho_Chi_Minh")-s %}
{% else %}
{% set s,m="now"|date("s", "Asia/Ho_Chi_Minh")+60-s,m+1 %}
{%endif%}
{% if m <= "now"|date("i", "Asia/Ho_Chi_Minh") %}
{% set m="now"|date("i", "Asia/Ho_Chi_Minh")-m %}
{% else %}
{% set m,h="now"|date("i", "Asia/Ho_Chi_Minh")+60-m,h+1 %}
{%endif%}
{% if h <= "now"|date("H", "Asia/Ho_Chi_Minh") %}
{% set h="now"|date("H", "Asia/Ho_Chi_Minh")-h %}
{% else %}
{% set h,d="now"|date("H", "Asia/Ho_Chi_Minh")+24-h,d+1 %}
{%endif%}
{% if d <= "now"|date("d", "Asia/Ho_Chi_Minh") %}
{% set d="now"|date("d", "Asia/Ho_Chi_Minh")-d+1 %}
{% else %}
{% set d,mo="now"|date("d", "Asia/Ho_Chi_Minh")+31-d,1 %}
{%endif%}
{% if mo < nowm %}
{% if day=="now"|date("d", "Asia/Ho_Chi_Minh") %}
{% if h > 0%}
{% set time %}
{{ h~" giờ "~m~" phút" }} trước{% endset %}
{%elseif h==0 and m > 0%}
{% set time %}
{{m~" phút "~s~" giây " }} trước
{% endset %}
{%else%}
{% set time %}
Vừa xong
{% endset %}
{%endif%}
{%elseif d<=1 %}
{% set time %}
Hôm qua lúc {{time1}}
{% endset %}
{%elseif d > 1 %}
{% set time %}
{{ d }} ngày trước lúc {{time1}}
{% endset %}
{% endif %}
{%else%}
{% set time %}
{{comment.date}}
{% endset %}
{% endif %}
{% if comment.author_profile %}
|
![]() ![]() |
![]() ![]() |
{% if comment.is_hidden %}
{{ ctx.data.translations.t_hidden_comment }}
{% else %}
{{ comment.message|raw }}
{% endif %}
{{ data.translations.t_comments }}
{% for comment in data.entry.comments %}
[{{ comment.date }}]
{% endfor %}
{{ comment.message|raw }}
{{ data.pagination_html|raw }} {% endif %} {% endif %} {% endblock %} {% block entry_comments_form %} {% if data.comments_form.is_maintenance %} {{ data.comments_form.maintenante_markup|raw }} {% elseif data.is_logged_in and data.new_comments_system and not data.community_name %}
Gửi bình luận
{{ data.translations.t_provide_community_name }}
{% else %}
{% if data.post.allow_comments %}
{% if data.comments_form.comments_restriction == "logged_in" and not data.is_logged_in %}
{% endif %}
{% endif %}
{% endblock %}
{{ data.translations.t_comments_login_required }}: {{ data.translations.t_login }} | {{ data.translations.t_signup }}
{% elseif data.comments_form.comments_restriction == "logged_in" and data.is_logged_in and not data.is_confirmed_email %}
{% else %}
{% endif %}