Advertisement
Guest User

page.php after

a guest
May 16th, 2012
68
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.79 KB | None | 0 0
  1. <?php get_header(); ?>
  2.  
  3.  
  4. <!-- Super Container -->
  5. <div class="super-container main-content-area" id="section-content">
  6.  
  7.     <!-- 960 Container -->
  8.     <div class="container">
  9.        
  10.         <!-- CONTENT -->
  11.         <div class="eleven columns content">
  12.            
  13.             <!-- 404 MESSAGE -->
  14.             <?php if ( ! have_posts() ) : ?>
  15.                 <h2 class="title"><span>Ohhhh Snap! We can't find the page...</span></h2>
  16.                 <div class="the_content">  
  17.                     <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'sidewinder' ); ?></p>
  18.                     <?php get_template_part( 'element', 'search' ); ?>
  19.                 </div>
  20.             <?php endif; ?>
  21.            
  22.             <!-- THE POST LOOP -->
  23.             <?php while ( have_posts() ) : the_post(); ?>  
  24.                
  25.                 <h2 class="title"><span><?php the_title(); ?></span></h2>
  26.                
  27.                 <!-- Featured Image -->
  28.                 <?php if(get_option_tree('show_featured_image') == 'Yes') : ?>
  29.    
  30.                     <?php if (has_post_thumbnail( $post->ID )) {
  31.                        
  32.                         if (get_option_tree('sencha') == 'Yes') {
  33.                             $sencha = 'http://src.sencha.io/';
  34.                         } else {
  35.                             $sencha = '';
  36.                         }
  37.                                
  38.                         $image = wp_get_attachment_image_src( get_post_thumbnail_id( $post->ID ), 'full' ); ?>
  39.                         <a href="<?php echo $image[0]; ?>" data-rel="prettyPhoto">
  40.                             <img class="aligncenter" src="<?php echo $sencha; ?><?php echo get_template_directory_uri(); ?>/functions/timthumb/timthumb.php?src=<?php echo $image[0]; ?>&w=940&zc=1" alt="<?php the_title(); ?>" />
  41.                         </a>
  42.                                
  43.                     <br class="clearfix" />                
  44.                     <?php } else {} ?>   
  45.                    
  46.                 <?php endif; ?>
  47.            
  48.                 <?php the_content(); ?>
  49.                
  50.                 <?php wp_link_pages('before=<br /><div id="page-links"><span>Pages:</span>&after=</div><hr />&link_before=<div>&link_after=</div>'); ?>
  51.                
  52.                
  53.                
  54.                
  55.             <?php endwhile; ?> 
  56.         <div class="bottomLinkBox">
  57.     <?php
  58.           if($post->post_parent) {
  59.               $children = wp_list_pages("title_li=&child_of=".$post->post_parent."&echo=0&sort_column=menu_order");
  60.               $title_heading = get_the_title($post->post_parent);
  61.           }
  62.  
  63.           else {
  64.               $children = wp_list_pages("title_li=&child_of=".$post->ID."&echo=0");
  65.               $title_heading = get_the_title($post->ID);
  66.           }
  67.           if ($children) { ?>
  68.  
  69.           <h2> <?php echo $title_heading; ?> </h2>
  70.           <ul>
  71.               <?php echo $children; ?>
  72.           </ul>
  73.         </div>
  74.  
  75.     <?php } ?>             
  76.         </div>
  77.     </div>
  78.         <!-- /CONTENT -->
  79.        
  80.         <!-- ============================================== -->
  81.        
  82.         <!-- SIDEBAR -->
  83.         <div class="five columns sidebar">
  84.             <div id="style-sidebar">
  85.             <?php dynamic_sidebar( 'default-widget-area' ); ?> 
  86.             </div>
  87.         </div>
  88.         <!-- /SIDEBAR -->
  89.  
  90.    
  91.     <!-- /End 960 Container -->
  92. </div>
  93.  
  94. <!-- /End Super Container -->
  95.  
  96.  
  97. <!-- ============================================== -->
  98.  
  99.  
  100. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement