/** * @param Group $group * @param bool $offset * @return string */ private function getFieldColumnClass(Group $group, $offset = false) { $class = ['col-lg-' . ($group->getFieldSize('lg') ?: $this->getFieldSize('lg')), 'col-md-' . ($group->getFieldSize('md') ?: $this->getFieldSize('md')), 'col-sm-' . ($group->getFieldSize('sm') ?: $this->getFieldSize('sm')), 'col-xs-' . ($group->getFieldSize('xs') ?: $this->getFieldSize('xs'))]; if ($offset) { $class = array_merge($class, ['col-lg-offset-' . ($group->getLabelSize('lg') ?: $this->getLabelSize('lg')), 'col-md-offset-' . ($group->getLabelSize('md') ?: $this->getLabelSize('md')), 'col-sm-offset-' . ($group->getLabelSize('sm') ?: $this->getLabelSize('sm')), 'col-xs-offset-' . ($group->getLabelSize('xs') ?: $this->getLabelSize('xs'))]); } return implode(' ', $class); }
/** * @param Group $group * @return string */ private function getFieldColumnClass(Group $group) { $class = ['column', 'large-' . ($group->getFieldSize('lg') ?: $this->getFieldSize('lg')), 'medium-' . ($group->getFieldSize('md') ?: $this->getFieldSize('md')), 'small-' . ($group->getFieldSize('sm') ?: $this->getFieldSize('sm'))]; return implode(' ', $class); }