'; print_r($_SERVER); $rootSite=$_SERVER['DOCUMENT_ROOT']; $cartellatema=$_SERVER['DOCUMENT_ROOT'].'/wp-content/themes/motorionline2018/'; $cartellacss='/wp-content/themes/motorionline2018'; $urlSite='https://www.motorionline.com'; $urlTema=$urlSite.'/wp-content/themes/motorionline2018/'; include($cartellatema.'include/settings.php'); if( $_SERVER['REQUEST_URI']=='/marche-veicoli-commerciali/' ){ $GLOBALS['ThisSite']='commerciali'; $GLOBALS['menuSet']='commerciali'; }else{ $GLOBALS['ThisSite']='auto'; $GLOBALS['menuSet']='auto'; } //if( $_SERVER['SCRIPT_NAME'] == '/foto/index.php' ){ $GLOBALS['ThisSite']='auto'; } echo ''; ?> <? echo $titolopagina;?> setTimeout("window.location=''",12000) * / ?> var directions = new google.maps.DirectionsService(); var renderer = new google.maps.DirectionsRenderer(); var map, trafficLayer; function initialize() { var mapOptions = { zoom: 5, center: new google.maps.LatLng(41.892918,12.482529), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById('map'), mapOptions); var trafficLayer = new google.maps.TrafficLayer(); trafficLayer.setMap(map); google.maps.event.addDomListener(document.getElementById('go'), 'click', route); var input = document.getElementById('from'); var autocomplete = new google.maps.places.Autocomplete(input); autocomplete.bindTo('bounds', map); var input2 = document.getElementById('to'); var autocomplete2 = new google.maps.places.Autocomplete(input2); autocomplete2.bindTo('bounds', map); var control = document.getElementById('traffic-wpr'); map.controls[google.maps.ControlPosition.TOP_RIGHT].push(control); google.maps.event.addDomListener(control, 'click', function() { trafficLayer.setMap(trafficLayer.getMap() ? null : map); }); route(); } function route() { var request = { origin: document.getElementById('from').value, destination: document.getElementById('to').value, travelMode: google.maps.DirectionsTravelMode.DRIVING, provideRouteAlternatives: true, durationInTraffic: true }; var panel = document.getElementById('panel'); panel.innerHTML = ''; directions.route(request, function(response, status) { if (status == google.maps.DirectionsStatus.OK) { renderer.setDirections(response); renderer.setMap(map); renderer.setPanel(panel); }else{ renderer.setMap(null); renderer.setPanel(null); } }); } google.maps.event.addDomListener(window, 'load', initialize); */ ?> ?> >
IN EVIDENZA