Advertisement
globalaperta

content-start-wrapper.php

Jan 25th, 2014
39
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.94 KB | None | 0 0
  1. <?php get_header(); ?>
  2.     <div class="content">
  3. <?php tie_breadcrumbs() ?>
  4.         <?php if ( ! have_posts() ) : ?>
  5.         <div id="post-0" class="post not-found post-listing">
  6.             <h1 class="post-title"><?php _e( 'Not Found', 'tie' ); ?></h1>
  7.             <div class="entry">
  8.                 <p><?php _e( 'Apologies, but no results were found for the requested archive. Perhaps searching will help find a related post.', 'tie' ); ?></p>
  9.                 <?php get_search_form(); ?>
  10.             </div>
  11.         </div>
  12.         <?php endif; ?>
  13.         <?php while ( have_posts() ) : the_post(); ?>
  14.         <?php $get_meta = get_post_custom($post->ID);
  15.             if( !empty( $get_meta['tie_review_position'][0] ) ){
  16.                 $review_position = $get_meta['tie_review_position'][0] ;
  17.                 $rv = $tie_reviews_attr;
  18.             }
  19.            
  20.             $post_width = $get_meta["tie_sidebar_pos"][0];
  21.             if( $post_width == 'full' ) $content_width = 955;
  22.         ?>
  23.        
  24.         <?php //Above Post Banner
  25.         if(  empty( $get_meta["tie_hide_above"][0] ) ){
  26.             if( !empty( $get_meta["tie_banner_above"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_above"][0]) .'</div>';
  27.             else tie_banner('banner_above' , '<div class="ads-post">' , '</div>' );
  28.         }
  29.         ?>
  30.                
  31.             <?php get_template_part( 'includes/post-head' ); ?>
  32.  
  33.             <div class="post-inner">
  34.                 <h1 class="name post-title entry-title" itemprop="itemReviewed" itemscope itemtype="http://schema.org/Thing"><span itemprop="name"><?php the_title(); ?></span></h1>
  35.  
  36.                 <?php get_template_part( 'includes/post-meta' ); ?>
  37.  
  38.                 <div class="entry">
  39.                     <?php if( ( tie_get_option( 'share_post_top' ) &&  empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
  40.                    
  41.                     <?php the_content(); ?>
  42.                                        
  43.                 </div><!-- .entry /-->
  44.                
  45.                 <?php if ( get_the_author_meta( 'google' ) ){ ?>
  46.                 <div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><a href="<?php the_author_meta( 'google' ); ?>?rel=author">+<?php echo get_the_author(); ?></a></strong></div>
  47.                 <?php }else{ ?>
  48.                 <div style="display:none" class="vcard author" itemprop="author" itemscope itemtype="http://schema.org/Person"><strong class="fn" itemprop="name"><?php the_author_posts_link(); ?></strong></div>
  49.                 <?php } ?>
  50.                
  51.                 <?php if( ( tie_get_option( 'share_post' ) &&  empty( $get_meta["tie_hide_share"][0] ) ) || $get_meta["tie_hide_share"][0] == 'no' ) get_template_part( 'includes/post-share' ); // Get Share Button template ?>
  52.  
  53.             </div><!-- .post-inner -->
  54.         </article><!-- .post-listing -->
  55.  
  56.         <?php //Below Post Banner
  57.         if( empty( $get_meta["tie_hide_below"][0] ) ){
  58.             if( !empty( $get_meta["tie_banner_below"][0] ) ) echo '<div class="ads-post">' .htmlspecialchars_decode($get_meta["tie_banner_below"][0]) .'</div>';
  59.             else tie_banner('banner_below' , '<div class="ads-post">' , '</div>' );
  60.         }
  61.         ?>
  62.  
  63.         <?php endwhile;?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement