<textarea>{% set admin='Cường Tobi™' %}
{% set color_status='green' %}
{% set status='[ON]' %}
<div class="xt_blog_parent" id="xt_blog">
{% if view == 'entries_list' %}
{% block entries_list_tag %}
{% if data.tag %}
<div class="news">Tìm với tags: {{ data.tag }}</div>
{% endif %}
{% endblock %}
{# danh sách bài blog #}
{% block entries_list %}
{% for entry in data.entries %}
<div class="list1"><img src="/images/list.gif" />
{% set rwurl = entry.title|lower|replace({' ':'-', '[':'', ']':'', ',':'', '.':'', 'ă':'a', 'ắ':'a', 'ằ':'a', 'ẳ':'a', 'ẵ':'a', 'ặ':'a', 'â':'a', 'ấ':'a', 'ầ':'a', 'ẩ':'a', 'ẫ':'a', 'ậ':'a', 'á':'a', 'à':'a', 'ả':'a', 'ã':'a', 'ạ':'a', 'ô':'o', 'ố':'o', 'ồ':'o', 'ổ':'o', 'ỗ':'o', 'ộ':'o', 'ơ':'o', 'ớ':'o', 'ờ':'o', 'ở':'o', 'ỡ':'o', 'ợ':'o', 'ó':'o', 'ò':'o', 'ỏ':'o', 'õ':'o', 'ọ':'o', 'ư':'u', 'ứ':'u', 'ừ':'u', 'ử':'u', 'ữ':'u', 'ự':'u', 'ú':'u', 'ù':'u', 'ủ':'u', 'ũ':'u', 'ụ':'u', 'í':'i', 'ì':'i', 'ỉ':'i', 'ĩ':'i', 'ị':'i', 'ý':'y', 'ỳ':'y', 'ỷ':'y', 'ỹ':'y', 'ỵ':'y', 'ê':'e', 'ế':'e', 'ề':'e', 'ể':'e', 'ễ':'e', 'ệ':'e', 'é':'e', 'è':'e', 'ẻ':'e', 'ẽ':'e', 'ẹ':'e', 'đ':'d'})|url_encode(true) %}
{% set dodai = entry.url|split('-')|first|length %}
{% set blog_entry=entry.url|slice(0,dodai) %}
{% set blog_url = blog_entry~"-"~rwurl %}
<a href="{{ blog_url }}">
{{ entry.title }}
{% if data.entry_list_show_time %}
<span class="icon_data">{{entry.created}}</span>
{% endif %}
{% if entry.comments_count %}
(<img src="/images/chat-icon.png" alt="cmt:"/> {{ entry.comments_count }})
{% endif %}
</a><br/>
{% if data.display_type != 'header' and entry.content %}
<span class="xt_description">{{ entry.content|raw }}</span>
{% endif %}
</div>
{% endfor %}
{% endblock %}
{# hết danh sách bài blog #}
{% block entries_list_footer %}
{% if data.back_url %}
<div class="list1"><a href="{{ data.back_url }}" class="xt_blog_back_to_posts xt_link xt_button"><strong>← Quay lại</strong></a></div>
{% endif %}
{{ data.pagination_html|raw }}
{% endblock %}
{% block entries_list_searchbox %}
{% if data.searchbox %}
<div class="news">
<form action="{{ data.searchbox.url }}" method="get">
{% for key, value in data.searchbox.params %}
{% if value %}
<input type="hidden" name="{{ key }}" value="{{ value }}" />
{% endif %}
{% endfor %}
<input type="text" name="__xtblog_search" value="{{ data.searchbox.phrase }}">
<input class="xt_button" type="submit" value="{{ data.translations.t_search }}" />
</form>
</div>
{% endif %}
{% endblock %}
{% elseif view == 'entry' %}
<div class="xt_blog">
{% 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', '[KPAH]': 'Khí phách anh hùng', '[Share]': 'Chia sẽ kinh nghiệm', '[Ninja]': 'Ninja School', '[Me]': 'Me hài Ola', '[Hài Hước]': 'Giải trí- Thư giãn', '[Facebook]': 'Thủ thuật Facebook', '[Ngọc rồng]': 'Ngọc rồng Online', '[Army]': 'Mobi Army', '[LMHT]': 'LMHT', '[Thủ thuật]': 'Thủ Thuật', '[Chòm Sao]': 'Mật Ngữ 12 Chòm Sao'}) %}
{% set tenbaiviet=data.post.title|slice(end+1) %}
<div align="center"><h1 style="display:inline;font-size:15px;color:blue;">{{ tenbaiviet }}</h1></div><br/>
<div class="mainsub">
{% if not data.entry.in_comments_thread %}
{% if data.post.subtitle %}
<div class="news">{{ data.post.subtitle }}</div>
{% endif %}
<div class="list1">
{{ data.post.content|raw }}
<p align="right"><a href="/blog?__xtblog_search={{ timkiem }}"><strong>Cùng chuyên mục →</strong></a></p>
</div>
{% block entry_tags %}
{% if not data.entry.in_comments_thread %}
{% if data.hide_tags == false and data.post.tags %}
{{ data.translations.t_tags }}
{% for tag in data.post.tags %}
<a href="{{ tag.url }}">{{ tag.name }}</a>{% if loop.last == false %}, {% endif %}
{% endfor %}
{% endif %}
{% endif %}
{% endblock %}
</div>
{% endif %}
{% endblock %}
{% elseif view == 'no_contents' %}
{% block no_contents %}
{% if data.searchbox.phrase %}
<div class="xt_blog xt_list">{{ data.translations.t_no_search_results_found }}</div>
{% else %}
<div class="xt_blog xt_list">{{ data.translations.t_no_entries_found }}</div>
{% endif %}
{% endblock %}
{% block no_contents_searchbox %}
{% if data.searchbox %}
<div class="xt_container xt_blog_search">
<form action="{{ data.searchbox.url }}" method="get" class="xt_blog_search_form">
{% for key, value in data.searchbox.params %}
{% if value %}
<input type="hidden" name="{{ key }}" value="{{ value }}" />
{% endif %}
{% endfor %}
<span class="xt_input"><input type="text" name="__xtblog_search" value="{{ data.searchbox.phrase }}" /></span>
<span class="xt_submit"><input class="xt_button" type="submit" value="{{ data.translations.t_search }}" /></span>
</form>
</div>
{% if data.back_url %}
<div class="list1"><a href="{{ data.back_url }}" class="">← Quay lại</a></div>
{% endif %}
{{ data.pagination_html|raw }}
{% endif %}
{% endblock %}
{% elseif view == 'no_entry' %}
{% block no_entry %}
<div class="xt_blog xt_list">Chưa có bài viết</div>
{% endblock %}
{% endif %}
</div></textarea>
