Show panel header only with extra content - refs BT#18201

pull/3766/head^2
Angel Fernando Quiroz Campos 5 years ago
parent 3d692279d9
commit 06c58d8feb
  1. 5
      main/inc/lib/display.lib.php

@ -2529,6 +2529,11 @@ class Display
}
$title = !empty($title) ? '<div class="panel-heading" '.$headerStyle.' ><h3 class="panel-title">'.$title.'</h3>'.$extra.'</div>' : '';
if (empty($title) && !empty($extra)) {
$title = '<div class="panel-heading" '.$headerStyle.' >'.$extra.'</div>';
}
$footer = !empty($footer) ? '<div class="panel-footer">'.$footer.'</div>' : '';
$typeList = ['primary', 'success', 'info', 'warning', 'danger'];
$style = !in_array($type, $typeList) ? 'default' : $type;

Loading…
Cancel
Save