MOON
Server: Apache
System: Linux server.netcommlabs.in 3.10.0-1160.83.1.el7.x86_64 #1 SMP Wed Jan 25 16:41:43 UTC 2023 x86_64
User: dermova (1051)
PHP: 5.4.45
Disabled: exec,passthru,shell_exec,system
Upload Files
File: /home/dermova/www/india/wp-content/plugins/wr-megamenu/includes/gadget/tmpl/edit-element/form.php
<?php
/**
 * @version    $Id$
 * @package    WR MegaMenu
 * @author     WooRockets Team <support@woorockets.com>
 * @copyright  Copyright (C) 2014 WooRockets.com All Rights Reserved.
 * @license    GNU/GPL v2 or later http://www.gnu.org/licenses/gpl-2.0.html
 *
 * Websites: http://www.woorockets.com
 * Technical Support:  Feedback - http://www.woorockets.com
 */

// Make sure response header is HTML document
@header( 'Content-Type: ' . get_option( 'html_type' ) . '; charset=' . get_option( 'blog_charset' ) );

// Check if requesting form only
$form_only = ( isset( $_GET['form_only'] ) && absint( $_GET['form_only'] ) );

// Print HTML structure if not requesting form only
if ( ! $form_only ) :
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" lang="en-US">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
	<meta name="viewport" content="width=device-width,initial-scale=1.0" />
<?php
endif;

// Do necessary actions for loading header assets
if ( $form_only ) {
	ob_start();
}

if ( ! $form_only ) {
	do_action( 'mm_admin_enqueue_scripts' );
}

do_action( 'admin_print_styles'  );
do_action( 'admin_print_scripts' );

do_action( 'admin_head' );

if ( ! $form_only ) {
	do_action( 'mm_admin_head' );
}

if ( $form_only ) {
	ob_end_clean();

	// Do necessary actions for loading header assets
	do_action( 'mm_admin_enqueue_scripts' );
	do_action( 'mm_admin_print_styles' );
	do_action( 'mm_admin_print_scripts' );
	do_action( 'mm_admin_head' );
}

// Print HTML structure if not requesting form only
if ( ! $form_only ) :
?>
</head>
<body class="jsn-master contentpane">
<?php
endif;

// Print HTML code for element settings
echo '' . $data;

// Do necessary actions for loading footer assets

do_action( 'admin_footer' );
do_action( 'mm_admin_footer' );
do_action( 'admin_print_footer_scripts' );

// Register inline script if not previewing
if ( ! isset( $_GET['wr_shortcode_preview'] ) || ! $_GET['wr_shortcode_preview'] ) {
	$script = '
		if ($.HandleSetting && $.HandleSetting.init) $.HandleSetting.init();
';

	WR_Megamenu_Init_Assets::inline( 'js', $script, true );
}

// Print HTML structure if not requesting form only
if ( ! $form_only ) :
?>
</body>
</html>
<?php
endif;

// Exit immediately to prevent base gadget class from sending JSON data back
exit;