Revision 45367dbe
Added by Alex Theys about 12 years ago
5.x/themes/palmweb_2/template.php | ||
---|---|---|
84 | 84 |
} |
85 | 85 |
|
86 | 86 |
function palmweb_2_cdm_feature_nodesTOC($featureNodes){ |
87 |
|
|
87 |
global $theme; |
|
88 | 88 |
$out .= '<ul>'; |
89 | 89 |
$countFeatures = 0; |
90 | 90 |
$numberOfChildren = count(cdm_ws_get(CDM_WS_PORTAL_TAXONOMY_CHILDNODES_OF_TAXON, array (get_taxonomictree_uuid_selected(), substr(strrchr($_GET["q"], '/'), 1)))); |
... | ... | |
105 | 105 |
} |
106 | 106 |
//Setting the Anchor to the Bibliography section if the option is enabled |
107 | 107 |
$show_bibliography = variable_get('cdm_show_bibliography', 1); |
108 |
$isBlockactive = null; |
|
109 |
|
|
110 |
$regions = system_region_list($theme); |
|
111 |
//$out.=print_r($regions); |
|
112 |
|
|
113 |
foreach (array_keys($regions) as $region) { |
|
114 |
//$out .= print($region['content']); |
|
115 |
$list = block_list($region); |
|
116 |
//$out.=print_r($list); |
|
117 |
foreach ($list as $block) { |
|
118 |
//$out .= print_r($block); |
|
119 |
} |
|
120 |
} |
|
121 |
|
|
122 |
//$region['content'] = 'content'; |
|
123 |
//$out .= print_r($regions); |
|
124 |
|
|
108 | 125 |
|
109 | 126 |
if ($show_bibliography && $countFeatures != 0) { |
110 | 127 |
$out .= '<li>'.l(t(theme('cdm_feature_name', 'Bibliography')), $_GET['q'], array("class"=>"toc"), NULL, generalizeString('Bibliography')).'</li>'; |
... | ... | |
195 | 212 |
$block->content .= theme('cdm_block_Uses', $taxon->uuid); |
196 | 213 |
//$block->content .= theme('cdm_descriptionElements', $node->descriptionElements, $node->feature->uuid, $taxon->uuid), |
197 | 214 |
} |
198 |
else if ($node->feature->uuid == UUID_DESCRIPTION) { |
|
215 |
/*else if ($node->feature->uuid == UUID_DESCRIPTION) {
|
|
199 | 216 |
//$block->content .= print_r($node); |
200 |
} |
|
217 |
}*/
|
|
201 | 218 |
else if ($node->feature->uuid == UUID_TEST) { |
202 |
$block->content .= print_r($node); |
|
219 |
//$block->content .= print_r($node);
|
|
203 | 220 |
} |
204 | 221 |
else { |
205 | 222 |
$block->content .= theme('cdm_descriptionElements', $node->descriptionElements, $node->feature->uuid, $taxon->uuid); |
... | ... | |
257 | 274 |
$block->content .= theme('cdm_annotation_footnotes', $node->feature->uuid); |
258 | 275 |
// add anchor to subject |
259 | 276 |
$block->subject = '<a name="'.$block->delta.'"></a>'. $block->subject; |
260 |
//$out .= theme('block', $block) . $test . "TOTO"; |
|
261 | 277 |
$out .= theme('block', $block); |
262 | 278 |
|
263 | 279 |
|
... | ... | |
284 | 300 |
return $out; |
285 | 301 |
} |
286 | 302 |
|
287 |
/*function palmweb_2_cdm_tempUses_part($descriptions) { |
|
288 |
//$out = print_r($descriptions); |
|
289 |
$out = ''; |
|
290 |
$out .= '<div id="block-cdm_dataportal-feature-discussion"><H2> Uses </H2> <BR />'; |
|
291 |
foreach($descriptions as $description) { |
|
292 |
$out .= '<div id="content">' . $description->titleCache; |
|
293 |
foreach ($description->sources as $source) { |
|
294 |
$out .= " (" . theme('cdm_DescriptionElementSource', $source, true) . ")"; |
|
295 |
} |
|
296 |
$out .= "<BR />Use Records: "; |
|
297 |
$out .='<div><ul id="Desciption">'; |
|
298 |
foreach ($description->elements as $descriptionElement) { |
|
299 |
$out .= '<span><li class="descriptionText">'; |
|
300 |
//foreach ($descriptionElement->states as $stateData) { |
|
301 |
// $out .= '<div class="useTag">' . $stateData->state->representation_L10n . '</div>'; |
|
302 |
//} |
|
303 |
|
|
304 |
//foreach ($descriptionElement->modifiers as $modifier) { |
|
305 |
// $out .= '<div class="useTag">' . $modifier->representation_L10n . '</div>' ; |
|
306 |
//} |
|
307 |
$out .= '<div>' . $descriptionElement->modifyingText->English->text; |
|
308 |
$out .= '</li></span><div class="clear"></div>'; |
|
309 |
|
|
310 |
} |
|
311 |
$out .= "</ul></div></div>"; |
|
312 |
|
|
313 |
} |
|
314 |
$out .="</div>"; |
|
315 |
return $out; |
|
316 |
|
|
317 |
}*/ |
|
318 | 303 |
|
319 | 304 |
function palmweb_2_cdm_search_results($pager, $path, $parameters){ |
320 | 305 |
|
Also available in: Unified diff
AT: committing Palm extension changes to the palmweb theme