SILENT KILLERPanel

Current Path: > home > > transcarter > public_html > wp-content > plugins > elementskit-lite > modules > megamenu


Operation   : Linux host59.registrar-servers.com 4.18.0-513.18.1.lve.2.el8.x86_64 #1 SMP Sat Mar 30 15:36:11 UTC 2024 x86_64
Software     : Apache
Server IP    : 198.54.126.42 | Your IP: 216.73.216.135
Domains      : 1034 Domain(s)
Permission   : [ 0755 ]

Files and Folders in: /home//transcarter/public_html/wp-content/plugins/elementskit-lite/modules/megamenu

NameTypeSizeLast ModifiedActions
assets Directory - -
views Directory - -
api.php File 1381 bytes July 17 2025 21:06:24.
init.php File 1957 bytes July 17 2025 21:06:24.
options.php File 4700 bytes July 17 2025 21:06:24.
walker-nav-menu.php File 12348 bytes July 17 2025 21:06:24.

Reading File: /home//transcarter/public_html/wp-content/plugins/elementskit-lite/modules/megamenu/api.php

<?php 
namespace ElementsKit_Lite;

use ElementsKit_Lite\Libs\Framework\Attr;
use ElementsKit_Lite\Modules\Megamenu\Init;

defined( 'ABSPATH' ) || exit;

class Megamenu_Api extends Core\Handler_Api {

	public function config() {
		$this->prefix = 'megamenu';
	}

	public function get_save_menuitem_settings() {
		if ( ! current_user_can( 'manage_options' ) ) {
			return;
		}
		$menu_item_id       = $this->request['settings']['menu_id'];
		$menu_item_settings = wp_json_encode( $this->request['settings'], JSON_UNESCAPED_UNICODE );
		update_post_meta( $menu_item_id, Init::$menuitem_settings_key, $menu_item_settings );

		return array(
			'saved'   => 1,
			'message' => esc_html__( 'Saved', 'elementskit-lite' ),
		);
	}

	public function get_get_menuitem_settings() {
		if ( ! current_user_can( 'manage_options' ) ) {
			return;
		}
		$menu_item_id = $this->request['menu_id'];

		$data = get_post_meta( $menu_item_id, Init::$menuitem_settings_key, true );
		return (array) json_decode( $data );
	}

	public function get_megamenu_content() {
		$menu_item_id = intval($this->request['id']);

		if ('publish' !== get_post_status ($menu_item_id) || post_password_required($menu_item_id)) {
			return;
		}

		$elementor = \Elementor\Plugin::instance();
		$output   = $elementor->frontend->get_builder_content_for_display($menu_item_id);

		return $output;
	}
}
new Megamenu_Api();

SILENT KILLER Tool