get_results(“select *, primatas_registros.ID as ID_primatas_registros, primatas_registros.local_latitude as local_latitude_primatas, primatas_registros.local_longitude as local_longitude_primatas, primatologos.ID as primatologo_ID, primatologos.foto as primatologos_foto, primatologos.permalink as permalink_primatolgos,primatologos.description as primatologos_description, primatas_registros.permalink as permalink_primatas, primatas_registros.description as primatas_description from primatas_registros inner join primatologos on primatologos.ID = primatas_registros.ID_primatologos inner join primatas on primatas_registros.ID_primatas = primatas.ID where primatas_registros.slug = ‘”.$query.”‘ limit 0, 1″);
if ( count($ape) > 0 ){
foreach($ape as $a){
$apes_counter = $wpdb -> get_results(“select * from primatas_registros where ID_primatologos = “.$a -> primatologo_ID .””);
$projects = $wpdb -> get_results(“select * from primatologos_projetos where ID_primatologos = “.$a -> primatologo_ID .””);
$primatologo_nome = $a -> nome;
$primatologo_nome_completo = $a -> nome.” “.$a -> sobrenome;
$permalink_primatolgos = $a -> permalink_primatolgos;
$ID_primatas_registros = $a -> ID_primatas_registros;
$permalink_primatas = $a -> permalink_primatas;
$outros_nomes = $a -> outros_nomes;
$nome_cientifico = $a -> nome_cientifico;
$ameacas = $a -> ameacas;
$primatas_path_files = $a -> path_files;
$local_latitude = $a -> local_latitude_primatas;
$local_longitude = $a -> local_longitude_primatas;
$featured_image = $a -> featured_image;
$primatologos_description = $a -> primatologos_description;
$primatas_description = $a -> primatas_description;
$primatologos_foto = $a -> primatologos_foto;
$primatologo_sharenets = $a -> share_redes;
$primatologo_instituicao = $a -> ed_nome;
$sharenets_site = “”;
$sharenets_facebook = “”;
$sharenets_linkedin = “”;
$sharenets_instagram = “”;
$sharenets_twitter = “”;
$sharenets_curriculo = “”;
$nets = $wpdb->get_results(“select * from primatologos_redes where ID_primatologos = “.$_SESSION[“primatologo_code”].””);
if (count($nets)>0){
foreach ($nets as $n){
switch ($n->nome_rede) {
case ‘site’:
$sharenets_site = $n -> url_rede;
break;
case ‘facebook’:
$sharenets_facebook = $n -> url_rede;
break;
case ‘linkedin’:
$sharenets_linkedin = $n -> url_rede;
break;
case ‘instagram’:
$sharenets_instagram = $n -> url_rede;
break;
case ‘twitter’:
$sharenets_twitter = $n -> url_rede;
break;
case ‘curriculo’:
$sharenets_curriculo = $n -> url_rede;
break;
}
}
}
?>
?>
Registro por
if ($images > 1){ echo “ “; } if ($images == 1){ echo “ “; } if ($video > 1){ echo “ “; } if ($video == 1){ echo “ “; } if ($sound > 1){ echo “ “; } if ($sound == 1){ echo “ “; } echo “ “; $exp = $wpdb -> get_results(“select * from primatas_expedicoes where ID_primatas_registros = “.$ID_primatas_registros.””); echo “ “; 0){ } “; } “; “; if (count ($exp) > 0){ “.$e -> data.” “; Tipo: “.$e -> tipo.” 0) || ($sound > 0) || ($video > 0) ){
echo “
“;
}
$ams = $wpdb -> get_results(“select * from primatas_amostras where ID_primatas_registros = “.$ID_primatas_registros.””);
if (count($exp) > 0){
echo “Expedições de Campo“;
}
if (count($ams) > 0){
echo “Amostras Biológicas“;
}
echo “
?>
LATITUDE
LONGITUDE
Características Adicionais
echo “ Imagens
//for the featured image
echo ““;
foreach ($apefiles as $a){
$extension = explode(“.”,$a);
switch ($extension[1]) {
case ‘jpg’: echo ““; break;
case ‘png’: echo ““; break;
}
echo “
if ($video > 0){
echo “ Vídeos
foreach ($apefiles as $a){
$extension = explode(“.”,$a);
switch ($extension[1]) {
case ‘mp4’: echo ‘‘; break;
case ‘ogg’: echo ‘‘; break;
case ‘mov’: echo ‘‘; break;
}
}
echo “
}
if ($sound > 0){
echo “ Áudios
foreach ($apefiles as $a){
$extension = explode(“.”,$a);
switch ($extension[1]) {
case ‘mp3’:
echo ‘‘;
break;
}
}
echo “
}
?>Expedições de Campo
}
}
if (count ($ams) > 0){
?>Amostras Biológicas
“;
}
}
?>
- Ver Outros Registros
-
0){ ?>
const $lgContainer = document.getElementById("inline-gallery-container");
const inlineGallery = lightGallery($lgContainer, { container: $lgContainer, dynamic: true, hash: false, closable: false, showMaximizeIcon: true, enableSwipe: true, easing: 'ease', escKey: true, autoplay: true, progressBar: true, slideShowAutoplay: true, autoplayControls: true, slideShowInterval: 10000, forceSlideShowAutoplay: true, startClass: "lg-start-zoom", appendSubHtmlTo: ".lg-item", slideDelay: 400, videojs: true, /*licenseKey: '0000-0000-000-0000',*/ plugins: [lgAutoplay,lgVideo], dynamicEl: [ /*primeiro para a featured image*/ { src:'' }, /* e agora faz o loop no diretorio trazendo as imagens */ { downloadUrl: false, poster:"", video: {"source": [{"src":"", "type":"video/mp4"}], "attributes": {"preload": false, "controls": true}}, thumb: "" }, { downloadUrl: false, poster:"", video: {"source": [{"src":"", "type":"video/mp4"}], "attributes": {"preload": false, "controls": true}}, thumb: "" }, { downloadUrl: false, poster:"", video: {"source": [{"src":"", "type":"audio/mpeg"}], "attributes": {"preload": false, "controls": true}}, thumb: "" }, { downloadUrl: false, poster:"", video: {"source": [{"src":"", "type":"video/mp4"}], "attributes": {"preload": false, "controls": true}}, thumb: "" }, ], });
setTimeout(() => { inlineGallery.openGallery(); }, 200);
get_var(“select permalink from primatologos where ID = ‘”.$_SESSION[“primatologo_code”].”‘ limit 0, 1″);
?>Mapa com a Localização dos Registros de Primatas
Registros de Primatas
get_results(“SELECT * from primatas_registros inner join primatas on primatas_registros.ID_primatas = primatas.ID order by primatas_registros.ID desc limit 0,6”);
$count_regs = $wpdb->get_results(“SELECT * from primatas_registros inner join primatas on primatas_registros.ID_primatas = primatas.ID”);if (count($registros_primatas)>0){
echo “- “;
- featured_image).”‘ alt='”.$rp -> outros_nomes.”‘ title='”.$rp -> outros_nomes.”‘ width=’100%’ height=’auto’ >
“.$dt_add.”“.$rp -> outros_nomes.”(“.$rp -> nome_cientifico.”)
foreach ($registros_primatas as $rp){$dt_tmp=explode(” “,$rp -> date_add,2);
$dt_final=explode(“-“,$dt_tmp[0],3);
$dt_add = $dt_final[2].”/”.$dt_final[1].”/”.$dt_final[0];echo “
“;
}
echo ““;
//agora vamos colocar o btn carregar mais, caso existam mais de 10 primatas registrados
if (count($count_regs) > 10){
echo “Mostrar mais registros de primatas“;
}}else{echo “
- featured_image).”‘ alt='”.$rp -> outros_nomes.”‘ title='”.$rp -> outros_nomes.”‘ width=’100%’ height=’auto’ >
