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 |
2fc5c836
|
Andreas Kohlbecker
|
'cdm_entities_annotations_as_footnotekeys' => array('variables' => array('cdmBase_list' => NULL, 'footnote_list_key' => NULL)),
|
41 |
d2a09415
|
Andreas Kohlbecker
|
'cdm_marker' => array('variables' => array('label' => NULL, 'attributes' => NULL)),
|
42 |
|
|
'cdm_pager' => array('variables' => array('pager' => NULL, 'path' => NULL, 'parameters' => NULL)),
|
43 |
|
|
'cdm_pager_link' => array('variables' => array(
|
44 |
|
|
'text' => NULL,
|
45 |
|
|
'linkIndex' => NULL,
|
46 |
|
|
'pager' => NULL,
|
47 |
|
|
'path' => NULL,
|
48 |
|
|
'parameters' => array(),
|
49 |
|
|
'attributes' => NULL,
|
50 |
|
|
)),
|
51 |
|
|
'cdm_print_button' => array('variables' => array()),
|
52 |
|
|
|
53 |
|
|
// Themes in cdm_dataportal.descriptions.theme.
|
54 |
|
|
'cdm_feature_name' => array('variables' => array('feature_name' => NULL)),
|
55 |
|
|
'cdm_IdentificationKey' => array('variables' => array(
|
56 |
|
|
'identificationKey' => NULL,
|
57 |
|
|
'doLinkToKeyPage' => TRUE,
|
58 |
|
|
'showIdentificationKeyTitle' => TRUE,
|
59 |
|
|
)),
|
60 |
|
|
'cdm_polytomousKey' => array('variables' => array('polytomousKey' => NULL)),
|
61 |
|
|
'cdm_polytomousKey_linkedStyle_subgraph' => array('variables' => array('polytomousKeyNode' => NULL)),
|
62 |
|
|
'cdm_poytomousKeyNode_modifyingText' => array('variables' => array('modifyingText' => NULL)),
|
63 |
|
|
'cdm_list_IdentificationKeys' => array('variables' => array('type' => NULL, 'taxonUuid' => NULL)),
|
64 |
|
|
'cdm_block_IdentificationKeys' => array('variables' => array('taxonUuid' => NULL)),
|
65 |
|
|
|
66 |
|
|
// Themes in cdm_dataportal.media.theme.
|
67 |
|
|
'cdm_media_mime_application' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
68 |
|
|
'cdm_media_mime_image' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
69 |
|
|
'cdm_media_mime_text' => array('variables' => array('mediaRepresentation' => NULL, 'feature' => NULL)),
|
70 |
|
|
'cdm_media_caption' => array('variables' => array(
|
71 |
|
|
'media' => NULL,
|
72 |
|
|
'elements' => array('title', 'description', 'artist', 'location', 'rights'),
|
73 |
f79d32d6
|
Andreas Kohlbecker
|
'sources_as_content' => FALSE
|
74 |
d2a09415
|
Andreas Kohlbecker
|
)),
|
75 |
|
|
// Themes in cdm_dataportal.name.theme.
|
76 |
|
|
'cdm_nameRelationships' => array('variables' => array('nameRelationships' => NULL, 'skipTypes' => FALSE)),
|
77 |
|
|
'cdm_homotypicSynonymLine' => array('variables' => array('taxon' => NULL)),
|
78 |
|
|
'cdm_heterotypicSynonymyGroup' => array('variables' => array('homotypicalGroup' => NULL)),
|
79 |
|
|
'cdm_homotypicSynonymyGroup' => array('variables' => array(
|
80 |
|
|
'synonymList' => NULL,
|
81 |
|
|
'accepted_taxon_name_uuid' => NULL,
|
82 |
|
|
'prependedSynonyms' => array(),
|
83 |
|
|
)),
|
84 |
|
|
'get_nameRenderTemplate' => array('variables' => array()),
|
85 |
|
|
'get_partDefinition' => array('variables' => array()),
|
86 |
|
|
|
87 |
|
|
// Themes in cdm_dataportal.page.theme.
|
88 |
|
|
'cdm_taxon_page_title' => array('variables' => array('taxon' => NULL)),
|
89 |
|
|
'cdm_name_page_title' => array('variables' => array('taxon_name' => NULL)),
|
90 |
|
|
'cdm_media_page' => array('variables' => array(
|
91 |
|
|
'media' => NULL,
|
92 |
|
|
'mediarepresentation_uuid' => FALSE,
|
93 |
|
|
'partId' => FALSE,
|
94 |
|
|
)),
|
95 |
|
|
'cdm_polytomousKey_page' => array('variables' => array('polytomousKey' => NULL)),
|
96 |
|
|
|
97 |
|
|
// Themes in cdm_dataportal.taxon.theme.
|
98 |
0a1dc066
|
Andreas Kohlbecker
|
'cdm_search_taxa_results' => array('variables' => array(
|
99 |
d2a09415
|
Andreas Kohlbecker
|
'pager' => NULL,
|
100 |
|
|
'path' => NULL
|
101 |
|
|
)),
|
102 |
6eaec849
|
Katja Luther
|
'cdm_search_specimen_results' => array('variables' => array(
|
103 |
|
|
'pager' => NULL,
|
104 |
|
|
'path' => NULL
|
105 |
|
|
)),
|
106 |
d2a09415
|
Andreas Kohlbecker
|
'cdm_taxon_list_thumbnails' => array('variables' => array('taxon' => NULL)),
|
107 |
|
|
|
108 |
|
|
// Themes in includes/pre-drupal8.inc
|
109 |
|
|
'description_list' => array('variables' => array('items' => array(), 'groups' => array(), 'title' => NULL, 'attributes' => array())),
|
110 |
|
|
);
|
111 |
|
|
}
|