' . fb_get_pathway($kunena_db, $obj_fb_cat, $bool_set_title, $obj_post) . ''; } /** * Function to print the pathway * @param object database object * @param object category object * @param int the post id * @param boolean set title */ function KUNENA_get_pathway(&$kunena_db, $obj_fb_cat, $bool_set_title, $obj_post = 0) { global $fbIcons; $document=& JFactory::getDocument(); $fbConfig =& CKunenaConfig::getInstance(); //Get the Category's parent category name for breadcrumb $kunena_db->setQuery("SELECT name, id FROM #__fb_categories WHERE id='".$obj_fb_cat->getParent())."'"; $objCatParentInfo = $kunena_db->loadObject(); check_dberror("Unable to load categories."); //get the Moderator list for display $kunena_db->setQuery("SELECT * FROM #__fb_moderation AS m LEFT JOIN #__users AS u ON u.id=m.userid WHERE m.catid='" . $obj_fb_cat->getId() . "'"); $modslist = $kunena_db->loadObjectList(); check_dberror("Unable to load moderators."); // echo '
';
// link to List of Forum Categories
$return .= ' ' . fb_Link::GetKunenaLink(_GEN_FORUMLIST) . '
';
$return .= '
';
// link to Category
$return .= ' '. fblink::GetCategoryLink('listcat', $objCatParentInfo->id, $objCatParentInfo->name) . '
';
}
else
{
if ($bool_set_title)
$document->setTitle(stripslashes($obj_fb_cat->getName()) . ' - ' . stripslashes($fbConfig->board_title));
}
// Forum
// show lines
$return .= '
';
$return .= '
';
// Link to forum
$return .= ' ' . fbLink::GetCategoryLink('listcat', $obj_fb_cat->getId(), $obj_fb_cat->getName());
//check if this forum is locked
if ($obj_fb_cat->getLocked()) {
$return .= isset($fbIcons['forumlocked']) ? '
';
$text = '';
if (count($modslist) > 0)
{
foreach ($modslist as $mod) {
$text = $text . ', ' . $mod->username;
}
$return .= ' (' . _GEN_MODERATORS . ': ' . ltrim($text, ",") . ')';
}
}
if ($obj_post != 0)
{
if ($bool_set_title)
$document->setTitle(stripslashes($obj_post->subject) . ' - ' . stripslashes($fbConfig->board_title));
// Topic
// show lines
$return .= '
';
$return .= '
';
$return .= '
';
$return .= '
';
$return .= ' ' . $obj_post->subject . '';
// Check if the Topic is locked?
if ((int)$obj_post->locked != 0) {
$return .= '