diff --git a/admin/helpers/compiler/e_Interpretation.php b/admin/helpers/compiler/e_Interpretation.php index cd9eea5a9..4b7702aa4 100644 --- a/admin/helpers/compiler/e_Interpretation.php +++ b/admin/helpers/compiler/e_Interpretation.php @@ -6883,44 +6883,113 @@ class Interpretation extends Fields if ($view['settings']->main_get->gettype == 2 && $view['settings']->main_get->pagination == 1) { - // build body - $body = array(); - // add limit box - if (strpos( + // does this view have a custom limitbox position + $has_limitbox = (strpos( $view['settings']->default, $this->bbb . 'LIMITBOX' . $this->ddd - ) !== false) + ) !== false); + // does this view have a custom pages counter position + $has_pagescounter = (strpos( + $view['settings']->default, + $this->bbb . 'PAGESCOUNTER' . $this->ddd + ) !== false); + // does this view have a custom pages links position + $has_pageslinks = (strpos( + $view['settings']->default, + $this->bbb . 'PAGESLINKS' . $this->ddd + ) !== false); + // does this view have a custom pagination start position + $has_pagination_start = (strpos( + $view['settings']->default, + $this->bbb . 'PAGINATIONSTART' . $this->ddd + ) !== false); + // does this view have a custom pagination end position + $has_pagination_end = (strpos( + $view['settings']->default, + $this->bbb . 'PAGINATIONEND' . $this->ddd + ) !== false); + + // add pagination start + $this->placeholders[$this->bbb . 'PAGINATIONSTART' . $this->ddd] + = PHP_EOL + . 'items) && isset($this->pagination) && isset($this->pagination->pagesTotal) && $this->pagination->pagesTotal > 1): ?>'; + $this->placeholders[$this->bbb . 'PAGINATIONSTART' . $this->ddd] + .= PHP_EOL . $this->_t(1) . '
pagination->getPagesCounter(); ?> pagination->getLimitBox(); ?>
'; + if (!$has_limitbox && !$has_pagescounter) + { + $body[] = $this->_t(3) + . 'pagination->getPagesCounter(); ?> pagination->getLimitBox(); ?>
'; + } + elseif (!$has_limitbox) + { + $body[] = $this->_t(3) + . 'pagination->getLimitBox(); ?>
'; + } + elseif (!$has_pagescounter) + { + $body[] = $this->_t(3) + . 'pagination->getPagesCounter(); ?>
'; + } + // add pagination end + if (!$has_pagination_end) + { + $body[] = $this->placeholders[$this->bbb . 'PAGINATIONEND' . $this->ddd]; + } } - else - { - $body[] = $this->_t(3) - . 'pagination->getPagesCounter(); ?>
'; - } - $body[] = $this->_t(2) . ''; - $body[] = $this->_t(2) - . 'pagination->getPagesLinks(); ?>'; - $body[] = $this->_t(1) . '