atticus-finch/functions/mobile-menus.php

26 lines
782 B
PHP
Raw Normal View History

2016-02-13 18:23:12 +00:00
<?php
function atticus_finch_mobile_menus(){
echo '
<script type="text/javascript">
jQuery(document).ready(function() {
jQuery("#aboveheadermenu").menumaker({
title: "' . get_theme_mod('atticus_finch_top_menu_name') . '",
2016-02-13 18:23:12 +00:00
breakpoint: 640,
format: "' . get_theme_mod('atticus_finch_top_menu_type') . '"
2016-02-13 18:23:12 +00:00
});
jQuery("#belowheadermenu").menumaker({
title: "' . get_theme_mod('atticus_finch_main_menu_name') . '",
2016-02-13 18:23:12 +00:00
breakpoint: 640,
format: "' . get_theme_mod('atticus_finch_main_menu_type') . '"
2016-02-13 18:23:12 +00:00
});
jQuery("#footermenu").menumaker({
title: "' . get_theme_mod('atticus_finch_footer_menu_name') . '",
2016-02-13 18:23:12 +00:00
breakpoint: 640,
format: "' . get_theme_mod('atticus_finch_footer_menu_type') . '"
2016-02-13 18:23:12 +00:00
});
});
2016-02-13 18:23:12 +00:00
</script>
';
}
add_action( 'wp_footer', 'atticus_finch_mobile_menus' );