WPDKUIControlsLayout::_processRows PHP Method

_processRows() private method

Processing a single row within one or more items (controls array)
private _processRows ( array $rows )
$rows array
    private function _processRows($rows)
    {
        foreach ($rows as $item) {
            if (is_string($item) && !empty($item)) {
                ?>
        <div class="wpdk-form-description"><?php 
                echo $item;
                ?>
</div><?php 
            } elseif (isset($item['type'])) {
                $this->_processItem($item);
            } elseif (isset($item['container'])) {
                echo apply_filters('wpdk_form_html_group_before', $this->container($item), $item);
                $this->_processRows($item['container']);
                echo apply_filters('wpdk_form_html_group_after', '</div>', $item);
            } elseif (!empty($item)) {
                echo apply_filters('wpdk_form_html_row_before', '<div class="wpdk-form-row">', $item);
                $this->_processRows($item);
                echo apply_filters('wpdk_form_html_row_after', '</div>', $item);
            }
        }
    }