Skip to content
Code-Schnipsel Gruppen Projekte
Commit 6c7d70e6 erstellt von Henning Leutz's avatar Henning Leutz :martial_arts_uniform:
Dateien durchsuchen

Merge branch 'next-1.x' into '1.x'

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

See merge request !133
Übergeordnete a2187db0 14ee4b24
No related branches found
Tags 3.7.2
1 Merge Request!133fix: overwriting of the article list possible via all render methods
Pipeline #9690 mit Warnungen bestanden mit Phasen
in 56 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