-
Notifications
You must be signed in to change notification settings - Fork 58
/
Copy pathadmin.static.write.tpl
executable file
·72 lines (63 loc) · 2.51 KB
/
admin.static.write.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<h2>{$panelstrings.head}</h2>
{include file="shared:errorlist.tpl"}
{static_block}
<div id="admin-post-preview">
{if isset($preview)}
<fieldset id="post-preview"><legend>{$panelstrings.preview}</legend>
{include file="previewstatic.tpl"}
</fieldset>
{/if}
</div>
{html_form}
{if !isset($post)}
{assign var=post value=""}
{/if}
{static content=$post alwaysshow=true}
<div id="admin-editor">
<p><label for="subject">{$panelstrings.subject}</label><br>
{if isset($error) && isset($error.subject) && !empty($error.subject)}
{assign var=class value="field-error"}
{else}
{assign var=class value=""}
{/if}
<input type="text" name="subject" id="subject" class="{$class}"
value="{$subject|default:$smarty.request.subject|default:{$smarty.request.page|default:''}|wp_specialchars:1}"><br>
<input type="hidden" name="timestamp" value="{$date}">
</p>
<p>
<label for="content">{$panelstrings.content}</label>
</p>
{if function_exists('plugin_bbcode_init') && $fp_config.plugins.bbcode.editor == true}
{include file="plugin:bbcode/toolbar"}
{/if}
<!-- BOF Custom toolbar -->{action hook=simple_toolbar_form}<!-- EOF Custom toolbar -->
<p>
{if isset($error) && isset($error.content) && !empty($error.content)}
{assign var=class value="field-error"}
{else}
{assign var=class value=""}
{/if}
<textarea name="content" class="{$class}" id="content"
rows="20" cols="74">{$content|default:{$smarty.request.content|default:''}|htmlspecialchars}</textarea><br>
</p>
{* here will go a plugin hook *}
<!-- BOF SEO-Metataginfo- Plugin -->{action hook=simple_metatag_info}<!-- EOF SEO-Metataginfo- Plugin -->
</div>
<fieldset id="admin-static-filename"><legend>{$panelstrings.fieldset2}</legend>
<input type="hidden" name="oldid" id="oldid" value="{$id|default:$smarty.request.oldid}">
<p><label for="id">{$panelstrings.pagename}</label><br>
{if isset($error) && isset($error.id) && !empty($error.id)}
{assign var=class value="field-error"}
{else}
{assign var=class value=""}
{/if}
<input type="text" name="id" id="id" class="maxsize{$class}"
value="{$smarty.request.id|default:$smarty.request.page|default:$static_id|escape:'htmlall':'UTF-8'}"></p>
</fieldset>
<div class="buttonbar">
{html_submit name="save" id="save" value=$panelstrings.submit accesskey=s}
{html_submit name="preview" id="preview" value=$panelstrings.preview accesskey=p}
</div>
{/static}
{/html_form}
{/static_block}