/** * User function (called from TypoScript) for generating a typo header tag (used in parsefunc) * * @param string $content: Empty, ignore. * @param array $conf: TypoScript parameters * @return string Processed output. */ function typohead($content, $conf) { $this->conf = $this->cObj->mergeTSRef($conf, 'header'); $this->siteUrl = $conf['siteUrl']; $str = trim($this->cObj->getCurrentVal()); $this->cObj->data['header_layout'] = $this->cObj->parameters['type']; $this->cObj->data['header_position'] = $this->cObj->parameters['align']; $this->cObj->data['header'] = $str; return $this->getHeader(); }