Newer
Older
<?php
/**
* This file contains \QUI\Menu\Elastic
*/
namespace QUI\Menu;
use QUI;
/**
* Class Elastic
* Creates an elastic menu
*
* @package QUI\Menu
public function __construct(array $attributes = [])
$Engine->assign([
'FileMenu' => dirname(__FILE__) . '/Menu.Children.html',
'this' => $this,
'Site' => $this->getSite(),
'Project' => $this->getProject(),
return $Engine->fetch(dirname(__FILE__) . '/Menu.html');
}
/**
* Return the current site
*
* @return mixed|QUI\Projects\Site
{
if ($this->getAttribute('Site')) {
return $this->getAttribute('Site');
}
return QUI::getRewrite()->getSite();
}