Файл: protected/widgets/views/pager.php
Строк: 37
<?php
/*
* Вывод навигационного меню
*/
?>
<?php if ($this->getPageCount() > 1): ?>
<div class="navi_menu">
<ul class="navi">
<?php if ($this->_links["back"] !== ''): ?>
<a href="<?php echo $this->createPageUrl($this->_links["back"]) ?>">«</a>
<?php endif; ?>
<?php foreach ($this->_links["left"] as $value): ?>
<a href="<?php echo $this->createPageUrl($value) ?>"><?php echo ($value + 1) ?></a>
<?php endforeach; ?>
<?php if (($this->getCurrentPage() - $this->aroundLinks - $this->leftRightLinks + 1) >= 2): ?>
...
<?php endif; ?>
<?php foreach ($this->_links["aroundLeft"] as $value): ?>
<a href="<?php echo $this->createPageUrl($value) ?>"><?php echo ($value + 1) ?></a>
<?php endforeach; ?>
<li class="navi current">
<a href="<?php echo $this->createPageUrl (($this->getCurrentPage())) ?>"><?php echo ($this->getCurrentPage() + 1) ?></a>
</li>
<?php foreach ($this->_links["aroundRight"] as $value): ?>
<a href="<?php echo $this->createPageUrl($value) ?>"><?php echo ($value + 1) ?></a>
<?php endforeach; ?>
<?php if (($this->getPageCount() - $this->leftRightLinks - $this->getCurrentPage() - $this->aroundLinks) >= 2): ?>
...
<?php endif; ?>
<?php foreach ($this->_links["right"] as $value): ?>
<a href="<?php echo $this->createPageUrl($value) ?>"><?php echo ($value + 1) ?></a>
<?php endforeach; ?>
<?php if (!empty($this->_links["forward"])): ?>
<a href="<?php echo $this->createPageUrl($this->_links["forward"]) ?>">»</a>
<?php endif; ?>
</ul>
</div>
<?php endif; ?>