<?php

class MBVikPackagesList extends MBComponentBase {
    protected function init_options($options) {
        $options->enabled = true;
        $options->id = "inoby-vik-packages-list";
        $options->title = __("Pobytové balíky", "inoby");
        $options->icon = "archive";
        $options->render_template = get_theme_file_path("components/vik-packages-list/template.php");
        $options->fields = [
            [
                "name" => "Nadpis",
                "id" => "vik_packages_head",
                "type" => "text",
            ],
            [
                "name" => "Text",
                "id" => "vik_packages_text",
                "type" => "textarea",
            ],
            [
                "id" => "vik_packages_list_count",
                "type" => "number",
                "std" => 2,
                "min" => 1,
                "max" => 6,
                "name" => __("Počet balíkov, ktoré sa majú zobraziť", "inoby"),
                "desc" => __("Povolené hodnoty sú 1 až 6", "inoby"),
            ],
            [
                 "type" => "divider",
            ],
            [
                "name" => "Odkaz - Text",
                "id" => "vik_packages_btntext",
                "type" => "text",
            ],
            [
                "name" => "Odkaz - URL",
                "id" => "vik_packages_btnurl",
                "type" => "text",
            ],
        ];
    }
}