<?php

class MBContactSection extends MBComponentBase {
  protected function init_options($options) {
    $options->enabled = true;
    $options->id = "inoby-contact-section";
    $options->title = __("Sekcia s kontaktmi", "inoby");
    $options->icon = "columns";
    $options->render_template = get_theme_file_path("components/contact-section/template.php");
    $options->fields = [
      [
        'name' => __('Obsah na ľavej strane', 'inoby'),
        "id" => "contact_section_content_left",
        "type" => "wysiwyg",
        "raw" => false,
        "sanitize_callback" => "none",
        "options" => [
          "textarea_rows" => 4,
          "teeny" => true,
          "media_buttons" => false,
        ],
      ],
      [
        'type'     => 'divider',
      ],
      [
        'name' => __('Obsah na pravej strane', 'inoby'),
        "id" => "contact_section_content_right",
        "type" => "wysiwyg",
        "raw" => false,
        "sanitize_callback" => "none",
        "options" => [
          "textarea_rows" => 4,
          "teeny" => true,
          "media_buttons" => false,
        ],
      ],
      [
        'type'     => 'divider',
      ],
      [
        "type" => "checkbox",
        "id" => "contact_section_socials",
        "name" => __("Zobraziť sociálne siete", "inoby"),
      ],
      [
        "type" => "text",
        "id" => "contact_section_socials_text",
        "name" => __("Text ku sociálnym sieťam", "inoby"),
        "visible" => ["contact_section_socials", "match", ["true"]],
      ],
    ];
  }
}