Skip to content

Commit 899b619

Browse files
committed
Honk
1 parent dfce42d commit 899b619

File tree

2 files changed

+15
-15
lines changed

2 files changed

+15
-15
lines changed

fw-child/apps/app-download.php

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* Template Name: Download app
3+
* Template Name: fw-child/apps/app-download.php
44
*
5-
* To ensure the download React app loads correctly without any JavaScript or CSS conflicts
5+
* To ensure the app loads correctly without any JavaScript or CSS conflicts
66
* with the theme's assets, a custom WP page template was created instead of using
77
* a builder template.
88
*
@@ -13,7 +13,7 @@
1313
$assets = cdc_app_asset_load( 'download' );
1414

1515
if ( ! is_array( $assets ) || empty( $assets ) ) {
16-
wp_die( 'Error: could not load the download app!' );
16+
wp_die( 'Error: could not load the app!' );
1717
}
1818

1919
// Initialize current language.
@@ -34,8 +34,8 @@
3434
];
3535

3636
$locale_data = cdc_extract_locale_data( 'react-apps', get_locale() );
37-
?>
3837

38+
?>
3939
<!DOCTYPE html>
4040
<html lang="<?php echo esc_attr( $current_lang ); ?>">
4141
<head>
@@ -48,7 +48,7 @@
4848
// Add favicon.
4949
add_favicon();
5050

51-
// Load the translation data for the download app
51+
// Load the translation data for the app
5252
if ( count( $locale_data ) ) {
5353
?>
5454
<script src="<?php echo esc_url( get_site_url() . '/wp-includes/js/dist/hooks.min.js' ); ?>"></script>
@@ -64,13 +64,13 @@
6464
?>
6565

6666
<script>
67-
// DATA URL for the download app
67+
// DATA URL for the app
6868
window.DATA_URL = '<?php echo isset( $GLOBALS['vars']['data_url'] ) ? htmlspecialchars( $GLOBALS['vars']['data_url'], ENT_QUOTES, 'UTF-8' ) : ''; ?>';
6969

7070
// Disable Leaflet's 3D features
7171
L_DISABLE_3D = true;
7272

73-
// WP AJAX URL for the download app
73+
// WP AJAX URL for the app
7474
window.wpAjaxUrl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';
7575
</script>
7676

fw-child/apps/app-map.php

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
<?php
22
/**
3-
* Template Name: Map app
3+
* Template Name: fw-child/apps/app-map.php
44
*
5-
* To ensure the map React app loads correctly without any JavaScript or CSS conflicts
5+
* To ensure the app loads correctly without any JavaScript or CSS conflicts
66
* with the theme's assets, a custom WP page template was created instead of using
77
* a builder template.
88
*
@@ -13,7 +13,7 @@
1313
$assets = cdc_app_asset_load( 'map' );
1414

1515
if ( ! is_array( $assets ) || empty( $assets ) ) {
16-
wp_die( 'Error: could not load the map app!' );
16+
wp_die( 'Error: could not load the app!' );
1717
}
1818

1919
// Initialize current language.
@@ -44,8 +44,8 @@
4444
];
4545

4646
$locale_data = cdc_extract_locale_data( 'react-apps', get_locale() );
47-
?>
4847

48+
?>
4949
<!DOCTYPE html>
5050
<html lang="<?php echo esc_attr( $current_lang ); ?>">
5151
<head>
@@ -58,7 +58,7 @@
5858
// Add favicon.
5959
add_favicon();
6060

61-
// Load the translation data for the map app
61+
// Load the translation data for the app
6262
if ( count( $locale_data ) ) {
6363
?>
6464
<script src="<?php echo esc_url( get_site_url() . '/wp-includes/js/dist/hooks.min.js' ); ?>"></script>
@@ -74,16 +74,16 @@
7474
?>
7575

7676
<script>
77-
// URL encoder salt for the map app
77+
// URL encoder salt for the app
7878
window.URL_ENCODER_SALT = '<?php echo isset( $GLOBALS['vars']['url_encoder_salt'] ) ? htmlspecialchars( $GLOBALS['vars']['url_encoder_salt'], ENT_QUOTES, 'UTF-8' ) : ''; ?>';
7979

80-
// DATA URL for the map app
80+
// DATA URL for the app
8181
window.DATA_URL = '<?php echo isset( $GLOBALS['vars']['data_url'] ) ? htmlspecialchars( $GLOBALS['vars']['data_url'], ENT_QUOTES, 'UTF-8' ) : ''; ?>';
8282

8383
// Disable Leaflet's 3D features
8484
L_DISABLE_3D = true;
8585

86-
// WP AJAX URL for the map app
86+
// WP AJAX URL for the app
8787
window.wpAjaxUrl = '<?php echo esc_url( admin_url( 'admin-ajax.php' ) ); ?>';
8888
</script>
8989

0 commit comments

Comments
 (0)