1<?php
2 /**
3 * Copyright (C) e107 Inc (e107.org), Licensed under GNU GPL (http://www.gnu.org/licenses/gpl.txt)
4 *
5 * DIV block bbcode
6 */
7
8if (!defined('e107_INIT')) { exit; }
9
10// This is a generic glyph bbcode.
11
12class bb_glyph extends e_bb_base
13{
14	/**
15	 * Called prior to save
16	 * Re-assemble the bbcode
17	 */
18	function toDB($code_text, $parm)
19	{
20		return '[glyph]'.$code_text.'[/glyph]';
21	}
22
23	/**
24	 *	Glyph tag.
25	 * @param $code_text : xxxxxxx.youtube or xxxxxxx.mp4
26	 */
27	function toHTML($code_text, $parm='')
28	{
29		return e107::getParser()->toIcon($code_text);
30	}
31
32
33}
34
35
36
37
38
39
40
41?>