<?php

class MBContactFormSelect extends MBComponentBase {
    protected function init_options($options) {
        $options->enabled = true;
        $options->id = "inoby-contact-form-select";
        $options->title = __("Kontaktný formulár", "inoby");
        $options->icon = "email";
        $options->render_template = get_theme_file_path("components/contact-form-select/template.php");
        $options->fields = [
            [
                'name'        =>  __("Výber formulára", "inoby"),
                'id'          => 'contact_form_select',
                'type'        => 'post',
                'post_type'   => 'wpcf7_contact_form',
                'field_type'  => 'select_advanced',
                'placeholder' => 'Vyberte si formulár',
                'query_args'  => [
                    'post_status'    => 'publish',
                    'posts_per_page' => - 1,
                ],
            ],
        ];
    }
}