LuckyCoinkydink/templates/default/preview_iframe.tpl
2009-05-18 08:23:45 +00:00

35 lines
1.7 KiB
Smarty

{if $is_xhtml}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
{else}
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
{/if}
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="{$lang}" lang="{$lang}">
<head>
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
<meta http-equiv="Content-Type" content="text/html; charset={$head_charset}" />
<meta name="Powered-By" content="Serendipity v.{$head_version}" />
<link rel="stylesheet" type="text/css" href="{$head_link_stylesheet}" />
<script type="text/javascript">
window.onload = function() {ldelim}
parent.document.getElementById('serendipity_iframe').style.height = document.getElementById('mainpane').offsetHeight
+ parseInt(document.getElementById('mainpane').style.marginTop)
+ parseInt(document.getElementById('mainpane').style.marginBottom)
+ 'px';
parent.document.getElementById('serendipity_iframe').scrolling = 'no';
parent.document.getElementById('serendipity_iframe').style.border = 0;
{rdelim}
</script>
</head>
<body style="padding: 0px; margin: 0px;">
<div id="mainpane" style="padding: 0px; margin: 5px auto 5px auto; width: 98%;">
<div id="content" style="padding: 5px; margin: 0px;">
{$preview}
</div>
</div>
</body>
</html>