1
0
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:
CaMer0n
2012-05-22 07:27:26 +00:00
parent 01ff30c274
commit 9cf35b1754
31 changed files with 113 additions and 36 deletions

View File

@@ -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 -->