mirror of
https://github.com/e107inc/e107.git
synced 2025-01-17 20:58:30 +01:00
Bbcode shortcodes cleanup
This commit is contained in:
parent
4de78b893d
commit
0c900efdf2
@ -113,7 +113,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
$event = $this->getEvent('addtext',$data,LANHELP_36);
|
||||
$text = "<a {$event} class='btn btn-default' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' data-bbcode='{$data}' title='".$this->br2nl(LANHELP_36)."'>";
|
||||
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/list.png", 'list', LANHELP_36);
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/list.png", 'list'); // , LANHELP_36
|
||||
|
||||
// $text .= "<img class='btn btn-small bbcode_buttons e-pointer' src='".e_IMAGE_ABS."bbcode/list.png' alt='' title='".nl2br(LANHELP_36)."' />";
|
||||
|
||||
@ -135,7 +135,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
if (ADMIN)
|
||||
{
|
||||
//$text = "<a class='e-modal btn btn-primary' data-modal-caption='Media Manager' data-target='#uiModal' title='Insert a Youtube video via Media Manager : " . $this->var['template'] . "' id='{$id}' href='" . e_HTTP . e_ADMIN . "image.php?mode=main&action=dialog&for=" . $this->var['template'] . "&tagid=" . $tag . "&iframe=1&bbcode=video' >";
|
||||
$text = "<a class='e-modal btn btn-primary' data-modal-caption='Media Manager' data-target='#uiModal' title='Insert a Youtube video via Media Manager : " . $this->var['template'] . "' id='{$id}' href='" . e_ADMIN_ABS . "image.php?mode=main&action=dialog&for=" . $this->var['template'] . "&tagid=" . $tag . "&iframe=1&bbcode=video' >";
|
||||
$text = "<a class='e-modal btn btn-primary' data-modal-caption='Media Manager' data-target='#uiModal' title='Insert a Youtube video via Media Manager : " . $this->var['template'] . "' id='{$id}' href='" . e_ADMIN_ABS . "image.php?mode=main&action=dialog&for=" . $this->var['template'] . "&tagid=" . $tag . "&iframe=1&bbcode=video&youtube=1' >";
|
||||
}
|
||||
else
|
||||
{
|
||||
@ -143,7 +143,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
$event = $this->getEvent('addtext',$data,LANHELP_48);
|
||||
$text = "<a {$event} class='btn btn-default' id='{$id}' data-function='insert' href='#{$this->var['tagid']}' data-bbcode='{$data}' title='".$this->br2nl(LANHELP_48)."'>";
|
||||
}
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/youtube.png", 'youtube', LANHELP_48);
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/youtube.png", 'youtube'); // , LANHELP_48
|
||||
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
@ -163,7 +163,7 @@ class bbcode_shortcodes extends e_shortcode
|
||||
|
||||
|
||||
$text = "<a class='e-modal btn btn-primary' data-modal-caption='Media Manager' data-target='#uiModal' title='Insert a Glyphicon via Media Manager : ".$this->var['template']."' id='{$id}' href='".e_HTTP.e_ADMIN."image.php?mode=main&action=dialog&for=".$this->var['template']."&tagid=".$tag."&iframe=1&bbcode=glyph' >";
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/youtube.png", 'youtube', LANHELP_48);
|
||||
$text .= $this->button(e_IMAGE_ABS."bbcode/youtube.png", 'youtube'); // LANHELP_48
|
||||
|
||||
$text .= "</a>";
|
||||
return $text;
|
||||
|
Loading…
x
Reference in New Issue
Block a user