Project

General

Profile

« Previous | Next » 

Revision d0d23caa

Added by Andreas Kohlbecker almost 8 years ago

initial commit for breadcrumb-children feature

View differences:

modules/cdm_dataportal/includes/pages.inc
956 956
 */
957 957
function compose_classification_breadcrumbs($taxon_uuid) {
958 958

  
959
  _add_js_taxonomic_children('#classification-breadcrumbs .taxonomic-children');
960

  
959 961
  $render_array = array();
960 962
  if(!is_uuid($taxon_uuid)){
961 963
    return $render_array;
......
980 982
    $node_name = cdm_dataportal_shortname_of($node);
981 983
    $path = path_to_taxon($node->taxonUuid);
982 984

  
983
    $items[] = ($is_first_item ? '': ' > ') . l($node_name, $path);
985
    $items[] = ($is_first_item ? '':  ' ' . '<span class="taxonomic-children" data-cdm-taxon-uuid="'. $node->taxonUuid. '" > &gt; </span>' . ' ')
986
      . l($node_name, $path);
984 987
  }
985 988
  $render_array['#items'] = $items;
986 989

  

Also available in: Unified diff