$modalClasses
Definition: main.php:40
Joomla CMS
3.10.11 (avec JPlatform 13.1 inclus)
Documentation des API du CMS Joomla en version 3.10.11 et du framework Joomla Platform intégré
|
Espaces de nommage | |
Joomla\Site | |
Variables | |
$modalClasses = array('modal', 'hide') | |
if(!isset($params['animation'])|| $params['animation']) | $modalWidth = isset($params['modalWidth']) ? round((int) $params['modalWidth'], -1) : '' |
if($modalWidth && $modalWidth > 0 && $modalWidth<=100) | $modalAttributes |
if(isset($params['backdrop'])) if(isset($params['keyboard'])) | $script [] = "jQuery(document).ready(function($) {" |
if(isset($params['url'])) | else |
if (!isset( $params[ 'closeButton'])||isset( $params[ 'title'])||$params[ 'closeButton']) | |
if ( $modalWidth &&$modalWidth > 0 &&$modalWidth<=100) $modalAttributes |
$modalClasses = array('modal', 'hide') |
string | $selector | Unique DOM identifier for the modal. CSS id without # |
array | $params | Modal parameters. Default supported parameters:
|
string | $body | Markup for the modal body. Appended after the <iframe> if the URL option is set |
if (!isset( $params[ 'animation'])||$params[ 'animation']) $modalWidth = isset($params['modalWidth']) ? round((int) $params['modalWidth'], -1) : '' |
$script[] = "jQuery(document).ready(function($) {" |
These lines below are for disabling scrolling of parent window. $('body').addClass('modal-open'); $('body').removeClass('modal-open')
Scrolling inside bootstrap modals on small screens (adapt to window viewport and avoid modal off screen).
Fix iOS scrolling inside bootstrap modals
Specific hack for Bootstrap 2.3.x
if(!isset($params['closeButton'])||isset($params['title'])|| $params['closeButton']) |