@@ -2,6 +2,6 @@ |
||
2 | 2 | include_once(ROOT.'libs/ckeditor/ckeditor.php'); |
3 | 3 | require_once(ROOT.'libs/ckfinder/ckfinder.php'); |
4 | 4 | $ckeditor = new CKEditor(); |
5 | - $ckeditor->basePath = WEBROOT.'libs/ckeditor/'; |
|
5 | + $ckeditor->basePath = WEBROOT.'libs/ckeditor/'; |
|
6 | 6 | CKFinder::SetupCKEditor($ckeditor, WEBROOT.'libs/ckfinder/'); |
7 | 7 | ?> |
8 | 8 | \ No newline at end of file |
@@ -2,7 +2,7 @@ |
||
2 | 2 | $gestion_contenu = new \core\admin\contenus\GestionContenus(); |
3 | 3 | $droit_acces = new \core\admin\droitsacces\DroitAcces(); |
4 | 4 | |
5 | - if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) && ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) { |
|
5 | + if ((($droit_acces->getDroitAccesContenu("GESTION CONTENU PAGE", $_POST['id_page']) == true) && ($droit_acces->getModifContenu() != 0)) || ($droit_acces->getSuperAdmin() == 1)) { |
|
6 | 6 | |
7 | 7 | $gestion_contenu->setModifierContenu($_GET['id_page'], $_GET['contenu']); |
8 | 8 |
@@ -19,7 +19,7 @@ discard block |
||
19 | 19 | <button id="supprimer-page-contenu" type="button" class="submit-contenu supprimer-page supprimer open-popup" popup="supprimer-page" href="<?=ADMWEBROOT?>gestion-contenus/modifier-contenu?id=<?=$id_page_courante?>"><i class="fa fa-times"></i>Annuler</button> |
20 | 20 | |
21 | 21 | |
22 | -<?php if ($config->getResponsive() == 1){?> |
|
22 | +<?php if ($config->getResponsive() == 1) {?> |
|
23 | 23 | <link rel="stylesheet" type="text/css" href="<?=WEBROOT?>admin/views/template/css/foundation-inline.css"> |
24 | 24 | <?php }?> |
25 | 25 | <link rel="stylesheet" type="text/css" href="<?=TPLWEBROOT?>css/page.css"> |
@@ -35,9 +35,9 @@ discard block |
||
35 | 35 | <script> |
36 | 36 | CKEDITOR.disableAutoInline = true; |
37 | 37 | |
38 | - <?php for($i=0 ; $i<$bloc_editable ; $i++):?> |
|
38 | + <?php for ($i = 0; $i < $bloc_editable; $i++):?> |
|
39 | 39 | var editor<?=$i?> = CKEDITOR.inline("editor<?=$i?>", { customConfig: "<?=WEBROOT?>config/config_ckeditor.js" }); |
40 | 40 | CKFinder.setupCKEditor( editor<?=$i?>, "<?=LIBSWEBROOT?>ckfinder/" ); |
41 | - <?php endfor;?> |
|
41 | + <?php endfor; ?> |
|
42 | 42 | </script> |
43 | -<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php");?> |
|
44 | 43 | \ No newline at end of file |
44 | +<?php require_once(ROOT."admin/views/gestion-contenus/js/inline.php"); ?> |
|
45 | 45 | \ No newline at end of file |
@@ -38,7 +38,7 @@ |
||
38 | 38 | } |
39 | 39 | |
40 | 40 | public function getBlocEditable($id_page_courante) { |
41 | - $dbc= App::getDb(); |
|
41 | + $dbc = App::getDb(); |
|
42 | 42 | $bloc_editable = 0; |
43 | 43 | |
44 | 44 | $query = $dbc->select("bloc_editable")->from("page")->where("ID_page", "=", $id_page_courante)->get(); |
@@ -36,7 +36,7 @@ |
||
36 | 36 | <ul> |
37 | 37 | <?php if ($droit_acces->getDroitAccesAction("CREATION COMPTE ADMIN")):?> |
38 | 38 | <li><i class="fa fa-user"></i><a href="<?=ADMWEBROOT?>gestion-comptes/creer-utilisateur">Créer un utilisateur</a></li> |
39 | - <?php endif;?> |
|
39 | + <?php endif; ?> |
|
40 | 40 | </ul> |
41 | 41 | </li> |
42 | 42 | <?php endif; ?> |