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

feat(ArticleListUnique): toHTML() can be passed to template engine and thus...

feat(ArticleListUnique): toHTML() can be passed to template engine and thus settings / variables can be passed on

Related: order-simple-checkout#12
Übergeordneter bdf3b9ca
No related branches found
Tags 3.10.3
2 Merge Requests!159feat(ArticleListUnique): toHTML() can be passed to template engine and thus...,!140Update 'next-4.x' with latest changes from 'main'
Pipeline #12605 mit Warnungen bestanden mit Phase
in 2 Minuten und 2 Sekunden
......@@ -388,17 +388,17 @@ public function setExchangeRate(float $rate): void
/**
* Return the Article List as HTML, without CSS
*
* @param bool|string $template - custom template
* @param bool|string $articleTemplate
* @return string
*
* @throws Exception
*/
public function toHTML(
bool|string $template = false,
bool|string $articleTemplate = false
bool|string $articleTemplate = false,
?QUI\Interfaces\Template\EngineInterface $Engine = null
): string {
$Engine = QUI::getTemplateManager()->getEngine();
if ($Engine === null) {
$Engine = QUI::getTemplateManager()->getEngine();
}
$vatArray = [];
if (!$this->count()) {
......@@ -551,21 +551,18 @@ public function toMailHTML(): string
/**
* Return the Article List as HTML, with CSS
*
* @param bool|string $template
* @param bool|string $articleTemplate
* @return string
*
* @throws Exception
*/
public function toHTMLWithCSS(
bool|string $template = false,
bool|string $articleTemplate = false
bool|string $articleTemplate = false,
?QUI\Interfaces\Template\EngineInterface $Engine = null
): string {
$style = '<style>';
$style .= file_get_contents(dirname(__FILE__) . '/ArticleList.css');
$style .= '</style>';
return $style . $this->toHTML($template, $articleTemplate);
return $style . $this->toHTML($template, $articleTemplate, $Engine);
}
/**
......
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