1 |
94ab8d4a
|
Andreas Kohlbecker
|
<?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 |
3f485c6d
|
Andreas Kohlbecker
|
'checkboxes_preferred' => array('render element' => 'element'),
|
37 |
|
|
'radio_options_suffix' => array('render element' => 'element'),
|
38 |
94ab8d4a
|
Andreas Kohlbecker
|
|
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 |
4ae6064e
|
Andreas Kohlbecker
|
'cdm_annotations' => array('variables' => array('annotations' => NULL, 'enclosingTag' => 'span')),
|
62 |
|
|
'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
|
63 |
94ab8d4a
|
Andreas Kohlbecker
|
'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 |
|
|
'cdm_preferredImage' => array('variables' => array(
|
173 |
|
|
'media' => NULL,
|
174 |
|
|
'defaultRepresentationPart' => NULL,
|
175 |
|
|
'imageMaxExtend' => NULL,
|
176 |
|
|
'parameters' => '',
|
177 |
|
|
)),
|
178 |
|
|
|
179 |
|
|
// Themes in cdm_dataportal.name.theme.
|
180 |
|
|
'cdm_taxonName' => array('variables' => array(
|
181 |
|
|
'taxonName' => NULL,
|
182 |
|
|
'nameLink' => NULL,
|
183 |
|
|
'refenceLink' => NULL,
|
184 |
|
|
'show_annotations' => TRUE,
|
185 |
|
|
'is_type_designation' => FALSE,
|
186 |
|
|
'skiptags' => array(),
|
187 |
|
|
)),
|
188 |
|
|
'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
|
189 |
|
|
'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
|
190 |
|
|
'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
|
191 |
|
|
'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
|
192 |
|
|
'cdm_homotypicSynonymyGroup' => array('variables' => array(
|
193 |
|
|
'synonymList' => NULL,
|
194 |
|
|
'accepted_taxon_uuid' => NULL,
|
195 |
|
|
'prependedSynonyms' => array(),
|
196 |
|
|
)),
|
197 |
0f5f1c12
|
Andreas Kohlbecker
|
'get_nameRenderTemplate' => array('variables' => array()),
|
198 |
|
|
'get_partDefinition' => array('variables' => array()),
|
199 |
94ab8d4a
|
Andreas Kohlbecker
|
|
200 |
|
|
// Themes in cdm_dataportal.occurrence.theme.
|
201 |
|
|
'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
|
202 |
|
|
|
203 |
|
|
// Themes in cdm_dataportal.page.theme.
|
204 |
8cf9238f
|
Andreas Kohlbecker
|
'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
|
205 |
94ab8d4a
|
Andreas Kohlbecker
|
'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
|
206 |
|
|
'cdm_taxon_page' => array('variables' => array('taxon' => NULL, 'page_part' => 'description')),
|
207 |
|
|
'cdm_taxon_page_profile' => array('variables' => array(
|
208 |
|
|
'taxon' => NULL,
|
209 |
|
|
'mergedTrees' => NULL,
|
210 |
|
|
'media' => NULL,
|
211 |
|
|
'hideImages' => FALSE,
|
212 |
|
|
)),
|
213 |
|
|
'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
|
214 |
|
|
'cdm_reference_page' => array('variables' => array('reference' => NULL)),
|
215 |
|
|
'cdm_media_page' => array('variables' => array(
|
216 |
|
|
'media' => NULL,
|
217 |
|
|
'mediarepresentation_uuid' => FALSE,
|
218 |
|
|
'partId' => FALSE,
|
219 |
|
|
)),
|
220 |
|
|
'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
|
221 |
|
|
'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
|
222 |
|
|
|
223 |
|
|
// Themes in cdm_dataportal.references.theme.
|
224 |
|
|
'cdm_reference_pager' => array('variables' => array(
|
225 |
|
|
'referencePager' => NULL,
|
226 |
|
|
'path' => NULL,
|
227 |
|
|
'parameters' => array(),
|
228 |
|
|
)),
|
229 |
|
|
'cdm_reference' => array('variables' => array(
|
230 |
|
|
'reference' => NULL,
|
231 |
|
|
'microReference' => NULL,
|
232 |
|
|
'doLink' => FALSE,
|
233 |
|
|
'referenceStyle' => NULL,
|
234 |
|
|
)),
|
235 |
|
|
'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
|
236 |
|
|
|
237 |
|
|
// Themes in cdm_dataportal.taxon.theme.
|
238 |
|
|
'cdm_search_results' => array('variables' => array(
|
239 |
|
|
'pager' => NULL,
|
240 |
34dd7be9
|
Andreas Kohlbecker
|
'path' => NULL
|
241 |
94ab8d4a
|
Andreas Kohlbecker
|
)),
|
242 |
|
|
'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
|
243 |
|
|
'cdm_acceptedFor' => array('variables' => array()),
|
244 |
61b6ee11
|
Andreas Kohlbecker
|
'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
|
245 |
94ab8d4a
|
Andreas Kohlbecker
|
'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
|
246 |
|
|
|
247 |
|
|
// Themes in cdm_dataportal.bibliography.theme.
|
248 |
|
|
'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
|
249 |
|
|
|
250 |
|
|
// Themes in includes/pre-drupal8.inc
|
251 |
|
|
'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
|
252 |
|
|
);
|
253 |
|
|
}
|