An updated theme (based on Atticus Finch) for ClassicPress
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
904 B

3 years ago
3 years ago
3 years ago
3 years ago
3 years ago
  1. <?php
  2. function portage_mobile_menus(){
  3. echo '
  4. <script type="text/javascript">
  5. jQuery(document).ready(function() {
  6. jQuery("#aboveheadermenu").menumaker({
  7. title: "' . get_theme_mod( 'portage_top_menu_name' ) . '",
  8. breakpoint: ' . get_theme_mod( 'portage_top_menu_breakpoint' ) . ',
  9. format: "' . get_theme_mod( 'portage_top_menu_type' ) . '"
  10. });
  11. jQuery("#belowheadermenu").menumaker({
  12. title: "' . get_theme_mod( 'portage_main_menu_name' ) . '",
  13. breakpoint: ' . get_theme_mod( 'portage_main_menu_breakpoint' ) . ',
  14. format: "' . get_theme_mod( 'portage_main_menu_type' ) . '"
  15. });
  16. jQuery("#footermenu").menumaker({
  17. title: "' . get_theme_mod( 'portage_footer_menu_name' ) . '",
  18. breakpoint: ' . get_theme_mod( 'portage_footer_menu_breakpoint' ) . ',
  19. format: "' . get_theme_mod( 'portage_footer_menu_type' ) . '"
  20. });
  21. });
  22. </script>
  23. ';
  24. }
  25. add_action( 'wp_footer', 'portage_mobile_menus' );