Project

General

Profile

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