<?php
/**
 * Loader file for Site Menu plugin
 *
 * @category Plugins
 * @package  Mtc_Plugins
 * @author   mtc. Martins Fridenbergs <martins.fridenbergs@mtcmedia.co.uk>
 */

if (!defined('SITE_MENU_ENABLED')) {
    include_once __DIR__ . '/includes/install.php';
}
if(empty($menu)) {
    $menu = [];
}

// Add hooks
HooksAdapter::add_action(
    'load_site_menu',
    '\Mtc\Plugins\SiteMenu\Classes\SiteMenu::renderMenu',
    10,              // Priority - 10 is default
    3,               // Accepted args from hook
    [ $menu, $twig ] // forced args passed to hook
);
