Project

General

Profile

Download (10.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, '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_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_common_names' => array('render element' => 'elements', 'variables' => array('feature' => null) ),
85
    'cdm_description_element_image_source' => array('variables' => array(
86
        'image_sources' => NULL,
87
        'asListElement' => NULL,
88
    )),
89
    'cdm_descriptionElement_Distribution' => array('variables' => array(
90
        'descriptionElements' => NULL,
91
        'enclosingTag' => 'span',
92
    )),
93
    'cdm_description_ordered_distributions' => array('variables' => array(
94
        'distribution_tree' => NULL,
95
    )),
96
    'cdm_IdentificationKey' => array('variables' => array(
97
        'identificationKey' => NULL,
98
        'doLinkToKeyPage' => TRUE,
99
        'showIdentificationKeyTitle' => TRUE,
100
    )),
101
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
102
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
103
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
104
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
105
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
106
    'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
107
    'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
108

    
109
    // Themes in cdm_dataportal.media.theme.
110
    'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
111
    'cdm_mediaTypeTerm' => array('variables' => array('feature' => NULL, 'mediaUrl' => FALSE)),
112
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
113
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
114
    'cdm_media_mime_text' => array('variables' => array('representation' => NULL, 'feature' => NULL)),
115
    'cdm_media_caption' => array('variables' => array(
116
        'media' => NULL,
117
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
118
    )),
119
    'cdm_media_gallerie' => array('variables' => array(
120
        'mediaList' => NULL,
121
        'galleryName' => NULL,
122
        'maxExtend' => 150,
123
        'cols' => 4,
124
        'maxRows' => FALSE,
125
        'captionElements' => array('title'),
126
        'mediaLinkType' => 'LIGHTBOX',
127
        'alternativeMediaUri' => NULL,
128
        'galleryLinkUri' => NULL,
129
        'showCaption' => TRUE,
130
    )),
131
    'cdm_media_gallerie_image' => array('variables' => array(
132
        'mediaRepresentationPart' => NULL,
133
        'maxExtend' => NULL,
134
        'addPassePartout' => FALSE,
135
        'attributes' => NULL,
136
    )),
137
    'cdm_media_gallerie_application' => array('variables' => array(
138
        'mediaRepresentationPart' => NULL,
139
        'maxExtend' => NULL,
140
        'addPassePartout' => FALSE,
141
        'attributes' => NULL,
142
    )),
143
    'cdm_media_gallerie_text' => array('variables' => array(
144
        'mediaRepresentationPart' => NULL,
145
        'maxExtend' => NULL,
146
        'addPassePartout' => FALSE,
147
        'attributes' => NULL,
148
    )),
149
    'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
150
    // Themes in cdm_dataportal.name.theme.
151
    'cdm_taxonName' => array('variables' => array(
152
        'taxonName' => NULL,
153
        'nameLink' => NULL,
154
        'refenceLink' => NULL,
155
        'show_annotations' => TRUE,
156
        'is_type_designation' => FALSE,
157
        'skiptags' => array(),
158
    )),
159
    'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
160
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
161
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
162
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
163
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
164
        'synonymList' => NULL,
165
        'accepted_taxon_name_uuid' => NULL,
166
        'prependedSynonyms' => array(),
167
    )),
168
    'get_nameRenderTemplate' => array('variables' => array()),
169
    'get_partDefinition' => array('variables' => array()),
170

    
171
    // Themes in cdm_dataportal.occurrence.theme.
172
    'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
173

    
174
    // Themes in cdm_dataportal.page.theme.
175
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
176
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
177
    'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
178
    'cdm_reference_page' => array('variables' => array('reference' => NULL)),
179
    'cdm_media_page' => array('variables' => array(
180
        'media' => NULL,
181
        'mediarepresentation_uuid' => FALSE,
182
        'partId' => FALSE,
183
    )),
184
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
185
    'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
186

    
187
    // Themes in cdm_dataportal.references.theme.
188
    'cdm_reference_pager' => array('variables' => array(
189
        'referencePager' => NULL,
190
        'path' => NULL,
191
        'parameters' => array(),
192
    )),
193
    'cdm_reference' => array('variables' => array(
194
        'reference' => NULL,
195
        'microReference' => NULL,
196
        'doLink' => FALSE,
197
        'referenceStyle' => NULL,
198
    )),
199
    'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE)),
200

    
201
    // Themes in cdm_dataportal.taxon.theme.
202
    'cdm_search_results' => array('variables' => array(
203
        'pager' => NULL,
204
        'path' => NULL
205
    )),
206
    'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
207
    'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
208
    'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
209
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
210

    
211
    // Themes in cdm_dataportal.bibliography.theme.
212
    'cdm_descriptionElementBibliography' => array('variables' => array('descriptionElementsBibliography' => array())),
213

    
214
    // Themes in includes/pre-drupal8.inc
215
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
216
  );
217
}
(10-10/10)