Lines Matching refs:item
393 * @param array $item
397 function html_list_index($item) argument
400 return (new Index())->formatListItem($item);
412 * @param array $item
416 function html_li_index($item) argument
419 return (new Index())->tagListItem($item);
427 * @param array $item
431 function html_li_default($item) argument
433 return '<li class="level' . $item['level'] . '">';
473 $lifunc = static fn($item) => '<li class="level' . $item['level'] . '">';
476 foreach ($data as $item) {
477 if ($item['level'] > $level) {
479 for ($i = 0; $i < ($item['level'] - $level); $i++) {
484 $level = $item['level'];
485 } elseif ($item['level'] < $level) {
488 while ($level > $item['level'] && $open > 0) {
500 $html .= call_user_func($lifunc, $item);
503 $html .= call_user_func($func, $item);
853 * @param array $item
856 function html_list_toc($item) argument
858 if (isset($item['hid'])) {
859 $link = '#' . $item['hid'];
861 $link = $item['link'];
864 return '<a href="' . $link . '">' . hsc($item['title']) . '</a>';