<?php
// (c) Copyright 2002-2013 by authors of the Tiki Wiki CMS Groupware Project
// 
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
// Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details.
// $Id: wikiplugin_sub.php 44444 2013-01-05 21:24:24Z changi67 $

function wikiplugin_sub_info()
{
	return array(
		'name' => tra('Subscript'),
		'documentation' => 'PluginSub',
		'description' => tra('Apply subscript font to text'),
		'prefs' => array( 'wikiplugin_sub' ),
		'body' => tra('text'),
		'icon' => 'img/icons/text_subscript.png',
		'tags' => array( 'basic' ),
		'params' => array(
		),
	);
}

function wikiplugin_sub($data, $params)
{
	global $tikilib;

	extract($params, EXTR_SKIP);
	return "<sub>$data</sub>";
}
