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

<?php get_header(); ?>

<div id="content">

	<div id="inner-content" class="wrap 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'); ?>>

					<div class="sidebar-left m-all t-1of3 d-1of4">

						<a href="https://sinaprors.com.br/associadas/"><b>VOLTAR</b></a>
						<?php //dynamic_sidebar('sidebar2');?>
						
					</div>

					<div class="content-single-post m-all t-2of3 d-2of3">


						<section class="entry-content cf">

							<?php

						$logo = wp_get_attachment_url( get_post_thumbnail_id($post->ID) );

						echo '<div class="box-marca-single">';
						echo '<div id="box-'.$post->ID.'" class="box-content-marca">';
						echo '<figure style="text-align: center;"><img src="'.$logo.'"></figure>';
						echo '<h1 class="single-title" itemprop="headline" rel="bookmark">'.get_the_title().'</h1>';
						echo the_content();
						echo '<div class="center">';
						if(get_field('link_site')){
						echo '<a href="'.get_field('link_site').'" class="just-link" target="_blank"><img src="'. get_template_directory_uri() .'/library/images/ico-link.png" alt="link do site"/></a>';
						}
						if(get_field('link_instagram')){
						echo '<a href="'.get_field('link_instagram').'" class="just-link" target="_blank"><img src="'. get_template_directory_uri() .'/library/images/ico-instagram.png" alt="link do instagram"/></a>';
						}
						if(get_field('link_linkedin')){
						echo '<a href="'.get_field('link_linkedin').'" class="just-link" target="_blank"><img src="'. get_template_directory_uri() .'/library/images/ico-linkedin.png" alt="link do instagram"/></a>';
						}
						echo '</div>';
						echo '</div>';
						echo '</div>';

						?>

						</section> 

					</div>

					</article> <?php // end article ?>

				<?php endwhile; ?>

				<?php else : ?>

					<article id="post-not-found" class="hentry cf">
						<header class="article-header">
							<h1><?php _e( 'Oops, post não encontrado!', 'bonestheme' ); ?></h1>
						</header>
					</article>

				<?php endif; ?>

			</main>

			<?php //get_sidebar(); ?>

		</div>

		<section id="noticias-related" class="animate start related ">
			<div class="wrap">
				<div class="entry-content">
					<h2 class="page-title">Confira </br>outras notícias</h2>
					<?php
					echo '<div class="boxes-noticias fx fx-rw fx-center-top">';
					$counter = 1;
					$args = array(
						'post_type' => 'post',
						'posts_per_page' => 3,
						'post__not_in' => array($post->ID),
						'category_name' => 'noticias',
						'orderby' => 'rand'
					);

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

						$query->the_post();

						$categoria = get_the_category();
						echo '<div class="box-noticia time-'.$counter.'">';
						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>';

						$counter++;	

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

	</div>

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