Style chữ:
<link rel="stylesheet" href="/files/1050632/phat_css.css"/> <style type="text/css"> {%set text=['Q','g','G','p','P','ậ','ệ','ạ','ộ','ự','ị','ợ','ẹ','y','ỵ','Y']%} {%for i in 0..text|length-1%}.phletter.ph{{text[i]}},{%endfor%}.phletter.phq{margin-bottom: -5px;} </style>
Macro dùng ở Twig hay shoutbox history
{%macro text2(text)%}<img src="/files/953350/quote1.png">{%for i in 0..text|length-1%}<span class="phletter ph{{text|slice(i,1)|replace({' ':'space'})}}">{{text|slice(i,1)}}</span>{%endfor%}<img src="/files/953350/quote2.png">{%endmacro%}{%import _self as thaian2009%}
Dùng ở shoutbox history:
{{thaian2009.text2(message|striptags)}}
Dùng ở Twig
{{thaian2009.text2('Văn bản muốn hiện')}}
Còn nhiều kiểu font khác nữa. Muốn làm thì đặt tại cbtt.
Nguồn: http://cobethoitiet.wap.mu
![[OFF]](/assets/images/off.gif)
![[IMAGE]](http://i.imgur.com/EWwW7JKh.jpg)