diff --git a/lib/html.php b/lib/html.php index e329102d..c58228cb 100644 --- a/lib/html.php +++ b/lib/html.php @@ -1,15 +1,29 @@ 0)){ + $bridgeFormats = $bridgeClass::FORMATS;} + else {$bridgeFormats = $formats}; + $getHelperButtonsFormat = function($formats){ $buttons = ''; foreach($formats as $name){ + if(in_array($name , $bridgeFormats){ $buttons .= '' . PHP_EOL; + } } return $buttons; @@ -23,12 +37,6 @@ function displayBridgeCard($bridgeName, $formats, $isActive = true){ EOD; }; - $bridgeElement = Bridge::create($bridgeName); - $bridgeClass = $bridgeName . 'Bridge'; - - if($bridgeElement == false) - return ""; - $name = '' . $bridgeClass::NAME . ''; $description = $bridgeClass::DESCRIPTION;