Example #1
0
 /**
  * @param Panel $control
  * @param Group $group
  */
 protected function extendPanel(Panel $control, Group $group = null)
 {
     if ($control->getMode() == 'panel:begin') {
         if (!$control->hasClass('panel')) {
             $control->addClass('panel');
         }
         if (empty(array_intersect($control->getCss(), $this->panelTypes))) {
             $control->addClass('panel-default');
         }
         $control->attr('heading', ['class' => 'panel-heading']);
         $control->attr('body', ['class' => 'panel-body']);
     }
     if ($control->getMode() == 'panel:end') {
         $control->attr('footer', ['class' => 'panel-footer']);
     }
 }
Example #2
0
 /**
  * @param Panel $control
  * @param Group $group
  */
 protected function extendPanel(Panel $control, Group $group = null)
 {
     if ($control->getMode() == 'panel:begin') {
         if (!$control->hasClass('panel')) {
             $control->addClass('panel');
         }
         $control->attr('heading', ['class' => 'panel-heading']);
         $control->attr('body', ['class' => 'panel-body']);
     }
     if ($control->getMode() == 'panel:end') {
         $control->attr('footer', ['class' => 'panel-footer']);
     }
 }