99 lines
4.3 KiB
PHP
99 lines
4.3 KiB
PHP
<?php
|
|
/**
|
|
* The header for our theme
|
|
*
|
|
* This is the template that displays all of the <head> section and everything up until <div id="content">
|
|
*
|
|
* @link https://developer.wordpress.org/themes/basics/template-files/#template-partials
|
|
*
|
|
* @package CyyWordpress
|
|
*/
|
|
|
|
?>
|
|
<!doctype html>
|
|
<html <?php language_attributes(); ?>>
|
|
<head>
|
|
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<link rel="profile" href="https://gmpg.org/xfn/11">
|
|
<link crossorigin="anonymous" integrity="sha512-6eqPOYQmUqGh2hFSAKha1dbQlMq1OaxityCVG80dkvGmmLdsAdrAUkgBKDV4fpAT/xOUdkB6uupudSbCwyoJPQ==" href="https://lib.baomitu.com/bulma/0.9.1/css/bulma.css" rel="stylesheet">
|
|
<link crossorigin="anonymous" integrity="sha512-+4zCK9k+qNFUR5X+cKL9EIR+ZOhtIloNl9GIKS57V1MyNsYpYcUrUeQc9vNfzsWfV28IaLL3i96P9sdNyeRssA==" href="https://lib.baomitu.com/font-awesome/5.15.1/css/all.min.css" rel="stylesheet">
|
|
|
|
<?php wp_head(); ?>
|
|
</head>
|
|
|
|
<body <?php body_class(); ?>>
|
|
<?php wp_body_open(); ?>
|
|
<div id="page" class="site">
|
|
<!-- <a class="skip-link screen-reader-text" href="#primary">--><?php //esc_html_e( 'Skip to content', 'cyywordpress' ); ?><!--</a>-->
|
|
<button onclick="topFunction()" id="myBtn" title="回顶部">返回顶部</button>
|
|
|
|
|
|
<nav class="navbar" style="box-shadow: 0 1px 3px 0 rgba(0, 0, 0, .1), 0 1px 2px 0 rgba(0, 0, 0, .06) !important;" role="navigation" aria-label="main navigation">
|
|
<div class="navbar-brand">
|
|
<a class="navbar-item" href="<?php echo esc_url( home_url( '/' ) ); ?>">
|
|
<img src="https://s3.ax1x.com/2021/02/26/6SEr4g.jpg" width="28" height="28">
|
|
</a>
|
|
<p class="subtitle is-4" style=" margin-top: 10px;margin-bottom: 5px;"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
|
<a role="button" class="navbar-burger" aria-label="menu" aria-expanded="false" data-target="navbarBasicExample">
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
<span aria-hidden="true"></span>
|
|
</a>
|
|
</div>
|
|
|
|
<div id="navbarBasicExample" class="navbar-menu">
|
|
|
|
|
|
<div class="navbar-start">
|
|
<?php
|
|
wp_nav_menu( array(
|
|
'theme_location' => 'menu-1',
|
|
'menu_id' => 'primary-menu',
|
|
'depth' => 0,
|
|
'container' => 'div id="navigation"',
|
|
'menu_class' => 'navbar-end',
|
|
'fallback_cb' => 'bulmapress_navwalker::fallback',
|
|
'walker' => new bulmapress_navwalker()
|
|
)
|
|
);
|
|
?>
|
|
<div class="navbar-item has-dropdown is-hoverable">
|
|
<a class="navbar-link">
|
|
更多
|
|
</a>
|
|
|
|
<div class="navbar-dropdown">
|
|
<a class="navbar-item" href="https://kaifa.baidu.com/" target="_blank">
|
|
开发者搜索(Baidu)
|
|
</a>
|
|
<a class="navbar-item" href="https://learnku.com/" target="_blank">
|
|
编程者论坛(LearnKu)
|
|
</a>
|
|
<a class="navbar-item" href="http://www.oschina.net/" target="_blank">
|
|
程序员资讯(osChina)
|
|
</a>
|
|
<hr class="navbar-divider">
|
|
<a class="navbar-item" href="http://yaoyuan.io" target="_blank">
|
|
更多(chuyaoyuan)
|
|
</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div class="navbar-end">
|
|
<div class="navbar-item">
|
|
<div class="buttons">
|
|
<a class="button is-link is-light" href="http://chuyaoyuan.com/wp-admin/">
|
|
<strong>后台登陆</strong>
|
|
</a>
|
|
<!-- <a class="button is-light">
|
|
退出
|
|
</a>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
<div class="container">
|