protected function displaySummary(BuildingBlock $block)
 {
     if ($this->getMode('summary') > SiteView::MODE_NONE) {
         $type = BuildingBlockViewFactory::getViewType($block);
         switch ($type) {
             case 'building-block-audio':
                 $summary = Building::_('Audio Content');
                 break;
             case 'building-block-video':
                 $summary = Building::_('Video Content');
                 break;
             case 'building-block-image':
                 $summary = Building::_('Image Content');
                 break;
             case 'building-block-attachment':
                 $summary = Building::_('Attachment');
                 break;
             case 'building-block-xhtml':
             default:
                 $summary = Building::_('Text Content');
                 break;
         }
         $header = new SwatHtmlTag('h4');
         $header->setContent($summary);
         $header->class = 'building-block-admin-summary';
         $header->display();
     }
 }
 public function getViewForBlock(BuildingBlock $block)
 {
     return $this->getViewForType(BuildingBlockViewFactory::getViewType($block));
 }