36 lines
804 B
PHP
36 lines
804 B
PHP
|
<?php // phpcs:ignore SlevomatCodingStandard.TypeHints.DeclareStrictTypes.DeclareStrictTypesMissing
|
||
|
|
||
|
namespace MailPoet\AdminPages\Pages;
|
||
|
|
||
|
if (!defined('ABSPATH')) exit;
|
||
|
|
||
|
|
||
|
use MailPoet\AdminPages\PageRenderer;
|
||
|
use MailPoet\Listing\PageLimit;
|
||
|
|
||
|
class StaticSegments {
|
||
|
/** @var PageRenderer */
|
||
|
private $pageRenderer;
|
||
|
|
||
|
/** @var PageLimit */
|
||
|
private $listingPageLimit;
|
||
|
|
||
|
public function __construct(
|
||
|
PageRenderer $pageRenderer,
|
||
|
PageLimit $listingPageLimit
|
||
|
) {
|
||
|
$this->pageRenderer = $pageRenderer;
|
||
|
$this->listingPageLimit = $listingPageLimit;
|
||
|
}
|
||
|
|
||
|
/**
|
||
|
* @return void
|
||
|
*/
|
||
|
public function render() {
|
||
|
$data = [];
|
||
|
$data['items_per_page'] = $this->listingPageLimit->getLimitPerPage('segments');
|
||
|
|
||
|
$this->pageRenderer->displayPage('segments/static.html', $data);
|
||
|
}
|
||
|
}
|