Skip to content
Snippets Groups Projects
Commit af517415 authored by vinot's avatar vinot
Browse files

no message

parent f42fb91c
Branches
Tags
2 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!960Premier chapitre v1.1
......@@ -31,7 +31,7 @@ class Class_Systeme_ModulesAccueil_PremierChapitre extends Class_Systeme_Modules
protected $_popupWidth = 600;
protected $_popupHeight = 700;
protected $_popupHeight = 600;
protected $_defaultValues = ['titre' => 'Premier Chapitre',
'intro' => '',
......
......@@ -25,6 +25,7 @@ class ZendAfi_View_Helper_Accueil_PremierChapitre extends ZendAfi_View_Helper_Ac
$this->contenu = '';
if (!empty($this->preferences['intro']))
$this->contenu = '<p>'.$this->preferences['intro'].'</p>';
$this->preferences['maxWidth'] = 550;
$this->contenu .= $this->view->renderPremierChapitre($this->id_module, $this->preferences);
return $this->getHtmlArray();
......
......@@ -33,9 +33,12 @@ class ZendAfi_View_Helper_PremierChapitre_Frame extends ZendAfi_View_Helper_Prem
if (!$pc) return $html;
}
else return $html;
$w = 700; $h = 700;
if (!empty($preferences['maxWidth']) && $preferences['maxWidth'] < $w) $w = $preferences['maxWidth'];
if (!empty($preferences['maxHeight']) && $preferences['maxHeight'] < $h) $h = $preferences['maxHeight'];
$frm_attribs = ['id' => 'pc_frame',
'class' => 'iframe_premierchapitre',
'style' => 'width:700px; height:700px; border:none;',
'style' => 'width:'.$w.'px; height:'.$h.'px; border:none;',
'src' => $pc->getUrl()];
return $this->_tag('iframe',null,$frm_attribs);
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment