public function csl_format::init_formatting in Bibliography Module 7
Same name and namespace in other branches
- 6.2 modules/CiteProc/CSL.inc \csl_format::init_formatting()
- 7.2 modules/CiteProc/CSL.inc \csl_format::init_formatting()
5 calls to csl_format::init_formatting()
- csl_bibliography::init_formatting in modules/
CiteProc/ CSL.inc - csl_format::__construct in modules/
CiteProc/ CSL.inc - csl_layout::init_formatting in modules/
CiteProc/ CSL.inc - csl_names::init_formatting in modules/
CiteProc/ CSL.inc - csl_text::init_formatting in modules/
CiteProc/ CSL.inc
5 methods override csl_format::init_formatting()
- csl_bibliography::init_formatting in modules/
CiteProc/ CSL.inc - csl_layout::init_formatting in modules/
CiteProc/ CSL.inc - csl_name::init_formatting in modules/
CiteProc/ CSL.inc - csl_names::init_formatting in modules/
CiteProc/ CSL.inc - csl_text::init_formatting in modules/
CiteProc/ CSL.inc
File
- modules/
CiteProc/ CSL.inc, line 367 - CiteProc-PHP.
Class
Code
public function init_formatting() {
$this->no_op = TRUE;
$this->format = '';
if (isset($this->quotes) && strtolower($this->quotes) == "true") {
$this->quotes = array();
$this->quotes['punctuation-in-quote'] = $this->citeproc
->get_locale('style_option', 'punctuation-in-quote');
$this->quotes['open-quote'] = $this->citeproc
->get_locale('term', 'open-quote');
$this->quotes['close-quote'] = $this->citeproc
->get_locale('term', 'close-quote');
$this->quotes['open-inner-quote'] = $this->citeproc
->get_locale('term', 'open-inner-quote');
$this->quotes['close-inner-quote'] = $this->citeproc
->get_locale('term', 'close-inner-quote');
$this->no_op = FALSE;
}
if (isset($this->{'prefix'})) {
$this->no_op = FALSE;
}
if (isset($this->{'suffix'})) {
$this->no_op = FALSE;
}
if (isset($this->{'display'})) {
$this->no_op = FALSE;
}
$this->format .= isset($this->{'font-style'}) ? 'font-style: ' . $this->{'font-style'} . ';' : '';
$this->format .= isset($this->{'font-family'}) ? 'font-family: ' . $this->{'font-family'} . ';' : '';
$this->format .= isset($this->{'font-weight'}) ? 'font-weight: ' . $this->{'font-weight'} . ';' : '';
$this->format .= isset($this->{'font-variant'}) ? 'font-variant: ' . $this->{'font-variant'} . ';' : '';
$this->format .= isset($this->{'text-decoration'}) ? 'text-decoration: ' . $this->{'text-decoration'} . ';' : '';
$this->format .= isset($this->{'vertical-align'}) ? 'vertical-align: ' . $this->{'vertical-align'} . ';' : '';
// $this->format .= (isset($this->{'display'}) && $this->{'display'} == 'indent') ? 'padding-left: 25px;' : '';.
if (isset($this->{'text-case'}) || !empty($this->format) || !empty($this->span_class) || !empty($this->div_class)) {
$this->no_op = FALSE;
}
}