|
Revision 1308, 0.7 kB
(checked in by bsmith, 23 months ago)
|
|
Merging commits from release-28 changesets 1274 to 1306
|
| 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_mtfolderfooter($args, $content, &$ctx, &$repeat) { |
|---|
| 9 | if (!isset($content)) { |
|---|
| 10 | $categories =& $ctx->stash('_categories'); |
|---|
| 11 | $counter = $ctx->stash('_categories_counter'); |
|---|
| 12 | |
|---|
| 13 | return $ctx->_hdlr_if($args, $content, $ctx, $repeat, |
|---|
| 14 | ((isset($counter) && isset($categories)) && $counter == count($categories) || $ctx->stash('subFolderFoot')) |
|---|
| 15 | ); |
|---|
| 16 | } else { |
|---|
| 17 | return $ctx->_hdlr_if($args, $content, $ctx, $repeat); |
|---|
| 18 | } |
|---|
| 19 | } |
|---|
| 20 | ?> |
|---|