Project

General

Profile

« Previous | Next » 

Revision 92f7d0a0

Added by Andreas Kohlbecker about 12 years ago

adding preliminar theme fork for Uses

View differences:

5.x/modules/cdm_dataportal/theme/cdm_dataportal.descriptions.theme
14 14
function theme_cdm_feature_nodesTOC($featureNodes){
15 15

  
16 16
  $out .= '<ul>';
17
  
17

  
18 18
  foreach($featureNodes as $node){
19 19

  
20 20
    if(hasFeatureNodeDescriptionElements($node)){
......
26 26
      }
27 27
    }
28 28
  }
29
  
29

  
30 30
  $out .= '</ul>';
31 31
  return $out;
32 32
}
......
55 55
    //TODO display title and reference in case of multiple $mergedTrees -> theme
56 56
    $out .= theme('cdm_feature_nodes', $mTree->root->children, $taxon);
57 57
  }
58
  
58

  
59 59
  return $out;
60 60
}
61 61

  
......
92 92

  
93 93
  RenderHints::pushToRenderStack('feature_nodes');
94 94
  $gallery_settings = getGallerySettings(CDM_DATAPORTAL_DESCRIPTION_GALLERY_NAME);
95
  //Creating an array to place the description elements in 
96
  
95
  //Creating an array to place the description elements in
96

  
97 97
  foreach($mergedFeatureNodes as $node){
98 98

  
99 99
    if(hasFeatureNodeDescriptionElements($node)) {
......
204 204
        $block->content .= $gallery;
205 205
        $block->content .= theme('cdm_footnotes', $node->feature->uuid);
206 206
        $block->content .= theme('cdm_annotation_footnotes', $node->feature->uuid);
207
        
208
        
209
        
210
        // add anchor to subject        
207

  
208

  
209

  
210
        // add anchor to subject
211 211
        $block->subject = '<a name="'.$block->delta.'"></a>'.  $block->subject;
212
       	
213
  		
212

  
213

  
214 214
        $out .= theme('block', $block);
215
        
215

  
216 216
      }
217
    
218
      
219
      
220
      
217

  
218

  
219

  
220

  
221 221
    }
222
    
222

  
223 223
  }
224 224
  RenderHints::popFromRenderStack();
225 225
  return $out;
......
484 484
        $outArray[] = theme('cdm_descriptionElementTextData', $descriptionElement, $asListElement, $descriptionElement->feature->uuid);
485 485
      }else if ($descriptionElement->class == 'CommonTaxonName') {
486 486
        $outArray[] = theme('cdm_descriptionElement_CommonTaxonName', $descriptionElement);
487
      }else {
487
      }else if ($descriptionElement->class == 'Uses') {
488
          $outArray[] = theme('cdm_descriptionElement_Uses', $descriptionElement);
489
        }else {
488 490
        $outArray[] = '<li>No method for rendering unknown description class: '.$descriptionElement->classType.'</li>';
489 491
      }
490 492
    }

Also available in: Unified diff