moduel cde : désactiver iframe - modifier showcontent

This commit is contained in:
fredtempez 2019-01-27 14:09:23 +01:00
parent 4cde13f871
commit 30a3ecbbc2
3 changed files with 20 additions and 25 deletions

View File

@ -1972,6 +1972,14 @@ class layout extends common {
* Affiche le contenu
*/
public function showContent() {
// Exception pour le module code
if ($this->getData(['page', $this->getUrl(0), 'moduleId']) == 'code'&&
$this->getUrl(1) !== 'config') {
$this->core->output['title'];
//$this->core->output[include('site/file/source/' . $this->getdata(['module',$this->getUrl(0),'file']))];
echo include('site/file/source/' . $this->getdata(['module',$this->getUrl(0),'file']));
} else {
// Fin de l'exception
if(
$this->core->output['title']
AND (
@ -1983,6 +1991,7 @@ class layout extends common {
}
echo $this->core->output['content'];
}
}
/**
* Affiche le copyright

View File

@ -144,13 +144,3 @@ input[type='password']:hover,
select:hover,
textarea:hover {
}
/* iframe du module core */
iframe {
height: 100%;
border: none;
margin-top: 10px;
margin-bottom: 10px;
}

View File

@ -63,11 +63,7 @@ class code extends common {
$this->setData(['module', $this->getUrl(0), 'count', helper::filter($this->getData(['module', $this->getUrl(0), 'count']) + 1, helper::FILTER_INT)]);
// Valeurs en sortie
$this->addOutput([
'content' => '<iframe name="modulecodefile" src="' .
helper::baseUrl(false) .
'site/file/source/' .
$this->getData(['module', $this->getUrl(0), 'file']) .
'"></iframe>' ,
'content' => $this->getData(['module', $this->getUrl(0), 'file']),
'state' => true
]);
}