Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 12 additions & 0 deletions blueprints.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -48,3 +48,15 @@ form:
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool

admin_active:
type: toggle
label: PLUGIN_PAGINATION.ADMIN_ACTIVE
help: PLUGIN_PAGINATION.ADMIN_ACTIVE_HELP
highlight: 1
default: 0
options:
1: PLUGIN_ADMIN.ENABLED
0: PLUGIN_ADMIN.DISABLED
validate:
type: bool
2 changes: 2 additions & 0 deletions languages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ en:
DELTA_HELP: 'How many pages to show left and right of the current page'
BUILTIN_CSS: 'Use built in CSS'
BUILTIN_CSS_HELP: 'Include the CSS provided by the Pagination plugin'
ADMIN_ACTIVE: 'Active in admin'
ADMIN_ACTIVE_HELP: 'Activate pagination functionality in admin'

ru:
PLUGIN_PAGINATION:
Expand Down
2 changes: 1 addition & 1 deletion pagination.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ public function autoload()
*/
public function onPluginsInitialized()
{
if ($this->isAdmin()) {
if ($this->isAdmin() && !$this->config->get('plugins.pagination.admin_active', false)) {
$this->active = false;
return;
}
Expand Down
1 change: 1 addition & 0 deletions pagination.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
enabled: true
built_in_css: true
delta: 0
admin_active: 0