. */ namespace Fisharebest\Webtrees\Report; /** * Class ReportHtmlCell */ class ReportHtmlCell extends ReportBaseCell { /** * HTML Cell renderer * * @param ReportHtml $renderer * * @return void */ public function render($renderer) { if (strpos($this->text, '{{:ptp:}}') !== false) { return; } $temptext = str_replace('#PAGENUM#', $renderer->pageNo(), $this->text); // underline «title» part of Source item $temptext = str_replace([ '«', '»', ], [ '', '', ], $temptext); // Setup the style name if ($renderer->getCurrentStyle() != $this->styleName) { $renderer->setCurrentStyle($this->styleName); } // If (Future-feature-enable/disable cell padding) $cP = $renderer->cPadding; // Adjust the positions if ($this->left == '.') { $this->left = $renderer->getX(); } else { $renderer->setX($this->left); } if ($this->top == '.') { $this->top = $renderer->getY(); } else { $renderer->setY($this->top); } // Start collecting the HTML code echo '