Project

General

Profile

Download (11.7 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
      'radio_options_suffix' => array('render element' => 'element'),
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)),
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

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

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

    
193
      // Themes in cdm_dataportal.occurrence.theme.
194
      'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
195

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

    
216
      // Themes in cdm_dataportal.references.theme.
217
      'cdm_reference_pager' => array('variables' => array(
218
          'referencePager' => NULL,
219
          'path' => NULL,
220
          'parameters' => array(),
221
      )),
222
      'cdm_reference' => array('variables' => array(
223
          'reference' => NULL,
224
          'microReference' => NULL,
225
          'doLink' => FALSE,
226
          'referenceStyle' => NULL,
227
      )),
228
      'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
229

    
230
      // Themes in cdm_dataportal.taxon.theme.
231
      'cdm_search_results' => array('variables' => array(
232
          'pager' => NULL,
233
          'path' => NULL
234
      )),
235
      'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
236
      'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
237
      'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
238
      'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
239

    
240
      // Themes in cdm_dataportal.bibliography.theme.
241
      'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
242

    
243
      // Themes in includes/pre-drupal8.inc
244
      'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
245
  );
246
}
(10-10/10)