Permalink
Browse files

全体更新

  • Loading branch information...
tadatomo090809@gmail.com
tadatomo090809@gmail.com committed Aug 22, 2011
1 parent 72fae28 commit e19892fb4114fec36f4141897c278c398efd5838
View
BIN .DS_Store
Binary file not shown.
View
@@ -6,6 +6,26 @@
// THEME WP OPTIONS
if (function_exists( 'add_theme_support' )) add_theme_support('post-thumbnails');
+// ROOP FUNCTIONS
+function isFirst(){
+ global $wp_query;
+ return ($wp_query->current_post === 0);
+}
+
+function isLast(){
+ global $wp_query;
+ return ($wp_query->current_post+1 === $wp_query->post_count);
+}
+
+function isOdd(){
+ global $wp_query;
+ return ((($wp_query->current_post+1) % 2) === 1);
+}
+
+function isEvery(){
+ global $wp_query;
+ return ((($wp_query->current_post+1) % 2) === 0);
+}
// LOCALIZATION
define('TDOMAIN', 'iBlog');
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
Binary file not shown.
View
@@ -6,54 +6,50 @@
<?php while (have_posts()) : the_post(); ?>
- <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
-
-
-
-
- <div class="date"><span><?php the_time('M') ?></span> <?php the_time('d') ?></div>
-
-
-
- <div class="title">
- <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="postdata">
- <?php if(get_option('plallow') && get_option('pp_showauthor')):?><span class="author"><?php _e('By', TDOMAIN);?> <?php the_author() ?></span><?php endif;?>
- <span class="category"><?php the_category(', ') ?></span>
- <span class="comments"><?php comments_popup_link(__('No Comments &#187;', TDOMAIN), __('1 Comment &#187;', TDOMAIN), __('% Comments &#187;', TDOMAIN)); ?></span>
+ <div class="entry-hr <?php if(isLast()) echo 'entry-last'; ?>">
+ <div <?php post_class(); ?> id="post-<?php the_ID(); ?>">
+
+ <div class="post-side">
+ <div class="post-info">
+ <p class="year"><?php the_time('Y') ?></p>
+ <p class="month-day"><?php the_time('m/d'); ?></p>
+ <?php echo get_avatar($post->post_author, $size = '50'); ?>
+ </div>
+ <div class="post-side-tag">
+ <?php the_category() ?>
+ </div>
</div>
- </div>
-
-
-
-
- <div class="entry">
-
+
+ <div class="post-main">
+ <h2 class="posttitle"><a href="<?php the_permalink() ?>" rel="bookmark" title="<?php _e('Permanent Link to',TDOMAIN);?> <?php the_title(); ?>"><?php the_title(); ?></a></h2>
<?php if(function_exists('the_post_thumbnail') && has_post_thumbnail()): ?>
- <div class="postthumb">
- <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
- <?php the_post_thumbnail('thumbnail');?>
- </a>
- </div>
- <?php endif; ?>
+ <div class="postthumb">
+ <a href="<?php the_permalink(); ?>" rel="bookmark" title="<?php _e('Permanent Link To', TDOMAIN);?> <?php the_title_attribute();?>">
+ <?php the_post_thumbnail('thumbnail');?>
+ </a>
+ </div>
+ <?php endif; ?>
+ <?php the_content(__('Continue reading &raquo;',TDOMAIN)); ?>
+ <?php edit_post_link(__('Edit', TDOMAIN), '', ''); ?>
+ <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>
- <?php the_content(__('Continue reading &raquo;',TDOMAIN)); ?>
-
- <?php edit_post_link(__('Edit', TDOMAIN), '', ''); ?>
-
- <?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>
- </div><!--entry -->
-
- </div><!--post -->
-
-
-
-
- <div class="tags"><?php the_tags(__('Tagged with: ', TDOMAIN),' &bull; ','<br />'); ?></div>
+ <div class="sns">
+ <a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>" onclick="window.open(this.href, efacebookwindowf, ewidth=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1Œ); return false;"><img src="http://rd.uniba.jp/blog/wp-content/themes/iblog2/img/f_logo_s.png" width="17" height="17" /></a>
+ <a href="http://twitter.com/share?count=horizontal&amp;original_referer=<?php the_permalink(); ?>&amp;text=<?php the_title(); ?>&amp;url=<?php the_permalink(); ?>&amp;via=UnibaRD" onclick="window.open(this.href, etwitter_sharef, ewidth=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1Œ); return false;" target="_blank"><img src="http://rd.uniba.jp/blog/wp-content/themes/iblog2/img/t_logo_s.png" width="17" height="17" /></a>
+ </div><!--sns -->
+
+ </div><!--entry -->
+ </div><!--/post -->
+ <!-- <div class="tags"><?php the_tags(__('Tagged with: ', TDOMAIN),' &bull; ','<br />'); ?></div> -->
+ </div>
+
<?php endwhile; ?>
- <div class="page-nav fix"> <span class="previous-entries"><?php next_posts_link(__('Previous Entries', TDOMAIN)); ?></span> <span class="next-entries"><?php previous_posts_link(__('Next Entries', TDOMAIN)); ?></span></div><!-- page nav -->
-
+ <div class="page-nav fix">
+ <span class="previous-entries"><?php next_posts_link(__('Old', TDOMAIN)); ?></span>
+ <span class="next-entries"><?php previous_posts_link(__('New', TDOMAIN)); ?></span>
+ </div><!-- page-nav end -->
+
<?php else : ?>
<div class="post">
<div class="billboard">
View
Binary file not shown.
View
@@ -5,12 +5,17 @@
<?php if (have_posts()) : ?>
<?php while (have_posts()) : the_post(); ?>
+
+ <div class="entry-hr <?php if(isLast()) echo 'entry-last'; ?>">
<div class="post" id="post-<?php the_ID(); ?>">
- <div class="date"><span><?php the_time('M') ?></span><?php the_time('d') ?></div>
+ <div class="search-date">
+ <p class="year"><?php the_time('Y') ?></p>
+ <p class="month-day"><?php the_time('m/d'); ?></p>
+ </div>
<div class="title">
<h2><a href="<?php the_permalink() ?>" rel="bookmark" title="Permanent Link to <?php the_title(); ?>"><?php the_title(); ?></a></h2>
- <div class="postdata"><span class="category"><?php the_category(', ') ?></span> <span class="comments"><?php comments_popup_link(__('No Comments &#187;', TDOMAIN), __('1 Comment &#187;', TDOMAIN), __('% Comments &#187;', TDOMAIN)); ?></span></div>
+ <div class="postdata"><span class="search-category"><?php the_category(', ') ?></span></div>
</div>
<div class="entry">
<?php if(function_exists('the_post_thumbnail') && has_post_thumbnail()): ?>
@@ -23,12 +28,14 @@
<?php the_excerpt(); ?>
</div><!--/entry -->
</div><!--/post -->
+
+ </div>
<?php endwhile; ?>
<div class="page-nav fix">
- <span class="previous-entries"><?php next_posts_link(__('Previous Entries', TDOMAIN)) ?></span>
- <span class="next-entries"><?php previous_posts_link(__('Next Entries', TDOMAIN)) ?></span>
+ <span class="previous-entries"><?php next_posts_link(__('Old', TDOMAIN)) ?></span>
+ <span class="next-entries"><?php previous_posts_link(__('New', TDOMAIN)) ?></span>
</div><!-- /page nav -->
<?php else : ?>
View
@@ -25,16 +25,16 @@
</a>
</div>
<?php endif; ?>
-
<?php the_content(__('Continue reading &raquo;',TDOMAIN)); ?>
-
<?php edit_post_link(__('Edit', TDOMAIN), '', ''); ?>
-
<?php wp_link_pages('before=<p>&after=</p>&next_or_number=number&pagelink=page %'); ?>
+
+ <div class="sns">
+ <a href="http://www.facebook.com/share.php?u=<?php the_permalink(); ?>" onclick="window.open(this.href, efacebookwindowf, ewidth=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1Œ); return false;"><img src="http://rd.uniba.jp/blog/wp-content/themes/iblog2/img/f_logo_s.png" width="17" height="17" /></a>
+ <a href="http://twitter.com/share?count=horizontal&amp;original_referer=<?php the_permalink(); ?>&amp;text=<?php the_title(); ?>&amp;url=<?php the_permalink(); ?>&amp;via=UnibaRD" onclick="window.open(this.href, etwitter_sharef, ewidth=550, height=450,personalbar=0,toolbar=0,scrollbars=1,resizable=1Œ); return false;" target="_blank"><img src="http://rd.uniba.jp/blog/wp-content/themes/iblog2/img/t_logo_s.png" width="17" height="17" /></a>
+ </div><!--sns -->
</div><!--entry -->
-
</div>
-
<!--/post -->
<?php endwhile; else: ?>
View
@@ -108,7 +108,7 @@ a:hover {text-decoration: underline;}
margin-top: 6px;
}
#searchform #searchsubmit {
- background: url(images/search-button.png) no-repeat 0 0;
+ background: url(img/icon_search.png) no-repeat 0 0;
height: 24px;
width: 24px;
border: none;
@@ -245,9 +245,13 @@ a:hover {text-decoration: underline;}
.post .title {
float: left;
margin-left: 10px;
- width: 558px;
+ width: 600px;
+}
+.post .title h2 a{
+ font-size: 25px;
}
.postdata {
+ margin: 0 0 2em 0;
font-size: 90%;
color: #999999;
}
@@ -273,13 +277,10 @@ a:hover {text-decoration: underline;}
float: right;
}
.entry {
- padding: 15px 0px 15px;
+ padding: 5px 0px 15px;
clear: both;
font-size: 14px;
line-height: 1.6em;
- background: url("img/p_border.png");
- background-repeat: repeat-x;
- background-position: bottom;
}
.billboard{padding: 80px;}
@@ -317,16 +318,16 @@ h2.posttitle a, h2.posttitle a:visited {
/* next & previous page navigation */
.page-nav {
clear: both;
- margin-bottom: .6em;
+ margin: 2em 0 .6em 0;
padding: 4px;
- background: #e5e5e5 url(images/agradient-30.gif) repeat-x left top;
+ background: url(img/p_border.png) repeat-x top; */
}
.page-nav a, .page-nav a:visited {
color: #000;
text-decoration: none;
}
.page-nav a:hover {
- color: #fff;
+ color: #999;
text-decoration: none;
}
.previous-entries a {
@@ -500,7 +501,7 @@ a.plimage {
width:105px;
font-size: 8px;
color: #eee;
- background: url(images/pagelines-sig.png) no-repeat 0px 0px;
+ /* background: url(images/pagelines-sig.png) no-repeat 0px 0px; */
}
#cred a:hover {
@@ -762,8 +763,11 @@ hr.clear {clear:both;visibility: hidden;margin: 0px;padding: 0px;}
* html .fix{height:1%;}
.fix{display:block;}
+
+
+
-/** 110816追加分 **/
+/** 追加分 **/
body{
background: none;
@@ -787,21 +791,23 @@ p{
#searchform {
width: 178px;
float: right;
- font-size:12px;
+ font-size:11px;
padding:0;
margin:0;
+ background: url(img/search_bg.png) no-repeat;
}
#searchform #s{
background: none;
background-color: #000;
- width: 133px;
- padding: 4px 7px 2px 5px;
- font-size: 12px;
+ border: none;
+ width: 135px;
+ /* padding: 4px 7px 2px 5px; */
+ font-size: 11px;
color: #999;
margin:0;
}
#searchform #searchsubmit {
- background: url(images/search-button.png) no-repeat 0 0;
+ background: url(img/icon_search.png) no-repeat 0 0;
height: 24px;
width: 24px;
border: none;
@@ -810,10 +816,54 @@ p{
line-height: 1px;
margin:0;
}
+
+
+/* search */
+
+.post .search-date{
+ height: 46px;
+ width: 49px;
+ background: url(img/left_bg_search.png) no-repeat;
+ font: normal 22px Arial, Helvetica, sans-serif;
+ color: #666;
+ text-align: center;
+ line-height: 100%;
+ float: left;
+}
+.post .search-date p.year{
+ font-size: 0.8em;
+ margin: 0.1em 0 0.2em 0;
+ color: #000;
+}
+.post .search-date p.month-day{
+ font-size: 0.7em;
+ color: #000;
+}
+
+.search-category a{
+ font-size: 0.9em;
+ color: #000;
+}
+.search-category a:hover{
+ border-bottom: 1px solid #000;
+ color: #000;
+}
+.search-category a:visited{
+ color: #000;
+}
/* post */
+.entry-hr{
+ background: url("img/p_border.png") repeat-x;
+ background-position: bottom;
+}
+
+.entry-last{
+ background: none;
+}
+
.post-p {
clear: both;
width: 675px;
@@ -878,6 +928,7 @@ p{
line-height: 1.6em;
}
+
/* sidebar */
#sidebar {
margin-top: 25px;

0 comments on commit e19892f

Please sign in to comment.