ZwiiCMS/core/Untitled-1

8 lines
309 B
Plaintext
Raw Normal View History

2023-02-15 18:36:30 +01:00
// Créer les styles externes
if ($this->getData(['page', $this->getUrl(0), 'css' ])) {
$stylePath = self::TEMP_DIR . uniqid() . '.css';
file_put_contents($stylePath, html_entity_decode($this->getData(['page', $this->getUrl(0), 'css'])));
$this->addOutput([
'style' => $stylePath
]);
}