Learn more about CSS Classes */ public string $cssClasses; /** * @item \org\wplake\acf_views\AcfGroups\Item * @var Item[] * @label Fields * @button_label Add Field * @a-no-accordion 1 * @a-order 2 */ public array $items; /** * @a-type tab * @label Advanced * @a-order 3 */ public bool $advanced; /** * @a-type textarea * @new_lines br * @label Markup * @instructions Output preview of HTML markup generated. Important! Publish or Update your view to see the latest markup * @a-order 3 */ public string $markup; /** * @a-type textarea * @label CSS Code * @instructions Define your CSS style rules. This is added to the view within <style></style> tags and only once per page * @a-order 3 */ public string $cssCode; private array $fieldsMeta; public function __construct($source = false, string $clonePrefix = '') { parent::__construct($source, $clonePrefix); $this->fieldsMeta = []; } public static function getAcfGroupInfo(): array { return array_merge(parent::getAcfGroupInfo(), [ 'title' => 'View settings', ]); } public function setFieldsMeta(array $fieldsMeta = [], bool $isForce = false): void { if ($fieldsMeta || $isForce) { $this->fieldsMeta = $fieldsMeta; return; } foreach ($this->items as $item) { $fieldId = $item->field->getAcfFieldId(); $this->fieldsMeta[$fieldId] = new FieldMeta($fieldId); } } public function getFieldsMeta(): array { return $this->fieldsMeta; } }