first commit.
This commit is contained in:
commit
d9c43fd99f
71
footer.php
Normal file
71
footer.php
Normal file
@ -0,0 +1,71 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying the footer
|
||||
*
|
||||
* Contains the closing of the #content div and all content after
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Sixteen
|
||||
* @since Twenty Sixteen 1.0
|
||||
*/
|
||||
?>
|
||||
</div><!-- .site-content -->
|
||||
|
||||
<footer id="colophon" class="site-footer" role="contentinfo">
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Primary Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'primary-menu',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- .main-navigation -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'social' ) ) : ?>
|
||||
<nav class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Footer Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'social',
|
||||
'menu_class' => 'social-links-menu',
|
||||
'depth' => 1,
|
||||
'link_before' => '<span class="screen-reader-text">',
|
||||
'link_after' => '</span>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- .social-navigation -->
|
||||
<?php endif; ?>
|
||||
|
||||
<div class="site-links">
|
||||
<a href="https://www.riken.jp/" target="_blank" rel="noopener noreferrer"><img src="/wp-content/uploads/2019/11/banner-riken.png" alt="RIKEN" /></a>
|
||||
<a href="https://cbs.riken.jp/" target="_blank" rel="noopener noreferrer"><img src="/wp-content/uploads/2019/11/banner-riken-cbs.png" alt="RIKEN Center for Brain Science" /></a><!-- .site-banner -->
|
||||
</div>
|
||||
|
||||
<div class="site-info">
|
||||
<?php
|
||||
/**
|
||||
* Fires before the twentysixteen footer text for footer customization.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*/
|
||||
do_action( 'twentysixteen_credits' );
|
||||
?>
|
||||
<span class="site-title">© <a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></span>
|
||||
<?php
|
||||
if ( function_exists( 'the_privacy_policy_link' ) ) {
|
||||
the_privacy_policy_link( '', '<span role="separator" aria-hidden="true"></span>' );
|
||||
}
|
||||
?>
|
||||
</div><!-- .site-info -->
|
||||
</footer><!-- .site-footer -->
|
||||
</div><!-- .site-inner -->
|
||||
</div><!-- .site -->
|
||||
|
||||
<?php wp_footer(); ?>
|
||||
</body>
|
||||
</html>
|
39
functions.php
Normal file
39
functions.php
Normal file
@ -0,0 +1,39 @@
|
||||
<?php
|
||||
|
||||
// enable automatic update
|
||||
add_filter( 'auto_update_plugin', '__return_true' );
|
||||
add_filter( 'auto_update_theme', '__return_true' );
|
||||
|
||||
|
||||
add_action('wp_enqueue_scripts', 'theme_enqueue_styles');
|
||||
function theme_enqueue_styles() {
|
||||
wp_enqueue_style('parent-style', get_template_directory_uri().'/style.css' );
|
||||
wp_enqueue_style('child-style', get_stylesheet_directory_uri().'/style.css', ['parent-style']);
|
||||
}
|
||||
|
||||
// enable archive page.
|
||||
add_filter( 'register_post_type_args', 'post_has_archive', 10, 2 );
|
||||
function post_has_archive($args, $post_type) {
|
||||
if ('post' == $post_type) {
|
||||
$args['rewrite'] = true;
|
||||
$args['has_archive'] = 'news';
|
||||
}
|
||||
|
||||
return $args;
|
||||
}
|
||||
|
||||
// add google analytics
|
||||
add_action('wp_head', 'hook_google_analytics');
|
||||
function hook_google_analytics() {
|
||||
echo <<<EOF
|
||||
|
||||
<!-- Google Tag Manager -->
|
||||
<script>(function(w,d,s,l,i){w[l]=w[l]||[];w[l].push({'gtm.start':
|
||||
new Date().getTime(),event:'gtm.js'});var f=d.getElementsByTagName(s)[0],
|
||||
j=d.createElement(s),dl=l!='dataLayer'?'&l='+l:'';j.async=true;j.src=
|
||||
'https://www.googletagmanager.com/gtm.js?id='+i+dl;f.parentNode.insertBefore(j,f);
|
||||
})(window,document,'script','dataLayer','GTM-K6BD5N9');</script>
|
||||
<!-- End Google Tag Manager -->
|
||||
|
||||
EOF;
|
||||
}
|
108
header.php
Normal file
108
header.php
Normal file
@ -0,0 +1,108 @@
|
||||
<?php
|
||||
/**
|
||||
* The template for displaying the header
|
||||
*
|
||||
* Displays all of the head element and everything up until the "site-content" div.
|
||||
*
|
||||
* @package WordPress
|
||||
* @subpackage Twenty_Sixteen
|
||||
* @since Twenty Sixteen 1.0
|
||||
*/
|
||||
|
||||
?><!DOCTYPE html>
|
||||
<html <?php language_attributes(); ?> class="no-js">
|
||||
<head>
|
||||
<meta charset="<?php bloginfo( 'charset' ); ?>">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1">
|
||||
<link rel="profile" href="http://gmpg.org/xfn/11">
|
||||
<?php if ( is_singular() && pings_open( get_queried_object() ) ) : ?>
|
||||
<link rel="pingback" href="<?php echo esc_url( get_bloginfo( 'pingback_url' ) ); ?>">
|
||||
<?php endif; ?>
|
||||
<?php wp_head(); ?>
|
||||
</head>
|
||||
|
||||
<body <?php body_class(); ?>>
|
||||
<?php wp_body_open(); ?>
|
||||
<div id="page" class="site">
|
||||
<div class="site-inner">
|
||||
<a class="skip-link screen-reader-text" href="#content"><?php _e( 'Skip to content', 'twentysixteen' ); ?></a>
|
||||
|
||||
<header id="masthead" class="site-header" role="banner">
|
||||
<div class="site-header-main">
|
||||
<div class="site-branding">
|
||||
<?php twentysixteen_the_custom_logo(); ?>
|
||||
<div class="site-title-wrap">
|
||||
|
||||
<?php if ( is_front_page() && is_home() ) : ?>
|
||||
<h1 class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></h1>
|
||||
<?php else : ?>
|
||||
<p class="site-title"><a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home"><?php bloginfo( 'name' ); ?></a></p>
|
||||
<?php
|
||||
endif;
|
||||
|
||||
$description = get_bloginfo( 'description', 'display' );
|
||||
if ( $description || is_customize_preview() ) :
|
||||
?>
|
||||
<p class="site-description"><?php echo $description; ?></p>
|
||||
<?php endif; ?>
|
||||
</div>
|
||||
</div><!-- .site-branding -->
|
||||
|
||||
<?php if ( has_nav_menu( 'primary' ) || has_nav_menu( 'social' ) ) : ?>
|
||||
<button id="menu-toggle" class="menu-toggle"><?php _e( 'Menu', 'twentysixteen' ); ?></button>
|
||||
|
||||
<div id="site-header-menu" class="site-header-menu">
|
||||
<?php if ( has_nav_menu( 'primary' ) ) : ?>
|
||||
<nav id="site-navigation" class="main-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Primary Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'primary',
|
||||
'menu_class' => 'primary-menu',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- .main-navigation -->
|
||||
<?php endif; ?>
|
||||
|
||||
<?php if ( has_nav_menu( 'social' ) ) : ?>
|
||||
<nav id="social-navigation" class="social-navigation" role="navigation" aria-label="<?php esc_attr_e( 'Social Links Menu', 'twentysixteen' ); ?>">
|
||||
<?php
|
||||
wp_nav_menu(
|
||||
array(
|
||||
'theme_location' => 'social',
|
||||
'menu_class' => 'social-links-menu',
|
||||
'depth' => 1,
|
||||
'link_before' => '<span class="screen-reader-text">',
|
||||
'link_after' => '</span>',
|
||||
)
|
||||
);
|
||||
?>
|
||||
</nav><!-- .social-navigation -->
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-header-menu -->
|
||||
<?php endif; ?>
|
||||
</div><!-- .site-header-main -->
|
||||
|
||||
<?php if ( get_header_image() ) : ?>
|
||||
<?php
|
||||
/**
|
||||
* Filter the default twentysixteen custom header sizes attribute.
|
||||
*
|
||||
* @since Twenty Sixteen 1.0
|
||||
*
|
||||
* @param string $custom_header_sizes sizes attribute
|
||||
* for Custom Header. Default '(max-width: 709px) 85vw,
|
||||
* (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px'.
|
||||
*/
|
||||
$custom_header_sizes = apply_filters( 'twentysixteen_custom_header_sizes', '(max-width: 709px) 85vw, (max-width: 909px) 81vw, (max-width: 1362px) 88vw, 1200px' );
|
||||
?>
|
||||
<div class="header-image">
|
||||
<a href="<?php echo esc_url( home_url( '/' ) ); ?>" rel="home">
|
||||
<img src="<?php header_image(); ?>" srcset="<?php echo esc_attr( wp_get_attachment_image_srcset( get_custom_header()->attachment_id ) ); ?>" sizes="<?php echo esc_attr( $custom_header_sizes ); ?>" width="<?php echo esc_attr( get_custom_header()->width ); ?>" height="<?php echo esc_attr( get_custom_header()->height ); ?>" alt="header">
|
||||
</a>
|
||||
</div><!-- .header-image -->
|
||||
<?php endif; // End header image check. ?>
|
||||
</header><!-- .site-header -->
|
||||
|
||||
<div id="content" class="site-content">
|
BIN
screenshot.png
Normal file
BIN
screenshot.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 420 KiB |
152
style.css
Normal file
152
style.css
Normal file
@ -0,0 +1,152 @@
|
||||
@charset "UTF-8";
|
||||
/*
|
||||
Theme Name: Neuroinformatics Unit
|
||||
Template: twentysixteen
|
||||
Author: NIU Administrator
|
||||
Author URI: https://www.ni.riken.jp/
|
||||
Description: Neuroinformatics Unit (Child of Twenty Sixteen)
|
||||
Version: 1.0.0
|
||||
License: GNU General Public License v2 or later
|
||||
License URI: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
|
||||
Text Domain: niu
|
||||
Tags: one-column, two-columns, right-sidebar, accessibility-ready, custom-background, custom-colors, custom-header, custom-menu, editor-style, featured-images, flexible-header, microformats, post-formats, rtl-language-support, sticky-post, threaded-comments, translation-ready, blog
|
||||
*/
|
||||
body:not(.custom-background-image)::before,
|
||||
body:not(.custom-background-image)::after {
|
||||
content: none;
|
||||
}
|
||||
header.site-header {
|
||||
padding-top: 1em;
|
||||
padding-bottom: 2em;
|
||||
}
|
||||
div.site-branding {
|
||||
white-space: nowrap;
|
||||
}
|
||||
a.custom-logo-link {
|
||||
display: none;
|
||||
}
|
||||
div.site-title-wrap {
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
white-space: normal;
|
||||
}
|
||||
div.header-image {
|
||||
margin-top: 1em;
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
.site-footer .site-title::after {
|
||||
content: none;
|
||||
}
|
||||
.entry-content ul {
|
||||
margin-left: 1.25em;
|
||||
}
|
||||
p.member {
|
||||
margin-bottom: 1em;
|
||||
}
|
||||
p {
|
||||
text-align: justify;
|
||||
}
|
||||
span.notice {
|
||||
font-size: 60%;
|
||||
margin-left: 3px;
|
||||
color: red;
|
||||
font-weight: 700;
|
||||
}
|
||||
span.byline {
|
||||
display: none !important;
|
||||
}
|
||||
div.site-links {
|
||||
order: 2;
|
||||
text-align: right;
|
||||
display: none;
|
||||
}
|
||||
div.site-links img {
|
||||
margin-left: 1em;
|
||||
}
|
||||
.post-navigation {
|
||||
border-bottom: none;
|
||||
}
|
||||
.post-navigation .post-title {
|
||||
font-size: 1rem;
|
||||
}
|
||||
.post-navigation .nav-previous,
|
||||
.post-navigation .nav-next {
|
||||
text-align: center;
|
||||
}
|
||||
.post-navigation .nav-previous span,
|
||||
.post-navigation .nav-next span {
|
||||
display: inline;
|
||||
}
|
||||
.post-navigation .nav-previous span.meta-nav,
|
||||
.post-navigation .nav-next span.meta-nav {
|
||||
display: none;
|
||||
}
|
||||
.post-navigation .nav-previous span.meta-nav,
|
||||
.post-navigation .nav-next span.meta-nav {
|
||||
display: none;
|
||||
}
|
||||
.post-navigation .nav-previous span.post-title::before {
|
||||
content: "«";
|
||||
margin-right: 0.5em;
|
||||
}
|
||||
.post-navigation .nav-next span.post-title::after {
|
||||
content: "»";
|
||||
margin-left: 0.5em;
|
||||
}
|
||||
@media screen and (min-width: 44.375em) {
|
||||
a.custom-logo-link {
|
||||
display: inline-block;
|
||||
}
|
||||
img.custom-logo {
|
||||
max-width: 80px;
|
||||
margin-right: 5px;
|
||||
}
|
||||
.entry-header, .post-thumbnail, .entry-content, .entry-summary, .entry-footer, .comments-area, .image-navigation, .post-navigation, .page-header, .page-content, .content-bottom-widgets {
|
||||
margin-right: 7.6923%;
|
||||
}
|
||||
.sidebar, .widecolumn {
|
||||
padding-right: 7.6923%;
|
||||
}
|
||||
.site-main {
|
||||
margin-bottom: 4.0em;
|
||||
}
|
||||
div.site-links {
|
||||
display: block;
|
||||
}
|
||||
.site-main {
|
||||
margin-bottom: 0;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 56.8785em) {
|
||||
.entry-header, .post-thumbnail, .entry-content, .entry-summary, .entry-footer, .comments-area, .image-navigation, .post-navigation, .page-header, .page-content, .content-bottom-widgets {
|
||||
margin-right: 0;
|
||||
}
|
||||
.sidebar, .widecolumn {
|
||||
padding-right: 0;
|
||||
}
|
||||
.post-navigation .nav-links::after {
|
||||
content: "";
|
||||
display: block;
|
||||
clear: both;
|
||||
}
|
||||
.post-navigation .nav-previous {
|
||||
float: left;
|
||||
}
|
||||
.post-navigation .nav-next {
|
||||
float: right;
|
||||
}
|
||||
}
|
||||
@media screen and (min-width: 61.5625em) {
|
||||
.site-main {
|
||||
margin-bottom: 4.5em;
|
||||
}
|
||||
.entry-content {
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
}
|
||||
.entry-footer {
|
||||
float: none !important;
|
||||
width: 100% !important;
|
||||
margin-top: 2.1538461538em !important;
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user