Guest User

Untitled

a guest
Feb 15th, 2014
87
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 3.21 KB | None | 0 0
  1. <?php get_header(); ?>
  2. <?php $src = wp_get_attachment_image_src( get_post_thumbnail_id($post->ID), array( 5600,1000 ), false, '' ); ?>
  3. <div class="newest-post-wrap" style="background: url(<?php echo $src[0]; ?> ) top center !important; background-size: cover !important;">
  4.     <div class="newest-post">
  5.         <div class="newest-post-content">
  6.             <div class="newest-post-info cf">
  7.                 <div class="post-category-new">
  8.                     <?php the_category(' '); ?>
  9.                 </div>
  10.                 <time class="date-new">
  11.                     <span class="date-icon"></span><?php the_time('d F Y'); ?>                        
  12.                 </time>
  13.                 <div class="comments-new">
  14.                     <span class="comment-icon"></span><?php comments_popup_link( '0', '1', '%', 'comments-link', 'Komentarze wyłączone'); ?>
  15.                 </div>
  16.             </div>
  17.             <div class="article-content-new">
  18.                 <h1 class="h1-big"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  19.             </div>              
  20.         </div> <!-- end newest-post-content -->
  21.     </div> <!-- end newest-post -->
  22. </div> <!-- end newest-post-wrap -->
  23. <div class="main-wrap">
  24.     <div class="content-wrap">
  25.         <?php get_sidebar(); ?>
  26.         <section class="posts">
  27.             <?php query_posts('offset=1');
  28.             if ( have_posts() ) : while ( have_posts() ) : the_post(); ?>                        
  29.                 <div class="post">
  30.                     <article>
  31.                         <header>
  32.                             <div class="image-container">
  33.                                 <a href="<?php the_permalink(); ?>"><?php if ( has_post_thumbnail() ) { the_post_thumbnail( 'single-post', array('class' => 'post-thumb') ); } ?></a>
  34.                                 <div class="h1-normal-wrap">
  35.                                     <div class="category-normal">
  36.                                         <?php the_category(' '); ?>
  37.                                     </div>
  38.                                     <h1 class="normal"><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1>
  39.                                 </div>
  40.                             </div>
  41.                         </header>
  42.                         <div class="post-content">
  43.                             <p class="normal"><?php the_excerpt( $stripteaser ); ?></p>
  44.                         </div>
  45.                         <div class="post-info-normal">
  46.                             <time class="date">
  47.                                 <span class="date-icon"></span><?php the_time('d F Y'); ?>    
  48.                             </time>
  49.                             <div class="comments">
  50.                                 <span class="comment-icon"></span><?php comments_popup_link( '0', '1', '%', 'comments-link', 'Komentarze wyłączone'); ?>
  51.                             </div>
  52.                         </div>
  53.                     </article>
  54.                 </div>
  55.             <?php endwhile; ?>
  56.             <?php if(function_exists('wp_simple_pagination')) {
  57.     wp_simple_pagination();
  58. } ?>
  59.             <?php endif; ?>
  60.         </section><!-- end posts -->
  61. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment