HEX
Server: Apache
System: Linux iad1-shared-e1-26 6.6.49-grsec-jammy+ #10 SMP Thu Sep 12 23:23:08 UTC 2024 x86_64
User: ricpug (13815490)
PHP: 7.4.33
Disabled: NONE
Upload Files
File: /home/ricpug/tecnomarketconsult.co_202106170822/wp-content/themes/ananke/search.php
<?php
 global $theme_option;
 $thumbnail1 = $theme_option['blog_thumbnail'];
get_header(); ?>
<?php 
	// search only posts
	global $wp_query;
	$args = array_merge( $wp_query->query, array( 'post_type' => 'post' ) );
	query_posts( $args ); 
?>
	
	<section class="blog" id="blog">
		<div class="parallax-section">	
			<div class="parallax-blog" <?php if($thumbnail1['url'] != ''){ ?> style="background-image: url('<?php echo esc_url($thumbnail1['url']); ?>');" <?php } ?> ></div>
			<div class="overlay-blog"></div>
			<div class="container z-index-pages">
				<div class="sixteen columns">
					<h1><?php printf( __( 'Resultados para: %s', 'ananke' ), get_search_query() ); ?></h1>
				</div>
				<div class="sixteen columns">
					<div class="sub-text"><?php echo esc_attr($theme_option['blog_subtitle']); ?></div>
				</div>
			</div>
		</div>	
	</section>

	<section class="blog-post-wrapper <?php if ($theme_option['blog_layout'] == 'wsb') { echo "blog-sidebar";}?>">
		<?php if ($theme_option['blog_layout'] == 'wsb') { ?>

			<div class="container">
				<div class="twelve columns">
					<?php if(have_posts()) : ?>	
					<?php while(have_posts()) : the_post(); ?>			
						<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
					<?php endwhile;?> 
				
					<?php else: ?>
						<h1><?php _e('Nenhuma informa&ccedil;&atilde;o foi encontrada!', 'ananke'); ?></h1>
					<?php endif; ?>	
					<?php
						global $wp_query;
						if($wp_query->max_num_pages>0){
					?>
					<div class="pagination">
						<?php ananke_pagination();?>
					</div>
					<?php } ?>
				</div>		
				<div class="four columns">
					<?php get_sidebar();?>
				</div>
			</div>
			
		<?php }else{ ?>
		<div class="container">
			<div class="sixteen columns">
				<?php if(have_posts()) : ?>	
				<?php while(have_posts()) : the_post(); ?>		
					<?php get_template_part( 'content', ( post_type_supports( get_post_type(), 'post-formats' ) ? get_post_format() : get_post_type() ) ); ?>
				<?php endwhile;?> 
			
				<?php else: ?>
					<h1><?php _e('Nenhuma informa&ccedil;&atilde;o foi encontrada!', 'ananke'); ?></h1>
				<?php endif; ?>
			</div>	
		</div>	
		<?php
			global $wp_query;
			if($wp_query->max_num_pages>0){
		?>
		<div class="container">
			<div class="pagination">
				<?php ananke_pagination();?>
			</div>
		</div>	
		<?php } } ?>
	</section>				
    <?php
get_footer();