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
5e11f19c
Commit
5e11f19c
authored
Jul 29, 2012
by
Crisu83
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
removed translatable strings
parent
70495538
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
12 additions
and
16 deletions
+12
-16
TbBreadcrumbs.php
widgets/TbBreadcrumbs.php
+1
-1
TbPager.php
widgets/TbPager.php
+11
-15
No files found.
widgets/TbBreadcrumbs.php
View file @
5e11f19c
...
...
@@ -44,7 +44,7 @@ class TbBreadcrumbs extends CBreadcrumbs
if
(
!
isset
(
$this
->
homeLink
))
{
$content
=
CHtml
::
link
(
Yii
::
t
(
'
bootstrap
'
,
'Home'
),
Yii
::
app
()
->
homeUrl
);
$content
=
CHtml
::
link
(
Yii
::
t
(
'
zii
'
,
'Home'
),
Yii
::
app
()
->
homeUrl
);
$links
[]
=
$this
->
renderItem
(
$content
);
}
else
if
(
$this
->
homeLink
!==
false
)
...
...
widgets/TbPager.php
View file @
5e11f19c
...
...
@@ -42,28 +42,24 @@ class TbPager extends CLinkPager
public
function
init
()
{
if
(
$this
->
nextPageLabel
===
null
)
$this
->
nextPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Next'
)
.
'
→'
;
$this
->
nextPageLabel
=
'
→'
;
if
(
$this
->
prevPageLabel
===
null
)
$this
->
prevPageLabel
=
'← '
.
Yii
::
t
(
'bootstrap'
,
'Previous'
);
if
(
$this
->
firstPageLabel
===
null
)
$this
->
firstPageLabel
=
Yii
::
t
(
'bootstrap'
,
'First'
);
if
(
$this
->
lastPageLabel
===
null
)
$this
->
lastPageLabel
=
Yii
::
t
(
'bootstrap'
,
'Last'
);
$this
->
prevPageLabel
=
'←'
;
$classes
=
array
();
$validAlignments
=
array
(
self
::
ALIGNMENT_LEFT
,
self
::
ALIGNMENT_CENTER
,
self
::
ALIGNMENT_RIGHT
);
if
(
in_array
(
$this
->
alignment
,
$validAlignments
))
if
(
in_array
(
$this
->
alignment
,
array
(
self
::
ALIGNMENT_LEFT
,
self
::
ALIGNMENT_CENTER
,
self
::
ALIGNMENT_RIGHT
)))
$classes
[]
=
'pagination-'
.
$this
->
alignment
;
$classes
=
implode
(
' '
,
$classes
);
if
(
isset
(
$this
->
htmlOptions
[
'class'
]))
$this
->
htmlOptions
[
'class'
]
=
' '
.
$classes
;
else
$this
->
htmlOptions
[
'class'
]
=
$classes
;
if
(
!
empty
(
$classes
))
{
$classes
=
implode
(
' '
,
$classes
);
if
(
isset
(
$this
->
htmlOptions
[
'class'
]))
$this
->
htmlOptions
[
'class'
]
=
' '
.
$classes
;
else
$this
->
htmlOptions
[
'class'
]
=
$classes
;
}
parent
::
init
();
}
...
...
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