Review_List_Pagination
Summary
No summary available.Source
File: src/BigCommerce/Templates/Review_List_Pagination.php
class Review_List_Pagination extends Controller { const NEXT_PAGE_URL = 'next_page_url'; const FIRST_PAGE_URL = 'first_page_url'; protected $template = 'components/reviews/review-list-pagination.php'; protected $wrapper_tag = 'div'; protected $wrapper_classes = [ 'bc-load-items__trigger', 'bc-load-items__trigger--reviews' ]; protected $wrapper_attributes = [ 'data-js' => 'load-items-trigger' ]; protected function parse_options( array $options ) { $defaults = [ self::NEXT_PAGE_URL => '', self::FIRST_PAGE_URL => '', ]; return wp_parse_args( $options, $defaults ); } public function get_data() { return [ self::NEXT_PAGE_URL => $this->options[ self::NEXT_PAGE_URL ], self::FIRST_PAGE_URL => $this->options[ self::FIRST_PAGE_URL ], ]; } }