<?php

class MbColumns extends MBComponentBase
{
  protected function init_options($options)
  {
    $options->enabled = true;
    $options->id = "inoby-columns";
    $options->title = __("Stĺpce", "inoby");
    $options->icon = "columns";
    $options->render_template = get_theme_file_path("components/columns/template.php");
    $options->fields = [
      //num of columns on desktop
      [
        'name'      => __('Počet stĺpcov na desktope', 'inoby'),
        'id'              => 'group_columns_desktop',
        'type' => 'number',
        'min'   => 1,
        'max'   => 6,
        'step'  => 1,
      ],
      //num of columns on tablet
      [
        'name'      => __('Počet stĺpcov na tablete', 'inoby'),
        'id'              => 'group_columns_tablet',
        'type' => 'number',
        'min'   => 1,
        'max'   => 6,
        'step'  => 1,
      ],
      //num of columns on mobile
      [
        'name'      => __('Počet stĺpcov na mobile', 'inoby'),
        'id'              => 'group_columns_mobile',
        'type' => 'number',
        'min'   => 1,
        'max'   => 6,
        'step'  => 1,
      ],
    ];
  }
}
