/** * Create a series of HTML anchors with hrefs if &format * is set to `a`. */ if ($format == 'a'){ $link .= "$label"; for ($x=0;$x<$cnt;$x++) { $url = urlencode(trim($tvarray[$x])); $cnd_separator = ($x!=($cnt-1)) ? $separator : ''; $link .= '<a href="'.$doc_path.strtolower($url).'">'.trim($tvarray[$x]).'</a>'.$cnd_separator.$nl; } } else { /** * Otherwise genereate a series of list items with a hrefs if &format * is set to ordered or unordered list. */ $link .= '<'.$format.'>'.$nl; $link .= '<li class="'.$style.'_label">'.$label.'</li>'.$nl; for ($x=0;$x<$cnt;$x++) { $url = urlencode(trim($tvarray[$x])); $cnd_separator = ($x!=($cnt-1)) ? $separator : ''; $link .= '<li><a href="'.$doc_path.strtolower($url).'">'.trim($tvarray[$x]).'</a>'.$cnd_separator.'</li>'.$nl; } $link .= '</'.$format.'>'.$nl; }
strtolower($url)
&tagDelimiter=`, `
&separator=`, `