Pastebin launched a little side project called HostCabi.net, check it out ;-)Don't like ads? PRO users don't see any ads ;-)
Guest

full-width-page.php

By: a guest on Feb 10th, 2013  |  syntax: PHP  |  size: 3.90 KB  |  hits: 221  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. <?php
  2.  
  3. // Exit if accessed directly
  4. if ( !defined('ABSPATH')) exit;
  5.  
  6. /**
  7.  * Full Content Template
  8.  *
  9.    Template Name:  Full Width Page (no sidebar)
  10.  *
  11.  * @file           full-width-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-child-theme/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"><?php the_title(); ?></h1>
  37.  
  38.                 <?php if ( comments_open() ) : ?>              
  39.                 <div class="post-meta">
  40.                 <?php responsive_post_meta_data(); ?>
  41.                
  42.                                     <?php if ( comments_open() ) : ?>
  43.                         <span class="comments-link">
  44.                         <span class="mdash">&mdash;</span>
  45.                     <?php comments_popup_link(__('No Comments &darr;', 'responsive'), __('1 Comment &darr;', 'responsive'), __('% Comments &darr;', 'responsive')); ?>
  46.                         </span>
  47.                     <?php endif; ?>
  48.                 </div><!-- end of .post-meta -->
  49.                 <?php endif; ?>
  50.                
  51.                 <div class="post-entry">
  52.                     <?php the_content(__('Read more &#8250;', 'responsive')); ?>
  53.                     <?php wp_link_pages(array('before' => '<div class="pagination">' . __('Pages:', 'responsive'), 'after' => '</div>')); ?>
  54.                 </div><!-- end of .post-entry -->
  55.                
  56.                 <?php if ( comments_open() ) : ?>
  57.                 <div class="post-data">
  58.                                     <?php the_tags(__('Tagged with:', 'responsive') . ' ', ', ', '<br />'); ?>
  59.                     <?php the_category(__('Posted in %s', 'responsive') . ', '); ?>
  60.                 </div><!-- end of .post-data -->
  61.                 <?php endif; ?>            
  62.            
  63.             <div class="post-edit"><?php edit_post_link(__('Edit', 'responsive')); ?></div>
  64.             </div><!-- end of #post-<?php the_ID(); ?> -->
  65.            
  66.             <?php comments_template( '', true ); ?>
  67.            
  68.         <?php endwhile; ?>
  69.        
  70.         <?php if (  $wp_query->max_num_pages > 1 ) : ?>
  71.         <div class="navigation">
  72.                         <div class="previous"><?php next_posts_link( __( '&#8249; Older posts', 'responsive' ) ); ?></div>
  73.             <div class="next"><?php previous_posts_link( __( 'Newer posts &#8250;', 'responsive' ) ); ?></div>
  74.                 </div><!-- end of .navigation -->
  75.         <?php endif; ?>
  76.  
  77.             <?php else : ?>
  78.  
  79.         <h1 class="title-404"><?php _e('404 &#8212; Fancy meeting you here!', 'responsive'); ?></h1>
  80.                    
  81.         <p><?php _e('Don&#39;t panic, we&#39;ll get through this together. Let&#39;s explore our options here.', 'responsive'); ?></p>
  82.                    
  83.         <h6><?php printf( __('You can return %s or search for the page you were looking for.', 'responsive'),
  84.                     sprintf( '<a href="%1$s" title="%2$s">%3$s</a>',
  85.                             esc_url( get_home_url() ),
  86.                             esc_attr__('Home', 'responsive'),
  87.                             esc_attr__('&larr; Home', 'responsive')
  88.                         ));
  89.                          ?></h6>
  90.                    
  91.         <?php get_search_form(); ?>
  92.  
  93. <?php endif; ?>  
  94.      
  95.         </div><!-- end of #content-full -->
  96.  
  97. <?php get_sidebar('home'); ?>
  98. <?php get_footer(); ?>