for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
namespace KyleMassacre\Menus\Presenters\Foundation;
use KyleMassacre\Menus\Presenters\Presenter;
class ZurbMenuPresenter extends Presenter
{
/**
* {@inheritdoc }
*/
public function getOpenTagWrapper()
return PHP_EOL . '<nav class="custom-main">
<ul class="dropdown menu" data-dropdown-menu>' . PHP_EOL;
}
public function getCloseTagWrapper()
return PHP_EOL . '</ul></nav>' . PHP_EOL;
public function getMenuWithoutDropdownWrapper($item)
return '<li' . $this->getActiveState($item) . '><a href="' . $item->getUrl() . '">' . $item->title . '</a></li>';
public function getActiveState($item)
return \Request::is($item->getRequest()) ? ' class="is-active"' : null;
public function getDividerWrapper()
return '<li class="divider"></li>';
public function getMenuWithDropDownWrapper($item)
return '<li class="dropdown dropdown-primary">
<a class="dropdown-toggle" href="#">' . $item->title . '</a>
<ul class="menu">
' . $this->getChildMenuItems($item) . '
</ul>
</li>' . PHP_EOL;
public function getMultiLevelDropdownWrapper($item)
return '<li>
<a href="#">' . $item->title . '</a>