Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
yii2
Project
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PSDI Army
yii2
Commits
0497ba4c
Commit
0497ba4c
authored
Dec 02, 2014
by
Qiang Xue
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #6335
parent
3d308bee
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
Nav.php
extensions/bootstrap/Nav.php
+3
-2
No files found.
extensions/bootstrap/Nav.php
View file @
0497ba4c
...
@@ -171,7 +171,7 @@ class Nav extends Widget
...
@@ -171,7 +171,7 @@ class Nav extends Widget
if
(
$this
->
activateItems
)
{
if
(
$this
->
activateItems
)
{
$items
=
$this
->
isChildActive
(
$items
,
$active
);
$items
=
$this
->
isChildActive
(
$items
,
$active
);
}
}
$items
=
$this
->
renderDropdown
(
$items
);
$items
=
$this
->
renderDropdown
(
$items
,
$item
);
}
}
}
}
...
@@ -186,10 +186,11 @@ class Nav extends Widget
...
@@ -186,10 +186,11 @@ class Nav extends Widget
* Renders the given items as a dropdown.
* Renders the given items as a dropdown.
* This method is called to create sub-menus.
* This method is called to create sub-menus.
* @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure.
* @param array $items the given items. Please refer to [[Dropdown::items]] for the array structure.
* @param array $parentItem the parent item information. Please refer to [[items]] for the structure of this array.
* @return string the rendering result.
* @return string the rendering result.
* @since 2.0.1
* @since 2.0.1
*/
*/
protected
function
renderDropdown
(
$items
)
protected
function
renderDropdown
(
$items
,
$parentItem
)
{
{
return
Dropdown
::
widget
([
return
Dropdown
::
widget
([
'items'
=>
$items
,
'items'
=>
$items
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment