1 Star 1 Fork 4

sPring998/iFalse主题

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
header.php 2.27 KB
一键复制 编辑 原始数据 按行查看 历史
神秘布偶猫 提交于 2022-07-20 11:33 . 2022.7.20
<div class="container-full nav-bar header <?php if(get_option("i_header_hidden") == 1) {echo 'header-hidden';} ?>">
<div class="left">
<?php if(get_option("i_logo_hidden") == 1) {} else { ?>
<a href="<?php bloginfo('url') ?>" rel="home" class="logo"><img src="<?php site_icon_url(); ?>" alt=""></a>
<?php } ?>
<?php
wp_nav_menu( array(
'container_id' => 'nav',
'container_class' => 'nav',
'menu_id' => 'nav-menu',
'menu_class' => 'nav-menu'
) );
?>
</div>
<?php if(get_option("i_login_hidden") != 1 || is_user_logged_in()){ ?>
<div class="right">
<?php if (is_user_logged_in()) { ?>
<div class="admin">
<?php echo get_user_avatar(); ?>
</div>
<div class="user-set">
<?php if(current_user_can('level_7')) { ?>
<a href="<?php bloginfo('url') ?>/wp-admin"><span class="iconfont icon-shezhi"></span> 后台管理</a>
<?php } ?>
<?php if(current_user_can('level_1')) { ?>
<a href="<?php bloginfo('url') ?>/wp-admin/post-new.php"><span class="iconfont icon-tianxieziliao"></span> 发布文章</a>
<a href="<?php bloginfo('url') ?>/wp-admin/post-new.php?post_type=shuoshuo"><span class="iconfont icon-xiaoxi1"></span> 发表说说</a>
<?php } ?>
<a href="<?php bloginfo('url') ?>/wp-admin/profile.php"><span class="iconfont icon-gerenziliao"></span> 个人资料</a>
<a href="<?php echo wp_logout_url(); ?>"><span class="iconfont icon-tuichu"></span> 退出登录</a>
</div>
<?php ;} else { ?>
<a href="<?php echo wp_login_url(); ?>" class="login"><span class="iconfont icon-User"></span></a>
<?php ;} ?>
</div>
<?php } ?>
</div>
<?php i_header_mb(); ?>
<div class="change-night" onclick="switchNightMode();nightBtn();">
<span class="iconfont"></span>
</div>
<div class="progress-wrap"><svg><path></svg></div>
<span style="display:none" id="queries_num"><?php echo get_num_queries(); ?> queries in <?php timer_stop(7); ?>s</span>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/spring998/iFalse.git
git@gitee.com:spring998/iFalse.git
spring998
iFalse
iFalse主题
dev

搜索帮助