Advertisement
grappler

blog.php podcast

Mar 4th, 2013
142
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.33 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 (full posts)
  10.  *
  11.  * @file           blog.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.php
  18.  * @link           http://codex.wordpress.org/Templates
  19.  * @since          available since Release 1.0
  20.  */
  21. ?>
  22. <?php get_header(); ?>
  23.  
  24. <?php global $more; $more = 0; ?>
  25.  
  26.         <div id="content-blog" class="grid col-620">
  27.        
  28.         <?php $options = get_option('responsive_theme_options'); ?>
  29.         <?php if ($options['breadcrumb'] == 0): ?>
  30.         <?php echo responsive_breadcrumb_lists(); ?>
  31.         <?php endif; ?>
  32.        
  33. <?php
  34.     if ( get_query_var('paged') )
  35.         $paged = get_query_var('paged');
  36.     elseif ( get_query_var('page') )
  37.         $paged = get_query_var('page');
  38.     else
  39.         $paged = 1;
  40.         query_posts("aray(post_type=> array ( 'post','podcast'))&paged=$paged");
  41. ?>    
  42. <?php if (have_posts()) : ?>
  43.  
  44.         <?php while (have_posts()) : the_post(); ?>
  45.        
  46.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  47.                
  48.                 <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>
  49.                
  50.                 <div class="post-meta">
  51.                 <?php responsive_post_meta_data(); ?>
  52.                
  53.                     <?php if ( comments_open() ) : ?>
  54.                         <span class="comments-link">
  55.                         <span class="mdash">&mdash;</span>
  56.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  57.                         </span>
  58.                     <?php endif; ?>
  59.                 </div><!-- end of .post-meta -->
  60.                
  61.                 <div class="post-entry">
  62.                     <?php if ( has_post_thumbnail()) : ?>
  63.                         <a href="<?php the_permalink(); ?>" title="<?php the_title_attribute(); ?>" >
  64.                     <?php the_post_thumbnail(); ?>
  65.                         </a>
  66.                     <?php endif; ?>
  67.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  68.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  69.                 </div><!-- end of .post-entry -->
  70.                
  71.                 <div class="post-data">
  72.                     <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  73.                     <?php printf(__('Posted in %s', 'responsive'), get_the_category_list(', ')); ?>
  74.                 </div><!-- end of .post-data -->            
  75.  
  76.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>              
  77.             </div><!-- end of #post-<?php the_ID(); ?> -->
  78.            
  79.         <?php endwhile; ?>
  80.        
  81.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  82.         <div class="navigation">
  83.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  84.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  85.         </div><!-- end of .navigation -->
  86.         <?php endif; ?>
  87.  
  88.         <?php else : ?>
  89.  
  90.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  91.                    
  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.                    
  94.         <h6><?php printf( __('You can return %s or search for the page you were looking for.', 'responsive'),
  95.                 sprintf( '<a href="%1$s" title="%2$s">%3$s</a>',
  96.                     esc_url( get_home_url() ),
  97.                     esc_attr__('Home', 'responsive'),
  98.                     esc_attr__('&larr; Home', 'responsive')
  99.                     ));
  100.              ?></h6>
  101.                    
  102.         <?php get_search_form(); ?>
  103.        
  104. <?php endif; ?>  
  105.      
  106.         </div><!-- end of #content-blog -->
  107.  
  108. <?php get_sidebar(); ?>
  109. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement