Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /**
- * The main template file.
- *
- * This is the most generic template file in a WordPress theme
- * and one of the two required files for a theme (the other being style.css).
- * It is used to display a page when nothing more specific matches a query.
- * E.g., it puts together the home page when no home.php file exists.
- * Learn more: http://codex.wordpress.org/Template_Hierarchy
- *
- * @package Twenty Twelve
- * @since Twenty Twelve 1.0
- */
- get_header(); ?>
- <div id="primary" class="content-area">
- <section id="content" class="site-content" role="main">
- <?php if ( have_posts() ) : ?>
- <?php //twentytwelve_content_nav( 'nav-above' ); ?>
- <?php /* Start the Loop */ ?>
- <?php while ( have_posts() ) : the_post(); ?>
- <article id="post-<?php the_ID(); ?>" <?php post_class('clearfix content-articles'); ?>>
- <a class="archives-thumb-link" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_post_thumbnail( 'archives-thumb' ); ?></a>
- <div class="entry-text-wrapper">
- <header class="entry-header">
- <h1 class="entry-title"><a href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark"><?php the_title(); ?></a></h1>
- </header><!-- .entry-header -->
- </div>
- </article><!-- #post-<?php the_ID(); ?> -->
- <?php endwhile; ?>
- <?php twentytwelve_content_nav( 'nav-below' ); ?>
- <?php else : ?>
- <?php get_template_part( 'no-results', 'index' ); ?>
- <?php endif; ?>
- </section><!-- #content .site-content -->
- <section id="highlights-container" class="site-content">
- <?php $latest_highlights = new WP_Query('tag=highlights&showposts=20&paged=' . $paged); ?>
- <?php if ( $latest_highlights->have_posts() ) : ?>
- <?php while ($latest_highlights->have_posts()) : $latest_highlights->the_post(); $the_highlights_counter++; ?>
- <article id="highlights-<?php echo $the_highlights_counter; ?>" class="highlights-wrapper">
- <a class="highlights-link" href="<?php the_permalink(); ?>" title="<?php echo esc_attr( sprintf( __( 'Permalink to %s', 'twentytwelve' ), the_title_attribute( 'echo=0' ) ) ); ?>" rel="bookmark">
- <?php the_post_thumbnail( 'highlights-thumb' ); ?>
- <h1 class="highlights-title"><?php the_title(); ?> <span>/ <?php echo the_time('M. n'); ?></span></h1>
- </a>
- </article>
- <?php endwhile; ?>
- <?php else : ?>
- <?php get_template_part( 'no-results', 'index' ); ?>
- <?php endif; ?>
- </section><!-- #content .site-content -->
- </div><!-- #primary .content-area -->
- <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement