<?php 
    include '../../core/core.php';
    $classInfo = $DB->getRow("SELECT * FROM `pre_class` WHERE `path`='".$class."'");
    $viewInfo = $DB->getRow("SELECT * FROM `pre_view` WHERE `id`='".$view."'"); 
    if(rootPath()){
        $siteUrl = siteHttp().'/'.rootPath();
    }else{
        $siteUrl = siteHttp();
    }
?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta charset="UTF-8">
    <title><?php echo $viewInfo['title']?> - <?php echo $viewInfo['title2']?></title>
    <meta name="keywords" content="<?php echo $viewInfo['keywords']?>">
    <meta name="description" content="'<?php echo $viewInfo['description']?>">
    <link rel="icon" href="favicon.ico">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/animate.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/lightcase.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/simple-line-icons.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/font-awesome.min.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/bootstrap.min.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/style.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/home-3-style.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/responsive.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/price.css">
    <link rel="stylesheet" href="<?php echo $siteUrl; ?>/public/assets/default/css/number.css">
    <style>
        body .demo-class .layui-layer-btn0 {
            border-color: #E6E3E6;
            background-color: #2CA8FF;
            color: #fff;
            font-size: 13px;
        }

        body .demo-class .layui-layer-title {
            background: #2CA8FF;
            color: #FFFFFF;
            border: none;
        }
    </style>
</head>

<body data-spy="scroll" data-target=".navbar">
    <!-- 导航栏 -->

    <header class="header">
        <nav class="navbar navbar-expand-lg fixed-top" id="main-nav">
            <div class="container">
                <button class="navbar-toggler order-1" type="button" data-toggle="collapse" data-target="#main-nav-collapse" aria-controls="main-nav-collapse" aria-expanded="false" aria-label="Toggle navigation">
                    <span class="menu-toggle">
                        <span class="hamburger">
                            <span></span>
                            <span></span>
                            <span></span>
                        </span>
                        <span class="hamburger-cross">
                            <span></span>
                            <span></span>
                        </span>
                    </span>
                </button>
                <style>
                    .layui-layer-btn0 a {
                        color: #fff;
                    }

                    @keyframes fade {
                        from {
                            opacity: 0.9;
                        }

                        50% {
                            opacity: 0.1;
                        }

                        to {
                            opacity: 0.9;
                        }
                    }

                    @-webkit-keyframes fade {
                        from {
                            opacity: 0.9;
                        }

                        50% {
                            opacity: 0.1;
                        }

                        to {
                            opacity: 0.9;
                        }
                    }

                    .headerBox {
                        position: fixed;
                        left: 46%;
                        bottom: 20px;
                        color: #fff;
                        width: 35px;
                        animation: fade 1500ms infinite;
                        -webkit-animation: fade 1500ms infinite;
                    }

                    .headerBoxx {
                        position: fixed;
                        left: 46%;
                        bottom: 20px;
                        color: #fff;
                        width: 35px;
                    }
                </style>
                <div class="collapse navbar-collapse order-3 order-lg-2" id="main-nav-collapse">
                    <ul class="navbar-nav ml-auto">
                        <li class="nav-item">
                            <a class="nav-link nav-link-scroll" href="#">首页</a>
                        </li>
                        <li class="nav-item">
                            <a class="nav-link nav-link-scroll" href="#ys">优势</a>
                        </li>
                        <?php  
                            $head_arr = explode("\n",$viewInfo['head']);

                            for($i=0;$i<count($head_arr);$i++){
                                $a = explode("|",$head_arr[$i]);
                                echo '<li class="nav-item">
                            <a href="'.$a[1].'" class="nav-link nav-link-scroll">'.$a[0].'</a>
                        </li>';
                            }
                        ?>
                    </ul>
                </div>
            </div>
        </nav>
    </header>
    <!-- 导航栏 -->
    <!-- 头部 -->
    <section class="home-3-banner main-banner" id="banner">
        <div class="container">
            <div class="row align-items-center">
                <div class="col-lg-6 col-md-7">
                    <div class="banner-content">
                        <div class="ovh">
                            <h2 class="title wow slideInDownBig" data-wow-duration=".65s" data-wow-delay=".1s"><?php echo $viewInfo['title']?>
                            </h2>
                        </div>
                        <div class="ovh">
                            <span class="sub-title wow slideInDownBig" data-wow-duration=".65s" data-wow-delay=".3s"><?php echo $viewInfo['keywords']?></span>
                        </div>
                        <div class="btn-wrapper ovh">
                            <a href="<?php echo $viewInfo['xdurl']?>" class="btn store-btn fill-style wow slideInDownBig" data-wow-duration=".65s" data-wow-delay=".4s"><i class="fa fa-shopping-cart" aria-hidden="true"></i>&nbsp; <span>立即下单</span></a>
                            <a href="<?php echo $viewInfo['newurl']?>" class="btn store-btn fill-style wow slideInDownBig" data-wow-duration=".65s" data-wow-delay=".4s"><i class="fa fa-mouse-pointer" aria-hidden="true"></i>&nbsp; <span>点我进入</span></a>
                        </div>
                    </div>
                </div>
                <div class="col-lg-6 col-md-5 h3-banner-img-wrapper">
                    <img src="<?php echo $siteUrl; ?>/public/assets/default/images/banner-mobile4.png" class="h3-banner-img-1 wow slideInDown" data-wow-delay=".1s" alt>
                </div>
            </div>
        </div>
        <div class="wave">
            <div class="h3-wabe"><img src="<?php echo $siteUrl; ?>/public/assets/default/images/shape-h2.png" alt></div>
        </div>
    </section>
    <!-- 头部 -->
    <!-- 优势 -->
    <section class="h3-feature s-padding bg-color" id="ys">
        <div class="container">
            <div class="row justify-content-center">
                <div class="col-lg-4">
                    <div class="icon-box style-centered">
                        <div class="icon-box-icon">
                            <i class="fa fa-expeditedssl" aria-hidden="true"></i>
                        </div>
                        <div class="icon-box-details">
                            <h3 class="icon-box-title">我们的优势</h3>
                            <p><?php echo $viewInfo['description']?></p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="icon-box style-centered">
                        <div class="icon-box-icon">
                            <i class="icon-rocket"></i>
                        </div>
                        <div class="icon-box-details">
                            <h3 class="icon-box-title">高效，稳定加速</h3>
                            <p><?php echo $viewInfo['title']?>基于全世界最好的语言PHP开发依托于高性能服务器</p>
                        </div>
                    </div>
                </div>
                <div class="col-lg-4">
                    <div class="icon-box style-centered">
                        <div class="icon-box-icon">
                            <i class="fa fa-thumbs-up" aria-hidden="true"></i>
                        </div>
                        <div class="icon-box-details">
                            <h3 class="icon-box-title">强悍，无需解释</h3>
                            <p>以全网最快更新速度，您想要的我们都有。</p>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <!-- 优势 -->
    <!-- 视频 -->
    <section class="video-sec bg-img" id="video">
        <div class="overlay"></div>
        <div class="container">
            <div class="row">
                <div class="col-12">
                    <div class="video-play-content">
                        <h2 class="title">加入<?php echo $viewInfo['title']?>是你最好的选择！</h2>
                    </div>
                </div>
            </div>
        </div>
    </section>
    <section class="counter-section">
        <div class="container">
            <div class="counter-middle-icon">
                <span class="icon-counter-sid"><img src="<?php echo $siteUrl; ?>/public/assets/default/images/counter.png"></span>
                <h2 class="icon-counter-sid-title"><?php echo $arr[$id][0]; ?> <b>因为实力，更多人的选择</b></h2>
            </div>
            <div class="row justify-content-center">
                <div class="col-md-4 counter-number-tibo"><i class="fa fa-user-o" aria-hidden="true"></i> <span><small class="counter">186211</small>位</span><b>客户</b></div>
                <div class="col-md-4 counter-number-tibo pad-top-190"><i class="fa fa-sitemap" aria-hidden="true"></i><span>
                        <small class="counter">13657</small>位</span> <b>代理商</b></div>
                <div class="col-md-4 counter-number-tibo"><i class="fa fa-calendar" aria-hidden="true"></i><span> <small class="counter">1359</small>天</span><b>已运行天数</b></div>
            </div>
        </div>
    </section>


    <footer class="footer">
        <div class="f-copyright-area h3-style">
            <div class="container">
                <div class="row align-items-center justify-content-center">
                    <div class="col-md-6">
                        <p class="copyright text-center mb-2 mb-md-0">
                            <a href="<?php echo $viewInfo['xdurl'] ?>" title="<?php echo $viewInfo['title'] ?>" style="color:#D5D6E2;">© <?php echo $viewInfo['title'] ?></a><br>
                                <?php echo $viewInfo['foot'] ?>
                                <?php 
                                    echo str_replace("{随机页面链接}",randView(),conf('footer'));
                                ?>
                        </p>
                    </div>
                </div>
            </div>
        </div>
    </footer><!-- footer -->
    <div class="scroll-top"><i class="fa fa-arrow-up" aria-hidden="true"></i></div>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jquery-2.2.3.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/popper.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/waypoints.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/bootstrap.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/lightcase.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jquery.counterup.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/tweenmax.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jquery.wavify.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/wow.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jquery.parallax-scroll.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/particles.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jarallax.min.js"></script>
    <script src="<?php echo $siteUrl; ?>/public/assets/default/js/jarallax-video.min.js"></script>
</body>
</html>