Viewing File: /home/u103475381/domains/sinaprors.com.br/public_html/wp-content/themes/bones/page-home.php

<?php
/*
 Template Name: Home
*/
?>
<?php get_header(); ?>

<div id="content">

	<div id="inner-content" class="cf">

		<main id="main" class="m-all t-all d-all cf " role="main">

			<?php if (have_posts()) : while (have_posts()) : the_post(); ?>

					<article id="post-<?php the_ID(); ?>" <?php post_class('cf screen section'); ?>>


						<section id="lettering-top" class="entry-content cf">

							<div class="swiper-container">
								<!-- Additional required wrapper -->
								<div class="swiper-wrapper">
									<!-- Slides -->
									<?php while (have_rows('repeat_banner')) : the_row(); ?>
										<?php
										$imagem_desktop = get_sub_field('imagem_desktop');
										$imagem_mobile = get_sub_field('imagem_mobile');
										$link = get_sub_field('link');
										?>

										<div class="swiper-slide">
											<a href="<?php echo $link; ?>">
												<img src="<?php the_sub_field('imagem_desktop'); ?>" alt="banner" class="imagem-desk">
												<img src="<?php the_sub_field('imagem_mobile') ?>" alt="banner" class="imagem-mobile">
											</a>
										</div>
									<?php endwhile; ?>
									<!-- <a href="mailto:gestao@sinaprors.com.br"><img src="https://sinaprors.com.br/wp-content/uploads/2023/01/Banner.jpg" alt="img-2" style="width: 100%"></a> -->
									<!-- <div class="swiper-slide">Slide 3</div> -->
									...
								</div>
								<!-- If we need pagination -->
								<div class="swiper-pagination"></div>

								<!-- If we need navigation buttons -->
								<div class="swiper-button-prev"></div>
								<div class="swiper-button-next"></div>
							</div>

						</section>


						<section id="sobre-home" class="entry-content animate cf">
							<div class="wrap fx fx-rw fx-center fx-space t-white">

								<img src="<?php echo get_field('imagem_2'); ?>" alt="Muito mais que atividade sindical" class="fadeInRight">

								<div class="content-text fadeInLeft">
									<?php echo get_field('conteudo'); ?>

									<a href="<?php echo get_permalink(10); ?>" class="l_default outline white" style="margin-right: 1em;">Saiba mais</a>
									<a href="<?php echo get_permalink(16); ?>" class="l_default outline white">quem já faz parte do Sistema Sinapro-rs</a>
								</div>

							</div>
						</section>

						<section id="por-que" class="entry-content animate cf">
							<div class="wrap fx fx-rw fx-center fx-space">

								<img src="<?php echo get_field('imagem'); ?>" alt="Guia referencial de valores" class="fadeInRight">

								<div class="content-text fadeInLeft">
									<?php echo get_field('conteudo_2'); ?>

								</div>

							</div>
						</section>


						<!--<section id="beneficios" class="animate">
 						<div class="wrap">
 							<div class="entry-content">
 								<h2 class="page-title">Soluções e benefícios</br>Para os nossos associados</h2>
 								<?php
									echo '<div class="boxes-beneficios fx fx-rw fx-center-top fx-space">';
									$counter = 1;
									$args = array(
										'post_type' => 'beneficio',
										'posts_per_page' => 4,
										'order' => 'DESC'
									);

									$query = new WP_Query($args);
									while ($query->have_posts()) :

										$query->the_post();
										$url = wp_get_attachment_url(get_post_thumbnail_id($post->ID));

										echo '<div class="box-beneficio fx fx-rw fx-cl fx-center fadeInUp time-' . $counter . '"">';
										echo '<a href="' . get_permalink() . '" class="just-link">';
										echo '<figure><img src="' . $url . '"></figure>';
										echo '<h2>' . get_the_title() . '</h2>';
										echo '<p>' . get_field('descricao') . '</p>';
										echo '</a>';
										echo '</div>';

										$counter++;

									endwhile;
									echo '</div>';

									?>
 								<div class="center">
 									<a href="<?php echo get_permalink(20); ?>" class="l_default ouline">Ver mais benefícios</a>
 								</div>
 							</div>
 						</div>
 					</section>-->

						<section id="noticias" class="animate">
							<div class="wrap">
								<div class="entry-content">
									<h2 class="page-title">Notícias</br>do nosso mercado</h2>
									<?php
									echo '<div class="boxes-noticias fx fx-rw fx-center-top fx-space">';
									$counter3 = 1;
									$args = array(
										'post_type' => 'post',
										'posts_per_page' => 3,
										'category_name' => 'noticias',
										'order' => 'DESC'
									);

									$query = new WP_Query($args);
									while ($query->have_posts()) :

										$query->the_post();

										echo '<div class="box-noticia fadeInUp time-' . $counter3 . '">';
										echo '<div class="pd-box">';
										echo '<a href="' . get_permalink() . '" class="just-link">';
										echo '<h3> // ' . get_the_date('d') . ' DE ' . get_the_date('M') . ' DE ' . get_the_date('Y') . '</h3>';
										echo '<h2>' . get_the_title() . '</h2>';
										echo '</a>';
										echo '<a href="' . get_permalink() . '" class="l_default outline">Ler mais</a>';
										echo '</div>';
										echo '</div>';

										$counter3++;

									endwhile;
									echo '</div>';
									?>
									<div class="center">
										<a href="<?php echo home_url(); ?>/category/noticias/" class="l_default outline">Ver mais notícias</a>
									</div>
								</div>
							</div>
						</section>


						<section id="marcas" class="animate">
							<div class="wrap">
								<div class="entry-content ">
									<h2 class="page-title">Nossos</br>apoiadores</h2>
									<?php
									$counter3 = 1;
									if (have_rows('logos', 18)) :

										echo '<div class="boxes-marcas fx fx-rw fx-center-top fx-space">';

										while (have_rows('logos', 18)) : the_row();

											if ($counter3 <= 5) {
												$logo = get_sub_field('logo');
												$link = get_sub_field('link');

												echo '<div class="box-marca fadeInUp time-' . $counter3 . '"">';
												echo '<a href="' . $link . '" class="just-link" target="_blank">';
												echo '<figure><img src="' . $logo . '"></figure>';
												echo '</a>';
												echo '</div>';
											}

											$counter3++;
										endwhile;
										echo '</div>';

									endif;
									?>
								</div>
								<!--<div class="center">
 								<a href="<?php echo get_permalink(18); ?>" class="l_default outline white">Ver mais marcas</a>
 							</div>-->
							</div>
						</section>

						<section id="noticias" class="animate" style="display: flex;flex-direction: column;align-items: center;">
							<div class="wrap">
								<div class="entry-content">
									<h2 class="page-title" style="bottom: 0px;opacity: 1;display: flex;justify-content: center;">Contato</h2>
								</div>
							</div>
							<div class="content-form" style="display: flex;flex-direction: column;align-items: center;">
								<?php echo do_shortcode('[contact-form-7 id="7" title="Formulário de contato"]'); ?>
							</div>
	</div>
	</section>




	</article>

<?php endwhile;
			endif; ?>

</main>

</div>

</div>

<?php get_footer(); ?>
Back to Directory File Manager