This commit is contained in:
2026-02-04 23:31:53 +01:00
commit cd59ccd99b
2401 changed files with 56808 additions and 0 deletions

28
lib/Support/Tile.php Normal file
View File

@@ -0,0 +1,28 @@
<?php
namespace MintyPHP\Support;
class Tile
{
public static function render(array $options = []): void
{
$defaults = [
'href' => '#',
'label' => '',
'count' => null,
'icon' => 'bi bi-grid-1x2',
'iconBg' => null,
'iconColor' => null,
'class' => '',
];
$data = array_merge($defaults, $options);
$template = dirname(__DIR__, 2) . '/templates/partials/app-tile.phtml';
if (!is_file($template)) {
return;
}
extract($data, EXTR_SKIP);
require $template;
}
}