Skip to content

Instantly share code, notes, and snippets.

@niklausgerber
Created February 17, 2012 11:02
Show Gist options
  • Save niklausgerber/1852686 to your computer and use it in GitHub Desktop.
Save niklausgerber/1852686 to your computer and use it in GitHub Desktop.
Title: Your Title
----
Background: #ececec
----
Background-Banner: #ffffff
----
Filename: flash_movie.swf
----
Widht: 160px
----
Height: 600px
<!doctype html>
<html lang="de">
<head>
<meta charset="utf-8" />
<title><?php echo html($site->title()) ?> | <?php echo html($page->title()) ?></title>
<!-- globale styles -->
<style type="text/css">
body {
background-color: <?php echo html($page->background()) ?>;
}
.banner {
position: relative;
margin: 0 auto;
padding-top: 80px;
width: <?php echo html($page->width()) ?>;
height: <?php echo html($page->height()) ?>;
}
</style>
</head>
<body>
<?php snippet('header') ?>
<div class="banner">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="<?php echo html($page->width()) ?>" height="<?php echo html($page->width()) ?>" id="<?php echo html($page->title()) ?>" align="middle">
<param name="movie" value="<?php echo $page->videos()->find((string)$page->filename())->url() ?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="<?php echo html($page->background-banner()) ?>" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="<?php echo $page->videos()->find((string)$page->filename())->url() ?>" width="<?php echo html($page->width()) ?>" height="<?php echo html($page->height()) ?>">
<param name="movie" value="<?php echo $page->videos()->find((string)$page->filename())->url() ?>" />
<param name="quality" value="high" />
<param name="bgcolor" value="<?php echo html($page->background-banner()) ?>" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="false" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash Player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div>
<?php snippet('footer') ?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment