change hideous admin menu to something way better
This commit is contained in:
parent
0b8064d718
commit
6eaedd6791
1 changed files with 14 additions and 21 deletions
35
index.php
35
index.php
|
@ -139,18 +139,13 @@ $breadcrumb = [
|
||||||
html::escapeHTML($core->blog->name) => '',
|
html::escapeHTML($core->blog->name) => '',
|
||||||
__('Enhance post content') => $p_url
|
__('Enhance post content') => $p_url
|
||||||
];
|
];
|
||||||
$top_menu = [];
|
|
||||||
|
|
||||||
|
$filters_combo = [];
|
||||||
foreach($filters_id as $id => $name) {
|
foreach($filters_id as $id => $name) {
|
||||||
|
|
||||||
$active = '';
|
|
||||||
if ($default_part == $id) {
|
if ($default_part == $id) {
|
||||||
$breadcrumb[__($filters_id[$default_part])] = '';
|
$breadcrumb[__($filters_id[$default_part])] = '';
|
||||||
$active = ' class="active"';
|
|
||||||
}
|
}
|
||||||
|
$filters_combo[__($name)] = $id;
|
||||||
$top_menu[] =
|
|
||||||
'<a' . $active . ' href="' . $p_url . '&part=' . $id . '">' . __($name) . '</a>';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
# -- Display page --
|
# -- Display page --
|
||||||
|
@ -172,9 +167,12 @@ dcPage::breadcrumb($breadcrumb) .
|
||||||
dcPage::notices() .
|
dcPage::notices() .
|
||||||
|
|
||||||
# Filters list
|
# Filters list
|
||||||
'<ul class="pseudo-tabs">' .
|
'<form method="post" action="' . $p_url . '&tab=settings">' .
|
||||||
'<li>' . implode('</li><li>', $top_menu) . '</li>' .
|
'<p class="anchor-nav"><label for="epc_tab" class="classic">' . __('Goto:') . ' </label>' .
|
||||||
'</ul>';
|
form::combo('part', $filters_combo, $default_part) . ' ' .
|
||||||
|
$core->formNonce() .
|
||||||
|
'<input type="submit" value="' . __('Ok') . '" /></p>' .
|
||||||
|
'</form>';
|
||||||
|
|
||||||
# Filter content
|
# Filter content
|
||||||
if (isset($filters_id[$default_part])) {
|
if (isset($filters_id[$default_part])) {
|
||||||
|
@ -348,7 +346,8 @@ if (isset($filters_id[$default_part])) {
|
||||||
echo '
|
echo '
|
||||||
<form action="' . $pager_url . '" method="post">
|
<form action="' . $pager_url . '" method="post">
|
||||||
<p>' . __('Page(s)') . ' : ' . $pager->getLinks() . '</p>
|
<p>' . __('Page(s)') . ' : ' . $pager->getLinks() . '</p>
|
||||||
<table>
|
<div class="table-outer">
|
||||||
|
<table><caption class="hidden">' . __('Records') . '</caption>
|
||||||
<thead><tr>
|
<thead><tr>
|
||||||
<th><a href="' . sprintf($pager_url, 'epc_key', $page) . '">' .
|
<th><a href="' . sprintf($pager_url, 'epc_key', $page) . '">' .
|
||||||
__('Key') . '</a></th>
|
__('Key') . '</a></th>
|
||||||
|
@ -368,15 +367,15 @@ if (isset($filters_id[$default_part])) {
|
||||||
form::hidden(['epc_old_value[]'], html::escapeHTML($list->epc_value)) .
|
form::hidden(['epc_old_value[]'], html::escapeHTML($list->epc_value)) .
|
||||||
form::field(['epc_key[]'], 30, 225, html::escapeHTML($list->epc_key), '') . '</td>
|
form::field(['epc_key[]'], 30, 225, html::escapeHTML($list->epc_key), '') . '</td>
|
||||||
<td class="maximal">' .
|
<td class="maximal">' .
|
||||||
form::field(['epc_value[]'], 90, 225, html::escapeHTML($list->epc_value), 'maximal') . '</td>
|
form::field(['epc_value[]'], 90, 225, html::escapeHTML($list->epc_value), '') . '</td>
|
||||||
<td class="nowrap">' .
|
<td class="nowrap count">' .
|
||||||
dt::dt2str(__('%Y-%m-%d %H:%M'), $list->epc_upddt,$core->auth->getInfo('user_tz')) . '</td>
|
dt::dt2str(__('%Y-%m-%d %H:%M'), $list->epc_upddt,$core->auth->getInfo('user_tz')) . '</td>
|
||||||
</tr>';
|
</tr>';
|
||||||
}
|
}
|
||||||
|
|
||||||
echo '
|
echo '
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table></div>
|
||||||
<p class="form-note">' . __('In order to remove a record, leave empty its key or value.') . '</p>
|
<p class="form-note">' . __('In order to remove a record, leave empty its key or value.') . '</p>
|
||||||
<p>' . __('Page(s)') . ' : ' . $pager->getLinks() . '</p>
|
<p>' . __('Page(s)') . ' : ' . $pager->getLinks() . '</p>
|
||||||
|
|
||||||
|
@ -422,10 +421,4 @@ $core->callBehavior('enhancePostContentAdminPage', $core);
|
||||||
|
|
||||||
dcPage::helpBlock('enhancePostContent');
|
dcPage::helpBlock('enhancePostContent');
|
||||||
|
|
||||||
# Footers
|
echo '</body></html>';
|
||||||
echo
|
|
||||||
'<hr class="clear"/><p class="right modules">
|
|
||||||
enhancePostContent - ' . $core->plugins->moduleInfo('enhancePostContent', 'version') . '
|
|
||||||
<img alt="' . __('enhancePostContent') . '" src="index.php?pf=enhancePostContent/icon.png" />
|
|
||||||
</p>
|
|
||||||
</body></html>';
|
|
Loading…
Reference in a new issue