<?php

class MBSpacer extends MBComponentBase {
  protected function init_options($options) {
    $cfg = Inoby_Config::component("inoby-spacer");
    $options->enabled = true;
    $options->id = "inoby-spacer";
    $options->title = __("Medzera", "inoby");
    $options->icon = "editor-expand";
    $options->render_template = get_theme_file_path(
      "components/spacer/template.php",
    );
    $options->fields = [
      [
        "id" => "spacer_desktop",
        "name" => __("Medzera v px (desktop)", "inoby"),
        "type" => "number",
        "min" => 10,
        "max" => 1000,
        "step" => 1,
        "std" => $cfg["defaultSpaceDesktop"],
        "placeholder" => $cfg["defaultSpaceDesktop"],
      ],
      [
        "id" => "spacer_mobile",
        "name" => __("Medzera v px (mobil)", "inoby"),
        "type" => "number",
        "min" => 10,
        "max" => 1000,
        "step" => 1,
        "std" => $cfg["defaultSpaceMobile"],
        "placeholder" => $cfg["defaultSpaceMobile"],
      ],
    ];
  }
}
