Official support hours: from 9 AM — 6 PM Monday to Friday (GMT +2).
The support staff may not reply on technical inquiries on weekends; all requests will be answered necessarily during working days. Reply time: depending on the complexity of your issue, the answer can be provided between a few hours up to 48 hours. In the particular instances we will notify you if extra time will be required to solve the issue.

×

Notice

The forum is in read only mode.

Постраничная навигация

5 years 11 months ago #660 by realstrannik
Постраничная навигация was created by realstrannik
Доброго времени суток!
Обнаружил проблему со стилями в шаблоне Kglorious. Постраничная навигация после определенного количества постов в теме не умещается целиком и часть переносится на строку ниже, выглядит не эстетично. Как это можно исправить?

Монитор с разрешением 1440 x 900.

Attachments:
5 years 11 months ago #662 by shtier
Replied by shtier on topic Постраничная навигация
Здравствуйте Realstrannik,

Предлагаю слегка подредактировать постраничную навигацию

для этого откройте файл

components/com_kunena/template/ВАШ_ШАБЛОН/layouts/widget/pagination/list/default.php

и сразу после строчки
defined('_JEXEC') or die;

добавьте это
$this->pagination->setDisplayedPages(3);

Это сократит количество ссылок на страницы в навигации.

Далее откройте файл
components/com_kunena/template/ВАШ_ШАБЛОН/layouts/widget/pagination/item/default.php

здесь после строчки
$item = $this->item;

добавьте
$title = $item->text;

if ($item->text == JText::_('JNEXT')) {
	$item->text = '<i class="fa fa-angle-right"></i>';
}
else if ($item->text == JText::_('JPREV')) {
	$item->text = '<i class="fa fa-angle-left"></i>';
}
else if ($item->text == JText::_('JLIB_HTML_START')) {
	$item->text = '<i class="fa fa-angle-double-left"></i>';
}
else if ($item->text == JText::_('JLIB_HTML_END')) {
	$item->text = '<i class="fa fa-angle-double-right"></i>';
}

и чуть ниже замените
echo '<li><a ' . KunenaTemplate::getInstance()->tooltips(true) . ' href="' . $item->link . '" title="' . JText::_('COM_KUNENA_PAGE') . $item->text . '">' . $item->text . '</a></li>';

на
echo '<li><a ' . KunenaTemplate::getInstance()->tooltips(true) . ' href="' . $item->link . '" title="' . JText::_('COM_KUNENA_PAGE') . $title . '">' . $item->text . '</a></li>';

Это заменит слова на иконки.
The following user(s) said Thank You: realstrannik
5 years 11 months ago #663 by realstrannik
Replied by realstrannik on topic Постраничная навигация
Огромное спасибо! Проблема решена.
Moderators: Eugene S.

Partners