Source of file ContentBlockSection.php
Size: 0,697 Bytes - Last Modified: 2021-12-24T05:19:11+00:00
/var/www/docs.ssmods.com/process/src/code/ContentBlockSection.php
1234567891011121314151617181920212223242526272829303132333435 | <?php /** * Page type for building unique custom content without the need for special templates * * @author Michael Eckert * * @package IQ_Content_Builder * */ class ContentBuilderSection extends ArrayList { public function Blocks() { return ArrayList::create($this->toArray()); } public function GridFieldPreview($parentURL=null,$gridField=null) { $html .= '<div class="cb-section col-'.$this->Count().'">'; foreach($this->toArray() as $block) { $html .= $block->GridFieldPreview($parentURL,$gridField); } $html .= '</div>'; return $html; } public function forTemplate() { return $this->renderWith(array($this->ClassName,'ContentBuilderSection')); } } |