Viewing File: /home/u103475381/domains/sinaprors.com.br/public_html/wp-content/themes/bones/archive-default.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">

			<header class="article-header">

				<?php
				the_archive_title( '<h1 class="page-title">', '</h1>' );
				the_archive_description( '<div class="taxonomy-description">', '</div>' );
				?>

				<?php

				$args = array('child_of'=>3,'hide_empty'=>0);
				$my_categories = get_categories($args);
				if($my_categories){
					?>
					<ul id="menu-category" class="category_list">   
						<?php foreach( $my_categories as $category ):?>
							<li><a href="<?php echo get_category_link($category->term_id);?>" class="category-<?php echo $counter; ?>">#<?php echo $category->name;?></a></li>						
						<?php endforeach; ?>
					</ul>
				<?php } ?>
			</header> 

			<div class="boxes-noticias fx fx-rw fx-center-top">
			    
			    <?php $counter3 = 1; ?>

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

					<?php
					echo '<div class="box-noticia 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++;	
					?>

				<?php endwhile; ?>

			</div>

			<?php bones_page_navi(); ?>

			<?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>

</div>

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