root/branches/release-35/php/lib/function.mttagcount.php
@
1956
| Revision 1956, 386 bytes (checked in by bchoate, 20 months ago) |
|---|
| 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_function_mttagcount($args, &$ctx) { |
| 9 | $tag = $ctx->stash('Tag'); |
| 10 | $count = 0; |
| 11 | if ($tag && is_array($tag)) |
| 12 | $count = $tag['tag_count']; |
| 13 | return $ctx->count_format($count, $args); |
| 14 | } |
Note: See TracBrowser
for help on using the browser.
