function csl_layout::render in Bibliography Module 7.2
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_layout::render()
- 7 modules/CiteProc/CSL.inc \csl_layout::render()
Overrides csl_rendering_element::render
File
- modules/
CiteProc/ CSL.inc, line 1270
Class
Code
function render($data, $mode = NULL) {
$text = '';
$parts = array();
// $delimiter = $this->delimiter;
foreach ($this->elements as $element) {
$parts[] = $element
->render($data, $mode);
}
$text = implode($this->delimiter, $parts);
if ($mode == 'bibliography') {
return $this
->format($text);
}
else {
return $text;
}
}