1 |
5611d467
|
Andreas Kohlbecker
|
<?php
|
2 |
94ab8d4a
|
Andreas Kohlbecker
|
/**
|
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 |
5611d467
|
Andreas Kohlbecker
|
* - Andreas Kohlbecker <a.kohlbecker@BGBM.org>
|
17 |
|
|
*/
|
18 |
94ab8d4a
|
Andreas Kohlbecker
|
|
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 |
6f5c7f2a
|
Andreas Kohlbecker
|
// 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 |
94ab8d4a
|
Andreas Kohlbecker
|
|
35 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in settings.php.
|
36 |
|
|
'checkboxes_preferred' => array('render element' => 'element'),
|
37 |
|
|
'radio_options_suffix' => array('render element' => 'element'),
|
38 |
94ab8d4a
|
Andreas Kohlbecker
|
|
39 |
6f5c7f2a
|
Andreas Kohlbecker
|
// 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 |
94ab8d4a
|
Andreas Kohlbecker
|
|
76 |
6f5c7f2a
|
Andreas Kohlbecker
|
// 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_descriptionElement_CategoricalData' => array('render element' => 'element'),
|
81 |
|
|
'cdm_descriptionElement_IndividualsAssociation' => array('render element' => 'element'),
|
82 |
|
|
'cdm_descriptionElement_TaxonInteraction' => array('render element' => 'element'),
|
83 |
|
|
'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
|
84 |
|
|
'cdm_descriptionElementTextData' => array('variables' => array(
|
85 |
|
|
'element' => NULL,
|
86 |
|
|
'asListElement' => NULL,
|
87 |
|
|
'feature_uuid' => NULL,
|
88 |
|
|
)),
|
89 |
|
|
'cdm_common_names' => array('render element' => 'elements', 'variables' => array('feature' => null) ),
|
90 |
|
|
'cdm_description_element_image_source' => array('variables' => array(
|
91 |
|
|
'image_sources' => NULL,
|
92 |
|
|
'asListElement' => NULL,
|
93 |
|
|
)),
|
94 |
|
|
'cdm_descriptionElement_Distribution' => array('variables' => array(
|
95 |
|
|
'descriptionElements' => NULL,
|
96 |
|
|
'enclosingTag' => 'span',
|
97 |
|
|
)),
|
98 |
|
|
'cdm_description_ordered_distributions' => array('variables' => array(
|
99 |
|
|
'distribution_tree' => NULL,
|
100 |
|
|
)),
|
101 |
|
|
'cdm_IdentificationKey' => array('variables' => array(
|
102 |
|
|
'identificationKey' => NULL,
|
103 |
|
|
'doLinkToKeyPage' => TRUE,
|
104 |
|
|
'showIdentificationKeyTitle' => TRUE,
|
105 |
|
|
)),
|
106 |
|
|
'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
|
107 |
|
|
'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
|
108 |
|
|
'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
|
109 |
|
|
'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
|
110 |
|
|
'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
|
111 |
|
|
'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
|
112 |
|
|
'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
|
113 |
94ab8d4a
|
Andreas Kohlbecker
|
|
114 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.media.theme.
|
115 |
|
|
'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
|
116 |
|
|
'cdm_mediaTypeTerm' => array('variables' => array('feature' => NULL, 'mediaUrl' => FALSE)),
|
117 |
|
|
'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
118 |
|
|
'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
119 |
|
|
'cdm_media_mime_text' => array('variables' => array('representation' => NULL, 'feature' => NULL)),
|
120 |
|
|
'cdm_media_caption' => array('variables' => array(
|
121 |
|
|
'media' => NULL,
|
122 |
|
|
'elements' => array('title', 'description', 'artist', 'location', 'rights'),
|
123 |
|
|
)),
|
124 |
|
|
'cdm_media_gallerie' => array('variables' => array(
|
125 |
|
|
'mediaList' => NULL,
|
126 |
|
|
'galleryName' => NULL,
|
127 |
|
|
'maxExtend' => 150,
|
128 |
|
|
'cols' => 4,
|
129 |
|
|
'maxRows' => FALSE,
|
130 |
|
|
'captionElements' => array('title'),
|
131 |
|
|
'mediaLinkType' => 'LIGHTBOX',
|
132 |
|
|
'alternativeMediaUri' => NULL,
|
133 |
|
|
'galleryLinkUri' => NULL,
|
134 |
|
|
'showCaption' => TRUE,
|
135 |
|
|
)),
|
136 |
|
|
'cdm_media_gallerie_image' => array('variables' => array(
|
137 |
|
|
'mediaRepresentationPart' => NULL,
|
138 |
|
|
'maxExtend' => NULL,
|
139 |
|
|
'addPassePartout' => FALSE,
|
140 |
|
|
'attributes' => NULL,
|
141 |
|
|
)),
|
142 |
|
|
'cdm_media_gallerie_application' => array('variables' => array(
|
143 |
|
|
'mediaRepresentationPart' => NULL,
|
144 |
|
|
'maxExtend' => NULL,
|
145 |
|
|
'addPassePartout' => FALSE,
|
146 |
|
|
'attributes' => NULL,
|
147 |
|
|
)),
|
148 |
|
|
'cdm_media_gallerie_text' => array('variables' => array(
|
149 |
|
|
'mediaRepresentationPart' => NULL,
|
150 |
|
|
'maxExtend' => NULL,
|
151 |
|
|
'addPassePartout' => FALSE,
|
152 |
|
|
'attributes' => NULL,
|
153 |
|
|
)),
|
154 |
|
|
'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
|
155 |
|
|
// Themes in cdm_dataportal.name.theme.
|
156 |
|
|
'cdm_taxonName' => array('variables' => array(
|
157 |
|
|
'taxonName' => NULL,
|
158 |
|
|
'nameLink' => NULL,
|
159 |
|
|
'refenceLink' => NULL,
|
160 |
|
|
'show_annotations' => TRUE,
|
161 |
|
|
'is_type_designation' => FALSE,
|
162 |
|
|
'skiptags' => array(),
|
163 |
|
|
)),
|
164 |
|
|
'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
|
165 |
|
|
'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
|
166 |
|
|
'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
|
167 |
|
|
'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
|
168 |
|
|
'cdm_homotypicSynonymyGroup' => array('variables' => array(
|
169 |
|
|
'synonymList' => NULL,
|
170 |
|
|
'accepted_taxon_name_uuid' => NULL,
|
171 |
|
|
'prependedSynonyms' => array(),
|
172 |
|
|
)),
|
173 |
|
|
'get_nameRenderTemplate' => array('variables' => array()),
|
174 |
|
|
'get_partDefinition' => array('variables' => array()),
|
175 |
94ab8d4a
|
Andreas Kohlbecker
|
|
176 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.occurrence.theme.
|
177 |
|
|
'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
|
178 |
94ab8d4a
|
Andreas Kohlbecker
|
|
179 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.page.theme.
|
180 |
|
|
'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
|
181 |
|
|
'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
|
182 |
|
|
'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
|
183 |
|
|
'cdm_reference_page' => array('variables' => array('reference' => NULL)),
|
184 |
|
|
'cdm_media_page' => array('variables' => array(
|
185 |
|
|
'media' => NULL,
|
186 |
|
|
'mediarepresentation_uuid' => FALSE,
|
187 |
|
|
'partId' => FALSE,
|
188 |
|
|
)),
|
189 |
|
|
'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
|
190 |
|
|
'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
|
191 |
94ab8d4a
|
Andreas Kohlbecker
|
|
192 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.references.theme.
|
193 |
|
|
'cdm_reference_pager' => array('variables' => array(
|
194 |
|
|
'referencePager' => NULL,
|
195 |
|
|
'path' => NULL,
|
196 |
|
|
'parameters' => array(),
|
197 |
|
|
)),
|
198 |
|
|
'cdm_reference' => array('variables' => array(
|
199 |
|
|
'reference' => NULL,
|
200 |
|
|
'microReference' => NULL,
|
201 |
|
|
'doLink' => FALSE,
|
202 |
|
|
'referenceStyle' => NULL,
|
203 |
|
|
)),
|
204 |
|
|
'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
|
205 |
94ab8d4a
|
Andreas Kohlbecker
|
|
206 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.taxon.theme.
|
207 |
|
|
'cdm_search_results' => array('variables' => array(
|
208 |
|
|
'pager' => NULL,
|
209 |
|
|
'path' => NULL
|
210 |
|
|
)),
|
211 |
|
|
'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
|
212 |
|
|
'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
|
213 |
|
|
'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
|
214 |
|
|
'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
|
215 |
94ab8d4a
|
Andreas Kohlbecker
|
|
216 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in cdm_dataportal.bibliography.theme.
|
217 |
|
|
'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
|
218 |
94ab8d4a
|
Andreas Kohlbecker
|
|
219 |
6f5c7f2a
|
Andreas Kohlbecker
|
// Themes in includes/pre-drupal8.inc
|
220 |
|
|
'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
|
221 |
94ab8d4a
|
Andreas Kohlbecker
|
);
|
222 |
|
|
}
|