Widget For Customer

This commit is contained in:
iBNu Maksum
2025-02-21 16:01:46 +07:00
parent 8d2c334da0
commit 19a48c0c88
20 changed files with 621 additions and 459 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');
}
}