/* + ----------------------------------------------------------------------------+ | e107 website system | | $Source: /cvsroot/e107/e107_0.7/e107_files/shortcode/sitelinks_alt.sc,v $ | $Revision: 1.37 $ | $Date: 2007/01/07 15:24:49 $ | $Author: e107steved $ +----------------------------------------------------------------------------+ */ global $sql, $pref; $params = explode('+', $parm); if (isset($params[0]) && $params[0] && $params[0] != 'no_icons' && $params[0] != 'default') { $icon = $params[0]; } else { $icon = e_IMAGE."generic/".IMODE."/arrow.png"; } function adnav_cat($cat_title, $cat_link, $cat_img, $cat_id=FALSE, $cat_open=FALSE) { global $tp; $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) { global $tp; $cat_link = (strpos($cat_link, '://') === FALSE) ? e_HTTP.$cat_link : $cat_link; $cat_link = $tp->replaceConstants($cat_link,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 .= ""; if ($cat_id) { $text .= ""; } $text .= ""; return $text; } $js_file = ($params[1] == 'noclick') ? 'nav_menu_alt.js' : 'nav_menu.js'; if (file_exists(THEME.$js_file)) { $text = ""; } else { $text = ""; } $text .= "
"; return $text; function render_sub($linklist, $id, $params, $icon) { $text = "