<?php
function pg_metabox_aktivity($meta_boxes)
{
  $activites_metaboxes = [
    "id" => "activities",
    "title" => esc_html__("Zaujímavosti", "Inoby"),
    "post_types" => ["aktivity"],
    "context" => "side",
    "priority" => "default",
    "autosave" => "false",
    "fields" => [
      [
        'id'               => 'activities_interesting',
        'desc'             => __('Zobrazujú sa aj na archíve všetkých aktivít', 'podoblazom'),
        'add_button'             => __('Pridať ďalšiu zaujímavosť', 'podoblazom'),
        'type'             => 'text',
        'clone'         => true,
        "sort_clone" => true,
        'sanitize_callback' => 'none',
      ],
      [
        "name" => __("Galéria", "podoblazom"),
        "id" => "activities_gallery",
        "type" => "image_advanced",
        "force_delete" => false,
        "max_file_uploads" => 24,
      ],
      // activities_gallery
    ], 
  ];

  $meta_boxes[] = apply_filters("inoby_activites_metaboxes", $activites_metaboxes);

  return $meta_boxes;
}
add_filter("rwmb_meta_boxes", "pg_metabox_aktivity");
?>