protected function pageItem( $n ) {

		// If the current item we're building is for the current page
		// being viewed.
		if ( $n === $this->current ) {

			$this->items[] = [
				'type'    => 'current',
				'content' => $this->args['before_page_number'] . number_format_i18n( $n ) . $this->args['after_page_number']
			];

			$this->dots = true;

		// If showing a linked number or dots.
		} else {

			if ( $this->args['show_all'] || ( $n <= $this->end_size || ( $this->current && $n >= $this->current - $this->mid_size && $n <= $this->current + $this->mid_size ) || $n > $this->total - $this->end_size ) ) {

				$this->items[] = [
					'type'    => 'number',
					'url'     => $this->buildUrl( 1 == $n ? '' : $this->args['format'], $n ),
					'content' => $this->args['before_page_number'] . number_format_i18n( $n ) . $this->args['after_page_number']
				];

				$this->dots = true;

			} elseif ( $this->dots && ! $this->args['show_all'] ) {

				$this->items[] = [
					'type'    => 'dots',
					'content' => __( '&hellip;', 'hybrid-core' )
				];

				$this->dots = false;
			}
		}
	}