61 lines
1.2 KiB
PHP
61 lines
1.2 KiB
PHP
<?php
|
|
namespace App\CMS\MenuPresenters;
|
|
|
|
use Pingpong\Menus\MenuItem;
|
|
use Pingpong\Menus\Presenters\Presenter;
|
|
|
|
class ProfileMenuPresenter extends Presenter
|
|
{
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getOpenTagWrapper()
|
|
{
|
|
return PHP_EOL . '<div class="dropdown-menu profile-dropdown-menu">' . PHP_EOL;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getCloseTagWrapper()
|
|
{
|
|
return PHP_EOL . '</div>' . PHP_EOL;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getMenuWithoutDropdownWrapper($item)
|
|
{
|
|
return '<a href="' . $item->getUrl() . '" class="dropdown-item">' . $item->getIcon() . ' ' . $item->title . '</a>' . PHP_EOL;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getActiveState(MenuItem $item)
|
|
{
|
|
return null;
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getDividerWrapper()
|
|
{
|
|
return '<div class="dropdown-divider"></div>' . PHP_EOL;
|
|
}
|
|
|
|
public function getMultiLevelDropdownWrapper($item)
|
|
{
|
|
return null;//$this->getMenuWithDropDownWrapper($item);
|
|
}
|
|
|
|
/**
|
|
* {@inheritdoc }
|
|
*/
|
|
public function getMenuWithDropDownWrapper($item)
|
|
{
|
|
return null;
|
|
}
|
|
} |