Skip to content
This repository has been archived by the owner on Jun 9, 2024. It is now read-only.

Commit

Permalink
Merge pull request #6 from zbruno/master
Browse files Browse the repository at this point in the history
Update package to work with latest Materialize icon format. Fixes #5
  • Loading branch information
liorocks committed Jul 1, 2015
2 parents 72ef2cf + 0159efd commit 4a18a86
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions src/Materialize.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,13 @@ class Materialize extends Pagination {
*
* @var string
*/
protected $previousButtonText = '<i class="mdi-navigation-chevron-left"></i>';
protected $previousButtonText = '<i class="material-icons">keyboard_arrow_left</i>';

/**
* Next button text.
*
* @var string
*/
protected $nextButtonText = '<i class="mdi-navigation-chevron-right"></i>';
protected $nextButtonText = '<i class="material-icons">keyboard_arrow_right</i>';

}
2 changes: 1 addition & 1 deletion tests/fixtures/materialize/beginning.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ul class="pagination"><li class="waves-effect"><a href="/?page=1"><i class="mdi-navigation-chevron-left"></i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="active"><a href="#!">2</a></li><li class="waves-effect"><a href="/?page=3">3</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=3"><i class="mdi-navigation-chevron-right"></i></a></li></ul>
<ul class="pagination"><li class="waves-effect"><a href="/?page=1"><i class="material-icons">keyboard_arrow_left</i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="active"><a href="#!">2</a></li><li class="waves-effect"><a href="/?page=3">3</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=3"><i class="material-icons">keyboard_arrow_right</i></a></li></ul>
2 changes: 1 addition & 1 deletion tests/fixtures/materialize/ending.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ul class="pagination"><li class="waves-effect"><a href="/?page=11"><i class="mdi-navigation-chevron-left"></i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="waves-effect"><a href="/?page=11">11</a></li><li class="active"><a href="#!">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=13"><i class="mdi-navigation-chevron-right"></i></a></li></ul>
<ul class="pagination"><li class="waves-effect"><a href="/?page=11"><i class="material-icons">keyboard_arrow_left</i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="waves-effect"><a href="/?page=11">11</a></li><li class="active"><a href="#!">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=13"><i class="material-icons">keyboard_arrow_right</i></a></li></ul>
2 changes: 1 addition & 1 deletion tests/fixtures/materialize/first_page.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ul class="pagination"><li class="disabled"><a href="#!"><i class="mdi-navigation-chevron-left"></i></a></li> <li class="active"><a href="#!">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="waves-effect"><a href="/?page=3">3</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=2"><i class="mdi-navigation-chevron-right"></i></a></li></ul>
<ul class="pagination"><li class="disabled"><a href="#!"><i class="material-icons">keyboard_arrow_left</i></a></li> <li class="active"><a href="#!">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="waves-effect"><a href="/?page=3">3</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=2"><i class="material-icons">keyboard_arrow_right</i></a></li></ul>
2 changes: 1 addition & 1 deletion tests/fixtures/materialize/last_page.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ul class="pagination"><li class="waves-effect"><a href="/?page=12"><i class="mdi-navigation-chevron-left"></i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="waves-effect"><a href="/?page=11">11</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="active"><a href="#!">13</a></li> <li class="disabled"><a href="#!"><i class="mdi-navigation-chevron-right"></i></a></li></ul>
<ul class="pagination"><li class="waves-effect"><a href="/?page=12"><i class="material-icons">keyboard_arrow_left</i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="waves-effect"><a href="/?page=7">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="waves-effect"><a href="/?page=11">11</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="active"><a href="#!">13</a></li> <li class="disabled"><a href="#!"><i class="material-icons">keyboard_arrow_right</i></a></li></ul>
2 changes: 1 addition & 1 deletion tests/fixtures/materialize/slider.html
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<ul class="pagination"><li class="waves-effect"><a href="/?page=6"><i class="mdi-navigation-chevron-left"></i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="active"><a href="#!">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=8"><i class="mdi-navigation-chevron-right"></i></a></li></ul>
<ul class="pagination"><li class="waves-effect"><a href="/?page=6"><i class="material-icons">keyboard_arrow_left</i></a></li> <li class="waves-effect"><a href="/?page=1">1</a></li><li class="waves-effect"><a href="/?page=2">2</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=4">4</a></li><li class="waves-effect"><a href="/?page=5">5</a></li><li class="waves-effect"><a href="/?page=6">6</a></li><li class="active"><a href="#!">7</a></li><li class="waves-effect"><a href="/?page=8">8</a></li><li class="waves-effect"><a href="/?page=9">9</a></li><li class="waves-effect"><a href="/?page=10">10</a></li><li class="disabled"><a href="#!">...</a></li><li class="waves-effect"><a href="/?page=12">12</a></li><li class="waves-effect"><a href="/?page=13">13</a></li> <li class="waves-effect"><a href="/?page=8"><i class="material-icons">keyboard_arrow_right</i></a></li></ul>

0 comments on commit 4a18a86

Please sign in to comment.