Modernes Goju-Kai Dojo Theme, visuelles Hauptseiten-Dashboard (Kyu-Wegweiser & Kacheln) und Mobile-Menue
Deploy Development / deploy (push) Successful in 18s
Deploy Development / deploy (push) Successful in 18s
This commit is contained in:
1 parent
b5da977ae1
commit
5e62482c56
5 files changed
+1034
-38
No files matched your search
@@ -43,6 +43,14 @@ class KarateVideoHandler extends MediaHandler {
|
||||
if ( !isset( $params['width'] ) || $params['width'] <= 0 ) {
|
||||
$params['width'] = 320;
|
||||
}
|
||||
// Verhindere briefmarkengrosse 2014er Video-Player (z.B. 150x100px), in denen die Bedienelemente unbenutzbar sind
|
||||
if ( $params['width'] < 280 ) {
|
||||
$ratio = ( isset( $params['height'] ) && $params['height'] > 0 )
|
||||
? ( $params['height'] / $params['width'] )
|
||||
: ( 9 / 16 );
|
||||
$params['width'] = 280;
|
||||
$params['height'] = (int)round( 280 * $ratio );
|
||||
}
|
||||
if ( !isset( $params['height'] ) || $params['height'] <= 0 ) {
|
||||
$params['height'] = (int)round( $params['width'] * 9 / 16 );
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user