flatpress/fp-plugins/blockparser/tpls/admin.plugin.blockparser.tpl
azett 52bf429a01 Replaced Smarty 2.6.31-dev with v 4.0.4, keeping the FP-specific Smarty plugins.
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!
2022-01-23 15:02:33 +01:00

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}&amp;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&amp;page={$id}&amp;action=write">{$subject|truncate:70}</a>
</td>
<td>enable/disable</td>
</tr>
***}
{/static}
</tbody></table>
</form>
{/static_block}