Advertisement
chumba-wah-89

Page template: article-no-subtitle.php

Nov 20th, 2024
128
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.26 KB | None | 0 0
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Full Content Template
  8.  *
  9.    Template Name:  Article--no subtitle
  10.  *
  11.  * @file           article-no-subtitle-page.php
  12.  * @package        Responsive
  13.  * @author         Emil Uzelac
  14.  * @copyright      2003 - 2011 ThemeID
  15.  * @license        license.txt
  16.  * @version        Release: 1.0
  17.  * @filesource     wp-content/themes/responsive/full-width-page.php
  18.  * @link           http://codex.wordpress.org/Theme_Development#Pages_.28page.php.29
  19.  * @since          available since Release 1.0
  20.  */
  21. ?>
  22. <?php get_header(); ?>
  23.  
  24.         <div id="content-full" class="grid col-940">
  25.        
  26. <?php if (have_posts()) : ?>
  27.  
  28.         <?php while (have_posts()) : the_post(); ?>
  29.        
  30.         <?php $options = get_option('responsive_theme_options'); ?>
  31.         <?php if ($options['breadcrumb'] == 0): ?>
  32.         <?php echo responsive_breadcrumb_lists(); ?>
  33.         <?php endif; ?>
  34.        
  35.             <div id="post-<?php the_ID(); ?>" <?php post_class(); ?>>
  36.                 <h1 class="post-title"><font color="B40431"><?php the_title(); ?></font></h1>
  37.  
  38. <h4><?php the_terms( $post->ID, 'fe_author', 'by ', ', ', ' ' ); ?></h4>
  39.  
  40. <h4>Fifth Estate #<?php if($post->post_parent) {
  41.      $parent = $wpdb->get_row("SELECT post_title FROM $wpdb->posts WHERE ID = $post->post_parent");
  42.      $parent_link = get_permalink($post->post_parent); ?>
  43.      <a href="<?php echo $parent_link; ?>"><?php echo $parent->post_title; ?></a>
  44. <?php } ?></h4>
  45.  
  46.              <?php if ( comments_open() ) : ?>              
  47.                 <div class="post-meta">
  48.                 <?php responsive_post_meta_data(); ?>
  49.                
  50.                     <?php if ( comments_open() ) : ?>
  51.                         <span class="comments-link">
  52.                         <span class="mdash">&mdash;</span>
  53.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  54.                         </span>
  55.                     <?php endif; ?>
  56.                 </div><!-- end of .post-meta -->
  57.                 <?php endif; ?>
  58.                
  59.                 <div class="post-entry">
  60.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  61.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  62.                 </div><!-- end of .post-entry -->
  63.                
  64.                 <?php if ( comments_open() ) : ?>
  65.                 <div class="post-data">
  66.                     <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  67.                     <?php the_category(__('Posted in %s', 'responsive') . ', '); ?>
  68.                 </div><!-- end of .post-data -->
  69.                 <?php endif; ?>            
  70.            
  71.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
  72.             </div><!-- end of #post-<?php the_ID(); ?> -->
  73.            
  74.             <?php comments_template( '', true ); ?>
  75.            
  76.         <?php endwhile; ?>
  77.        
  78.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  79.         <div class="navigation">
  80.             <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  81.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>  </div><!-- end of .navigation -->
  82.         <?php endif; ?>
  83.  
  84.         <?php else : ?>
  85.  
  86.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  87.                    
  88.         <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  89.                    
  90.         <h6><?php printf( __('You can return %s or search for the page you were looking for.', 'responsive'),
  91.                 sprintf( '<a href="%1$s" title="%2$s">%3$s</a>',
  92.                     esc_url( get_home_url() ),
  93.                     esc_attr__('Home', 'responsive'),
  94.                     esc_attr__('&larr; Home', 'responsive')
  95.                     ));
  96.              ?></h6>
  97.                    
  98.         <?php get_search_form(); ?>
  99.  
  100. <?php endif; ?>  
  101.      
  102.         </div><!-- end of #content-full -->
  103.  
  104. <?php get_footer(); ?>
  105.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement