<?php

// img w text
add_filter("component_add_mb_img-with-text", function ($mb) {
    $mb[] = 
    [
      "type" => "divider",
    ];
    $mb[] = [
      "name" => "Text",
      "id" => "text",
      "type" => "textarea",
    ];
    $mb[] = [
      "name" => "Slogan",
      "id" => "slogan",
      "type" => "text",
      "position" => 1,
      "after_id" => "img-alt-text",
    ];
    $mb[] = [
      "name" => "Nadpis",
      "id" => "heading",
      "type" => "text",
      "position" => 2,
      "after_id" => "img-alt-text",
      "sanitize_callback" => "none",
    ];
    $mb[] = [
      "name" => "Podnadpis",
      "id" => "subheading",
      "type" => "text",
      "position" => 3,
      "after_id" => "img-alt-text",
      "sanitize_callback" => "none",
    ];
    return $mb;
}, 10);
// img w text

// slider gallery
add_filter("component_add_mb_inoby-slider-gallery", function ($mb) {
  $mb[] = [
    "name" => "Nadpis",
    "id" => "heading",
    "type" => "text",
    "position" => 2,
    "after_id" => "images",
  ];
  return $mb;
}, 10);
// slider gallery

// references
add_filter("component_add_mb_inoby-references", function ($mb) {
  $mb[] = [
    "name" => "Nadpis",
    "id" => "heading",
    "type" => "text",
    "position" => 2,
    "after_id" => "images",
  ];
  return $mb;
}, 10);
// references