67 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
			
		
		
	
	
			67 lines
		
	
	
		
			1.5 KiB
		
	
	
	
		
			Smarty
		
	
	
	
	
	
| <div class="row">
 | |
| 	<div class="col-12">
 | |
| 		<div class="card shadow mb-4">
 | |
| 			<div class="card-header"><h6 class="m-0 font-weight-bold text-primary">{$plang.head}</h6></div>
 | |
| 			<div class="card-body">
 | |
| 				<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 table">
 | |
| 				<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}
 | |
| 			</div>
 | |
| 		</div>
 | |
| 	</div>
 | |
| </div> | 
