<!-- Hero -->
<div class="bg-body-light">
    <div class="bg-image" style="background-image: url('./assets/img/bg/photo<?php echo $bgNum; ?>.jpg')">
        <div class="bg-primary-dark-op">
            <div class="content content-full">
                <div class="d-flex flex-column flex-sm-row justify-content-sm-between align-items-sm-center mt-3 mb-2 text-center text-sm-left">
                    <div class="flex-sm-fill">
                        <h1 class="h3 font-w700 text-white mb-2 invisible" data-toggle="appear">iCMS 管理中心</h1>
                        <h2 class="h6 font-w500 text-white-75 mb-0 invisible" data-toggle="appear">
                            <a class="font-w600 text-white-75" href="javascript:void(0)"><?php echo Member::$ROLE['name'] . Member::$nickname; ?></a>
                            , everything looks great.
                        </h2>
                    </div>
                    <div class="flex-sm-00-auto mt-3 mt-sm-0 ml-sm-3">
                        <a href="<?php echo ADMINCP_URL; ?>=config" class="btn btn-sm btn-primary" title="系统设置">
                            <i class="fa fa-fw fa-cog"></i>
                        </a>
                        <div class="d-inline-block">
                            <a class="btn btn-sm btn-alt-secondary" href="<?php echo ADMINCP_URL; ?>=article&do=add">
                                <i class="fa fa-fw fa-file mr-1"></i>
                                发布文章
                            </a>
                        </div>

                        <div class="dropdown d-inline-block">
                            <button type="button" class="btn btn-sm btn-alt-primary" id="dropdown-analytics-overview" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
                                <i class="fa fa-fw fa-cubes"></i>
                                其它应用
                                <i class="fa fa-fw fa-angle-down"></i>
                            </button>
                            <div class="dropdown-menu dropdown-menu-right font-size-sm" aria-labelledby="dropdown-analytics-overview">
                                <a class="dropdown-item font-w500" href="<?php echo ADMINCP_URL; ?>=tag&do=add">
                                    <i class="fa fa-fw fa-tags mr-1"></i>
                                    新增标签
                                </a>
                                <?php $array = Apps::getArray(['apptype' => Apps::CONTENT_TYPE]); ?>
                                <?php if ($array) foreach ($array as $key => $value) { ?>
                                    <a class="dropdown-item font-w500" href="<?php echo ADMINCP_URL; ?>=<?php echo $value['app']; ?>&do=add">
                                        <i class="fa fa-fw fa-plus mr-1"></i>
                                        发布<?php echo $value['title']; ?>
                                    </a>
                                <?php } ?>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>
<!-- END Hero -->