<?php
$thePage = 'newsDetails';
include('includes/headerSec.php');
$getTitle = $obj->getDataByField(NEWS_CAT, 'cat01id', $news['n01type']);
$author = $obj->getReporterInfo($news['author']);
$thePage = $getTitle['eng_title'];
$categoryName = $getTitle['cat01category'];
if($news['author']>0){
    $auth= $author['cat01category'];
}elseif($news['posted_by']!=""){
    $auth= $news['posted_by'];
}else{
    $auth="Paschim Today";
}
$day_sec = $obj->getNepaliDate($news['posted_on']);
$eng_date =strtotime($news['posted_on']);
include 'includes/contentBlockAd.php';
include('includes/header.php');
?>
    <section class="add-sec">
        <div class="container">
            <div class="row">
                <div class="col-md-12">
                    <?php $obj->getAdSimple('8',array(0,5),'img-wrap1');?>
                </div>
            </div>
        </div>
    </section>
<article class="innr sngl">
	<div class="container">
		<div class="row">
			<div class="col-md-8 col-lg-9">
              <div class="news-contn">
                    <div class="add-sec">
                        <?php $obj->getAdSimple('4',array(0,5),'img-wrap1');?>
                </div>
					<div class="inr-head">
						<h1><?php echo stripcslashes($news['n01title']);?></h1>
							<h3><?php echo stripcslashes($news['sub_title']);?></h3>
                      <div class="row">
                        <div class="col-md-7">
                          <div class="date-sec">
                              <?php if($news['n01type']!='16'):?>
                              <i class="fa  fa-calendar-check-o"></i><?php echo $day_sec['day'] . ' ' . $day_sec['nmonth'] . ' ' . $obj->prepare_Eng_to_Nep($day_sec['date']) . ', ' . $obj->convertNepaliUnicode($day_sec['year']) ?>/ <?php echo date('l', $eng_date) . ' ' . date('m', $eng_date) . '-' . date('d', $eng_date) . '-' . date('y', $eng_date); ?>
  <?php else:?>
                                  <i class="fa  fa-calendar-check-o"></i><?php echo date('l', $eng_date) . ' ' . date('m', $eng_date) . '-' . date('d', $eng_date) . '-' . date('y', $eng_date); ?>

      <?php
  endif;
      ?>

                          </div>
                        </div>
                        <div class="col-md-5">
                         
                				<div class="sharethis-inline-share-buttons"></div>
              
                        </div>
                      </div>
						<div class="dates">
							<div class="news-reprtr">
								<i class="fa fa-user"></i><?php echo $auth ;?>
							</div>
						</div>
					</div>
                    <div class="img-wrap1">
                        <?php if ($news['yt_code'] != "") { ?>

                                <div class="embed-responsive embed-responsive-16by9">
                                    <iframe class="embed-responsive-item"
                                            src="https://www.youtube.com/embed/<?php echo $news['yt_code']; ?>"></iframe>
                                </div>

                            <?php
                        }elseif($news['n01image']!=""){
                            ?>
                            <figure>
                                <img src="<?php echo NEWS_IMAGE.$news['n01image'];?>">
                                <?php if($news['img_caption']!=""):?>
                                <figcaption><?php echo $news['img_caption'];?></figcaption>
                                <?php
                                endif;?>
                            </figure>
                        <?php }elseif($news['img_path']!=""){?>
                            <figure>
                                <img src="<?php echo $news['img_path'];?>">
                                <?php if($news['img_caption']!=""):?>
                                <figcaption><?php echo $news['img_caption'];?></figcaption>
                                <?php
                                endif;?>
                            </figure>
                            <?php
                        }
                        ?>
                    </div>
                      <?php echo $obj->adInsideString(9 ,array(0,3), stripslashes($news['n01desc']),'0'); ?>
                  
					<?php //echo stripcslashes($news['n01desc']);?>
					<div class="margin-bottom" style="
    margin-bottom: 20px;
">
					    	<div class="fb-like" data-href="https://www.facebook.com/paschimtodayofficial" data-width="" data-layout="standard" data-action="like" data-size="large" data-share="false"></div>
                  
					</div>
				  <div class="add-sec">
                        <?php $obj->getAdSimple('5',array(0,20),'img-wrap');?>
                    </div>
				</div>

				<div class="user-comment">
					<div class="headings">
						<h2><a href="news.php">तपाईको प्रतिक्रिया</a></h2>
					</div>
					<div class="fb-comments" data-href="<?php echo SITE_URL.'news-details/'.$news['uin'].'/'.$news['posted_on'];?>/docs/plugins/comments#configurator" data-width="100%" data-numposts="5"></div>
				</div>


			</div>
			<div class="col-md-4 col-lg-3">
			    <div class="fb-lipage">
			        <div class="fb-page" data-href="https://www.facebook.com/paschimtodayofficial" data-tabs="timeline" data-width="" data-height="250" data-small-header="true" data-adapt-container-width="true" data-hide-cover="false" data-show-facepile="true"><blockquote cite="https://www.facebook.com/paschimtodayofficial" class="fb-xfbml-parse-ignore"><a href="https://www.facebook.com/paschimtodayofficial">Paschim Today</a></blockquote></div>
			    </div>
                <?php $obj->getAdSimple('3',array(0,20),'img-wrap');?>
				<div class="side-bar">
					<div class="headings">
						<h2><a href="news.php">ताजा समाचार</a></h2>
					</div>
					<ul class="artha-list">
                           <?php $obj->popularNews(main);?>
					</ul>
				</div>
			</div>
		</div>
	</div>
</article>
<?php include('includes/footer.php');?>
<script>
    $(document).ready(function(){
        $(".closebtn").click(function(){
            $(".advertisementwrap").hide();
        });
    });
</script>
<!-- Go to www.addthis.com/dashboard to customize your tools -->
<script type="text/javascript" src="//s7.addthis.com/js/300/addthis_widget.js#pubid=ra-5a5b2c4dd131a6f7"></script>


