1 |
d2a09415
|
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 |
|
|
'checkboxes_preferred' => array('render element' => 'element'),
|
37 |
|
|
'radio_options_suffix' => array('render element' => 'element'),
|
38 |
|
|
|
39 |
|
|
// Themes in cdm_dataportal.common.theme.
|
40 |
|
|
'cdm_annotations_as_footnotekeys' => array('variables' => array('cdmBase_list' => NULL, 'footnote_list_key' => NULL)),
|
41 |
|
|
'cdm_annotation_footnotes' => array('variables' => array('footnoteListKey' => NULL, 'enclosingTag' => 'span')),
|
42 |
|
|
'cdm_annotation_content' => array('variables' => array('AnnotationTO' => NULL)),
|
43 |
|
|
'cdm_list_of_annotations' => array('variables' => array('annotationElements' => NULL)),
|
44 |
|
|
'cdm_footnote_key' => array('variables' => array(
|
45 |
|
|
'footnoteKey' => NULL,
|
46 |
|
|
'separator' => '',
|
47 |
|
|
'highlightable' => TRUE,
|
48 |
|
|
'separator_off' => FALSE,
|
49 |
|
|
)),
|
50 |
|
|
'cdm_footnote' => array('variables' => array('footnoteKey' => NULL, 'footnoteText' => NULL, 'enclosing_tag' => 'span')),
|
51 |
|
|
'cdm_footnotes' => array('variables' => array(
|
52 |
|
|
'footnoteListKey' => NULL,
|
53 |
|
|
'enclosingTag' => 'span',
|
54 |
|
|
)),
|
55 |
|
|
'cdm_annotations' => array('variables' => array('annotations' => NULL, 'enclosingTag' => 'span')),
|
56 |
|
|
'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
|
57 |
|
|
'cdm_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
|
58 |
|
|
'cdm_pager_link' => array('variables' => array(
|
59 |
|
|
'text' => NULL,
|
60 |
|
|
'linkIndex' => NULL,
|
61 |
|
|
'pager' => NULL,
|
62 |
|
|
'path' => NULL,
|
63 |
|
|
'parameters' => array(),
|
64 |
|
|
'attributes' => NULL,
|
65 |
|
|
)),
|
66 |
|
|
'cdm_back_to_search_result_button' => array('variables' => array()),
|
67 |
|
|
'cdm_back_to_image_gallery_button' => array('variables' => array()),
|
68 |
|
|
'cdm_print_button' => array('variables' => array()),
|
69 |
|
|
|
70 |
|
|
// Themes in cdm_dataportal.descriptions.theme.
|
71 |
|
|
'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
|
72 |
|
|
'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
|
73 |
|
|
'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
|
74 |
|
|
'cdm_IdentificationKey' => array('variables' => array(
|
75 |
|
|
'identificationKey' => NULL,
|
76 |
|
|
'doLinkToKeyPage' => TRUE,
|
77 |
|
|
'showIdentificationKeyTitle' => TRUE,
|
78 |
|
|
)),
|
79 |
|
|
'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
|
80 |
|
|
'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
|
81 |
|
|
'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
|
82 |
|
|
'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
|
83 |
|
|
'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
|
84 |
|
|
'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
|
85 |
|
|
'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
|
86 |
|
|
|
87 |
|
|
// Themes in cdm_dataportal.media.theme.
|
88 |
|
|
'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
|
89 |
|
|
'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
90 |
|
|
'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
91 |
|
|
'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
92 |
|
|
'cdm_media_caption' => array('variables' => array(
|
93 |
|
|
'media' => NULL,
|
94 |
|
|
'elements' => array('title', 'description', 'artist', 'location', 'rights'),
|
95 |
|
|
)),
|
96 |
|
|
'cdm_media_gallerie' => array('variables' => array(
|
97 |
|
|
'mediaList' => NULL,
|
98 |
|
|
'galleryName' => NULL,
|
99 |
|
|
'maxExtend' => 150,
|
100 |
|
|
'cols' => 4,
|
101 |
|
|
'maxRows' => FALSE,
|
102 |
|
|
'captionElements' => array('title'),
|
103 |
|
|
'mediaLinkType' => 'LIGHTBOX',
|
104 |
|
|
'alternativeMediaUri' => NULL,
|
105 |
|
|
'galleryLinkUri' => NULL,
|
106 |
|
|
'showCaption' => TRUE,
|
107 |
|
|
)),
|
108 |
|
|
'cdm_media_gallerie_image' => array('variables' => array(
|
109 |
|
|
'mediaRepresentationPart' => NULL,
|
110 |
|
|
'maxExtend' => NULL,
|
111 |
|
|
'addPassePartout' => FALSE,
|
112 |
|
|
'attributes' => NULL,
|
113 |
|
|
)),
|
114 |
|
|
'cdm_media_gallerie_application' => array('variables' => array(
|
115 |
|
|
'mediaRepresentationPart' => NULL,
|
116 |
|
|
'maxExtend' => NULL,
|
117 |
|
|
'addPassePartout' => FALSE,
|
118 |
|
|
'attributes' => NULL,
|
119 |
|
|
)),
|
120 |
|
|
'cdm_media_gallerie_text' => array('variables' => array(
|
121 |
|
|
'mediaRepresentationPart' => NULL,
|
122 |
|
|
'maxExtend' => NULL,
|
123 |
|
|
'addPassePartout' => FALSE,
|
124 |
|
|
'attributes' => NULL,
|
125 |
|
|
)),
|
126 |
|
|
'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
|
127 |
|
|
// Themes in cdm_dataportal.name.theme.
|
128 |
|
|
'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
|
129 |
|
|
'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
|
130 |
|
|
'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
|
131 |
|
|
'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
|
132 |
|
|
'cdm_homotypicSynonymyGroup' => array('variables' => array(
|
133 |
|
|
'synonymList' => NULL,
|
134 |
|
|
'accepted_taxon_name_uuid' => NULL,
|
135 |
|
|
'prependedSynonyms' => array(),
|
136 |
|
|
)),
|
137 |
|
|
'get_nameRenderTemplate' => array('variables' => array()),
|
138 |
|
|
'get_partDefinition' => array('variables' => array()),
|
139 |
|
|
|
140 |
|
|
// Themes in cdm_dataportal.occurrence.theme.
|
141 |
|
|
'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
|
142 |
|
|
|
143 |
|
|
// Themes in cdm_dataportal.page.theme.
|
144 |
|
|
'cdm_specimen_page_title' => array('variables' => array('specimen' => NULL)),
|
145 |
|
|
'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
|
146 |
|
|
'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
|
147 |
|
|
'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
|
148 |
|
|
'cdm_reference_page' => array('variables' => array('reference' => NULL)),
|
149 |
|
|
'cdm_media_page' => array('variables' => array(
|
150 |
|
|
'media' => NULL,
|
151 |
|
|
'mediarepresentation_uuid' => FALSE,
|
152 |
|
|
'partId' => FALSE,
|
153 |
|
|
)),
|
154 |
|
|
'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
|
155 |
|
|
'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
|
156 |
|
|
|
157 |
|
|
// Themes in cdm_dataportal.references.theme.
|
158 |
|
|
'cdm_reference' => array('variables' => array(
|
159 |
|
|
'reference' => NULL,
|
160 |
|
|
'microReference' => NULL,
|
161 |
|
|
'doLink' => FALSE,
|
162 |
|
|
'referenceStyle' => NULL,
|
163 |
|
|
)),
|
164 |
|
|
'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE, 'do_link_to_name_used_in_source' => FALSE)),
|
165 |
|
|
|
166 |
|
|
// Themes in cdm_dataportal.taxon.theme.
|
167 |
|
|
'cdm_search_results' => array('variables' => array(
|
168 |
|
|
'pager' => NULL,
|
169 |
|
|
'path' => NULL
|
170 |
|
|
)),
|
171 |
|
|
'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
|
172 |
|
|
|
173 |
|
|
// Themes in includes/pre-drupal8.inc
|
174 |
|
|
'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
|
175 |
|
|
);
|
176 |
|
|
}
|