Amélioration esthétique
This commit is contained in:
parent
75dbae7cc6
commit
4444c58902
@ -1752,7 +1752,7 @@ class course extends common
|
|||||||
|
|
||||||
// Soumission du formulaire
|
// Soumission du formulaire
|
||||||
if ($this->isPost()) {
|
if ($this->isPost()) {
|
||||||
$datas = '';
|
$datas = '<h1>' . $this->getData(['course', $courseId, 'title']) . '</h1>';
|
||||||
$resources = [];
|
$resources = [];
|
||||||
|
|
||||||
foreach ($this->getData(['page']) as $pageId => $page) {
|
foreach ($this->getData(['page']) as $pageId => $page) {
|
||||||
@ -1820,7 +1820,7 @@ class course extends common
|
|||||||
<body>' . $datas . '</body></html>';
|
<body>' . $datas . '</body></html>';
|
||||||
|
|
||||||
// Sauvegarder le fichier HTML
|
// Sauvegarder le fichier HTML
|
||||||
file_put_contents($path . '/export/' . $courseId . '_export.html', $datas, LOCK_EX);
|
file_put_contents($path . '/export/export_' . $this->getData(['course', $courseId, 'title']) . '.html', $datas, LOCK_EX);
|
||||||
|
|
||||||
// Copie une feuille de style
|
// Copie une feuille de style
|
||||||
copy('core/module/course/resource/style.css', $path . 'export/style.css');
|
copy('core/module/course/resource/style.css', $path . 'export/style.css');
|
||||||
|
Loading…
x
Reference in New Issue
Block a user