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
b2312690
Commit
b2312690
authored
Oct 24, 2014
by
RomeroMsk
Committed by
Qiang Xue
Oct 24, 2014
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fixes #5708
Fixes #5708
parent
f03e6f0a
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Tabs.php
extensions/bootstrap/Tabs.php
+8
-2
No files found.
extensions/bootstrap/Tabs.php
View file @
b2312690
...
...
@@ -101,6 +101,10 @@ class Tabs extends Widget
* @var string specifies the Bootstrap tab styling.
*/
public
$navType
=
'nav-tabs'
;
/**
* @var boolean whether the tab-content container should be rendered.
*/
public
$renderTabContent
=
true
;
/**
...
...
@@ -167,14 +171,16 @@ class Tabs extends Widget
}
$linkOptions
[
'data-toggle'
]
=
'tab'
;
$header
=
Html
::
a
(
$label
,
'#'
.
$options
[
'id'
],
$linkOptions
);
if
(
$this
->
renderTabContent
)
{
$panes
[]
=
Html
::
tag
(
'div'
,
isset
(
$item
[
'content'
])
?
$item
[
'content'
]
:
''
,
$options
);
}
}
$headers
[]
=
Html
::
tag
(
'li'
,
$header
,
$headerOptions
);
}
return
Html
::
tag
(
'ul'
,
implode
(
"
\n
"
,
$headers
),
$this
->
options
)
.
"
\n
"
.
Html
::
tag
(
'div'
,
implode
(
"
\n
"
,
$panes
),
[
'class'
=>
'tab-content'
]
);
return
Html
::
tag
(
'ul'
,
implode
(
"
\n
"
,
$headers
),
$this
->
options
)
.
(
$this
->
renderTabContent
?
"
\n
"
.
Html
::
tag
(
'div'
,
implode
(
"
\n
"
,
$panes
),
[
'class'
=>
'tab-content'
])
:
''
);
}
/**
...
...
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