function monPlugin_insert_head($flux){ # Déclarer le array listant les scripts js $bstrpJs = array( 'affix.js' => 0, 'alert.js' => 0, 'button.js' => 0, 'carousel.js' => 0, 'collapse.js' => 1, 'dropdown.js' => 1, 'modal.js,0' => 0, 'popover.js' => 0, 'scrollspy.js' => 0, 'tab.js' => 0, 'tooltip.js' => 0, 'transition.js' => 0, ); # Boucler sur le tableau listant les scripts foreach($bstrpJs as $script => $active){ if($path = find_in_path("javascript/bootstrap/$script") AND $active > 0){ $flux .= ''; } } return $flux; }