<? if ( !isset($microdata) || $microdata != "si" ) { ?>
<!-- microdatos -->
<? /*
Corporate Contact info
logo
*/
?>
<script type="application/ld+json">
{
"@context": "http://schema.org",
"@type": "Organization",
"url": "<?=PROTOCOL.DOMAIN_NAME?>",
"logo": "<?=PROTOCOL.DOMAIN_NAME?>logo.png", /* minimo 112x112 */
"contactPoint": [{
"@type": "ContactPoint",
"telephone": "+34 <?=$row_dir['tel']?>",
"contactType": "customer service"
}]
<? $result_microdata_redes = mysqli_query($conn,$consulta_redes);
if(mysqli_num_rows($result_microdata_redes) > 0) { //microdatos redes ?>
,"sameAs": [ //redes
<?
$cuento_redes = 1;
while ($row_microdata_redes = mysqli_fetch_assoc($result_microdata_redes)){ ?>
"<?=$row_microdata_redes['enlace']?>" <? if ( $cuento_redes < mysqli_num_rows($result_microdata_redes) ) { echo ",\n"; } ?>
<?
$cuento_redes++;
} ?>
]
<? } ?>
}
</script>
<!-- fin microdatos-->
<? } ?>