<?php

function portage_mobile_menus(){
	echo '
<script type="text/javascript">
jQuery(document).ready(function() {
	jQuery("#aboveheadermenu").menumaker({
		title: "' . get_theme_mod( 'portage_top_menu_name' ) . '",
		breakpoint: ' . get_theme_mod( 'portage_top_menu_breakpoint' ) . ',
		format: "' . get_theme_mod( 'portage_top_menu_type' ) . '"
	});
	jQuery("#belowheadermenu").menumaker({
		title: "' . get_theme_mod( 'portage_main_menu_name' ) . '",
		breakpoint: ' . get_theme_mod( 'portage_main_menu_breakpoint' ) . ',
		format: "' . get_theme_mod( 'portage_main_menu_type' ) . '"
	});
	jQuery("#footermenu").menumaker({
		title: "' . get_theme_mod( 'portage_footer_menu_name' ) . '",
		breakpoint: ' . get_theme_mod( 'portage_footer_menu_breakpoint' ) . ',
		format: "' . get_theme_mod( 'portage_footer_menu_type' ) . '"
	});
});
</script>
';
}
add_action( 'wp_footer', 'portage_mobile_menus' );