(admin/content): add a new button

This commit is contained in:
Kazhnuz 2025-03-01 11:47:28 +01:00
parent ab7e9f7e6a
commit 77469e163e

View file

@ -1,7 +1,18 @@
<?php
echo "<div class='d-flex justify-content-between align-content-center'>";
echo Bootstrap::pageTitle(array('title'=>$contentType->plural(), 'icon'=>$contentType->icon()));
echo "<div>";
echo Bootstrap::link(array(
'title'=>$L->g('New'),
'href'=>HTML_PATH_ADMIN_ROOT.'new-content/'.$contentType->type(),
'icon'=>'plus',
'class'=>'btn btn-outline-success'
));
echo "</div></div>";
function table($type) {
global $url;
global $L;