 52bf429a01
			
		
	
	
		52bf429a01
		
	
	
	
	
		
			
			Updated calls to current Smarty API (register_function()/register_modifier()/register_block() -> registerPlugin(); assign_by_ref() -> assignByRef()). Fixed file includes in templates with quotes. Removed SmartyValidate.class.php includes. Still work in progress as some errors still appear!
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
| <h2>{$plang.head}</h2>
 | |
| <p>{$plang.description}</p>
 | |
| 
 | |
| {include file="shared:errorlist.tpl"}
 | |
| {static_block}
 | |
| 
 | |
| <form method="post"
 | |
| 	action="{$smarty.const.BLOG_BASEURL}admin.php?p=entry"
 | |
| 	enctype="multipart/form-data">
 | |
| 	
 | |
| <table class="entrylist">
 | |
| <thead>
 | |
| <tr>
 | |
| <th>{$plang.id}</th>
 | |
| <th>{$panelstrings.title}</th>
 | |
| <th>{$panelstrings.action}</th></tr></thead>
 | |
| <tbody>
 | |
| {static}
 | |
| 
 | |
| 	{assign var=inarr value=$id|in_array:$enabledlist}
 | |
| 	<tr{if $inarr} class="enabled" {/if}>
 | |
| 		<td> {$id} </td>
 | |
| 		<td class="main-cell"> {$subject} </td>
 | |
| 		<td>
 | |
| 			<a 
 | |
| 			class="link-general" 
 | |
| 			href="{"?p=static"|action_link:write}&page={$id}">
 | |
| 			{$panelstrings.edit}
 | |
| 			</a>
 | |
| 			
 | |
| 			{if $inarr} 
 | |
| 			
 | |
| 			<a class="link-disable"
 | |
| 			href="{$action_url|cmd_link:disable:$id}"> 
 | |
| 				{$panelstrings.disable}
 | |
| 			</a> 
 | |
| 			{else}
 | |
| 			<a class="link-enable" 
 | |
| 			href="{$action_url|cmd_link:enable:$id}"> 
 | |
| 				{$panelstrings.enable}
 | |
| 			</a> 
 | |
| 			{/if}
 | |
| 		</td>
 | |
| 	</tr>
 | |
| 
 | |
| {***	<tr>
 | |
| 
 | |
| <td>
 | |
| <a href="admin.php?p=static&page={$id}&action=write">{$subject|truncate:70}</a>
 | |
| </td>
 | |
| <td>enable/disable</td>
 | |
| 
 | |
| </tr>
 | |
| ***}
 | |
| {/static}
 | |
| </tbody></table>
 | |
| </form>
 | |
| 
 | |
| {/static_block}
 | |
| 
 |