Revision: 1453
Author: magike.net
Date: Sun Jun 20 21:47:29 2010
Log: fix issue 465
http://code.google.com/p/typecho/source/detail?r=1453
Modified:
/trunk/usr/themes/default/comments.php
/trunk/usr/themes/default/index.php
/trunk/usr/themes/default/style.css
/trunk/var/Widget/Archive.php
/trunk/var/Widget/Comments/Archive.php
=======================================
--- /trunk/usr/themes/default/comments.php Fri Feb 26 22:47:34 2010
+++ /trunk/usr/themes/default/comments.php Sun Jun 20 21:47:29 2010
@@ -3,9 +3,7 @@
<?php if ($comments->have()): ?>
<h4><?php $this->commentsNum(_t('当前暂无评论'),
_t('仅有一条评论'),
_t('已有 %d 条评论')); ?> »</h4>
- <ol class="pages clearfix">
- <?php $comments->pageNav(); ?>
- </ol>
+ <?php $comments->pageNav(); ?>
<?php $comments->listComments(); ?>
=======================================
--- /trunk/usr/themes/default/index.php Thu Feb 25 03:07:08 2010
+++ /trunk/usr/themes/default/index.php Sun Jun 20 21:47:29 2010
@@ -25,9 +25,7 @@
</div>
<?php endwhile; ?>
- <ol class="pages clearfix">
- <?php $this->pageNav(); ?>
- </ol>
+ <?php $this->pageNav(); ?>
</div><!-- end #content-->
<?php $this->need('sidebar.php'); ?>
<?php $this->need('footer.php'); ?>
=======================================
--- /trunk/usr/themes/default/style.css Fri Feb 26 22:47:34 2010
+++ /trunk/usr/themes/default/style.css Sun Jun 20 21:47:29 2010
@@ -220,7 +220,7 @@
/* = pages nav */
-ol.pages {
+ol.page-navigator {
margin: 20px 0 0 0;
color: #666;
list-style: none;
@@ -229,18 +229,18 @@
font-family: "Lucida Grande",Verdana,"Bitstream Vera
Sans",Arial,sans-serif;
}
-ol.pages li {
+ol.page-navigator li {
margin: 0 5px 0 0;
display: inline;
}
-ol.pages li a {
+ol.page-navigator li a {
padding: 2px 6px;
border: 1px solid #eee;
text-decoration: none;
}
-ol.pages li.current a {
+ol.page-navigator li.current a {
background: #3354AA;
border-color: #3354AA;
color: #fff;
=======================================
--- /trunk/var/Widget/Archive.php Sun Jun 20 20:08:38 2010
+++ /trunk/var/Widget/Archive.php Sun Jun 20 21:47:29 2010
@@ -1236,7 +1236,10 @@
/** 使用盒状分页 */
$nav = new Typecho_Widget_Helper_PageNavigator_Box(false
=== $this->_total ? $this->_total = $this->size($this->_countSql) :
$this->_total,
$this->_currentPage, $this->parameter->pageSize, $query);
+
+ echo '<ol class="page-navigator">';
$nav->render($prev, $next, $splitPage, $splitWord);
+ echo '</ol>';
}
}
}
=======================================
--- /trunk/var/Widget/Comments/Archive.php Sun Jun 20 21:40:01 2010
+++ /trunk/var/Widget/Comments/Archive.php Sun Jun 20 21:47:29 2010
@@ -332,7 +332,10 @@
$nav = new
Typecho_Widget_Helper_PageNavigator_Box($this->_total, $this->_currentPage,
$this->options->commentsPageSize, $query);
$nav->setPageHolder('commentPage');
$nav->setAnchor('comments');
+
+ echo '<ol class="page-navigator">';
$nav->render($prev, $next, $splitPage, $splitWord);
+ echo '</ol>';
}
}
_______________________________________________
announce mailing list
[email protected]
http://lists.typecho.org/mailman/listinfo/announce