forked from qwerty/tupali
Mejoras SEO para mapero.php
This commit is contained in:
parent
8d6895766e
commit
0e42df02a7
46
mapero.php
46
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";
|
||||
?>
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head >
|
||||
<title><?php echo $formulario_nombre[0] ?> MILFS</title>
|
||||
<title><?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co</title>
|
||||
<meta charset="utf-8">
|
||||
<!-- <meta name="viewport" content="user-scalable=no, width=device-width, maximum-scale=1, initial-scale=1"> -->
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<!-- <meta name="viewport" content="width=device-width, initial-scale=1"> -->
|
||||
<meta name="description" content="">
|
||||
<meta NAME="Language" CONTENT="Spanish">
|
||||
<meta NAME="Revisit" CONTENT="1 days">
|
||||
<meta NAME="Distribution" CONTENT="Global">
|
||||
<meta NAME="Robots" CONTENT="All">
|
||||
<meta name="twitter:card" content="summary">
|
||||
<meta name="twitter:site" content="<?php echo $twitter[0]; ?>">
|
||||
<meta name="twitter:creator" content="@qwerty_co">
|
||||
<meta name="twitter:url" content="<?php echo $uri ; ?>">
|
||||
<meta name="twitter:title" content="<?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co">
|
||||
<meta name="twitter:description" content=" <?php echo $descripcion_meta; ?>">
|
||||
<meta name="twitter:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>">
|
||||
<meta property="og:type" content="article">
|
||||
<meta property="og:title" content="<?php echo "$formulario_nombre[0] / $cadena_busqueda" ?> tupale.co" />
|
||||
<meta property="og:type" content="website" />
|
||||
<meta property="og:url" content="<?php echo "$uri"; ?>" />
|
||||
<meta property="og:image" content="<?php echo "$_SESSION[url]images/secure/?file=full/$background_imagen"; ?>" />
|
||||
<meta property="og:site_name" content="<?php echo $razon_social[0]; ?>" />
|
||||
<meta property="og:description" content=" <?php echo $descripcion_meta; ?>" />
|
||||
<link rel="shortcut icon" href="<?php echo "milfs/images/secure/?file=150/$logo[0]"; ?>">
|
||||
<?php $xajax->printJavascript("milfs/xajax/"); ?>
|
||||
<link rel="shortcut icon" href="favicon-152.png">
|
||||
<link rel="apple-touch-icon-precomposed" href="favicon-152.png">
|
||||
@ -41,23 +66,12 @@ $plantilla ="mapa";
|
||||
<script src="librerias/leaflet/leaflet-providers.js"></script>
|
||||
<script src="librerias/leaflet/leaflet-search.js"></script>
|
||||
<link rel="stylesheet" type="text/css" media="screen" href="milfs/css/bootstrap.css">
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="librerias/leaflet/leaflet.css" />
|
||||
<script src="librerias/leaflet/leaflet.js"></script>
|
||||
|
||||
|
||||
|
||||
|
||||
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.css" />
|
||||
<link rel="stylesheet" href="librerias/leaflet/dist/MarkerCluster.Default.css" />
|
||||
<script src="librerias/leaflet/dist/leaflet.markercluster-src.js"></script>
|
||||
|
||||
<script type="text/javascript" src="milfs/geojson.js.php?id=<?php echo $_REQUEST['id'] ?>&buscar=<?php echo $_REQUEST['buscar'] ?>"></script>
|
||||
<!-- <script type="text/javascript" src="http://localhost/default/tupali/milfs/geojson.js.php?id=358"></script> -->
|
||||
<!-- <script type="text/javascript" src="tmp/ruta_paz_territorial.geojson"></script> -->
|
||||
<?php
|
||||
$otro_json = remplacetas('form_parametrizacion','campo',$_REQUEST[id],'descripcion'," tabla='form_id' and opcion = 'json'") ;;
|
||||
//$obj = file_get_contents('https://www.kleper.net/wiki/RutaPazTerritorial.geojson');
|
||||
@ -101,8 +115,7 @@ $ids = json_decode($otro_json[0]);
|
||||
var overlays = $capas ";
|
||||
}
|
||||
}
|
||||
//$obj=file_get_contents("$otro_json[0]");
|
||||
//echo "<script>var geojsonAuxiliar = $obj ;</script>";
|
||||
|
||||
echo $li;
|
||||
|
||||
?>
|
||||
@ -329,7 +342,7 @@ $leyenda ="<div id='div_leyenda'><a class='btn btn-default btn-xs' onclick=xaja
|
||||
|
||||
var tiles = L.tileLayer('https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', {
|
||||
maxZoom: 18,
|
||||
attribution: '© <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
attribution: '<a href="https://tupale.co">https://tupale.co</a> © <a href="https://openstreetmap.org/copyright">OpenStreetMap</a> contributors'
|
||||
}),
|
||||
latlng = L.latLng(4, -74.9005222);
|
||||
|
||||
@ -344,6 +357,7 @@ $leyenda ="<div id='div_leyenda'><a class='btn btn-default btn-xs' onclick=xaja
|
||||
iconAnchor: [13, 27],
|
||||
popupAnchor: [1, -24],
|
||||
iconUrl: feature.properties.icon.iconUrl
|
||||
|
||||
/* iconUrl: "http://localhost/default/tupali/milfs/images/secure/?file=150/da6d16547658ebc06c5378b30d1ee4bf.png"*/
|
||||
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user