From 15e6fb8d470f49da11b7dfefbad07e092f277b61 Mon Sep 17 00:00:00 2001 From: secretr Date: Mon, 14 Sep 2009 21:53:38 +0000 Subject: [PATCH] sitelinks_alt.sc converted to function SC --- e107_files/shortcode/sitelinks_alt.php | 223 +++++++++++++++++++++++++ e107_files/shortcode/sitelinks_alt.sc | 172 ------------------- 2 files changed, 223 insertions(+), 172 deletions(-) create mode 100644 e107_files/shortcode/sitelinks_alt.php delete mode 100644 e107_files/shortcode/sitelinks_alt.sc diff --git a/e107_files/shortcode/sitelinks_alt.php b/e107_files/shortcode/sitelinks_alt.php new file mode 100644 index 000000000..d82117882 --- /dev/null +++ b/e107_files/shortcode/sitelinks_alt.php @@ -0,0 +1,223 @@ +".$tp->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, 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 = "