<?php get_header(); ?>

								
                    <!-- Inner Content Section starts here -->
                    <div id="inner_content_section">

                        
						<?php if(!of_get_option('show_magpro_slider_single') || of_get_option('show_magpro_slider_single') == 'true') : ?>  
                            <?php 
								if ( of_get_option('magpro_slider') ) {
									$destro_dslider = of_get_option('magpro_slider');
								} else {
									$destro_dslider = 'cheader';
								}
								get_template_part( 'slider', $destro_dslider ); 
							?>                
                        <?php endif; ?>                                              
                        
                        	             
                        <!-- Main Content Section starts here -->
                        <div id="main_content_section">
                

										<?php if (have_posts()) : ?>
											<?php while (have_posts()) : the_post(); ?>
												<!-- Actual Post starts here -->
												<div <?php post_class('actual_post') ?> id="post-<?php the_ID(); ?>">
													<div class="ta_meta_container">
                                                    
														<?php if(of_get_option('show_featured_image_single') == 'true' && has_post_thumbnail() ) : ?>                      
                                                        <div class="featured_section_sheader">                            
                                                                <?php the_post_thumbnail( 'Destrosingle' ); ?>
                                                        </div>              
                                                        <?php endif; ?>   
                                                                                                         
                                                        <div class="actual_post_title">
                                                            <h2><?php the_title(); ?></h2>
                                                        </div>
                                                        
                                                        <?php if ( function_exists('the_ratings') && (!of_get_option('show_rat_on_single') || of_get_option('show_rat_on_single') == 'true')) : ?>
                                                        <div class="actual_post_ratings">
                                                            <?php the_ratings(); ?>
                                                        </div>   
                                                        <?php endif; ?> 
                                                        
                                                        <?php if (!of_get_option('show_pd_on_single') || of_get_option('show_pd_on_single') == 'true') : ?>                                                   
                                                        <div class="actual_post_author">
                                                            <div class="actual_post_posted"><?php _e('Posted by :','destro'); ?><span><?php the_author() ?></span> <?php _e('On :','destro'); ?> <span><?php the_time(get_option( 'date_format' )) ?></span></div>
                                                            <div class="actual_post_comments"><?php comments_number( '0', '1', '%' ); ?></div>
                                                        </div>
                                                        <?php endif; ?> 
                                                        
                                                         <?php if(!of_get_option('show_cats_on_single') || of_get_option('show_cats_on_single') == 'true') : ?>                                                                        
                                                        <div class="metadata">
                                                            <p>
                                                                <span class="label"><?php _e('Category:', 'destro') ?></span>
                                                                <span class="text"><?php the_category(', ') ?></span>
                                                            </p>
                                                            <?php the_tags('<p><span class="label">'.__('Tags:','destro').'</span><span class="text">', ', ', '</span></p>'); ?>
                                                            
                                                        </div><!-- /metadata -->
                                                        <?php endif; ?>
                                                        
                                                        
                                                        
                                                    </div>	
                                                    
                                                    <!-- Post entry starts here -->												
													<div class="post_entry">

														<div class="entry">
															<?php the_content(__('<span>Continue Reading >></span>', 'destro')); ?>
															<div class="clear"></div>
															<?php wp_link_pages( array( 'before' => '<div class="page-link"><span>' . __( 'Pages:', 'destro' ) . '</span>', 'after' => '</div>' ) ); ?>	
                                                          	<?php 
																
																if (is_attachment()){ 
																	echo '<p class="destro_prev_img_attch">';
																	previous_image_link( false, '&#171; '.__('Previous Image' , 'destro').'' ); 
																	echo '</p>';
																}  
															?> 
                                                          	<?php 
																
																if (is_attachment()){ 
																	echo '<p class="destro_prev_img_attch">';
																	next_image_link( false, ''.__('Next Image' , 'destro').' &#187;' );
																	echo '</p>'; 
																}
															?>                                                                                                                        																			
														</div>

																												
													</div>
                                                    <!-- post entry ends here -->
                                                   
	                                                <?php if(!of_get_option('show_author_bio') || of_get_option('show_author_bio')=='true') : ?>
													<!-- Bio starts here -->
                                                    <div class="post_author_bio">
                                                        <div class="post_author_bio_bio">
                                                        
                                                        	<div class="post_author_bio_bio_pic">
                                                            	<?php echo get_avatar( get_the_author_meta('ID'), 88 ); ?>
                                                            </div>
                                                            
                                                        	<div class="post_author_bio_bio_desc">
                                                            	<p class="post_author_pic"><?php the_author() ?></p>
                                                                <p><?php the_author_meta('description'); ?></p>
                                                            </div>                                                            
                                                        
                                                        
                                                        </div>
                                                        <div class="post_author_bio_social">
                                                        
                                                        	
                                                            	<?php 
																	$destro_authorswebsitelink =  destro_get_custom_field('authors_website', get_the_ID(), true);
																	
																	if( !empty($destro_authorswebsitelink) ) {
																		$destro_authorswebsite =  $destro_authorswebsitelink;
																			}else {
																				$destro_authorswebsite =  get_the_author_meta('user_url');
																			}
																?>
                                                                <?php if(!empty($destro_authorswebsite)) : ?>
                                                                <div class="authors_website">
                                                                
                                                                	<p><a href="<?php echo $destro_authorswebsite; ?>"><?php _e("Visit Author's Website",'destro'); ?></a></p>
                                                            	</div>
                                                                <?php endif; ?>
                                                            
                                                        	
                                                            	<?php 
																	$destro_authorstwitterlink =  destro_get_custom_field('authors_twitter', get_the_ID(), true);
																	
																	if( !empty($destro_authorstwitterlink) ) {
																		$destro_authorstwitter =  $destro_authorstwitterlink;
																			}else {
																				$destro_authorstwitter =  of_get_option('twitter_id');
																			}
																?> 
                                                                <?php if(!empty($destro_authorstwitter)) : ?>
                                                                <div class="authors_twitter">                                                           
                                                            		<p><a href="https://www.twitter.com/<?php echo $destro_authorstwitter; ?>"><?php _e("Follow On Twitter",'destro'); ?></a></p>
                                                            	</div>  
                                                            	<?php endif; ?>
                                                                
                                                                
                                                        	
                                                            	<?php 
																	$destro_authorsfacebooklink =  destro_get_custom_field('authors_facebook', get_the_ID(), true);
																	
																	if( !empty($destro_authorsfacebooklink) ) {
																		$destro_authorsfacebook =  $destro_authorsfacebooklink;
																			}else {
																				$destro_authorsfacebook =  of_get_option('facebook_id');
																			}
																?>   
                                                                
                                                                <?php if(!empty($destro_authorsfacebook)) : ?>
                                                                <div class="authors_facebook">                                                           
                                                            		<p><a href="<?php echo $destro_authorsfacebook; ?>"><?php _e("Like On Facebook",'destro'); ?></a></p>
                                                            	</div>
																<?php endif; ?>                                                                                                                      
                                                        
                                                        </div>                                                        
                                                    </div>
                                                    <!-- Bio ends here -->       
                                                    <?php endif; ?>
                                                    
                                                    
                                                    <?php if(!of_get_option('show_rss_box') || of_get_option('show_rss_box')=='true') : ?>
                                                    <!-- Newsletter starts here -->  
                                                    <div class="single_newsletter">
                                                    
                                                    	<div class="single_newsletter_heading">
                                                        	<p><a href="<?php echo get_feed_link( 'rss2' ); ?>"><?php _e('Subscribe To RSS','destro'); ?></a></p>
                                                        </div>                                                     
                                                    
                                                    </div>                                                    
                                                    <!-- Newsletter ends here -->        
                                                    <?php endif; ?>
                                                    
                                                                                                      

                                                    
                                                    <?php if(!of_get_option('show_np_box') || of_get_option('show_np_box')=='true') : ?>
                                                    <!-- Next/prev post starts here -->  
                                                    <div class="single_np">
                                                    
                                                    	

                                                            
                                                          	<?php 
																
																previous_post_link('<div class="single_np_prev"><p class="single_np_prev_np">'.__('Previous Post' , 'destro').'</p><p> %link</p></div>');
																
															?>                                                            
                                                            
                                                        
                                                        
                                                    	

                                                          	<?php 
																
																next_post_link('<div class="single_np_next"><p class="single_np_next_np">'.__('Next Post' , 'destro').'</span></p><p> %link</p></div>');
																
															?>                                                             
                                                                                                                
                                                    
                                                    </div>                                                    
                                                    <!-- Next/prev post ends here --> 
                                                    <?php endif; ?>
                                                    
                                                    
												</div>
												<!-- Actual Post ends here -->		
												<?php comments_template(); ?>
												<?php endwhile; ?>
												<?php endif; ?>
                
                
                        </div>	
                        <!-- Main Content Section ends here -->

                        <!-- Sidebar Section starts here -->
                        <?php get_sidebar(); ?> 	
                        <!-- Sidebar Section ends here -->




                    </div>	
                    <!-- Inner Content Section ends here -->
                    
           			<?php get_footer(); ?>
							
								
									

							
								
									
