2 Star 4 Fork 0

TigerBeanst/RnMaterial

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
nav.php 1.48 KB
一键复制 编辑 原始数据 按行查看 历史
TigerBeanst 提交于 2018-01-22 00:01 . fix(nav): fix nav`s menu.
<style>.sub-menu{margin-left:-40px!important;background-color:#e0e0e0;display: none;} .menu-item-has-children:hover > .sub-menu {display: block;}</style>
<script>$('li[class="menu-item-has-children"]').click(function(){$(this).toggleClass('active');});</script>
<div class="sidebar-overlay"></div>
<aside id="sidebar" class="sidebar sidebar-colored sidebar-fixed-left" role="navigation">
<div id="sidebar-main">
<div class="sidebar-header header-cover" style="background-image:url(<?php bloginfo('template_url');?>/img/sidebar.jpg)">
<div class="top-bar"></div>
<button type="button" class="sidebar-toggle mdl-button mdl-js-button mdl-js-ripple-effect mdl-button--icon" style="display:initial" data-upgraded=",MaterialButton,MaterialRipple">
<i class="material-icons">clear_all</i>
<span class="mdl-button__ripple-container">
<span class="mdl-ripple"></span>
</span>
</button>
<div class="sidebar-image">
<?php echo get_avatar(1,54,avatar); ?></div>
<a class="sidebar-brand"><?php echo bloginfo('name'); ?></a>
</div>
<ul class="nav sidebar-nav">
<div style="margin-left:-40px!important;"><?php if ( has_nav_menu( 'sidebar_menu_one' ) ) {wp_nav_menu(array('theme_location' =>'sidebar_menu_one'));} ?></div>
<li class="divider"></li>
<div style="margin-left:-40px!important;"><?php if ( has_nav_menu( 'sidebar_menu_two' ) ) {wp_nav_menu(array('theme_location' =>'sidebar_menu_two'));} ?></div>
</ul>
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
PHP
1
https://gitee.com/TigerBeanst/rnmaterial.git
git@gitee.com:TigerBeanst/rnmaterial.git
TigerBeanst
rnmaterial
RnMaterial
master

搜索帮助