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