fixed pbm var env name in env docker

This commit is contained in:
lenovo
2022-10-29 20:57:06 +02:00
parent 4dca5a4760
commit 92cb24cb89
5 changed files with 8 additions and 10 deletions

View File

@@ -1 +0,0 @@
/home/www-data//google_map

View File

@@ -1 +0,0 @@
/home/www-data//map_prof

View File

@@ -14,7 +14,7 @@ function my_init_script() {
wp_enqueue_style('my_style', $style_path);
}
// if bock theme : https://wordpress.org/support/topic/twenty-twenty-two-cpt-template-error-theme-without-header-is-deprecated/
// if block theme : https://wordpress.org/support/topic/twenty-twenty-two-cpt-template-error-theme-without-header-is-deprecated/
function add_map_api(){
?>
<script type="text/javascript" src="https://www.openstreetmap.org/openlayers/OpenStreetMap.js"></script>
@@ -106,7 +106,7 @@ function print_content($content){
});
}
</script>';
$content .= '<script async defer src="https://maps.googleapis.com/maps/api/js?key=AIzaSyCvdGV2ssD4ov4a9CuIlQhoJyz5gWWiSvE&callback=initMap"></script>';
$content .= '<script async defer src="https://maps.googleapis.com/maps/api/js?sensor=false&key=AIzaSyCvdGV2ssD4ov4a9CuIlQhoJyz5gWWiSvE&callback=initMap"></script>';
return $content;
};