/**
  * Constructor.
  * Creates and configures a new pagination with the provided settings.
  *
  * @param array $args Configuration options to modify the pagination settings.
  */
 public function __construct($args = array())
 {
     global $wp_query;
     // specify the default args for the Posts pagination
     $this->default_args = array('total_pages' => max($wp_query->max_num_pages, 1), 'current_page' => max(get_query_var('paged'), 1), 'prev_html' => '<a href="{URL}" class="paging-prev">' . esc_html__('« Previous Entries', 'crb') . '</a>', 'next_html' => '<a href="{URL}" class="paging-next">' . esc_html__('Next Entries »', 'crb') . '</a>');
     parent::__construct($args);
 }
 /**
  * Constructor.
  * Creates and configures a new pagination with the provided settings.
  *
  * @param array $args Configuration options to modify the pagination settings.
  */
 public function __construct($args = array())
 {
     // get the default total number of pages from the <!--nextpage--> functionality
     global $numpages;
     $total_pages = !empty($numpages) ? $numpages : '';
     // specify the default args for the Custom pagination
     $this->default_args = array('total_pages' => $total_pages, 'current_page' => get_query_var($this->get_query_var()), 'enable_numbers' => true, 'enable_prev' => false, 'enable_next' => false);
     parent::__construct($args);
 }
 /**
  * Constructor.
  * Creates and configures a new pagination with the provided settings.
  *
  * @param array $args Configuration options to modify the pagination settings.
  */
 public function __construct($args = array())
 {
     global $post;
     // get all sibling posts/pages
     $posts = $this->get_pagination_posts();
     // specify the default args for the Post pagination
     $this->default_args = array('pages' => $posts, 'current_page' => array_search(get_the_ID(), $posts) + 1, 'prev_html' => '<a href="{URL}" class="paging-prev">' . esc_html__('« Previous Entry', 'crb') . '</a>', 'next_html' => '<a href="{URL}" class="paging-next">' . esc_html__('Next Entry »', 'crb') . '</a>');
     // register additional tokens
     add_filter('carbon_pagination_after_setup_item', array($this, 'add_tokens'));
     parent::__construct($args);
 }
 /**
  * Constructor.
  * Creates and configures a new pagination with the provided settings.
  *
  * @param array $args Configuration options to modify the pagination settings.
  */
 public function __construct($args = array())
 {
     // specify the default args for the Comments pagination
     $this->default_args = array('total_pages' => $this->get_total_comment_pages(), 'current_page' => max(get_query_var('cpage'), 1), 'prev_html' => '<a href="{URL}" class="paging-prev">' . esc_html__('« Older Comments', 'crb') . '</a>', 'next_html' => '<a href="{URL}" class="paging-next">' . esc_html__('Newer Comments »', 'crb') . '</a>');
     parent::__construct($args);
 }