<?php get_header(); ?>
 <?php if(get_option('tigu_homepage-news-ticker') == 'true' && get_option('tigu_newsticker_single_page') == 'true'): ?>
<div class="newstickers" style="height:36px;"><?php jnewsticker_display( get_option('tigu_ticker_choosed_id') ) ?></div>
<?php endif; ?>
<!-- START PAGE -->
<div id="main">
        <?php if (have_posts()) : while (have_posts()) : the_post(); ?>
    <div class="grids_box_sidebar">
        <div class="buddy-widget-title"><h3><?php the_title(); ?></h3></div>
    </div>
    <div class="bordback">


        <?php if (has_post_thumbnail()): ?> 		
        <?php $large_image_url = wp_get_attachment_image_src( get_post_thumbnail_id(), 'full');?>
        <div class="pagesingle-image">
            <?php the_post_thumbnail('post-image'); ?>
        </div>
        <?php endif; ?>
        <div class="post-entry">

            <?php the_content(); ?>
        </div>
        
<br class="clearspace-bottom">
    </div>

 <?php if (is_page() && comments_open()): ?>

   <?php if( get_option('tigu_comments_type_on_pages', 'WordPress') == 'WordPress') : ?>
<div class="grids_box_sidebar" style="border-bottom:#d5d5d5 solid 1px !important">
<div class="widget-title">

<h3><?php _e('Comments', 'Gameleon'); ?>:</h3>

</div>
</div>
<div id="comments">
<div class="gamepage">
<div class="gamepagewhite">
<?php comments_template(); ?>

</div>
</div>
</div>

<?php elseif( get_option('tigu_comments_type_on_pages', 'WordPress') == 'Facebook') : ?>
<div class="grids_box_sidebar" style="border-bottom:#d5d5d5 solid 1px !important">
<div class="widget-title">

<h3><?php _e('Facebook Comments', 'Gameleon'); ?>:</h3>

</div>
</div>
<div id="comments">
<div class="gamepage">
<div class="gamepagewhite">
<?php $url = (!empty($_SERVER['HTTPS'])) ? "https://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'] : "http://" . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI']; ?>	
<div class="fb-comments" data-href="<?php echo $url; ?>" data-num-posts="10" data-width="630"></div>

</div>
</div>
</div>


<?php elseif( get_option('tigu_comments_type_on_pages', 'None') == 'None') : ?>

<?php else: ?>

<?php comments_template(); ?>

<?php endif; ?>

<?php endif; ?>

   <?php wp_link_pages(); ?>
   <?php endwhile; endif; ?>
</div>
 
<!-- END PAGE -->
<?php get_sidebar(); ?>
<?php get_footer(); ?>