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/helpers/frontend.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
 */

class WR_Megamenu_Helpers_Frontend {

	/**
	 * Generate the arguments needed to create navigation
	 * @param array $args
	 */
	public function get_args( $args = array() ) {
		$walker	= new WR_Megamenu_Walker();

		$defaults = array(
			'container'       => 'div',
			'container_class' => 'wr-megamenu-container jsn-bootstrap3 '.$args['theme_location'].'_'.$args['profile_id'].'',
			'container_id'    => '',
			'menu_class'      => 'wr-mega-menu nav-menu',
			'menu_id'         => 'wr-megamenu-menu-' . $args['menu_type'],
			'menu'            => $args['menu_type'],
			'fallback_cb'     => 'wp_page_menu',
			'before'          => '',
			'after'           => '',
			'link_before'     => '',
			'link_after'      => '',
			'items_wrap'      => '<ul id="%1$s" class="%2$s">%3$s</ul>',
			'depth'           => 0,
			'walker'          => $walker,
		);
		$args = array_merge( $args, $defaults );
		return $args;
	}
}