BP: modified pagination in entries.tpl & added pagination styles to colorset stylesheets.
This commit is contained in:
parent
189ff27f2f
commit
db81a40403
@ -150,6 +150,30 @@ body {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
/* pagination links */
|
||||
div.pagination{
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.pagination a:link,
|
||||
.pagination a:visited{
|
||||
border: 1px solid #CFCFCF;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
span#thispage {
|
||||
background-color: #3D98C5;
|
||||
border: 1px solid #3D98C5;
|
||||
color: #ffffff;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.pagination a:hover,
|
||||
.pagination a:active {
|
||||
background-color: #EDF8FD;
|
||||
border: 1px solid #3D98C5;
|
||||
}
|
||||
|
||||
.serendipitySideBarItem {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
|
@ -221,6 +221,34 @@ a.homelink2:link, a.homelink2:visited,
|
||||
background-color: #ecf3fd;
|
||||
}
|
||||
|
||||
/* pagination links */
|
||||
div.pagination{
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.pagination a:link,
|
||||
.pagination a:visited{
|
||||
background: #DDECFB url(img/default_sitenav_back.png) center left repeat-x;
|
||||
border: 1px solid #CFCFCF;
|
||||
padding: 2px 6px;
|
||||
text-decoration: none;
|
||||
}
|
||||
|
||||
span#thispage {
|
||||
background: #235587;
|
||||
border: 1px solid #235587;
|
||||
color: #ffffff;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.pagination a:hover,
|
||||
.pagination a:active {
|
||||
background: #5F90BA;
|
||||
border: 1px solid #235587;
|
||||
color: #ffffff;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
img.serendipity_entryIcon {
|
||||
float: right;
|
||||
border: 0px;
|
||||
|
@ -417,27 +417,43 @@
|
||||
{/if}
|
||||
|
||||
{if $template_option.show_pagination == 'true'}
|
||||
<div class="pagination">
|
||||
{eval var=$footer_currentPage-3 assign="paginationStartPage"}
|
||||
{if $footer_currentPage+3 > $footer_totalPages}
|
||||
{eval var=$footer_totalPages-6 assign="paginationStartPage"}
|
||||
{/if}
|
||||
{if $paginationStartPage <= 0}
|
||||
{assign var="paginationStartPage" value="1"}
|
||||
{/if}
|
||||
{section name=i start=$paginationStartPage loop=$footer_totalPages+1 max=7}
|
||||
{if $smarty.section.i.index != $footer_currentPage}
|
||||
<a href="{$smarty.section.i.index|string_format:$footer_pageLink}">{$smarty.section.i.index}</a>
|
||||
{else}
|
||||
<span id="thispage">{$smarty.section.i.index}</span>
|
||||
{/if}
|
||||
{/section}
|
||||
{if $smarty.section.i.index <= $footer_totalPages}
|
||||
… <a href="{$footer_totalPages|string_format:$footer_pageLink}">{$footer_totalPages}</a>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="pagination">
|
||||
{eval var=$footer_currentPage-3 assign="paginationStartPage"}
|
||||
{if $footer_currentPage+3 > $footer_totalPages}
|
||||
{eval var=$footer_totalPages-6 assign="paginationStartPage"}
|
||||
{/if}
|
||||
{if $paginationStartPage <= 0}
|
||||
{assign var="paginationStartPage" value="1"}
|
||||
{/if}
|
||||
{if $footer_prev_page}
|
||||
<a title="{$CONST.PREVIOUS_PAGE}" href="{$footer_prev_page}">◄</a>
|
||||
{/if}
|
||||
{if $paginationStartPage > 1}
|
||||
<a href="{'1'|string_format:$footer_pageLink}">1</a>
|
||||
{/if}
|
||||
{if $paginationStartPage > 2}
|
||||
…
|
||||
{/if}
|
||||
{section name=i start=$paginationStartPage loop=$footer_totalPages+1 max=7}
|
||||
{if $smarty.section.i.index != $footer_currentPage}
|
||||
<a href="{$smarty.section.i.index|string_format:$footer_pageLink}">{$smarty.section.i.index}</a>
|
||||
{else}
|
||||
<span id="thispage">{$smarty.section.i.index}</span>
|
||||
{/if}
|
||||
{/section}
|
||||
{if $smarty.section.i.index < $footer_totalPages}
|
||||
…
|
||||
{/if}
|
||||
{if $smarty.section.i.index <= $footer_totalPages}
|
||||
<a href="{$footer_totalPages|string_format:$footer_pageLink}">{$footer_totalPages}</a>
|
||||
{/if}
|
||||
{if $footer_next_page}
|
||||
<a title="{$CONST.NEXT_PAGE}" href="{$footer_next_page}">►</a>
|
||||
{/if}
|
||||
</div>
|
||||
{/if}
|
||||
|
||||
|
||||
{serendipity_hookPlugin hook="entries_footer"}
|
||||
</div>
|
||||
<!-- ENTRIES END -->
|
||||
|
@ -145,6 +145,31 @@ body {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
/* pagination links */
|
||||
div.pagination{
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.pagination a:link,
|
||||
.pagination a:visited{
|
||||
border: 1px solid #AFA283;
|
||||
padding: 2px 6px;
|
||||
|
||||
}
|
||||
|
||||
span#thispage {
|
||||
background-color: #224C03;
|
||||
border: 1px solid #224C03;
|
||||
color: #ffffff;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.pagination a:hover,
|
||||
.pagination a:active {
|
||||
background-color: #E7D9B7;
|
||||
border: 1px solid #224C03;
|
||||
}
|
||||
|
||||
.serendipitySideBarItem {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
|
@ -1,4 +1,4 @@
|
||||
Name: Bulletproof v1.4 beta (s9y-bulletproof.com)
|
||||
Author: Bulletproof development team
|
||||
Date: 2008-08-08
|
||||
Date: 2008-09-29
|
||||
Require Serendipity: 1.2
|
||||
|
@ -147,6 +147,30 @@ body {
|
||||
margin: 5px 0 10px;
|
||||
}
|
||||
|
||||
/* pagination links */
|
||||
div.pagination{
|
||||
margin-top: 1em;
|
||||
}
|
||||
|
||||
.pagination a:link,
|
||||
.pagination a:visited{
|
||||
border: 1px solid #EDBCF9;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
span#thispage {
|
||||
background-color: #823995;
|
||||
border: 1px solid #823995;
|
||||
color: #ffffff;
|
||||
padding: 2px 6px;
|
||||
}
|
||||
|
||||
.pagination a:hover,
|
||||
.pagination a:active {
|
||||
background-color: #EDBCF9;
|
||||
border: 1px solid #823995;
|
||||
}
|
||||
|
||||
.serendipitySideBarItem {
|
||||
margin: 10px;
|
||||
padding: 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user