/**
  * @param BlockController $block
  * @param DecoratorParams $params
  *
  * @return mixed
  */
 public function render(BlockController $block, DecoratorParams $params)
 {
     $title = $block->getTitle();
     $header = '';
     if ($title) {
         $header = '<div class="panel-header"><div class="panel-header"><span>' . $title . '</span></div></div>';
     }
     return '<div class="panel ' . $params->get('scheme') . ' ' . $block->getCssClassName() . '">' . $header . '<div class="panel-body">' . $block->getContent() . '</div></div>';
 }
 /**
  * @param BlockController $block
  * @param DecoratorParams $params
  *
  * @return mixed
  */
 public function render(BlockController $block, DecoratorParams $params)
 {
     $title = $block->getTitle();
     $header = '';
     if ($title) {
         $header = '<div class="unit-header"><div class="unit-title"><span>' . $title . '</span></div></div>';
     }
     return '<div class="unit ' . $block->getCssClassName() . '">' . $header . '<div class="unit-content">' . $block->getContent() . '</div></div>';
 }
 /**
  * @param BlockController $block
  * @param DecoratorParams $params
  *
  * @return string
  */
 public function render(BlockController $block, DecoratorParams $params)
 {
     return $block->getContent();
 }