<?php if(!defined('IN_DISCUZ')) exit('Access Denied'); hookscriptoutput('index');?>
<?php //include template('common/header'); ?>
<?php include template('common/header_no_nav'); ?>
    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick.css"/>
    <link rel="stylesheet" type="text/css" href="data/cache/slick/slick-theme.css"/>
    <script type="text/javascript" src="data/cache/jquery-3.3.1.min.js"></script>
    <script type="text/javascript" src="data/cache/area-select/area.js"></script>
    <script type="text/javascript">
        var sgjQuery= jQuery.noConflict();
    </script>
    <link rel="stylesheet" type="text/css" href="data/cache/font-awesome/css/fontawesome-all.min.css"/>
    <script type="text/javascript" src="data/cache/slick/slick.min.js"></script>
    <style type="text/css">
        .sg-group-link {
            font-size: 2em;
            font-weight: bold;
            margin: 15px 0;
        }
        .sg-group-link a {
            text-decoration: none;
        }
        .sg-create-group {
            font-size: 2em;
            text-align: center;
        }
        .sg-right-block {
            padding: 25px 15px;
        }
        .sg-create-group div {
            margin-top: 15px;
        }
        .sg-create-group-desp {
            font-size: 0.6em;
        }
        .sg-create-group-icon {
            font-size: 1.5em;
        }
        .sg-create-group-icon:hover {
            color: red;
        }
        .sg-hot-post-title {
            text-align: center;
            font-size: 2em;
            font-weight: bold;
        }
        .sg-hot-post-list {
            font-size: 1.1em;
            margin-top: 20px
        }
        .sg-hot-post-list a {
            display: block;
            text-decoration: none;
        }
        .sg-container {
            padding: 20px 15px;
        }
        .sg-block-title {
            font-size: 2em;
        }
        .sg-recommend-container {
            margin-top: 15px;
        }
        .sg-area-container {
            display: flex;
            flex-wrap: wrap;
        }
        .sg-area-container a {
            text-decoration: none;
        }
        .sg-area-item {
            font-size: 1.3em;
            margin: 10px;
        }
    </style>
    <div id="pt" class="bm cl" style="height: auto;">
        <div class="z sg-group-link">
            <a href="./" title="首页">首页</a><span>-</span><a href="/group.php">俱乐部</a><span>-</span><a href="#"><?php echo $_GET['province']; ?></a>
        </div>
    </div><?php echo adshow("text/wp a_t");?><style id="diy_style" type="text/css"></style>
    <div class="wp">
        <!--[diy=diy1]--><div id="diy1" class="area"></div><!--[/diy]-->
    </div>
    <div id="ct" class="ct2 wp cl week_ct2">
        <div class="mn wk_f_mn padding15 backfff">
            <!--[diy=diycontenttop]--><div id="diycontenttop" class="area"></div><!--[/diy]-->
            <div class="bm bmw">
                <div class="sg-group-slick">
                    <img src="/data/attachment/group/slick/111.png">
                    <img src="/data/attachment/group/slick/222.png">
                    <img src="/data/attachment/group/slick/333.png">
                </div>
                <!--[diy=diy5]--><div id="diy5" class="area"></div><!--[/diy]-->
            </div>
            <!--[diy=diycommendtop]--><div id="diycommendtop" class="area"></div><!--[/diy]-->
            <?php if(!empty($_G['setting']['pluginhooks']['index_header'])) echo $_G['setting']['pluginhooks']['index_header'];?>
            <div class="bm sg-container">
                <div class="sg-block-title"><h2><?php echo $_GET['province']; ?></h2></div>
                <div class="sg-area-container"></div>
            </div>
<!--            <div class="bm sg-container">-->
<!--                <div class="sg-block-title"><h2>推荐</h2></div>-->
<!--                <div class="sg-recommend-container">-->
<!--                    --><?php //if(is_array(dunserialize($_G['setting']['group_recommend']))) { ?>
<!--                        --><?php //foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?>
<!--                            <div>-->
<!--                                <a href="forum.php?mod=group&fid=--><?php //echo $val['fid'];?><!--">-->
<!--                                    <img src="--><?php //echo $val['icon'];?><!--" width="48" height="48">-->
<!--                                </a>-->
<!--                            </div>-->
<!--                        --><?php //} ?>
<!--                    --><?php //} ?>
<!--                </div>-->
<!--            </div>-->
            <!--<div id="g_commend" class="bm">-->
            <!--<div class="bm_h cl">-->
            <!--<h2>推荐--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</h2>-->
            <!--</div>-->
            <!--<div class="bm_c cl">--><?php //if(is_array(dunserialize($_G['setting']['group_recommend']))) foreach(dunserialize($_G['setting']['group_recommend']) as $val) { ?><!--<dl class="xld">-->
            <!--<dd class="m"><a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--"><img src="--><?php //echo $val['icon'];?><!--" alt="--><?php //echo $val['name'];?><!--" width="48" height="48" /></a></dd>-->
            <!--<dt><a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--">--><?php //echo $val['name'];?><!--</a></dt>-->
            <!--<dd class="xg1">--><?php //echo $val['description'];?><!--</dd>-->
            <!--</dl>-->
            <?php //} ?>
            <!--</div>-->
            <!--</div>-->

            <!--[diy=diycategorytop]--><div id="diycategorytop" class="area"></div><!--[/diy]-->
            <?php if(!empty($_G['setting']['pluginhooks']['index_top'])) echo $_G['setting']['pluginhooks']['index_top'];?>
            <!--<div class="bm">-->
            <!--<div class="bm_h cl">-->
            <!--<h2>--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--分类</h2>-->
            <!--</div>-->
            <!--<div class="bm_c">--><?php //if(is_array($first)) foreach($first as $groupid => $group) { ?><!--<dl class="mbm pbm bbda">-->
            <!--<dt class="pbn">-->
            <!--<span class="y xi2">--><?php //if(is_array($group['secondlist'])) foreach($group['secondlist'] as $fid) { ?><!--<a href="group.php?sgid=--><?php //echo $fid;?><!--">--><?php //echo $second[$fid]['name'];?><!--</a> --><?php //} ?><!--<a href="group.php?gid=--><?php //echo $groupid;?><!--">更多 &rsaquo;</a></span>-->
            <!--<strong class="xs2"><a href="group.php?gid=--><?php //echo $groupid;?><!--">--><?php //echo $group['name'];?><!--</a></strong>--><?php //if($group['groupnum']) { ?><!--<span class="xg1">(--><?php //echo $group['groupnum'];?><!--)</span>--><?php //} ?>
            <!--</dt>-->
            <!--<dd>--><?php //if(is_array($lastupdategroup[$groupid])) foreach($lastupdategroup[$groupid] as $val) { ?><!--<a href="forum.php?mod=group&amp;fid=--><?php //echo $val['fid'];?><!--">--><?php //echo $val['name'];?><!--</a> &nbsp;&nbsp;-->
            <?php //} ?>
            <!--</dd>-->
            <!--</dl>-->
            <?php //} ?>
            <!--</div>-->
            <!--</div>-->
            <!--[diy=diycontentbottom]--><div id="diycontentbottom" class="area"></div><!--[/diy]-->
            <?php if(!empty($_G['setting']['pluginhooks']['index_bottom'])) echo $_G['setting']['pluginhooks']['index_bottom'];?>
        </div>

        <div class="sd wk_sq_sd padding15 backfff">
            <div class="drag">
                <!--[diy=diysidetop]--><div id="diysidetop" class="area"></div><!--[/diy]-->
            </div>
            <?php if(!empty($_G['setting']['pluginhooks']['index_side_top'])) echo $_G['setting']['pluginhooks']['index_side_top'];?>
            <div class="bm sg-create-group sg-right-block">
                <div class="sg-create-group-title"><h2>我要创建</h2></div>
                <div class="sg-create-group-icon">
                    <a href="/forum.php?mod=group&action=create"><i class="fa fa-plus"></i></a>
                </div>
                <div class="sg-create-group-desp">创建一个属于自己的专属模块</div>
            </div>

            <div class="bm sg-hot-post-rank sg-right-block">
                <div class="sg-hot-post-title"><h2>热帖排行</h2></div>
                <div class="sg-hot-post-list">
                    <a class="sg-hot-post-item" href="#">穿越四大无人区</a>
                    <a class="sg-hot-post-item" href="#">西藏三日游</a>
                </div>
            </div>
            <?php //if(helper_access::check_module('group')) { if(empty($gid) && empty($sgid)) { ?>
            <!--<div class="bm">-->
            <!--<div class="bm_h cl">-->
            <!--<h2>创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--步骤</h2>-->
            <!--</div>-->
            <!--<div class="bm_c">-->
            <!--<ul id="g_guide" class="mbm">-->
            <!--<li><label><strong class="xi1">创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</strong><span class="xg1">创建自己的地盘</span></label></li>-->
            <!--<li><label><strong class="xi1">个性设置</strong><span class="xg1">精心打造--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--空间</span></label></li>-->
            <!--<li><label><strong class="xi1">邀请好友</strong><span class="xg1">邀请好友加入我的--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--</span></label></li>-->
            <!--<li><label><strong class="xi1">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--升级</strong><span class="xg1">--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--积分升级赢得社区推荐</span></label></li>-->
            <!--</ul>-->
            <?php //if(helper_access::check_module('group')) { ?>
            <!--<a href="forum.php?mod=group&amp;action=create" id="create_group_btn"><img src="--><?php //echo IMGDIR;?><!--/create_group.png" alt="创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--" /></a>-->
            <?php //} ?>
            <!--</div>-->
            <!--</div>-->
            <?php //} else { ?>
            <!--<div class="bm bw0">-->
            <!--<div class="bm_c">-->
            <!--<a href="forum.php?mod=group&amp;action=create&amp;fupid=--><?php //echo $fup;?><!--&amp;groupid=--><?php //echo $sgid;?><!--" id="create_group_btn"><img src="--><?php //echo IMGDIR;?><!--/create_group.png" alt="创建--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--" /></a>-->
            <!--</div>-->
            <!--</div>-->
            <?php //} } ?>
            <!--<div class="drag">-->
            <!--[diy=diysidemiddle]--><div id="diysidemiddle" class="area"></div><!--[/diy]-->
            <!--</div>-->
            <?php //if($topgrouplist) { ?>
            <!--<div id="g_top" class="bm">-->
            <!--<div class="bm_h cl">-->
            <!--<h2>--><?php //echo $_G['setting']['navs']['3']['navname'];?><!--积分排行</h2>-->
            <!--</div>-->
            <!--<div class="bm_c">-->
            <!--<ol class="xl">--><?php //if(is_array($topgrouplist)) foreach($topgrouplist as $fid => $group) { ?><!--<li class="top1"><span class="y xi2 xg1"> --><?php //echo $group['commoncredits'];?><!--</span><a href="forum.php?mod=group&amp;fid=--><?php //echo $group['fid'];?><!--" title="--><?php //echo $group['name'];?><!--">--><?php //echo $group['name'];?><!--</a></li>-->
            <?php //} ?>
            <!--</ol>-->
            <!--</div>-->
            <!--</div>-->
            <?php //} ?>
            <div class="drag">
                <!--[diy=diysidebottom]--><div id="diysidebottom" class="area"></div><!--[/diy]-->
            </div>
            <?php if(!empty($_G['setting']['pluginhooks']['index_side_bottom'])) echo $_G['setting']['pluginhooks']['index_side_bottom'];?>
        </div>
    </div>
    <script type="text/javascript">
        sgjQuery(function () {
            sgjQuery('.sg-group-slick').slick({
                autoplay: true,
                arrows: false,
                dots: true,
                infinite: true,
                speed: 300,
                slidesToShow: 1,
                adaptiveHeight: true
            });

        });
    </script>
    <div class="wp mtn">
        <!--[diy=diy4]--><div id="diy4" class="area"></div><!--[/diy]-->
    </div><?php include template('common/footer'); ?>