mirror of
https://github.com/slawkens/myaac.git
synced 2025-05-01 19:59:21 +02:00
Use admin.links instead
This commit is contained in:
parent
f27172691c
commit
56306dfb0a
@ -220,9 +220,8 @@ else {
|
|||||||
$content .= $tmp_content;
|
$content .= $tmp_content;
|
||||||
if (hasFlag(FLAG_CONTENT_PAGES) || superAdmin()) {
|
if (hasFlag(FLAG_CONTENT_PAGES) || superAdmin()) {
|
||||||
$pageInfo = getCustomPageInfo($pageName);
|
$pageInfo = getCustomPageInfo($pageName);
|
||||||
$content = $twig->render('admin.pages.links.html.twig', array(
|
$content = $twig->render('admin.links.html.twig', ['page' => 'pages', 'id' => $pageInfo !== null ? $pageInfo['id'] : 0, 'hidden' => $pageInfo !== null ? $pageInfo['hidden'] : '0']
|
||||||
'page' => array('id' => $pageInfo !== null ? $pageInfo['id'] : 0, 'hidden' => $pageInfo !== null ? $pageInfo['hidden'] : '0')
|
) . $content;
|
||||||
)) . $content;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
$page = $pageName;
|
$page = $pageName;
|
||||||
|
@ -1,14 +0,0 @@
|
|||||||
<div style="text-align: right;">
|
|
||||||
<a href="{{ constant('ADMIN_URL') }}?p=pages&action=edit&id={{ page.id }}" title="Edit in Admin Panel" target="_blank">
|
|
||||||
<img src="images/edit.png"/>Edit
|
|
||||||
</a>
|
|
||||||
<a id="delete" href="{{ constant('ADMIN_URL') }}?p=pages&action=delete&id={{ page.id }}" onclick="return confirm('Are you sure?');"
|
|
||||||
title="Delete in Admin Panel" target="_blank">
|
|
||||||
<img src="images/del.png"/>Delete
|
|
||||||
</a>
|
|
||||||
<a href="{{ constant('ADMIN_URL') }}?p=pages&action=hide&id={{ page.id }}"
|
|
||||||
title="{% if page.hidden != 1 %}Hide{% else %}Show{% endif %} in Admin Panel" target="_blank">
|
|
||||||
<img src="images/{% if page.hidden != 1 %}success{% else %}error{% endif %}.png"/>{% if page.hidden != 1 %}Hide{% else %}Show{% endif %}
|
|
||||||
</a>
|
|
||||||
<br/>
|
|
||||||
</div>
|
|
Loading…
x
Reference in New Issue
Block a user