<?php 
get_header();
the_post();
//updating the number of views
$views = (int)get_post_meta($post->ID, '_teo_views', true);
update_post_meta($post->ID, '_teo_views', $views+1);
?>
<section id="main" role="main">
    <div class="container">
        <div class="row">
            <div class="col-sm-9 right-content">
                <div class="row">
                    <?php if($redux_demo['ad1'] != '') {
                        echo '<div class="header_ad">' . $redux_demo['ad1'] . '</div>';
                    } ?>
                    <div class="col-sm-9">
                        <?php if($redux_demo['ad2'] != '') {
                            echo '<div class="header_ad">' . $redux_demo['ad2'] . '</div>';
                        } ?>
                        <div class="main-wrap">
                            <?php get_template_part( 'content', get_post_format() ); ?>
                            <div class="article-infos">
                                <div class="page-content">
                                    <?php 
                                    the_content();
                                    wp_link_pages(array('before' => '<p class="paginate_single"><strong>'.esc_html__('Pages','Aruna').':</strong> ', 'after' => '</p>', 'next_or_number' => 'number'));
                                ?>
                                </div>
                                <?php $tags = get_the_terms($post->ID, 'post_tag');
                                if($tags) { ?>
                                    <h2><?php _e('Post tags:', 'Aruna');?></h2>
                                    <hr/>
                                    <div class="tags">
                                        <ul>
                                            <?php 
                                            foreach($tags as $tag) { ?>
                                                <li>
                                                    <a href="<?php echo get_term_link( $tag );?>" title="<?php echo sprintf(__('View all post filed under %s', 'Aruna'), $tag->name);?>"><?php echo $tag->name;?></a>
                                                </li>
                                            <?php } ?>
                                        </ul>
                                    </div>
                                <?php } ?>
                                <div class="single-navigation">
                                    <?php previous_post_link("<div class='prev'>&laquo; %link</div>"); ?>
                                    <?php next_post_link("<div class='next'>%link &raquo;</div>"); ?> 
                                </div>
                                <?php if($redux_demo['ad3'] != '') {
                                    echo '<div class="single_ad">' . $redux_demo['ad3'] . '</div>';
                                } ?>
                                <?php comments_template('', true);?>
                            </div>
                        </div>
                    </div>
                    <?php get_sidebar('right');?>
                </div>
            </div>
            <?php get_sidebar('left');?>
        </div>
    </div>
</section>
<!-- www.20script.ir -->
<?php get_footer();?>