| | |
| | | // Hook into WordPress admin |
| | | add_action('admin_menu', [$this, 'registerAdminPages']); |
| | | add_action('admin_enqueue_scripts', [$this, 'enqueueAdminAssets']); |
| | | add_action(BASE.'dashboard_page_integrations', [$this, 'renderDashPage'], 10); |
| | | } |
| | | |
| | | /** |
| | |
| | | // ); |
| | | } |
| | | |
| | | public function renderDashPage():void |
| | | { |
| | | $this->renderPage(); |
| | | } |
| | | /** |
| | | * Render the main integrations page |
| | | */ |
| | |
| | | <div class="jvb-admin-content"> |
| | | <?php |
| | | // Display any admin notices from form submissions |
| | | if (is_admin()) { |
| | | settings_errors('jvb_integrations'); |
| | | } |
| | | |
| | | $this->displayNotices(); |
| | | ?> |
| | | |
| | |
| | | </div> |
| | | </div> |
| | | |
| | | <?php $this->renderStyles(); ?> |
| | | <?php if (is_admin()) { |
| | | $this->renderStyles(); |
| | | } ?> |
| | | <?php |
| | | } |
| | | |