Project

General

Profile

Download (9.13 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_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_descriptionElement_CategoricalData' => array('render element' => 'element'),
75
    'cdm_descriptionElement_IndividualsAssociation' => array('render element' => 'element'),
76
    'cdm_descriptionElement_TaxonInteraction' => array('render element' => 'element'),
77
    'cdm_descriptionElement_QuantitativeData' => array('render element' => 'element'),
78
    'cdm_common_names' => array('render element' => 'elements', 'variables' => array('feature' => null) ),
79
    'cdm_description_element_image_source' => array('variables' => array(
80
        'image_sources' => NULL,
81
        'asListElement' => NULL,
82
    )),
83
    'cdm_IdentificationKey' => array('variables' => array(
84
        'identificationKey' => NULL,
85
        'doLinkToKeyPage' => TRUE,
86
        'showIdentificationKeyTitle' => TRUE,
87
    )),
88
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
89
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
90
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
91
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
92
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
93
    'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
94
    'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
95

    
96
    // Themes in cdm_dataportal.media.theme.
97
    'cdm_media' => array('variables' => array('descriptionElement' => NULL, 'mimeTypePreference' => NULL)),
98
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
99
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
100
    'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
101
    'cdm_media_caption' => array('variables' => array(
102
        'media' => NULL,
103
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
104
    )),
105
    'cdm_media_gallerie' => array('variables' => array(
106
        'mediaList' => NULL,
107
        'galleryName' => NULL,
108
        'maxExtend' => 150,
109
        'cols' => 4,
110
        'maxRows' => FALSE,
111
        'captionElements' => array('title'),
112
        'mediaLinkType' => 'LIGHTBOX',
113
        'alternativeMediaUri' => NULL,
114
        'galleryLinkUri' => NULL,
115
        'showCaption' => TRUE,
116
    )),
117
    'cdm_media_gallerie_image' => array('variables' => array(
118
        'mediaRepresentationPart' => NULL,
119
        'maxExtend' => NULL,
120
        'addPassePartout' => FALSE,
121
        'attributes' => NULL,
122
    )),
123
    'cdm_media_gallerie_application' => array('variables' => array(
124
        'mediaRepresentationPart' => NULL,
125
        'maxExtend' => NULL,
126
        'addPassePartout' => FALSE,
127
        'attributes' => NULL,
128
    )),
129
    'cdm_media_gallerie_text' => array('variables' => array(
130
        'mediaRepresentationPart' => NULL,
131
        'maxExtend' => NULL,
132
        'addPassePartout' => FALSE,
133
        'attributes' => NULL,
134
    )),
135
    'cdm_openlayers_image' => array('variables' => array('mediaRepresentationPart' => NULL, 'maxExtend' => NULL)),
136
    // Themes in cdm_dataportal.name.theme.
137
    'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
138
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
139
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
140
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
141
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
142
        'synonymList' => NULL,
143
        'accepted_taxon_name_uuid' => NULL,
144
        'prependedSynonyms' => array(),
145
    )),
146
    'get_nameRenderTemplate' => array('variables' => array()),
147
    'get_partDefinition' => array('variables' => array()),
148

    
149
    // Themes in cdm_dataportal.occurrence.theme.
150
    'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
151

    
152
    // Themes in cdm_dataportal.page.theme.
153
    'cdm_specimen_page_title' => array('variables' => array('specimen' => NULL)),
154
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
155
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
156
    'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
157
    'cdm_reference_page' => array('variables' => array('reference' => NULL)),
158
    'cdm_media_page' => array('variables' => array(
159
        'media' => NULL,
160
        'mediarepresentation_uuid' => FALSE,
161
        'partId' => FALSE,
162
    )),
163
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
164
    'cdm_taxonpage_tab' => array('variables' => array('tabname' => NULL)),
165

    
166
    // Themes in cdm_dataportal.references.theme.
167
    'cdm_reference_pager' => array('variables' => array(
168
        'referencePager' => NULL,
169
        'path' => NULL,
170
        'parameters' => array(),
171
    )),
172
    'cdm_reference' => array('variables' => array(
173
        'reference' => NULL,
174
        'microReference' => NULL,
175
        'doLink' => FALSE,
176
        'referenceStyle' => NULL,
177
    )),
178
    'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE, 'do_link_to_name_used_in_source' => FALSE)),
179

    
180
    // Themes in cdm_dataportal.taxon.theme.
181
    'cdm_search_results' => array('variables' => array(
182
        'pager' => NULL,
183
        'path' => NULL
184
    )),
185
    'cdm_taxonRelationships' => array('variables' => array('taxonRelationships' => NULL, 'focusedTaxon' => NULL)),
186
    'cdm_acceptedFor' => array('variables' => array('acceptedFor' => NULL)),
187
    'cdm_list_of_taxa' => array('variables' => array('records' => NULL, 'freetextSearchResults' => array(), 'show_classification' => FALSE)),
188
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
189

    
190
    // Themes in includes/pre-drupal8.inc
191
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
192
  );
193
}
(9-9/9)