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

fix bug bloc du a l'iframe

parent af517415
Branches
Tags
2 merge requests!1132Hotline#29412 images des articles dans le resultat de recherche,!960Premier chapitre v1.1
......@@ -33,14 +33,13 @@ 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'];
$h = 700;
if (!empty($preferences['maxHeight']) && $preferences['maxHeight'] < $h) $h = $preferences['maxHeight'];
$frm_attribs = ['id' => 'pc_frame',
'class' => 'iframe_premierchapitre',
'style' => 'width:'.$w.'px; height:'.$h.'px; border:none;',
'style' => 'width:100%; height:'.$h.'px; border:none;',
'src' => $pc->getUrl()];
return $this->_tag('iframe',null,$frm_attribs);
return $this->_tag('iframe','',$frm_attribs);
}
}
?>
\ No newline at end of file
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