
- Fixes #184 - Fixes the problem when the SEOmetatagInfo plugin and/or Tag plugin were active that no new entries or static pages could be written. Note: Apparently the Smarty plugin function.toolbar.php does not work correctly with Smarty 4. Should be checked, as the datechanger plugin needs this. - The HTML code of the administration area now contains a lang attribute in the html start tag to specify the language. - The "Save page" and "Preview" -buttons in the "Create static pages" -panel now match the style of the other panels - Fixes various HTML errors in the PHP code and in the templates. "Write static page" and "Write entry" are now largely valid for HTML5. - Fixed: in the SEOmetatagInfo plugin an opening <p> element followed an opening <p> element.
73 lines
2.3 KiB
Smarty
Executable File
73 lines
2.3 KiB
Smarty
Executable File
<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')}
|
|
{include file="plugin:bbcode/toolbar"}
|
|
{/if}
|
|
<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}"></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}
|