Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.13 KB | None | 0 0
  1. <?php
  2. /*
  3. Template Name: Fysiikka
  4. */
  5. ?>
  6.  
  7. <?php get_header(); ?>
  8.  
  9.             <div class="content">
  10.                 <div class="container">
  11.  
  12.                 <div id="inner-content" class="wrap clearfix">
  13.  
  14.                         <div id="main" class="eightcol first clearfix" role="main">
  15.                             <?php
  16.                             query_posts('category_name=Kemia');
  17.                             while (have_posts()) : the_post();
  18.                            
  19.                             endwhile;
  20.                             ?>
  21.  
  22.                             <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
  23.  
  24.                             <article id="post-<?php the_ID(); ?>" <?php post_class( 'clearfix' ); ?> role="article" itemscope itemtype="http://schema.org/BlogPosting">
  25.  
  26.                                 <header class="article-header">
  27.  
  28.                                     <h1 class="page-title" itemprop="headline"><?php the_title(); ?></h1>
  29.                                     <p class="byline vcard"><?php
  30.                                         // printf( __( 'Posted <time class="updated" datetime="%1$s" pubdate>%2$s</time> by <span class="author">%3$s</span>.', 'bonestheme' ), get_the_time( 'Y-m-j' ), get_the_time( __( 'F jS, Y', 'bonestheme' ) ), bones_get_the_author_posts_link());
  31.                                     ?></p>
  32.  
  33.  
  34.                                 </header>
  35.  
  36.                                 <section class="entry-content clearfix" itemprop="articleBody">
  37.                                     <?php the_content(); ?>
  38.                             </section>
  39.  
  40.                                 <footer class="article-footer">
  41.                                     <?php the_tags( '<span class="tags">' . __( 'Tags:', 'bonestheme' ) . '</span> ', ', ', '' ); ?>
  42.  
  43.                                 </footer>
  44.  
  45.                             <?php// comments_template(); ?>
  46.  
  47.                             </article>
  48.  
  49.                             <?php endwhile; else : ?>
  50.  
  51.                                     <article id="post-not-found" class="hentry clearfix">
  52.                                         <header class="article-header">
  53.                                             <h1><?php _e( 'Oops, Post Not Found!', 'bonestheme' ); ?></h1>
  54.                                         </header>
  55.                                         <section class="entry-content">
  56.                                             <p><?php _e( 'Uh Oh. Something is missing. Try double checking things.', 'bonestheme' ); ?></p>
  57.                                         </section>
  58.                                         <footer class="article-footer">
  59.                                                 <p><?php _e( 'This is the error message in the page.php template.', 'bonestheme' ); ?></p>
  60.                                         </footer>
  61.                                     </article>
  62.  
  63.                             <?php endif; ?>
  64.  
  65.                         </div>
  66.  
  67.                         <?php // get_sidebar(); ?>
  68.  
  69.                 </div>
  70.                 </div>
  71.             </div>
  72.  
  73. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement