function breadcrumb_page_arrays($tree_index, $tree_full, $id_col, $title_col, $getname, $id) { $crumb =& $crumb; if (isset($tree_index[get_parent($tree_index, $id)])) { $_name = get_parent_array($tree_full, $id); $crumb = array('link' => isset($_name[$id_col]) ? clean_request($getname . "=" . $_name[$id_col], array("aid"), TRUE) : "", 'title' => isset($_name[$title_col]) ? \PHPFusion\QuantumFields::parse_label($_name[$title_col]) : ""); if (get_parent($tree_index, $id) == 0) { return $crumb; } $crumb_1 = breadcrumb_page_arrays($tree_index, $tree_full, $id_col, $title_col, $getname, get_parent($tree_index, $id)); if (!empty($crumb_1)) { $crumb = array_merge_recursive($crumb, $crumb_1); } } return $crumb; }
function get_breadcrum_fromID($post_id) { $ids = get_parent_array($post_id); $html = ""; $c = 0; foreach ($ids as $key => $value) { if ($c == 0 && count($ids) == 1) { $html .= '<span id="subTitleInner">' . trim(get_the_title($value)) . "</span> "; } else { if ($c == 0) { $html .= trim(get_the_title($value)) . ": "; } else { $html .= '<span id="subTitleInner">' . trim(get_the_title($value)) . "</span> "; } } $c++; } return $html; }