[php-blog-cvs] r2341 - trunk/templates/bulletproof
A reliable, secure & extensible PHP blog | Not mainstream since 2002
Brought to you by:
garvinhicking,
jhermanns
From: <don...@ma...> - 2008-09-29 20:37:59
|
Author: donchambers Date: 2008-09-29 22:37:45 +0200 (Mon, 29 Sep 2008) New Revision: 2341 Modified: trunk/templates/bulletproof/blue_style.css trunk/templates/bulletproof/default_style.css trunk/templates/bulletproof/entries.tpl trunk/templates/bulletproof/green_style.css trunk/templates/bulletproof/info.txt trunk/templates/bulletproof/purple_style.css Log: BP: modified pagination in entries.tpl & added pagination styles to colorset stylesheets. Modified: trunk/templates/bulletproof/blue_style.css =================================================================== --- trunk/templates/bulletproof/blue_style.css 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/blue_style.css 2008-09-29 20:37:45 UTC (rev 2341) @@ -150,6 +150,30 @@ 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; Modified: trunk/templates/bulletproof/default_style.css =================================================================== --- trunk/templates/bulletproof/default_style.css 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/default_style.css 2008-09-29 20:37:45 UTC (rev 2341) @@ -221,6 +221,34 @@ 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; Modified: trunk/templates/bulletproof/entries.tpl =================================================================== --- trunk/templates/bulletproof/entries.tpl 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/entries.tpl 2008-09-29 20:37:45 UTC (rev 2341) @@ -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"} + <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} - {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> - {/if} + {serendipity_hookPlugin hook="entries_footer"} </div> <!-- ENTRIES END --> Modified: trunk/templates/bulletproof/green_style.css =================================================================== --- trunk/templates/bulletproof/green_style.css 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/green_style.css 2008-09-29 20:37:45 UTC (rev 2341) @@ -145,6 +145,31 @@ 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; Modified: trunk/templates/bulletproof/info.txt =================================================================== --- trunk/templates/bulletproof/info.txt 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/info.txt 2008-09-29 20:37:45 UTC (rev 2341) @@ -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 Modified: trunk/templates/bulletproof/purple_style.css =================================================================== --- trunk/templates/bulletproof/purple_style.css 2008-09-24 13:04:28 UTC (rev 2340) +++ trunk/templates/bulletproof/purple_style.css 2008-09-29 20:37:45 UTC (rev 2341) @@ -147,6 +147,30 @@ 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; |