This file contains 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.wp-pagenavi span, div.wp-pagenavi a { | |
display: block; | |
float:left; | |
margin-right: 10px; | |
padding: 5px 0; | |
font-size: 17px; | |
text-align: center; | |
width: 30px; | |
border: 1px solid #aaa; | |
-webkit-border-radius: 3px; |
This file contains 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 <?php language_attributes(); ?>> | |
<head> | |
<meta charset="<?php bloginfo('charset'); ?>" /> | |
<title><?php bloginfo('name'); ?></title> | |
<link rel="stylesheet" href="<?php bloginfo('stylesheet_url'); ?>" type="text/css" /> | |
<link rel="shortcut icon" href="<?php bloginfo('template_directory'); ?>/favicon.ico" /> | |
<?php wp_head(); ?> | |
</head> | |
<body> |
This file contains 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
<body> | |
<div id="container"> | |
<header id="header"> | |
<a id="title" href="<?php echo home_url(); ?>"> | |
<h1><?php bloginfo('name'); ?></h1> | |
<p id="desc"><?php bloginfo('description'); ?></p> | |
</a> | |
<a id="twitter_icon" href="http://twitter.com/" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/twitter.png" /></a> | |
<a id="rss_icon" href="<?php bloginfo('rss2_url'); ?>" target="_blank" ><img src="<?php bloginfo('template_url'); ?>/images/rss.png" /></a> | |
</header><!-- /#header --> |
This file contains 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="content"> | |
/* 記事がある時 */ | |
<?php if (have_posts()) : ?> | |
<?php if (is_search()) : ?> | |
/* --検索結果メッセージ-- */ | |
<?php endif; ?> | |
/* --ここに記事を表示-- */ | |
This file contains 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 | |
add_theme_support('post-thumbnails'); | |
?> |
This file contains 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="content"> | |
<?php if (have_posts()) : ?> | |
<?php if (is_search()) : ?> | |
<?php endif; ?> | |
<?php while (have_posts()) : the_post(); ?> | |
<article class="article"> | |
<header> | |
<h1><a href="<?php the_permalink(); ?>"><?php the_title(); ?></a></h1> | |
<ul class="articleinfo"> | |
<li class="date"><?php echo get_the_date(); ?></li> |
This file contains 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 while (have_posts()) : the_post(); ?> | |
/* -- ここに記事を作る -- */ | |
<?php endwhile; ?> |
This file contains 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
function remove_more_jump_link($link) { | |
$offset = strpos($link, '#more-'); | |
if ($offset) { | |
$end = strpos($link, '"',$offset); | |
} | |
if ($end) { | |
$link = substr_replace($link, '', $offset, $end-$offset); | |
} | |
return $link; | |
} |
This file contains 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
//変更前 | |
if ( $more ) { | |
//217行目 | |
$output .= '<span id="more-' . $post->ID . '"></span>' . $content[1]; | |
} else { | |
if ( ! empty($more_link_text) ) | |
//220行目 | |
$output .= apply_filters( 'the_content_more_link', ' <a href="' . get_permalink() . "#more-{$post->ID}\" class=\"more-link\">$more_link_text</a>", $more_link_text ); | |
$output = force_balance_tags($output); | |
} |
This file contains 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 (!is_single()) : ?> | |
<?php wp_pagenavi(); ?> | |
<?php endif; ?> |
OlderNewer