Version 5.0.13

This commit is contained in:
Neo committed 2025-12-19 19:04:57 -08:00
1 parent b89858b2ff
commit 5efe744c5f
1407 files changed
+69690 -30177

No files matched your search

+1 -1
View File
@@ -129,7 +129,7 @@ class Link extends MenuItem
* @param string|NULL $id
* @param string $identifier
*/
public function __construct( Url|string $url, string $languageString, string $css ='ipsMenu_item', array $dataAttributes = [], bool $opensDialog = FALSE, ?string $icon = NULL, string $id = NULL, string $identifier = '' )
public function __construct( Url|string $url, string $languageString, string $css ='iDropdown__li', array $dataAttributes = [], bool $opensDialog = FALSE, ?string $icon = NULL, string $id = NULL, string $identifier = '' )
{
$this->url = $url;
$this->title = $languageString;
+9 -6
View File
@@ -34,7 +34,7 @@ class Menu
/**
* Menu Elements(items)
*
* @var array
* @var MenuItem[]
*/
public array $elements = [];
@@ -86,7 +86,8 @@ class Menu
public ?string $tooltip = NULL;
/**
* @breif If this is true, menus with only one element will show as a button
* @brief If this is true, menus with only one element will show as a button
*
* @var bool
*/
public bool $shrinkToButton = true;
@@ -125,7 +126,6 @@ class Menu
$elements = [];
foreach( $this->elements as $key => $element )
{
/* @var MenuItem $element */
$elements[ $key ] = $element;
if( $element->menuItem == $after )
{
@@ -190,6 +190,7 @@ class Menu
/**
* Adds HTML code to the stack
*
* @param string $html
* @return $this
*/
@@ -202,7 +203,7 @@ class Menu
/**
* Returns all menu elements
*
* @return array
* @return array<MenuItem>
*/
public function getLinks(): array
{
@@ -211,6 +212,7 @@ class Menu
/**
* Returns a row wrapper which can contain custom HTML code
*
* @param string $content
* @return string
*/
@@ -251,6 +253,7 @@ class Menu
/**
* Returns the parsed menu
*
* @return string
*/
public function __toString(): string
@@ -275,10 +278,10 @@ class Menu
/**
* Move an item to the top of the menu
*
* @param $item
* @param MenuItem $item
* @return void
*/
public function moveToStart( $item ): void
public function moveToStart( MenuItem $item ): void
{
$currentElements = $this->elements;
$newElements = [];