59 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Smarty
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			59 lines
		
	
	
		
			1.8 KiB
		
	
	
	
		
			Smarty
		
	
	
		
			Executable File
		
	
	
	
	
| <h2>{$panelstrings.head}</h2>
 | |
| 
 | |
| 	{validate_init form=$admin_panel_id}
 | |
| 	{validate id="subject" message=$panelstrings.error.subject append="error"}
 | |
| 	{validate id="content" message=$panelstrings.error.content append="error"}
 | |
| 	{validate id="id" message=$panelstrings.error.id append="error"}
 | |
| 
 | |
| 	{include file='shared:errorlist.tpl'}	
 | |
| 
 | |
| 
 | |
| 	{static_block}
 | |
| 	{if $preview}
 | |
| 	<fieldset id="post-preview"><legend>{$panelstrings.preview}</legend>
 | |
| 	{include file=preview.tpl}
 | |
| 	</fieldset>
 | |
| 	{/if}
 | |
| 
 | |
| {html_form}		
 | |
| 
 | |
| 	{static content=$post alwaysshow=true}
 | |
| 	
 | |
| 			<p><label for="subject">{$panelstrings.subject}</label><br />
 | |
| 			<input type="text" name="subject" id="subject" {$error.subject|notempty:'class="field-error"'} 
 | |
| 			value="{$subject|default:$smarty.request.subject|default:$smarty.request.page|wp_specialchars:1}" /><br />
 | |
| 			<input type="hidden" name="timestamp" value="{$date}" />
 | |
| 			</p>
 | |
| 			<p>
 | |
| 			<label for="content">{$panelstrings.content}</label>
 | |
| 			</p>
 | |
| 			{toolbar}
 | |
| 			<p>
 | |
| 			<textarea name="content" {$error.content|notempty:'class="field-error"'} id="content" 
 | |
| 			rows="20" cols="74">{$content|default:$smarty.request.content|htmlspecialchars}</textarea><br />
 | |
| 		{*here will go a plugin hook*}
 | |
| 			</p>
 | |
| 		
 | |
| 		<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 />
 | |
| 		<input type="text" name="id" id="id" class="maxsize{$error.id|notempty:' field-error'}"
 | |
| 		value="{$smarty.request.id|default:$smarty.request.page|default:$static_id}"  /></p>
 | |
| 		{html_submit name="save" id="save" value=$panelstrings.submit accesskey=s}
 | |
| 		{html_submit name="preview" id="preview" value=$panelstrings.preview accesskey=p}
 | |
| 		
 | |
| 		</fieldset>
 | |
| 
 | |
| 	
 | |
| 	{/static}
 | |
| 
 | |
| 
 | |
| {/html_form}
 | |
| 	{/static_block}
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
