mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 11:35:13 +00:00
20 lines
305 B
PHP
20 lines
305 B
PHP
<?php
|
|
|
|
namespace Code\Widget;
|
|
|
|
use App;
|
|
use Code\Lib\Menu;
|
|
|
|
|
|
class Menu_preview implements WidgetInterface
|
|
{
|
|
|
|
public function widget(array $arguments): string
|
|
{
|
|
if (!App::$data['menu_item']) {
|
|
return '';
|
|
}
|
|
|
|
return Menu::render(App::$data['menu_item']);
|
|
}
|
|
}
|