0 Members and 1 Guest are viewing this topic.
// Show a linktree. This is that thing that shows "My Community | General Category | General Discussion"..function theme_linktree($force_show = false){ global $context, $settings, $options, $shown_linktree; // If linktree is empty, just return - also allow an override. if (empty($context['linktree']) || (!empty($context['dont_default_linktree']) && !$force_show)) return; echo ' <ul class="linktree" id="linktree_', empty($shown_linktree) ? 'upper' : 'lower', '">'; // Each tree item has a URL and name. Some may have extra_before and extra_after. foreach ($context['linktree'] as $link_num => $tree) { echo ' <li', ($link_num == count($context['linktree']) - 1) ? ' class="last"' : '', '>'; // Show something before the link? if (isset($tree['extra_before'])) echo $tree['extra_before']; // Show the link, including a URL if it should have one. echo $settings['linktree_link'] && isset($tree['url']) ? ' <a href="' . $tree['url'] . '"><span>' . $tree['name'] . '</span>[/url]' : '<span>' . $tree['name'] . '</span>'; // Show something after the link...? if (isset($tree['extra_after'])) echo $tree['extra_after']; // Don't show a separator for the last one. if ($link_num != count($context['linktree']) - 1) echo ' >'; echo ' </li>'; } echo ' </ul>'; $shown_linktree = true;}
echo ' »';
echo ' »';
<a href="', $category['collapse_href'], '">', $category['collapse_image'], '</a> ';
</a> ';