1
0

Include comments pagination heading in pagination.

This commit is contained in:
Matthias Mees
2013-06-03 20:20:43 +02:00
parent 6fdef21374
commit cb5c5fc67c
3 changed files with 13 additions and 3 deletions

View File

@ -95,7 +95,6 @@
<input name="serendipity[formAction]" type="hidden" value="multiDelete">
<div class="clearfix comments_pane">
<h3>{$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments}</h3>
{if is_array($comments)}
<ul id="serendipity_comments_list" class="clearfix plainList zebra_list">
{foreach $comments AS $comment}
@ -146,6 +145,8 @@
{/if}
{if ($page != 1 && $page <= $pages)||$page != $pages}
<nav class="pagination">
<h3>{$CONST.PAGE_BROWSE_COMMENTS|sprintf:$page:$pages:$totalComments}</h3>
<ul class="clearfix">
<li class="prev">{if ($page != 1 && $page <= $pages)}<a class="button_link" href="{$linkPrevious}" title="{$CONST.PREVIOUS}"><span class="icon-left-circled"></span><span class="visuallyhidden"> {$CONST.PREVIOUS}</span></a>{else}<span class="visuallyhidden">{$CONST.NO_ENTRIES_TO_PRINT}</span>{/if}</li>
<li class="next">{if $page != $pages}<a class="button_link" href="{$linkNext}" title="{$CONST.NEXT}"><span class="visuallyhidden">{$CONST.NEXT} </span><span class="icon-right-circled"></span></a>{else}<span class="visuallyhidden">{$CONST.NO_ENTRIES_TO_PRINT}</span>{/if}</li>

View File

@ -730,7 +730,7 @@ function highlightComment(id, checkvalue) {
// Clone pagination
$('.media_pane .pagination').clone().prependTo('.media_pane');
$('.comments_pane .pagination').clone().insertAfter('.comments_pane > h3');
$('.comments_pane .pagination').clone().prependTo('.comments_pane');
$('.entries_pane .pagination').clone().prependTo('.entries_pane');
// Equal Heights

View File

@ -1142,7 +1142,8 @@ main {
} /* Temporary */
#edit_entry_timestamp,
#media_pane_filter { position: relative; }
#media_pane_filter,
.comments_pane .pagination { position: relative; }
#reset_timestamp,
#media_pane_filter #toggle_filters {
@ -1150,6 +1151,14 @@ main {
top: 0;
}
.comments_pane .pagination h3 {
font-size: 1em;
font-weight: normal;
position: absolute;
top: -60%;
left: 33%;
}
#reset_timestamp {
max-height: 1.25em;
right: 0;