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

serv-2286_navigation_elements - beautified navigation config

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