getting ready for customizeable dashboard with widget

This commit is contained in:
iBNu Maksum 2025-02-14 17:08:05 +07:00
parent 30bdb89d91
commit eff0c7dab7
No known key found for this signature in database
GPG key ID: 7FC82848810579E5
27 changed files with 1112 additions and 2 deletions

View file

@ -0,0 +1,22 @@
<?php
class html_php
{
public function getWidget($data = null)
{
global $ui;
$ui->assign('card_header', $data['title']);
ob_start();
try{
eval('?>'. $data['content']);
}catch(Exception $e){
echo $e->getMessage();
echo "<br>";
echo $e->getTraceAsString();
}
$content = ob_get_clean();
$ui->assign('card_body', $content);
return $ui->fetch('widget/card_html.tpl');
}
}