<?php

/**
 * Tento subor sa nevola priamo ale vola ho WP cez mechanizmus Must Use pluginov
 * https://wordpress.org/support/article/must-use-plugins/
 *
 */

// poznacim si ze som loadol must use pluginy
define("INOBY_MU_PLUGINS_LOADED", true);

// pomocne funkcie
require_once __DIR__ . "/inoby/inoby-functions.php";

// konstanty z wp-config
require_once __DIR__ . "/inoby/wp-config.php";

// confg temy
require_once __DIR__ . "/../config/config.php";

require_once __DIR__ . "/inoby/class-inoby-http.php";

// default plugins installation
require_once __DIR__ . "/inoby/plugins-register.php";
require_once __DIR__ . "/inoby/plugins-activation.php";

// meta boxes
require_once __DIR__ . "/meta-box/meta-box.php";
require_once __DIR__ . "/mb-settings-page/mb-settings-page.php";
require_once __DIR__ .
  "/meta-box-conditional-logic/meta-box-conditional-logic.php";
require_once __DIR__ . "/meta-box-tabs/meta-box-tabs.php";
require_once __DIR__ . "/meta-box-group/meta-box-group.php";
require_once __DIR__ . "/meta-box-show-hide/meta-box-show-hide.php";
require_once __DIR__ . "/mb-term-meta/mb-term-meta.php";
require_once __DIR__ . "/mb-blocks/mb-blocks.php";
require_once __DIR__ . "/mb-blocks-wpml/mb-blocks-wpml.php";
require_once __DIR__ . "/mb-admin-columns/mb-admin-columns.php";
require_once __DIR__ . "/mb-revision/mb-revision.php";
require_once __DIR__ . "/meta-box-columns/meta-box-columns.php";
require_once __DIR__ . "/meta-box-text-limiter/text-limiter.php";
require_once __DIR__ . "/meta-box-yoast-seo/mb-yoast-seo.php";

// init inoby theme settings
require_once __DIR__ . "/inoby/theme-settings.php";

// db collation fix plugin
if (!realpath(WP_PLUGIN_DIR . "/database-collation-fix")) {
  require_once __DIR__ . "/database-collation-fix/databasecollationfix.php";
}

// mediabay multimedia folders plugin
if (!realpath(WP_PLUGIN_DIR . "/mediabay") && Inoby_Config::media_folders()) {
  require_once __DIR__ . "/mediabay/mediabay.php";
}
