src/Ffcms/Core/Helper/HTML/Bootstrap/Nav.php 1 location
|
@@ 17-19 (lines=3) @@
|
| 14 |
|
|
| 15 |
|
public static function display($elements) |
| 16 |
|
{ |
| 17 |
|
if (!Obj::isArray($elements) || count($elements['items']) < 1) { |
| 18 |
|
return null; |
| 19 |
|
} |
| 20 |
|
|
| 21 |
|
$items = []; |
| 22 |
|
$tabIdx = 1; |
src/Ffcms/Core/Helper/HTML/Bootstrap/Navbar.php 1 location
|
@@ 16-18 (lines=3) @@
|
| 13 |
|
|
| 14 |
|
public static function display($elements) |
| 15 |
|
{ |
| 16 |
|
if (!Obj::isArray($elements) || count($elements['items']) < 1) { |
| 17 |
|
return null; |
| 18 |
|
} |
| 19 |
|
|
| 20 |
|
$elements['property']['class'] .= ' nav'; |
| 21 |
|
$elements['nav']['class'] .= ' navbar'; |
src/Ffcms/Core/Arch/View.php 1 location
|
@@ 240-242 (lines=3) @@
|
| 237 |
|
{ |
| 238 |
|
$items = App::$Alias->getCustomLibraryArray($type); |
| 239 |
|
// check if custom library available |
| 240 |
|
if (null === $items || !Obj::isArray($items) || count($items) < 1) { |
| 241 |
|
return null; |
| 242 |
|
} |
| 243 |
|
|
| 244 |
|
$output = []; |
| 245 |
|
foreach ($items as $item) { |