[ create a new paste ] login | about

Link: http://codepad.org/4rTLkhIg    [ raw code | output | fork ]

lamorfini - PHP, pasted on Jan 1:
<?php get_header(); ?>
<div class="col-md-8">
  <?php if( have_posts() ) : ?>
    <div id="archive">
      <?php $post = $posts[0]; ?>
      <?php if ( is_category() ) { ?>
        <p class="info">Archivio per la categoria : &nbsp;&nbsp;<?php single_cat_title(); ?></p>
        <?php } elseif( is_tag() ) { ?>
          <p class="info">Archivio per il tag :  &nbsp;&nbsp;<?php single_tag_title(); ?></p>
          <?php } elseif ( is_day() ) { ?>
            <p class="info">Archivio per il giorno : <?php the_time('F jS, Y'); ?></p>
            <?php } elseif ( is_month() ) { ?>
              <p class="info">Archivio per il mese :&nbsp;&nbsp;<?php the_time('F, Y'); ?></p>
              <?php } elseif ( is_year() ) { ?>
                <p class="info">Archivio per l'annn :o&nbsp;&nbsp;<?php the_time('Y'); ?></p>
                <?php } elseif ( is_author() ) { ?>
                  <p class="info">Archivio per l'autore : &nbsp;&nbsp;<?php the_author_link(); ?></p>
                  <?php } ?>
                </div>
                <?php while( have_posts() ) : the_post(); ?>
                  <div id="post">
                    <a href="<?php the_permalink() ?>"><h1><?php the_title(); ?></h1></a>
                    <div class="meta">&nbsp;&nbsp;Postato il&nbsp;&nbsp;<?php echo get_the_date(); ?>&nbsp;&nbsp;in&nbsp;&nbsp;<?php the_category(','); ?>&nbsp;&nbsp;da&nbsp;&nbsp;<?php the_author_posts_link();  ?></div>
                    <div class="content">
                      <?php the_excerpt(); ?>
                    </div>
                  </div>
                <?php endwhile; ?>
                <div class="pagination">
                  <?php if (function_exists("pagination")) {
                    pagination();
                  } ?>
                </div>
              <?php else : ?>
                <!-- Messaggio di Errore -->
                <p>Errore dato non trovato</p>
              <?php endif; ?>
            </div>
            <!-- Fine Content -->
            <?php get_sidebar(); ?>
            <?php get_footer(); ?>


Output:
1
2

Fatal error: Call to undefined function get_header() on line 1


Create a new paste based on this one


Comments: