Admin_Page.php
11 months ago
Analytics_Page.php
11 months ago
Campaign_Builder_Page.php
2 years ago
Click_Tracking_Page.php
1 year ago
Debug_Page.php
1 year ago
Integrations_Pages.php
1 year ago
Settings_Page.php
2 years ago
Support_Page.php
1 year ago
Updates_Page.php
1 year ago
Updates_Page.php
23 lines
| 1 | <?php |
| 2 | |
| 3 | namespace IAWP\Admin_Page; |
| 4 | |
| 5 | use IAWP\Capability_Manager; |
| 6 | /** @internal */ |
| 7 | class Updates_Page extends \IAWP\Admin_Page\Admin_Page |
| 8 | { |
| 9 | protected function render_page() |
| 10 | { |
| 11 | if (Capability_Manager::show_branded_ui()) { |
| 12 | echo \IAWPSCOPED\iawp_blade()->run('updates'); |
| 13 | $this->update_latest_update_viewed(); |
| 14 | } else { |
| 15 | echo '<p class="permission-blocked">' . \esc_html__('You do not have permission to view this page.', 'independent-analytics') . '</p>'; |
| 16 | } |
| 17 | } |
| 18 | private function update_latest_update_viewed() |
| 19 | { |
| 20 | \update_option('iawp_last_update_viewed', \IAWP_VERSION, \true); |
| 21 | } |
| 22 | } |
| 23 |