Advertisement
grappler

blog-excerpt.php - half

Feb 7th, 2013
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.25 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Blog Template
  8.  *
  9.    Template Name: Blog Excerpt (summary)
  10.  *
  11.  * @file           blog-excerpt.php
  12.  * @package        Responsive
  13.  * @author         Emil Uzelac
  14.  * @copyright      2003 - 2013 ThemeID
  15.  * @license        license.txt
  16.  * @version        Release: 1.1.0
  17.  * @filesource     wp-content/themes/responsive/blog-excerpt.php
  18.  * @link           http://codex.wordpress.org/Templates
  19.  * @since          available since Release 1.0
  20.  */
  21. ?>
  22. <?php get_header(); ?>
  23.  
  24.         <div id="content-blog" class="grid col-460">
  25.        
  26.         <?php $options = get_option('responsive_theme_options'); ?>
  27.         <?php if ($options['breadcrumb'] == 0): ?>
  28.         <?php echo responsive_breadcrumb_lists(); ?>
  29.         <?php endif; ?>
  30. <?php
  31.     if ( get_query_var('paged') )
  32.         $paged = get_query_var('paged');
  33.     elseif ( get_query_var('page') )
  34.         $paged = get_query_var('page');
  35.     else
  36.         $paged = 1;
  37.         query_posts("post_type=post&paged=$paged");
  38. ?>
  39.  
  40.      
  41. <?php if (have_posts()) : ?>
  42.  
  43.         <?php while (have_posts()) : the_post(); ?>
  44.        
  45.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  46.                
  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(); ?>
  64.                         </a>
  65.                     <?php endif; ?>
  66.                     <?php the_excerpt(); ?>
  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 endwhile; ?>
  79.        
  80.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  81.         <div class="navigation">
  82.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  83.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  84.         </div><!-- end of .navigation -->
  85.         <?php endif; ?>
  86.  
  87.         <?php else : ?>
  88.  
  89.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  90.                    
  91.         <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  92.                    
  93.         <h6><?php printf( __('You can return %s or search for the page you were looking for.', 'responsive'),
  94.                 sprintf( '<a href="%1$s" title="%2$s">%3$s</a>',
  95.                     esc_url( get_home_url() ),
  96.                     esc_attr__('Home', 'responsive'),
  97.                     esc_attr__('&larr; Home', 'responsive')
  98.                     ));
  99.              ?></h6>
  100.                    
  101.         <?php get_search_form(); ?>
  102.        
  103. <?php endif; ?>  
  104.      
  105.         </div><!-- end of #content-blog -->
  106.  
  107. <?php get_sidebar('left-half'); ?>
  108. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement