Project

General

Profile

« Previous | Next » 

Revision 9ece0f7b

Added by Andreas Kohlbecker over 3 years ago

ref #8543 refactoring cdm_footnotes to normal function

View differences:

modules/cdm_dataportal/classes/footnote.php
32 32
   * @todo please document this function.
33 33
   */
34 34
  public function doRender() {
35
    $variables = array(
36
      'footnoteKey' => $this->key,
37
      'footnoteText' => $this->object
38
    );
35

  
36
    $enclosing_tag = null;
39 37
    if(is_string($this->enclosing_tag)){
40
      $variables['enclosing_tag'] = $this->enclosing_tag;
38
      $enclosing_tag = $this->enclosing_tag;
41 39
    }
42
    return theme('cdm_footnote',
43
      $variables
44
    );
40

  
41
    return footnote_markup($this->key, $this->object, $enclosing_tag);
45 42
  }
46 43
}

Also available in: Unified diff