32 $code =
"<img src='{$this->image_path}/mp3.gif' alt='" .
XoopsLocale::MP3 .
"' onclick='xoopsCodeMp3(\"{$textarea_id}\",\"" . htmlspecialchars(
XoopsLocale::MP3_URL, ENT_QUOTES) .
"\");' onmouseover='style.cursor=\"hand\"'/> ";
34 function xoopsCodeMp3(
id, enterMp3Phrase)
36 var selection = xoopsGetSelect(
id);
37 if (selection.length > 0) {
40 var text = prompt(enterMp3Phrase,
"");
42 var domobj = xoopsGetElementById(
id);
43 if ( text.length > 0 ) {
44 var result =
"[mp3]" + text +
"[/mp3]";
45 xoopsInsertText(domobj, result);
57 return self::decode($match[1]);
65 $ts->callbackPatterns[] =
"/\[mp3\](.*?)\[\/mp3\]/s";
66 $ts->callbacks[] = __CLASS__ .
"::myCallback";
79 $rp =
"<embed flashvars=\"playerID=1&bg=0xf8f8f8&leftbg=0x3786b3&lefticon=0x78bee3&rightbg=0x3786b3&rightbghover=0x78bee3&righticon=0x78bee3&righticonhover=0x3786b3&text=0x666666&slider=0x3786b3&track=0xcccccc&border=0x666666&loader=0x78bee3&loop=no&soundFile={$url}\" quality='high' menu='false' wmode='transparent' pluginspage='http://www.macromedia.com/go/getflashplayer' src='" .
$xoops_url .
"/images/form/player.swf' width=290 height=24 type='application/x-shockwave-flash'></embed>";
load(MyTextSanitizer &$ts)
static decode($url, $width, $height)
static myCallback($match)