This is a – possibly temporary - fix. serendipity_editor.js depends on this file, so it needs to be included in the preview iframe as well. See http://board.s9y.org/viewtopic.php?p=10440336 (German only) for further info on the issue this is related to.
75 lines
4.2 KiB
Smarty
75 lines
4.2 KiB
Smarty
<!doctype html>
|
|
<!--[if lt IE 7 ]> <html class="no-js lt-ie9 lt-ie8 lt-ie7" lang="{$lang}"> <![endif]-->
|
|
<!--[if IE 7 ]> <html class="no-js lt-ie9 lt-ie8" lang="{$lang}"> <![endif]-->
|
|
<!--[if IE 8 ]> <html class="no-js lt-ie9" lang="{$lang}"> <![endif]-->
|
|
<!--[if gt IE 8]><!--> <html class="no-js" lang="{$lang}"> <!--<![endif]-->
|
|
<head>
|
|
<meta charset="{$head_charset}">
|
|
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
|
|
<meta name="generator" content="Serendipity v.{$serendipityVersion}">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
{if $template_option.webfonts == 'droid'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Droid+Sans:400,700">
|
|
{elseif $template_option.webfonts == 'ptsans'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=PT+Sans:400,400italic,700,700italic">
|
|
{elseif $template_option.webfonts == 'osans'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Open+Sans:400,400italic,700,700italic">
|
|
{elseif $template_option.webfonts == 'cabin'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Cabin:400,400italic,700,700italic">
|
|
{elseif $template_option.webfonts == 'ubuntu'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Ubuntu:400,400italic,700,700italic">
|
|
{elseif $template_option.webfonts == 'dserif'}
|
|
<link rel="stylesheet" href="//fonts.googleapis.com/css?family=Droid+Serif:400,400italic,700,700italic">
|
|
{/if}
|
|
<link rel="stylesheet" href="{$serendipityHTTPPath}{$serendipityRewritePrefix}serendipity.css">
|
|
{if $template_option.userstyles == true}
|
|
<link rel="stylesheet" href="{serendipity_getFile file="user.css"}">
|
|
{/if}
|
|
<script src="{serendipity_getFile file="js/modernizr-2.7.1.min.js"}"></script>
|
|
{serendipity_hookPlugin hook="backend_header" hookAll="true"}
|
|
<script src="{serendipity_getFile file='admin/js/plugins.js'}"></script>
|
|
<script src="{serendipity_getFile file='admin/serendipity_editor.js'}"></script>
|
|
<script>
|
|
window.onload = function() {ldelim}
|
|
parent.document.getElementById('serendipity_iframe').style.height = document.getElementById('content').offsetHeight
|
|
+ parseInt(document.getElementById('content').style.marginTop)
|
|
+ parseInt(document.getElementById('content').style.marginBottom)
|
|
+ 'px';
|
|
parent.document.getElementById('serendipity_iframe').scrolling = 'no';
|
|
parent.document.getElementById('serendipity_iframe').style.border = 0;
|
|
{rdelim}
|
|
</script>
|
|
<style type="text/css">#serendipity_preview_spacer {ldelim}float:none!important;height:0!important;{rdelim}</style>
|
|
</head>
|
|
<body{if $template_option.webfonts != 'none'} class="{$template_option.webfonts}"{/if}>
|
|
<div id="page" class="clearfix container">
|
|
<div class="clearfix{if $leftSidebarElements > 0 && $rightSidebarElements > 0} col3{elseif $leftSidebarElements > 0 && $rightSidebarElements == 0} col2l{else} col2r{/if}">
|
|
<main id="content" style="padding: 1em 0; margin: 0;">
|
|
{if $mode == 'preview'}
|
|
<div class="clearfix">
|
|
<div id="serendipity_preview_spacer" style="float: left; height: 225px"></div>
|
|
{elseif $mode == 'save'}
|
|
<div class="clearfix">
|
|
<div style="float: left; height: 75px"></div>
|
|
{$updertHooks}
|
|
{if $res}
|
|
<div class="serendipity_msg_error">{$CONST.ERROR}: <b>{$res}</b></div>
|
|
{else}
|
|
{if $lastSavedEntry}
|
|
<script type="text/javascript">$(document).ready(function() {
|
|
parent.document.forms['serendipityEntry']['serendipity[id]'].value = "{$lastSavedEntry}";
|
|
});
|
|
</script>
|
|
{/if}
|
|
<span class="msg_success"><span class="icon-ok-circled"></span> {$CONST.ENTRY_SAVED}</span>
|
|
<a href="{$entrylink}" target="_blank">{$CONST.VIEW}</a>
|
|
{/if}
|
|
{/if}
|
|
{$preview}
|
|
</div>
|
|
</main>
|
|
</div>
|
|
</div>
|
|
</body>
|
|
</html>
|