Buy One OpenCart Theme, Download One for Free!
0
Your Cart is currently empty!
Product update
Coupon
add
Coupon code invalid! Please re-enter!
AJAX loader
You are here: HomeForum

We are here to serve :)

Our support team is currently online to solve your issues.

Our support team is currently offline

Our support heroes might not be around this hour. Please expect some delays.

Our support is available from

Monday - Friday 8am - 5:30pm GMT+7

Your time: 00:00:00
Our time: 00:00:00

Welcome, Guest

SJ Resorts SMALL PROBLEM
(1 viewing) (1) Guest
  • Page:
  • 1

TOPIC: SJ Resorts SMALL PROBLEM

SJ Resorts SMALL PROBLEM 3 years, 10 months ago #26322

I was buy SJ Resorts before many years and it's very good template .. really I love it .. but now I have a problem in the pages .. this is the issue :

Warning: Illegal string offset 'active' in /home/00000000/public_html/templates/sj_resorts/html/pagination.php on line 42

and this is the php code :
<?php
function pagination_list_footer($list)
{
	// Initialize variables
	$lang =& JFactory::getLanguage();
	$html = "<div class=\"list-footer\">\n";

	if ($lang->isRTL())
	{
		$html .= "\n<div class=\"counter\">".$list['pagescounter']."</div>";
		$html .= $list['pageslinks'];
		$html .= "\n<div class=\"limit\">".JText::_('Display Num').$list['limitfield']."</div>";
	}
	else
	{
		$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=\"paginations\">";
	//$html .= '<li>&laquo;</li>';
	// Reverse output rendering for right-to-left display
	if($lang->isRTL())
	{
		$html .= $list['start']['data'];
		$html .= $list['previous']['data'];

		$list['pages'] = array_reverse( $list['pages'] );

		foreach( $list['pages'] as $page ) {
			if($page['data']['active']) {
				//  $html .= '<strong>';
			}

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

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

		$html .= $list['next']['data'];
		$html .= $list['end']['data'];
		// $html .= '&#171;';
	}
	else
	{
		$html .= $list['start']['data'];
		$html .= $list['previous']['data'];

		foreach( $list['pages'] as $page )
		{
			if($page['data']['active']) {
				// $html .= '<strong>';
			}

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

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

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

	}
	//$html .= '<li>&raquo;</li>';
	$html .= "</ul>";
	return $html;
}

function pagination_item_active(&$item) {
	if((int)$item->text > 0){
		$class=" class='link'";
	}else{
		$class="";
	}
	$liclass = strtolower($item->text);
	if(!is_numeric($liclass)){
		$liclass = 'text '.$liclass;
	} else {
		$liclass = 'number '.$liclass;
	}
	return "<li class=\"".$liclass."\">&nbsp;<span class=\"link\"><a href=\"".$item->link."\" title=\"".$item->text."\">".$item->text."</a></span>&nbsp;</li>";
}

function pagination_item_inactive(&$item) {
	$liclass = strtolower($item->text);
	if(!is_numeric($liclass)){
		$liclass = 'text '.$liclass;
	} else {
		$liclass = 'number '.$liclass;
	}
	
	if((int)$item->text > 0){
		$class=" class='active'";
	}else{
		$class="";
	}
	
	return "<li class=\"".$liclass."\">&nbsp;<span".$class."><span>".$item->text."</span></span>&nbsp;</li>";
}
?>


please help me to find the issue

BTW .. Goto Global Configuration ALREADY >>>> Set Error Reporting to none.
  • Page:
  • 1
Time to create page: 0.32 seconds

Notification

Please find your issue via Suggested Posts before submitting your question. We have solved the most of issues and maybe your issue was solved before.

Suggested Posts

(/)
Result not found!

Latest My Topics

No posts to display.

Love all our templates?

Join our membership clubs starting at $49 only for access to all of our templates

Join Now
Magento Themes Magento Extensions Free Magento Extensions Prestashop Themes Prestashop Modules Magento 2 Themes