Commit 374a52ba authored by Kevin Yumang's avatar Kevin Yumang

serv-2286_navigation_elements - beautified navigation config

parent 3b01d237
<?php
/*
|------------------------------------------------------------------------------------------------
| Information
|------------------------------------------------------------------------------------------------
|
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Kevin Almond Roe Yumang <kevin.yumang@itmax.email>
| Update: 2022-06-17 01:45:33
|
*/
namespace Ceetrox\Sidekick\Views\Limitless\Navigation;
/*
|------------------------------------------------------------------------------------------------
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use View;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
|------------------------------------------------------------------------------------------------
*/
class Config
{
/*
|------------------------------------------------------------------------------------------------
| Information
|------------------------------------------------------------------------------------------------
|
| This file is beautified by the command "sidekick:CodebeautifierCommand" of the ceetrox
| sidekick package.
|
| Author: Kevin Almond Roe Yumang <kevin.yumang@itmax.email>
| Update: 2022-06-20 08:27:18
|
*/
namespace Ceetrox\Sidekick\Views\Limitless\Navigation;
/*
|------------------------------------------------------------------------------------------------
| Dependencies
|------------------------------------------------------------------------------------------------
*/
use View;
/*
|------------------------------------------------------------------------------------------------
| Class "Config"
|------------------------------------------------------------------------------------------------
*/
class Config
{
public $methodAllocation = [
'Limitless::NavigationStart' => 'navigationStart',
'Limitless::NavigationStop' => 'navigationStop',
......@@ -40,12 +40,25 @@
'Limitless::NavigationMenuStop' => 'navigationMenuStop',
];
/*
|--------------------------------------------------------------------------------------------
| Method "navigationMenuSectionTitle"
|--------------------------------------------------------------------------------------------
*/
public function navigationMenuSectionTitle($parameters)
{
return View('Limitless::Navigation.NavigationMenuSectionTitle')
->withTitle( (isset($parameters['title']) ? $parameters['title'] : 'No Title') );
}
/*
|--------------------------------------------------------------------------------------------
| Method "navigationMenuItem"
|--------------------------------------------------------------------------------------------
*/
public function navigationMenuItem($parameters)
{
return View('Limitless::Navigation.NavigationMenuItem')
......@@ -53,32 +66,61 @@
->withTarget( (isset($parameters['target']) ? $parameters['target'] : '_self') )
->withIcon( (isset($parameters['icon']) ? $parameters['icon'] : 'icon-primitive-dot') )
->withTitle( (isset($parameters['title']) ? $parameters['title'] : 'No Title') );
}
/*
|--------------------------------------------------------------------------------------------
| Method "navigationStart"
|--------------------------------------------------------------------------------------------
*/
public function navigationStart($parameters)
{
return View('Limitless::Navigation.NavigationStart')
->withExtra( (isset($parameters['extra']) ? $parameters['extra'] : [] ) );
}
/*
|--------------------------------------------------------------------------------------------
| Method "navigationStop"
|--------------------------------------------------------------------------------------------
*/
public function navigationStop()
{
return View('Limitless::Navigation.NavigationStop');
}
/*
|--------------------------------------------------------------------------------------------
| Method "navigationMenuStart"
|--------------------------------------------------------------------------------------------
*/
public function navigationMenuStart($parameters)
{
return View('Limitless::Navigation.NavigationMenuStart')
->withIcon( (isset($parameters['icon']) ? $parameters['icon'] : 'icon-primitive-dot') )
->withTitle( (isset($parameters['title']) ? $parameters['title'] : 'No Title') );
}
/*
|--------------------------------------------------------------------------------------------
| Method "navigationMenuStop"
|--------------------------------------------------------------------------------------------
*/
public function navigationMenuStop()
{
return View('Limitless::Navigation.NavigationMenuStop');
}
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment