Skip to content
Code-Schnipsel Gruppen Projekte
Bestätigt Commit 14ee4b24 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

fix: overwriting of the article list possible via all render methods

Übergeordneter 275e8d6c
No related branches found
No related tags found
1 Merge Request!133fix: overwriting of the article list possible via all render methods
Pipeline #9689 mit Warnungen bestanden mit Phase
in 12 Sekunden
......@@ -10,6 +10,7 @@
use IteratorAggregate;
use QUI;
use QUI\ERP\Accounting\PriceFactors\FactorList as ErpFactorList;
use QUI\Exception;
use Traversable;
use function array_map;
......@@ -540,29 +541,31 @@ public function toMailHTML(): string
/**
* Return the Article List as HTML, with CSS
*
* @param bool $template
* @return string
*
* @throws QUI\Exception
* @throws Exception
*/
public function toHTMLWithCSS(): string
public function toHTMLWithCSS($template = false): string
{
$style = '<style>';
$style .= file_get_contents(dirname(__FILE__) . '/ArticleList.css');
$style .= '</style>';
return $style . $this->toHTML();
return $style . $this->toHTML($template);
}
/**
* Alias for toHTMLWithCSS
*
* @param bool $template
* @return string
*
* @throws QUI\Exception
* @throws Exception
*/
public function render(): string
public function render($template = false): string
{
return $this->toHTMLWithCSS();
return $this->toHTMLWithCSS($template);
}
/**
......
0% oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren