Новости Joomla

0 Пользователей и 1 Гость просматривают эту тему.
  • 0 Ответов
  • 977 Просмотров
*

Андрей Нестеров

  • Захожу иногда
  • 207
  • 6 / 0
Доброго времени суток)

Возникла проблема с постраничной навигацией - Joomla 3.4.1, сайт armymusic.ru (к примеру, страница http://armymusic.ru/biografii.html),
файл pagination.php переопределен в папке HTML шаблона и имеет следующий вид:

Код
<?php
/**
 * @version $Id: pagination.php 10381 2008-06-01 03:35:53Z pasamio $
 * @package Joomla
 * @copyright Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined('_JEXEC') or die('Restricted access');

// Load template framework
if (!defined('JSN_PATH_TPLFRAMEWORK')) {
require_once JPATH_ROOT . '/plugins/system/jsntplframework/jsntplframework.defines.php';
require_once JPATH_ROOT . '/plugins/system/jsntplframework/libraries/joomlashine/loader.php';
}

/**
 * This is a file to add template specific chrome to pagination rendering.
 *
 * pagination_list_footer
 * Input variable $list is an array with offsets:
 * $list[limit] : int
 * $list[limitstart] : int
 * $list[total] : int
 * $list[limitfield] : string
 * $list[pagescounter] : string
 * $list[pageslinks] : string
 *
 * pagination_list_render
 * Input variable $list is an array with offsets:
 * $list[all]
 * [data] : string
 * [active] : boolean
 * $list[start]
 * [data] : string
 * [active] : boolean
 * $list[previous]
 * [data] : string
 * [active] : boolean
 * $list[next]
 * [data] : string
 * [active] : boolean
 * $list[end]
 * [data] : string
 * [active] : boolean
 * $list[pages]
 * [{PAGE}][data] : string
 * [{PAGE}][active] : boolean
 *
 * pagination_item_active
 * Input variable $item is an object with fields:
 * $item->base : integer
 * $item->link : string
 * $item->text : string
 *
 * pagination_item_inactive
 * Input variable $item is an object with fields:
 * $item->base : integer
 * $item->link : string
 * $item->text : string
 *
 * This gives template designers ultimate control over how pagination is rendered.
 *
 * NOTE: If you override pagination_item_active OR pagination_item_inactive you MUST override them both
 */

function pagination_list_footer($list)
{
// Initialize variables
$lang = JFactory::getLanguage();
$html = "<div class=\"list-footer\">\n";

$html .= "\n<div class=\"limit\">".JText::_('Display Num').$list['limitfield']."</div>";
$html .= $list['pageslinks'];
$html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>";

$html .= "\n<input type=\"hidden\" name=\"limitstart\" value=\"".$list['limitstart']."\" />";
$html .= "\n</div>";

return $html;
}

function pagination_list_render($list)
{
// Initialize variables
$lang = JFactory::getLanguage();
$html = "<ul class=\"jsn-pagination\">";

$html .= '<li class="sssf">'.$list['start']['data']."</li>";
$html .= "<li>".$list['previous']['data']."</li>";

foreach( $list['pages'] as $page )
{
if(isset($page['data']['active']) && $page['data']['active']) {
$html .= '<li class="navigation-page">';
}

$html .= $page['data'];

if(isset($page['data']['active']) && $page['data']['active']) {
$html .= '</li>';
}
}

$html .= "<li>".$list['next']['data']."</li>";
$html .= "<li>".$list['end']['data']."</li>";
// $html .= '&#171;';

$html .= "</ul>";
return $html;
}

function pagination_item_active(&$item) {
return "&nbsp;<a href=\"".$item->link."\" title=\"".$item->text."\">".$item->text."</a>&nbsp;";
}

function pagination_item_inactive(&$item) {
return "&nbsp;<span>".$item->text."</span>&nbsp;";
}
?>

Проблема заключается в том, что пункты навигации (1,2,3) перестали быть частью списка, т.е.
не заключаются в тег <li> c классом "navigation-page", и, соответственно, слетели стили.

Причину понять не могу, грешу на какое-нибудь обновление (возможно, Weblinks 3.4.1), т.к. на локалке
до этого обновления все работает, как надо.
Чтобы оставить сообщение,
Вам необходимо Войти или Зарегистрироваться
 

Проблема с offcanvas для меню

Автор help-tend

Ответов: 14
Просмотров: 2450
Последний ответ 08.09.2021, 21:13:03
от gartes
Проблема с стилями (файлами) CSS

Автор Leo1986

Ответов: 17
Просмотров: 823
Последний ответ 23.04.2021, 09:13:44
от Leo1986
Проблема с версткой шаблона на bootstrap4

Автор bartes

Ответов: 5
Просмотров: 955
Последний ответ 03.02.2021, 16:46:10
от sivers
Helix Ultimate - Layout Builder Проблема

Автор romagromov

Ответов: 29
Просмотров: 4019
Последний ответ 13.03.2020, 22:26:00
от nick71
Проблема с выводом меню helix ultimate

Автор blind

Ответов: 0
Просмотров: 1077
Последний ответ 23.02.2020, 13:07:37
от blind