<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <link href="https://cdn.jsdelivr.net/npm/bootstrap@5.3.0-alpha1/dist/css/bootstrap.min.css" rel="stylesheet"
        integrity="sha384-GLhlTQ8iRABdZLl6O3oVMWSktQOp6b7In1Zl3/Jr59b6EGGoI1aFkw7cmDA6j6gD" crossorigin="anonymous">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.3.0/css/all.min.css"
        integrity="sha512-SzlrxWUlpfuzQ+pcUCosxcglQRNAq/DZjVsC0lE40xsADsfeQoEypE+enwcOiGjk/bSuGGKHEyjSoQ1zVisanQ=="
        crossorigin="anonymous" referrerpolicy="no-referrer" />
</head>
</html>
<?php
/**
 * Generic compatibility class.
 *
 * Author:          
 * Created on:      2019-06-05
 *
 * @package generic.php
 */

namespace Solace\Compatibility;

/**
 * Class Generic
 *
 * @package Solace\Compatibility
 */
class Generic {
	/**
	 * Init function.
	 */
	public function init() {
		if ( class_exists( 'Mega_Menu', false ) ) {
			add_filter( 'megamenu_themes', array( $this, 'max_megamenu_theme' ) );
		}
	}

	/**
	 * Max Mega Menu Hestia Compatibility
	 *
	 * @param array $themes the themes.
	 *
	 * @return array
	 **/
	public function max_megamenu_theme( $themes ) {
		$themes['solace_max_mega_menu'] = array(
			'title'                           => 'Solace',
			'menu_item_link_height'           => '50px',
			'menu_item_align'                 => 'right',
			'container_background_from'       => 'rgba(255, 255, 255, 0)',
			'container_background_to'         => 'rgba(255, 255, 255, 0)',
			'menu_item_background_hover_from' => 'rgba(255, 255, 255, 0.1)',
			'menu_item_background_hover_to'   => 'rgba(255, 255, 255, 0.1)',
			'menu_item_link_color'            => '#555',
			'menu_item_link_color_hover'      => '#0366d6',
			'menu_item_highlight_current'     => 'off',
			'panel_background_from'           => 'rgb(255, 255, 255)',
			'panel_background_to'             => 'rgb(255, 255, 255)',
			'responsive_breakpoint'           => '959px',
			'resets'                          => 'on',
			'toggle_background_from'          => 'rgba(255, 255, 255, 0.1)',
			'toggle_background_to'            => 'rgba(255, 255, 255, 0.1)',
			'toggle_font_color'               => 'rgb(102, 102, 102)',
			'mobile_background_from'          => 'rgb(255, 255, 255)',
			'mobile_background_to'            => 'rgb(255, 255, 255)',
			'mobile_menu_item_link_color'     => 'rgb(102, 102, 102)',
			'responsive_text'                 => '',
		);

		return $themes;
	}

}
