Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Y
Yii Bootstrap 3
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
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Common
Yii Bootstrap 3
Commits
4e64b238
Commit
4e64b238
authored
Jun 20, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
added support for hiding prev and next in BootCarousel
parent
137a0f42
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
BootCarousel.php
widgets/BootCarousel.php
+8
-0
No files found.
widgets/BootCarousel.php
View file @
4e64b238
...
...
@@ -22,6 +22,10 @@ class BootCarousel extends CWidget
*/
public
$next
=
'›'
;
/**
* @var boolean whether to display the previous and next links.
*/
public
$displayPrevAndNext
=
true
;
/**
* @var array the carousel items configuration.
*/
public
$items
=
array
();
...
...
@@ -64,10 +68,14 @@ class BootCarousel extends CWidget
echo
CHtml
::
openTag
(
'div'
,
$this
->
htmlOptions
);
echo
'<div class="carousel-inner">'
;
$this
->
renderItems
(
$this
->
items
);
if
(
$this
->
displayPrevAndNext
)
{
echo
'</div>'
;
echo
'<a class="carousel-control left" href="#'
.
$id
.
'" data-slide="prev">'
.
$this
->
prev
.
'</a>'
;
echo
'<a class="carousel-control right" href="#'
.
$id
.
'" data-slide="next">'
.
$this
->
next
.
'</a>'
;
echo
'</div>'
;
}
/** @var CClientScript $cs */
$cs
=
Yii
::
app
()
->
getClientScript
();
...
...
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