"; } else { $text = ""; } $text .= ""; return $text; } function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $cat_open = FALSE) { $tp = e107::getParser(); $cat_link = (strpos($cat_link, '://') === FALSE && strpos($cat_link, 'mailto:') !== 0 ? e_HTTP.$cat_link : $cat_link); if ($cat_open == 4 || $cat_open == 5) { $dimen = ($cat_open == 4) ? "600,400" : "800,600"; $href = " href=\"javascript:open_window('".$cat_link."',".$dimen.")\""; } else { $href = "href='".$cat_link."'"; } $text = "toHTML($cat_title, "", "defs, no_hook").""; return $text; } function adnav_main($cat_title, $cat_link, $cat_img, $cat_id = FALSE, $params, $cat_open = FALSE) { $tp = e107::getParser(); $cat_link = (strpos($cat_link, '://') === FALSE) ? e_HTTP.$cat_link : $cat_link; $cat_link = $tp->replaceConstants($cat_link, TRUE, TRUE); if ($cat_open == 4 || $cat_open == 5) { $dimen = ($cat_open == 4) ? "600,400" : "800,600"; $href = " href=\"javascript:open_window('".$cat_link."',".$dimen.")\""; } else { $href = "href='".$cat_link."'"; } $text = ""; } $text .= "".$tp->toHTML($cat_title, "", "defs, no_hook").""; if ($cat_id) { $text .= ""; } $text .= ""; return $text; } function render_sub($linklist, $id, $params, $icon) { $text = "