function popTagLinks($type) { global $txpcfg; include txpath . '/lib/taglib.php'; $arname = $type . '_tags'; asort(${$arname}); foreach (${$arname} as $a) { $out[] = popTag($a, gTxt('tag_' . $a)); } return join(br, $out); }
function popTagLinks($type) { global $txpcfg; include txpath . '/lib/taglib.php'; $arname = $type . '_tags'; $out = array(); $out[] = n . '<ul class="plain-list small">'; foreach (${$arname} as $a) { $out[] = n . t . tag(popTag($a, gTxt('tag_' . $a)), 'li'); } $out[] = n . '</ul>'; return join('', $out); }
/** * Renders a list of tag builder links. * * @param string $type Tag type * @return string HTML */ function popTagLinks($type) { include txpath . '/lib/taglib.php'; $arname = $type . '_tags'; $out = array(); foreach (${$arname} as $a) { $out[] = tag(popTag($a, gTxt('tag_' . $a)), 'li'); } return n . tag(n . join(n, $out) . n, 'ul', array('class' => 'plain-list')); }