HEX
Server: Apache/2
System: Linux server-27-254-144-72.da.direct 5.10.0-33-amd64 #1 SMP Debian 5.10.226-1 (2024-10-03) x86_64
User: pokaorgani (1114)
PHP: 8.1.33
Disabled: exec,system,passthru,shell_exec,proc_close,proc_open,dl,popen,show_source,posix_kill,posix_mkfifo,posix_getpwuid,posix_setpgid,posix_setsid,posix_setuid,posix_setgid,posix_seteuid,posix_setegid,posix_uname
Upload Files
File: /home/pokaorgani/public_html/wp-content/plugins/megamenu/integration/twentyseventeen/functions.php
<?php

if ( ! defined( 'ABSPATH' ) ) {
    exit; // disable direct access
}

/**
 * Append integration CSS
 */
function megamenu_twentyseventeen_style($scss) {
    $path = trailingslashit( plugin_dir_path( __FILE__ ) ) . 'style.scss';
    $contents = file_get_contents( $path );
    return $scss . $contents;
}
add_filter( 'megamenu_load_scss_file_contents', 'megamenu_twentyseventeen_style', 9999 );


/**
 * TwentySeventeen JavaScript helper
 */
function megamenu_twentyseventeen_script() {
    wp_enqueue_script( "megamenu-twentyseventeen", plugins_url( 'script.js' , __FILE__ ), array('megamenu'), MEGAMENU_VERSION, true );
}
add_action( 'wp_enqueue_scripts', 'megamenu_twentyseventeen_script', 999 );


/**
 * Restore menu-item class on menu items. Required for the sticky menu to work.
 */
function megamenu_twentyseventeen_add_menu_item_class($classes) {
    $classes[] = 'menu-item';
    return $classes;
}
add_filter( 'megamenu_nav_menu_css_class', 'megamenu_twentyseventeen_add_menu_item_class', 9999 );