Exemplo n.º 1
0
<?php get_header(); ?>
	<?php if( is_front_page() ) : ?>
		<?php if( pinboard_get_option( 'slider' ) ) : ?>
			<?php get_template_part( 'slider' ); ?>
		<?php endif; ?>
		<?php get_sidebar( 'wide' ); ?>
		<?php get_sidebar( 'boxes' ); ?>
	<?php endif; ?>
	<div id="container">
		<section id="content" <?php pinboard_content_class(); ?>>
			<?php if( have_posts() ) : the_post(); ?>
				<article <?php post_class(); ?> id="post-<?php the_ID(); ?>">
					<div class="entry">
						<header class="entry-header">
							<<?php pinboard_title_tag( 'post' ); ?> class="entry-title"><?php the_title(); ?></<?php pinboard_title_tag( 'post' ); ?>>
						</header><!-- .entry-header -->
						<div class="entry-content">
							<?php the_content(); ?>
							<div class="clear"></div>
						</div><!-- .entry-content -->
						<?php wp_link_pages( array( 'before' => '<footer class="entry-utility"><p class="post-pagination">' . __( 'Pages:', 'pinboard' ), 'after' => '</p></footer><!-- .entry-utility -->' ) ); ?>
					</div><!-- .entry -->
					<?php comments_template(); ?>
				</article><!-- .post -->
			<?php else : ?>
				<?php pinboard_404(); ?>
			<?php endif; ?>
		</section><!-- #content -->
		<?php if( ( 'no-sidebars' != pinboard_get_option( 'layout' ) ) && ( 'full-width' != pinboard_get_option( 'layout' ) ) ) : ?>
			<?php get_sidebar(); ?>
		<?php endif; ?>
Exemplo n.º 2
0
    ?>
		<?php 
    get_sidebar('boxes');
    ?>
	<?php 
} elseif (is_home() && is_paged() || !is_home() && pinboard_get_option('location')) {
    ?>
		<?php 
    pinboard_current_location();
    ?>
	<?php 
}
?>
	<div id="container">
		<section id="content" <?php 
pinboard_content_class();
?>
>
			<?php 
if (is_category(pinboard_get_option('portfolio_cat')) || is_category() && cat_is_ancestor_of(pinboard_get_option('portfolio_cat'), get_queried_object())) {
    ?>
				<?php 
    pinboard_category_filter(pinboard_get_option('portfolio_cat'));
    ?>
			<?php 
}
?>
			<?php 
if (have_posts()) {
    ?>
				<div class="entries">