mirror of
https://github.com/e107inc/e107.git
synced 2025-09-03 11:22:40 +02:00
Better bbcode styling and table bbcodes added
This commit is contained in:
@@ -342,18 +342,20 @@ class bb_youtube extends e_bb_base
|
||||
$url .= "&autoplay=".intval($params['autoplay']);
|
||||
}
|
||||
|
||||
$class = "bbcode ".e107::getBB()->getClass('youtube'); // consistent classes across all themes.
|
||||
|
||||
$ret = '
|
||||
|
||||
<!-- Start YouTube -->
|
||||
|
||||
<object class="bbcode" width="'.$params['w'].'" height="'.$params['h'].'" >
|
||||
<object class="'.$class.'" width="'.$params['w'].'" height="'.$params['h'].'" >
|
||||
<param name="movie" value="'.$url.'"></param>
|
||||
<param name="allowFullScreen" value="'.$fscr.'"></param>
|
||||
<param name="allowscriptaccess" value="always"></param>
|
||||
<param name="wmode" value="transparent"></param>
|
||||
';
|
||||
// Not XHTML - but needed for compatibility.
|
||||
$ret .= '<embed class="bbcode" src="'.$url.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="'.$fscr.'" wmode="transparent" width="'.$params['w'].'" height="'.$params['h'].'"></embed>';
|
||||
$ret .= '<embed class="'.$class.'" src="'.$url.'" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="'.$fscr.'" wmode="transparent" width="'.$params['w'].'" height="'.$params['h'].'"></embed>';
|
||||
$ret .= '</object>';
|
||||
$ret .= '
|
||||
<!-- End YouTube -->
|
||||
|
Reference in New Issue
Block a user