File: /var/www/html/wp-content/themes/lapidus-divi/single-galeria_ert.php
<?php
get_header();
$show_default_title = get_post_meta( get_the_ID(), '_et_pb_show_title', true );
$is_page_builder_used = et_pb_is_pagebuilder_used( get_the_ID() );
?>
<div id="main-content">
<?php
if ( et_builder_is_product_tour_enabled() ):
// load fullwidth page in Product Tour mode
while ( have_posts() ): the_post(); ?>
<article id="post-<?php the_ID(); ?>" <?php post_class( 'et_pb_post' ); ?>>
<div class="entry-content">
<?php
the_content();
?>
</div>
<!-- .entry-content -->
</article>
<!-- .et_pb_post -->
<?php endwhile;
else:
?>
<div id="secao-menu-drh-privado" class="et_pb_section et_pb_section_1 et_pb_with_background et_pb_fullwidth_section et_section_regular et_pb_section_first" style="background-color:#007f80;">
<div class="et_pb_module et_pb_fullwidth_code et_pb_fullwidth_code_0" data-fix-page-container="on" style="padding-top: 170px;padding-bottom:2em">
<div class="et_pb_code_inner" >
<?php echo do_shortcode('[wbcr_php_snippet id="2334"]'); ?>
</div>
</div>
<!-- .et_pb_fullwidth_code -->
</div>
<div class="et_pb_section et_pb_section_2 et_section_regular" style="background-image: linear-gradient(133deg,#1A4D4D 44%,#339697 100%)!important;">
<div class="et_pb_row et_pb_row_0 cc ">
<div class="et_pb_column et_pb_column_2_3 et_pb_column_0 et_pb_css_mix_blend_mode_passthrough">
<div class="et_pb_module et_pb_text et_pb_text_0 et_pb_bg_layout_light et_pb_text_align_left">
<div class="et_pb_text_inner">
<h2>Espaço Relações Trbalhistas</h2>
</div>
</div>
<!-- .et_pb_text -->
<div class="et_pb_module et_pb_text et_pb_text_1 et_pb_bg_layout_light et_pb_text_align_left">
<div class="et_pb_text_inner">
<h1>Galeria de Fotos</h1>
</div>
</div>
<!-- .et_pb_text -->
<div class="et_pb_module et_pb_divider et_pb_divider_0 et_pb_divider_position_ et_pb_space">
<div class="et_pb_divider_internal"></div>
</div>
</div>
<!-- .et_pb_column -->
<div class="et_pb_column et_pb_column_1_3 et_pb_column_1 et_pb_css_mix_blend_mode_passthrough et-last-child">
<!--
<div class="et_pb_with_border et_pb_module et_pb_search et_pb_search_0 et_pb_bg_layout_dark et_pb_text_align_left et_pb_hide_search_button">
<form role="search" method="get" class="et_pb_searchform" action="https://lapidusnetwork.com.br/">
<div>
<label class="screen-reader-text" for="s">Pesquisar por:</label>
<input type="text" value="" name="s" class="et_pb_s" placeholder="Buscar" style="height: 47px;">
<input type="hidden" name="et_pb_searchform_submit" value="et_search_proccess">
<input type="hidden" name="et_pb_include_posts" value="yes">
<input type="hidden" name="et_pb_include_pages" value="yes">
<input type="submit" value="Pesquisa" class="et_pb_searchsubmit" style="">
</div>
</form>
</div>
-->
<!-- .et_pb_text -->
</div>
<!-- .et_pb_column -->
</div>
<!-- .et_pb_row -->
</div>
<!-- <div class="container">-->
<!-- <div id="content-area" class="clearfix">-->
<section id="page_galeria">
<div class="container">
<?php while ( have_posts() ) : the_post(); ?>
<!-- Início do loop-->
<?php
$data_evento = get_field('data');
?>
<div class="row py-5">
<div class="col-lg-6">
<div class="page_galeria_meta">
<h2>
<?php
echo date_i18n("d F Y ", strtotime("$data_evento"));
?>
</h2>
<h1>
<?php the_title(); ?> |
<?php the_field('nome_do_organizador');?> |
<?php the_field('local_do_evento'); ?>
</h1>
<p>
<?php the_excerpt(); ?>
<p>
</div>
</div>
<div class="col-lg-6 ">
<div class="page_galeria_thumbnail">
<img src="<?php the_post_thumbnail(); ?>" alt="">
</div>
</div>
</div>
<div class="row pb-5">
<?php the_content(); ?>
</div>
<!-- Fim do loop-->
<?php endwhile; ?>
</div>
</section>
<section class="page_galeria_relacionados">
<div class="container">
<div class="row">
<div class="col-lg-12">
<div class="page_subtitle">
<h2>
Outras Galerias de Fotos
</h2>
<span class="page_divisor"> </span>
</div>
</div>
</div>
<div class="row p-5">
<?php
$new_query = new WP_Query(
array(
'post_type' => 'galeria_ert',
'orderby' => 'rand',
'order' => 'DESC',
//'perm' => 'membro_drh',
'posts_per_page' => 4,
)
);
while ( $new_query->have_posts() ) : $new_query->the_post(); ?>
<!-- Início do loop relacionados-->
<?php
$galeria_data = get_field('data');
?>
<div class="col-lg-3 col-md-4 ">
<a href="<?php echo get_the_permalink(); ?>" class="page_galeria_relacionados">
<h3>
<?php echo date_i18n("d M Y", strtotime("$galeria_data")); ?>
</h3>
<h4>
<span style="font-weight: bold;"> <?php the_title(); ?></span> <br>
<?php the_field('nome_do_organizador'); ?>
</h4>
<div class="page_galeria_relacionados_thumbnail">
<?php the_post_thumbnail(); ?>
</div>
<a href="<?php echo get_the_permalink(); ?>" class="page_galeria_relacionados_link">
Ver todas as fotos
</a>
</a>
</div>
<!-- Fim do loop relacionados-->
<?php
endwhile;
wp_reset_postdata();
?>
</div>
</div>
</section>
<!-- </div>-->
<!-- #content-area -->
<!-- </div>-->
<!-- .container -->
<?php endif; ?>
</div>
<!-- #main-content -->
<style>
/*PÁGINA DE GALERIA*/
.div.et_pb_section.et_pb_section_2 {
background-image: linear-gradient(133deg, #1A4D4D 44%, #339697 100%) !important;
}
.et_pb_section_2 {
padding-top: 0px;
padding-right: 0px;
padding-bottom: 0px;
padding-left: 0px;
}
body {
color: #575756;
}
body,
.et_pb_column_1_2 .et_quote_content blockquote cite,
.et_pb_column_1_2 .et_link_content a.et_link_main_url,
.et_pb_column_1_3 .et_quote_content blockquote cite,
.et_pb_column_3_8 .et_quote_content blockquote cite,
.et_pb_column_1_4 .et_quote_content blockquote cite,
.et_pb_blog_grid .et_quote_content blockquote cite,
.et_pb_column_1_3 .et_link_content a.et_link_main_url,
.et_pb_column_3_8 .et_link_content a.et_link_main_url,
.et_pb_column_1_4 .et_link_content a.et_link_main_url,
.et_pb_blog_grid .et_link_content a.et_link_main_url,
body .et_pb_bg_layout_light .et_pb_post p,
body .et_pb_bg_layout_dark .et_pb_post p {
font-size: 12px;
}
.et_pb_text_0 h2 {
font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
font-weight: 700;
text-transform: uppercase;
font-size: 50px;
color: #007f80 !important;
}
.et_pb_text_1 h1 {
font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
font-weight: 700;
text-transform: uppercase;
color: #ffffff !important;
}
.et_pb_divider_0 {
max-width: 41%;
margin-top: -15px !important;
height: 23px;
}
.et_pb_divider_0 {
max-width: 41%;
margin-top: -15px !important;
height: 23px;
}
body {
color: #575756;
}
body,
.et_pb_column_1_2 .et_quote_content blockquote cite,
.et_pb_column_1_2 .et_link_content a.et_link_main_url,
.et_pb_column_1_3 .et_quote_content blockquote cite,
.et_pb_column_3_8 .et_quote_content blockquote cite,
.et_pb_column_1_4 .et_quote_content blockquote cite,
.et_pb_blog_grid .et_quote_content blockquote cite,
.et_pb_column_1_3 .et_link_content a.et_link_main_url,
.et_pb_column_3_8 .et_link_content a.et_link_main_url,
.et_pb_column_1_4 .et_link_content a.et_link_main_url,
.et_pb_blog_grid .et_link_content a.et_link_main_url,
body .et_pb_bg_layout_light .et_pb_post p,
body .et_pb_bg_layout_dark .et_pb_post p {
font-size: 12px;
}
.et_pb_divider_0:before {
border-top-color: #ffffff;
border-top-width: 2px;
}
.et_pb_divider:before {
position: absolute;
z-index: 10;
top: 0;
left: 0;
width: 100%;
height: 1px;
border-top-width: 1px;
border-top-style: solid;
border-top-color: #eee;
border-top-color: rgba(0, 0, 0, 0.1);
content: "";
}
.et_pb_divider_0:before {
border-top-color: #ffffff;
border-top-width: 2px;
}
*,
::after,
::before {
box-sizing: border-box;
}
element.style {
height: 47px;
}
.et_pb_search.et_pb_bg_layout_dark input.et_pb_s {
border: 2px solid #fff;
color: #fff;
}
.et_pb_search.et_pb_hide_search_button input.et_pb_s {
padding-right: 0.7em !important;
padding-left: 0.7em !important;
}
.et_pb_search_0 input.et_pb_s {
font-family: 'Montserrat', Helvetica, Arial, Lucida, sans-serif;
font-weight: 500;
font-size: 15px;
line-height: 1.2em !important;
background-color: #ffffff;
border-color: rgba(0, 0, 0, 0) !important;
height: auto;
min-height: 0;
}
.et_pb_search_0.et_pb_search,
.et_pb_search_0 input.et_pb_s {
border-radius: 0px 0px 0px 0px;
overflow: hidden;
}
.et_pb_search input.et_pb_s {
display: inline-block;
width: 100%;
padding-right: 80px;
background: transparent;
-webkit-appearance: none;
}
.et_pb_search input.et_pb_s,
.et_pb_search input.et_pb_searchsubmit {
margin: 0;
padding: 0.715em;
}
/* FIM PÁGINA DE GALERIA*/
</style>
<?php
get_footer();