From 661ba6d878c9aa56ecc2be3a541dfa559ba663f4 Mon Sep 17 00:00:00 2001 From: CaMer0n Date: Fri, 7 Aug 2009 14:09:54 +0000 Subject: [PATCH] sublinks shortcode added - sublinks can now be placed anywhere within a theme. --- e107_files/shortcode/sublinks.php | 43 +++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 e107_files/shortcode/sublinks.php diff --git a/e107_files/shortcode/sublinks.php b/e107_files/shortcode/sublinks.php new file mode 100644 index 000000000..fba44261a --- /dev/null +++ b/e107_files/shortcode/sublinks.php @@ -0,0 +1,43 @@ +\n\n"; + $text .= $style['prelink']; + $sql->db_Select("links", "link_id","link_url= '{$page}' AND link_category = {$cat} LIMIT 1"); + $row = $sql->db_Fetch(); + $parent = $row['link_id']; + + $link_total = $sql->db_Select("links", "*", "link_class IN (".USERCLASS_LIST.") AND link_parent={$parent} ORDER BY link_order ASC"); + while($linkInfo = $sql->db_Fetch()) + { + $text .= $sublinks->makeLink($linkInfo,TRUE, $style, false); + } + + $text .= $style['postlink']; + $text .= "\n\n\n\n"; + + return $text; +} + +?> \ No newline at end of file