Example #1
0
 public function BackendName()
 {
     if (!$this->content) {
         return 'block';
     }
     $block = ContentBlock::Schema()->ByContent($this->content);
     $result = $block->GetTagName();
     if ($this->content->GetCssID()) {
         $result .= ' #' . $this->content->GetCssID();
     } else {
         if ($this->content->GetCssClass()) {
             $result .= ' .' . $this->content->GetCssClass();
         }
     }
     return $result;
 }
Example #2
0
 /**
  * Returns the adjusted block
  * @return block
  */
 protected function SaveElement()
 {
     $this->block->SetTagName($this->Value('TagName'));
     return $this->block;
 }