<?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'];

?>  
<!-- REVOLUTION STYLE SHEETS -->
<link rel="stylesheet" type="text/css" href="<?php echo $jtpath?>slider_02/revolution-slider/css/rs6.css">
<link rel="stylesheet" type="text/css" href="<?php echo $jtpath?>slider_02/extra-rev-slider1.css">
<!-- REVOLUTION LAYERS STYLES -->
<!-- REVOLUTION JS FILES -->
<script src="<?php echo $jtpath?>slider_02/revolution-slider/js/revolution.tools.min.js"></script>
<script src="<?php echo $jtpath?>slider_02/revolution-slider/js/rs6.min.js"></script>
<script src="<?php echo $jtpath?>slider_02/extra-rev-slider1.js"></script>




            <rs-module-wrap id="rev_slider_1_1_wrapper" data-alias="industrivo-rev-slider-2" data-source="gallery" style="background:transparent;padding:0;margin:0px auto;margin-top:0;margin-bottom:0;">
              <rs-module id="rev_slider_1_1" style="display:none;" data-version="6.1.7">
                <rs-slides>
                  <?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;

       $k++;
     }


                  ?>
                  <rs-slide data-key="rs-<?php echo $k?>" data-title="" data-thumb="<?php echo $img?>" data-anim="ei:d;eo:d;s:d;r:0;t:slotslide-horizontal;sl:d;">
                    <img src="<?php echo $img?>" alt=""  width="1920" height="1280" data-parallax="off" class="rev-slidebg" data-no-retina />
                    <?php 
                      if($desp<>''){
                    ?>
                    <rs-layer
                      id="slider-4-slide-9-layer-18"
                      data-type="text"
                      data-rsp_ch="on"
                      data-xy="x:l,l,l,c;xo:45px,45px,35px,0;yo:260px,203px,233px,212px;"
                      data-text="w:normal;s:50,93,92,68;l:115,89,90,68;ls:1px,0px,0px,0px;fw:700;a:left,left,left,center;"
                      data-frame_1="st:1000;sp:1000;sR:220;"
                      data-frame_999="o:0;st:w;sR:7790;"
                      style="z-index:9;font-family:Titillium Web;"
                      >
                      <?php echo $desp?>                        
                      </rs-layer>
                    <?php 
                  }
                  ?>
                   　<?php 
                      if($dhlinkurl<>''){
                    ?>
                    <rs-layer
                      id="slider-4-slide-9-layer-22"
                      data-type="text"
                      data-rsp_ch="on"
                      data-xy="x:l,l,l,c;xo:50px,50px,40px,0;yo:540px,422px,448px,390px;"
                      data-text="w:normal;s:20,15,18,20;l:25,19,18,32;a:left,left,left,center;"
                      data-frame_1="st:1500;sp:1000;"
                      data-frame_999="o:0;st:w;sR:8700;"
                      style="z-index:8;font-family:Roboto;"
                      ><a href="<?php echo $dhlinkurl?>" class="btn btn-flat btn-lg btn-theme-colored1 text-white"><?php echo $dhlinktitle?></a>
                    </rs-layer>
                     <?php 
                  }
                  ?>
                  </rs-slide>


<?php 
}
?>
                </rs-slides>
                <rs-static-layers>
                  <!--
                    -->
                </rs-static-layers>
                <rs-progress class="rs-bottom" style="height: 5px; background: rgba(199,199,199,0.5);"></rs-progress>
              </rs-module>
              <script>
                if(typeof revslider_showDoubleJqueryError === "undefined") {
                  function revslider_showDoubleJqueryError(sliderID) {
                    var err = "<div class='rs_error_message_box'>";
                    err += "<div class='rs_error_message_oops'>Oops...</div>";
                    err += "<div class='rs_error_message_content'>";
                    err += "You have some jquery.js library include that comes after the Slider Revolution files js inclusion.<br>";
                    err += "To fix this, you can:<br>&nbsp;&nbsp;&nbsp; 1. Set 'Module General Options' -> 'Advanced' -> 'jQuery & OutPut Filters' -> 'Put JS to Body' to on";
                    err += "<br>&nbsp;&nbsp;&nbsp; 2. Find the double jQuery.js inclusion and remove it";
                    err += "</div>";
                    err += "</div>";
                    jQuery(sliderID).show().html(err);
                  }
                }
              </script>
            </rs-module-wrap>