Debug_Page.php
4 years ago
Gtm_Page.php
4 years ago
Iab_Page.php
4 years ago
Legislations_Page.php
4 years ago
Settings_Page.php
4 years ago
Settings_Page_Interface.php
4 years ago
Support_Page.php
4 years ago
Iab_Page.php
29 lines
| 1 | <?php |
| 2 | |
| 3 | namespace cybot\cookiebot\settings\pages; |
| 4 | |
| 5 | use InvalidArgumentException; |
| 6 | use function cybot\cookiebot\lib\include_view; |
| 7 | |
| 8 | class Iab_Page implements Settings_Page_Interface { |
| 9 | |
| 10 | public function menu() { |
| 11 | add_submenu_page( |
| 12 | 'cookiebot', |
| 13 | __( 'IAB', 'cookiebot' ), |
| 14 | __( 'IAB', 'cookiebot' ), |
| 15 | 'manage_options', |
| 16 | 'cookiebot_iab', |
| 17 | array( $this, 'display' ), |
| 18 | 30 |
| 19 | ); |
| 20 | } |
| 21 | |
| 22 | /** |
| 23 | * @throws InvalidArgumentException |
| 24 | */ |
| 25 | public function display() { |
| 26 | include_view( 'admin/settings/iab-page.php', array() ); |
| 27 | } |
| 28 | } |
| 29 |