This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
function mytheme_comments($comment, $args, $depth) | |
{ | |
$GLOBALS['comment'] = $comment; ?> | |
<li <?php comment_class(); ?> id="li-comment-<?php comment_ID() ?>"> | |
<div id="comment-<?php comment_ID(); ?>" class="comment-wrapper"> | |
<div class="comment-meta"> | |
<?php echo get_avatar( $comment, $args['avatar_size']) ?> | |
<ul class="comment-meta-list"> | |
<li class="comment-author-name"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<div id="respond"> | |
<h3 id="reply-title">コメントを残す <small> | |
<a rel="nofollow" id="cancel-comment-reply-link" href="/.../#respond" style="display:none;">コメントをキャンセル</a></small></h3> | |
<form action="http://.../wp-comments-post.php" method="post" id="commentform"> | |
<p>メールアドレスが公開されることはありません。 <span>*</span> が付いている欄は必須項目です</p> | |
<p><label for="author">名前</label> <span>*</span> | |
<input id="author" name="author" type="text" value="" size="30" aria-required='true' /></p> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
if (post_password_required()) { | |
return; | |
} | |
?> | |
<div id="comments"> | |
<?php if (have_comments()) :?> | |
<h3 id="comments-count"><?php echo get_comments_number().' 件のコメント'; ?></h3> | |
<ul id="comments-list"> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php get_header(); ?> | |
<div id="content"> | |
<?php | |
while(have_posts()) { | |
the_post(); | |
get_template_part('content'); | |
if( is_singular('post') ) { | |
comments_template(); | |
} | |
} ?> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*---------------------------------------------------------*/ | |
/* Sidebar */ | |
/*---------------------------------------------------------*/ | |
.sidebar-wrapper { | |
margin: 0 0 15px 0; | |
} | |
.sidebar-title { | |
border-left: solid 10px #99c348; | |
font-size: 1.2em; | |
padding: 10px 0 10px 20px; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
//サイドバーを1つ設置する | |
register_sidebar(array( | |
'name'=>'サイドバー', | |
'before_widget'=>'<div class="sidebar-wrapper">', | |
'after_widget'=>'</div>', | |
'before_title' => '<h4 class="sidebar-title">', | |
'after_title' => '</h4>' | |
)); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#header #site-title-wrapper { | |
float: left; | |
} | |
#wplogo-image { | |
display: block; | |
float: right; | |
margin: 30px 10px 0; | |
} | |
ul#main-nav { | |
clear: both; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>" /> | |
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" /> | |
<title><?php bloginfo('name'); ?></title> | |
</head> | |
<body> | |
<div id="container"> | |
<!-- header --> |