<?php
/*
Template Name: Guestbook Page
*/
?>


<?php get_header(); ?>

    <div id="content" class="narrowcolumn">

    <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
        
        <div class="post" id="post-<?php the_ID(); ?>">
        <h2><?php the_title(); ?></h2>
            
            <div class="entrytext">
                <?php guestbook_template(); ?>
                
                <?php the_content('<p class="serif">Weiterlesen &raquo;</p>'); ?>
    
                <?php link_pages('<p><strong>Seiten:</strong> ''</p>''number'); ?>
    
                <p class="postmetadata alt">
                    <small>
                        Der Beitrag wurde
                        <?php /* This is commented, because it requires a little adjusting sometimes.
                            You'll need to download this plugin, and follow the instructions:
                            http://binarybonsai.com/archives/2004/08/17/time-since-plugin/ */
                            /* $entry_datetime = abs(strtotime($post->post_date) - (60*120)); echo time_since($entry_datetime); echo ' ago'; */ 
?> 
                        am <?php the_time('l,'?> den <?php the_time('j. F Y'?> um <?php the_time('H:i'?> Uhr ver&ouml;ffentlicht
                        und wurde unter <?php the_category(', '?> abgelegt.
                        Du kannst die Kommentare zu diesen Eintrag durch den <?php comments_rss_link('RSS 2.0'); ?> Feed verfolgen. 
                        
                        <?php if (('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                            
// Both Comments and Pings are open ?>
                            Du kannst einen <a href="#respond">Kommentar schreiben</a>, oder einen <a href="<?php trackback_url(true); ?>" rel="trackback">Trackback</a> auf deiner Seite einrichten.
                        
                        <?php } elseif (!('open' == $post-> comment_status) && ('open' == $post->ping_status)) {
                            
// Only Pings are Open ?>
                            Kommentare sind derzeit geschlossen, aber Du kannst dennoch einen <a href="<?php trackback_url(true); ?> " rel="trackback">Trackback</a> auf deiner Seite einrichten.
                        
                        <?php } elseif (('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                            
// Comments are open, Pings are not ?>
                            Du kannst zum Ende springen und ein Kommentar hinterlassen. Pingen ist im Augenblick nicht erlaubt.
            
                        <?php } elseif (!('open' == $post-> comment_status) && !('open' == $post->ping_status)) {
                            
// Neither Comments, nor Pings are open ?>
                            Kommentare und Pings sind derzeit nicht erlaubt.            
                        
                        <?php edit_post_link('Beitrag bearbeiten.','<strong>|</strong> ',''); ?>
                        
                    </small>
                </p>
    
            </div>
        </div>

    <?php endwhile; else: ?>
    
        <p>Es gibt leider keine Beitr&auml;ge, die deinen Kriterien entsprechen.</p>
    
<?php endif; ?>
    
    </div>        
        


<?php get_sidebar(); ?>

<?php get_footer(); ?>