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
1990d40e
Commit
1990d40e
authored
Jun 20, 2012
by
niskac
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
changed type error to important in BootBadge
parent
4e64b238
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
BootBadge.php
widgets/BootBadge.php
+3
-3
No files found.
widgets/BootBadge.php
View file @
1990d40e
...
...
@@ -16,13 +16,13 @@ class BootBadge extends CWidget
const
TYPE_DEFAULT
=
''
;
const
TYPE_SUCCESS
=
'success'
;
const
TYPE_WARNING
=
'warning'
;
const
TYPE_
ERROR
=
'error
'
;
const
TYPE_
IMPORTANT
=
'important
'
;
const
TYPE_INFO
=
'info'
;
const
TYPE_INVERSE
=
'inverse'
;
/**
* @var string the badge type (defaults to '').
* Valid types are '', 'success', 'warning', '
error
', 'info' and 'inverse'.
* Valid types are '', 'success', 'warning', '
important
', 'info' and 'inverse'.
*/
public
$type
=
self
::
TYPE_DEFAULT
;
/**
...
...
@@ -45,7 +45,7 @@ class BootBadge extends CWidget
{
$classes
=
array
(
'badge'
);
$validTypes
=
array
(
self
::
TYPE_SUCCESS
,
self
::
TYPE_WARNING
,
self
::
TYPE_
ERROR
,
self
::
TYPE_INFO
,
self
::
TYPE_INVERSE
);
$validTypes
=
array
(
self
::
TYPE_SUCCESS
,
self
::
TYPE_WARNING
,
self
::
TYPE_
IMPORTANT
,
self
::
TYPE_INFO
,
self
::
TYPE_INVERSE
);
if
(
in_array
(
$this
->
type
,
$validTypes
))
$classes
[]
=
'badge-'
.
$this
->
type
;
...
...
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