From 0e42df02a7df8c6167e4f6d7ef8ee906d642331a Mon Sep 17 00:00:00 2001 From: fredyrivera Date: Sun, 15 Oct 2017 18:41:18 -0500 Subject: [PATCH] Mejoras SEO para mapero.php --- mapero.php | 46 ++++++++++++++++++++++++++++++---------------- 1 file changed, 30 insertions(+), 16 deletions(-) diff --git a/mapero.php b/mapero.php index c48639a..ef68b6b 100644 --- a/mapero.php +++ b/mapero.php @@ -10,27 +10,52 @@ require ("milfs/funciones/conex.php"); $xajax->processRequests(); //if($_REQUEST[id2] =='') {$agregar= $_REQUEST[id];}else {$agregar = $_REQUEST[id2];} if(isset($_REQUEST[categoria]) AND isset($_REQUEST[buscar])) { -$_REQUEST[buscar] = "$_REQUEST[categoria]:$_REQUEST[buscar]"; + $cadena_busqueda = "$_REQUEST[buscar]"; +$_REQUEST['buscar'] = "$_REQUEST[categoria]:$_REQUEST[buscar]"; } $formulario_nombre = remplacetas('form_id','id',$_REQUEST[id],'nombre') ; $formulario_descripcion = remplacetas('form_id','id',$_REQUEST[id],'descripcion') ; +$descripcion_meta = preg_replace("[\n|\r|\n\r|\t]",'', strip_tags($formulario_descripcion[0])); $agregar_nombre = remplacetas('form_id','id',$agregar,'nombre') ; $id_empresa = remplacetas('form_id','id',$_REQUEST[id],'id_empresa') ; +$twitter = remplacetas('empresa','id',"$id_empresa[0]",'twitter','') ; +if($twitter[0] =="") {$twitter[0] ="@tupaleCo";} $logo = remplacetas('empresa','id',"$id_empresa[0]",'imagen','') ; $razon_social = remplacetas('empresa','id',"$id_empresa[0]",'razon_social','') ; $campos_formulario = input_campos("$_REQUEST[id]","categoria"); +$uri = "$_SERVER[SERVER_NAME]/$_SERVER[REQUEST_URI]"; +$background_imagen = buscar_imagen("$_REQUEST[id]","","","$id_empresa"); $plantilla ="mapa"; ?> - <?php echo $formulario_nombre[0] ?> MILFS + <?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co + + + + + + + + + tupale.co"> + +"> + + tupale.co" /> + +" /> +" /> + + + "> printJavascript("milfs/xajax/"); ?> @@ -41,23 +66,12 @@ $plantilla ="mapa"; - - - - - - - - - - - var geojsonAuxiliar = $obj ;"; + echo $li; ?> @@ -329,7 +342,7 @@ $leyenda ="
OpenStreetMap contributors' + attribution: 'https://tupale.co © OpenStreetMap contributors' }), latlng = L.latLng(4, -74.9005222); @@ -344,6 +357,7 @@ $leyenda ="