Skip to content

Commit

Permalink
+ extendersParams->pagination->wrapperTpl: The new placeholder `[+t…
Browse files Browse the repository at this point in the history
…otalPages+]`.
  • Loading branch information
Ronef committed Jun 22, 2020
1 parent 3c3ef7a commit 2a5afa1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -569,6 +569,7 @@ Output in [YML format](https://yandex.ru/support/partnermarket/export/yml.html).
* `[+previous+]` — HTML code of navigation block to the previous page (see parameters description below).
* `[+next+]` — HTML code of navigation block to the next page (see parameters description below).
* `[+pages+]` — HTML code of pages navigalion block (see parameters description below).
* `[+totalPages+]` — Total number of pages.
* Valid values:
* `stringChunkName`
* `string` — use inline templates starting with `@CODE:`
Expand Down
5 changes: 3 additions & 2 deletions src/Extender/Pagination/Extender.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public function applyToSnippetParams($snippetParams){

/**
* applyToOutput
* @version 1.1.9 (2020-03-11)
* @version 1.2 (2020-06-22)
*
* @param $dataProviderOutput {\ddGetDocuments\DataProvider\DataProviderOutput}
*
Expand Down Expand Up @@ -236,7 +236,8 @@ public function applyToOutput(DataProviderOutput $dataProviderOutput){
,
'totalPages' => $pagesTotal
]
]))
])),
'totalPages' => $pagesTotal
]
]));
}
Expand Down

0 comments on commit 2a5afa1

Please sign in to comment.