Advertisement
Guest User

Untitled

a guest
Jan 6th, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.00 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.         <div class="span-24" id="contentwrap">
  4.        
  5.             <div class="span-14">
  6.                 <div id="content">
  7. <h1>News</h1>      
  8. <p>_______________</p> 
  9.                     <?php if (have_posts()) : ?>   
  10.                         <?php while (have_posts()) : the_post(); ?>
  11.                        
  12.                         <div <?php post_class() ?> id="post-<?php the_ID(); ?>">
  13.                             <h2 class="title"><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>"><?php the_title(); ?></a></h2>
  14.                             <div class="postdate"> <? echo get_avatar( get_the_author_meta('user_email'), $size = '50'); ?> Gepostet von <strong><?php the_author() ?></strong> am  <?php the_time('jS F, Y') ?> <?php if (current_user_can('edit_post', $post->ID)) { ?> | <?php edit_post_link('Edit', '', ''); } ?></div><br />
  15. <p>________________________________________</p>
  16.            
  17.                             <div class="entry">
  18.                                 <?php if ( function_exists('has_post_thumbnail') && has_post_thumbnail() ) { the_post_thumbnail(array(200,160), array('class' => 'alignleft post_thumbnail')); } ?>
  19.                                 <?php the_content(''); ?>
  20.                                 <div class="readmorecontent">
  21.                                     <a class="readmore" href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title_attribute(); ?>">Read More &raquo;</a>
  22.                                 </div>
  23.                             </div>
  24.                         </div><!--/post-<?php the_ID(); ?>-->
  25.                
  26.                 <?php endwhile; ?>
  27.                 <div class="navigation">
  28.                     <?php if(function_exists('wp_pagenavi')) { wp_pagenavi(); } else { ?>
  29.                     <div class="alignleft"><?php next_posts_link('&laquo; Older Entries') ?></div>
  30.                     <div class="alignright"><?php previous_posts_link('Newer Entries &raquo;') ?></div>
  31.                     <?php } ?>
  32.                 </div>
  33.                 <?php else : ?>
  34.                     <h2 class="center">404_1337_P4G3_N07_F0UND</h2>
  35.                     <p class="center">Vertippt? Jedenfalls scheinst du hier falsch zu sein :P</p>
  36.                     <?php get_search_form(); ?>
  37.            
  38.                 <?php endif; ?>
  39.                 </div>
  40.             </div>
  41.         <?php get_sidebars(); ?>
  42.  
  43.     </div>
  44.  
  45.  
  46. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement