
 <?php
if(!defined('IN_DEMOSOSO')) {
  exit('this is wrong page,please back to homepage');
}


$arr = dm_dirarr(dirname(__FILE__));

 $jtpath = $arr['path'];
 $jtroot = $arr['root'];

?>
    <link rel="stylesheet" href="<?php echo $jtpath?>slider_05/owl-carousel.min.css"> 
    <link rel="stylesheet" href="<?php echo $jtpath?>slider_05/slider05.css">   
   <script src="<?php echo $jtpath?>slider_05/owl-carousel.min.js"></script>     
 
    <section class="hero-slider style1">
      <div class="home-slider">         
          <?php
    foreach($result['data'] as $k=>$v){
         // pre($v);
      $title = $v['title'];  
      $img  =   get_img($v['kv']);   
      $desp  =   $v['desp'];
      $despjj  =   $v['despjj'];
      
      $dhlinkurl =  $dhlinktitle= '';
      foreach ($v['arrcan'] as   $key=>$value) { 
       $bsccc = $key;
       $$bsccc=$value;
     }

     //$linkurlarr =  get_nodelinkurl($dhlinkurl);
   
        //pre($v);
    ?>

        <div class="single-slider" style="background-image:url('<?php echo $img?>')">
           
           <div class="slider05text"> 
                  <?php 
                  if($desp<>''){
                    ?>
                    <div class="text">
                       <?php echo $desp?>
                    </div>
                    <?php 
                  }
                  ?>
                    <?php 
                      if($dhlinkurl<>''){
                    ?>
                    <div class="buttondiv">
                      <a href="<?php echo $dhlinkurl?>" class="bizwheel-btn"><?php echo $dhlinktitle?></a>
                    </div>
                    <?php 
                  }
                  ?>
            </div>
                 

        </div>
       
      <?php 
    }
    ?>  
        
      </div>
    </section>
   
    <script type="text/javascript">
           $(document).on('ready', function() {   
              $('.home-slider').owlCarousel({
                items:1,
                autoplay:true,
                autoplayTimeout:5000,
                smartSpeed: 400,
                autoplayHoverPause:true,
                loop:true,
                merge:true,
                nav:true,
                dots:false,
                navText: ['<i class="fa fa-angle-left"></i>', '<i class="fa fa-angle-right"></i>'],
              });     

          });
    
    

    </script>
