mấy hôm nay có mấy bạn xin nên mình muốn hướng dẫn lại 1 lần nữa (dù đã hướng dẫn rất nhiều lần rồi)
CÁCH LÀM
Dán code này vào đầu _header
Var $ki = mobile
var $ko = Mozilla
if not $ko==Mozilla
var $SAT=mobile
elseif $ki==web
var $SAT=web
else
var $SAT=touch
Endif
get style
If $style
var $style = call cookie::set $name=style;$val=$style;$expire=31556926;$force_current=1
Endif
var $SAT = call cookie::get $name=style;$default=$SAT
và ở mỗi file bạn muốn auto wap/web bạn hãy thêm code sau
if $SAT==mobile
print {{phần hiển thị giao diện máy đt java }}
elseif $SAT==web
print {{ máy tính, laptop.... }}
else
print {{ hiển thị khi dùng smartphone}}
endif