';
}
function xt_core(){
global $xtdir;
echo '
';
}
function xt_clicks(){
global $xtdir;
echo '
';
}
function xt_noscript($n2,$page,$di){
global $xtsd;
global $xtsite;
echo '
';
}
// Echoes the complete Tag with ClickZone analysis.
function xt_all($n2,$page,$di){
xt_tag($n2,$page,$di);
xt_clicks();
xt_core();
xt_noscript($n2,$page,$di);
}
// Echoes the basic Tag.
function xt_basic($n2,$page,$di){
xt_tag($n2,$page,$di);
xt_core();
xt_noscript($n2,$page,$di);
}
// Main function.
function xt_print() {
$ergo='';
$xtn2='';
$xtpage='';
// Home.
if(is_home()){
$xtpage='homepage::homepage';
$ergo='homepage_ergo';
}
else{
$xtpage=sanitize_title(wp_title('',FALSE));
// Static pages.
if(is_page()){
$xtpage='static_page::'.$xtpage;
$ergo='pages_ergo';
}
// Blog entries.
else{
$ergo='posts_ergo';
//Belongs to only one category.
if((count(get_the_category())==1)&&(is_single())){
$cat=get_the_category();
$catName=$cat[0]->cat_name;
$xtpage='posts_blogs::'.sanitize_title($catName).'::'.$xtpage;
}
else{
$xtpage='posts_blogs::'.$xtpage;
}
}
}
if(get_option($ergo))
xt_all($xtn2,$xtpage,'');
else
xt_basic($xtn2,$xtpage,'');
}
?>