Commit 7742fc12 authored by Kevin Yumang's avatar Kevin Yumang

SERV-2286 - top nav elements - footer

parent d4d17794
......@@ -36,9 +36,13 @@
@Limitless::TopNavMenuItemDropdownStart(['user' => 'Kivin', 'img' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/images/placeholders/placeholder.jpg', 'basic-dropdown' => false])
@Limitless::TopNavDropdownContentBodyStart
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'icon' => 'icon-pencil3', 'icon-color' => 'primary', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'img' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/images/placeholders/placeholder.jpg', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'icon' => 'icon-pencil3', 'icon-color' => 'primary', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'img' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/images/placeholders/placeholder.jpg', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentBodyStop
@Limitless::TopNavDropdownContentFooterStart(['text' => 'test'])
@Limitless::TopNavDropdownContentFooterIconButton(['icon' => 'icon-calendar3', 'tooltip-text' => 'calendar'])
@Limitless::TopNavDropdownContentFooterIconButton(['icon' => 'icon-menu7', 'tooltip-text' => 'more'])
@Limitless::TopNavDropdownContentFooterStop
@Limitless::TopNavMenuItemDropdownStop
@Limitless::TopNavStop
......@@ -46,11 +50,13 @@
@Limitless::TopNavStart(true)
@Limitless::TopNavMenuItemDropdownStart(['icon-only' => true, 'icon' => 'icon-bubbles4', 'badge' => '99+', 'badge-color' => 'primary', 'basic-dropdown' => false, 'caret' => false])
@Limitless::TopNavDropdownContentHeaderStart(['title' => ['value' => 'content header <code>test</code>', 'secure' => false], 'icon' => 'icon-compose'])
@Limitless::TopNavDropdownContentHeaderStart(['title' => ['value' => 'content header <code>test</code>', 'secure' => false], 'icon' => 'icon-compose'])
@Limitless::TopNavDropdownContentBodyStart
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'icon' => 'icon-pencil3', 'icon-color' => 'primary', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentMenuItem(['title' => 'title', 'subtitle' => 'subtitle', 'img' => '/ceetrox/sidekick/resource/public/Webdesigns/design-limitless/Template/global_assets/images/placeholders/placeholder.jpg', 'description' => 'description here', 'sub-description' => 'subdescription'])
@Limitless::TopNavDropdownContentBodyStop
@Limitless::TopNavDropdownContentFooterStart(['tooltip-text' => 'test', 'icon' => 'icon-calendar3'])
@Limitless::TopNavDropdownContentFooterStop
@Limitless::TopNavMenuItemDropdownStop
@Limitless::TopNavMenuItem
......
......@@ -45,6 +45,7 @@ class Config
'Limitless::TopNavDropdownContentHeaderStop' => 'topNavDropdownContentHeaderStop',
'Limitless::TopNavDropdownContentFooterStart' => 'topNavDropdownContentFooterStart',
'Limitless::TopNavDropdownContentFooterStop' => 'topNavDropdownContentFooterStop',
'Limitless::TopNavDropdownContentFooterIconButton' => 'topNavDropdownContentFooterIconButton',
];
public $assetAllocation;
......@@ -59,6 +60,20 @@ class Config
];
}
/*
|--------------------------------------------------------------------------------------------
| Method "topNavDropdownContentFooterIconButton"
|--------------------------------------------------------------------------------------------
*/
public function topNavDropdownContentFooterIconButton($parameters)
{
return View('Limitless::Topnav.DropdownContentFooterIconButton')
->withUrl($parameters['url'] ?? null)
->withTooltipText($parameters['tooltip-text'] ?? null)
->withIcon($parameters['icon'] ?? null);
}
/*
|--------------------------------------------------------------------------------------------
| Method "topNavDropdownContentFooterStart"
......@@ -66,7 +81,11 @@ class Config
*/
public function topNavDropdownContentFooterStart($parameters)
{
return View('Limitless::Topnav.DropdownContentFooterStart');
return View('Limitless::Topnav.DropdownContentFooterStart')
->withText($parameters['text'] ?? null)
->withUrl($parameters['url'] ?? null)
->withIcon($parameters['icon'] ?? null)
->withTooltipText($parameters['tooltip-text'] ?? null);
}
......
<a href="{{ $url }}"
class="text-white ml-1"
title data-popup="tooltip" data-original-title="{{ $tooltipText }}">
<i class="{{ $icon }}"></i>
</a>
\ No newline at end of file
<div class="dropdown-content-footer">
@if($text) <a href="{{ $url }}" class="text-white mr-auto">{{ $text }}</a> @endif
@if($icon && !$text)
<a href="{{ $url }}" class="text-muted w-100" data-popup="tooltip" title="" data-original-title="{{ $tooltipText }}">
<i class="{{ $icon }} d-block top-0"></i>
</a>
@endif
<div>
\ No newline at end of file
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