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/archive.php
<?php
 global $theme_option;
 $thumbnail1 = $theme_option['blog_thumbnail'];
get_header(); ?>
	
	<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
						if ( is_day() ) :
							printf( __( 'Arquivo(s) do Dia: %s', 'ananke' ), get_the_date() );

						elseif ( is_month() ) :
							printf( __( 'Arquivo(s) do M&ecirc;s: %s', 'ananke' ), get_the_date( _x( 'F Y', 'monthly archives date format', 'ananke' ) ) );

						elseif ( is_year() ) :
							printf( __( 'Arquivo(s) do Ano: %s', 'ananke' ), get_the_date( _x( 'Y', 'yearly archives date format', 'ananke' ) ) );

						else :
							_e( 'Archives', 'ananke' );

						endif;
					?></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 
						$args = array(    
							'paged' => $paged,
							'post_type' => 'post',
							);
						$wp_query = new WP_Query($args);
						while ($wp_query -> have_posts()): $wp_query -> 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();