$header['title'] = empty($read['title']) ? $read['name'] : $read['title'];
$header['mobile_link'] = url('tag-' . $tagid, $extra);
$header['keywords'] = empty($read['keywords']) ? $read['name'] : $read['keywords'];
$header['description'] = empty($read['description']) ? $read['name'] : $read['description'];
$_SESSION['fid'] = 0;
if ($ajax) {
$apilist['header'] = $header;
$apilist['extra'] = $extra;
$apilist['tag'] = $read;
$apilist['num'] = $num;
$apilist['page'] = $page;
$apilist['pagesize'] = $pagesize;
$apilist['page_url'] = $page_url;
$apilist['threadlist'] = $threadlist;
$conf['api_on'] ? message(0, $apilist) : message(0, lang('closed'));
} else {
include _include(theme_load('tag', $tagid));
}
break;
}
?>