Project

General

Profile

« Previous | Next » 

Revision 6f5c7f2a

Added by Andreas Kohlbecker over 9 years ago

fixing #1933 (DescriptionElementBases do not show annotation footnotes in flora malesiana portal)

View differences:

7.x/modules/cdm_dataportal/theme/theme_registry.inc
25 25
 */
26 26
function cdm_dataportal_theme() {
27 27
  return array(
28
      // Themes in help.php.
29
      'cdm_dataportal_admin_config_cdm_dataportal_general' => array('variables' => array()),
30
      'cdm_dataportal_admin_config_cdm_dataportal_geo' => array('variables' => array()),
31
      'cdm_dataportal_admin_config_cdm_dataportal_layout' => array('variables' => array()),
32
      'cdm_dataportal_admin_config_cdm_dataportal_cachesite' => array('variables' => array()),
33
      'cdm_dataportal_admin_config_more_help_link' => array('variables' => array()),
28
    // Themes in help.php.
29
    'cdm_dataportal_admin_config_cdm_dataportal_general' => array('variables' => array()),
30
    'cdm_dataportal_admin_config_cdm_dataportal_geo' => array('variables' => array()),
31
    'cdm_dataportal_admin_config_cdm_dataportal_layout' => array('variables' => array()),
32
    'cdm_dataportal_admin_config_cdm_dataportal_cachesite' => array('variables' => array()),
33
    'cdm_dataportal_admin_config_more_help_link' => array('variables' => array()),
34 34

  
35
      // Themes in settings.php.
36
      'checkboxes_preferred' => array('render element' => 'element'),
37
      'radio_options_suffix' => array('render element' => 'element'),
35
    // Themes in settings.php.
36
    'checkboxes_preferred' => array('render element' => 'element'),
37
    'radio_options_suffix' => array('render element' => 'element'),
38 38

  
39
      // Themes in cdm_dataportal.common.theme.
40
      'cdm_taggedtext2html' => array('variables' => array(
41
          'taggedtxt' => array(),
42
          'tag' => 'span',
43
          'glue' => ' ',
44
          'skiptags' => array(),
45
      )),
46
      'cdm_annotations_as_footnotekeys' => array('variables' => array('cdmBase_list' => NULL, 'footnote_list_key' => NULL)),
47
      'cdm_annotation_footnotes' => array('variables' => array('footnoteListKey' => NULL, 'enclosingTag' => 'span')),
48
      'cdm_annotation_content' => array('variables' => array('AnnotationTO' => NULL)),
49
      'cdm_list_of_annotations' => array('variables' => array('annotationElements' => NULL)),
50
      'cdm_footnote_key' => array('variables' => array(
51
          'footnoteKey' => NULL,
52
          'separator' => '',
53
          'highlightable' => TRUE,
54
          'separator_off' => FALSE,
55
      )),
56
      'cdm_footnote' => array('variables' => array('footnoteKey' => NULL, 'footnoteText' => NULL, 'enclosing_tag' => 'span')),
57
      'cdm_footnotes' => array('variables' => array(
58
          'footnoteListKey' => NULL,
59
          'enclosingTag' => 'span',
60
      )),
61
      'cdm_annotations' => array('variables' => array('annotations' => NULL, 'enclosingTag' => 'span')),
62
      'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
63
      'cdm_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
64
      'cdm_pager_link' => array('variables' => array(
65
          'text' => NULL,
66
          'linkIndex' => NULL,
67
          'pager' => NULL,
68
          'path' => NULL,
69
          'parameters' => array(),
70
          'attributes' => NULL,
71
      )),
72
      'cdm_back_to_search_result_button' => array('variables' => array()),
73
      'cdm_back_to_image_gallery_button' => array('variables' => array()),
74
      'cdm_print_button' => array('variables' => array()),
39
    // Themes in cdm_dataportal.common.theme.
40
    'cdm_taggedtext2html' => array('variables' => array(
41
        'taggedtxt' => array(),
42
        'tag' => 'span',
43
        'glue' => ' ',
44
        'skiptags' => array(),
45
    )),
46
    'cdm_annotations_as_footnotekeys' => array('variables' => array('cdmBase_list' => NULL, 'footnote_list_key' => NULL)),
47
    'cdm_annotation_footnotes' => array('variables' => array('footnoteListKey' => NULL, 'enclosingTag' => 'span')),
48
    'cdm_annotation_content' => array('variables' => array('AnnotationTO' => NULL)),
49
    'cdm_list_of_annotations' => array('variables' => array('annotationElements' => NULL)),
50
    'cdm_footnote_key' => array('variables' => array(
51
        'footnoteKey' => NULL,
52
        'separator' => '',
53
        'highlightable' => TRUE,
54
        'separator_off' => FALSE,
55
    )),
56
    'cdm_footnote' => array('variables' => array('footnoteKey' => NULL, 'footnoteText' => NULL, 'enclosing_tag' => 'span')),
57
    'cdm_footnotes' => array('variables' => array(
58
        'footnoteListKey' => NULL,
59
        'enclosingTag' => 'span',
60
    )),
61
    'cdm_annotations' => array('variables' => array('annotations' => NULL, 'enclosingTag' => 'span')),
62
    'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
63
    'cdm_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
64
    'cdm_pager_link' => array('variables' => array(
65
        'text' => NULL,
66
        'linkIndex' => NULL,
67
        'pager' => NULL,
68
        'path' => NULL,
69
        'parameters' => array(),
70
        'attributes' => NULL,
71
    )),
72
    'cdm_back_to_search_result_button' => array('variables' => array()),
73
    'cdm_back_to_image_gallery_button' => array('variables' => array()),
74
    'cdm_print_button' => array('variables' => array()),
75 75

  
76
      // Themes in cdm_dataportal.descriptions.theme.
77
      'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
78
      'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
79
      'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
80
      'cdm_descriptionElement_CategoricalData' => array('render element' => 'element'),
81
      'cdm_descriptionElement_IndividualsAssociation' => array('render element' => 'element'),
82
      'cdm_descriptionElement_TaxonInteraction' => array('render element' => 'element'),
83
      'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
84
      'cdm_descriptionElementTextData' => array('variables' => array(
85
          'element' => NULL,
86
          'asListElement' => NULL,
87
          'feature_uuid' => NULL,
88
      )),
89
      'cdm_common_names' => array('render element' => 'elements', 'variables' => array('feature' => null) ),
90
      'cdm_descriptionElements' => array('variables' => array(
91
          'descriptionElements' => NULL,
92
          'feature' => NULL,
93
          'taxon_uuid' => NULL,
94
      )),
95
      'cdm_description_element_image_source' => array('variables' => array(
96
          'image_sources' => NULL,
97
          'asListElement' => NULL,
98
      )),
99
      'cdm_descriptionElement_Distribution' => array('variables' => array(
100
          'descriptionElements' => NULL,
101
          'enclosingTag' => 'span',
102
      )),
103
      'cdm_description_ordered_distributions' => array('variables' => array(
104
          'distribution_tree' => NULL,
105
      )),
106
      'cdm_IdentificationKey' => array('variables' => array(
107
          'identificationKey' => NULL,
108
          'doLinkToKeyPage' => TRUE,
109
          'showIdentificationKeyTitle' => TRUE,
110
      )),
111
      'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
112
      'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
113
      'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
114
      'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
115
      'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
116
      'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
117
      'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
76
    // Themes in cdm_dataportal.descriptions.theme.
77
    'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
78
    'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
79
    'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
80
    'cdm_descriptionElement_CategoricalData' => array('render element' => 'element'),
81
    'cdm_descriptionElement_IndividualsAssociation' => array('render element' => 'element'),
82
    'cdm_descriptionElement_TaxonInteraction' => array('render element' => 'element'),
83
    'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
84
    'cdm_descriptionElementTextData' => array('variables' => array(
85
        'element' => NULL,
86
        'asListElement' => NULL,
87
        'feature_uuid' => NULL,
88
    )),
89
    'cdm_common_names' => array('render element' => 'elements', 'variables' => array('feature' => null) ),
90
    'cdm_description_element_image_source' => array('variables' => array(
91
        'image_sources' => NULL,
92
        'asListElement' => NULL,
93
    )),
94
    'cdm_descriptionElement_Distribution' => array('variables' => array(
95
        'descriptionElements' => NULL,
96
        'enclosingTag' => 'span',
97
    )),
98
    'cdm_description_ordered_distributions' => array('variables' => array(
99
        'distribution_tree' => NULL,
100
    )),
101
    'cdm_IdentificationKey' => array('variables' => array(
102
        'identificationKey' => NULL,
103
        'doLinkToKeyPage' => TRUE,
104
        'showIdentificationKeyTitle' => TRUE,
105
    )),
106
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
107
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
108
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
109
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
110
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
111
    'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
112
    'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
118 113

  
119
      // Themes in cdm_dataportal.media.theme.
120
      'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
121
      'cdm_mediaTypeTerm' => array('variables' => array('feature' => NULL, 'mediaUrl' => FALSE)),
122
      'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
123
      'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
124
      'cdm_media_mime_text' => array('variables' => array('representation' => NULL, 'feature' => NULL)),
125
      'cdm_media_caption' => array('variables' => array(
126
          'media' => NULL,
127
          'elements' => array('title', 'description', 'artist', 'location', 'rights'),
128
      )),
129
      'cdm_media_gallerie' => array('variables' => array(
130
          'mediaList' => NULL,
131
          'galleryName' => NULL,
132
          'maxExtend' => 150,
133
          'cols' => 4,
134
          'maxRows' => FALSE,
135
          'captionElements' => array('title'),
136
          'mediaLinkType' => 'LIGHTBOX',
137
          'alternativeMediaUri' => NULL,
138
          'galleryLinkUri' => NULL,
139
          'showCaption' => TRUE,
140
      )),
141
      'cdm_media_gallerie_image' => array('variables' => array(
142
          'mediaRepresentationPart' => NULL,
143
          'maxExtend' => NULL,
144
          'addPassePartout' => FALSE,
145
          'attributes' => NULL,
146
      )),
147
      'cdm_media_gallerie_application' => array('variables' => array(
148
          'mediaRepresentationPart' => NULL,
149
          'maxExtend' => NULL,
150
          'addPassePartout' => FALSE,
151
          'attributes' => NULL,
152
      )),
153
      'cdm_media_gallerie_text' => array('variables' => array(
154
          'mediaRepresentationPart' => NULL,
155
          'maxExtend' => NULL,
156
          'addPassePartout' => FALSE,
157
          'attributes' => NULL,
158
      )),
159
      'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
160
      // Themes in cdm_dataportal.name.theme.
161
      'cdm_taxonName' => array('variables' => array(
162
          'taxonName' => NULL,
163
          'nameLink' => NULL,
164
          'refenceLink' => NULL,
165
          'show_annotations' => TRUE,
166
          'is_type_designation' => FALSE,
167
          'skiptags' => array(),
168
      )),
169
      'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
170
      'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
171
      'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
172
      'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
173
      'cdm_homotypicSynonymyGroup' => array('variables' => array(
174
          'synonymList' => NULL,
175
          'accepted_taxon_name_uuid' => NULL,
176
          'prependedSynonyms' => array(),
177
      )),
178
      'get_nameRenderTemplate' => array('variables' => array()),
179
      'get_partDefinition' => array('variables' => array()),
114
    // Themes in cdm_dataportal.media.theme.
115
    'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
116
    'cdm_mediaTypeTerm' => array('variables' => array('feature' => NULL, 'mediaUrl' => FALSE)),
117
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
118
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
119
    'cdm_media_mime_text' => array('variables' => array('representation' => NULL, 'feature' => NULL)),
120
    'cdm_media_caption' => array('variables' => array(
121
        'media' => NULL,
122
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
123
    )),
124
    'cdm_media_gallerie' => array('variables' => array(
125
        'mediaList' => NULL,
126
        'galleryName' => NULL,
127
        'maxExtend' => 150,
128
        'cols' => 4,
129
        'maxRows' => FALSE,
130
        'captionElements' => array('title'),
131
        'mediaLinkType' => 'LIGHTBOX',
132
        'alternativeMediaUri' => NULL,
133
        'galleryLinkUri' => NULL,
134
        'showCaption' => TRUE,
135
    )),
136
    'cdm_media_gallerie_image' => array('variables' => array(
137
        'mediaRepresentationPart' => NULL,
138
        'maxExtend' => NULL,
139
        'addPassePartout' => FALSE,
140
        'attributes' => NULL,
141
    )),
142
    'cdm_media_gallerie_application' => array('variables' => array(
143
        'mediaRepresentationPart' => NULL,
144
        'maxExtend' => NULL,
145
        'addPassePartout' => FALSE,
146
        'attributes' => NULL,
147
    )),
148
    'cdm_media_gallerie_text' => array('variables' => array(
149
        'mediaRepresentationPart' => NULL,
150
        'maxExtend' => NULL,
151
        'addPassePartout' => FALSE,
152
        'attributes' => NULL,
153
    )),
154
    'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
155
    // Themes in cdm_dataportal.name.theme.
156
    'cdm_taxonName' => array('variables' => array(
157
        'taxonName' => NULL,
158
        'nameLink' => NULL,
159
        'refenceLink' => NULL,
160
        'show_annotations' => TRUE,
161
        'is_type_designation' => FALSE,
162
        'skiptags' => array(),
163
    )),
164
    'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
165
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
166
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
167
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
168
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
169
        'synonymList' => NULL,
170
        'accepted_taxon_name_uuid' => NULL,
171
        'prependedSynonyms' => array(),
172
    )),
173
    'get_nameRenderTemplate' => array('variables' => array()),
174
    'get_partDefinition' => array('variables' => array()),
180 175

  
181
      // Themes in cdm_dataportal.occurrence.theme.
182
      'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
176
    // Themes in cdm_dataportal.occurrence.theme.
177
    'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
183 178

  
184
      // Themes in cdm_dataportal.page.theme.
185
      'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
186
      'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
187
      'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
188
      'cdm_reference_page' => array('variables' => array('reference' => NULL)),
189
      'cdm_media_page' => array('variables' => array(
190
          'media' => NULL,
191
          'mediarepresentation_uuid' => FALSE,
192
          'partId' => FALSE,
193
      )),
194
      'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
195
      'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
179
    // Themes in cdm_dataportal.page.theme.
180
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
181
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
182
    'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
183
    'cdm_reference_page' => array('variables' => array('reference' => NULL)),
184
    'cdm_media_page' => array('variables' => array(
185
        'media' => NULL,
186
        'mediarepresentation_uuid' => FALSE,
187
        'partId' => FALSE,
188
    )),
189
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
190
    'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
196 191

  
197
      // Themes in cdm_dataportal.references.theme.
198
      'cdm_reference_pager' => array('variables' => array(
199
          'referencePager' => NULL,
200
          'path' => NULL,
201
          'parameters' => array(),
202
      )),
203
      'cdm_reference' => array('variables' => array(
204
          'reference' => NULL,
205
          'microReference' => NULL,
206
          'doLink' => FALSE,
207
          'referenceStyle' => NULL,
208
      )),
209
      'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
192
    // Themes in cdm_dataportal.references.theme.
193
    'cdm_reference_pager' => array('variables' => array(
194
        'referencePager' => NULL,
195
        'path' => NULL,
196
        'parameters' => array(),
197
    )),
198
    'cdm_reference' => array('variables' => array(
199
        'reference' => NULL,
200
        'microReference' => NULL,
201
        'doLink' => FALSE,
202
        'referenceStyle' => NULL,
203
    )),
204
    'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
210 205

  
211
      // Themes in cdm_dataportal.taxon.theme.
212
      'cdm_search_results' => array('variables' => array(
213
          'pager' => NULL,
214
          'path' => NULL
215
      )),
216
      'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
217
      'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
218
      'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
219
      'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
206
    // Themes in cdm_dataportal.taxon.theme.
207
    'cdm_search_results' => array('variables' => array(
208
        'pager' => NULL,
209
        'path' => NULL
210
    )),
211
    'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
212
    'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
213
    'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
214
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
220 215

  
221
      // Themes in cdm_dataportal.bibliography.theme.
222
      'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
216
    // Themes in cdm_dataportal.bibliography.theme.
217
    'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
223 218

  
224
      // Themes in includes/pre-drupal8.inc
225
      'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
219
    // Themes in includes/pre-drupal8.inc
220
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
226 221
  );
227 222
}

Also available in: Unified diff