2Hi.Biz
Trang chủ | TWIG | Xtscript | Templates | Xtgem
title phân page fl tiax | Hỏi và Đáp | Xtgem - 2Hi.Biz
▼ title phân page fl tiax
1 2 >>
* police
- Cấp bậc: mem
02-06-2015
ad viết code hiện title phân page đi, minh viết lỗi tùm lum :))
* Pupy
- Cấp bậc: admin
02-06-2015
Up top
* Admin
- Cấp bậc: admin
02-06-2015
* police oếu như muốn nhanh thì dùng javascript get title.g rồi dán trả title khj p>1

còn k thì phải

lấy cái biến t_... gj đó. ở _header mà get p yk


ở file headtags.js

đoạn in ra <title></title> yk

nếu biến p đó >1 thj hjện ra
* police
- Cấp bậc: mem
02-06-2015
bác viết đi ad :))
* Admin
- Cấp bậc: admin
02-06-2015
_headtags

<!--parser:xtscript-->
# đây là danh sách thư mục của filelist, ngăn cách bởi dấu phẩy.
 var $list = <xt:filelist sort_type="updated" sort_dir="desc" per_page="" folder="/_xtgem_templates/folder" template="/.file_name., " filter=""/>
 var $list = @$list
var $path = <xt:url type="path">
 var $file = call strrchr $haystack=$path;$needle=/;$before_needle=1
 var $folder = call str_ireplace $subject=$path; $search=$file; $replace=  
var $file = @$file
 var $index = call strpos $haystack=$file; $needle=/index 
var $check = call strpos $haystack=$list; $needle=$folder
 if $index == 1
# ioại bỏ các thẻ meta trong các file index

 elseif $check > 0
 get p
print <xt:blog t_comment="$path" t_post="headtags" translations.t_post_a_comment="$p" /> 
endif
 <!--/parser:xtscript-->
  <link type="text/css" rel="stylesheet" href="http://gameongame.wap.sh/css/style.css" media="all,handheld"/>
 <link href='http://
fonts.googleapis.com/css?family=Oswald' rel='stylesheet' type='text/css'> <link rel="icon" href="http://aichat.wap.sh/icon.ico" type="image/x-icon" />
* Pupy
- Cấp bậc: admin
02-06-2015
Sao ko dùng code get title bằg js cho nhanh
* Admin
- Cấp bậc: admin
02-06-2015
headtags.js

{% block headtags %}
 {% set p=data.translations.t_post_a_comment %} 
{% if p>1 %}{% set p='Trang '~p~' - ' %}{% else %}{% set p='' %}{% endif %}
 {% set path=data.translations.t_comment %} 
{% set file=path %}
{% set include %}{% include '/..'~file %}{% endset %}

 {% set ten=include|split('[/ten]')|first|split('[ten]')|last %}
 {% set nd=include|slice(include|split('[nd]')|first|length+4,include|length-include|split('[/nd]')|last|length-include|split('[nd]')|first|length-9) %} 
<title>{{p}}{{ten}} - Tiaxgame.Wap.Sh</title>
 <meta name="keywords" content="{{ten}}, {{ten|replace({'  ': " ",' ': ", "})}}"/> 
<meta name="description" content="{{nd|replace({'[': "<",']': ">"})|striptags|trim|slice(0,145)}}"/> <link rel="canonical" href="http://tiaxgame.wap.sh{{path}}"> 
{% endblock %}
* Admin
- Cấp bậc: admin
02-06-2015
demo
http://tiaxgame.wap.sh/blog-yeu/sao-buon-sao-phai-sang-song.html?p=2
* Admin
- Cấp bậc: admin
02-06-2015
* Pupy js nó k thật. hj
1 người thích điều này!
* Pupy
- Cấp bậc: admin
02-06-2015
* tiaxgame Ukm, chỉ làm đẹp thôi hi
▲ Tổng số: 11
1 2 >>
- Share:
BBCode:

Link:
Online: Guests: 1

Từ khóa: fl , tiax , tiax , title , page