0 ): foreach ($tids as $tid) { $terms[$tid] = taxonomy_get_term($tid); $ourselectedterm .= ' ' . $terms[$tid]->name; if ($ourvid <> $terms[$tid]->vid): if ($i++ > 0) $newpath .= ','; $newpath .= $tid; else: $ourvidinpath= TRUE; endif; } endif; // if our vid in path, donīt show terms to refine for, show the msg to go back for other selections $output .= $wheremsg . ' ' . $ourselectedterm . ' '; if ($ourvidinpath): // if only our vid in path, allow select other terms through the vocab link if (count($tids)==1): $output .= ''. $othermsg.' '; else: $output .= ''. $othermsg.' '; endif; else: // Build SQL statement, this will return all terms for vocabulary &vid for 'taxonomy/term/xxxx' taxonomy $output .= '
'. $seemsg . ':
'; $sentence = "SELECT DISTINCT td.tid, td.name FROM term_node tn INNER JOIN term_node b ON tn.nid=b.nid INNER JOIN term_data td ON tn.tid=td.tid WHERE td.vid=" . $ourvid . " and b.tid in('" . arg(2) . "') ORDER BY td.name"; $vocabulary = db_query($sentence); // Build output string with selected taxonomy links while ($term = db_fetch_object($vocabulary)) { $output .= ''. $term->name.' '; } endif; // Add Reset filter links: If more than one taxonomy level is shown, show reset filter links $terms = array(); if (count($tids) >1 ): $output .= ''. $resetmsg; foreach ($tids as $tid) { $terms[$tid] = taxonomy_get_term($tid); $output .= ''. $terms[$tid]->name .' '; } $output .= '
'; endif; print $output; endif; ?>