Project

General

Profile

« Previous | Next » 

Revision 38a98e54

Added by Andreas Kohlbecker about 3 years ago

ref #6866 showing unit annotations (AnnotationsAndSources supports annotations a content now)

View differences:

modules/cdm_dataportal/classes/footnotemanager.php
103 103
    return $out;
104 104
  }
105 105

  
106
  /**
107
   * Provides the content of foot notes
108
   *
109
   * @param string $footnoteListKey
110
   *
111
   * @return array
112
   *   The content of foot notes or an empty array if the $footnoteListKey is
113
   *   blocked
114
   */
115
  public static function footnoteListContents($footnoteListKey) {
116

  
117
    if(self::isBlockedFootnoteListKey($footnoteListKey)){
118
      // the footnote key is blocked, don't render it!
119
      return [];
120
    }
121
    $content_list = [];
122
    if (array_key_exists($footnoteListKey, self::$fnstore)) {
123
      foreach (self::$fnstore[$footnoteListKey] as $fn) {
124
        $content_list[] = $fn->getContent();
125
      }
126
    }
127
    return $content_list;
128
  }
129

  
106 130
  /**
107 131
   * Add a new footnote.
108 132
   *

Also available in: Unified diff