Login
·
Signup
Home
»
XtGem
»
Questions about service
»
please add function random for blog
» View post
tiaxgame
Graham
{% block entries_list %} {% for entry in data.entries %}* {{data.entries[(random(data.entries|length-1))].title }} {% endfor %}{% set data %} {% for entry in data.entries %} {% if loop.first == false %} <div class="list1"><img src="http://giacmovn.com/images/ic.png" alt="" /> {% set rewrite=entry.title %}<a href="http://aiseo.wap.sh/blog/index/__xtblog_entry/{{ entry.url|split('-')|first|split('/')|last }}-{% include 'blog/mod/rewrite.js' %}.html?__xtblog_block_id=1">{{ entry.title }}</a> ({% include 'blog/time.js' %})</div>* {{data.entries[(random(data.entries|length-1))].url }} {% if loop.last == false %} <rand> {% endif %} {% endif %} {% endfor %}{% endset %} {% set array=data|split('<rand>') %} {% for i in 1..5 %} {% set rand=random(array) %} {% set del='<rand>'~rand %} {{array|length}}{{rand|raw}} {% set array=data|split(del|raw)|join|split(rand|raw)|join|split('<rand>') %}{% endfor %} * {{data.entries[(random(data.entries|length-1))].url }} {% endblock %}
#
2014-07-23 01:56 ·
(0)
Home
»
XtGem
»
Questions about service
»
please add function random for blog
» View post
Online: Guests: 1
Log in