<?php

class MBQuotes extends MBComponentBase {
  protected function init_options($options) {
    $options->enabled = true;
    $options->id = "inoby-quotes";
    $options->title = __("Citácia", "inoby");
    $options->icon = "superhero-alt";
    $options->render_template = get_theme_file_path("components/quotes/template.php");
    $options->fields = [
      [
        'id'       => 'component_quotes_quote_text',
        'name'    => __('Citácia', 'inoby'),
        'placeholder'   => __('Vložte Citáciu', 'inoby'),
        'type'     => 'textarea',
        'sanitize_callback' => 'none',
      ],
      [
        'id'       => 'component_quotes_name',
        'name'    => __('Meno a priezvisko', 'inoby'),
        'placeholder'   => __('Meno a priezvisko', 'inoby'),
        'type'     => 'text',
      ],
      [
        'id'       => 'component_quotes_autor_desc',
        'name'    => __('Informácia o autorovi', 'inoby'),
        'placeholder'   => __('Vložte text', 'inoby'),
        'type'     => 'text',
      ],
      [
        'id'               => "component_quotes_autor_img",
        'name'             => __('Fotka autora', 'inoby'),
        'type'             => 'image_advanced',
        'force_delete'     => false,
        'max_file_uploads' => 1,
        'max_status'       => false,
        'image_size'       => 'thumbnail',
      ],
    ];
  }
}