Xt Script is Xtgems own scripting language (ie it only work in xtgem), it also uses $ variable to function. Any mistake in the script it will
Timeout
You cn use Xtscript to create any function in xtgem such as paging with next and previous, filelist, header selection/splitting and device view, blog, searchs etc.
It still commands use the tag
<!--parser:xtscript--> and closes its command using
<!--/parser:xtscript--> the xtscript function below using the support of include file and xtscript function it has a mobile detector, country, forum, and browser detector, random photo widget etc. all in one using xtscript
<!--parser:xtscript-->
# xtfunctions can be printed out
print you are using a <xt:get_device_template /> device<br />
# Most xtfunctions can be read into variables
var $country=<xt:country type="1" />
print $country<hr />
# forums cannot be read into xtscript variables
var $forum=<xt:forum />
print $forum no forum here <hr/>
#xtfunctions can be constructed with variables
var $function=browser detail="4"
var $browser=<xt:$function />
print $browser<hr />
# The content of a file can be included in to a variable
var $included = <xt:include file="/manual/basics/examples/included"/>
print $included<hr />
# widgets are parsed separately to Xtscript so they cannot be read into variables
var $widget=<xt:widget id="flickr_random_photo"/>
print $widget no widget here <hr/>
#but they can be constructed for output
var $w = flickr_random_photo
print <xt:widget id="$w"/><hr />
# dump of variables on this page
print Variables on this page <br />
var $dump=call dump_vars
var $dump=call trim $val=$dump ; $charlist={{<pre>
Array/ }}
var $dump=call trim $val=$dump ; $charlist=( )
var $dump=call htmlspecialchars $val=$dump
#var $dump=call nl2br $val=$dump
print <pre>$dump</pre>
<!--/parser:xtscript-->
Copy code