Project

General

Profile

« Previous | Next » 

Revision f0df1f96

Added by Francisco Revilla over 13 years ago

footnotes changes, related with ticket #1984

View differences:

modules/cdm_dataportal/theme/cdm_dataportal.common.theme
109 109
 * TODO it should be configurable which objects can be annotated as this might differ in dataportals
110 110
 *
111 111
 */
112
function theme_cdm_annotations_as_footnotekeys($cdmBase){
113
	$footNoteKeys = cdm_annotations_as_footnotekeys($cdmBase);
112
function theme_cdm_annotations_as_footnotekeys($cdmBase, $footnote_list_key = array()){
113
	$footNoteKeys = cdm_annotations_as_footnotekeys($cdmBase, $footnote_list_key);
114 114
	foreach($footNoteKeys as $a){
115 115
	   //$out .=  theme('cdm_footnote_key', $a, $a->footnoteListKey, (isset($out)? ',' : ''));
116 116
	   $out .=  theme('cdm_footnote_key', $a, (isset($out)? ',' : ''));
......
168 168

  
169 169
/* ============================ footnotes ============================= */
170 170

  
171
function theme_cdm_footnote_key($footnoteKey, $separator = '', $highlightable=true){
171
function theme_cdm_footnote_key($footnoteKey, $separator = '', $highlightable=true, $separator_off = false){
172 172
	if (!$footnoteKey->footnoteListKey){
173 173
		return ''; 	  
174 174
	}
175
	if ($separator_off){
176
		$separator = '';
177
	}
175 178
  $out = '<span class="footnote-key footnote-key-'.$footnoteKey->keyStr.' member-of-footnotes-'.$footnoteKey->footnoteListKey.'">'.$separator
176 179
        .'<a href="#footnote-'.$footnoteKey->keyStr.'">'.$footnoteKey->keyStr.'</a>'
177 180
        .'</span>';

Also available in: Unified diff