Source of file NLInlineLayout.php
Size: 0,710 Bytes - Last Modified: 2021-12-23T10:05:39+00:00
/var/www/docs.ssmods.com/process/src/code/layout/NLInlineLayout.php
123456789101112131415161718192021222324252627282930313233343536 | <?php class NLInlineLayout extends NLLayoutComponent { static public function get_metadata() { return array( "name" => "Inline layout", "description" => "Lets you group other items, and displays them inline.", "imageURL" => null ); } function containerClasses($context) { $result = parent::containerClasses($context); $v = $this->getBindingValues($context); if ($v->Orientation == "Horizontal") { $result[] = "box-horiz"; } else { $result[] = "box-vert"; } return $result; } function renderContent($context) { $content = ""; if ($this->children) { foreach ($this->children as $child) { $content .= $child->render($context); } } return $content; } } |