You are here

function tft_li in Taxonomy File Tree 7

Same name and namespace in other branches
  1. 7.2 tft.module \tft_li()

Format an <li> tag for the file explorer.

Parameters

string $name: The folder name

int $tid: The taxonomy term tid

string $li_class: CSS classes for the <li>

string $span_class: CSS classes for the child <span>

Return value

string The formatted HTML string for the <li> tag

1 call to tft_li()
tft_output_children in ./tft.module
Return the sub-tree as an unordered list

File

./tft.module, line 1622
Module hooks.

Code

function tft_li($name, $tid, $li_class, $span_class) {
  return '<li id="tid-' . $tid . '" class="folder' . $li_class . '"><span class="icon' . $span_class . '"></span><span class="link-wrapper"><a href="#term/' . $tid . '" class="folder-link">' . $name . '</a></span>';
}