|
@@ 79-86 (lines=8) @@
|
| 76 |
|
$label->setPosition($frame->getWidth() / 2, 0); |
| 77 |
|
$frame->addChild($label); |
| 78 |
|
|
| 79 |
|
if ($currentPageNumber < $lastPageNumber) { |
| 80 |
|
$button = Quad_Icons64x64_1::create(); |
| 81 |
|
$button->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowNext) |
| 82 |
|
->setSize($buttonSize,$buttonSize) |
| 83 |
|
->setPosition($frame->getWidth() - 1 - (2*$buttonSize), 0) |
| 84 |
|
->setAction($actionNextPage); |
| 85 |
|
$frame->addChild($button); |
| 86 |
|
} |
| 87 |
|
if ($currentPageNumber < $lastPageNumber - 1) { |
| 88 |
|
$button = Quad_Icons64x64_1::create(); |
| 89 |
|
$button->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowLast) |
|
@@ 87-94 (lines=8) @@
|
| 84 |
|
->setAction($actionNextPage); |
| 85 |
|
$frame->addChild($button); |
| 86 |
|
} |
| 87 |
|
if ($currentPageNumber < $lastPageNumber - 1) { |
| 88 |
|
$button = Quad_Icons64x64_1::create(); |
| 89 |
|
$button->setSubStyle(Quad_Icons64x64_1::SUBSTYLE_ArrowLast) |
| 90 |
|
->setSize($buttonSize,$buttonSize) |
| 91 |
|
->setPosition($frame->getWidth() - 1 - $buttonSize, 0) |
| 92 |
|
->setAction($actionLastPage); |
| 93 |
|
$frame->addChild($button); |
| 94 |
|
} |
| 95 |
|
|
| 96 |
|
return $frame; |
| 97 |
|
} |