Advertisement
Guest User

Single.php

a guest
Oct 6th, 2014
289
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 5.08 KB | None | 0 0
  1. <?php global $asteria;?>
  2. <?php get_header(); ?>
  3. <!--Content-->
  4. <div class="fixed_site">
  5.     <div class="fixed_wrap singlefx">
  6.         <div id="content">
  7.             <div class="center">
  8.                 <div class="content_wrap">
  9.                     <!--POST END-->
  10.                     <div class="single_wrap<?php if ( !is_active_sidebar( 'sidebar' ) ) { ?> no_sidebar<?php } ?>">
  11.                 <div class="single_post">
  12.  
  13.                    <?php if(have_posts()): ?><?php while(have_posts()): ?><?php the_post(); ?>
  14.                     <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
  15.                     <!--EDIT BUTTON START-->
  16.                     <?php if ( is_user_logged_in() || is_admin() ) { ?>
  17.                     <div class="edit_wrap"><a href="<?php echo get_edit_post_link(); ?>">
  18.                     <i title="<?php _e('Edit This','asteria'); ?>" class="fa-edit"></i></a>
  19.                     </div>
  20.                     <?php } ?>
  21.                     <!--EDIT BUTTON END-->
  22.                    
  23.                     <!--POST START-->
  24.                     <div class="single_post_content">
  25.                         <h1 class="postitle entry-title"><?php the_title(); ?></h1>
  26.                         <!--POST INFO START-->
  27.                         <?php if (!empty ($asteria['post_info_id'])) { ?>
  28.                         <div class="single_metainfo">
  29.                             <i class="fa-calendar"></i><a class="comm_date updated"><?php the_time( get_option('date_format') ); ?></a>
  30.                             <i class="fa-user"></i><span class="vcard author"><span class="fn"><?php the_author(); ?></span>
  31.  
  32.  </span>
  33.                             <i class="fa-comments"></i><?php if (!empty($post->post_password)) { ?>
  34.                         <?php } else { ?><div class="meta_comm"><?php comments_popup_link( __('0 Comment', 'asteria'), __('1 Comment', 'asteria'), __('% Comments', 'asteria'), '', __('Off' , 'asteria')); ?></div><?php } ?>
  35.                        
  36.                           <i class="fa-th-list"></i><div class="catag_list"><?php the_category(', '); ?></div>
  37.                         </div>
  38.                         <?php } ?>
  39.                         <!--POST INFO START-->
  40.                        
  41.                         <!--POST CONTENT START-->
  42.                         <div class="thn_post_wrap"><?php the_content(); ?> </div>
  43.                         <div style="clear:both"></div>
  44.                         <div class="thn_post_wrap"><?php wp_link_pages('<p class="pages"><strong>'.__('Pages:').'</strong> ', '</p>', 'number'); ?>
  45.                         <!--POST CONTENT END-->
  46.                         </div>
  47.                        
  48.                        
  49.                         <!--POST FOOTER START-->
  50.                         <div class="post_foot">
  51.                             <div class="post_meta">
  52.          <?php if( has_tag() ) { ?><div class="post_tag"><div class="tag_list"><?php the_tags('<i class="fa-tag"></i>','  '); ?></div></div><?php } ?>
  53.                             </div>
  54.                        </div>
  55.                        <!--POST FOOTER END-->
  56.                        
  57.                     </div>
  58.                     <!--POST END-->
  59.                     </div>
  60.                        
  61.             <?php endwhile ?>
  62.        
  63.             <?php endif ?>
  64.  
  65. <!--SOCIAL SHARE POSTS START-->
  66. <?php if (!empty ($asteria['social_single_id'])) { ?>
  67.     <?php get_template_part('share_this');?>
  68. <?php } ?>
  69. <!--SOCIAL SHARE POSTS END-->
  70. </div>
  71.  
  72. <!--NEXT AND PREVIOUS POSTS START-->
  73. <?php if (!empty ($asteria['post_nextprev_id'])) { ?>
  74. <div id="ast_nextprev" class="navigation">
  75.     <?php $prevPost = get_previous_post(true); if($prevPost) {?>
  76.         <div class="nav-box ast-prev">
  77.         <?php $prevthumbnail = get_the_post_thumbnail($prevPost->ID, array(100,100) );?>
  78.         <?php previous_post_link('%link',"$prevthumbnail Previous Post<br><span>%title</span>", TRUE); ?>
  79.         <a class="left_arro" href="#"><i class="fa-angle-left"></i></a>
  80.         </div>
  81.     <?php }?>
  82.     <?php $nextPost = get_next_post(true); if($nextPost) { ?>
  83.         <div class="nav-box ast-next">
  84.         <?php $nextthumbnail = get_the_post_thumbnail($nextPost->ID, array(100,100) ); ?>
  85.         <?php next_post_link('%link',"$nextthumbnail Next Post<br><span>%title</span>", TRUE); ?>
  86.         <a class="right_arro" href="#"><i class="fa-angle-right"></i></a>
  87.         </div>
  88.     <?php }?>
  89. </div>
  90. <?php }?>
  91.  
  92. <!--NEXT AND PREVIOUS POSTS END-->                
  93.        
  94.        
  95. <!--RELATED POSTS START-->  
  96. <?php if (!empty ($asteria['post_related_id'])) { ?>
  97.     <?php get_template_part('related'); ?>
  98. <?php }?>    
  99. <!--RELATED POSTS END-->
  100.  
  101. <!--COMMENT START: Calling the Comment Section. If you want to hide comments from your posts, remove the line below-->    
  102. <?php if (!empty ($asteria['post_comments_id'])) { ?>
  103.     <div class="comments_template">
  104.         <?php comments_template('',true); ?>
  105.     </div>
  106. <?php }?>
  107. <!--COMMENT END-->
  108.  
  109.  
  110.             </div>
  111. <!--SIDEBAR START-->
  112. <?php if ( is_active_sidebar( 'sidebar' ) ) { ?><?php get_sidebar();?><?php } ?>
  113. <!--SIDEBAR END-->
  114.  
  115.         </div>
  116.     </div>
  117. </div>
  118. </div>
  119. </div>
  120. <?php get_footer(); ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement