Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
if(strpos($PagesLinks, "page-start") === false) { // sh404sef fix
$PagesLinks = preg_replace_callback(
'/(title="([^"]*)"[^>]*gsearch=1)/smix',
function($matches) use($model) {
if((int)$matches[2] != 0) { // is page number
return $matches[1] . '&page-start=' . ($matches[2] - 1) * $model->limit;
}
else if($matches[2] == "Prev") {
return $matches[1] . '&page-start=' . ($model->input->get("page-start") - $model->limit);
}
else if($matches[2] == "Next") {
return $matches[1] . '&page-start=' . ($model->input->get("page-start") + $model->limit);
}
else if($matches[2] == "End") {
return $matches[1] . '&page-start=' . ($model->total_items - 1);
}
else {
return $matches[0];
}
},
$PagesLinks
);
}
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
Please Log in or Create an account to join the conversation.
You will get a 20% discount on JoomlaShine templates and extensions with this coupon code: JOOMCAR20