Project

General

Profile

Download (11.8 KB) Statistics
| Branch: | Tag: | Revision:
1
<?php
2
/**
3
 * @file
4
 * Only contains the hook_theme() implementation.
5
 *
6
 * @copyright
7
 *   (C) 2007-2012 EDIT
8
 *   European Distributed Institute of Taxonomy
9
 *   http://www.e-taxonomy.eu
10
 *
11
 *   The contents of this module are subject to the Mozilla
12
 *   Public License Version 1.1.
13
 * @see http://www.mozilla.org/MPL/MPL-1.1.html
14
 *
15
 * @author
16
 *   - Andreas Kohlbecker <a.kohlbecker@BGBM.org>
17
 */
18

    
19
/**
20
 * Implements hook_theme().
21
 *
22
 * Registering themes with a theme hook is needed since Drupal 6.
23
 *
24
 * @author W. Addink <w.addink@eti.uva.nl>
25
 */
26
function cdm_dataportal_theme() {
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()),
34

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

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

    
74
      // Themes in cdm_dataportal.descriptions.theme.
75
      'cdm_feature_nodesTOC' => array('variables' => array('featureNodes' => NULL)),
76
      'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
77
      'cdm_featureTrees' => array('variables' => array('mergedTrees' => NULL, 'taxon' => NULL)),
78
      'cdm_featureTreeTOCs' => array('variables' => array('mergedTrees' => NULL)),
79
      'cdm_feature_nodes' => array('variables' => array('mergedFeatureNodes' => NULL, 'taxon' => NULL)),
80
      'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
81
      'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
82
      'cdm_descriptionElementArray' => array('variables' => array(
83
          'elementArray' => array(),
84
          'feature' => NULL,
85
          'glue' => '',
86
          'sortArray' => FALSE,
87
          'enclosingHtml' => 'ul',
88
      )),
89
      'cdm_descriptionElement_CommonTaxonName' => array('render element' => 'element'),
90
      'cdm_descriptionElement_CategoricalData' => array('render element' => 'element'),
91
      'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
92
      'cdm_descriptionElementTextData' => array('variables' => array(
93
          'element' => NULL,
94
          'asListElement' => NULL,
95
          'feature_uuid' => NULL,
96
      )),
97
      'cdm_common_names' => array('render element' => 'elements'),
98
      'cdm_descriptionElements' => array('variables' => array(
99
          'descriptionElements' => NULL,
100
          'featureUuid' => NULL,
101
          'taxon_uuid' => NULL,
102
      )),
103
      'cdm_description_element_image_source' => array('variables' => array(
104
          'image_sources' => NULL,
105
          'asListElement' => NULL,
106
      )),
107
      'cdm_descriptionElementDistribution' => array('variables' => array(
108
          'descriptionElements' => NULL,
109
          'enclosingTag' => 'span',
110
      )),
111
      'cdm_description_ordered_distributions' => array('variables' => array(
112
          'taxon_uuid' => NULL,
113
          'descriptionElements' => NULL,
114
      )),
115
      'cdm_distribution_map' => array('variables' => array('taxon' => NULL)),
116
      'cdm_IdentificationKey' => array('variables' => array(
117
          'identificationKey' => NULL,
118
          'doLinkToKeyPage' => TRUE,
119
          'showIdentificationKeyTitle' => TRUE,
120
      )),
121
      'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
122
      'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
123
      'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
124
      'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
125
      'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
126
      'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
127
      'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
128

    
129
      // Themes in cdm_dataportal.media.theme.
130
      'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
131
      'cdm_mediaTypeTerm' => array('variables' => array('feature' => NULL, 'mediaUrl' => FALSE)),
132
      'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
133
      'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
134
      'cdm_media_mime_text' => array('variables' => array('representation' => NULL, 'feature' => NULL)),
135
      'cdm_media_caption' => array('variables' => array(
136
          'media' => NULL,
137
          'elements' => array('title', 'description', 'artist', 'location', 'rights'),
138
      )),
139
      'cdm_media_gallerie' => array('variables' => array(
140
          'mediaList' => NULL,
141
          'galleryName' => NULL,
142
          'maxExtend' => 150,
143
          'cols' => 4,
144
          'maxRows' => FALSE,
145
          'captionElements' => array('title'),
146
          'mediaLinkType' => 'LIGHTBOX',
147
          'alternativeMediaUri' => NULL,
148
          'galleryLinkUri' => NULL,
149
          'showCaption' => TRUE,
150
      )),
151
      'cdm_media_gallerie_image' => array('variables' => array(
152
          'mediaRepresentationPart' => NULL,
153
          'maxExtend' => NULL,
154
          'addPassePartout' => FALSE,
155
          'attributes' => NULL,
156
      )),
157
      'cdm_media_gallerie_application' => array('variables' => array(
158
          'mediaRepresentationPart' => NULL,
159
          'maxExtend' => NULL,
160
          'addPassePartout' => FALSE,
161
          'attributes' => NULL,
162
      )),
163
      'cdm_media_gallerie_text' => array('variables' => array(
164
          'mediaRepresentationPart' => NULL,
165
          'maxExtend' => NULL,
166
          'addPassePartout' => FALSE,
167
          'attributes' => NULL,
168
      )),
169
      'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
170
      'cdm_preferredImage' => array('variables' => array(
171
          'media' => NULL,
172
          'defaultRepresentationPart' => NULL,
173
          'imageMaxExtend' => NULL,
174
          'parameters' => '',
175
      )),
176

    
177
      // Themes in cdm_dataportal.name.theme.
178
      'cdm_taxonName' => array('variables' => array(
179
          'taxonName' => NULL,
180
          'nameLink' => NULL,
181
          'refenceLink' => NULL,
182
          'show_annotations' => TRUE,
183
          'is_type_designation' => FALSE,
184
          'skiptags' => array(),
185
      )),
186
      'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
187
      'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
188
      'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
189
      'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
190
      'cdm_homotypicSynonymyGroup' => array('variables' => array(
191
          'synonymList' => NULL,
192
          'accepted_taxon_uuid' => NULL,
193
          'prependedSynonyms' => array(),
194
      )),
195
      'get_nameRenderTemplate' => array('variables' => array()),
196
      'get_partDefinition' => array('variables' => array()),
197

    
198
      // Themes in cdm_dataportal.occurrence.theme.
199
      'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
200

    
201
      // Themes in cdm_dataportal.page.theme.
202
      'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL, 'uuid' => NULL)),
203
      'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
204
      'cdm_taxon_page' => array('variables' => array('taxon' => NULL, 'page_part' => 'description')),
205
      'cdm_taxon_page_profile' => array('variables' => array(
206
          'taxon' => NULL,
207
          'mergedTrees' => NULL,
208
          'media' => NULL,
209
          'hideImages' => FALSE,
210
      )),
211
      'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
212
      'cdm_reference_page' => array('variables' => array('reference' => NULL)),
213
      'cdm_media_page' => array('variables' => array(
214
          'media' => NULL,
215
          'mediarepresentation_uuid' => FALSE,
216
          'partId' => FALSE,
217
      )),
218
      'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
219
      'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
220

    
221
      // Themes in cdm_dataportal.references.theme.
222
      'cdm_reference_pager' => array('variables' => array(
223
          'referencePager' => NULL,
224
          'path' => NULL,
225
          'parameters' => array(),
226
      )),
227
      'cdm_reference' => array('variables' => array(
228
          'reference' => NULL,
229
          'microReference' => NULL,
230
          'doLink' => FALSE,
231
          'referenceStyle' => NULL,
232
      )),
233
      'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
234

    
235
      // Themes in cdm_dataportal.taxon.theme.
236
      'cdm_search_results' => array('variables' => array(
237
          'pager' => NULL,
238
          'path' => NULL,
239
          'query_parameters' => NULL,
240
      )),
241
      'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
242
      'cdm_acceptedFor' => array('variables' => array()),
243
      'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
244
      'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
245

    
246
      // Themes in cdm_dataportal.bibliography.theme.
247
      'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
248

    
249
      // Themes in includes/pre-drupal8.inc
250
      'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
251
  );
252
}
(10-10/10)