Skip to content

Commit

Permalink
Merge pull request #2032 from CityOfPhiladelphia/mobile-menu-staging
Browse files Browse the repository at this point in the history
mobile menu loads depending on environment
  • Loading branch information
m-atia committed Nov 9, 2023
2 parents 5782626 + b6f8b3f commit 669e609
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions wp/wp-content/themes/phila.gov-theme/functions.php
Original file line number Diff line number Diff line change
Expand Up @@ -2272,9 +2272,10 @@ function inject_translation_slug($language)
}

function load_vue_mobile_menu() {
wp_enqueue_script('mobile-menu-chunk-js', 'https://www.phila.gov/embedded/mobile-menu/production/js/chunk-vendors.js?cachebreaker', array(), null, true );
wp_enqueue_script('mobile-menu-app-js', 'https://www.phila.gov/embedded/mobile-menu/production/js/app.js?cachebreaker', array(), null, true );
wp_enqueue_style('mobile-menu-app-css', 'https://www.phila.gov/embedded/mobile-menu/production/css/app.css?cachebreaker');
global $phila_environment;
wp_enqueue_script('mobile-menu-chunk-js', 'https://www.phila.gov/embedded/mobile-menu/'.$phila_environment.'/js/chunk-vendors.js?cachebreaker', array(), null, true );
wp_enqueue_script('mobile-menu-app-js', 'https://www.phila.gov/embedded/mobile-menu/'.$phila_environment.'/js/app.js?cachebreaker', array(), null, true );
wp_enqueue_style('mobile-menu-app-css', 'https://www.phila.gov/embedded/mobile-menu/'.$phila_environment.'/css/app.css?cachebreaker');
}

function load_vue_site_wide_alerts() {
Expand Down

0 comments on commit 669e609

Please sign in to comment.