Project

General

Profile

Download (11.1 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, '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

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

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

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

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

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

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

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

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