You are here

class csl_layout in Bibliography Module 6.2

Same name and namespace in other branches
  1. 7 modules/CiteProc/CSL.inc \csl_layout
  2. 7.2 modules/CiteProc/CSL.inc \csl_layout

Hierarchy

Expanded class hierarchy of csl_layout

File

modules/CiteProc/CSL.inc, line 1341

View source
class csl_layout extends csl_format {
  function init_formatting() {

    // $this->div_class = 'csl-entry';
    parent::init_formatting();
  }
  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;
    }
  }

}

Members