root/branches/release-36/php/lib/function.mtassettype.php @ 2031

Revision 2031, 0.5 kB (checked in by fumiakiy, 19 months ago)

Added trans script friendly comments for missing asset types. BugId:66796

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 * /
25?>
Note: See TracBrowser for help on using the browser.