This repository has been archived by the owner on Oct 31, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
preview_iframe.tpl
43 lines (42 loc) · 1.64 KB
/
preview_iframe.tpl
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
<!DOCTYPE html>
<html class="no-js" lang="{$lang}">
<head>
<meta charset="{$head_charset}">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>{$CONST.SERENDIPITY_ADMIN_SUITE}</title>
<link rel="stylesheet" href="{$serendipityHTTPPath}{$serendipityRewritePrefix}serendipity.css">
{serendipity_hookPlugin hook="backend_header" hookAll="true"}
<script>window.onload = function() {ldelim}
parent.document.getElementById('serendipity_iframe').style.height = document.querySelector('html').offsetHeight + 'px';
parent.document.getElementById('serendipity_iframe').scrolling = 'no';
parent.document.getElementById('serendipity_iframe').style.border = 0;
{rdelim}
</script>
</head>
<body>
<main>
{if $mode == 'preview'}
<div class="clearfix">
{elseif $mode == 'save'}
<div class="clearfix">
<div style="float: left; height: 75px"></div>
{$updertHooks}
{if $res}
<div class="serendipity_msg_important">{$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>
<script src="{serendipity_getFile file="theme.js" frontend=true}"></script>
</body>
</html>