wordpress/wp-content/themes/basic/themify/megamenu/class-mega-menu.php
/**
		 * render a widget menu item
		 *
		 * $depth level
		 * $class_names additional CSS classes to add to the menu wrapper
		 * @return string
		 */
render a widget menu item
$depth level
$class_names additional CSS classes to add to the menu wrapper
@return string
render a widget menu item $depth level $class_names additional CSS classes to add to the menu wrapper @return string
function render_widget_menu( $item, $depth, $class_names = '' ) {
			$output = '';
			if( $depth === 0 ) {
				$title = apply_filters( 'the_title', $item->title, $item->ID );
				$output = "<li $class_names><a href='#'>" . $title . '<span class="child-arrow"></a></span><ul class="sub-menu tf_box">';
			}
			$menu_widget = Themify_Widgets_Menu::get_instance()->get_widget_menu_class( $item );
			$output .= '<li class="themify-widget-menu">' . Themify_Widgets_Menu::get_instance()->render_widget(
				$menu_widget,
				Themify_Widgets_Menu::get_instance()->get_widget_options( $item->ID ),
				array(
					'widget_id' => $item->ID 
				)
			) . '';
			if( $depth === 0 ) {
				$output .= '</ul>';
			}
			return $output;
		}
function render_widget_menu ( $ item , $ depth , $ class_names = '' ) { $ output = '' ; if ( $ depth === 0 ) { $ title = apply_filters ( 'the_title' , $ item -> title , $ item -> ID ) ; $ output = " <li  $ class_names ><a href='#'> " . $ title . '<span class="child-arrow"></a></span><ul class="sub-menu tf_box">' ; } $ menu_widget = Themify_Widgets_Menu :: get_instance ( ) -> get_widget_menu_class ( $ item ) ; $ output .= '<li class="themify-widget-menu">' . Themify_Widgets_Menu :: get_instance ( ) -> render_widget ( $ menu_widget , Themify_Widgets_Menu :: get_instance ( ) -> get_widget_options ( $ item -> ID ) , array ( 'widget_id' => $ item -> ID ) ) . '' ; if ( $ depth === 0 ) { $ output .= '</ul>' ; } return $ output ; }
render a widget menu item
 $depth level
 $class_names additional CSS classes to add to the menu wrapper
 @return string
render a widget menu item $depth level $class_names additional CSS classes to add to the menu wrapper @return string
// widget_id is required, some widgets use it