<?php

class MBGridGallery extends MBComponentBase {
  protected function init_options($options) {
    $options->enabled = true;
    $options->id = "inoby-grid-gallery";
    $options->title = __("Galéria obrázkov", "inoby");
    $options->icon = "fas fa-grip-horizontal";
    $options->render_template = get_theme_file_path("/components/grid-gallery/template.php");
    $options->fields = [
      [
        "id" => "images",
        "type" => "image_advanced",
        "name" => __("Obrázky", "inoby"),
        "max_file_uploads" => 8,
      ],
      [
        "type" => "group",
        "id" => "settings",
        "collapsible" => true,
        "default_state" => "collapsed",
        "group_title" => __("Nastavenia", "inoby"),
        "fields" => [
          [
            "id" => "has_lightbox",
            "type" => "checkbox",
            "name" => __("Povoliť lightbox", "inoby"),
          ],
        ],
      ],
    ];
  }
}