PSR-2. I'm not a huge fan, but ugly consistency beats no consistency...

This commit is contained in:
Shish
2019-05-28 17:59:38 +01:00
parent 5ec3e89884
commit 34b05cca7c
295 changed files with 27094 additions and 24632 deletions

View File

@@ -1,10 +1,12 @@
<?php
class FlashFileHandlerTheme extends Themelet {
public function display_image(Page $page, Image $image) {
$ilink = $image->get_image_link();
// FIXME: object and embed have "height" and "width"
$html = "
class FlashFileHandlerTheme extends Themelet
{
public function display_image(Page $page, Image $image)
{
$ilink = $image->get_image_link();
// FIXME: object and embed have "height" and "width"
$html = "
<object classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000'
codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0'
height='{$image->height}'
@@ -20,7 +22,6 @@ class FlashFileHandlerTheme extends Themelet {
wmode='opaque'
type='application/x-shockwave-flash'></embed>
</object>";
$page->add_block(new Block("Flash Animation", $html, "main", 10));
}
$page->add_block(new Block("Flash Animation", $html, "main", 10));
}
}