protected function getColumnElement($contents) { $element = new Element('div'); $element->addClass($this->getAreaLayoutColumnClass())->id('ccm-layout-column-' . $this->arLayoutColumnID); $inner = new Element('div'); $inner->addClass('ccm-layout-column-inner'); $inner->setValue($contents); $element->appendChild($inner); return $element; }
public function getColumnHtmlObjectEditMode() { $column = $this->getPresetColumnObject(); if ($column) { $html = $column->getColumnHtmlObject(); $inner = new Element('div'); $inner->addClass('ccm-layout-column-inner ccm-layout-column-highlight'); $inner->setValue($this->getContents(true)); $html->appendChild($inner); return $html; } }
protected function getColumnElement($contents) { $element = new Element('div'); $element->addClass($this->getAreaLayoutColumnClass()); $gf = $this->arLayout->getThemeGridFrameworkObject(); if ($gf->hasPageThemeGridFrameworkOffsetClasses() && $this->getAreaLayoutColumnOffset()) { $element->addClass($this->getAreaLayoutColumnOffsetClass()); } $element->setValue($contents); if ($this->getAreaLayoutColumnOffset() > 0 && !$gf->hasPageThemeGridFrameworkOffsetClasses()) { $collection = new Collection(); $offset = new Element('div'); $offset->addClass($this->getAreaLayoutColumnOffsetClass())->addClass('ccm-theme-grid-offset-column'); $collection[0] = $offset; $collection[1] = $element; return $collection; } else { return $element; } }