<?php

class MBSliderGallery extends MBComponentBase {
  protected function init_options($options) {
    $options->enabled = true;
    $options->id = "inoby-slider-gallery";
    $options->title = __("Slider s obrázkami", "inoby");
    $options->icon = "fas fa-images";
    $options->render_template = get_theme_file_path("components/slider-gallery/template.php");
    $options->fields = [
      [
        "id" => "images",
        "type" => "image_advanced",
        "name" => __("Obrázky", "inoby"),
      ],
      [
        "type" => "group",
        "id" => "settings",
        "collapsible" => true,
        "group_title" => __("Nastavenia", "inoby"),
        "fields" => [
          [
            "id" => "per_view",
            "type" => "number",
            "min" => 1,
            "max" => 6,
            "std" => 4,
            "name" => __("Počet slidov na zobrazenie (PC)", "inoby"),
            "hidden" => ["has_thumbs", "!=", ""],
          ],
          [
            "type" => "divider",
          ],
          [
            "id" => "has_lightbox",
            "type" => "checkbox",
            "name" => __("Povoliť lightbox", "inoby"),
            "std" => "on",
          ],
          [
            "id" => "has_thumbs",
            "type" => "checkbox",
            "name" => __("Povoliť náhľady", "inoby"),
          ],
          [
            "id" => "has_arrows",
            "type" => "checkbox",
            "name" => __("Povoliť šípky", "inoby"),
          ],
        ],
      ],
    ];
  }
}