You are here

function tft_li in Taxonomy File Tree 7.2

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

Format an <li> tag for the file explorer.

Parameters

string $name: The folder name

int $tid:

string $li_class: CSS classes for the <li>

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

Return value

string

Related topics

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

File

./tft.module, line 465
Hook implementations and module logic for TFT.

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="#tft/' . $tid . '" class="folder-link">' . $name . '</a></span>';
}