first commit

This commit is contained in:
2025-08-02 16:30:27 +02:00
commit 23646bfcee
14851 changed files with 1750626 additions and 0 deletions

View File

@@ -0,0 +1,28 @@
<?php
class Menu extends Frame
{
public function getTemplate()
{
if (!($template = $this->template)) {
$template = './menu/'.getVal('type').'.tpl';
}
if ($this->smarty->templateExists($template)) {
return $template;
}
return './menu.tpl';
}
public function get_vars()
{
$vars = parent::get_vars();
return array_merge($vars, [
'dateToday' => date('Y-m-d'),
'dateFrom' => date('Y-m-d', time() - (14 * 86400)),
'type' => getVal('type'),
]);
}
}