Project

General

Profile

Download (6.73 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_image_gallery_button' => array('variables' => array()),
67
    'cdm_print_button' => array('variables' => array()),
68

    
69
    // Themes in cdm_dataportal.descriptions.theme.
70
    'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
71
    'FeatureTree_hierarchy' => array('variables' => array('FeatureTreeUuid' => NULL)),
72
    'FeatureTree_hierarchy_children' => array('variables' => array('node' => NULL)),
73
    'cdm_IdentificationKey' => array('variables' => array(
74
        'identificationKey' => NULL,
75
        'doLinkToKeyPage' => TRUE,
76
        'showIdentificationKeyTitle' => TRUE,
77
    )),
78
    'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
79
    'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
80
    'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
81
    'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
82
    'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
83
    'cdm_UseDescription' => array('variables' => array('description' => NULL, 'taxonUuid' => NULL)),
84
    'cdm_block_Uses' => array('variables' => array('taxonUuid' => NULL)),
85

    
86
    // Themes in cdm_dataportal.media.theme.
87
    'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
88
    'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
89
    'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
90
    'cdm_media_caption' => array('variables' => array(
91
        'media' => NULL,
92
        'elements' => array('title', 'description', 'artist', 'location', 'rights'),
93
        'sources_as_content' => FALSE
94
    )),
95
    // Themes in cdm_dataportal.name.theme.
96
    'cdm_typedesignations' => array('variables' => array('typeDesignations' => array())),
97
    'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
98
    'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
99
    'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
100
    'cdm_homotypicSynonymyGroup' => array('variables' => array(
101
        'synonymList' => NULL,
102
        'accepted_taxon_name_uuid' => NULL,
103
        'prependedSynonyms' => array(),
104
    )),
105
    'get_nameRenderTemplate' => array('variables' => array()),
106
    'get_partDefinition' => array('variables' => array()),
107

    
108
    // Themes in cdm_dataportal.occurrence.theme.
109
    'cdm_specimen' => array('variables' => array('specimenTypeDesignation' => NULL)),
110

    
111
    // Themes in cdm_dataportal.page.theme.
112
    'cdm_specimen_page_title' => array('variables' => array('specimen' => NULL)),
113
    'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
114
    'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
115
    'cdm_taxon_page_synonymy' => array('variables' => array('taxon' => NULL, 'addAcceptedTaxon' => NULL)),
116
    'cdm_reference_page' => array('variables' => array('reference' => NULL)),
117
    'cdm_media_page' => array('variables' => array(
118
        'media' => NULL,
119
        'mediarepresentation_uuid' => FALSE,
120
        'partId' => FALSE,
121
    )),
122
    'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
123

    
124
    // Themes in cdm_dataportal.references.theme.
125
    'cdm_reference' => array('variables' => array(
126
        'reference' => NULL,
127
        'microReference' => NULL,
128
        'doLink' => FALSE,
129
        'referenceStyle' => NULL,
130
    )),
131
    'cdm_OriginalSource' => array('variables' => array('source' => NULL, 'doLink' => TRUE, 'do_link_to_name_used_in_source' => FALSE)),
132

    
133
    // Themes in cdm_dataportal.taxon.theme.
134
    'cdm_search_results' => array('variables' => array(
135
        'pager' => NULL,
136
        'path' => NULL
137
    )),
138
    'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
139

    
140
    // Themes in includes/pre-drupal8.inc
141
    'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
142
  );
143
}
(9-9/9)