root/branches/release-41/php/lib/function.mtassettype.php @ 2682

Revision 2682, 0.5 kB (checked in by bchoate, 17 months ago)

Fixed syntax error.

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
8function smarty_function_mtassettype($args, &$ctx) {
9    $asset = $ctx->stash('asset');
10    if (!$asset) return '';
11
12    global $mt;
13    return $mt->translate($asset['asset_class']);
14}
15/*
16 * translate('image')
17 * translate('Image')
18 * translate('file')
19 * translate('File')
20 * translate('audio')
21 * translate('Audio')
22 * translate('video')
23 * translate('Video')
24 */
Note: See TracBrowser for help on using the browser.