forked from ZwiiCMS-Team/ZwiiCMS
moduel cde : désactiver iframe - modifier showcontent
This commit is contained in:
parent
4cde13f871
commit
30a3ecbbc2
@ -1972,16 +1972,25 @@ class layout extends common {
|
||||
* Affiche le contenu
|
||||
*/
|
||||
public function showContent() {
|
||||
if(
|
||||
$this->core->output['title']
|
||||
AND (
|
||||
$this->getData(['page', $this->getUrl(0)]) === null
|
||||
OR $this->getData(['page', $this->getUrl(0), 'hideTitle']) === false
|
||||
)
|
||||
) {
|
||||
echo '<h1 id="sectionTitle">' . $this->core->output['title'] . '</h1>';
|
||||
// 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 (
|
||||
$this->getData(['page', $this->getUrl(0)]) === null
|
||||
OR $this->getData(['page', $this->getUrl(0), 'hideTitle']) === false
|
||||
)
|
||||
) {
|
||||
echo '<h1 id="sectionTitle">' . $this->core->output['title'] . '</h1>';
|
||||
}
|
||||
echo $this->core->output['content'];
|
||||
}
|
||||
echo $this->core->output['content'];
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -143,14 +143,4 @@ input[type='password']:hover,
|
||||
.inputFile:hover,
|
||||
select:hover,
|
||||
textarea:hover {
|
||||
}
|
||||
|
||||
/* iframe du module core */
|
||||
|
||||
iframe {
|
||||
height: 100%;
|
||||
border: none;
|
||||
margin-top: 10px;
|
||||
margin-bottom: 10px;
|
||||
|
||||
}
|
||||
}
|
@ -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
|
||||
]);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user