|
Revision 2103, 500 bytes
(checked in by fumiakiy, 19 months ago)
|
|
Implemented PHP version of pager related tags. Dynamically published archives can now be pagination-enabled by adding these tags and specify "auto" to limit and offset.
|
-
Property svn:keywords set to
Id Date Author Revision
|
| Line | |
|---|
| 1 | <?php |
|---|
| 2 | # Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd. |
|---|
| 3 | # This program is distributed under the terms of the |
|---|
| 4 | # GNU General Public License, version 2. |
|---|
| 5 | # |
|---|
| 6 | # $Id$ |
|---|
| 7 | |
|---|
| 8 | function smarty_block_mtifpreviousresults($args, $content, &$ctx, &$repeat) { |
|---|
| 9 | if (!isset($content)) { |
|---|
| 10 | $offset = $ctx->stash('__pager_offset'); |
|---|
| 11 | return $ctx->_hdlr_if($args, $content, $ctx, $repeat, $offset ? true : false); |
|---|
| 12 | } else { |
|---|
| 13 | return $ctx->_hdlr_if($args, $content, $ctx, $repeat); |
|---|
| 14 | } |
|---|
| 15 | } |
|---|
| 16 | ?> |
|---|