<?php
if (!defined('_GNUBOARD_')) exit; // 개별 페이지 접근 불가

if($row1['me_type'] == 'video' && $row1['me_link']){
    $video_url = $row1['me_link'];
    $url = parse_url($video_url);
    parse_str($url['query']);
}
if(!$bo_table){
  echo "메인 메뉴파입은 관리자화면 > OKonepage관리에서 게시판을 연결해 주세요.";
}
$video_table = $g5['write_prefix'] . $bo_table;
$row = sql_fetch("select * from $video_table order by wr_id asc  limit 0,1");
?>

<!-- slider area start -->
<section id="menu<?php echo $j;?>">
    <!--
  <div class="video-background">
    <div class="video-foreground">
      <iframe src="https://www.youtube.com/embed/W0LHTWG-UmQ?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ" frameborder="0" allowfullscreen></iframe>
    </div>
    </div>
-->
    <div class="video-background">
       <div class="video-foreground">
         <iframe src="https://www.youtube.com/embed/<?php echo $row['wr_1'];?>?controls=0&showinfo=0&rel=0&autoplay=1&loop=1&playlist=W0LHTWG-UmQ&mute=1" frameborder="0" allowfullscreen></iframe>
       </div>
    </div>

     <div class="container">
         <div class="row">
             <div class="col-12 text-center">
                 <div class="welcome-text-content">
                     <div class="weltext">
                         <h2 class="welcome-text"><span><?php echo $row['wr_subject'];?></span></h2>
                         <h4><?php echo $row['wr_content'];?></h4>
                     </div>
                 </div>
             </div>
         </div>
     </div>
    <div class="ok-social-icon">
      <a href="<?php if($okone_bn['okone_facebook']) { echo $okone_bn['okone_facebook']; } else { echo 'http://facebook.com';}?>" class="fa fa-facebook"></a>
      <a href="<?php if($okone_bn['okone_twitter']) { echo $okone_bn['okone_twitter']; } else { echo 'http://twitter.com';}?>" class="fa fa-twitter"></a>
      <a href="<?php if($okone_bn['okone_youtube']) { echo $okone_bn['okone_youtube']; } else { echo 'http://youtube.com';}?>" class="fa fa-youtube"></a>
    </div>
</section>
<!-- slider area end -->
