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

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

Übergeordneter f3f76f4d
Keine zugehörigen Branchen gefunden
Keine zugehörigen Tags gefunden
2 Merge Requests!140Update 'next-4.x' with latest changes from 'main',!135Next 3.x
......@@ -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;
......@@ -549,29 +550,39 @@ public function toMailHTML(): string
/**
* Return the Article List as HTML, with CSS
*
* @param bool|string $template
* @param bool|string $articleTemplate
* @return string
*
* @throws QUI\Exception
* @throws Exception
*/
public function toHTMLWithCSS(): string
public function toHTMLWithCSS(
bool|string $template = false,
bool|string $articleTemplate = false
): string
{
$style = '<style>';
$style .= file_get_contents(dirname(__FILE__) . '/ArticleList.css');
$style .= '</style>';
return $style . $this->toHTML();
return $style . $this->toHTML($template, $articleTemplate);
}
/**
* Alias for toHTMLWithCSS
*
* @param bool|string $template
* @param bool|string $articleTemplate
* @return string
*
* @throws QUI\Exception
* @throws Exception
*/
public function render(): string
public function render(
bool|string $template = false,
bool|string $articleTemplate = false
): string
{
return $this->toHTMLWithCSS();
return $this->toHTMLWithCSS($template, $articleTemplate);
}
/**
......
0% Lade oder .
You are about to add 0 people to the discussion. Proceed with caution.
Bearbeitung dieser Nachricht zuerst beenden!
Bitte registrieren oder zum Kommentieren