Advertisement
grappler

archive.php full posts

Nov 18th, 2012
95
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.54 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Archive Template
  8.  *
  9.  *
  10.  * @file           archive.php
  11.  * @package        Responsive
  12.  * @author         Emil Uzelac
  13.  * @copyright      2003 - 2012 ThemeID
  14.  * @license        license.txt
  15.  * @version        Release: 1.1
  16.  * @filesource     wp-content/themes/responsive/archive.php
  17.  * @link           http://codex.wordpress.org/Theme_Development#Archive_.28archive.php.29
  18.  * @since          available since Release 1.0
  19.  */
  20. ?>
  21. <?php get_header(); ?>
  22.  
  23.         <div id="content-archive" class="grid col-620">
  24.  
  25. <?php if (have_posts()) : ?>
  26.        
  27.         <?php $options = get_option('responsive_theme_options'); ?>
  28.         <?php if ($options['breadcrumb'] == 0): ?>
  29.         <?php echo responsive_breadcrumb_lists(); ?>
  30.         <?php endif; ?>
  31.        
  32.             <h6>
  33.                 <?php if ( is_day() ) : ?>
  34.                     <?php printf( __( 'Daily Archives: %s', 'responsive' ), '<span>' . get_the_date() . '</span>' ); ?>
  35.                 <?php elseif ( is_month() ) : ?>
  36.                     <?php printf( __( 'Monthly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'F Y' ) . '</span>' ); ?>
  37.                 <?php elseif ( is_year() ) : ?>
  38.                     <?php printf( __( 'Yearly Archives: %s', 'responsive' ), '<span>' . get_the_date( 'Y' ) . '</span>' ); ?>
  39.                 <?php else : ?>
  40.                     <?php _e( 'Blog Archives', 'responsive' ); ?>
  41.                 <?php endif; ?>
  42.             </h6>
  43.                    
  44.         <?php while (have_posts()) : the_post(); ?>
  45.        
  46.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  47.                 <h1 class="post-title"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php printf(__( 'Permanent Link to %s', 'responsive' ), the_title_attribute( 'echo=0' )); ?>"><?php the_title(); ?></a></h1>
  48.                
  49.                 <div class="post-meta">
  50.                 <?php responsive_post_meta_data(); ?>
  51.                
  52.                     <?php if ( comments_open() ) : ?>
  53.                         <span class="comments-link">
  54.                         <span class="mdash">&mdash;</span>
  55.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  56.                         </span>
  57.                     <?php endif; ?>
  58.                 </div><!-- end of .post-meta -->
  59.                
  60.                 <div class="post-entry">
  61.                     <?php if ( has_post_thumbnail()) : ?>
  62.                         <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
  63.                     <?php the_post_thumbnail('thumbnail', array('class' => 'alignleft')); ?>
  64.                         </a>
  65.                     <?php endif; ?>
  66.                     <?php the_content(); ?>
  67.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  68.                 </div><!-- end of .post-entry -->
  69.                
  70.                 <div class="post-data">
  71.                     <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  72.                     <?php printf(__('Posted in %s', 'responsive'), get_the_category_list(', ')); ?>
  73.                 </div><!-- end of .post-data -->            
  74.  
  75.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>            
  76.             </div><!-- end of #post-<?php the_ID(); ?> -->
  77.            
  78.             <?php comments_template( '', true ); ?>
  79.            
  80.         <?php endwhile; ?>
  81.        
  82.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  83.         <div class="navigation">
  84.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  85.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  86.         </div><!-- end of .navigation -->
  87.         <?php endif; ?>
  88.  
  89.         <?php else : ?>
  90.  
  91.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  92.         <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  93.         <h6><?php _e( 'You can return', 'responsive' ); ?> <a href="<?php echo home_url(); ?>/" title="<?php esc_attr_e( 'Home', 'responsive' ); ?>"><?php _e( '&larr; Home', 'responsive' ); ?></a> <?php _e( 'or search for the page you were looking for', 'responsive' ); ?></h6>
  94.         <?php get_search_form(); ?>
  95.  
  96. <?php endif; ?>  
  97.      
  98.         </div><!-- end of #content-archive -->
  99.        
  100. <?php get_sidebar(); ?>
  101. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement