Project

General

Profile

Download (11.2 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_name' => array('variables' => array('feature_name' => NULL)),
78
      'cdm_feature_nodes' => array('variables' => array('mergedFeatureNodes' => NULL, 'taxon' => NULL)),
79
      'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
80
      'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
81
      'cdm_descriptionElementArray' => array('variables' => array(
82
          'elementArray' => array(),
83
          'feature' => NULL,
84
          'glue' => '',
85
          'sortArray' => FALSE,
86
          'enclosingHtml' => 'ul',
87
      )),
88
      'cdm_descriptionElement_CommonTaxonName' => array('render element' => 'element'),
89
      'cdm_descriptionElement_CategoricalData' => array('render element' => 'element'),
90
      'cdm_descriptionElement_IndividualsAssociation' => array('render element' => 'element'),
91
      'cdm_descriptionElement_TaxonInteraction' => array('render element' => 'element'),
92
      'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
93
      'cdm_descriptionElementTextData' => array('variables' => array(
94
          'element' => NULL,
95
          'asListElement' => NULL,
96
          'feature_uuid' => NULL,
97
      )),
98
      'cdm_common_names' => array('render element' => 'elements'),
99
      'cdm_descriptionElements' => array('variables' => array(
100
          'descriptionElements' => NULL,
101
          'feature' => NULL,
102
          'taxon_uuid' => NULL,
103
      )),
104
      'cdm_description_element_image_source' => array('variables' => array(
105
          'image_sources' => NULL,
106
          'asListElement' => NULL,
107
      )),
108
      'cdm_descriptionElement_Distribution' => array('variables' => array(
109
          'descriptionElements' => NULL,
110
          'enclosingTag' => 'span',
111
      )),
112
      'cdm_description_ordered_distributions' => array('variables' => array(
113
          'distribution_tree' => NULL,
114
      )),
115
      'cdm_IdentificationKey' => array('variables' => array(
116
          'identificationKey' => NULL,
117
          'doLinkToKeyPage' => TRUE,
118
          'showIdentificationKeyTitle' => TRUE,
119
      )),
120
      'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
121
      'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
122
      'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
123
      'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
124
      'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
125
      'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
126
      'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
127

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

    
190
      // Themes in cdm_dataportal.occurrence.theme.
191
      'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
192

    
193
      // Themes in cdm_dataportal.page.theme.
194
      'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
195
      'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
196
      'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
197
      'cdm_reference_page' => array('variables' => array('reference' => NULL)),
198
      'cdm_media_page' => array('variables' => array(
199
          'media' => NULL,
200
          'mediarepresentation_uuid' => FALSE,
201
          'partId' => FALSE,
202
      )),
203
      'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
204
      'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
205

    
206
      // Themes in cdm_dataportal.references.theme.
207
      'cdm_reference_pager' => array('variables' => array(
208
          'referencePager' => NULL,
209
          'path' => NULL,
210
          'parameters' => array(),
211
      )),
212
      'cdm_reference' => array('variables' => array(
213
          'reference' => NULL,
214
          'microReference' => NULL,
215
          'doLink' => FALSE,
216
          'referenceStyle' => NULL,
217
      )),
218
      'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
219

    
220
      // Themes in cdm_dataportal.taxon.theme.
221
      'cdm_search_results' => array('variables' => array(
222
          'pager' => NULL,
223
          'path' => NULL
224
      )),
225
      'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
226
      'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
227
      'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
228
      'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
229

    
230
      // Themes in cdm_dataportal.bibliography.theme.
231
      'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
232

    
233
      // Themes in includes/pre-drupal8.inc
234
      'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
235
  );
236
}
(10-10/10)