ProcessWire分页函数renderPager的全部Options

                echo $all_products->renderPager(array(
                    "nextItemLabel" => __("След."),
                    "previousItemLabel" => __("Пред."),
                    "firstNumberItemClass" => "pagination__item--first-num",
                    "lastNumberItemClass" => "pagination__item--last-num",
                    "previousItemClass" => "pagination__item--prev",
                    "nextItemClass" => "pagination__item--next",
                    "firstItemClass" => "pagination__item--first",
                    "lastItemClass" => "pagination__item--last",
                    "currentItemClass" => "pagination__item--active",
                    "listMarkup" => "<div class='pagination'><ul class='pagination__list'>{out}</ul></div>",
                    "itemMarkup" => "<li class='pagination__item {class}'>{out}</li>",
                    "linkMarkup" => "<a class='pagination__item-link' href='{url}'><span>{out}</span></a>"
                ));

Post Comment