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é
Référence du fichier edit_container.php

Espaces de nommage

 Joomla\Administrator
 

Variables

 $menuLinks = MenusHelper::getMenuLinks('main')
 
 $script
 
 JS
 
 $style
 
 if (!empty( $menuLinks))
 
 $hiddenLinks = (array) $params->get('hideitems')
 
 endif
 
if($prevlevel< $link->level) elseif($prevlevel > $link->level) else
 
 $selected = in_array($link->value, $hiddenLinks) ? 1 : 0
 
if(!isset($menuLinks[$i+1])) $prevlevel = $link->level
 
 endforeach
 

Documentation des variables

◆ $hiddenLinks

$hiddenLinks = (array) $params->get('hideitems')

◆ $menuLinks

$menuLinks = MenusHelper::getMenuLinks('main')

◆ $prevlevel

if (!isset( $menuLinks[ $i+1])) $prevlevel = $link->level

◆ $script

$script
Valeur initiale :
= <<<'JS'
jQuery(document).ready(function ($) {
var propagate = function () {
var $this = $(this);
var sub = $this.closest('li').find('.treeselect-sub [type="checkbox"]');
sub.prop('checked', this.checked);
if ($this.val() == 1)
sub.each(propagate);
else
sub.attr('disabled', this.checked ? 'disabled' : null);
};
$('.treeselect')
.on('click', '[type="checkbox"]', propagate)
.find('[type="checkbox"]:checked').each(propagate);
})
jQuery(document).ready(function($)
Definition: administrator/components/com_banners/views/banner/tmpl/edit.php:27
else null
Definition: administrator/components/com_banners/views/banners/tmpl/default.php:48

◆ $selected

◆ $style

$style
Valeur initiale :
= <<<'CSS'
.checkbox-toggle {
display: none !important;
}
.checkbox-toggle[disabled] ~ .btn-hide {
opacity: 0.5;
}
.checkbox-toggle ~ .btn-show {
display: inline;
}
.checkbox-toggle ~ .btn-hide {
display: none;
}
.checkbox-toggle:checked ~ .btn-show {
display: none;
}
.checkbox-toggle:checked ~ .btn-hide {
display: inline;
}
CSS
Definition: plugins/editors/codemirror/layouts/editors/codemirror/styles.php:69
if($params->get('templateColor')) navbar inverse navbar nav list active nav list active dropdown menu li dropdown menu active dropdown menu active navbar inverse nav li dropdown open dropdown toggle
Definition: administrator/templates/isis/error.php:89

◆ else

if ( $prevlevel< $link->level) elseif ( $prevlevel > $link->level) else
Valeur initiale :
{
echo '</li>'

◆ endforeach

endforeach

◆ endif

endif

◆ if

if($link->value==1) ( empty$menuLinks)

◆ JS

JS