Chủ đề: [Topic] Hỗ trợ, giải đáp lập trình Wap/Web
![]() | ![]() ![]() ![]() ![]() 18:43 / 11.09.2016 |
@nhu_tran_karry xong cho mấy like coi. Mỏi tay
Mở _xtgem_templates/action/view_categories. Xóa hết. Bỏ code sau vào
{% block view_categories %}
{% set view = "categories" %}
<span style="display
ne;" id="mod_online">
{% for user in online_users %}
{{user.name}}{% if loop.last == false %}, {% endif %}
{% endfor %}
</span>
{{block('menu')}}
{{ include ('includes/notification.js', ignore_missing=true) }}
{{ include ('modify/boards_unread.js', ignore_missing=true) }}
<div class="phdr" id="xt_guestbook"><i class="fa fa-comments"></i> Phòng chat </div>
<xt:guestbook format="Y-m-d H:i:s" comments_per_page="5" comments_sort="-1" parse_html="0" badwords="sex,lồn,cặc,cứt,địt,fuck,loz" />
{% for key, category in categories %}
{% if categories|length != 1 %}
<div class="phdr"><i class="fa fa-dashboard"></i> {{category.title}}</div>
{% else %}
<div class="phdr"><i class="fa fa-dashboard"></i> {{category.title}}</div>
{% endif %}
{% for board in category.boards %}
<div id="{{board.id}}"></div>
{% endfor %}
{% if categories|length != 1 %}
<a href="{{category.link}}" title="{{categories.title}}"><div class="edit" style="text-align: center;">Xem tất cả >></div></a>
{% endif %}
{% endfor %}
{% if categories|length == 1 %}
{% set category = categories|first %}
{% endif %}
{{block('breadcrumbs')}}
{{block('messages')}}
{% for category in categories %}
{% if categories|length != 1 %}
<div class="category id_{{category.id}}"><div class="phdr"><img src="/img/icon/number/{{category.position}}.png" alt="{{category.position}}" /> <a href="{{ category.link }}" title="{{ category.title }}"><span style="font-weight: bold;">{{ category.title }}</span></a></div><div class="edit"><i class="fa fa-spinner"></i> Cập nhật: {% set time = category.last_update|date("Y-m-d H:i:s", "Asia/Saigon") %}{{block('time_mod')}}</div>
{% endif %}
{% for board in category.boards %}
<div class="topmenu">
<i class="fa fa-{% if not board.read %}arrow-circle-o-right{% else %}check-circle-o{% endif %}"></i> <a href="{{ board.link }}" title="{{ board.title }}"><span style="font-weight: bold;">{{ board.title }}</span></a> [{{board.threads_count}}]{% if not board.read %} <small class="alert"><img src="/img/new.gif"></small>{% endif %}
<br /><small><a href="{{board.new_thread_link}}" title="Tạo chủ đề mới"><span style="color: blue;">[<i class="fa fa-pencil-square-o"></i> Đăng bài mới]</span></a></small>
{% set _online = get_online ( '/category_' ~ category.id ~ '/board_' ~ board.id ) %}
{% if _online > 0 %}
<i class="fa fa-street-view"></i> <small>Đang trực tuyến: {{ _online }}</small>
{% endif %}
</div>
{% if board.description %}
<div class="list1">{{board.description}}</div>
{% endif %}
{% endfor %}
{% if categories|length != 1 %}
</div>
{% endif %}
{% endfor %}
{{block('search')}}
{{block('online')}}
{{block('show_index')}}
{% endblock %}
Mở _xtgem_templates/action/view_categories. Xóa hết. Bỏ code sau vào
{% block view_categories %}
{% set view = "categories" %}
<span style="display

{% for user in online_users %}
{{user.name}}{% if loop.last == false %}, {% endif %}
{% endfor %}
</span>
{{block('menu')}}
{{ include ('includes/notification.js', ignore_missing=true) }}
{{ include ('modify/boards_unread.js', ignore_missing=true) }}
<div class="phdr" id="xt_guestbook"><i class="fa fa-comments"></i> Phòng chat </div>
<xt:guestbook format="Y-m-d H:i:s" comments_per_page="5" comments_sort="-1" parse_html="0" badwords="sex,lồn,cặc,cứt,địt,fuck,loz" />
{% for key, category in categories %}
{% if categories|length != 1 %}
<div class="phdr"><i class="fa fa-dashboard"></i> {{category.title}}</div>
{% else %}
<div class="phdr"><i class="fa fa-dashboard"></i> {{category.title}}</div>
{% endif %}
{% for board in category.boards %}
<div id="{{board.id}}"></div>
{% endfor %}
{% if categories|length != 1 %}
<a href="{{category.link}}" title="{{categories.title}}"><div class="edit" style="text-align: center;">Xem tất cả >></div></a>
{% endif %}
{% endfor %}
{% if categories|length == 1 %}
{% set category = categories|first %}
{% endif %}
{{block('breadcrumbs')}}
{{block('messages')}}
{% for category in categories %}
{% if categories|length != 1 %}
<div class="category id_{{category.id}}"><div class="phdr"><img src="/img/icon/number/{{category.position}}.png" alt="{{category.position}}" /> <a href="{{ category.link }}" title="{{ category.title }}"><span style="font-weight: bold;">{{ category.title }}</span></a></div><div class="edit"><i class="fa fa-spinner"></i> Cập nhật: {% set time = category.last_update|date("Y-m-d H:i:s", "Asia/Saigon") %}{{block('time_mod')}}</div>
{% endif %}
{% for board in category.boards %}
<div class="topmenu">
<i class="fa fa-{% if not board.read %}arrow-circle-o-right{% else %}check-circle-o{% endif %}"></i> <a href="{{ board.link }}" title="{{ board.title }}"><span style="font-weight: bold;">{{ board.title }}</span></a> [{{board.threads_count}}]{% if not board.read %} <small class="alert"><img src="/img/new.gif"></small>{% endif %}
<br /><small><a href="{{board.new_thread_link}}" title="Tạo chủ đề mới"><span style="color: blue;">[<i class="fa fa-pencil-square-o"></i> Đăng bài mới]</span></a></small>
{% set _online = get_online ( '/category_' ~ category.id ~ '/board_' ~ board.id ) %}
{% if _online > 0 %}
<i class="fa fa-street-view"></i> <small>Đang trực tuyến: {{ _online }}</small>
{% endif %}
</div>
{% if board.description %}
<div class="list1">{{board.description}}</div>
{% endif %}
{% endfor %}
{% if categories|length != 1 %}
</div>
{% endif %}
{% endfor %}
{{block('search')}}
{{block('online')}}
{{block('show_index')}}
{% endblock %}
Freelance Design | Zalo 0903.159.717