Learn more about CSS Classes */ public string $cssClasses; /** * @a-type post_object * @post_type ["acf_views"] * @return_format id * @label ACF View * @required 1 * @instructions Assigned ACF View is used to display every post from the query results. */ public int $acfViewId; /** * @a-type tab * @label Filter */ public bool $filters; /** * @a-type select * @required 1 * @multiple 1 * @ui 1 * @label Post Type * @instructions Filter by post type. You can select multiple items */ public array $postTypes; /** * @a-type select * @required 1 * @multiple 1 * @ui 1 * @label Post Status * @instructions Filter by post status. You can select multiple items */ public array $postStatuses; /** * @required 1 * @label Limit * @instructions Maximum amount of posts, use '-1' to set 'unlimited' */ public int $limit; /** * @a-type post_object * @return_format id * @label Include posts in query * @multiple 1 */ public array $postIn; /** * @a-type post_object * @return_format id * @label Exclude posts from query * @multiple 1 */ public array $postNotIn; /** * @a-type tab * @label Sort */ public bool $orderTab; /** * @a-type select * @ui 1 * @required 1 * @label Order by * @instructions Select which field the view should be order by * @choices {"none":"None","ID": "ID","menu_order":"Menu order","meta_value":"Meta value","meta_value_num":"Meta value numeric","author": "Author","title": "Title","name": "Name","type": "Type","date": "Date","modified": "Modified","parent": "Parent","rand": "Rand","comment_count": "Comment count"} * @default_value none */ public string $orderBy; /** * @a-type select * @ui 1 * @required 1 * @label Order * @instructions Defines the sorting order of posts * @choices {"ASC":"Ascending","DESC": "Descending"} * @default_value ASC */ public string $order; /** * @label Order By Meta Field * @required 1 * @instructions Fill target field 'Name' from ACF Field Group * @conditional_logic [[{"field": "local_acf_views_acf-card-data__order-by","operator": "==","value": "meta_value"}],[{"field": "local_acf_views_acf-card-data__order-by","operator": "==","value": "meta_value_num"}]] */ public string $orderByMetaField; /** * @a-type tab * @label Advanced * @a-order 3 */ public bool $advanced; /** * @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. You should use '.acf-card--id--X' selector to match the current card, where 'X' means the current card id. To match items you should use '.acf-card--id--X .acf-view' selector, where 'X' means the current card id * @a-order 3 */ public string $cssCode; /** * @a-type textarea * @label JS Code * @instructions Add your own Javascript to your view. This is added to the view within <script></script> tags and wrapped into an anonymous function to avoid name conflicts. The code is added only once per page * @a-order 3 */ public string $jsCode; public static function getGroupInfo(): array { return array_merge(parent::getGroupInfo(), [ 'title' => 'Card settings', ]); } }